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, 2005 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 ;; cygwin* ) 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 ;;
2993 if test "$unexec" = "unexaix.o"; then
2994 if test "$dynamic" = "no"; then
2995 start_flags="-Wl,-bnso,-bnodelcsect"
2996 test "$GCC" = "yes" && start_flags="-B/bin/ ${start_flags}"
2997 for f in "/lib/syscalls.exp" "/lib/threads.exp"; do
2998 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; fi
3000 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do
3001 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi
3004 echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6
3005 echo "configure:3006: checking for terminateAndUnload in -lC" >&5
3006 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'`
3008 xe_check_libs=" -lC "
3009 cat > conftest.$ac_ext <<EOF
3010 #line 3011 "configure"
3011 #include "confdefs.h"
3012 /* Override any gcc2 internal prototype to avoid an error. */
3013 /* We use char because int might match the return type of a gcc2
3014 builtin and then its argument prototype would still apply. */
3015 char terminateAndUnload();
3018 terminateAndUnload()
3021 if { (eval echo configure:3022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3023 eval "ac_cv_lib_$ac_lib_var=yes"
3025 echo "configure: failed program was:" >&5
3026 cat conftest.$ac_ext >&5
3028 eval "ac_cv_lib_$ac_lib_var=no"
3033 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
3034 echo "$ac_t""yes" 1>&6
3035 libs_system="$libs_system -lC" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lC\" to \$libs_system"; fi
3037 echo "$ac_t""no" 1>&6
3042 elif test -n "$ld_text_start_addr"; then
3043 start_flags="-T $ld_text_start_addr -e __start"
3049 if test "$ordinary_link" = "no" -a "$GCC" = "yes"; then
3050 test -z "$linker" && linker='$(CC) -nostdlib'
3051 test -z "$lib_gcc" && lib_gcc='`$(CC) -print-libgcc-file-name`'
3053 test "$GCC" != "yes" && lib_gcc=
3059 case "$site_libraries" in *:* ) site_libraries="`echo '' $site_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
3060 if test -n "$site_libraries"; then
3061 for arg in $site_libraries; do
3064 * ) test -d "$arg" || \
3065 { echo "Error:" "Invalid site library \`$arg': no such directory" >&2; exit 1; }
3068 ld_switch_site="$ld_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$ld_switch_site"; fi
3072 case "$site_includes" in *:* ) site_includes="`echo '' $site_includes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
3073 if test -n "$site_includes"; then
3074 for arg in $site_includes; do
3077 * ) test -d "$arg" || \
3078 { echo "Error:" "Invalid site include \`$arg': no such directory" >&2; exit 1; }
3081 c_switch_site="$c_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$c_switch_site"; fi
3085 case "$site_prefixes" in *:* ) site_prefixes="`echo '' $site_prefixes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
3086 if test -n "$site_prefixes"; then
3087 for dir in $site_prefixes; do
3088 lib_dir="${dir}/lib"
3089 inc_dir="${dir}/include"
3090 if test ! -d "$dir"; then
3091 { echo "Error:" "Invalid site prefix \`$dir': no such directory" >&2; exit 1; }
3092 elif test ! -d "$lib_dir"; then
3093 { echo "Error:" "Invalid site prefix \`$dir': no such directory \`$lib_dir'" >&2; exit 1; }
3095 if test -d "$inc_dir"; then
3096 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
3098 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
3104 for dir in "/usr/ccs/lib"; do
3105 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
3108 case "$site_runtime_libraries" in *:* ) site_runtime_libraries="`echo '' $site_runtime_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
3109 if test -n "$site_runtime_libraries"; then
3110 LD_RUN_PATH="`echo $site_runtime_libraries | sed -e 's/ */:/g'`"
3118 if test -n "$add_runtime_path"; then :;
3119 elif test "$dynamic" = "no"; then add_runtime_path=no
3120 elif test -n "$LD_RUN_PATH"; then add_runtime_path=yes
3121 else case "$opsys" in
3122 sol2 | irix* | *bsd* | decosf* ) add_runtime_path=yes ;;
3123 * ) add_runtime_path=no ;;
3127 if test "$add_runtime_path" = "yes"; then
3128 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6
3129 echo "configure:3130: checking "for runtime libraries flag"" >&5
3131 sol2 ) dash_r="-R" ;;
3132 decosf* | linux* | irix*) dash_r="-rpath " ;;
3135 for try_dash_r in "-R" "-R " "-rpath "; do
3136 xe_check_libs="${try_dash_r}/no/such/file-or-directory"
3138 if test "$GCC" = "yes"; then
3139 set x $xe_check_libs; shift; xe_check_libs=""
3140 while test -n "$1"; do
3142 -L | -l | -u ) xe_check_libs="$xe_check_libs $1 $2"; shift ;;
3143 -L* | -l* | -u* | -Wl* | -pg ) xe_check_libs="$xe_check_libs $1" ;;
3145 * ) xe_check_libs="$xe_check_libs -Xlinker $1" ;;
3150 cat > conftest.$ac_ext <<EOF
3151 #line 3152 "configure"
3152 #include "confdefs.h"
3158 if { (eval echo configure:3159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3160 dash_r="$try_dash_r"
3162 echo "configure: failed program was:" >&5
3163 cat conftest.$ac_ext >&5
3167 test -n "$dash_r" && break
3170 if test -n "$dash_r";
3171 then echo "$ac_t"""\"${dash_r}\""" 1>&6
3172 else echo "$ac_t""NONE" 1>&6
3176 xe_add_unique_runpath_dir='
3178 for xe_dir in $runpath_dirs; do test "$xe_dir" = "$xe_runpath_dir" && xe_add_p=no
3180 if test "$xe_add_p" = "yes"; then
3181 test -n "$runpath" && runpath="${runpath}:"
3182 runpath="${runpath}${xe_runpath_dir}"
3183 runpath_dirs="$runpath_dirs $xe_runpath_dir"
3189 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
3190 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
3191 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
3193 runpath="" runpath_dirs=""
3194 if test -n "$LD_RUN_PATH"; then
3195 runpath="$LD_RUN_PATH"
3196 elif test "$GCC" = "yes"; then
3197 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
3198 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
3199 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
3200 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
3201 case "$arg" in P,* | -L* | -R* )
3202 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
3204 xe_runpath_dir="$dir"
3205 test "$xe_runpath_dir" != "/lib" -a \
3206 "$xe_runpath_dir" != "/usr/lib" -a \
3207 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
3208 eval "$xe_add_unique_runpath_dir"
3213 ld_switch_run="$ld_switch_run_save"
3216 for arg in $ld_switch_site $ld_switch_x_site; do
3217 case "$arg" in -L*) {
3218 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
3219 test "$xe_runpath_dir" != "/lib" -a \
3220 "$xe_runpath_dir" != "/usr/lib" -a \
3221 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
3222 eval "$xe_add_unique_runpath_dir"
3225 if test "$opsys $need_motif" = "sol2 yes"; then
3226 xe_runpath_dir="/opt/SUNWdt/lib";
3227 eval "$xe_add_unique_runpath_dir";
3230 if test -n "$runpath"; then
3231 ld_switch_run="${dash_r}${runpath}"
3233 if test "$GCC" = "yes"; then
3234 set x $ld_switch_run; shift; ld_switch_run=""
3235 while test -n "$1"; do
3237 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
3238 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
3240 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
3245 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
3252 if test "$with_dlmalloc" != "no"; then
3257 after_morecore_hook_exists=yes
3258 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
3259 echo "configure:3260: checking for malloc_set_state" >&5
3261 cat > conftest.$ac_ext <<EOF
3262 #line 3263 "configure"
3263 #include "confdefs.h"
3264 /* System header to define __stub macros and hopefully few prototypes,
3265 which can conflict with char malloc_set_state(); below. */
3267 /* Override any gcc2 internal prototype to avoid an error. */
3268 /* We use char because int might match the return type of a gcc2
3269 builtin and then its argument prototype would still apply. */
3270 char malloc_set_state();
3274 /* The GNU C library defines this for functions which it implements
3275 to always fail with ENOSYS. Some functions are actually named
3276 something starting with __ and the normal name is an alias. */
3277 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
3285 if { (eval echo configure:3286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3287 eval "ac_cv_func_malloc_set_state=yes"
3289 echo "configure: failed program was:" >&5
3290 cat conftest.$ac_ext >&5
3292 eval "ac_cv_func_malloc_set_state=no"
3296 if eval "test \"`echo '$ac_cv_func_'malloc_set_state`\" = yes"; then
3297 echo "$ac_t""yes" 1>&6
3300 echo "$ac_t""no" 1>&6
3304 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
3305 echo "configure:3306: checking whether __after_morecore_hook exists" >&5
3306 cat > conftest.$ac_ext <<EOF
3307 #line 3308 "configure"
3308 #include "confdefs.h"
3309 extern void (* __after_morecore_hook)();
3311 __after_morecore_hook = 0
3314 if { (eval echo configure:3315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3316 echo "$ac_t""yes" 1>&6
3318 echo "configure: failed program was:" >&5
3319 cat conftest.$ac_ext >&5
3321 echo "$ac_t""no" 1>&6
3322 after_morecore_hook_exists=no
3325 if test "$system_malloc" = "yes" ; then
3328 - The GNU allocators don't work with this system configuration."
3329 elif test "$with_system_malloc" = "yes" ; then
3332 - User chose not to use GNU allocators."
3333 elif test "$with_debug_malloc" = "yes" ; then
3336 - User chose to use Debugging Malloc."
3339 if test "$doug_lea_malloc" = "yes" -a "$GNU_MALLOC" = "yes" ; then
3341 - Using Doug Lea's new malloc from the GNU C Library."
3342 { test "$extra_verbose" = "yes" && cat << \EOF
3343 Defining DOUG_LEA_MALLOC
3345 cat >> confdefs.h <<\EOF
3346 #define DOUG_LEA_MALLOC 1
3350 if test "$after_morecore_hook_exists" = "no" ; then
3352 - Using Doug Lea's new malloc from the Linux C Library."
3353 { test "$extra_verbose" = "yes" && cat << \EOF
3354 Defining _NO_MALLOC_WARNING_
3356 cat >> confdefs.h <<\EOF
3357 #define _NO_MALLOC_WARNING_ 1
3367 # Extract the first word of "ranlib", so it can be a program name with args.
3368 set dummy ranlib; ac_word=$2
3369 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3370 echo "configure:3371: checking for $ac_word" >&5
3372 if test -n "$RANLIB"; then
3373 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3375 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3377 for ac_dir in $ac_dummy; do
3378 test -z "$ac_dir" && ac_dir=.
3379 if test -f $ac_dir/$ac_word; then
3380 ac_cv_prog_RANLIB="ranlib"
3385 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
3387 RANLIB="$ac_cv_prog_RANLIB"
3388 if test -n "$RANLIB"; then
3389 echo "$ac_t""$RANLIB" 1>&6
3391 echo "$ac_t""no" 1>&6
3395 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3396 if test -f $ac_dir/install-sh; then
3398 ac_install_sh="$ac_aux_dir/install-sh -c"
3400 elif test -f $ac_dir/install.sh; then
3402 ac_install_sh="$ac_aux_dir/install.sh -c"
3406 if test -z "$ac_aux_dir"; then
3407 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
3409 ac_config_guess=$ac_aux_dir/config.guess
3410 ac_config_sub=$ac_aux_dir/config.sub
3411 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
3413 # Find a good install program. We prefer a C program (faster),
3414 # so one script is as good as another. But avoid the broken or
3415 # incompatible versions:
3416 # SysV /etc/install, /usr/sbin/install
3417 # SunOS /usr/etc/install
3418 # IRIX /sbin/install
3420 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3421 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3422 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3423 # ./install, which can be erroneously created by make from ./install.sh.
3424 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3425 echo "configure:3426: checking for a BSD compatible install" >&5
3426 if test -z "$INSTALL"; then
3428 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3429 for ac_dir in $PATH; do
3430 # Account for people who put trailing slashes in PATH elements.
3432 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3434 # OSF1 and SCO ODT 3.0 have their own names for install.
3435 # Don't use installbsd from OSF since it installs stuff as root
3437 for ac_prog in ginstall scoinst install; do
3438 if test -f $ac_dir/$ac_prog; then
3439 if test $ac_prog = install &&
3440 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3441 # AIX install. It has an incompatible calling convention.
3444 ac_cv_path_install="$ac_dir/$ac_prog -c"
3454 if test "${ac_cv_path_install+set}" = set; then
3455 INSTALL="$ac_cv_path_install"
3457 # As a last resort, use the slow shell script. We don't cache a
3458 # path for INSTALL within a source directory, because that will
3459 # break other packages using the cache if that directory is
3460 # removed, or if the path is relative.
3461 INSTALL="$ac_install_sh"
3464 echo "$ac_t""$INSTALL" 1>&6
3466 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3467 # It thinks the first close brace ends the variable substitution.
3468 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3470 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3472 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3474 for ac_prog in 'bison -y' byacc
3476 # Extract the first word of "$ac_prog", so it can be a program name with args.
3477 set dummy $ac_prog; ac_word=$2
3478 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3479 echo "configure:3480: checking for $ac_word" >&5
3481 if test -n "$YACC"; then
3482 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3484 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3486 for ac_dir in $ac_dummy; do
3487 test -z "$ac_dir" && ac_dir=.
3488 if test -f $ac_dir/$ac_word; then
3489 ac_cv_prog_YACC="$ac_prog"
3495 YACC="$ac_cv_prog_YACC"
3496 if test -n "$YACC"; then
3497 echo "$ac_t""$YACC" 1>&6
3499 echo "$ac_t""no" 1>&6
3502 test -n "$YACC" && break
3504 test -n "$YACC" || YACC="yacc"
3507 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
3509 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3510 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3511 echo "configure:3512: checking for $ac_hdr" >&5
3513 cat > conftest.$ac_ext <<EOF
3514 #line 3515 "configure"
3515 #include "confdefs.h"
3518 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3519 { (eval echo configure:3520: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3520 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3521 if test -z "$ac_err"; then
3523 eval "ac_cv_header_$ac_safe=yes"
3526 echo "configure: failed program was:" >&5
3527 cat conftest.$ac_ext >&5
3529 eval "ac_cv_header_$ac_safe=no"
3532 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3533 echo "$ac_t""yes" 1>&6
3534 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3535 { test "$extra_verbose" = "yes" && cat << EOF
3538 cat >> confdefs.h <<EOF
3539 #define $ac_tr_hdr 1
3544 echo "$ac_t""no" 1>&6
3548 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
3549 echo "configure:3550: checking for sys/wait.h that is POSIX.1 compatible" >&5
3551 cat > conftest.$ac_ext <<EOF
3552 #line 3553 "configure"
3553 #include "confdefs.h"
3554 #include <sys/types.h>
3555 #include <sys/wait.h>
3557 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3560 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3565 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3568 if { (eval echo configure:3569: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3570 ac_cv_header_sys_wait_h=yes
3572 echo "configure: failed program was:" >&5
3573 cat conftest.$ac_ext >&5
3575 ac_cv_header_sys_wait_h=no
3579 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
3580 if test $ac_cv_header_sys_wait_h = yes; then
3581 { test "$extra_verbose" = "yes" && cat << \EOF
3582 Defining HAVE_SYS_WAIT_H
3584 cat >> confdefs.h <<\EOF
3585 #define HAVE_SYS_WAIT_H 1
3591 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3592 echo "configure:3593: checking for ANSI C header files" >&5
3594 cat > conftest.$ac_ext <<EOF
3595 #line 3596 "configure"
3596 #include "confdefs.h"
3602 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3603 { (eval echo configure:3604: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3604 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3605 if test -z "$ac_err"; then
3607 ac_cv_header_stdc=yes
3610 echo "configure: failed program was:" >&5
3611 cat conftest.$ac_ext >&5
3613 ac_cv_header_stdc=no
3617 if test $ac_cv_header_stdc = yes; then
3618 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3619 cat > conftest.$ac_ext <<EOF
3620 #line 3621 "configure"
3621 #include "confdefs.h"
3624 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3625 egrep "memchr" >/dev/null 2>&1; then
3629 ac_cv_header_stdc=no
3635 if test $ac_cv_header_stdc = yes; then
3636 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3637 cat > conftest.$ac_ext <<EOF
3638 #line 3639 "configure"
3639 #include "confdefs.h"
3642 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3643 egrep "free" >/dev/null 2>&1; then
3647 ac_cv_header_stdc=no
3653 if test $ac_cv_header_stdc = yes; then
3654 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3655 cat > conftest.$ac_ext <<EOF
3656 #line 3657 "configure"
3657 #include "confdefs.h"
3659 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3660 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3661 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3662 int main () { int i; for (i = 0; i < 256; i++)
3663 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3667 if { (eval echo configure:3668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
3672 echo "configure: failed program was:" >&5
3673 cat conftest.$ac_ext >&5
3675 ac_cv_header_stdc=no
3680 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3681 if test $ac_cv_header_stdc = yes; then
3682 { test "$extra_verbose" = "yes" && cat << \EOF
3683 Defining STDC_HEADERS
3685 cat >> confdefs.h <<\EOF
3686 #define STDC_HEADERS 1
3692 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3693 echo "configure:3694: checking whether time.h and sys/time.h may both be included" >&5
3695 cat > conftest.$ac_ext <<EOF
3696 #line 3697 "configure"
3697 #include "confdefs.h"
3698 #include <sys/types.h>
3699 #include <sys/time.h>
3705 if { (eval echo configure:3706: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3707 ac_cv_header_time=yes
3709 echo "configure: failed program was:" >&5
3710 cat conftest.$ac_ext >&5
3712 ac_cv_header_time=no
3716 echo "$ac_t""$ac_cv_header_time" 1>&6
3717 if test $ac_cv_header_time = yes; then
3718 { test "$extra_verbose" = "yes" && cat << \EOF
3719 Defining TIME_WITH_SYS_TIME
3721 cat >> confdefs.h <<\EOF
3722 #define TIME_WITH_SYS_TIME 1
3728 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
3729 echo "configure:3730: checking for sys_siglist declaration in signal.h or unistd.h" >&5
3731 cat > conftest.$ac_ext <<EOF
3732 #line 3733 "configure"
3733 #include "confdefs.h"
3734 #include <sys/types.h>
3736 /* NetBSD declares sys_siglist in unistd.h. */
3737 #ifdef HAVE_UNISTD_H
3741 char *msg = *(sys_siglist + 1);
3744 if { (eval echo configure:3745: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3746 ac_cv_decl_sys_siglist=yes
3748 echo "configure: failed program was:" >&5
3749 cat conftest.$ac_ext >&5
3751 ac_cv_decl_sys_siglist=no
3755 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
3756 if test $ac_cv_decl_sys_siglist = yes; then
3757 { test "$extra_verbose" = "yes" && cat << \EOF
3758 Defining SYS_SIGLIST_DECLARED
3760 cat >> confdefs.h <<\EOF
3761 #define SYS_SIGLIST_DECLARED 1
3769 echo $ac_n "checking for utime""... $ac_c" 1>&6
3770 echo "configure:3771: checking for utime" >&5
3771 cat > conftest.$ac_ext <<EOF
3772 #line 3773 "configure"
3773 #include "confdefs.h"
3774 #include <sys/types.h>
3777 struct utimbuf x; x.actime = x.modtime = 0; utime ("/", &x);
3780 if { (eval echo configure:3781: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3782 echo "$ac_t""yes" 1>&6
3783 { test "$extra_verbose" = "yes" && cat << \EOF
3786 cat >> confdefs.h <<\EOF
3787 #define HAVE_UTIME 1
3792 echo "configure: failed program was:" >&5
3793 cat conftest.$ac_ext >&5
3795 echo "$ac_t""no" 1>&6
3796 for ac_func in utimes
3798 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3799 echo "configure:3800: checking for $ac_func" >&5
3801 cat > conftest.$ac_ext <<EOF
3802 #line 3803 "configure"
3803 #include "confdefs.h"
3804 /* System header to define __stub macros and hopefully few prototypes,
3805 which can conflict with char $ac_func(); below. */
3807 /* Override any gcc2 internal prototype to avoid an error. */
3808 /* We use char because int might match the return type of a gcc2
3809 builtin and then its argument prototype would still apply. */
3814 /* The GNU C library defines this for functions which it implements
3815 to always fail with ENOSYS. Some functions are actually named
3816 something starting with __ and the normal name is an alias. */
3817 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3825 if { (eval echo configure:3826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3827 eval "ac_cv_func_$ac_func=yes"
3829 echo "configure: failed program was:" >&5
3830 cat conftest.$ac_ext >&5
3832 eval "ac_cv_func_$ac_func=no"
3836 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3837 echo "$ac_t""yes" 1>&6
3838 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3839 { test "$extra_verbose" = "yes" && cat << EOF
3840 Defining $ac_tr_func
3842 cat >> confdefs.h <<EOF
3843 #define $ac_tr_func 1
3848 echo "$ac_t""no" 1>&6
3856 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3857 echo "configure:3858: checking return type of signal handlers" >&5
3859 cat > conftest.$ac_ext <<EOF
3860 #line 3861 "configure"
3861 #include "confdefs.h"
3862 #include <sys/types.h>
3868 extern "C" void (*signal (int, void (*)(int)))(int);
3870 void (*signal ()) ();
3877 if { (eval echo configure:3878: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3879 ac_cv_type_signal=void
3881 echo "configure: failed program was:" >&5
3882 cat conftest.$ac_ext >&5
3884 ac_cv_type_signal=int
3888 echo "$ac_t""$ac_cv_type_signal" 1>&6
3889 { test "$extra_verbose" = "yes" && cat << EOF
3890 Defining RETSIGTYPE = $ac_cv_type_signal
3892 cat >> confdefs.h <<EOF
3893 #define RETSIGTYPE $ac_cv_type_signal
3898 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3899 echo "configure:3900: checking for size_t" >&5
3901 cat > conftest.$ac_ext <<EOF
3902 #line 3903 "configure"
3903 #include "confdefs.h"
3904 #include <sys/types.h>
3910 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3911 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3913 ac_cv_type_size_t=yes
3916 ac_cv_type_size_t=no
3920 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3921 if test $ac_cv_type_size_t = no; then
3922 { test "$extra_verbose" = "yes" && cat << \EOF
3923 Defining size_t = unsigned
3925 cat >> confdefs.h <<\EOF
3926 #define size_t unsigned
3932 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3933 echo "configure:3934: checking for pid_t" >&5
3935 cat > conftest.$ac_ext <<EOF
3936 #line 3937 "configure"
3937 #include "confdefs.h"
3938 #include <sys/types.h>
3944 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3945 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3947 ac_cv_type_pid_t=yes
3954 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3955 if test $ac_cv_type_pid_t = no; then
3956 { test "$extra_verbose" = "yes" && cat << \EOF
3957 Defining pid_t = int
3959 cat >> confdefs.h <<\EOF
3966 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3967 echo "configure:3968: checking for uid_t in sys/types.h" >&5
3969 cat > conftest.$ac_ext <<EOF
3970 #line 3971 "configure"
3971 #include "confdefs.h"
3972 #include <sys/types.h>
3974 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3975 egrep "uid_t" >/dev/null 2>&1; then
3977 ac_cv_type_uid_t=yes
3985 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3986 if test $ac_cv_type_uid_t = no; then
3987 { test "$extra_verbose" = "yes" && cat << \EOF
3988 Defining uid_t = int
3990 cat >> confdefs.h <<\EOF
3995 { test "$extra_verbose" = "yes" && cat << \EOF
3996 Defining gid_t = int
3998 cat >> confdefs.h <<\EOF
4005 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
4006 echo "configure:4007: checking for mode_t" >&5
4008 cat > conftest.$ac_ext <<EOF
4009 #line 4010 "configure"
4010 #include "confdefs.h"
4011 #include <sys/types.h>
4017 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4018 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4020 ac_cv_type_mode_t=yes
4023 ac_cv_type_mode_t=no
4027 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
4028 if test $ac_cv_type_mode_t = no; then
4029 { test "$extra_verbose" = "yes" && cat << \EOF
4030 Defining mode_t = int
4032 cat >> confdefs.h <<\EOF
4039 echo $ac_n "checking for off_t""... $ac_c" 1>&6
4040 echo "configure:4041: checking for off_t" >&5
4042 cat > conftest.$ac_ext <<EOF
4043 #line 4044 "configure"
4044 #include "confdefs.h"
4045 #include <sys/types.h>
4051 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4052 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4054 ac_cv_type_off_t=yes
4061 echo "$ac_t""$ac_cv_type_off_t" 1>&6
4062 if test $ac_cv_type_off_t = no; then
4063 { test "$extra_verbose" = "yes" && cat << \EOF
4064 Defining off_t = long
4066 cat >> confdefs.h <<\EOF
4073 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
4074 echo "configure:4075: checking for ssize_t" >&5
4076 cat > conftest.$ac_ext <<EOF
4077 #line 4078 "configure"
4078 #include "confdefs.h"
4079 #include <sys/types.h>
4085 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4086 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4088 ac_cv_type_ssize_t=yes
4091 ac_cv_type_ssize_t=no
4095 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
4096 if test $ac_cv_type_ssize_t = no; then
4097 { test "$extra_verbose" = "yes" && cat << \EOF
4098 Defining ssize_t = int
4100 cat >> confdefs.h <<\EOF
4108 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
4109 echo "configure:4110: checking for socklen_t" >&5
4110 cat > conftest.$ac_ext <<EOF
4111 #line 4112 "configure"
4112 #include "confdefs.h"
4113 #include <sys/types.h>
4114 #include <sys/socket.h>
4121 if { (eval echo configure:4122: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4123 echo "$ac_t""yes" 1>&6
4125 echo "configure: failed program was:" >&5
4126 cat conftest.$ac_ext >&5
4129 cat > conftest.$ac_ext <<EOF
4130 #line 4131 "configure"
4131 #include "confdefs.h"
4132 #include <sys/types.h>
4133 #include <sys/socket.h>
4134 int accept (int, struct sockaddr *, size_t *);
4140 if { (eval echo configure:4141: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4143 echo "$ac_t""size_t" 1>&6
4144 { test "$extra_verbose" = "yes" && cat << \EOF
4145 Defining socklen_t = size_t
4147 cat >> confdefs.h <<\EOF
4148 #define socklen_t size_t
4153 echo "configure: failed program was:" >&5
4154 cat conftest.$ac_ext >&5
4157 echo "$ac_t""int" 1>&6
4158 { test "$extra_verbose" = "yes" && cat << \EOF
4159 Defining socklen_t = int
4161 cat >> confdefs.h <<\EOF
4162 #define socklen_t int
4171 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
4172 echo "configure:4173: checking for struct timeval" >&5
4173 cat > conftest.$ac_ext <<EOF
4174 #line 4175 "configure"
4175 #include "confdefs.h"
4176 #ifdef TIME_WITH_SYS_TIME
4177 #include <sys/time.h>
4180 #ifdef HAVE_SYS_TIME_H
4181 #include <sys/time.h>
4187 static struct timeval x; x.tv_sec = x.tv_usec;
4190 if { (eval echo configure:4191: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4192 echo "$ac_t""yes" 1>&6
4194 { test "$extra_verbose" = "yes" && cat << \EOF
4195 Defining HAVE_TIMEVAL
4197 cat >> confdefs.h <<\EOF
4198 #define HAVE_TIMEVAL 1
4203 echo "configure: failed program was:" >&5
4204 cat conftest.$ac_ext >&5
4206 echo "$ac_t""no" 1>&6
4211 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
4212 echo "configure:4213: checking whether struct tm is in sys/time.h or time.h" >&5
4214 cat > conftest.$ac_ext <<EOF
4215 #line 4216 "configure"
4216 #include "confdefs.h"
4217 #include <sys/types.h>
4220 struct tm *tp; tp->tm_sec;
4223 if { (eval echo configure:4224: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4225 ac_cv_struct_tm=time.h
4227 echo "configure: failed program was:" >&5
4228 cat conftest.$ac_ext >&5
4230 ac_cv_struct_tm=sys/time.h
4234 echo "$ac_t""$ac_cv_struct_tm" 1>&6
4235 if test $ac_cv_struct_tm = sys/time.h; then
4236 { test "$extra_verbose" = "yes" && cat << \EOF
4237 Defining TM_IN_SYS_TIME
4239 cat >> confdefs.h <<\EOF
4240 #define TM_IN_SYS_TIME 1
4246 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
4247 echo "configure:4248: checking for tm_zone in struct tm" >&5
4249 cat > conftest.$ac_ext <<EOF
4250 #line 4251 "configure"
4251 #include "confdefs.h"
4252 #include <sys/types.h>
4253 #include <$ac_cv_struct_tm>
4255 struct tm tm; tm.tm_zone;
4258 if { (eval echo configure:4259: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4260 ac_cv_struct_tm_zone=yes
4262 echo "configure: failed program was:" >&5
4263 cat conftest.$ac_ext >&5
4265 ac_cv_struct_tm_zone=no
4269 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
4270 if test "$ac_cv_struct_tm_zone" = yes; then
4271 { test "$extra_verbose" = "yes" && cat << \EOF
4272 Defining HAVE_TM_ZONE
4274 cat >> confdefs.h <<\EOF
4275 #define HAVE_TM_ZONE 1
4280 echo $ac_n "checking for tzname""... $ac_c" 1>&6
4281 echo "configure:4282: checking for tzname" >&5
4283 cat > conftest.$ac_ext <<EOF
4284 #line 4285 "configure"
4285 #include "confdefs.h"
4287 #ifndef tzname /* For SGI. */
4288 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4294 if { (eval echo configure:4295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4296 ac_cv_var_tzname=yes
4298 echo "configure: failed program was:" >&5
4299 cat conftest.$ac_ext >&5
4305 echo "$ac_t""$ac_cv_var_tzname" 1>&6
4306 if test $ac_cv_var_tzname = yes; then
4307 { test "$extra_verbose" = "yes" && cat << \EOF
4308 Defining HAVE_TZNAME
4310 cat >> confdefs.h <<\EOF
4311 #define HAVE_TZNAME 1
4319 echo $ac_n "checking for working const""... $ac_c" 1>&6
4320 echo "configure:4321: checking for working const" >&5
4322 cat > conftest.$ac_ext <<EOF
4323 #line 4324 "configure"
4324 #include "confdefs.h"
4328 /* Ultrix mips cc rejects this. */
4329 typedef int charset[2]; const charset x;
4330 /* SunOS 4.1.1 cc rejects this. */
4331 char const *const *ccp;
4333 /* NEC SVR4.0.2 mips cc rejects this. */
4334 struct point {int x, y;};
4335 static struct point const zero = {0,0};
4336 /* AIX XL C 1.02.0.0 rejects this.
4337 It does not let you subtract one const X* pointer from another in an arm
4338 of an if-expression whose if-part is not a constant expression */
4339 const char *g = "string";
4340 ccp = &g + (g ? g-g : 0);
4341 /* HPUX 7.0 cc rejects these. */
4344 ccp = (char const *const *) p;
4345 { /* SCO 3.2v4 cc rejects this. */
4347 char const *s = 0 ? (char *) 0 : (char const *) 0;
4351 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4353 const int *foo = &x[0];
4356 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4357 typedef const int *iptr;
4361 { /* AIX XL C 1.02.0.0 rejects this saying
4362 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4363 struct s { int j; const int *ap[3]; };
4364 struct s *b; b->j = 5;
4366 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4372 if { (eval echo configure:4373: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4376 echo "configure: failed program was:" >&5
4377 cat conftest.$ac_ext >&5
4383 echo "$ac_t""$ac_cv_c_const" 1>&6
4384 if test $ac_cv_c_const = no; then
4385 { test "$extra_verbose" = "yes" && cat << \EOF
4388 cat >> confdefs.h <<\EOF
4396 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
4397 echo "configure:4398: checking whether ${MAKE-make} sets \${MAKE}" >&5
4398 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
4400 cat > conftestmake <<\EOF
4402 @echo 'ac_maketemp="${MAKE}"'
4404 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4405 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
4406 if test -n "$ac_maketemp"; then
4407 eval ac_cv_prog_make_${ac_make}_set=yes
4409 eval ac_cv_prog_make_${ac_make}_set=no
4412 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4413 echo "$ac_t""yes" 1>&6
4416 echo "$ac_t""no" 1>&6
4417 SET_MAKE="MAKE=${MAKE-make}"
4421 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
4422 echo "configure:4423: checking whether byte ordering is bigendian" >&5
4424 ac_cv_c_bigendian=unknown
4425 # See if sys/param.h defines the BYTE_ORDER macro.
4426 cat > conftest.$ac_ext <<EOF
4427 #line 4428 "configure"
4428 #include "confdefs.h"
4429 #include <sys/types.h>
4430 #include <sys/param.h>
4433 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4438 if { (eval echo configure:4439: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4440 # It does; now see whether it defined to BIG_ENDIAN or not.
4441 cat > conftest.$ac_ext <<EOF
4442 #line 4443 "configure"
4443 #include "confdefs.h"
4444 #include <sys/types.h>
4445 #include <sys/param.h>
4448 #if BYTE_ORDER != BIG_ENDIAN
4453 if { (eval echo configure:4454: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4455 ac_cv_c_bigendian=yes
4457 echo "configure: failed program was:" >&5
4458 cat conftest.$ac_ext >&5
4460 ac_cv_c_bigendian=no
4464 echo "configure: failed program was:" >&5
4465 cat conftest.$ac_ext >&5
4468 if test $ac_cv_c_bigendian = unknown; then
4469 cat > conftest.$ac_ext <<EOF
4470 #line 4471 "configure"
4471 #include "confdefs.h"
4473 /* Are we little or big endian? From Harbison&Steele. */
4477 char c[sizeof (long)];
4480 exit (u.c[sizeof (long) - 1] == 1);
4483 if { (eval echo configure:4484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4485 ac_cv_c_bigendian=no
4488 echo "configure: failed program was:" >&5
4489 cat conftest.$ac_ext >&5
4491 ac_cv_c_bigendian=yes
4496 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
4497 if test $ac_cv_c_bigendian = yes; then
4498 { test "$extra_verbose" = "yes" && cat << \EOF
4499 Defining WORDS_BIGENDIAN
4501 cat >> confdefs.h <<\EOF
4502 #define WORDS_BIGENDIAN 1
4509 echo $ac_n "checking size of short""... $ac_c" 1>&6
4510 echo "configure:4511: checking size of short" >&5
4512 cat > conftest.$ac_ext <<EOF
4513 #line 4514 "configure"
4514 #include "confdefs.h"
4518 FILE *f=fopen("conftestval", "w");
4520 fprintf(f, "%d\n", sizeof(short));
4524 if { (eval echo configure:4525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4526 ac_cv_sizeof_short=`cat conftestval`
4529 echo "configure: failed program was:" >&5
4530 cat conftest.$ac_ext >&5
4532 ac_cv_sizeof_short=0
4535 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
4536 { test "$extra_verbose" = "yes" && cat << EOF
4537 Defining SIZEOF_SHORT = $ac_cv_sizeof_short
4539 cat >> confdefs.h <<EOF
4540 #define SIZEOF_SHORT $ac_cv_sizeof_short
4545 if test "$ac_cv_sizeof_short" = 0; then
4547 echo "*** PANIC *** Configure tests are not working - compiler is broken."
4548 echo "*** PANIC *** Please examine config.log for compilation errors."
4551 echo $ac_n "checking size of int""... $ac_c" 1>&6
4552 echo "configure:4553: checking size of int" >&5
4554 cat > conftest.$ac_ext <<EOF
4555 #line 4556 "configure"
4556 #include "confdefs.h"
4560 FILE *f=fopen("conftestval", "w");
4562 fprintf(f, "%d\n", sizeof(int));
4566 if { (eval echo configure:4567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4568 ac_cv_sizeof_int=`cat conftestval`
4571 echo "configure: failed program was:" >&5
4572 cat conftest.$ac_ext >&5
4577 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
4578 { test "$extra_verbose" = "yes" && cat << EOF
4579 Defining SIZEOF_INT = $ac_cv_sizeof_int
4581 cat >> confdefs.h <<EOF
4582 #define SIZEOF_INT $ac_cv_sizeof_int
4587 echo $ac_n "checking size of long""... $ac_c" 1>&6
4588 echo "configure:4589: checking size of long" >&5
4590 cat > conftest.$ac_ext <<EOF
4591 #line 4592 "configure"
4592 #include "confdefs.h"
4596 FILE *f=fopen("conftestval", "w");
4598 fprintf(f, "%d\n", sizeof(long));
4602 if { (eval echo configure:4603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4604 ac_cv_sizeof_long=`cat conftestval`
4607 echo "configure: failed program was:" >&5
4608 cat conftest.$ac_ext >&5
4613 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
4614 { test "$extra_verbose" = "yes" && cat << EOF
4615 Defining SIZEOF_LONG = $ac_cv_sizeof_long
4617 cat >> confdefs.h <<EOF
4618 #define SIZEOF_LONG $ac_cv_sizeof_long
4623 echo $ac_n "checking size of long long""... $ac_c" 1>&6
4624 echo "configure:4625: checking size of long long" >&5
4626 cat > conftest.$ac_ext <<EOF
4627 #line 4628 "configure"
4628 #include "confdefs.h"
4632 FILE *f=fopen("conftestval", "w");
4634 fprintf(f, "%d\n", sizeof(long long));
4638 if { (eval echo configure:4639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4640 ac_cv_sizeof_long_long=`cat conftestval`
4643 echo "configure: failed program was:" >&5
4644 cat conftest.$ac_ext >&5
4646 ac_cv_sizeof_long_long=0
4649 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
4650 { test "$extra_verbose" = "yes" && cat << EOF
4651 Defining SIZEOF_LONG_LONG = $ac_cv_sizeof_long_long
4653 cat >> confdefs.h <<EOF
4654 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4659 echo $ac_n "checking size of void *""... $ac_c" 1>&6
4660 echo "configure:4661: checking size of void *" >&5
4662 cat > conftest.$ac_ext <<EOF
4663 #line 4664 "configure"
4664 #include "confdefs.h"
4668 FILE *f=fopen("conftestval", "w");
4670 fprintf(f, "%d\n", sizeof(void *));
4674 if { (eval echo configure:4675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4676 ac_cv_sizeof_void_p=`cat conftestval`
4679 echo "configure: failed program was:" >&5
4680 cat conftest.$ac_ext >&5
4682 ac_cv_sizeof_void_p=0
4685 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
4686 { test "$extra_verbose" = "yes" && cat << EOF
4687 Defining SIZEOF_VOID_P = $ac_cv_sizeof_void_p
4689 cat >> confdefs.h <<EOF
4690 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4697 cygwin* ) cat > conftest.$ac_ext <<EOF
4698 #line 4699 "configure"
4699 #include "confdefs.h"
4700 #include <cygwin/types.h>
4702 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4703 egrep "typedef.*intptr_t;" >/dev/null 2>&1; then
4705 echo "$ac_t""yes" 1>&6
4706 { test "$extra_verbose" = "yes" && cat << \EOF
4707 Defining INTPTR_T_IN_CYGWIN_TYPES_H = 1
4709 cat >> confdefs.h <<\EOF
4710 #define INTPTR_T_IN_CYGWIN_TYPES_H 1
4716 echo "$ac_t""no" 1>&6
4722 echo $ac_n "checking for long file names""... $ac_c" 1>&6
4723 echo "configure:4724: checking for long file names" >&5
4725 ac_cv_sys_long_file_names=yes
4726 # Test for long file names in all the places we know might matter:
4727 # . the current directory, where building will happen
4728 # $prefix/lib where we will be installing things
4729 # $exec_prefix/lib likewise
4730 # eval it to expand exec_prefix.
4731 # $TMPDIR if set, where it might want to write temporary files
4732 # if $TMPDIR is not set:
4733 # /tmp where it might want to write temporary files
4736 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
4737 ac_tmpdirs="$TMPDIR"
4739 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
4741 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
4742 test -d $ac_dir || continue
4743 test -w $ac_dir || continue # It is less confusing to not echo anything here.
4744 (echo 1 > $ac_dir/conftest9012345) 2>/dev/null
4745 (echo 2 > $ac_dir/conftest9012346) 2>/dev/null
4746 val=`cat $ac_dir/conftest9012345 2>/dev/null`
4747 if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then
4748 ac_cv_sys_long_file_names=no
4749 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
4752 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
4755 echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
4756 if test $ac_cv_sys_long_file_names = yes; then
4757 { test "$extra_verbose" = "yes" && cat << \EOF
4758 Defining HAVE_LONG_FILE_NAMES
4760 cat >> confdefs.h <<\EOF
4761 #define HAVE_LONG_FILE_NAMES 1
4768 echo $ac_n "checking for sin""... $ac_c" 1>&6
4769 echo "configure:4770: checking for sin" >&5
4771 cat > conftest.$ac_ext <<EOF
4772 #line 4773 "configure"
4773 #include "confdefs.h"
4774 /* System header to define __stub macros and hopefully few prototypes,
4775 which can conflict with char sin(); below. */
4777 /* Override any gcc2 internal prototype to avoid an error. */
4778 /* We use char because int might match the return type of a gcc2
4779 builtin and then its argument prototype would still apply. */
4784 /* The GNU C library defines this for functions which it implements
4785 to always fail with ENOSYS. Some functions are actually named
4786 something starting with __ and the normal name is an alias. */
4787 #if defined (__stub_sin) || defined (__stub___sin)
4795 if { (eval echo configure:4796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4797 eval "ac_cv_func_sin=yes"
4799 echo "configure: failed program was:" >&5
4800 cat conftest.$ac_ext >&5
4802 eval "ac_cv_func_sin=no"
4806 if eval "test \"`echo '$ac_cv_func_'sin`\" = yes"; then
4807 echo "$ac_t""yes" 1>&6
4810 echo "$ac_t""no" 1>&6
4812 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
4813 echo "configure:4814: checking for sin in -lm" >&5
4814 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
4816 xe_check_libs=" -lm "
4817 cat > conftest.$ac_ext <<EOF
4818 #line 4819 "configure"
4819 #include "confdefs.h"
4820 /* Override any gcc2 internal prototype to avoid an error. */
4821 /* We use char because int might match the return type of a gcc2
4822 builtin and then its argument prototype would still apply. */
4829 if { (eval echo configure:4830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4831 eval "ac_cv_lib_$ac_lib_var=yes"
4833 echo "configure: failed program was:" >&5
4834 cat conftest.$ac_ext >&5
4836 eval "ac_cv_lib_$ac_lib_var=no"
4841 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4842 echo "$ac_t""yes" 1>&6
4843 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/^a-zA-Z0-9_/_/g' \
4844 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4845 { test "$extra_verbose" = "yes" && cat << EOF
4848 cat >> confdefs.h <<EOF
4849 #define $ac_tr_lib 1
4853 LIBS="-lm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lm\" to \$LIBS"; fi
4856 echo "$ac_t""no" 1>&6
4863 { test "$extra_verbose" = "yes" && cat << \EOF
4864 Defining LISP_FLOAT_TYPE
4866 cat >> confdefs.h <<\EOF
4867 #define LISP_FLOAT_TYPE 1
4872 cat > conftest.$ac_ext <<EOF
4873 #line 4874 "configure"
4874 #include "confdefs.h"
4877 return atanh(1.0) + asinh(1.0) + acosh(1.0);
4880 if { (eval echo configure:4881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4882 { test "$extra_verbose" = "yes" && cat << \EOF
4883 Defining HAVE_INVERSE_HYPERBOLIC
4885 cat >> confdefs.h <<\EOF
4886 #define HAVE_INVERSE_HYPERBOLIC 1
4891 echo "configure: failed program was:" >&5
4892 cat conftest.$ac_ext >&5
4896 echo "checking type of mail spool file locking" 1>&6
4897 echo "configure:4898: checking type of mail spool file locking" >&5
4898 for ac_func in lockf flock
4900 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4901 echo "configure:4902: checking for $ac_func" >&5
4903 cat > conftest.$ac_ext <<EOF
4904 #line 4905 "configure"
4905 #include "confdefs.h"
4906 /* System header to define __stub macros and hopefully few prototypes,
4907 which can conflict with char $ac_func(); below. */
4909 /* Override any gcc2 internal prototype to avoid an error. */
4910 /* We use char because int might match the return type of a gcc2
4911 builtin and then its argument prototype would still apply. */
4916 /* The GNU C library defines this for functions which it implements
4917 to always fail with ENOSYS. Some functions are actually named
4918 something starting with __ and the normal name is an alias. */
4919 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4927 if { (eval echo configure:4928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4929 eval "ac_cv_func_$ac_func=yes"
4931 echo "configure: failed program was:" >&5
4932 cat conftest.$ac_ext >&5
4934 eval "ac_cv_func_$ac_func=no"
4938 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4939 echo "$ac_t""yes" 1>&6
4940 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4941 { test "$extra_verbose" = "yes" && cat << EOF
4942 Defining $ac_tr_func
4944 cat >> confdefs.h <<EOF
4945 #define $ac_tr_func 1
4950 echo "$ac_t""no" 1>&6
4954 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock
4955 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf
4956 test -z "$mail_locking" -a "$mail_use_locking" = "yes" && mail_locking=locking
4957 if test -z "$mail_locking"; then
4958 case "$opsys" in cygwin* | mingw*)
4963 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF
4964 Defining MAIL_LOCK_LOCKF
4966 cat >> confdefs.h <<\EOF
4967 #define MAIL_LOCK_LOCKF 1
4971 elif test "$mail_locking" = "flock"; then { test "$extra_verbose" = "yes" && cat << \EOF
4972 Defining MAIL_LOCK_FLOCK
4974 cat >> confdefs.h <<\EOF
4975 #define MAIL_LOCK_FLOCK 1
4979 elif test "$mail_locking" = "locking"; then { test "$extra_verbose" = "yes" && cat << \EOF
4980 Defining MAIL_LOCK_LOCKING
4982 cat >> confdefs.h <<\EOF
4983 #define MAIL_LOCK_LOCKING 1
4987 elif test "$mail_locking" = "pop"; then
4990 else mail_locking="dot-locking"; { test "$extra_verbose" = "yes" && cat << \EOF
4991 Defining MAIL_LOCK_DOT
4993 cat >> confdefs.h <<\EOF
4994 #define MAIL_LOCK_DOT 1
4999 test "$mail_locking" = "lockf" -a "$ac_cv_func_lockf" != "yes" && \
5000 { echo "Error:" "lockf mail locking requested but not available." >&2; exit 1; }
5001 test "$mail_locking" = "flock" -a "$ac_cv_func_flock" != "yes" && \
5002 { echo "Error:" "flock mail locking requested but not available." >&2; exit 1; }
5003 test "$mail_locking" = "locking" -a "$ac_cv_func_locking" != "yes" && \
5004 { echo "Error:" "locking mail locking requested but not available." >&2; exit 1; }
5006 case "$opsys" in decosf*)
5008 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
5009 echo "configure:5010: checking for cma_open in -lpthreads" >&5
5010 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
5012 xe_check_libs=" -lpthreads "
5013 cat > conftest.$ac_ext <<EOF
5014 #line 5015 "configure"
5015 #include "confdefs.h"
5016 /* Override any gcc2 internal prototype to avoid an error. */
5017 /* We use char because int might match the return type of a gcc2
5018 builtin and then its argument prototype would still apply. */
5025 if { (eval echo configure:5026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5027 eval "ac_cv_lib_$ac_lib_var=yes"
5029 echo "configure: failed program was:" >&5
5030 cat conftest.$ac_ext >&5
5032 eval "ac_cv_lib_$ac_lib_var=no"
5037 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5038 echo "$ac_t""yes" 1>&6
5039 ac_tr_lib=HAVE_LIB`echo pthreads | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5040 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5041 { test "$extra_verbose" = "yes" && cat << EOF
5044 cat >> confdefs.h <<EOF
5045 #define $ac_tr_lib 1
5049 LIBS="-lpthreads $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpthreads\" to \$LIBS"; fi
5052 echo "$ac_t""no" 1>&6
5056 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \
5057 c_switch_site="$c_switch_site -threads" ;;
5061 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6
5062 echo "configure:5063: checking whether the -xildoff compiler flag is required" >&5
5063 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
5064 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ;
5065 then echo "$ac_t""no" 1>&6;
5066 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
5068 else echo "$ac_t""no" 1>&6
5071 if test "$opsys" = "sol2"; then
5072 if test "$os_release" -ge 506; then
5073 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6
5074 echo "configure:5075: checking for \"-z ignore\" linker flag" >&5
5075 case "`ld -h 2>&1`" in
5076 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6
5077 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;;
5078 *) echo "$ac_t""no" 1>&6 ;;
5084 echo "checking "for specified window system"" 1>&6
5085 echo "configure:5086: checking "for specified window system"" >&5
5091 if test "$with_gnome" != "no"; then
5092 echo $ac_n "checking for GNOME configuration script""... $ac_c" 1>&6
5093 echo "configure:5094: checking for GNOME configuration script" >&5
5094 for possible in gnome-config
5096 possible_version=`${possible} --version 2> /dev/null`
5097 if test "x${possible_version}" != "x"; then
5098 GNOME_CONFIG="${possible}"
5104 echo "$ac_t""${GNOME_CONFIG}" 1>&6
5107 if test "${GNOME_CONFIG}" != "no"; then
5108 GNOME_LIBS=`${GNOME_CONFIG} --libs gnomeui`
5109 GNOME_CFLAGS=`${GNOME_CONFIG} --cflags gnomeui`
5110 { test "$extra_verbose" = "yes" && cat << \EOF
5113 cat >> confdefs.h <<\EOF
5114 #define HAVE_GNOME 1
5118 libs_gtk="$libs_gtk ${GNOME_LIBS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GNOME_LIBS}\" to \$libs_gtk"; fi
5119 c_switch_gtk="$c_switch_gtk ${GNOME_CFLAGS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GNOME_CFLAGS}\" to \$c_switch_gtk"; fi
5122 if test "$with_gtk" != "no";then
5123 echo $ac_n "checking for GTK configuration script""... $ac_c" 1>&6
5124 echo "configure:5125: checking for GTK configuration script" >&5
5125 for possible in gtk12-config gtk14-config gtk-config
5127 possible_version=`${possible} --version 2> /dev/null`
5128 if test "x${possible_version}" != "x"; then
5129 GTK_CONFIG="${possible}"
5130 case "${possible_version}" in
5131 1.0.*) echo "configure: warning: GTK 1.2 is required, please upgrade your version of GTK." 1>&2; with_gtk=no;;
5132 1.3.*) echo "configure: warning: GTK 1.3 is not supported right now" 1>&2; with_gtk=no;;
5137 *) echo "configure: warning: Found unsupported version of GTK: $possible_version" 1>&2;;
5141 echo "$ac_t""${GTK_CONFIG}" 1>&6
5144 if test "${GTK_CONFIG}" != "no"; then
5145 echo $ac_n "checking gtk version""... $ac_c" 1>&6
5146 echo "configure:5147: checking gtk version" >&5
5147 GTK_VERSION=`${GTK_CONFIG} --version`
5148 echo "$ac_t""${GTK_VERSION}" 1>&6
5150 echo $ac_n "checking gtk libs""... $ac_c" 1>&6
5151 echo "configure:5152: checking gtk libs" >&5
5152 GTK_LIBS=`${GTK_CONFIG} --libs`
5153 libs_gtk="$libs_gtk ${GTK_LIBS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GTK_LIBS}\" to \$libs_gtk"; fi
5154 echo "$ac_t""${GTK_LIBS}" 1>&6
5156 echo $ac_n "checking gtk cflags""... $ac_c" 1>&6
5157 echo "configure:5158: checking gtk cflags" >&5
5158 GTK_CFLAGS=`${GTK_CONFIG} --cflags`
5159 if test "$GCC" = "yes"; then
5160 GTK_CFLAGS="${GTK_CFLAGS} -Wno-shadow"
5162 c_switch_gtk="$c_switch_gtk ${GTK_CFLAGS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GTK_CFLAGS}\" to \$c_switch_gtk"; fi
5163 echo "$ac_t""${GTK_CFLAGS}" 1>&6
5166 echo $ac_n "checking for main in -lgdk_imlib""... $ac_c" 1>&6
5167 echo "configure:5168: checking for main in -lgdk_imlib" >&5
5168 ac_lib_var=`echo gdk_imlib'_'main | sed 'y%./+-%__p_%'`
5170 xe_check_libs=" -lgdk_imlib "
5171 cat > conftest.$ac_ext <<EOF
5172 #line 5173 "configure"
5173 #include "confdefs.h"
5179 if { (eval echo configure:5180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5181 eval "ac_cv_lib_$ac_lib_var=yes"
5183 echo "configure: failed program was:" >&5
5184 cat conftest.$ac_ext >&5
5186 eval "ac_cv_lib_$ac_lib_var=no"
5191 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5192 echo "$ac_t""yes" 1>&6
5193 libs_gtk="-lgdk_imlib $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgdk_imlib\" to \$libs_gtk"; fi
5195 echo "$ac_t""no" 1>&6
5200 echo $ac_n "checking for Imlib_init in -lImlib""... $ac_c" 1>&6
5201 echo "configure:5202: checking for Imlib_init in -lImlib" >&5
5202 ac_lib_var=`echo Imlib'_'Imlib_init | sed 'y%./+-%__p_%'`
5204 xe_check_libs=" -lImlib "
5205 cat > conftest.$ac_ext <<EOF
5206 #line 5207 "configure"
5207 #include "confdefs.h"
5208 /* Override any gcc2 internal prototype to avoid an error. */
5209 /* We use char because int might match the return type of a gcc2
5210 builtin and then its argument prototype would still apply. */
5217 if { (eval echo configure:5218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5219 eval "ac_cv_lib_$ac_lib_var=yes"
5221 echo "configure: failed program was:" >&5
5222 cat conftest.$ac_ext >&5
5224 eval "ac_cv_lib_$ac_lib_var=no"
5229 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5230 echo "$ac_t""yes" 1>&6
5231 libs_gtk="$libs_gtk -lImlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lImlib\" to \$libs_gtk"; fi
5233 echo "$ac_t""no" 1>&6
5237 for ac_func in gdk_imlib_init
5239 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5240 echo "configure:5241: checking for $ac_func" >&5
5242 cat > conftest.$ac_ext <<EOF
5243 #line 5244 "configure"
5244 #include "confdefs.h"
5245 /* System header to define __stub macros and hopefully few prototypes,
5246 which can conflict with char $ac_func(); below. */
5248 /* Override any gcc2 internal prototype to avoid an error. */
5249 /* We use char because int might match the return type of a gcc2
5250 builtin and then its argument prototype would still apply. */
5255 /* The GNU C library defines this for functions which it implements
5256 to always fail with ENOSYS. Some functions are actually named
5257 something starting with __ and the normal name is an alias. */
5258 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5266 if { (eval echo configure:5267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5268 eval "ac_cv_func_$ac_func=yes"
5270 echo "configure: failed program was:" >&5
5271 cat conftest.$ac_ext >&5
5273 eval "ac_cv_func_$ac_func=no"
5277 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5278 echo "$ac_t""yes" 1>&6
5279 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5280 { test "$extra_verbose" = "yes" && cat << EOF
5281 Defining $ac_tr_func
5283 cat >> confdefs.h <<EOF
5284 #define $ac_tr_func 1
5289 echo "$ac_t""no" 1>&6
5294 { test "$extra_verbose" = "yes" && cat << \EOF
5297 cat >> confdefs.h <<\EOF
5302 { test "$extra_verbose" = "yes" && cat << \EOF
5305 cat >> confdefs.h <<\EOF
5316 test "${with_scrollbars}" != "no" && with_scrollbars=gtk
5317 test "${with_toolbars}" != no && with_toolbars=gtk
5318 test "${with_menubars}" != "no" && with_menubars=gtk
5319 test "${with_dialogs}" != "no" && with_dialogs=gtk
5320 test "${with_widgets}" != "no" && with_widgets=gtk
5322 extra_objs="$extra_objs console-gtk.o device-gtk.o event-gtk.o frame-gtk.o" && if test "$extra_verbose" = "yes"; then
5323 echo " xemacs will be linked with \"console-gtk.o device-gtk.o event-gtk.o frame-gtk.o\""
5325 extra_objs="$extra_objs objects-gtk.o redisplay-gtk.o glyphs-gtk.o" && if test "$extra_verbose" = "yes"; then
5326 echo " xemacs will be linked with \"objects-gtk.o redisplay-gtk.o glyphs-gtk.o\""
5328 extra_objs="$extra_objs select-gtk.o gccache-gtk.o" && if test "$extra_verbose" = "yes"; then
5329 echo " xemacs will be linked with \"select-gtk.o gccache-gtk.o\""
5331 extra_objs="$extra_objs gtk-xemacs.o ui-gtk.o" && if test "$extra_verbose" = "yes"; then
5332 echo " xemacs will be linked with \"gtk-xemacs.o ui-gtk.o\""
5335 OLD_CFLAGS="${CFLAGS}"
5336 OLD_CPPFLAGS="${CPPFLAGS}"
5337 OLD_LDFLAGS="${LDFLAGS}"
5338 CFLAGS="${GTK_CFLAGS} ${CFLAGS}"
5339 CPPFLAGS="${GTK_CFLAGS} ${CFLAGS}"
5340 LDFLAGS="${LDFLAGS} ${GTK_LIBS}"
5341 for ac_hdr in glade/glade.h glade.h
5343 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5344 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5345 echo "configure:5346: checking for $ac_hdr" >&5
5347 cat > conftest.$ac_ext <<EOF
5348 #line 5349 "configure"
5349 #include "confdefs.h"
5352 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5353 { (eval echo configure:5354: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5354 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5355 if test -z "$ac_err"; then
5357 eval "ac_cv_header_$ac_safe=yes"
5360 echo "configure: failed program was:" >&5
5361 cat conftest.$ac_ext >&5
5363 eval "ac_cv_header_$ac_safe=no"
5366 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5367 echo "$ac_t""yes" 1>&6
5368 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5369 { test "$extra_verbose" = "yes" && cat << EOF
5372 cat >> confdefs.h <<EOF
5373 #define $ac_tr_hdr 1
5378 echo "$ac_t""no" 1>&6
5383 echo $ac_n "checking for main in -lxml""... $ac_c" 1>&6
5384 echo "configure:5385: checking for main in -lxml" >&5
5385 ac_lib_var=`echo xml'_'main | sed 'y%./+-%__p_%'`
5387 xe_check_libs=" -lxml "
5388 cat > conftest.$ac_ext <<EOF
5389 #line 5390 "configure"
5390 #include "confdefs.h"
5396 if { (eval echo configure:5397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5398 eval "ac_cv_lib_$ac_lib_var=yes"
5400 echo "configure: failed program was:" >&5
5401 cat conftest.$ac_ext >&5
5403 eval "ac_cv_lib_$ac_lib_var=no"
5408 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5409 echo "$ac_t""yes" 1>&6
5410 libs_gtk="-lxml $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lxml\" to \$libs_gtk"; fi
5412 echo "$ac_t""no" 1>&6
5417 echo $ac_n "checking for main in -lglade""... $ac_c" 1>&6
5418 echo "configure:5419: checking for main in -lglade" >&5
5419 ac_lib_var=`echo glade'_'main | sed 'y%./+-%__p_%'`
5421 xe_check_libs=" -lglade "
5422 cat > conftest.$ac_ext <<EOF
5423 #line 5424 "configure"
5424 #include "confdefs.h"
5430 if { (eval echo configure:5431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5432 eval "ac_cv_lib_$ac_lib_var=yes"
5434 echo "configure: failed program was:" >&5
5435 cat conftest.$ac_ext >&5
5437 eval "ac_cv_lib_$ac_lib_var=no"
5442 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5443 echo "$ac_t""yes" 1>&6
5444 libs_gtk="-lglade $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lglade\" to \$libs_gtk"; fi
5446 echo "$ac_t""no" 1>&6
5451 echo $ac_n "checking for main in -lglade-gnome""... $ac_c" 1>&6
5452 echo "configure:5453: checking for main in -lglade-gnome" >&5
5453 ac_lib_var=`echo glade-gnome'_'main | sed 'y%./+-%__p_%'`
5455 xe_check_libs=" -lglade-gnome "
5456 cat > conftest.$ac_ext <<EOF
5457 #line 5458 "configure"
5458 #include "confdefs.h"
5464 if { (eval echo configure:5465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5466 eval "ac_cv_lib_$ac_lib_var=yes"
5468 echo "configure: failed program was:" >&5
5469 cat conftest.$ac_ext >&5
5471 eval "ac_cv_lib_$ac_lib_var=no"
5476 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5477 echo "$ac_t""yes" 1>&6
5478 libs_gtk="-lglade-gnome $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lglade-gnome\" to \$libs_gtk"; fi
5480 echo "$ac_t""no" 1>&6
5484 cat > conftest.$ac_ext <<EOF
5485 #line 5486 "configure"
5486 #include "confdefs.h"
5487 #include <glade/glade-xml.h>
5489 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5490 egrep "char \*txtdomain;" >/dev/null 2>&1; then
5492 echo "$ac_t""yes" 1>&6
5493 { test "$extra_verbose" = "yes" && cat << \EOF
5494 Defining LIBGLADE_XML_TXTDOMAIN = 1
5496 cat >> confdefs.h <<\EOF
5497 #define LIBGLADE_XML_TXTDOMAIN 1
5503 echo "$ac_t""no" 1>&6
5507 CFLAGS="${OLD_CFLAGS}"
5508 CPPFLAGS="${OLD_CPPFLAGS}"
5509 LDFLAGS="${OLD_LDFLAGS}"
5513 if test "$with_x11" != "no"; then
5514 test "$x_includes $x_libraries" != "NONE NONE" && \
5515 window_system=x11 with_x11=yes
5518 if test "$x_includes $x_libraries" = "NONE NONE" \
5519 -a -n "$OPENWINHOME" \
5520 -a "$OPENWINHOME" != "/usr/openwin" \
5521 -a -d "$OPENWINHOME"; then
5522 test -d "$OPENWINHOME/lib" && x_libraries="$OPENWINHOME/lib"
5523 test -d "$OPENWINHOME/include" && x_includes="$OPENWINHOME/include"
5524 test -d "$OPENWINHOME/share/include" && x_includes="$OPENWINHOME/share/include"
5527 if test "$x_includes" = "NONE"; then
5528 for dir in "/usr/X11" "/usr/X11R6"; do
5529 if test -d "$dir/include/X11"; then x_includes="$dir/include"; break; fi
5533 if test "$x_libraries" = "NONE"; then
5534 for dir in "/usr/X11/lib" "/usr/X11R6/lib" "/usr/lib/X11R6"; do
5535 if test -r "$dir/libX11.a"; then x_libraries="$dir"; break; fi
5539 # If we find X, set shell vars x_includes and x_libraries to the
5540 # paths, otherwise set no_x=yes.
5541 # Uses ac_ vars as temps to allow command line to override cache and checks.
5542 # --without-x overrides everything else, but does not touch the cache.
5543 echo $ac_n "checking for X""... $ac_c" 1>&6
5544 echo "configure:5545: checking for X" >&5
5546 # Check whether --with-x or --without-x was given.
5547 if test "${with_x+set}" = set; then
5552 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5553 if test "x$with_x" = xno; then
5554 # The user explicitly disabled X.
5557 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
5558 # Both variables are already set.
5562 # One or both of the vars are not set, and there is no cached value.
5563 ac_x_includes=NO ac_x_libraries=NO
5565 if mkdir conftestdir; then
5567 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5568 cat > Imakefile <<'EOF'
5570 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5572 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5573 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5574 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5575 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5576 for ac_extension in a so sl; do
5577 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
5578 test -f $ac_im_libdir/libX11.$ac_extension; then
5579 ac_im_usrlibdir=$ac_im_libdir; break
5582 # Screen out bogus values from the imake configuration. They are
5583 # bogus both because they are the default anyway, and because
5584 # using them would break gcc on systems where it needs fixed includes.
5585 case "$ac_im_incroot" in
5587 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
5589 case "$ac_im_usrlibdir" in
5591 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
5598 if test "$ac_x_includes" = NO; then
5599 # Guess where to find include files, by looking for this one X11 .h file.
5600 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
5602 # First, try using that file with no special directory specified.
5603 cat > conftest.$ac_ext <<EOF
5604 #line 5605 "configure"
5605 #include "confdefs.h"
5606 #include <$x_direct_test_include>
5608 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5609 { (eval echo configure:5610: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5610 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5611 if test -z "$ac_err"; then
5613 # We can compile using X headers with no special include directory.
5617 echo "configure: failed program was:" >&5
5618 cat conftest.$ac_ext >&5
5620 # Look for the header file in a standard set of common directories.
5621 # Check X11 before X11Rn because it is often a symlink to the current release.
5624 /usr/X11R6/include \
5625 /usr/X11R5/include \
5626 /usr/X11R4/include \
5629 /usr/include/X11R6 \
5630 /usr/include/X11R5 \
5631 /usr/include/X11R4 \
5633 /usr/local/X11/include \
5634 /usr/local/X11R6/include \
5635 /usr/local/X11R5/include \
5636 /usr/local/X11R4/include \
5638 /usr/local/include/X11 \
5639 /usr/local/include/X11R6 \
5640 /usr/local/include/X11R5 \
5641 /usr/local/include/X11R4 \
5645 /usr/XFree86/include/X11 \
5648 /usr/local/include \
5649 /usr/unsupported/include \
5650 /usr/athena/include \
5651 /usr/local/x11r5/include \
5652 /usr/lpp/Xamples/include \
5654 /usr/openwin/include \
5655 /usr/openwin/share/include \
5658 if test -r "$ac_dir/$x_direct_test_include"; then
5659 ac_x_includes=$ac_dir
5665 fi # $ac_x_includes = NO
5667 if test "$ac_x_libraries" = NO; then
5668 # Check for the libraries.
5670 test -z "$x_direct_test_library" && x_direct_test_library=Xt
5671 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
5673 # See if we find them without any special options.
5674 # Don't add to $LIBS permanently.
5675 ac_save_LIBS="$LIBS"
5676 LIBS="-l$x_direct_test_library $LIBS"
5677 cat > conftest.$ac_ext <<EOF
5678 #line 5679 "configure"
5679 #include "confdefs.h"
5682 ${x_direct_test_function}()
5685 if { (eval echo configure:5686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5687 LIBS="$ac_save_LIBS"
5688 # We can link X programs with no special library path.
5691 echo "configure: failed program was:" >&5
5692 cat conftest.$ac_ext >&5
5694 LIBS="$ac_save_LIBS"
5695 # First see if replacing the include by lib works.
5696 # Check X11 before X11Rn because it is often a symlink to the current release.
5697 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
5708 /usr/local/X11/lib \
5709 /usr/local/X11R6/lib \
5710 /usr/local/X11R5/lib \
5711 /usr/local/X11R4/lib \
5713 /usr/local/lib/X11 \
5714 /usr/local/lib/X11R6 \
5715 /usr/local/lib/X11R5 \
5716 /usr/local/lib/X11R4 \
5720 /usr/XFree86/lib/X11 \
5724 /usr/unsupported/lib \
5726 /usr/local/x11r5/lib \
5727 /usr/lpp/Xamples/lib \
5731 /usr/openwin/share/lib \
5734 for ac_extension in a so sl; do
5735 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
5736 ac_x_libraries=$ac_dir
5743 fi # $ac_x_libraries = NO
5745 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
5746 # Didn't find X anywhere. Cache the known absence of X.
5747 ac_cv_have_x="have_x=no"
5749 # Record where we found X for the cache.
5750 ac_cv_have_x="have_x=yes \
5751 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5754 eval "$ac_cv_have_x"
5757 if test "$have_x" != yes; then
5758 echo "$ac_t""$have_x" 1>&6
5761 # If each of the values was on the command line, it overrides each guess.
5762 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5763 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5764 # Update the cache value to reflect the command line values.
5765 ac_cv_have_x="have_x=yes \
5766 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5767 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
5770 if test "$no_x" = yes; then
5771 # Not all programs may use this symbol, but it does not hurt to define it.
5772 { test "$extra_verbose" = "yes" && cat << \EOF
5773 Defining X_DISPLAY_MISSING
5775 cat >> confdefs.h <<\EOF
5776 #define X_DISPLAY_MISSING 1
5780 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5782 if test -n "$x_includes"; then
5783 X_CFLAGS="$X_CFLAGS -I$x_includes"
5786 # It would also be nice to do this for all -L options, not just this one.
5787 if test -n "$x_libraries"; then
5788 X_LIBS="$X_LIBS -L$x_libraries"
5789 # For Solaris; some versions of Sun CC require a space after -R and
5790 # others require no space. Words are not sufficient . . . .
5791 case "`(uname -sr) 2>/dev/null`" in
5793 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
5794 echo "configure:5795: checking whether -R must be followed by a space" >&5
5795 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
5796 cat > conftest.$ac_ext <<EOF
5797 #line 5798 "configure"
5798 #include "confdefs.h"
5804 if { (eval echo configure:5805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5808 echo "configure: failed program was:" >&5
5809 cat conftest.$ac_ext >&5
5814 if test $ac_R_nospace = yes; then
5815 echo "$ac_t""no" 1>&6
5816 X_LIBS="$X_LIBS -R$x_libraries"
5818 LIBS="$ac_xsave_LIBS -R $x_libraries"
5819 cat > conftest.$ac_ext <<EOF
5820 #line 5821 "configure"
5821 #include "confdefs.h"
5827 if { (eval echo configure:5828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5831 echo "configure: failed program was:" >&5
5832 cat conftest.$ac_ext >&5
5837 if test $ac_R_space = yes; then
5838 echo "$ac_t""yes" 1>&6
5839 X_LIBS="$X_LIBS -R $x_libraries"
5841 echo "$ac_t""neither works" 1>&6
5844 LIBS="$ac_xsave_LIBS"
5848 # Check for system-dependent libraries X programs must link with.
5849 # Do this before checking for the system-independent R6 libraries
5850 # (-lICE), since we may need -lsocket or whatever for X linking.
5852 if test "$ISC" = yes; then
5853 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5855 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
5856 # libraries were built with DECnet support. And karl@cs.umb.edu says
5857 # the Alpha needs dnet_stub (dnet does not exist).
5858 if test "$with_dnet" = "no" ; then
5859 ac_cv_lib_dnet_dnet_ntoa=no
5862 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
5863 echo "configure:5864: checking for dnet_ntoa in -ldnet" >&5
5864 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5866 xe_check_libs=" -ldnet "
5867 cat > conftest.$ac_ext <<EOF
5868 #line 5869 "configure"
5869 #include "confdefs.h"
5870 /* Override any gcc2 internal prototype to avoid an error. */
5871 /* We use char because int might match the return type of a gcc2
5872 builtin and then its argument prototype would still apply. */
5879 if { (eval echo configure:5880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5881 eval "ac_cv_lib_$ac_lib_var=yes"
5883 echo "configure: failed program was:" >&5
5884 cat conftest.$ac_ext >&5
5886 eval "ac_cv_lib_$ac_lib_var=no"
5891 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5892 echo "$ac_t""yes" 1>&6
5893 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5895 echo "$ac_t""no" 1>&6
5900 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5902 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
5903 echo "configure:5904: checking for dnet_ntoa in -ldnet_stub" >&5
5904 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5906 xe_check_libs=" -ldnet_stub "
5907 cat > conftest.$ac_ext <<EOF
5908 #line 5909 "configure"
5909 #include "confdefs.h"
5910 /* Override any gcc2 internal prototype to avoid an error. */
5911 /* We use char because int might match the return type of a gcc2
5912 builtin and then its argument prototype would still apply. */
5919 if { (eval echo configure:5920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5921 eval "ac_cv_lib_$ac_lib_var=yes"
5923 echo "configure: failed program was:" >&5
5924 cat conftest.$ac_ext >&5
5926 eval "ac_cv_lib_$ac_lib_var=no"
5931 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5932 echo "$ac_t""yes" 1>&6
5933 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5935 echo "$ac_t""no" 1>&6
5941 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5942 # to get the SysV transport functions.
5943 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
5945 # The nsl library prevents programs from opening the X display
5946 # on Irix 5.2, according to dickey@clark.net.
5947 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
5948 echo "configure:5949: checking for gethostbyname" >&5
5950 cat > conftest.$ac_ext <<EOF
5951 #line 5952 "configure"
5952 #include "confdefs.h"
5953 /* System header to define __stub macros and hopefully few prototypes,
5954 which can conflict with char gethostbyname(); below. */
5956 /* Override any gcc2 internal prototype to avoid an error. */
5957 /* We use char because int might match the return type of a gcc2
5958 builtin and then its argument prototype would still apply. */
5959 char gethostbyname();
5963 /* The GNU C library defines this for functions which it implements
5964 to always fail with ENOSYS. Some functions are actually named
5965 something starting with __ and the normal name is an alias. */
5966 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5974 if { (eval echo configure:5975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5976 eval "ac_cv_func_gethostbyname=yes"
5978 echo "configure: failed program was:" >&5
5979 cat conftest.$ac_ext >&5
5981 eval "ac_cv_func_gethostbyname=no"
5985 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
5986 echo "$ac_t""yes" 1>&6
5989 echo "$ac_t""no" 1>&6
5992 if test $ac_cv_func_gethostbyname = no; then
5994 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
5995 echo "configure:5996: checking for gethostbyname in -lnsl" >&5
5996 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
5998 xe_check_libs=" -lnsl "
5999 cat > conftest.$ac_ext <<EOF
6000 #line 6001 "configure"
6001 #include "confdefs.h"
6002 /* Override any gcc2 internal prototype to avoid an error. */
6003 /* We use char because int might match the return type of a gcc2
6004 builtin and then its argument prototype would still apply. */
6005 char gethostbyname();
6011 if { (eval echo configure:6012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6013 eval "ac_cv_lib_$ac_lib_var=yes"
6015 echo "configure: failed program was:" >&5
6016 cat conftest.$ac_ext >&5
6018 eval "ac_cv_lib_$ac_lib_var=no"
6023 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6024 echo "$ac_t""yes" 1>&6
6025 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6027 echo "$ac_t""no" 1>&6
6033 # lieder@skyler.mavd.honeywell.com says without -lsocket,
6034 # socket/setsockopt and other routines are undefined under SCO ODT
6035 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
6036 # on later versions), says simon@lia.di.epfl.ch: it contains
6037 # gethostby* variants that don't use the nameserver (or something).
6038 # -lsocket must be given before -lnsl if both are needed.
6039 # We assume that if connect needs -lnsl, so does gethostbyname.
6040 echo $ac_n "checking for connect""... $ac_c" 1>&6
6041 echo "configure:6042: checking for connect" >&5
6043 cat > conftest.$ac_ext <<EOF
6044 #line 6045 "configure"
6045 #include "confdefs.h"
6046 /* System header to define __stub macros and hopefully few prototypes,
6047 which can conflict with char connect(); below. */
6049 /* Override any gcc2 internal prototype to avoid an error. */
6050 /* We use char because int might match the return type of a gcc2
6051 builtin and then its argument prototype would still apply. */
6056 /* The GNU C library defines this for functions which it implements
6057 to always fail with ENOSYS. Some functions are actually named
6058 something starting with __ and the normal name is an alias. */
6059 #if defined (__stub_connect) || defined (__stub___connect)
6067 if { (eval echo configure:6068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6069 eval "ac_cv_func_connect=yes"
6071 echo "configure: failed program was:" >&5
6072 cat conftest.$ac_ext >&5
6074 eval "ac_cv_func_connect=no"
6078 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
6079 echo "$ac_t""yes" 1>&6
6082 echo "$ac_t""no" 1>&6
6085 if test $ac_cv_func_connect = no; then
6087 xe_msg_checking="for connect in -lsocket"
6088 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
6089 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6090 echo "configure:6091: checking "$xe_msg_checking"" >&5
6091 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
6093 xe_check_libs=" -lsocket $X_EXTRA_LIBS"
6094 cat > conftest.$ac_ext <<EOF
6095 #line 6096 "configure"
6096 #include "confdefs.h"
6097 /* Override any gcc2 internal prototype to avoid an error. */
6098 /* We use char because int might match the return type of a gcc2
6099 builtin and then its argument prototype would still apply. */
6106 if { (eval echo configure:6107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6108 eval "ac_cv_lib_$ac_lib_var=yes"
6110 echo "configure: failed program was:" >&5
6111 cat conftest.$ac_ext >&5
6113 eval "ac_cv_lib_$ac_lib_var=no"
6118 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6119 echo "$ac_t""yes" 1>&6
6120 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6122 echo "$ac_t""no" 1>&6
6128 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
6129 echo $ac_n "checking for remove""... $ac_c" 1>&6
6130 echo "configure:6131: checking for remove" >&5
6132 cat > conftest.$ac_ext <<EOF
6133 #line 6134 "configure"
6134 #include "confdefs.h"
6135 /* System header to define __stub macros and hopefully few prototypes,
6136 which can conflict with char remove(); below. */
6138 /* Override any gcc2 internal prototype to avoid an error. */
6139 /* We use char because int might match the return type of a gcc2
6140 builtin and then its argument prototype would still apply. */
6145 /* The GNU C library defines this for functions which it implements
6146 to always fail with ENOSYS. Some functions are actually named
6147 something starting with __ and the normal name is an alias. */
6148 #if defined (__stub_remove) || defined (__stub___remove)
6156 if { (eval echo configure:6157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6158 eval "ac_cv_func_remove=yes"
6160 echo "configure: failed program was:" >&5
6161 cat conftest.$ac_ext >&5
6163 eval "ac_cv_func_remove=no"
6167 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
6168 echo "$ac_t""yes" 1>&6
6171 echo "$ac_t""no" 1>&6
6174 if test $ac_cv_func_remove = no; then
6176 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
6177 echo "configure:6178: checking for remove in -lposix" >&5
6178 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
6180 xe_check_libs=" -lposix "
6181 cat > conftest.$ac_ext <<EOF
6182 #line 6183 "configure"
6183 #include "confdefs.h"
6184 /* Override any gcc2 internal prototype to avoid an error. */
6185 /* We use char because int might match the return type of a gcc2
6186 builtin and then its argument prototype would still apply. */
6193 if { (eval echo configure:6194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6195 eval "ac_cv_lib_$ac_lib_var=yes"
6197 echo "configure: failed program was:" >&5
6198 cat conftest.$ac_ext >&5
6200 eval "ac_cv_lib_$ac_lib_var=no"
6205 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6206 echo "$ac_t""yes" 1>&6
6207 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6209 echo "$ac_t""no" 1>&6
6215 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6216 echo $ac_n "checking for shmat""... $ac_c" 1>&6
6217 echo "configure:6218: checking for shmat" >&5
6219 cat > conftest.$ac_ext <<EOF
6220 #line 6221 "configure"
6221 #include "confdefs.h"
6222 /* System header to define __stub macros and hopefully few prototypes,
6223 which can conflict with char shmat(); below. */
6225 /* Override any gcc2 internal prototype to avoid an error. */
6226 /* We use char because int might match the return type of a gcc2
6227 builtin and then its argument prototype would still apply. */
6232 /* The GNU C library defines this for functions which it implements
6233 to always fail with ENOSYS. Some functions are actually named
6234 something starting with __ and the normal name is an alias. */
6235 #if defined (__stub_shmat) || defined (__stub___shmat)
6243 if { (eval echo configure:6244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6245 eval "ac_cv_func_shmat=yes"
6247 echo "configure: failed program was:" >&5
6248 cat conftest.$ac_ext >&5
6250 eval "ac_cv_func_shmat=no"
6254 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
6255 echo "$ac_t""yes" 1>&6
6258 echo "$ac_t""no" 1>&6
6261 if test $ac_cv_func_shmat = no; then
6263 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
6264 echo "configure:6265: checking for shmat in -lipc" >&5
6265 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
6267 xe_check_libs=" -lipc "
6268 cat > conftest.$ac_ext <<EOF
6269 #line 6270 "configure"
6270 #include "confdefs.h"
6271 /* Override any gcc2 internal prototype to avoid an error. */
6272 /* We use char because int might match the return type of a gcc2
6273 builtin and then its argument prototype would still apply. */
6280 if { (eval echo configure:6281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6282 eval "ac_cv_lib_$ac_lib_var=yes"
6284 echo "configure: failed program was:" >&5
6285 cat conftest.$ac_ext >&5
6287 eval "ac_cv_lib_$ac_lib_var=no"
6292 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6293 echo "$ac_t""yes" 1>&6
6294 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6296 echo "$ac_t""no" 1>&6
6303 # Check for libraries that X11R6 Xt/Xaw programs need.
6304 ac_save_LDFLAGS="$LDFLAGS"
6305 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6306 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6307 # check for ICE first), but we must link in the order -lSM -lICE or
6308 # we get undefined symbols. So assume we have SM if we have ICE.
6309 # These have to be linked with before -lX11, unlike the other
6310 # libraries we check for below, so use a different variable.
6311 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
6313 xe_msg_checking="for IceConnectionNumber in -lICE"
6314 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
6315 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6316 echo "configure:6317: checking "$xe_msg_checking"" >&5
6317 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
6319 xe_check_libs=" -lICE $X_EXTRA_LIBS"
6320 cat > conftest.$ac_ext <<EOF
6321 #line 6322 "configure"
6322 #include "confdefs.h"
6323 /* Override any gcc2 internal prototype to avoid an error. */
6324 /* We use char because int might match the return type of a gcc2
6325 builtin and then its argument prototype would still apply. */
6326 char IceConnectionNumber();
6329 IceConnectionNumber()
6332 if { (eval echo configure:6333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6334 eval "ac_cv_lib_$ac_lib_var=yes"
6336 echo "configure: failed program was:" >&5
6337 cat conftest.$ac_ext >&5
6339 eval "ac_cv_lib_$ac_lib_var=no"
6344 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6345 echo "$ac_t""yes" 1>&6
6346 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6348 echo "$ac_t""no" 1>&6
6352 LDFLAGS="$ac_save_LDFLAGS"
6355 # Autoconf claims to find X library and include dirs for us.
6356 if test "$no_x" = "yes"
6357 then with_x11=no window_system=none HAVE_X_WINDOWS=no
6358 else with_x11=yes window_system=x11 HAVE_X_WINDOWS=yes
6363 if test "$with_x11" = "yes"; then
6364 { test "$extra_verbose" = "yes" && cat << \EOF
6365 Defining HAVE_X_WINDOWS
6367 cat >> confdefs.h <<\EOF
6368 #define HAVE_X_WINDOWS 1
6372 MAKE_SUBDIR="$MAKE_SUBDIR lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$MAKE_SUBDIR"; fi
6373 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$SRC_SUBDIR_DEPS"; fi
6376 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
6377 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
6378 echo "configure:6379: checking for Xm/Xm.h" >&5
6380 cat > conftest.$ac_ext <<EOF
6381 #line 6382 "configure"
6382 #include "confdefs.h"
6385 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6386 { (eval echo configure:6387: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6387 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6388 if test -z "$ac_err"; then
6390 eval "ac_cv_header_$ac_safe=yes"
6393 echo "configure: failed program was:" >&5
6394 cat conftest.$ac_ext >&5
6396 eval "ac_cv_header_$ac_safe=no"
6399 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6400 echo "$ac_t""yes" 1>&6
6402 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
6403 echo "configure:6404: checking for XmStringFree in -lXm" >&5
6404 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
6406 xe_check_libs=" -lXm "
6407 cat > conftest.$ac_ext <<EOF
6408 #line 6409 "configure"
6409 #include "confdefs.h"
6410 /* Override any gcc2 internal prototype to avoid an error. */
6411 /* We use char because int might match the return type of a gcc2
6412 builtin and then its argument prototype would still apply. */
6413 char XmStringFree();
6419 if { (eval echo configure:6420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6421 eval "ac_cv_lib_$ac_lib_var=yes"
6423 echo "configure: failed program was:" >&5
6424 cat conftest.$ac_ext >&5
6426 eval "ac_cv_lib_$ac_lib_var=no"
6431 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6432 echo "$ac_t""yes" 1>&6
6435 echo "$ac_t""no" 1>&6
6440 echo "$ac_t""no" 1>&6
6444 if test "$got_motif" != "yes"; then
6445 for lib_dir in "/usr/dt/lib" "/usr/lib/Motif2.1" \
6446 "/usr/lib/Motif1.2" "/usr/lib/Motif1.1"; do
6447 inc_dir=`echo $lib_dir | sed -e 's/lib/include/'`
6448 if test -d "$lib_dir" -a -d "$inc_dir"; then
6449 case "$x_libraries" in *"$lib_dir"* ) ;; *)
6450 x_libraries="$lib_dir $x_libraries"
6451 X_LIBS="-L${lib_dir} $X_LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-L${lib_dir}\" to \$X_LIBS"; fi ;;
6453 case "$x_includes" in "$inc_dir"* ) ;; *)
6454 x_includes="$inc_dir $x_includes"
6455 X_CFLAGS="-I${inc_dir} $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-I${inc_dir}\" to \$X_CFLAGS"; fi ;;
6461 for rel in "X11R6" "X11R5" "X11R4"; do
6462 lib_dir="/usr/contrib/$rel/lib" inc_dir="/usr/contrib/$rel/include"
6463 if test -d "$lib_dir" -a -d "$inc_dir"; then
6464 case "$x_libraries" in *"$lib_dir"* ) ;; *)
6465 x_libraries="$x_libraries $lib_dir"
6466 X_LIBS="$X_LIBS -L${lib_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L${lib_dir}\" to \$X_LIBS"; fi
6468 case "$x_includes" in "$inc_dir"* ) ;; *)
6469 x_includes="$x_includes $inc_dir"
6470 X_CFLAGS="$X_CFLAGS -I${inc_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-I${inc_dir}\" to \$X_CFLAGS"; fi
6476 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 ;;
6479 ld_switch_x_site="$X_LIBS"
6482 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
6483 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
6484 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
6486 runpath="" runpath_dirs=""
6487 if test -n "$LD_RUN_PATH"; then
6488 runpath="$LD_RUN_PATH"
6489 elif test "$GCC" = "yes"; then
6490 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
6491 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
6492 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
6493 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
6494 case "$arg" in P,* | -L* | -R* )
6495 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
6497 xe_runpath_dir="$dir"
6498 test "$xe_runpath_dir" != "/lib" -a \
6499 "$xe_runpath_dir" != "/usr/lib" -a \
6500 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
6501 eval "$xe_add_unique_runpath_dir"
6506 ld_switch_run="$ld_switch_run_save"
6509 for arg in $ld_switch_site $ld_switch_x_site; do
6510 case "$arg" in -L*) {
6511 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
6512 test "$xe_runpath_dir" != "/lib" -a \
6513 "$xe_runpath_dir" != "/usr/lib" -a \
6514 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
6515 eval "$xe_add_unique_runpath_dir"
6518 if test "$opsys $need_motif" = "sol2 yes"; then
6519 xe_runpath_dir="/opt/SUNWdt/lib";
6520 eval "$xe_add_unique_runpath_dir";
6523 if test -n "$runpath"; then
6524 ld_switch_run="${dash_r}${runpath}"
6526 if test "$GCC" = "yes"; then
6527 set x $ld_switch_run; shift; ld_switch_run=""
6528 while test -n "$1"; do
6530 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
6531 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
6533 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
6538 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
6543 if test "$extra_verbose" = "yes"; then
6544 echo; echo "X11 compilation variables:"
6545 for var in x_libraries x_includes X_CFLAGS X_LIBS X_PRE_LIBS X_EXTRA_LIBS; do eval "echo \"$var = '\$$var'\""; done
6550 if test "$x_includes" != NONE; then
6551 for i in $x_includes; do
6552 if test -d "$i/bitmaps"; then
6553 bitmapdirs="$i/bitmaps:$bitmapdirs"
6555 if test -d "$i/X11/bitmaps"; then
6556 bitmapdirs="$i/X11/bitmaps:$bitmapdirs"
6559 bitmapdirs=`echo "$bitmapdirs" | sed s/.$//`
6561 test ! -z "$bitmapdirs" && { test "$extra_verbose" = "yes" && cat << EOF
6562 Defining BITMAPDIR = "$bitmapdirs"
6564 cat >> confdefs.h <<EOF
6565 #define BITMAPDIR "$bitmapdirs"
6570 echo "checking for X defines extracted by xmkmf" 1>&6
6571 echo "configure:6572: checking for X defines extracted by xmkmf" >&5
6573 if mkdir conftestdir; then
6575 cat > Imakefile <<'EOF'
6577 @echo ${PROTO_DEFINES} ${STD_DEFINES}
6579 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6580 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6581 xmkmf_defines=`${MAKE-make} xetest 2>/dev/null | grep -v make`
6585 for word in $xmkmf_defines; do
6589 sym=`echo '' $word | sed -e 's:^ *-D::' -e 's:=.*::'`
6591 -D*=* ) val=`echo '' $word | sed -e 's:^.*=::'` ;;
6594 if grep "^#define $sym " confdefs.h >/dev/null; then :; else
6595 if test "$val" = "1"
6596 then { test "$extra_verbose" = "yes" && cat << EOF
6599 cat >> confdefs.h <<EOF
6604 else { test "$extra_verbose" = "yes" && cat << EOF
6605 Defining $sym = $val
6607 cat >> confdefs.h <<EOF
6618 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
6619 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
6620 echo "configure:6621: checking for X11/Intrinsic.h" >&5
6622 cat > conftest.$ac_ext <<EOF
6623 #line 6624 "configure"
6624 #include "confdefs.h"
6625 #include <X11/Intrinsic.h>
6627 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6628 { (eval echo configure:6629: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6629 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6630 if test -z "$ac_err"; then
6632 eval "ac_cv_header_$ac_safe=yes"
6635 echo "configure: failed program was:" >&5
6636 cat conftest.$ac_ext >&5
6638 eval "ac_cv_header_$ac_safe=no"
6641 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6642 echo "$ac_t""yes" 1>&6
6645 echo "$ac_t""no" 1>&6
6646 { echo "configure: error: "Unable to find X11 header files."" 1>&2; exit 1; }
6651 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
6652 echo "configure:6653: checking for XOpenDisplay in -lX11" >&5
6653 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
6655 xe_check_libs=" -lX11 "
6656 cat > conftest.$ac_ext <<EOF
6657 #line 6658 "configure"
6658 #include "confdefs.h"
6659 /* Override any gcc2 internal prototype to avoid an error. */
6660 /* We use char because int might match the return type of a gcc2
6661 builtin and then its argument prototype would still apply. */
6662 char XOpenDisplay();
6668 if { (eval echo configure:6669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6670 eval "ac_cv_lib_$ac_lib_var=yes"
6672 echo "configure: failed program was:" >&5
6673 cat conftest.$ac_ext >&5
6675 eval "ac_cv_lib_$ac_lib_var=no"
6680 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6681 echo "$ac_t""yes" 1>&6
6684 echo "$ac_t""no" 1>&6
6688 if test "$have_lib_x11" != "yes"; then
6690 xe_msg_checking="for XGetFontProperty in -lX11"
6691 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout"
6692 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6693 echo "configure:6694: checking "$xe_msg_checking"" >&5
6694 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
6696 xe_check_libs=" -lX11 -b i486-linuxaout"
6697 cat > conftest.$ac_ext <<EOF
6698 #line 6699 "configure"
6699 #include "confdefs.h"
6700 /* Override any gcc2 internal prototype to avoid an error. */
6701 /* We use char because int might match the return type of a gcc2
6702 builtin and then its argument prototype would still apply. */
6703 char XGetFontProperty();
6709 if { (eval echo configure:6710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6711 eval "ac_cv_lib_$ac_lib_var=yes"
6713 echo "configure: failed program was:" >&5
6714 cat conftest.$ac_ext >&5
6716 eval "ac_cv_lib_$ac_lib_var=no"
6721 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6722 echo "$ac_t""yes" 1>&6
6723 ld_switch_x_site="-b i486-linuxaout $ld_switch_x_site"
6725 echo "$ac_t""no" 1>&6
6726 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
6732 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
6735 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
6736 echo "configure:6737: checking for XShapeSelectInput in -lXext" >&5
6737 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
6739 xe_check_libs=" -lXext "
6740 cat > conftest.$ac_ext <<EOF
6741 #line 6742 "configure"
6742 #include "confdefs.h"
6743 /* Override any gcc2 internal prototype to avoid an error. */
6744 /* We use char because int might match the return type of a gcc2
6745 builtin and then its argument prototype would still apply. */
6746 char XShapeSelectInput();
6752 if { (eval echo configure:6753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6754 eval "ac_cv_lib_$ac_lib_var=yes"
6756 echo "configure: failed program was:" >&5
6757 cat conftest.$ac_ext >&5
6759 eval "ac_cv_lib_$ac_lib_var=no"
6764 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6765 echo "$ac_t""yes" 1>&6
6766 libs_x="-lXext $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXext\" to \$libs_x"; fi
6768 echo "$ac_t""no" 1>&6
6774 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6
6775 echo "configure:6776: checking for XtOpenDisplay in -lXt" >&5
6776 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
6778 xe_check_libs=" -lXt "
6779 cat > conftest.$ac_ext <<EOF
6780 #line 6781 "configure"
6781 #include "confdefs.h"
6782 /* Override any gcc2 internal prototype to avoid an error. */
6783 /* We use char because int might match the return type of a gcc2
6784 builtin and then its argument prototype would still apply. */
6785 char XtOpenDisplay();
6791 if { (eval echo configure:6792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6793 eval "ac_cv_lib_$ac_lib_var=yes"
6795 echo "configure: failed program was:" >&5
6796 cat conftest.$ac_ext >&5
6798 eval "ac_cv_lib_$ac_lib_var=no"
6803 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6804 echo "$ac_t""yes" 1>&6
6805 libs_x="-lXt $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXt\" to \$libs_x"; fi
6807 echo "$ac_t""no" 1>&6
6808 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
6813 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6
6814 echo "configure:6815: checking the version of X11 being used" >&5
6815 cat > conftest.$ac_ext <<EOF
6816 #line 6817 "configure"
6817 #include "confdefs.h"
6818 #include <X11/Intrinsic.h>
6819 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; }
6821 if { (eval echo configure:6822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6823 ./conftest foobar; x11_release=$?
6826 echo "configure: failed program was:" >&5
6827 cat conftest.$ac_ext >&5
6832 echo "$ac_t""R${x11_release}" 1>&6
6833 { test "$extra_verbose" = "yes" && cat << EOF
6834 Defining THIS_IS_X11R${x11_release}
6836 cat >> confdefs.h <<EOF
6837 #define THIS_IS_X11R${x11_release} 1
6842 if test "${x11_release}" = "4"; then
6843 case "$with_widgets" in
6844 "" | "no") with_widgets=no ;;
6845 *) { echo "Error:" "Widget support requires X11R5 or greater" >&2; exit 1; } ;;
6849 for ac_func in XConvertCase XtRegisterDrawable
6851 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6852 echo "configure:6853: checking for $ac_func" >&5
6854 cat > conftest.$ac_ext <<EOF
6855 #line 6856 "configure"
6856 #include "confdefs.h"
6857 /* System header to define __stub macros and hopefully few prototypes,
6858 which can conflict with char $ac_func(); below. */
6860 /* Override any gcc2 internal prototype to avoid an error. */
6861 /* We use char because int might match the return type of a gcc2
6862 builtin and then its argument prototype would still apply. */
6867 /* The GNU C library defines this for functions which it implements
6868 to always fail with ENOSYS. Some functions are actually named
6869 something starting with __ and the normal name is an alias. */
6870 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6878 if { (eval echo configure:6879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6880 eval "ac_cv_func_$ac_func=yes"
6882 echo "configure: failed program was:" >&5
6883 cat conftest.$ac_ext >&5
6885 eval "ac_cv_func_$ac_func=no"
6889 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6890 echo "$ac_t""yes" 1>&6
6891 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6892 { test "$extra_verbose" = "yes" && cat << EOF
6893 Defining $ac_tr_func
6895 cat >> confdefs.h <<EOF
6896 #define $ac_tr_func 1
6901 echo "$ac_t""no" 1>&6
6906 for ac_hdr in X11/Xlocale.h
6908 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6909 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6910 echo "configure:6911: checking for $ac_hdr" >&5
6912 cat > conftest.$ac_ext <<EOF
6913 #line 6914 "configure"
6914 #include "confdefs.h"
6917 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6918 { (eval echo configure:6919: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6919 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6920 if test -z "$ac_err"; then
6922 eval "ac_cv_header_$ac_safe=yes"
6925 echo "configure: failed program was:" >&5
6926 cat conftest.$ac_ext >&5
6928 eval "ac_cv_header_$ac_safe=no"
6931 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6932 echo "$ac_t""yes" 1>&6
6933 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6934 { test "$extra_verbose" = "yes" && cat << EOF
6937 cat >> confdefs.h <<EOF
6938 #define $ac_tr_hdr 1
6943 echo "$ac_t""no" 1>&6
6948 for ac_func in XRegisterIMInstantiateCallback
6950 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6951 echo "configure:6952: checking for $ac_func" >&5
6953 cat > conftest.$ac_ext <<EOF
6954 #line 6955 "configure"
6955 #include "confdefs.h"
6956 /* System header to define __stub macros and hopefully few prototypes,
6957 which can conflict with char $ac_func(); below. */
6959 /* Override any gcc2 internal prototype to avoid an error. */
6960 /* We use char because int might match the return type of a gcc2
6961 builtin and then its argument prototype would still apply. */
6966 /* The GNU C library defines this for functions which it implements
6967 to always fail with ENOSYS. Some functions are actually named
6968 something starting with __ and the normal name is an alias. */
6969 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6977 if { (eval echo configure:6978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6979 eval "ac_cv_func_$ac_func=yes"
6981 echo "configure: failed program was:" >&5
6982 cat conftest.$ac_ext >&5
6984 eval "ac_cv_func_$ac_func=no"
6988 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6989 echo "$ac_t""yes" 1>&6
6990 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6991 { test "$extra_verbose" = "yes" && cat << EOF
6992 Defining $ac_tr_func
6994 cat >> confdefs.h <<EOF
6995 #define $ac_tr_func 1
7000 echo "$ac_t""no" 1>&6
7004 echo $ac_n "checking for standard XRegisterIMInstantiateCallback prototype""... $ac_c" 1>&6
7005 echo "configure:7006: checking for standard XRegisterIMInstantiateCallback prototype" >&5
7006 cat > conftest.$ac_ext <<EOF
7007 #line 7008 "configure"
7008 #include "confdefs.h"
7010 #define NeedFunctionPrototypes 1
7011 #include <X11/Xlib.h>
7012 extern Bool XRegisterIMInstantiateCallback(
7013 Display*, struct _XrmHashBucketRec*, char*, char*, XIMProc, XPointer*);
7019 if { (eval echo configure:7020: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7021 echo "$ac_t""yes" 1>&6
7023 echo "configure: failed program was:" >&5
7024 cat conftest.$ac_ext >&5
7026 echo "$ac_t""no" 1>&6
7027 { test "$extra_verbose" = "yes" && cat << \EOF
7028 Defining XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE
7030 cat >> confdefs.h <<\EOF
7031 #define XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE 1
7038 test -z "$with_xmu" && {
7039 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6
7040 echo "configure:7041: checking for XmuReadBitmapDataFromFile in -lXmu" >&5
7041 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'`
7043 xe_check_libs=" -lXmu "
7044 cat > conftest.$ac_ext <<EOF
7045 #line 7046 "configure"
7046 #include "confdefs.h"
7047 /* Override any gcc2 internal prototype to avoid an error. */
7048 /* We use char because int might match the return type of a gcc2
7049 builtin and then its argument prototype would still apply. */
7050 char XmuReadBitmapDataFromFile();
7053 XmuReadBitmapDataFromFile()
7056 if { (eval echo configure:7057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7058 eval "ac_cv_lib_$ac_lib_var=yes"
7060 echo "configure: failed program was:" >&5
7061 cat conftest.$ac_ext >&5
7063 eval "ac_cv_lib_$ac_lib_var=no"
7068 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7069 echo "$ac_t""yes" 1>&6
7072 echo "$ac_t""no" 1>&6
7077 if test "$with_xmu" = "no"; then
7078 extra_objs="$extra_objs xmu.o" && if test "$extra_verbose" = "yes"; then
7079 echo " xemacs will be linked with \"xmu.o\""
7082 libs_x="-lXmu $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXmu\" to \$libs_x"; fi
7083 { test "$extra_verbose" = "yes" && cat << \EOF
7086 cat >> confdefs.h <<\EOF
7094 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
7095 echo "configure:7096: checking for main in -lXbsd" >&5
7096 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
7098 xe_check_libs=" -lXbsd "
7099 cat > conftest.$ac_ext <<EOF
7100 #line 7101 "configure"
7101 #include "confdefs.h"
7107 if { (eval echo configure:7108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7109 eval "ac_cv_lib_$ac_lib_var=yes"
7111 echo "configure: failed program was:" >&5
7112 cat conftest.$ac_ext >&5
7114 eval "ac_cv_lib_$ac_lib_var=no"
7119 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7120 echo "$ac_t""yes" 1>&6
7121 libs_x="-lXbsd $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXbsd\" to \$libs_x"; fi
7123 echo "$ac_t""no" 1>&6
7128 if test "$unexec" = "unexaix.o" -a "$x11_release" = "6"; then
7129 if test "$GCC" = "yes"; then
7130 echo $ac_n "checking for name of AIX gcc threads option""... $ac_c" 1>&6
7131 echo "configure:7132: checking for name of AIX gcc threads option" >&5
7132 case `$CC -v --help 2>&1` in
7133 *-mthreads*) aix_threads=-mthreads ;;
7134 *) aix_threads=-pthread ;;
7136 echo "$ac_t""$aix_threads" 1>&6
7137 X_CFLAGS="$aix_threads $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$aix_threads\" to \$X_CFLAGS"; fi
7138 libs_x="$aix_threads $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$aix_threads\" to \$libs_x"; fi
7140 case "$CC" in *_r) : ;;
7144 echo $ac_n "checking size of short""... $ac_c" 1>&6
7145 echo "configure:7146: checking size of short" >&5
7147 cat > conftest.$ac_ext <<EOF
7148 #line 7149 "configure"
7149 #include "confdefs.h"
7153 FILE *f=fopen("conftestval", "w");
7155 fprintf(f, "%d\n", sizeof(short));
7159 if { (eval echo configure:7160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
7161 ac_cv_sizeof_short=`cat conftestval`
7164 echo "configure: failed program was:" >&5
7165 cat conftest.$ac_ext >&5
7167 ac_cv_sizeof_short=0
7170 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
7171 { test "$extra_verbose" = "yes" && cat << EOF
7172 Defining SIZEOF_SHORT = $ac_cv_sizeof_short
7174 cat >> confdefs.h <<EOF
7175 #define SIZEOF_SHORT $ac_cv_sizeof_short
7180 test "$ac_cv_sizeof_short" = 0 && CC="$xe_save_CC" ;;
7186 if test "$with_msw" != "no"; then
7187 echo "checking for MS-Windows" 1>&6
7188 echo "configure:7189: checking for MS-Windows" >&5
7190 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6
7191 echo "configure:7192: checking for main in -lgdi32" >&5
7192 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'`
7194 xe_check_libs=" -lgdi32 "
7195 cat > conftest.$ac_ext <<EOF
7196 #line 7197 "configure"
7197 #include "confdefs.h"
7203 if { (eval echo configure:7204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7205 eval "ac_cv_lib_$ac_lib_var=yes"
7207 echo "configure: failed program was:" >&5
7208 cat conftest.$ac_ext >&5
7210 eval "ac_cv_lib_$ac_lib_var=no"
7215 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7216 echo "$ac_t""yes" 1>&6
7219 echo "$ac_t""no" 1>&6
7223 if test "$with_msw" = "yes"; then
7224 { test "$extra_verbose" = "yes" && cat << \EOF
7225 Defining HAVE_MS_WINDOWS
7227 cat >> confdefs.h <<\EOF
7228 #define HAVE_MS_WINDOWS 1
7233 if test "$with_netinstall" = "yes"; then
7234 MAKE_SUBDIR="$MAKE_SUBDIR netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$MAKE_SUBDIR"; fi
7235 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$SRC_SUBDIR_DEPS"; fi
7236 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
7239 install_pp="$srcdir/lib-src/installexe.sh"
7240 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
7241 test "$with_dragndrop" != no && dragndrop_proto="$dragndrop_proto msw" && if test "$extra_verbose" = "yes"; then echo " Appending \"msw\" to \$dragndrop_proto"; fi
7242 if test "$window_system" != x11; then
7244 test "$with_scrollbars" != "no" && with_scrollbars=msw \
7245 && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
7246 echo " xemacs will be linked with \"scrollbar-msw.o\""
7248 test "$with_menubars" != "no" && with_menubars=msw \
7249 && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
7250 echo " xemacs will be linked with \"menubar-msw.o\""
7252 test "$with_toolbars" != "no" && with_toolbars=msw \
7253 && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
7254 echo " xemacs will be linked with \"toolbar-msw.o\""
7256 test "$with_dialogs" != "no" && with_dialogs=msw \
7257 && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
7258 echo " xemacs will be linked with \"dialog-msw.o\""
7260 test "$with_widgets" != "no" && with_widgets=msw
7262 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
7263 echo " xemacs will be linked with \"scrollbar-msw.o\""
7265 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
7266 echo " xemacs will be linked with \"menubar-msw.o\""
7268 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
7269 echo " xemacs will be linked with \"toolbar-msw.o\""
7271 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
7272 echo " xemacs will be linked with \"dialog-msw.o\""
7275 cat > conftest.$ac_ext <<EOF
7276 #line 7277 "configure"
7277 #include "confdefs.h"
7279 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; }
7281 if { (eval echo configure:7282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
7283 need_event_unixoid=yes; { test "$extra_verbose" = "yes" && cat << \EOF
7284 Defining HAVE_MSG_SELECT
7286 cat >> confdefs.h <<\EOF
7287 #define HAVE_MSG_SELECT 1
7293 echo "configure: failed program was:" >&5
7294 cat conftest.$ac_ext >&5
7297 with_file_coding=yes
7298 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
7299 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\""
7306 test -z "$window_system" && window_system="none"
7308 if test "$window_system" = "none"; then
7309 for feature in menubars scrollbars toolbars dialogs dragndrop xface
7311 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
7312 echo "configure: warning: --with-$feature ignored: Not valid without window system support" 1>&2
7314 eval "with_${feature}=no"
7317 test -z "$with_toolbars" && with_toolbars=yes
7320 if test "$with_msw" != "yes"; then
7321 for feature in MARTIN_IS_CLUELESS_ABOUT_MSW_FEATURES
7323 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
7324 echo "configure: warning: --with-$feature ignored: Not valid without MS-Windows support" 1>&2
7326 eval "with_${feature}=no"
7332 if test "$with_x11" != "yes"; then
7333 for feature in tooltalk cde offix wmcommand xim xmu nas_sound
7335 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
7336 echo "configure: warning: --with-$feature ignored: Not valid without X support" 1>&2
7338 eval "with_${feature}=no"
7342 if test "$with_x11" = "yes"; then
7343 ac_safe=`echo "X11/extensions/shape.h" | sed 'y%./+-%__p_%'`
7344 echo $ac_n "checking for X11/extensions/shape.h""... $ac_c" 1>&6
7345 echo "configure:7346: checking for X11/extensions/shape.h" >&5
7347 cat > conftest.$ac_ext <<EOF
7348 #line 7349 "configure"
7349 #include "confdefs.h"
7350 #include <X11/extensions/shape.h>
7352 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7353 { (eval echo configure:7354: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7354 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7355 if test -z "$ac_err"; then
7357 eval "ac_cv_header_$ac_safe=yes"
7360 echo "configure: failed program was:" >&5
7361 cat conftest.$ac_ext >&5
7363 eval "ac_cv_header_$ac_safe=no"
7366 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7367 echo "$ac_t""yes" 1>&6
7369 { test "$extra_verbose" = "yes" && cat << \EOF
7370 Defining HAVE_BALLOON_HELP
7372 cat >> confdefs.h <<\EOF
7373 #define HAVE_BALLOON_HELP 1
7377 extra_objs="$extra_objs balloon_help.o balloon-x.o" && if test "$extra_verbose" = "yes"; then
7378 echo " xemacs will be linked with \"balloon_help.o balloon-x.o\""
7381 echo "$ac_t""no" 1>&6
7388 case "$window_system" in
7389 x11 ) HAVE_X_WINDOWS=yes; echo " Using X11." ;;
7390 msw ) HAVE_X_WINDOWS=no ; echo " Using MS-Windows." ;;
7393 test "$with_gnome" = "yes" && echo " Using GNOME."
7394 test "$with_gnome" = "no" && echo " Using GTK."
7396 none ) HAVE_X_WINDOWS=no ; echo " Using no window system." ;;
7399 case "$x_libraries" in *X11R4* )
7400 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h"
7401 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h"
7404 echo "checking for WM_COMMAND option" 1>&6
7405 echo "configure:7406: checking for WM_COMMAND option" >&5;
7406 if test "$with_wmcommand" != "no"; then
7407 { test "$extra_verbose" = "yes" && cat << \EOF
7408 Defining HAVE_WMCOMMAND
7410 cat >> confdefs.h <<\EOF
7411 #define HAVE_WMCOMMAND 1
7417 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
7418 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'`
7419 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
7420 echo "configure:7421: checking for X11/Xauth.h" >&5
7422 cat > conftest.$ac_ext <<EOF
7423 #line 7424 "configure"
7424 #include "confdefs.h"
7425 #include <X11/Xauth.h>
7427 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7428 { (eval echo configure:7429: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7429 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7430 if test -z "$ac_err"; then
7432 eval "ac_cv_header_$ac_safe=yes"
7435 echo "configure: failed program was:" >&5
7436 cat conftest.$ac_ext >&5
7438 eval "ac_cv_header_$ac_safe=no"
7441 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7442 echo "$ac_t""yes" 1>&6
7445 echo "$ac_t""no" 1>&6
7449 test -z "$with_xauth" && {
7450 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
7451 echo "configure:7452: checking for XauGetAuthByAddr in -lXau" >&5
7452 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
7454 xe_check_libs=" -lXau "
7455 cat > conftest.$ac_ext <<EOF
7456 #line 7457 "configure"
7457 #include "confdefs.h"
7458 /* Override any gcc2 internal prototype to avoid an error. */
7459 /* We use char because int might match the return type of a gcc2
7460 builtin and then its argument prototype would still apply. */
7461 char XauGetAuthByAddr();
7467 if { (eval echo configure:7468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7469 eval "ac_cv_lib_$ac_lib_var=yes"
7471 echo "configure: failed program was:" >&5
7472 cat conftest.$ac_ext >&5
7474 eval "ac_cv_lib_$ac_lib_var=no"
7479 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7480 echo "$ac_t""yes" 1>&6
7483 echo "$ac_t""no" 1>&6
7488 test -z "$with_xauth" && with_xauth=yes
7489 if test "$with_xauth" = "yes"; then
7490 { test "$extra_verbose" = "yes" && cat << \EOF
7493 cat >> confdefs.h <<\EOF
7494 #define HAVE_XAUTH 1
7500 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
7508 if test "$with_tooltalk" != "no" ; then
7509 for dir in "" "Tt/" "desktop/" ; do
7510 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
7511 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
7512 echo "configure:7513: checking for ${dir}tt_c.h" >&5
7514 cat > conftest.$ac_ext <<EOF
7515 #line 7516 "configure"
7516 #include "confdefs.h"
7517 #include <${dir}tt_c.h>
7519 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7520 { (eval echo configure:7521: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7521 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7522 if test -z "$ac_err"; then
7524 eval "ac_cv_header_$ac_safe=yes"
7527 echo "configure: failed program was:" >&5
7528 cat conftest.$ac_ext >&5
7530 eval "ac_cv_header_$ac_safe=no"
7533 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7534 echo "$ac_t""yes" 1>&6
7535 tt_c_h_file="${dir}tt_c.h"; break
7537 echo "$ac_t""no" 1>&6
7541 if test -z "$tt_c_h_file"; then
7542 if test "$with_tooltalk" = "yes"; then
7543 (echo "$progname: Usage error:"
7544 echo " " "Unable to find required tooltalk header files."
7545 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
7550 if test "$with_tooltalk" != "no" ; then
7551 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
7553 xe_msg_checking="for tt_message_create in -ltt"
7554 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
7555 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7556 echo "configure:7557: checking "$xe_msg_checking"" >&5
7557 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
7559 xe_check_libs=" -ltt $extra_libs"
7560 cat > conftest.$ac_ext <<EOF
7561 #line 7562 "configure"
7562 #include "confdefs.h"
7563 /* Override any gcc2 internal prototype to avoid an error. */
7564 /* We use char because int might match the return type of a gcc2
7565 builtin and then its argument prototype would still apply. */
7566 char tt_message_create();
7572 if { (eval echo configure:7573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7574 eval "ac_cv_lib_$ac_lib_var=yes"
7576 echo "configure: failed program was:" >&5
7577 cat conftest.$ac_ext >&5
7579 eval "ac_cv_lib_$ac_lib_var=no"
7584 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7585 echo "$ac_t""yes" 1>&6
7586 tt_libs="-ltt $extra_libs"; break
7588 echo "$ac_t""no" 1>&6
7594 if test -z "$tt_libs"; then
7595 if test "$with_tooltalk" = "yes"; then
7596 (echo "$progname: Usage error:"
7597 echo " " "Unable to find required tooltalk libraries."
7598 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
7603 test -z "$with_tooltalk" && with_tooltalk=yes
7604 if test "$with_tooltalk" = "yes"; then
7605 { test "$extra_verbose" = "yes" && cat << \EOF
7608 cat >> confdefs.h <<\EOF
7613 { test "$extra_verbose" = "yes" && cat << EOF
7614 Defining TT_C_H_FILE = "$tt_c_h_file"
7616 cat >> confdefs.h <<EOF
7617 #define TT_C_H_FILE "$tt_c_h_file"
7621 libs_x="$tt_libs $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$tt_libs\" to \$libs_x"; fi
7622 extra_objs="$extra_objs tooltalk.o" && if test "$extra_verbose" = "yes"; then
7623 echo " xemacs will be linked with \"tooltalk.o\""
7627 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'`
7628 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
7629 echo "configure:7630: checking for Dt/Dt.h" >&5
7631 cat > conftest.$ac_ext <<EOF
7632 #line 7633 "configure"
7633 #include "confdefs.h"
7636 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7637 { (eval echo configure:7638: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7638 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7639 if test -z "$ac_err"; then
7641 eval "ac_cv_header_$ac_safe=yes"
7644 echo "configure: failed program was:" >&5
7645 cat conftest.$ac_ext >&5
7647 eval "ac_cv_header_$ac_safe=no"
7650 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7651 echo "$ac_t""yes" 1>&6
7654 echo "$ac_t""no" 1>&6
7658 test -z "$with_cde" && {
7659 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
7660 echo "configure:7661: checking for DtDndDragStart in -lDtSvc" >&5
7661 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
7663 xe_check_libs=" -lDtSvc "
7664 cat > conftest.$ac_ext <<EOF
7665 #line 7666 "configure"
7666 #include "confdefs.h"
7667 /* Override any gcc2 internal prototype to avoid an error. */
7668 /* We use char because int might match the return type of a gcc2
7669 builtin and then its argument prototype would still apply. */
7670 char DtDndDragStart();
7676 if { (eval echo configure:7677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7678 eval "ac_cv_lib_$ac_lib_var=yes"
7680 echo "configure: failed program was:" >&5
7681 cat conftest.$ac_ext >&5
7683 eval "ac_cv_lib_$ac_lib_var=no"
7688 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7689 echo "$ac_t""yes" 1>&6
7692 echo "$ac_t""no" 1>&6
7697 test -z "$with_cde" && with_cde=yes
7698 if test "$with_dragndrop" = no; then
7699 echo "configure: warning: No CDE without generic Drag'n'Drop support" 1>&2
7702 if test "$with_cde" = "yes" ; then
7703 { test "$extra_verbose" = "yes" && cat << \EOF
7706 cat >> confdefs.h <<\EOF
7711 libs_x="-lDtSvc $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lDtSvc\" to \$libs_x"; fi
7712 dragndrop_proto="$dragndrop_proto CDE" && if test "$extra_verbose" = "yes"; then echo " Appending \"CDE\" to \$dragndrop_proto"; fi
7713 with_tooltalk=yes # CDE requires Tooltalk
7714 need_motif=yes # CDE requires Motif
7717 test "$window_system" != "x11" && with_offix=no
7718 if test "$with_xmu" != yes -a "$with_x11" = yes; then
7719 echo "configure: warning: No OffiX without real Xmu support" 1>&2
7722 if test "$with_dragndrop" = no; then
7723 echo "configure: warning: No OffiX without generic Drag'n'Drop support" 1>&2
7726 if test "$with_cde" = yes; then
7727 echo "configure: warning: CDE already found, disabling OffiX support" 1>&2
7730 test -z "$with_offix" && with_offix=no
7731 if test "$with_offix" = "yes"; then
7732 { test "$extra_verbose" = "yes" && cat << \EOF
7733 Defining HAVE_OFFIX_DND
7735 cat >> confdefs.h <<\EOF
7736 #define HAVE_OFFIX_DND 1
7740 dnd_objs="$dnd_objs offix.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"offix.o\" to \$dnd_objs"; fi
7741 dragndrop_proto="$dragndrop_proto OffiX" && if test "$extra_verbose" = "yes"; then echo " Appending \"OffiX\" to \$dragndrop_proto"; fi
7743 if test "$with_gtk" = "yes"; then
7744 dragndrop_proto="$dragndrop_proto GTK" && if test "$extra_verbose" = "yes"; then echo " Appending \"GTK\" to \$dragndrop_proto"; fi
7747 if test "$with_dragndrop" != "no" ; then
7748 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6
7749 echo "configure:7750: checking if drag and drop API is needed" >&5
7750 if test -n "$dragndrop_proto" ; then
7752 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6
7753 { test "$extra_verbose" = "yes" && cat << \EOF
7754 Defining HAVE_DRAGNDROP
7756 cat >> confdefs.h <<\EOF
7757 #define HAVE_DRAGNDROP 1
7761 extra_objs="$extra_objs dragdrop.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"dragdrop.o\" to \$extra_objs"; fi
7764 echo "$ac_t""no" 1>&6
7768 echo "checking for LDAP" 1>&6
7769 echo "configure:7770: checking for LDAP" >&5
7770 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'`
7771 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6
7772 echo "configure:7773: checking for ldap.h" >&5
7774 cat > conftest.$ac_ext <<EOF
7775 #line 7776 "configure"
7776 #include "confdefs.h"
7779 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7780 { (eval echo configure:7781: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7781 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7782 if test -z "$ac_err"; then
7784 eval "ac_cv_header_$ac_safe=yes"
7787 echo "configure: failed program was:" >&5
7788 cat conftest.$ac_ext >&5
7790 eval "ac_cv_header_$ac_safe=no"
7793 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7794 echo "$ac_t""yes" 1>&6
7797 echo "$ac_t""no" 1>&6
7801 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'`
7802 echo $ac_n "checking for lber.h""... $ac_c" 1>&6
7803 echo "configure:7804: checking for lber.h" >&5
7805 cat > conftest.$ac_ext <<EOF
7806 #line 7807 "configure"
7807 #include "confdefs.h"
7810 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7811 { (eval echo configure:7812: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7812 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7813 if test -z "$ac_err"; then
7815 eval "ac_cv_header_$ac_safe=yes"
7818 echo "configure: failed program was:" >&5
7819 cat conftest.$ac_ext >&5
7821 eval "ac_cv_header_$ac_safe=no"
7824 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7825 echo "$ac_t""yes" 1>&6
7828 echo "$ac_t""no" 1>&6
7832 if test no != "$with_ldap";then
7833 if test . != "${ldap_libs+.}";then
7835 echo $ac_n "checking for ldap_open""... $ac_c" 1>&6
7836 echo "configure:7837: checking for ldap_open" >&5
7838 cat > conftest.$ac_ext <<EOF
7839 #line 7840 "configure"
7840 #include "confdefs.h"
7841 /* System header to define __stub macros and hopefully few prototypes,
7842 which can conflict with char ldap_open(); below. */
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. */
7851 /* The GNU C library defines this for functions which it implements
7852 to always fail with ENOSYS. Some functions are actually named
7853 something starting with __ and the normal name is an alias. */
7854 #if defined (__stub_ldap_open) || defined (__stub___ldap_open)
7862 if { (eval echo configure:7863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7864 eval "ac_cv_func_ldap_open=yes"
7866 echo "configure: failed program was:" >&5
7867 cat conftest.$ac_ext >&5
7869 eval "ac_cv_func_ldap_open=no"
7873 if eval "test \"`echo '$ac_cv_func_'ldap_open`\" = yes"; then
7874 echo "$ac_t""yes" 1>&6
7876 test yes = "$extra_verbose" &&
7877 echo "Setting ldap_libs to $ldap_libs"
7879 echo "$ac_t""no" 1>&6
7881 echo $ac_n "checking for ldap_open in -lldap""... $ac_c" 1>&6
7882 echo "configure:7883: checking for ldap_open in -lldap" >&5
7883 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7885 xe_check_libs=" -lldap "
7886 cat > conftest.$ac_ext <<EOF
7887 #line 7888 "configure"
7888 #include "confdefs.h"
7889 /* Override any gcc2 internal prototype to avoid an error. */
7890 /* We use char because int might match the return type of a gcc2
7891 builtin and then its argument prototype would still apply. */
7898 if { (eval echo configure:7899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7900 eval "ac_cv_lib_$ac_lib_var=yes"
7902 echo "configure: failed program was:" >&5
7903 cat conftest.$ac_ext >&5
7905 eval "ac_cv_lib_$ac_lib_var=no"
7910 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7911 echo "$ac_t""yes" 1>&6
7914 echo "$ac_t""no" 1>&6
7915 ldap_needs_lber=yes ldap_other_libs=-llber
7917 xe_msg_checking="for ldap_open in -lldap"
7918 test -n "$ldap_other_libs" && xe_msg_checking="$xe_msg_checking using extra libs $ldap_other_libs"
7919 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7920 echo "configure:7921: checking "$xe_msg_checking"" >&5
7921 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7923 xe_check_libs=" -lldap $ldap_other_libs"
7924 cat > conftest.$ac_ext <<EOF
7925 #line 7926 "configure"
7926 #include "confdefs.h"
7927 /* Override any gcc2 internal prototype to avoid an error. */
7928 /* We use char because int might match the return type of a gcc2
7929 builtin and then its argument prototype would still apply. */
7936 if { (eval echo configure:7937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7938 eval "ac_cv_lib_$ac_lib_var=yes"
7940 echo "configure: failed program was:" >&5
7941 cat conftest.$ac_ext >&5
7943 eval "ac_cv_lib_$ac_lib_var=no"
7948 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7949 echo "$ac_t""yes" 1>&6
7952 echo "$ac_t""no" 1>&6
7953 ldap_needs_krb=yes ldap_other_libs="$ldap_other_libs -lkrb"
7955 xe_msg_checking="for ldap_open in -lldap"
7956 test -n "$ldap_other_libs" && xe_msg_checking="$xe_msg_checking using extra libs $ldap_other_libs"
7957 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7958 echo "configure:7959: checking "$xe_msg_checking"" >&5
7959 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7961 xe_check_libs=" -lldap $ldap_other_libs"
7962 cat > conftest.$ac_ext <<EOF
7963 #line 7964 "configure"
7964 #include "confdefs.h"
7965 /* Override any gcc2 internal prototype to avoid an error. */
7966 /* We use char because int might match the return type of a gcc2
7967 builtin and then its argument prototype would still apply. */
7974 if { (eval echo configure:7975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7976 eval "ac_cv_lib_$ac_lib_var=yes"
7978 echo "configure: failed program was:" >&5
7979 cat conftest.$ac_ext >&5
7981 eval "ac_cv_lib_$ac_lib_var=no"
7986 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7987 echo "$ac_t""yes" 1>&6
7990 echo "$ac_t""no" 1>&6
7991 ldap_needs_des=yes ldap_other_libs="$ldap_other_libs -ldes"
7993 xe_msg_checking="for ldap_open in -lldap"
7994 test -n "$ldap_other_libs" && xe_msg_checking="$xe_msg_checking using extra libs $ldap_other_libs"
7995 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7996 echo "configure:7997: checking "$xe_msg_checking"" >&5
7997 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7999 xe_check_libs=" -lldap $ldap_other_libs"
8000 cat > conftest.$ac_ext <<EOF
8001 #line 8002 "configure"
8002 #include "confdefs.h"
8003 /* Override any gcc2 internal prototype to avoid an error. */
8004 /* We use char because int might match the return type of a gcc2
8005 builtin and then its argument prototype would still apply. */
8012 if { (eval echo configure:8013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8014 eval "ac_cv_lib_$ac_lib_var=yes"
8016 echo "configure: failed program was:" >&5
8017 cat conftest.$ac_ext >&5
8019 eval "ac_cv_lib_$ac_lib_var=no"
8024 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8025 echo "$ac_t""yes" 1>&6
8028 echo "$ac_t""no" 1>&6
8042 if test yes = "$with_ldap" -a yes != "$ldap_needs_lber";then
8043 echo $ac_n "checking for LDAP_OPT_ON definition""... $ac_c" 1>&6
8044 echo "configure:8045: checking for LDAP_OPT_ON definition" >&5
8046 cat > conftest.$ac_ext <<EOF
8047 #line 8048 "configure"
8048 #include "confdefs.h"
8052 /* Relying on const defined by ac_c_const (upper case). */
8053 const void *const v = LDAP_OPT_ON;
8054 #else /* !defined (LDAP_OPT_ON) */
8056 #endif /* !defined (LDAP_OPT_ON) */
8061 if { (eval echo configure:8062: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8063 xe_cv_have_LDAP_OPT_ON=yes
8065 echo "configure: failed program was:" >&5
8066 cat conftest.$ac_ext >&5
8068 xe_cv_have_LDAP_OPT_ON=no
8072 echo "$ac_t""$xe_cv_have_LDAP_OPT_ON" 1>&6
8073 if test yes = "$xe_cv_have_LDAP_OPT_ON";then
8074 echo $ac_n "checking LDAP_OPT_ON linking""... $ac_c" 1>&6
8075 echo "configure:8076: checking LDAP_OPT_ON linking" >&5
8077 xe_save_LIBS="$LIBS"
8079 cat > conftest.$ac_ext <<EOF
8080 #line 8081 "configure"
8081 #include "confdefs.h"
8084 const void *const v = LDAP_OPT_ON;
8089 if { (eval echo configure:8090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8091 xe_cv_LDAP_OPT_ON_links=yes
8093 echo "configure: failed program was:" >&5
8094 cat conftest.$ac_ext >&5
8096 xe_cv_LDAP_OPT_ON_links=no
8099 LIBS="$xe_save_LIBS"
8101 echo "$ac_t""$xe_cv_LDAP_OPT_ON_links" 1>&6
8102 if test yes != "$xe_cv_LDAP_OPT_ON_links";then
8103 ldap_needs_lber=yes ldap_other_libs=-llber
8104 echo $ac_n "checking LDAP_OPT_ON linking with -llber""... $ac_c" 1>&6
8105 echo "configure:8106: checking LDAP_OPT_ON linking with -llber" >&5
8107 xe_save_LIBS="$LIBS"
8108 LIBS="-lldap $ldap_other_libs $LIBS"
8109 cat > conftest.$ac_ext <<EOF
8110 #line 8111 "configure"
8111 #include "confdefs.h"
8114 const void *const v = LDAP_OPT_ON;
8119 if { (eval echo configure:8120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8121 xe_cv_LDAP_OPT_ON_links_w_lber=yes
8123 echo "configure: failed program was:" >&5
8124 cat conftest.$ac_ext >&5
8126 xe_cv_LDAP_OPT_ON_links_w_lber=no
8129 LIBS="$xe_save_LIBS"
8131 echo "$ac_t""$xe_cv_LDAP_OPT_ON_links_w_lber" 1>&6
8132 if test yes != "$xe_cv_LDAP_OPT_ON_links_w_lber";then
8138 if test yes = "$with_ldap";then
8139 if test yes = "$ldap_needs_des";then
8140 ldap_libs="-ldes $ldap_libs" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldes\" to \$ldap_libs"; fi
8142 if test yes = "$ldap_needs_krb";then
8143 ldap_libs="-lkrb $ldap_libs" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$ldap_libs"; fi
8145 if test yes = "$ldap_needs_lber";then
8146 ldap_libs="-llber $ldap_libs" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-llber\" to \$ldap_libs"; fi
8148 ldap_libs="-lldap $ldap_libs" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$ldap_libs"; fi
8153 save_LIBS="$LIBS" LIBS="$ldap_libs $LIBS"
8154 echo $ac_n "checking for ldap_open""... $ac_c" 1>&6
8155 echo "configure:8156: checking for ldap_open" >&5
8157 cat > conftest.$ac_ext <<EOF
8158 #line 8159 "configure"
8159 #include "confdefs.h"
8160 /* System header to define __stub macros and hopefully few prototypes,
8161 which can conflict with char ldap_open(); below. */
8163 /* Override any gcc2 internal prototype to avoid an error. */
8164 /* We use char because int might match the return type of a gcc2
8165 builtin and then its argument prototype would still apply. */
8170 /* The GNU C library defines this for functions which it implements
8171 to always fail with ENOSYS. Some functions are actually named
8172 something starting with __ and the normal name is an alias. */
8173 #if defined (__stub_ldap_open) || defined (__stub___ldap_open)
8181 if { (eval echo configure:8182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8183 eval "ac_cv_func_ldap_open=yes"
8185 echo "configure: failed program was:" >&5
8186 cat conftest.$ac_ext >&5
8188 eval "ac_cv_func_ldap_open=no"
8192 if eval "test \"`echo '$ac_cv_func_'ldap_open`\" = yes"; then
8193 echo "$ac_t""yes" 1>&6
8195 test yes = "$extra_verbose" &&
8196 echo "Setting ldap_libs to $ldap_libs"
8198 echo "$ac_t""no" 1>&6
8205 if test "$with_ldap" = "yes"; then
8206 { test "$extra_verbose" = "yes" && cat << \EOF
8209 cat >> confdefs.h <<\EOF
8214 extra_objs="$extra_objs eldap.o" && if test "$extra_verbose" = "yes"; then
8215 echo " xemacs will be linked with \"eldap.o\""
8217 LIBS="$ldap_libs $LIBS"
8218 for ac_func in ldap_set_option ldap_get_lderrno ldap_result2error ldap_parse_result
8220 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8221 echo "configure:8222: checking for $ac_func" >&5
8223 cat > conftest.$ac_ext <<EOF
8224 #line 8225 "configure"
8225 #include "confdefs.h"
8226 /* System header to define __stub macros and hopefully few prototypes,
8227 which can conflict with char $ac_func(); below. */
8229 /* Override any gcc2 internal prototype to avoid an error. */
8230 /* We use char because int might match the return type of a gcc2
8231 builtin and then its argument prototype would still apply. */
8236 /* The GNU C library defines this for functions which it implements
8237 to always fail with ENOSYS. Some functions are actually named
8238 something starting with __ and the normal name is an alias. */
8239 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8247 if { (eval echo configure:8248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8249 eval "ac_cv_func_$ac_func=yes"
8251 echo "configure: failed program was:" >&5
8252 cat conftest.$ac_ext >&5
8254 eval "ac_cv_func_$ac_func=no"
8258 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8259 echo "$ac_t""yes" 1>&6
8260 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8261 { test "$extra_verbose" = "yes" && cat << EOF
8262 Defining $ac_tr_func
8264 cat >> confdefs.h <<EOF
8265 #define $ac_tr_func 1
8270 echo "$ac_t""no" 1>&6
8276 if test "$with_postgresql" != "no"; then
8277 echo "checking for PostgreSQL" 1>&6
8278 echo "configure:8279: checking for PostgreSQL" >&5
8280 for header_dir in "" "pgsql/" "postgresql/"; do
8281 ac_safe=`echo "${header_dir}libpq-fe.h" | sed 'y%./+-%__p_%'`
8282 echo $ac_n "checking for ${header_dir}libpq-fe.h""... $ac_c" 1>&6
8283 echo "configure:8284: checking for ${header_dir}libpq-fe.h" >&5
8285 cat > conftest.$ac_ext <<EOF
8286 #line 8287 "configure"
8287 #include "confdefs.h"
8288 #include <${header_dir}libpq-fe.h>
8290 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8291 { (eval echo configure:8292: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8292 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8293 if test -z "$ac_err"; then
8295 eval "ac_cv_header_$ac_safe=yes"
8298 echo "configure: failed program was:" >&5
8299 cat conftest.$ac_ext >&5
8301 eval "ac_cv_header_$ac_safe=no"
8304 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8305 echo "$ac_t""yes" 1>&6
8306 libpq_fe_h_file=${header_dir}libpq-fe.h; break
8308 echo "$ac_t""no" 1>&6
8313 test -n "$libpq_fe_h_file" && {
8314 echo $ac_n "checking for PQconnectdb in -lpq""... $ac_c" 1>&6
8315 echo "configure:8316: checking for PQconnectdb in -lpq" >&5
8316 ac_lib_var=`echo pq'_'PQconnectdb | sed 'y%./+-%__p_%'`
8318 xe_check_libs=" -lpq "
8319 cat > conftest.$ac_ext <<EOF
8320 #line 8321 "configure"
8321 #include "confdefs.h"
8322 /* Override any gcc2 internal prototype to avoid an error. */
8323 /* We use char because int might match the return type of a gcc2
8324 builtin and then its argument prototype would still apply. */
8331 if { (eval echo configure:8332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8333 eval "ac_cv_lib_$ac_lib_var=yes"
8335 echo "configure: failed program was:" >&5
8336 cat conftest.$ac_ext >&5
8338 eval "ac_cv_lib_$ac_lib_var=no"
8343 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8344 echo "$ac_t""yes" 1>&6
8347 echo "$ac_t""no" 1>&6
8352 if test -n "$libpq_fe_h_file" -a "$have_libpq" = "yes"; then
8354 { test "$extra_verbose" = "yes" && cat << \EOF
8355 Defining HAVE_POSTGRESQL
8357 cat >> confdefs.h <<\EOF
8358 #define HAVE_POSTGRESQL 1
8363 echo $ac_n "checking for PQconnectStart in -lpq""... $ac_c" 1>&6
8364 echo "configure:8365: checking for PQconnectStart in -lpq" >&5
8365 ac_lib_var=`echo pq'_'PQconnectStart | sed 'y%./+-%__p_%'`
8367 xe_check_libs=" -lpq "
8368 cat > conftest.$ac_ext <<EOF
8369 #line 8370 "configure"
8370 #include "confdefs.h"
8371 /* Override any gcc2 internal prototype to avoid an error. */
8372 /* We use char because int might match the return type of a gcc2
8373 builtin and then its argument prototype would still apply. */
8374 char PQconnectStart();
8380 if { (eval echo configure:8381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8382 eval "ac_cv_lib_$ac_lib_var=yes"
8384 echo "configure: failed program was:" >&5
8385 cat conftest.$ac_ext >&5
8387 eval "ac_cv_lib_$ac_lib_var=no"
8392 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8393 echo "$ac_t""yes" 1>&6
8394 with_postgresqlv7=yes;
8395 { test "$extra_verbose" = "yes" && cat << \EOF
8396 Defining HAVE_POSTGRESQLV7
8398 cat >> confdefs.h <<\EOF
8399 #define HAVE_POSTGRESQLV7 1
8404 echo "$ac_t""no" 1>&6
8408 { test "$extra_verbose" = "yes" && cat << EOF
8409 Defining LIBPQ_FE_H_FILE = "$libpq_fe_h_file"
8411 cat >> confdefs.h <<EOF
8412 #define LIBPQ_FE_H_FILE "$libpq_fe_h_file"
8416 LIBS="-lpq $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpq\" to \$LIBS"; fi
8417 extra_objs="$extra_objs postgresql.o" && if test "$extra_verbose" = "yes"; then
8418 echo " xemacs will be linked with \"postgresql.o\""
8420 elif test "$with_postgresql" = "yes"; then
8421 { echo "Error:" "Required PostgreSQL support cannot be provided. Check --site-prefixes." >&2; exit 1; }
8426 if test "$window_system" != "none"; then
8427 echo "checking for graphics libraries" 1>&6
8428 echo "configure:8429: checking for graphics libraries" >&5
8434 cygwin_top=`eval "gcc -print-file-name=libc.a"` ;
8435 cygwin_top=`eval "dirname ${cygwin_top}"`;
8436 cygwin_top="${cygwin_top}/..";
8437 case "$window_system" in
8439 msw) libpath_xpm="-L${cygwin_top}/lib/noX"
8440 incpath_xpm="-I${cygwin_top}/include/noX"
8450 if test -z "$with_xpm"; then
8451 CFLAGS=""$incpath_xpm" $CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$incpath_xpm"\" to \$CFLAGS"; fi
8452 LDFLAGS=""$libpath_xpm" $LDFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libpath_xpm"\" to \$LDFLAGS"; fi
8453 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6
8454 echo "configure:8455: checking for Xpm - no older than 3.4f" >&5
8456 cat > conftest.$ac_ext <<EOF
8457 #line 8458 "configure"
8458 #include "confdefs.h"
8460 #include <X11/xpm.h>
8461 int main(int c, char **v) {
8463 XpmIncludeVersion != XpmLibraryVersion() ? 1 :
8464 XpmIncludeVersion < 30406 ? 2 : 0 ;}
8466 if { (eval echo configure:8467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
8468 ./conftest dummy_arg; xpm_status=$?;
8469 if test "$xpm_status" = "0"; then
8473 if test "$xpm_status" = "1"; then
8474 xpm_problem="Xpm library version and header file version don't match!"
8475 elif test "$xpm_status" = "2"; then
8476 xpm_problem="Xpm library version is too old!"
8478 xpm_problem="Internal xpm detection logic error!"
8481 *** WARNING *** $xpm_problem
8482 I'm not touching that with a 10-foot pole!
8483 If you really want to use the installed version of Xpm, rerun
8484 configure and add '--with-xpm=yes', but don't blame me if XEmacs crashes!"
8488 echo "configure: failed program was:" >&5
8489 cat conftest.$ac_ext >&5
8495 echo "$ac_t""$with_xpm" 1>&6
8497 if test "$with_xpm" = "yes"; then
8498 { test "$extra_verbose" = "yes" && cat << \EOF
8501 cat >> confdefs.h <<\EOF
8506 LDFLAGS=""$libpath_xpm" $LDFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libpath_xpm"\" to \$LDFLAGS"; fi
8507 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
8508 CFLAGS=""$incpath_xpm" $CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$incpath_xpm"\" to \$CFLAGS"; fi
8509 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6
8510 echo "configure:8511: checking for \"FOR_MSW\" xpm" >&5
8512 cat > conftest.$ac_ext <<EOF
8513 #line 8514 "configure"
8514 #include "confdefs.h"
8517 XpmCreatePixmapFromData()
8520 if { (eval echo configure:8521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8524 echo "configure: failed program was:" >&5
8525 cat conftest.$ac_ext >&5
8531 echo "$ac_t""$xpm_for_msw" 1>&6
8532 if test "$xpm_for_msw" = "yes"; then
8533 { test "$extra_verbose" = "yes" && cat << \EOF
8536 cat >> confdefs.h <<\EOF
8544 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
8545 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
8546 echo "configure:8547: checking for compface.h" >&5
8548 cat > conftest.$ac_ext <<EOF
8549 #line 8550 "configure"
8550 #include "confdefs.h"
8551 #include <compface.h>
8553 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8554 { (eval echo configure:8555: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8555 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8556 if test -z "$ac_err"; then
8558 eval "ac_cv_header_$ac_safe=yes"
8561 echo "configure: failed program was:" >&5
8562 cat conftest.$ac_ext >&5
8564 eval "ac_cv_header_$ac_safe=no"
8567 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8568 echo "$ac_t""yes" 1>&6
8571 echo "$ac_t""no" 1>&6
8575 test -z "$with_xface" && {
8576 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
8577 echo "configure:8578: checking for UnGenFace in -lcompface" >&5
8578 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
8580 xe_check_libs=" -lcompface "
8581 cat > conftest.$ac_ext <<EOF
8582 #line 8583 "configure"
8583 #include "confdefs.h"
8584 /* Override any gcc2 internal prototype to avoid an error. */
8585 /* We use char because int might match the return type of a gcc2
8586 builtin and then its argument prototype would still apply. */
8593 if { (eval echo configure:8594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8595 eval "ac_cv_lib_$ac_lib_var=yes"
8597 echo "configure: failed program was:" >&5
8598 cat conftest.$ac_ext >&5
8600 eval "ac_cv_lib_$ac_lib_var=no"
8605 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8606 echo "$ac_t""yes" 1>&6
8609 echo "$ac_t""no" 1>&6
8614 test -z "$with_xface" && with_xface=yes
8615 if test "$with_xface" = "yes"; then
8616 { test "$extra_verbose" = "yes" && cat << \EOF
8619 cat >> confdefs.h <<\EOF
8620 #define HAVE_XFACE 1
8624 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi
8627 if test "$with_gif" != "no"; then
8629 { test "$extra_verbose" = "yes" && cat << \EOF
8632 cat >> confdefs.h <<\EOF
8637 extra_objs="$extra_objs dgif_lib.o gif_io.o" && if test "$extra_verbose" = "yes"; then
8638 echo " xemacs will be linked with \"dgif_lib.o gif_io.o\""
8642 if test "$with_png $with_tiff" != "no no"; then
8644 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6
8645 echo "configure:8646: checking for inflate in -lc" >&5
8646 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'`
8648 xe_check_libs=" -lc "
8649 cat > conftest.$ac_ext <<EOF
8650 #line 8651 "configure"
8651 #include "confdefs.h"
8652 /* Override any gcc2 internal prototype to avoid an error. */
8653 /* We use char because int might match the return type of a gcc2
8654 builtin and then its argument prototype would still apply. */
8661 if { (eval echo configure:8662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8663 eval "ac_cv_lib_$ac_lib_var=yes"
8665 echo "configure: failed program was:" >&5
8666 cat conftest.$ac_ext >&5
8668 eval "ac_cv_lib_$ac_lib_var=no"
8673 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8674 echo "$ac_t""yes" 1>&6
8677 echo "$ac_t""no" 1>&6
8679 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
8680 echo "configure:8681: checking for inflate in -lz" >&5
8681 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
8683 xe_check_libs=" -lz "
8684 cat > conftest.$ac_ext <<EOF
8685 #line 8686 "configure"
8686 #include "confdefs.h"
8687 /* Override any gcc2 internal prototype to avoid an error. */
8688 /* We use char because int might match the return type of a gcc2
8689 builtin and then its argument prototype would still apply. */
8696 if { (eval echo configure:8697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8698 eval "ac_cv_lib_$ac_lib_var=yes"
8700 echo "configure: failed program was:" >&5
8701 cat conftest.$ac_ext >&5
8703 eval "ac_cv_lib_$ac_lib_var=no"
8708 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8709 echo "$ac_t""yes" 1>&6
8710 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi
8712 echo "$ac_t""no" 1>&6
8714 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6
8715 echo "configure:8716: checking for inflate in -lgz" >&5
8716 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'`
8718 xe_check_libs=" -lgz "
8719 cat > conftest.$ac_ext <<EOF
8720 #line 8721 "configure"
8721 #include "confdefs.h"
8722 /* Override any gcc2 internal prototype to avoid an error. */
8723 /* We use char because int might match the return type of a gcc2
8724 builtin and then its argument prototype would still apply. */
8731 if { (eval echo configure:8732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8733 eval "ac_cv_lib_$ac_lib_var=yes"
8735 echo "configure: failed program was:" >&5
8736 cat conftest.$ac_ext >&5
8738 eval "ac_cv_lib_$ac_lib_var=no"
8743 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8744 echo "$ac_t""yes" 1>&6
8745 libs_x="-lgz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgz\" to \$libs_x"; fi
8747 echo "$ac_t""no" 1>&6
8759 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
8760 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
8761 echo "configure:8762: checking for jpeglib.h" >&5
8763 cat > conftest.$ac_ext <<EOF
8764 #line 8765 "configure"
8765 #include "confdefs.h"
8766 #include <jpeglib.h>
8768 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8769 { (eval echo configure:8770: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8770 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8771 if test -z "$ac_err"; then
8773 eval "ac_cv_header_$ac_safe=yes"
8776 echo "configure: failed program was:" >&5
8777 cat conftest.$ac_ext >&5
8779 eval "ac_cv_header_$ac_safe=no"
8782 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8783 echo "$ac_t""yes" 1>&6
8786 echo "$ac_t""no" 1>&6
8790 test -z "$with_jpeg" && {
8791 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6
8792 echo "configure:8793: checking for jpeg_destroy_decompress in -ljpeg" >&5
8793 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'`
8795 xe_check_libs=" -ljpeg "
8796 cat > conftest.$ac_ext <<EOF
8797 #line 8798 "configure"
8798 #include "confdefs.h"
8799 /* Override any gcc2 internal prototype to avoid an error. */
8800 /* We use char because int might match the return type of a gcc2
8801 builtin and then its argument prototype would still apply. */
8802 char jpeg_destroy_decompress();
8805 jpeg_destroy_decompress()
8808 if { (eval echo configure:8809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8810 eval "ac_cv_lib_$ac_lib_var=yes"
8812 echo "configure: failed program was:" >&5
8813 cat conftest.$ac_ext >&5
8815 eval "ac_cv_lib_$ac_lib_var=no"
8820 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8821 echo "$ac_t""yes" 1>&6
8824 echo "$ac_t""no" 1>&6
8829 test -z "$with_jpeg" && with_jpeg=yes
8830 if test "$with_jpeg" = "yes"; then
8831 { test "$extra_verbose" = "yes" && cat << \EOF
8834 cat >> confdefs.h <<\EOF
8839 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi
8843 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6
8844 echo "configure:8845: checking for pow" >&5
8846 cat > conftest.$ac_ext <<EOF
8847 #line 8848 "configure"
8848 #include "confdefs.h"
8849 /* System header to define __stub macros and hopefully few prototypes,
8850 which can conflict with char pow(); below. */
8852 /* Override any gcc2 internal prototype to avoid an error. */
8853 /* We use char because int might match the return type of a gcc2
8854 builtin and then its argument prototype would still apply. */
8859 /* The GNU C library defines this for functions which it implements
8860 to always fail with ENOSYS. Some functions are actually named
8861 something starting with __ and the normal name is an alias. */
8862 #if defined (__stub_pow) || defined (__stub___pow)
8870 if { (eval echo configure:8871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8872 eval "ac_cv_func_pow=yes"
8874 echo "configure: failed program was:" >&5
8875 cat conftest.$ac_ext >&5
8877 eval "ac_cv_func_pow=no"
8881 if eval "test \"`echo '$ac_cv_func_'pow`\" = yes"; then
8882 echo "$ac_t""yes" 1>&6
8885 echo "$ac_t""no" 1>&6
8889 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
8890 echo $ac_n "checking for png.h""... $ac_c" 1>&6
8891 echo "configure:8892: checking for png.h" >&5
8893 cat > conftest.$ac_ext <<EOF
8894 #line 8895 "configure"
8895 #include "confdefs.h"
8898 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8899 { (eval echo configure:8900: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8900 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8901 if test -z "$ac_err"; then
8903 eval "ac_cv_header_$ac_safe=yes"
8906 echo "configure: failed program was:" >&5
8907 cat conftest.$ac_ext >&5
8909 eval "ac_cv_header_$ac_safe=no"
8912 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8913 echo "$ac_t""yes" 1>&6
8916 echo "$ac_t""no" 1>&6
8920 test -z "$with_png" && {
8921 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6
8922 echo "configure:8923: checking for png_read_image in -lpng" >&5
8923 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
8925 xe_check_libs=" -lpng "
8926 cat > conftest.$ac_ext <<EOF
8927 #line 8928 "configure"
8928 #include "confdefs.h"
8929 /* Override any gcc2 internal prototype to avoid an error. */
8930 /* We use char because int might match the return type of a gcc2
8931 builtin and then its argument prototype would still apply. */
8932 char png_read_image();
8938 if { (eval echo configure:8939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8940 eval "ac_cv_lib_$ac_lib_var=yes"
8942 echo "configure: failed program was:" >&5
8943 cat conftest.$ac_ext >&5
8945 eval "ac_cv_lib_$ac_lib_var=no"
8950 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8951 echo "$ac_t""yes" 1>&6
8954 echo "$ac_t""no" 1>&6
8959 if test -z "$with_png"; then
8960 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6
8961 echo "configure:8962: checking for workable png version information" >&5
8962 xe_check_libs="-lpng -lz"
8963 cat > conftest.$ac_ext <<EOF
8964 #line 8965 "configure"
8965 #include "confdefs.h"
8967 int main(int c, char **v) {
8968 if (c == 1) return 0;
8969 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1;
8970 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;}
8972 if { (eval echo configure:8973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
8974 ./conftest dummy_arg; png_status=$?;
8975 if test "$png_status" = "0"; then
8979 if test "$png_status" = "1"; then
8980 png_problem="PNG library version and header file don't match!"
8981 elif test "$png_status" = "2"; then
8982 png_problem="PNG library version too old (pre 1.0.2)!"
8985 *** WARNING *** $png_problem
8986 I'm not touching that with a 10-foot pole!
8987 If you really want to use the installed version of libPNG, rerun
8988 configure and add '--with-png=yes', but don't blame me if XEmacs crashes!"
8992 echo "configure: failed program was:" >&5
8993 cat conftest.$ac_ext >&5
8999 echo "$ac_t""$with_png" 1>&6
9001 if test "$with_png" = "yes"; then
9002 { test "$extra_verbose" = "yes" && cat << \EOF
9005 cat >> confdefs.h <<\EOF
9010 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi
9013 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
9014 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
9015 echo "configure:9016: checking for tiffio.h" >&5
9017 cat > conftest.$ac_ext <<EOF
9018 #line 9019 "configure"
9019 #include "confdefs.h"
9022 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9023 { (eval echo configure:9024: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9024 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9025 if test -z "$ac_err"; then
9027 eval "ac_cv_header_$ac_safe=yes"
9030 echo "configure: failed program was:" >&5
9031 cat conftest.$ac_ext >&5
9033 eval "ac_cv_header_$ac_safe=no"
9036 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9037 echo "$ac_t""yes" 1>&6
9040 echo "$ac_t""no" 1>&6
9044 test -z "$with_tiff" && {
9045 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6
9046 echo "configure:9047: checking for TIFFClientOpen in -ltiff" >&5
9047 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'`
9049 xe_check_libs=" -ltiff "
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 TIFFClientOpen();
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
9078 echo "$ac_t""no" 1>&6
9083 test -z "$with_tiff" && with_tiff=yes
9084 if test "$with_tiff" = "yes"; then
9085 { test "$extra_verbose" = "yes" && cat << \EOF
9088 cat >> confdefs.h <<\EOF
9093 libs_x="-ltiff $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltiff\" to \$libs_x"; fi
9098 if test "$with_gtk" = "yes"; then
9099 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
9100 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
9101 echo "configure:9102: checking for compface.h" >&5
9103 cat > conftest.$ac_ext <<EOF
9104 #line 9105 "configure"
9105 #include "confdefs.h"
9106 #include <compface.h>
9108 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9109 { (eval echo configure:9110: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9110 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9111 if test -z "$ac_err"; then
9113 eval "ac_cv_header_$ac_safe=yes"
9116 echo "configure: failed program was:" >&5
9117 cat conftest.$ac_ext >&5
9119 eval "ac_cv_header_$ac_safe=no"
9122 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9123 echo "$ac_t""yes" 1>&6
9126 echo "$ac_t""no" 1>&6
9130 test -z "$with_xface" && {
9131 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
9132 echo "configure:9133: checking for UnGenFace in -lcompface" >&5
9133 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
9135 xe_check_libs=" -lcompface "
9136 cat > conftest.$ac_ext <<EOF
9137 #line 9138 "configure"
9138 #include "confdefs.h"
9139 /* Override any gcc2 internal prototype to avoid an error. */
9140 /* We use char because int might match the return type of a gcc2
9141 builtin and then its argument prototype would still apply. */
9148 if { (eval echo configure:9149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9150 eval "ac_cv_lib_$ac_lib_var=yes"
9152 echo "configure: failed program was:" >&5
9153 cat conftest.$ac_ext >&5
9155 eval "ac_cv_lib_$ac_lib_var=no"
9160 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9161 echo "$ac_t""yes" 1>&6
9164 echo "$ac_t""no" 1>&6
9169 test -z "$with_xface" && with_xface=yes
9170 if test "$with_xface" = "yes"; then
9171 { test "$extra_verbose" = "yes" && cat << \EOF
9174 cat >> confdefs.h <<\EOF
9175 #define HAVE_XFACE 1
9179 libs_gtk="-lcompface $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_gtk"; fi
9185 if test "$with_x11" = "yes"; then
9186 echo "checking for X11 graphics libraries" 1>&6
9187 echo "configure:9188: checking for X11 graphics libraries" >&5
9190 if test "$with_x11" = "yes"; then
9191 echo "checking for the Athena widgets" 1>&6
9192 echo "configure:9193: checking for the Athena widgets" >&5
9194 case "$with_athena" in
9195 "xaw" | "") athena_variant=Xaw athena_3d=no ;;
9196 "3d") athena_variant=Xaw3d athena_3d=yes ;;
9197 "next") athena_variant=neXtaw athena_3d=yes ;;
9198 "95") athena_variant=Xaw95 athena_3d=yes ;;
9199 "xpm") athena_variant=XawXpm athena_3d=yes ;;
9200 *) { echo "Error:" "Unknown Athena widget set \`$with_athena'. This should not happen." >&2; exit 1; } ;;
9203 athena_3d_function=Xaw3dComputeBottomShadowRGB
9205 if test "$athena_3d" = "no"; then
9207 echo $ac_n "checking for XawScrollbarSetThumb in -l$athena_variant""... $ac_c" 1>&6
9208 echo "configure:9209: checking for XawScrollbarSetThumb in -l$athena_variant" >&5
9209 ac_lib_var=`echo $athena_variant'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
9211 xe_check_libs=" -l$athena_variant "
9212 cat > conftest.$ac_ext <<EOF
9213 #line 9214 "configure"
9214 #include "confdefs.h"
9215 /* Override any gcc2 internal prototype to avoid an error. */
9216 /* We use char because int might match the return type of a gcc2
9217 builtin and then its argument prototype would still apply. */
9218 char XawScrollbarSetThumb();
9221 XawScrollbarSetThumb()
9224 if { (eval echo configure:9225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9226 eval "ac_cv_lib_$ac_lib_var=yes"
9228 echo "configure: failed program was:" >&5
9229 cat conftest.$ac_ext >&5
9231 eval "ac_cv_lib_$ac_lib_var=no"
9236 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9237 echo "$ac_t""yes" 1>&6
9239 echo $ac_n "checking for $athena_3d_function in -l$athena_variant""... $ac_c" 1>&6
9240 echo "configure:9241: checking for $athena_3d_function in -l$athena_variant" >&5
9241 ac_lib_var=`echo $athena_variant'_'$athena_3d_function | sed 'y%./+-%__p_%'`
9243 xe_check_libs=" -l$athena_variant "
9244 cat > conftest.$ac_ext <<EOF
9245 #line 9246 "configure"
9246 #include "confdefs.h"
9247 /* Override any gcc2 internal prototype to avoid an error. */
9248 /* We use char because int might match the return type of a gcc2
9249 builtin and then its argument prototype would still apply. */
9250 char $athena_3d_function();
9253 $athena_3d_function()
9256 if { (eval echo configure:9257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9258 eval "ac_cv_lib_$ac_lib_var=yes"
9260 echo "configure: failed program was:" >&5
9261 cat conftest.$ac_ext >&5
9263 eval "ac_cv_lib_$ac_lib_var=no"
9268 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9269 echo "$ac_t""yes" 1>&6
9270 echo "configure: warning: "Could not find a non-3d Athena widget library."" 1>&2
9272 echo "$ac_t""no" 1>&6
9273 athena_lib=$athena_variant
9279 echo "$ac_t""no" 1>&6
9280 echo "configure: warning: "Could not find an Athena widget library."" 1>&2
9286 echo $ac_n "checking for $athena_3d_function in -l$athena_variant""... $ac_c" 1>&6
9287 echo "configure:9288: checking for $athena_3d_function in -l$athena_variant" >&5
9288 ac_lib_var=`echo $athena_variant'_'$athena_3d_function | sed 'y%./+-%__p_%'`
9290 xe_check_libs=" -l$athena_variant "
9291 cat > conftest.$ac_ext <<EOF
9292 #line 9293 "configure"
9293 #include "confdefs.h"
9294 /* Override any gcc2 internal prototype to avoid an error. */
9295 /* We use char because int might match the return type of a gcc2
9296 builtin and then its argument prototype would still apply. */
9297 char $athena_3d_function();
9300 $athena_3d_function()
9303 if { (eval echo configure:9304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9305 eval "ac_cv_lib_$ac_lib_var=yes"
9307 echo "configure: failed program was:" >&5
9308 cat conftest.$ac_ext >&5
9310 eval "ac_cv_lib_$ac_lib_var=no"
9315 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9316 echo "$ac_t""yes" 1>&6
9317 athena_lib=$athena_variant
9319 echo "$ac_t""no" 1>&6
9320 echo $ac_n "checking for $athena_3d_function in -lXaw""... $ac_c" 1>&6
9321 echo "configure:9322: checking for $athena_3d_function in -lXaw" >&5
9322 ac_lib_var=`echo Xaw'_'$athena_3d_function | sed 'y%./+-%__p_%'`
9324 xe_check_libs=" -lXaw "
9325 cat > conftest.$ac_ext <<EOF
9326 #line 9327 "configure"
9327 #include "confdefs.h"
9328 /* Override any gcc2 internal prototype to avoid an error. */
9329 /* We use char because int might match the return type of a gcc2
9330 builtin and then its argument prototype would still apply. */
9331 char $athena_3d_function();
9334 $athena_3d_function()
9337 if { (eval echo configure:9338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9339 eval "ac_cv_lib_$ac_lib_var=yes"
9341 echo "configure: failed program was:" >&5
9342 cat conftest.$ac_ext >&5
9344 eval "ac_cv_lib_$ac_lib_var=no"
9349 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9350 echo "$ac_t""yes" 1>&6
9352 echo "configure: warning: "Assuming that libXaw is actually $athena_variant."" 1>&2;
9355 echo "$ac_t""no" 1>&6
9356 echo "configure: warning: "Could not find a 3d Athena widget library that looked like $athena_variant."" 1>&2
9365 if test "$athena_3d" = "no"; then
9366 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
9367 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
9368 echo "configure:9369: checking for X11/Xaw/ThreeD.h" >&5
9370 cat > conftest.$ac_ext <<EOF
9371 #line 9372 "configure"
9372 #include "confdefs.h"
9373 #include <X11/Xaw/ThreeD.h>
9375 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9376 { (eval echo configure:9377: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9377 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9378 if test -z "$ac_err"; then
9380 eval "ac_cv_header_$ac_safe=yes"
9383 echo "configure: failed program was:" >&5
9384 cat conftest.$ac_ext >&5
9386 eval "ac_cv_header_$ac_safe=no"
9389 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9390 echo "$ac_t""yes" 1>&6
9391 echo "configure: warning: "Could not find a non-3d Athena header set."" 1>&2
9393 echo "$ac_t""no" 1>&6
9394 ac_safe=`echo "X11/Xaw/XawInit.h" | sed 'y%./+-%__p_%'`
9395 echo $ac_n "checking for X11/Xaw/XawInit.h""... $ac_c" 1>&6
9396 echo "configure:9397: checking for X11/Xaw/XawInit.h" >&5
9398 cat > conftest.$ac_ext <<EOF
9399 #line 9400 "configure"
9400 #include "confdefs.h"
9401 #include <X11/Xaw/XawInit.h>
9403 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9404 { (eval echo configure:9405: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9405 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9406 if test -z "$ac_err"; then
9408 eval "ac_cv_header_$ac_safe=yes"
9411 echo "configure: failed program was:" >&5
9412 cat conftest.$ac_ext >&5
9414 eval "ac_cv_header_$ac_safe=no"
9417 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9418 echo "$ac_t""yes" 1>&6
9419 athena_h_path=X11/Xaw
9421 echo "$ac_t""no" 1>&6
9422 echo "configure: warning: "Could not find a non-3d Athena header set."" 1>&2
9428 ac_safe=`echo "X11/$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
9429 echo $ac_n "checking for X11/$athena_variant/XawInit.h""... $ac_c" 1>&6
9430 echo "configure:9431: checking for X11/$athena_variant/XawInit.h" >&5
9432 cat > conftest.$ac_ext <<EOF
9433 #line 9434 "configure"
9434 #include "confdefs.h"
9435 #include <X11/$athena_variant/XawInit.h>
9437 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9438 { (eval echo configure:9439: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9439 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9440 if test -z "$ac_err"; then
9442 eval "ac_cv_header_$ac_safe=yes"
9445 echo "configure: failed program was:" >&5
9446 cat conftest.$ac_ext >&5
9448 eval "ac_cv_header_$ac_safe=no"
9451 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9452 echo "$ac_t""yes" 1>&6
9453 ac_safe=`echo "X11/$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
9454 echo $ac_n "checking for X11/$athena_variant/ThreeD.h""... $ac_c" 1>&6
9455 echo "configure:9456: checking for X11/$athena_variant/ThreeD.h" >&5
9457 cat > conftest.$ac_ext <<EOF
9458 #line 9459 "configure"
9459 #include "confdefs.h"
9460 #include <X11/$athena_variant/ThreeD.h>
9462 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9463 { (eval echo configure:9464: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9464 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9465 if test -z "$ac_err"; then
9467 eval "ac_cv_header_$ac_safe=yes"
9470 echo "configure: failed program was:" >&5
9471 cat conftest.$ac_ext >&5
9473 eval "ac_cv_header_$ac_safe=no"
9476 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9477 echo "$ac_t""yes" 1>&6
9478 athena_h_path=X11/$athena_variant
9480 echo "$ac_t""no" 1>&6
9484 echo "$ac_t""no" 1>&6
9488 if test -z "$athena_h_path"; then
9489 ac_safe=`echo "$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
9490 echo $ac_n "checking for $athena_variant/XawInit.h""... $ac_c" 1>&6
9491 echo "configure:9492: checking for $athena_variant/XawInit.h" >&5
9493 cat > conftest.$ac_ext <<EOF
9494 #line 9495 "configure"
9495 #include "confdefs.h"
9496 #include <$athena_variant/XawInit.h>
9498 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9499 { (eval echo configure:9500: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9500 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9501 if test -z "$ac_err"; then
9503 eval "ac_cv_header_$ac_safe=yes"
9506 echo "configure: failed program was:" >&5
9507 cat conftest.$ac_ext >&5
9509 eval "ac_cv_header_$ac_safe=no"
9512 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9513 echo "$ac_t""yes" 1>&6
9514 ac_safe=`echo "$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
9515 echo $ac_n "checking for $athena_variant/ThreeD.h""... $ac_c" 1>&6
9516 echo "configure:9517: checking for $athena_variant/ThreeD.h" >&5
9518 cat > conftest.$ac_ext <<EOF
9519 #line 9520 "configure"
9520 #include "confdefs.h"
9521 #include <$athena_variant/ThreeD.h>
9523 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9524 { (eval echo configure:9525: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9525 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9526 if test -z "$ac_err"; then
9528 eval "ac_cv_header_$ac_safe=yes"
9531 echo "configure: failed program was:" >&5
9532 cat conftest.$ac_ext >&5
9534 eval "ac_cv_header_$ac_safe=no"
9537 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9538 echo "$ac_t""yes" 1>&6
9539 athena_h_path=$athena_variant
9541 echo "$ac_t""no" 1>&6
9545 echo "$ac_t""no" 1>&6
9550 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
9551 ac_safe=`echo "X11/Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
9552 echo $ac_n "checking for X11/Xaw3d/XawInit.h""... $ac_c" 1>&6
9553 echo "configure:9554: checking for X11/Xaw3d/XawInit.h" >&5
9555 cat > conftest.$ac_ext <<EOF
9556 #line 9557 "configure"
9557 #include "confdefs.h"
9558 #include <X11/Xaw3d/XawInit.h>
9560 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9561 { (eval echo configure:9562: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9562 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9563 if test -z "$ac_err"; then
9565 eval "ac_cv_header_$ac_safe=yes"
9568 echo "configure: failed program was:" >&5
9569 cat conftest.$ac_ext >&5
9571 eval "ac_cv_header_$ac_safe=no"
9574 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9575 echo "$ac_t""yes" 1>&6
9576 ac_safe=`echo "X11/Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
9577 echo $ac_n "checking for X11/Xaw3d/ThreeD.h""... $ac_c" 1>&6
9578 echo "configure:9579: checking for X11/Xaw3d/ThreeD.h" >&5
9580 cat > conftest.$ac_ext <<EOF
9581 #line 9582 "configure"
9582 #include "confdefs.h"
9583 #include <X11/Xaw3d/ThreeD.h>
9585 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9586 { (eval echo configure:9587: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9587 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9588 if test -z "$ac_err"; then
9590 eval "ac_cv_header_$ac_safe=yes"
9593 echo "configure: failed program was:" >&5
9594 cat conftest.$ac_ext >&5
9596 eval "ac_cv_header_$ac_safe=no"
9599 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9600 echo "$ac_t""yes" 1>&6
9602 echo "configure: warning: "Assuming that X11/Xaw3d headers are suitable for $athena_variant."" 1>&2
9603 athena_h_path=X11/Xaw3d
9606 echo "$ac_t""no" 1>&6
9610 echo "$ac_t""no" 1>&6
9615 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
9616 ac_safe=`echo "Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
9617 echo $ac_n "checking for Xaw3d/XawInit.h""... $ac_c" 1>&6
9618 echo "configure:9619: checking for Xaw3d/XawInit.h" >&5
9620 cat > conftest.$ac_ext <<EOF
9621 #line 9622 "configure"
9622 #include "confdefs.h"
9623 #include <Xaw3d/XawInit.h>
9625 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9626 { (eval echo configure:9627: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9627 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9628 if test -z "$ac_err"; then
9630 eval "ac_cv_header_$ac_safe=yes"
9633 echo "configure: failed program was:" >&5
9634 cat conftest.$ac_ext >&5
9636 eval "ac_cv_header_$ac_safe=no"
9639 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9640 echo "$ac_t""yes" 1>&6
9641 ac_safe=`echo "Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
9642 echo $ac_n "checking for Xaw3d/ThreeD.h""... $ac_c" 1>&6
9643 echo "configure:9644: checking for Xaw3d/ThreeD.h" >&5
9645 cat > conftest.$ac_ext <<EOF
9646 #line 9647 "configure"
9647 #include "confdefs.h"
9648 #include <Xaw3d/ThreeD.h>
9650 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9651 { (eval echo configure:9652: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9652 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9653 if test -z "$ac_err"; then
9655 eval "ac_cv_header_$ac_safe=yes"
9658 echo "configure: failed program was:" >&5
9659 cat conftest.$ac_ext >&5
9661 eval "ac_cv_header_$ac_safe=no"
9664 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9665 echo "$ac_t""yes" 1>&6
9667 echo "configure: warning: "Assuming that Xaw3d headers are suitable for $athena_variant."" 1>&2
9671 echo "$ac_t""no" 1>&6
9675 echo "$ac_t""no" 1>&6
9680 if test -z "$athena_h_path"; then
9681 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
9682 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
9683 echo "configure:9684: checking for X11/Xaw/ThreeD.h" >&5
9685 cat > conftest.$ac_ext <<EOF
9686 #line 9687 "configure"
9687 #include "confdefs.h"
9688 #include <X11/Xaw/ThreeD.h>
9690 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9691 { (eval echo configure:9692: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9692 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9693 if test -z "$ac_err"; then
9695 eval "ac_cv_header_$ac_safe=yes"
9698 echo "configure: failed program was:" >&5
9699 cat conftest.$ac_ext >&5
9701 eval "ac_cv_header_$ac_safe=no"
9704 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9705 echo "$ac_t""yes" 1>&6
9707 echo "configure: warning: "Assuming that X11/Xaw headers are suitable for $athena_variant."" 1>&2
9708 athena_h_path=X11/Xaw
9711 echo "$ac_t""no" 1>&6
9712 echo "configure: warning: "Could not find a suitable 3d Athena header set."" 1>&2
9718 if test -n "$athena_lib" -a -n "$athena_h_path"; then
9727 if test "$with_x11" = "yes"; then
9728 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
9729 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
9730 echo "configure:9731: checking for Xm/Xm.h" >&5
9732 cat > conftest.$ac_ext <<EOF
9733 #line 9734 "configure"
9734 #include "confdefs.h"
9737 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9738 { (eval echo configure:9739: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9739 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9740 if test -z "$ac_err"; then
9742 eval "ac_cv_header_$ac_safe=yes"
9745 echo "configure: failed program was:" >&5
9746 cat conftest.$ac_ext >&5
9748 eval "ac_cv_header_$ac_safe=no"
9751 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9752 echo "$ac_t""yes" 1>&6
9754 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
9755 echo "configure:9756: checking for XmStringFree in -lXm" >&5
9756 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
9758 xe_check_libs=" -lXm "
9759 cat > conftest.$ac_ext <<EOF
9760 #line 9761 "configure"
9761 #include "confdefs.h"
9762 /* Override any gcc2 internal prototype to avoid an error. */
9763 /* We use char because int might match the return type of a gcc2
9764 builtin and then its argument prototype would still apply. */
9765 char XmStringFree();
9771 if { (eval echo configure:9772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9773 eval "ac_cv_lib_$ac_lib_var=yes"
9775 echo "configure: failed program was:" >&5
9776 cat conftest.$ac_ext >&5
9778 eval "ac_cv_lib_$ac_lib_var=no"
9783 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9784 echo "$ac_t""yes" 1>&6
9787 echo "$ac_t""no" 1>&6
9793 echo "$ac_t""no" 1>&6
9798 if test "$have_motif" = "yes"; then
9799 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6
9800 echo "configure:9801: checking for Lesstif" >&5
9801 cat > conftest.$ac_ext <<EOF
9802 #line 9803 "configure"
9803 #include "confdefs.h"
9805 #ifdef LESSTIF_VERSION
9810 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9811 egrep "yes" >/dev/null 2>&1; then
9820 echo "$ac_t""$have_lesstif" 1>&6
9826 *linux* | cygwin* ) lucid_prefers_motif="no" ;;
9827 * ) lucid_prefers_motif="yes" ;;
9830 case "$with_menubars" in "" | "yes" | "athena" )
9831 with_menubars="lucid" ;;
9833 case "$with_dialogs" in "" | "yes" | "lucid" )
9834 if test "$lucid_prefers_motif" = "yes"; then
9835 if test "$have_motif" = "yes"; then with_dialogs="motif"
9836 elif test "$have_xaw" = "yes"; then with_dialogs="athena"
9837 else with_dialogs=no
9840 if test "$have_xaw" = "yes"; then with_dialogs="athena"
9841 elif test "$have_motif" = "yes"; then with_dialogs="motif"
9842 else with_dialogs=no
9846 case "$with_scrollbars" in "" | "yes" )
9847 with_scrollbars="lucid" ;;
9849 case "$with_widgets" in
9851 if test "$lucid_prefers_motif" = "yes"; then
9852 if test "$have_motif" = "yes"; then with_widgets="motif"
9853 elif test "$have_xaw" = "yes"; then with_widgets="athena"
9854 else with_widgets=no
9857 if test "$have_xaw" = "yes"; then with_widgets="athena"
9858 elif test "$have_motif" = "yes"; then with_widgets="motif"
9859 else with_widgets=no
9866 all_widgets="$with_menubars $with_scrollbars $with_dialogs $with_toolbars $with_widgets"
9868 case "$all_widgets" in
9870 if test "$have_xaw" != "yes"; then
9871 { echo "Error:" "Could not find a suitable Athena library to build with." >&2; exit 1; }
9874 lwlib_objs="$lwlib_objs lwlib-Xaw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xaw.o\" to \$lwlib_objs"; fi
9876 libs_x="-l$athena_lib $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$athena_lib\" to \$libs_x"; fi
9878 { test "$extra_verbose" = "yes" && cat << EOF
9879 Defining ATHENA_Scrollbar_h_ = "$athena_h_path/Scrollbar.h"
9881 cat >> confdefs.h <<EOF
9882 #define ATHENA_Scrollbar_h_ "$athena_h_path/Scrollbar.h"
9886 { test "$extra_verbose" = "yes" && cat << EOF
9887 Defining ATHENA_Dialog_h_ = "$athena_h_path/Dialog.h"
9889 cat >> confdefs.h <<EOF
9890 #define ATHENA_Dialog_h_ "$athena_h_path/Dialog.h"
9894 { test "$extra_verbose" = "yes" && cat << EOF
9895 Defining ATHENA_Form_h_ = "$athena_h_path/Form.h"
9897 cat >> confdefs.h <<EOF
9898 #define ATHENA_Form_h_ "$athena_h_path/Form.h"
9902 { test "$extra_verbose" = "yes" && cat << EOF
9903 Defining ATHENA_Command_h_ = "$athena_h_path/Command.h"
9905 cat >> confdefs.h <<EOF
9906 #define ATHENA_Command_h_ "$athena_h_path/Command.h"
9910 { test "$extra_verbose" = "yes" && cat << EOF
9911 Defining ATHENA_Label_h_ = "$athena_h_path/Label.h"
9913 cat >> confdefs.h <<EOF
9914 #define ATHENA_Label_h_ "$athena_h_path/Label.h"
9918 { test "$extra_verbose" = "yes" && cat << EOF
9919 Defining ATHENA_LabelP_h_ = "$athena_h_path/LabelP.h"
9921 cat >> confdefs.h <<EOF
9922 #define ATHENA_LabelP_h_ "$athena_h_path/LabelP.h"
9926 { test "$extra_verbose" = "yes" && cat << EOF
9927 Defining ATHENA_Toggle_h_ = "$athena_h_path/Toggle.h"
9929 cat >> confdefs.h <<EOF
9930 #define ATHENA_Toggle_h_ "$athena_h_path/Toggle.h"
9934 { test "$extra_verbose" = "yes" && cat << EOF
9935 Defining ATHENA_ToggleP_h_ = "$athena_h_path/ToggleP.h"
9937 cat >> confdefs.h <<EOF
9938 #define ATHENA_ToggleP_h_ "$athena_h_path/ToggleP.h"
9942 { test "$extra_verbose" = "yes" && cat << EOF
9943 Defining ATHENA_AsciiText_h_ = "$athena_h_path/AsciiText.h"
9945 cat >> confdefs.h <<EOF
9946 #define ATHENA_AsciiText_h_ "$athena_h_path/AsciiText.h"
9950 { test "$extra_verbose" = "yes" && cat << EOF
9951 Defining ATHENA_XawInit_h_ = "$athena_h_path/XawInit.h"
9953 cat >> confdefs.h <<EOF
9954 #define ATHENA_XawInit_h_ "$athena_h_path/XawInit.h"
9959 { test "$extra_verbose" = "yes" && cat << \EOF
9960 Defining LWLIB_USES_ATHENA
9962 cat >> confdefs.h <<\EOF
9963 #define LWLIB_USES_ATHENA 1
9967 { test "$extra_verbose" = "yes" && cat << \EOF
9968 Defining NEED_ATHENA
9970 cat >> confdefs.h <<\EOF
9971 #define NEED_ATHENA 1
9977 if test "$athena_3d" = "yes"; then
9978 { test "$extra_verbose" = "yes" && cat << \EOF
9979 Defining HAVE_ATHENA_3D
9981 cat >> confdefs.h <<\EOF
9982 #define HAVE_ATHENA_3D 1
9990 case "$all_widgets" in *motif* )
9991 { test "$extra_verbose" = "yes" && cat << \EOF
9992 Defining LWLIB_USES_MOTIF
9994 cat >> confdefs.h <<\EOF
9995 #define LWLIB_USES_MOTIF 1
9999 { test "$extra_verbose" = "yes" && cat << \EOF
10000 Defining NEED_MOTIF
10002 cat >> confdefs.h <<\EOF
10003 #define NEED_MOTIF 1
10007 lwlib_objs="$lwlib_objs lwlib-Xm.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xm.o\" to \$lwlib_objs"; fi
10011 test "$with_menubars" = "lucid" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
10012 test "$with_menubars" = "motif" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
10013 test "$with_scrollbars" = "lucid" && lwlib_objs="$lwlib_objs xlwscrollbar.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwscrollbar.o\" to \$lwlib_objs"; fi
10014 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
10015 lwlib_objs="$lwlib_objs xlwtabs.o xlwgcs.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwtabs.o xlwgcs.o\" to \$lwlib_objs"; fi
10016 case "$with_widgets" in athena* )
10017 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;;
10019 case "$all_widgets" in *lucid* )
10020 { test "$extra_verbose" = "yes" && cat << \EOF
10021 Defining NEED_LUCID
10023 cat >> confdefs.h <<\EOF
10024 #define NEED_LUCID 1
10028 lwlib_objs="$lwlib_objs lwlib-Xlw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xlw.o\" to \$lwlib_objs"; fi ;;
10033 test "$with_scrollbars" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
10034 Defining LWLIB_SCROLLBARS_ATHENA
10036 cat >> confdefs.h <<\EOF
10037 #define LWLIB_SCROLLBARS_ATHENA 1
10041 test "$with_dialogs" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
10042 Defining LWLIB_DIALOGS_ATHENA
10044 cat >> confdefs.h <<\EOF
10045 #define LWLIB_DIALOGS_ATHENA 1
10050 if test "$athena_3d" = "yes"; then
10051 test "$with_scrollbars" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
10052 Defining LWLIB_SCROLLBARS_ATHENA3D
10054 cat >> confdefs.h <<\EOF
10055 #define LWLIB_SCROLLBARS_ATHENA3D 1
10059 test "$with_dialogs" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
10060 Defining LWLIB_DIALOGS_ATHENA3D
10062 cat >> confdefs.h <<\EOF
10063 #define LWLIB_DIALOGS_ATHENA3D 1
10069 case "$with_widgets" in athena* ) { test "$extra_verbose" = "yes" && cat << \EOF
10070 Defining LWLIB_WIDGETS_ATHENA
10072 cat >> confdefs.h <<\EOF
10073 #define LWLIB_WIDGETS_ATHENA 1
10077 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
10078 { test "$extra_verbose" = "yes" && cat << \EOF
10079 Defining LWLIB_TABS_LUCID
10081 cat >> confdefs.h <<\EOF
10082 #define LWLIB_TABS_LUCID 1
10087 test "$with_menubars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
10088 Defining HAVE_MENUBARS
10090 cat >> confdefs.h <<\EOF
10091 #define HAVE_MENUBARS 1
10095 test "$with_scrollbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
10096 Defining HAVE_SCROLLBARS
10098 cat >> confdefs.h <<\EOF
10099 #define HAVE_SCROLLBARS 1
10103 test "$with_dialogs" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
10104 Defining HAVE_DIALOGS
10106 cat >> confdefs.h <<\EOF
10107 #define HAVE_DIALOGS 1
10111 test "$with_toolbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
10112 Defining HAVE_TOOLBARS
10114 cat >> confdefs.h <<\EOF
10115 #define HAVE_TOOLBARS 1
10119 test "$with_widgets" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
10120 Defining HAVE_WIDGETS
10122 cat >> confdefs.h <<\EOF
10123 #define HAVE_WIDGETS 1
10128 test "$with_menubars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
10129 Defining LWLIB_MENUBARS_LUCID
10131 cat >> confdefs.h <<\EOF
10132 #define LWLIB_MENUBARS_LUCID 1
10136 test "$with_scrollbars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
10137 Defining LWLIB_SCROLLBARS_LUCID
10139 cat >> confdefs.h <<\EOF
10140 #define LWLIB_SCROLLBARS_LUCID 1
10145 test "$with_menubars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
10146 Defining LWLIB_MENUBARS_MOTIF
10148 cat >> confdefs.h <<\EOF
10149 #define LWLIB_MENUBARS_MOTIF 1
10153 test "$with_scrollbars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
10154 Defining LWLIB_SCROLLBARS_MOTIF
10156 cat >> confdefs.h <<\EOF
10157 #define LWLIB_SCROLLBARS_MOTIF 1
10161 test "$with_dialogs" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
10162 Defining LWLIB_DIALOGS_MOTIF
10164 cat >> confdefs.h <<\EOF
10165 #define LWLIB_DIALOGS_MOTIF 1
10169 test "$with_widgets" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
10170 Defining LWLIB_WIDGETS_MOTIF
10172 cat >> confdefs.h <<\EOF
10173 #define LWLIB_WIDGETS_MOTIF 1
10178 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar.o" && if test "$extra_verbose" = "yes"; then
10179 echo " xemacs will be linked with \"menubar.o\""
10181 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar.o" && if test "$extra_verbose" = "yes"; then
10182 echo " xemacs will be linked with \"scrollbar.o\""
10184 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog.o" && if test "$extra_verbose" = "yes"; then
10185 echo " xemacs will be linked with \"dialog.o\""
10187 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar.o" && if test "$extra_verbose" = "yes"; then
10188 echo " xemacs will be linked with \"toolbar.o\""
10191 if test "$with_gtk" = "yes"; then
10192 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-gtk.o" && if test "$extra_verbose" = "yes"; then
10193 echo " xemacs will be linked with \"menubar-gtk.o\""
10195 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-gtk.o" && if test "$extra_verbose" = "yes"; then
10196 echo " xemacs will be linked with \"scrollbar-gtk.o\""
10198 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-gtk.o" && if test "$extra_verbose" = "yes"; then
10199 echo " xemacs will be linked with \"dialog-gtk.o\""
10201 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-gtk.o" && if test "$extra_verbose" = "yes"; then
10202 echo " xemacs will be linked with \"toolbar-gtk.o\""
10204 test "$all_widgets" != "no no no no no" && extra_objs="$extra_objs gui-gtk.o" && if test "$extra_verbose" = "yes"; then
10205 echo " xemacs will be linked with \"gui-gtk.o\""
10209 if test "$with_x11" = "yes"; then
10210 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-x.o" && if test "$extra_verbose" = "yes"; then
10211 echo " xemacs will be linked with \"menubar-x.o\""
10213 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-x.o" && if test "$extra_verbose" = "yes"; then
10214 echo " xemacs will be linked with \"scrollbar-x.o\""
10216 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-x.o" && if test "$extra_verbose" = "yes"; then
10217 echo " xemacs will be linked with \"dialog-x.o\""
10219 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-x.o" && if test "$extra_verbose" = "yes"; then
10220 echo " xemacs will be linked with \"toolbar-x.o\""
10222 test "$all_widgets" != "no no no no no" && extra_objs="$extra_objs gui-x.o" && if test "$extra_verbose" = "yes"; then
10223 echo " xemacs will be linked with \"gui-x.o\""
10228 test -z "$with_mule" && with_mule=no
10229 test -z "$with_file_coding" && with_file_coding=no
10232 if test "$with_file_coding" = "yes" && test "$with_mule" = "no"; then
10233 { test "$extra_verbose" = "yes" && cat << \EOF
10234 Defining FILE_CODING
10236 cat >> confdefs.h <<\EOF
10237 #define FILE_CODING 1
10241 extra_objs="$extra_objs file-coding.o" && if test "$extra_verbose" = "yes"; then
10242 echo " xemacs will be linked with \"file-coding.o\""
10246 if test "$with_mule" = "yes" ; then
10247 echo "checking for Mule-related features" 1>&6
10248 echo "configure:10249: checking for Mule-related features" >&5
10249 { test "$extra_verbose" = "yes" && cat << \EOF
10252 cat >> confdefs.h <<\EOF
10257 { test "$extra_verbose" = "yes" && cat << \EOF
10258 Defining FILE_CODING
10260 cat >> confdefs.h <<\EOF
10261 #define FILE_CODING 1
10265 extra_objs="$extra_objs mule.o mule-ccl.o mule-charset.o file-coding.o" && if test "$extra_verbose" = "yes"; then
10266 echo " xemacs will be linked with \"mule.o mule-ccl.o mule-charset.o file-coding.o\""
10269 for ac_hdr in libintl.h
10271 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10272 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10273 echo "configure:10274: checking for $ac_hdr" >&5
10275 cat > conftest.$ac_ext <<EOF
10276 #line 10277 "configure"
10277 #include "confdefs.h"
10280 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10281 { (eval echo configure:10282: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10282 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10283 if test -z "$ac_err"; then
10285 eval "ac_cv_header_$ac_safe=yes"
10288 echo "configure: failed program was:" >&5
10289 cat conftest.$ac_ext >&5
10291 eval "ac_cv_header_$ac_safe=no"
10294 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10295 echo "$ac_t""yes" 1>&6
10296 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10297 { test "$extra_verbose" = "yes" && cat << EOF
10298 Defining $ac_tr_hdr
10300 cat >> confdefs.h <<EOF
10301 #define $ac_tr_hdr 1
10306 echo "$ac_t""no" 1>&6
10311 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
10312 echo "configure:10313: checking for strerror in -lintl" >&5
10313 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
10315 xe_check_libs=" -lintl "
10316 cat > conftest.$ac_ext <<EOF
10317 #line 10318 "configure"
10318 #include "confdefs.h"
10319 /* Override any gcc2 internal prototype to avoid an error. */
10320 /* We use char because int might match the return type of a gcc2
10321 builtin and then its argument prototype would still apply. */
10328 if { (eval echo configure:10329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10330 eval "ac_cv_lib_$ac_lib_var=yes"
10332 echo "configure: failed program was:" >&5
10333 cat conftest.$ac_ext >&5
10335 eval "ac_cv_lib_$ac_lib_var=no"
10340 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10341 echo "$ac_t""yes" 1>&6
10342 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10343 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10344 { test "$extra_verbose" = "yes" && cat << EOF
10345 Defining $ac_tr_lib
10347 cat >> confdefs.h <<EOF
10348 #define $ac_tr_lib 1
10352 LIBS="-lintl $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lintl\" to \$LIBS"; fi
10355 echo "$ac_t""no" 1>&6
10360 echo "checking for Mule input methods" 1>&6
10361 echo "configure:10362: checking for Mule input methods" >&5
10362 case "$with_xim" in "" | "yes" )
10363 echo "checking for XIM" 1>&6
10364 echo "configure:10365: checking for XIM" >&5
10366 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6
10367 echo "configure:10368: checking for XOpenIM in -lX11" >&5
10368 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'`
10370 xe_check_libs=" -lX11 "
10371 cat > conftest.$ac_ext <<EOF
10372 #line 10373 "configure"
10373 #include "confdefs.h"
10374 /* Override any gcc2 internal prototype to avoid an error. */
10375 /* We use char because int might match the return type of a gcc2
10376 builtin and then its argument prototype would still apply. */
10383 if { (eval echo configure:10384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10385 eval "ac_cv_lib_$ac_lib_var=yes"
10387 echo "configure: failed program was:" >&5
10388 cat conftest.$ac_ext >&5
10390 eval "ac_cv_lib_$ac_lib_var=no"
10395 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10396 echo "$ac_t""yes" 1>&6
10399 echo "$ac_t""no" 1>&6
10404 if test "$need_motif $have_lesstif" = "yes no"; then
10406 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
10407 echo "configure:10408: checking for XmImMbLookupString in -lXm" >&5
10408 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
10410 xe_check_libs=" -lXm "
10411 cat > conftest.$ac_ext <<EOF
10412 #line 10413 "configure"
10413 #include "confdefs.h"
10414 /* Override any gcc2 internal prototype to avoid an error. */
10415 /* We use char because int might match the return type of a gcc2
10416 builtin and then its argument prototype would still apply. */
10417 char XmImMbLookupString();
10420 XmImMbLookupString()
10423 if { (eval echo configure:10424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10425 eval "ac_cv_lib_$ac_lib_var=yes"
10427 echo "configure: failed program was:" >&5
10428 cat conftest.$ac_ext >&5
10430 eval "ac_cv_lib_$ac_lib_var=no"
10435 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10436 echo "$ac_t""yes" 1>&6
10439 echo "$ac_t""no" 1>&6
10443 elif test "$have_motif $have_lesstif $with_xim" = "yes no no"; then
10445 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
10446 echo "configure:10447: checking for XmImMbLookupString in -lXm" >&5
10447 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
10449 xe_check_libs=" -lXm "
10450 cat > conftest.$ac_ext <<EOF
10451 #line 10452 "configure"
10452 #include "confdefs.h"
10453 /* Override any gcc2 internal prototype to avoid an error. */
10454 /* We use char because int might match the return type of a gcc2
10455 builtin and then its argument prototype would still apply. */
10456 char XmImMbLookupString();
10459 XmImMbLookupString()
10462 if { (eval echo configure:10463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10464 eval "ac_cv_lib_$ac_lib_var=yes"
10466 echo "configure: failed program was:" >&5
10467 cat conftest.$ac_ext >&5
10469 eval "ac_cv_lib_$ac_lib_var=no"
10474 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10475 echo "$ac_t""yes" 1>&6
10478 echo "$ac_t""no" 1>&6
10484 if test "$with_xim" != "no"; then
10485 { test "$extra_verbose" = "yes" && cat << \EOF
10488 cat >> confdefs.h <<\EOF
10493 if test "$with_xim" = "xlib"; then
10494 { test "$extra_verbose" = "yes" && cat << \EOF
10497 cat >> confdefs.h <<\EOF
10502 extra_objs="$extra_objs input-method-xlib.o" && if test "$extra_verbose" = "yes"; then
10503 echo " xemacs will be linked with \"input-method-xlib.o\""
10506 if test "$with_xim" = "motif"; then
10507 { test "$extra_verbose" = "yes" && cat << \EOF
10510 cat >> confdefs.h <<\EOF
10511 #define XIM_MOTIF 1
10516 extra_objs="$extra_objs input-method-motif.o" && if test "$extra_verbose" = "yes"; then
10517 echo " xemacs will be linked with \"input-method-motif.o\""
10520 if test "$with_xim" = "motif"; then
10525 if test "$with_xfs" = "yes" ; then
10526 echo "checking for XFontSet" 1>&6
10527 echo "configure:10528: checking for XFontSet" >&5
10529 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6
10530 echo "configure:10531: checking for XmbDrawString in -lX11" >&5
10531 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
10533 xe_check_libs=" -lX11 "
10534 cat > conftest.$ac_ext <<EOF
10535 #line 10536 "configure"
10536 #include "confdefs.h"
10537 /* Override any gcc2 internal prototype to avoid an error. */
10538 /* We use char because int might match the return type of a gcc2
10539 builtin and then its argument prototype would still apply. */
10540 char XmbDrawString();
10546 if { (eval echo configure:10547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10548 eval "ac_cv_lib_$ac_lib_var=yes"
10550 echo "configure: failed program was:" >&5
10551 cat conftest.$ac_ext >&5
10553 eval "ac_cv_lib_$ac_lib_var=no"
10558 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10559 echo "$ac_t""yes" 1>&6
10562 echo "$ac_t""no" 1>&6
10567 if test "$with_xfs" = "yes" && test "$with_menubars" = "lucid"; then
10568 { test "$extra_verbose" = "yes" && cat << \EOF
10569 Defining USE_XFONTSET
10571 cat >> confdefs.h <<\EOF
10572 #define USE_XFONTSET 1
10576 if test "$with_xim" = "no" ; then
10577 extra_objs="$extra_objs input-method-xlib.o" && if test "$extra_verbose" = "yes"; then
10578 echo " xemacs will be linked with \"input-method-xlib.o\""
10583 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
10584 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
10585 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
10586 echo "configure:10587: checking for wnn/jllib.h" >&5
10588 cat > conftest.$ac_ext <<EOF
10589 #line 10590 "configure"
10590 #include "confdefs.h"
10591 #include <wnn/jllib.h>
10593 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10594 { (eval echo configure:10595: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10595 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10596 if test -z "$ac_err"; then
10598 eval "ac_cv_header_$ac_safe=yes"
10601 echo "configure: failed program was:" >&5
10602 cat conftest.$ac_ext >&5
10604 eval "ac_cv_header_$ac_safe=no"
10607 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10608 echo "$ac_t""yes" 1>&6
10611 echo "$ac_t""no" 1>&6
10615 test -z "$with_wnn" && { ac_safe=`echo "wnn/commonhd.h" | sed 'y%./+-%__p_%'`
10616 echo $ac_n "checking for wnn/commonhd.h""... $ac_c" 1>&6
10617 echo "configure:10618: checking for wnn/commonhd.h" >&5
10619 cat > conftest.$ac_ext <<EOF
10620 #line 10621 "configure"
10621 #include "confdefs.h"
10622 #include <wnn/commonhd.h>
10624 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10625 { (eval echo configure:10626: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10626 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10627 if test -z "$ac_err"; then
10629 eval "ac_cv_header_$ac_safe=yes"
10632 echo "configure: failed program was:" >&5
10633 cat conftest.$ac_ext >&5
10635 eval "ac_cv_header_$ac_safe=no"
10638 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10639 echo "$ac_t""yes" 1>&6
10642 echo "$ac_t""no" 1>&6
10646 if test "$with_wnn" != "no"; then
10647 for ac_func in crypt
10649 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10650 echo "configure:10651: checking for $ac_func" >&5
10652 cat > conftest.$ac_ext <<EOF
10653 #line 10654 "configure"
10654 #include "confdefs.h"
10655 /* System header to define __stub macros and hopefully few prototypes,
10656 which can conflict with char $ac_func(); below. */
10657 #include <assert.h>
10658 /* Override any gcc2 internal prototype to avoid an error. */
10659 /* We use char because int might match the return type of a gcc2
10660 builtin and then its argument prototype would still apply. */
10665 /* The GNU C library defines this for functions which it implements
10666 to always fail with ENOSYS. Some functions are actually named
10667 something starting with __ and the normal name is an alias. */
10668 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10676 if { (eval echo configure:10677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10678 eval "ac_cv_func_$ac_func=yes"
10680 echo "configure: failed program was:" >&5
10681 cat conftest.$ac_ext >&5
10683 eval "ac_cv_func_$ac_func=no"
10687 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10688 echo "$ac_t""yes" 1>&6
10689 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10690 { test "$extra_verbose" = "yes" && cat << EOF
10691 Defining $ac_tr_func
10693 cat >> confdefs.h <<EOF
10694 #define $ac_tr_func 1
10699 echo "$ac_t""no" 1>&6
10703 test "$ac_cv_func_crypt" != "yes" && {
10704 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
10705 echo "configure:10706: checking for crypt in -lcrypt" >&5
10706 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
10708 xe_check_libs=" -lcrypt "
10709 cat > conftest.$ac_ext <<EOF
10710 #line 10711 "configure"
10711 #include "confdefs.h"
10712 /* Override any gcc2 internal prototype to avoid an error. */
10713 /* We use char because int might match the return type of a gcc2
10714 builtin and then its argument prototype would still apply. */
10721 if { (eval echo configure:10722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10723 eval "ac_cv_lib_$ac_lib_var=yes"
10725 echo "configure: failed program was:" >&5
10726 cat conftest.$ac_ext >&5
10728 eval "ac_cv_lib_$ac_lib_var=no"
10733 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10734 echo "$ac_t""yes" 1>&6
10735 ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10736 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10737 { test "$extra_verbose" = "yes" && cat << EOF
10738 Defining $ac_tr_lib
10740 cat >> confdefs.h <<EOF
10741 #define $ac_tr_lib 1
10745 LIBS="-lcrypt $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcrypt\" to \$LIBS"; fi
10748 echo "$ac_t""no" 1>&6
10753 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then
10755 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
10756 echo "configure:10757: checking for jl_dic_list_e in -lwnn" >&5
10757 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
10759 xe_check_libs=" -lwnn "
10760 cat > conftest.$ac_ext <<EOF
10761 #line 10762 "configure"
10762 #include "confdefs.h"
10763 /* Override any gcc2 internal prototype to avoid an error. */
10764 /* We use char because int might match the return type of a gcc2
10765 builtin and then its argument prototype would still apply. */
10766 char jl_dic_list_e();
10772 if { (eval echo configure:10773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10774 eval "ac_cv_lib_$ac_lib_var=yes"
10776 echo "configure: failed program was:" >&5
10777 cat conftest.$ac_ext >&5
10779 eval "ac_cv_lib_$ac_lib_var=no"
10784 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10785 echo "$ac_t""yes" 1>&6
10788 echo "$ac_t""no" 1>&6
10789 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6
10790 echo "configure:10791: checking for jl_dic_list_e in -lwnn4" >&5
10791 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
10793 xe_check_libs=" -lwnn4 "
10794 cat > conftest.$ac_ext <<EOF
10795 #line 10796 "configure"
10796 #include "confdefs.h"
10797 /* Override any gcc2 internal prototype to avoid an error. */
10798 /* We use char because int might match the return type of a gcc2
10799 builtin and then its argument prototype would still apply. */
10800 char jl_dic_list_e();
10806 if { (eval echo configure:10807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10808 eval "ac_cv_lib_$ac_lib_var=yes"
10810 echo "configure: failed program was:" >&5
10811 cat conftest.$ac_ext >&5
10813 eval "ac_cv_lib_$ac_lib_var=no"
10818 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10819 echo "$ac_t""yes" 1>&6
10822 echo "$ac_t""no" 1>&6
10823 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6
10824 echo "configure:10825: checking for jl_dic_list_e in -lwnn6" >&5
10825 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
10827 xe_check_libs=" -lwnn6 "
10828 cat > conftest.$ac_ext <<EOF
10829 #line 10830 "configure"
10830 #include "confdefs.h"
10831 /* Override any gcc2 internal prototype to avoid an error. */
10832 /* We use char because int might match the return type of a gcc2
10833 builtin and then its argument prototype would still apply. */
10834 char jl_dic_list_e();
10840 if { (eval echo configure:10841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10842 eval "ac_cv_lib_$ac_lib_var=yes"
10844 echo "configure: failed program was:" >&5
10845 cat conftest.$ac_ext >&5
10847 eval "ac_cv_lib_$ac_lib_var=no"
10852 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10853 echo "$ac_t""yes" 1>&6
10856 echo "$ac_t""no" 1>&6
10857 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6
10858 echo "configure:10859: checking for dic_list_e in -lwnn6_fromsrc" >&5
10859 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'`
10861 xe_check_libs=" -lwnn6_fromsrc "
10862 cat > conftest.$ac_ext <<EOF
10863 #line 10864 "configure"
10864 #include "confdefs.h"
10865 /* Override any gcc2 internal prototype to avoid an error. */
10866 /* We use char because int might match the return type of a gcc2
10867 builtin and then its argument prototype would still apply. */
10874 if { (eval echo configure:10875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10876 eval "ac_cv_lib_$ac_lib_var=yes"
10878 echo "configure: failed program was:" >&5
10879 cat conftest.$ac_ext >&5
10881 eval "ac_cv_lib_$ac_lib_var=no"
10886 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10887 echo "$ac_t""yes" 1>&6
10888 libwnn=wnn6_fromsrc
10890 echo "$ac_t""no" 1>&6
10905 test -z "$with_wnn" && with_wnn=yes
10906 if test "$with_wnn" = "yes"; then
10907 { test "$extra_verbose" = "yes" && cat << \EOF
10910 cat >> confdefs.h <<\EOF
10915 libs_x="-l$libwnn $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$libwnn\" to \$libs_x"; fi
10916 extra_objs="$extra_objs mule-wnnfns.o" && if test "$extra_verbose" = "yes"; then
10917 echo " xemacs will be linked with \"mule-wnnfns.o\""
10919 if test "$with_wnn6" != "no"; then
10921 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6
10922 echo "configure:10923: checking for jl_fi_dic_list in -l$libwnn" >&5
10923 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
10925 xe_check_libs=" -l$libwnn "
10926 cat > conftest.$ac_ext <<EOF
10927 #line 10928 "configure"
10928 #include "confdefs.h"
10929 /* Override any gcc2 internal prototype to avoid an error. */
10930 /* We use char because int might match the return type of a gcc2
10931 builtin and then its argument prototype would still apply. */
10932 char jl_fi_dic_list();
10938 if { (eval echo configure:10939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10940 eval "ac_cv_lib_$ac_lib_var=yes"
10942 echo "configure: failed program was:" >&5
10943 cat conftest.$ac_ext >&5
10945 eval "ac_cv_lib_$ac_lib_var=no"
10950 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10951 echo "$ac_t""yes" 1>&6
10954 echo "$ac_t""no" 1>&6
10958 test "$with_wnn6" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
10961 cat >> confdefs.h <<\EOF
10969 canna_includes_found=no
10970 if test "$with_canna" != "no"; then
10971 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
10972 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
10973 echo "configure:10974: checking for canna/jrkanji.h" >&5
10975 cat > conftest.$ac_ext <<EOF
10976 #line 10977 "configure"
10977 #include "confdefs.h"
10978 #include <canna/jrkanji.h>
10980 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10981 { (eval echo configure:10982: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10982 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10983 if test -z "$ac_err"; then
10985 eval "ac_cv_header_$ac_safe=yes"
10988 echo "configure: failed program was:" >&5
10989 cat conftest.$ac_ext >&5
10991 eval "ac_cv_header_$ac_safe=no"
10994 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10995 echo "$ac_t""yes" 1>&6
10996 canna_includes_found=yes
10998 echo "$ac_t""no" 1>&6
11002 if test "$canna_includes_found" = "no" -a "$with_canna" != "no" -a \
11003 -d "/usr/local/canna/include"; then
11004 save_c_switch_site="$c_switch_site"
11005 c_switch_site="$c_switch_site -I/usr/local/canna/include"
11006 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
11007 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
11008 echo "configure:11009: checking for canna/jrkanji.h" >&5
11010 cat > conftest.$ac_ext <<EOF
11011 #line 11012 "configure"
11012 #include "confdefs.h"
11013 #include <canna/jrkanji.h>
11015 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11016 { (eval echo configure:11017: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11017 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11018 if test -z "$ac_err"; then
11020 eval "ac_cv_header_$ac_safe=yes"
11023 echo "configure: failed program was:" >&5
11024 cat conftest.$ac_ext >&5
11026 eval "ac_cv_header_$ac_safe=no"
11029 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11030 echo "$ac_t""yes" 1>&6
11031 canna_includes_found=yes
11033 echo "$ac_t""no" 1>&6
11036 if test "$canna_includes_found" != "yes"; then
11037 c_switch_site="$save_c_switch_site"
11042 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
11043 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
11044 echo "configure:11045: checking for canna/RK.h" >&5
11046 cat > conftest.$ac_ext <<EOF
11047 #line 11048 "configure"
11048 #include "confdefs.h"
11049 #include <canna/RK.h>
11051 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11052 { (eval echo configure:11053: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11053 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11054 if test -z "$ac_err"; then
11056 eval "ac_cv_header_$ac_safe=yes"
11059 echo "configure: failed program was:" >&5
11060 cat conftest.$ac_ext >&5
11062 eval "ac_cv_header_$ac_safe=no"
11065 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11066 echo "$ac_t""yes" 1>&6
11069 echo "$ac_t""no" 1>&6
11073 test -z "$with_canna" && {
11074 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
11075 echo "configure:11076: checking for RkBgnBun in -lRKC" >&5
11076 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
11078 xe_check_libs=" -lRKC "
11079 cat > conftest.$ac_ext <<EOF
11080 #line 11081 "configure"
11081 #include "confdefs.h"
11082 /* Override any gcc2 internal prototype to avoid an error. */
11083 /* We use char because int might match the return type of a gcc2
11084 builtin and then its argument prototype would still apply. */
11091 if { (eval echo configure:11092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11093 eval "ac_cv_lib_$ac_lib_var=yes"
11095 echo "configure: failed program was:" >&5
11096 cat conftest.$ac_ext >&5
11098 eval "ac_cv_lib_$ac_lib_var=no"
11103 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11104 echo "$ac_t""yes" 1>&6
11107 echo "$ac_t""no" 1>&6
11112 test -z "$with_canna" && {
11113 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
11114 echo "configure:11115: checking for jrKanjiControl in -lcanna" >&5
11115 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
11117 xe_check_libs=" -lcanna "
11118 cat > conftest.$ac_ext <<EOF
11119 #line 11120 "configure"
11120 #include "confdefs.h"
11121 /* Override any gcc2 internal prototype to avoid an error. */
11122 /* We use char because int might match the return type of a gcc2
11123 builtin and then its argument prototype would still apply. */
11124 char jrKanjiControl();
11130 if { (eval echo configure:11131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11132 eval "ac_cv_lib_$ac_lib_var=yes"
11134 echo "configure: failed program was:" >&5
11135 cat conftest.$ac_ext >&5
11137 eval "ac_cv_lib_$ac_lib_var=no"
11142 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11143 echo "$ac_t""yes" 1>&6
11146 echo "$ac_t""no" 1>&6
11151 test -z "$with_canna" && with_canna=yes
11152 if test "$with_canna" = "yes"; then
11153 { test "$extra_verbose" = "yes" && cat << \EOF
11154 Defining HAVE_CANNA
11156 cat >> confdefs.h <<\EOF
11157 #define HAVE_CANNA 1
11161 libs_x="-lcanna -lRKC $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcanna -lRKC\" to \$libs_x"; fi
11162 extra_objs="$extra_objs mule-canna.o" && if test "$extra_verbose" = "yes"; then
11163 echo " xemacs will be linked with \"mule-canna.o\""
11167 else for feature in xim canna wnn; do
11168 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
11169 echo "configure: warning: "--with-${feature} ignored: Not valid without Mule support"" 1>&2
11171 eval "with_${feature}=no"
11175 if test "$need_motif" = "yes" ; then
11176 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi
11178 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6
11179 echo "configure:11180: checking for layout_object_getvalue in -li18n" >&5
11180 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'`
11182 xe_check_libs=" -li18n "
11183 cat > conftest.$ac_ext <<EOF
11184 #line 11185 "configure"
11185 #include "confdefs.h"
11186 /* Override any gcc2 internal prototype to avoid an error. */
11187 /* We use char because int might match the return type of a gcc2
11188 builtin and then its argument prototype would still apply. */
11189 char layout_object_getvalue();
11192 layout_object_getvalue()
11195 if { (eval echo configure:11196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11197 eval "ac_cv_lib_$ac_lib_var=yes"
11199 echo "configure: failed program was:" >&5
11200 cat conftest.$ac_ext >&5
11202 eval "ac_cv_lib_$ac_lib_var=no"
11207 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11208 echo "$ac_t""yes" 1>&6
11209 libs_x="-li18n $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-li18n\" to \$libs_x"; fi
11211 echo "$ac_t""no" 1>&6
11216 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
11217 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
11218 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
11220 runpath="" runpath_dirs=""
11221 if test -n "$LD_RUN_PATH"; then
11222 runpath="$LD_RUN_PATH"
11223 elif test "$GCC" = "yes"; then
11224 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
11225 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
11226 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
11227 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
11228 case "$arg" in P,* | -L* | -R* )
11229 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
11231 xe_runpath_dir="$dir"
11232 test "$xe_runpath_dir" != "/lib" -a \
11233 "$xe_runpath_dir" != "/usr/lib" -a \
11234 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
11235 eval "$xe_add_unique_runpath_dir"
11240 ld_switch_run="$ld_switch_run_save"
11243 for arg in $ld_switch_site $ld_switch_x_site; do
11244 case "$arg" in -L*) {
11245 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
11246 test "$xe_runpath_dir" != "/lib" -a \
11247 "$xe_runpath_dir" != "/usr/lib" -a \
11248 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
11249 eval "$xe_add_unique_runpath_dir"
11252 if test "$opsys $need_motif" = "sol2 yes"; then
11253 xe_runpath_dir="/opt/SUNWdt/lib";
11254 eval "$xe_add_unique_runpath_dir";
11257 if test -n "$runpath"; then
11258 ld_switch_run="${dash_r}${runpath}"
11260 if test "$GCC" = "yes"; then
11261 set x $ld_switch_run; shift; ld_switch_run=""
11262 while test -n "$1"; do
11264 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
11265 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
11267 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
11272 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
11279 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
11281 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11282 echo "configure:11283: checking for $ac_func" >&5
11284 cat > conftest.$ac_ext <<EOF
11285 #line 11286 "configure"
11286 #include "confdefs.h"
11287 /* System header to define __stub macros and hopefully few prototypes,
11288 which can conflict with char $ac_func(); below. */
11289 #include <assert.h>
11290 /* Override any gcc2 internal prototype to avoid an error. */
11291 /* We use char because int might match the return type of a gcc2
11292 builtin and then its argument prototype would still apply. */
11297 /* The GNU C library defines this for functions which it implements
11298 to always fail with ENOSYS. Some functions are actually named
11299 something starting with __ and the normal name is an alias. */
11300 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11308 if { (eval echo configure:11309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11310 eval "ac_cv_func_$ac_func=yes"
11312 echo "configure: failed program was:" >&5
11313 cat conftest.$ac_ext >&5
11315 eval "ac_cv_func_$ac_func=no"
11319 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11320 echo "$ac_t""yes" 1>&6
11321 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11322 { test "$extra_verbose" = "yes" && cat << EOF
11323 Defining $ac_tr_func
11325 cat >> confdefs.h <<EOF
11326 #define $ac_tr_func 1
11331 echo "$ac_t""no" 1>&6
11336 if test "$ac_cv_func_getaddrinfo" != "no" ; then
11339 echo "configure: warning: Use of getaddrinfo is disabled for HP-UX 11.XX." 1>&2
11340 ac_cv_func_getaddrinfo=no
11346 for ac_func in getpt _getpty grantpt unlockpt ptsname killpg tcgetpgrp
11348 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11349 echo "configure:11350: checking for $ac_func" >&5
11351 cat > conftest.$ac_ext <<EOF
11352 #line 11353 "configure"
11353 #include "confdefs.h"
11354 /* System header to define __stub macros and hopefully few prototypes,
11355 which can conflict with char $ac_func(); below. */
11356 #include <assert.h>
11357 /* Override any gcc2 internal prototype to avoid an error. */
11358 /* We use char because int might match the return type of a gcc2
11359 builtin and then its argument prototype would still apply. */
11364 /* The GNU C library defines this for functions which it implements
11365 to always fail with ENOSYS. Some functions are actually named
11366 something starting with __ and the normal name is an alias. */
11367 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11375 if { (eval echo configure:11376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11377 eval "ac_cv_func_$ac_func=yes"
11379 echo "configure: failed program was:" >&5
11380 cat conftest.$ac_ext >&5
11382 eval "ac_cv_func_$ac_func=no"
11386 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11387 echo "$ac_t""yes" 1>&6
11388 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11389 { test "$extra_verbose" = "yes" && cat << EOF
11390 Defining $ac_tr_func
11392 cat >> confdefs.h <<EOF
11393 #define $ac_tr_func 1
11398 echo "$ac_t""no" 1>&6
11403 echo $ac_n "checking for openpty""... $ac_c" 1>&6
11404 echo "configure:11405: checking for openpty" >&5
11406 cat > conftest.$ac_ext <<EOF
11407 #line 11408 "configure"
11408 #include "confdefs.h"
11409 /* System header to define __stub macros and hopefully few prototypes,
11410 which can conflict with char openpty(); below. */
11411 #include <assert.h>
11412 /* Override any gcc2 internal prototype to avoid an error. */
11413 /* We use char because int might match the return type of a gcc2
11414 builtin and then its argument prototype would still apply. */
11419 /* The GNU C library defines this for functions which it implements
11420 to always fail with ENOSYS. Some functions are actually named
11421 something starting with __ and the normal name is an alias. */
11422 #if defined (__stub_openpty) || defined (__stub___openpty)
11430 if { (eval echo configure:11431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11432 eval "ac_cv_func_openpty=yes"
11434 echo "configure: failed program was:" >&5
11435 cat conftest.$ac_ext >&5
11437 eval "ac_cv_func_openpty=no"
11441 if eval "test \"`echo '$ac_cv_func_'openpty`\" = yes"; then
11442 echo "$ac_t""yes" 1>&6
11445 echo "$ac_t""no" 1>&6
11448 echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6
11449 echo "configure:11450: checking for openpty in -lutil" >&5
11450 ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'`
11452 xe_check_libs=" -lutil "
11453 cat > conftest.$ac_ext <<EOF
11454 #line 11455 "configure"
11455 #include "confdefs.h"
11456 /* Override any gcc2 internal prototype to avoid an error. */
11457 /* We use char because int might match the return type of a gcc2
11458 builtin and then its argument prototype would still apply. */
11465 if { (eval echo configure:11466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11467 eval "ac_cv_lib_$ac_lib_var=yes"
11469 echo "configure: failed program was:" >&5
11470 cat conftest.$ac_ext >&5
11472 eval "ac_cv_lib_$ac_lib_var=no"
11477 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11478 echo "$ac_t""yes" 1>&6
11479 have_openpty=yes need_libutil=yes
11481 echo "$ac_t""no" 1>&6
11487 if test "$have_openpty" = "yes"; then
11488 { test "$extra_verbose" = "yes" && cat << \EOF
11489 Defining HAVE_OPENPTY
11491 cat >> confdefs.h <<\EOF
11492 #define HAVE_OPENPTY 1
11496 for ac_hdr in pty.h libutil.h util.h
11498 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11499 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11500 echo "configure:11501: checking for $ac_hdr" >&5
11502 cat > conftest.$ac_ext <<EOF
11503 #line 11504 "configure"
11504 #include "confdefs.h"
11507 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11508 { (eval echo configure:11509: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11509 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11510 if test -z "$ac_err"; then
11512 eval "ac_cv_header_$ac_safe=yes"
11515 echo "configure: failed program was:" >&5
11516 cat conftest.$ac_ext >&5
11518 eval "ac_cv_header_$ac_safe=no"
11521 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11522 echo "$ac_t""yes" 1>&6
11523 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11524 { test "$extra_verbose" = "yes" && cat << EOF
11525 Defining $ac_tr_hdr
11527 cat >> confdefs.h <<EOF
11528 #define $ac_tr_hdr 1
11533 echo "$ac_t""no" 1>&6
11537 test "$need_libutil" = "yes" && libs_system="$libs_system -lutil" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lutil\" to \$libs_system"; fi
11540 for ac_hdr in stropts.h
11542 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11543 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11544 echo "configure:11545: checking for $ac_hdr" >&5
11546 cat > conftest.$ac_ext <<EOF
11547 #line 11548 "configure"
11548 #include "confdefs.h"
11551 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11552 { (eval echo configure:11553: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11553 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11554 if test -z "$ac_err"; then
11556 eval "ac_cv_header_$ac_safe=yes"
11559 echo "configure: failed program was:" >&5
11560 cat conftest.$ac_ext >&5
11562 eval "ac_cv_header_$ac_safe=no"
11565 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11566 echo "$ac_t""yes" 1>&6
11567 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11568 { test "$extra_verbose" = "yes" && cat << EOF
11569 Defining $ac_tr_hdr
11571 cat >> confdefs.h <<EOF
11572 #define $ac_tr_hdr 1
11577 echo "$ac_t""no" 1>&6
11581 if test "$ac_cv_header_stropts_h" = "yes"; then
11582 for ac_func in isastream
11584 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11585 echo "configure:11586: checking for $ac_func" >&5
11587 cat > conftest.$ac_ext <<EOF
11588 #line 11589 "configure"
11589 #include "confdefs.h"
11590 /* System header to define __stub macros and hopefully few prototypes,
11591 which can conflict with char $ac_func(); below. */
11592 #include <assert.h>
11593 /* Override any gcc2 internal prototype to avoid an error. */
11594 /* We use char because int might match the return type of a gcc2
11595 builtin and then its argument prototype would still apply. */
11600 /* The GNU C library defines this for functions which it implements
11601 to always fail with ENOSYS. Some functions are actually named
11602 something starting with __ and the normal name is an alias. */
11603 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11611 if { (eval echo configure:11612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11613 eval "ac_cv_func_$ac_func=yes"
11615 echo "configure: failed program was:" >&5
11616 cat conftest.$ac_ext >&5
11618 eval "ac_cv_func_$ac_func=no"
11622 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11623 echo "$ac_t""yes" 1>&6
11624 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11625 { test "$extra_verbose" = "yes" && cat << EOF
11626 Defining $ac_tr_func
11628 cat >> confdefs.h <<EOF
11629 #define $ac_tr_func 1
11634 echo "$ac_t""no" 1>&6
11638 for ac_hdr in strtio.h
11640 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11641 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11642 echo "configure:11643: checking for $ac_hdr" >&5
11644 cat > conftest.$ac_ext <<EOF
11645 #line 11646 "configure"
11646 #include "confdefs.h"
11649 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11650 { (eval echo configure:11651: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11651 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11652 if test -z "$ac_err"; then
11654 eval "ac_cv_header_$ac_safe=yes"
11657 echo "configure: failed program was:" >&5
11658 cat conftest.$ac_ext >&5
11660 eval "ac_cv_header_$ac_safe=no"
11663 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11664 echo "$ac_t""yes" 1>&6
11665 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11666 { test "$extra_verbose" = "yes" && cat << EOF
11667 Defining $ac_tr_hdr
11669 cat >> confdefs.h <<EOF
11670 #define $ac_tr_hdr 1
11675 echo "$ac_t""no" 1>&6
11680 extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
11681 echo " xemacs will be linked with \"realpath.o\""
11684 for ac_func in getloadavg
11686 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11687 echo "configure:11688: checking for $ac_func" >&5
11689 cat > conftest.$ac_ext <<EOF
11690 #line 11691 "configure"
11691 #include "confdefs.h"
11692 /* System header to define __stub macros and hopefully few prototypes,
11693 which can conflict with char $ac_func(); below. */
11694 #include <assert.h>
11695 /* Override any gcc2 internal prototype to avoid an error. */
11696 /* We use char because int might match the return type of a gcc2
11697 builtin and then its argument prototype would still apply. */
11702 /* The GNU C library defines this for functions which it implements
11703 to always fail with ENOSYS. Some functions are actually named
11704 something starting with __ and the normal name is an alias. */
11705 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11713 if { (eval echo configure:11714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11715 eval "ac_cv_func_$ac_func=yes"
11717 echo "configure: failed program was:" >&5
11718 cat conftest.$ac_ext >&5
11720 eval "ac_cv_func_$ac_func=no"
11724 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11725 echo "$ac_t""yes" 1>&6
11726 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11727 { test "$extra_verbose" = "yes" && cat << EOF
11728 Defining $ac_tr_func
11730 cat >> confdefs.h <<EOF
11731 #define $ac_tr_func 1
11736 echo "$ac_t""no" 1>&6
11741 if test "$ac_cv_func_getloadavg" = "yes"; then
11742 for ac_hdr in sys/loadavg.h
11744 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11745 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11746 echo "configure:11747: checking for $ac_hdr" >&5
11748 cat > conftest.$ac_ext <<EOF
11749 #line 11750 "configure"
11750 #include "confdefs.h"
11753 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11754 { (eval echo configure:11755: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11755 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11756 if test -z "$ac_err"; then
11758 eval "ac_cv_header_$ac_safe=yes"
11761 echo "configure: failed program was:" >&5
11762 cat conftest.$ac_ext >&5
11764 eval "ac_cv_header_$ac_safe=no"
11767 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11768 echo "$ac_t""yes" 1>&6
11769 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11770 { test "$extra_verbose" = "yes" && cat << EOF
11771 Defining $ac_tr_hdr
11773 cat >> confdefs.h <<EOF
11774 #define $ac_tr_hdr 1
11779 echo "$ac_t""no" 1>&6
11784 extra_objs="$extra_objs getloadavg.o" && if test "$extra_verbose" = "yes"; then
11785 echo " xemacs will be linked with \"getloadavg.o\""
11789 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
11790 echo "configure:11791: checking for kstat_open in -lkstat" >&5
11791 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
11793 xe_check_libs=" -lkstat "
11794 cat > conftest.$ac_ext <<EOF
11795 #line 11796 "configure"
11796 #include "confdefs.h"
11797 /* Override any gcc2 internal prototype to avoid an error. */
11798 /* We use char because int might match the return type of a gcc2
11799 builtin and then its argument prototype would still apply. */
11806 if { (eval echo configure:11807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11808 eval "ac_cv_lib_$ac_lib_var=yes"
11810 echo "configure: failed program was:" >&5
11811 cat conftest.$ac_ext >&5
11813 eval "ac_cv_lib_$ac_lib_var=no"
11818 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11819 echo "$ac_t""yes" 1>&6
11820 ac_tr_lib=HAVE_LIB`echo kstat | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11821 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11822 { test "$extra_verbose" = "yes" && cat << EOF
11823 Defining $ac_tr_lib
11825 cat >> confdefs.h <<EOF
11826 #define $ac_tr_lib 1
11830 LIBS="-lkstat $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkstat\" to \$LIBS"; fi
11833 echo "$ac_t""no" 1>&6
11837 for ac_hdr in kstat.h
11839 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11840 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11841 echo "configure:11842: checking for $ac_hdr" >&5
11843 cat > conftest.$ac_ext <<EOF
11844 #line 11845 "configure"
11845 #include "confdefs.h"
11848 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11849 { (eval echo configure:11850: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11850 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11851 if test -z "$ac_err"; then
11853 eval "ac_cv_header_$ac_safe=yes"
11856 echo "configure: failed program was:" >&5
11857 cat conftest.$ac_ext >&5
11859 eval "ac_cv_header_$ac_safe=no"
11862 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11863 echo "$ac_t""yes" 1>&6
11864 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11865 { test "$extra_verbose" = "yes" && cat << EOF
11866 Defining $ac_tr_hdr
11868 cat >> confdefs.h <<EOF
11869 #define $ac_tr_hdr 1
11874 echo "$ac_t""no" 1>&6
11880 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
11881 echo "configure:11882: checking for kvm_read in -lkvm" >&5
11882 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
11884 xe_check_libs=" -lkvm "
11885 cat > conftest.$ac_ext <<EOF
11886 #line 11887 "configure"
11887 #include "confdefs.h"
11888 /* Override any gcc2 internal prototype to avoid an error. */
11889 /* We use char because int might match the return type of a gcc2
11890 builtin and then its argument prototype would still apply. */
11897 if { (eval echo configure:11898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11899 eval "ac_cv_lib_$ac_lib_var=yes"
11901 echo "configure: failed program was:" >&5
11902 cat conftest.$ac_ext >&5
11904 eval "ac_cv_lib_$ac_lib_var=no"
11909 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11910 echo "$ac_t""yes" 1>&6
11911 ac_tr_lib=HAVE_LIB`echo kvm | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11912 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11913 { test "$extra_verbose" = "yes" && cat << EOF
11914 Defining $ac_tr_lib
11916 cat >> confdefs.h <<EOF
11917 #define $ac_tr_lib 1
11921 LIBS="-lkvm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkvm\" to \$LIBS"; fi
11924 echo "$ac_t""no" 1>&6
11930 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
11931 echo "configure:11932: checking whether netdb declares h_errno" >&5
11932 cat > conftest.$ac_ext <<EOF
11933 #line 11934 "configure"
11934 #include "confdefs.h"
11940 if { (eval echo configure:11941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11942 echo "$ac_t""yes" 1>&6
11943 { test "$extra_verbose" = "yes" && cat << \EOF
11944 Defining HAVE_H_ERRNO
11946 cat >> confdefs.h <<\EOF
11947 #define HAVE_H_ERRNO 1
11952 echo "configure: failed program was:" >&5
11953 cat conftest.$ac_ext >&5
11955 echo "$ac_t""no" 1>&6
11959 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
11960 echo "configure:11961: checking for sigsetjmp" >&5
11961 cat > conftest.$ac_ext <<EOF
11962 #line 11963 "configure"
11963 #include "confdefs.h"
11964 #include <setjmp.h>
11966 sigjmp_buf bar; sigsetjmp (bar, 0);
11969 if { (eval echo configure:11970: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11971 echo "$ac_t""yes" 1>&6
11972 { test "$extra_verbose" = "yes" && cat << \EOF
11973 Defining HAVE_SIGSETJMP
11975 cat >> confdefs.h <<\EOF
11976 #define HAVE_SIGSETJMP 1
11981 echo "configure: failed program was:" >&5
11982 cat conftest.$ac_ext >&5
11984 echo "$ac_t""no" 1>&6
11988 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
11989 echo "configure:11990: checking whether localtime caches TZ" >&5
11991 if test "$ac_cv_func_tzset" = "yes"; then
11992 cat > conftest.$ac_ext <<EOF
11993 #line 11994 "configure"
11994 #include "confdefs.h"
11997 # include <stdlib.h>
11999 extern char **environ;
12003 for (to = from = environ; (*to = *from); from++)
12004 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
12007 char TZ_GMT0[] = "TZ=GMT0";
12008 char TZ_PST8[] = "TZ=PST8";
12011 time_t now = time ((time_t *) 0);
12012 int hour_GMT0, hour_unset;
12013 if (putenv (TZ_GMT0) != 0)
12015 hour_GMT0 = localtime (&now)->tm_hour;
12017 hour_unset = localtime (&now)->tm_hour;
12018 if (putenv (TZ_PST8) != 0)
12020 if (localtime (&now)->tm_hour == hour_GMT0)
12023 if (localtime (&now)->tm_hour != hour_unset)
12028 if { (eval echo configure:12029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12030 emacs_cv_localtime_cache=no
12033 echo "configure: failed program was:" >&5
12034 cat conftest.$ac_ext >&5
12036 emacs_cv_localtime_cache=yes
12040 # If we lack tzset, report that localtime does not cache TZ,
12041 # since we can't invalidate the cache if we don't have tzset.
12042 emacs_cv_localtime_cache=no
12044 echo "$ac_t""$emacs_cv_localtime_cache" 1>&6
12045 if test $emacs_cv_localtime_cache = yes; then
12046 { test "$extra_verbose" = "yes" && cat << \EOF
12047 Defining LOCALTIME_CACHE
12049 cat >> confdefs.h <<\EOF
12050 #define LOCALTIME_CACHE 1
12056 if test "$HAVE_TIMEVAL" = "yes"; then
12057 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6
12058 echo "configure:12059: checking whether gettimeofday accepts one or two arguments" >&5
12059 cat > conftest.$ac_ext <<EOF
12060 #line 12061 "configure"
12061 #include "confdefs.h"
12063 #ifdef TIME_WITH_SYS_TIME
12064 #include <sys/time.h>
12067 #ifdef HAVE_SYS_TIME_H
12068 #include <sys/time.h>
12076 struct timeval time;
12077 gettimeofday (&time, 0);
12081 if { (eval echo configure:12082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12083 echo "$ac_t""two" 1>&6
12085 echo "configure: failed program was:" >&5
12086 cat conftest.$ac_ext >&5
12088 echo "$ac_t""one" 1>&6
12089 { test "$extra_verbose" = "yes" && cat << \EOF
12090 Defining GETTIMEOFDAY_ONE_ARGUMENT
12092 cat >> confdefs.h <<\EOF
12093 #define GETTIMEOFDAY_ONE_ARGUMENT 1
12102 echo $ac_n "checking for inline""... $ac_c" 1>&6
12103 echo "configure:12104: checking for inline" >&5
12106 for ac_kw in inline __inline__ __inline; do
12107 cat > conftest.$ac_ext <<EOF
12108 #line 12109 "configure"
12109 #include "confdefs.h"
12115 if { (eval echo configure:12116: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12117 ac_cv_c_inline=$ac_kw; break
12119 echo "configure: failed program was:" >&5
12120 cat conftest.$ac_ext >&5
12126 echo "$ac_t""$ac_cv_c_inline" 1>&6
12127 case "$ac_cv_c_inline" in
12129 no) { test "$extra_verbose" = "yes" && cat << \EOF
12132 cat >> confdefs.h <<\EOF
12137 *) { test "$extra_verbose" = "yes" && cat << EOF
12138 Defining inline = $ac_cv_c_inline
12140 cat >> confdefs.h <<EOF
12141 #define inline $ac_cv_c_inline
12147 test "$ac_cv_c_inline" != "no" -a "$GCC" = "yes" && extra_objs="$extra_objs inline.o" && if test "$extra_verbose" = "yes"; then
12148 echo " xemacs will be linked with \"inline.o\""
12152 if test "$__DECC" != "yes"; then
12153 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12154 # for constant arguments. Useless!
12155 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
12156 echo "configure:12157: checking for working alloca.h" >&5
12158 cat > conftest.$ac_ext <<EOF
12159 #line 12160 "configure"
12160 #include "confdefs.h"
12161 #include <alloca.h>
12163 char *p = alloca(2 * sizeof(int));
12166 if { (eval echo configure:12167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12168 ac_cv_header_alloca_h=yes
12170 echo "configure: failed program was:" >&5
12171 cat conftest.$ac_ext >&5
12173 ac_cv_header_alloca_h=no
12177 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
12178 if test $ac_cv_header_alloca_h = yes; then
12179 { test "$extra_verbose" = "yes" && cat << \EOF
12180 Defining HAVE_ALLOCA_H
12182 cat >> confdefs.h <<\EOF
12183 #define HAVE_ALLOCA_H 1
12189 echo $ac_n "checking for alloca""... $ac_c" 1>&6
12190 echo "configure:12191: checking for alloca" >&5
12192 cat > conftest.$ac_ext <<EOF
12193 #line 12194 "configure"
12194 #include "confdefs.h"
12197 # define alloca __builtin_alloca
12200 # include <malloc.h>
12201 # define alloca _alloca
12204 # include <alloca.h>
12209 # ifndef alloca /* predefined by HP cc +Olibcalls */
12218 char *p = (char *) alloca(1);
12221 if { (eval echo configure:12222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12223 ac_cv_func_alloca_works=yes
12225 echo "configure: failed program was:" >&5
12226 cat conftest.$ac_ext >&5
12228 ac_cv_func_alloca_works=no
12232 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
12233 if test $ac_cv_func_alloca_works = yes; then
12234 { test "$extra_verbose" = "yes" && cat << \EOF
12235 Defining HAVE_ALLOCA
12237 cat >> confdefs.h <<\EOF
12238 #define HAVE_ALLOCA 1
12244 if test $ac_cv_func_alloca_works = no; then
12245 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12246 # that cause trouble. Some versions do not even contain alloca or
12247 # contain a buggy version. If you still want to use their alloca,
12248 # use ar to extract alloca.o from them instead of compiling alloca.c.
12249 ALLOCA=alloca.${ac_objext}
12250 { test "$extra_verbose" = "yes" && cat << \EOF
12253 cat >> confdefs.h <<\EOF
12259 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
12260 echo "configure:12261: checking whether alloca needs Cray hooks" >&5
12262 cat > conftest.$ac_ext <<EOF
12263 #line 12264 "configure"
12264 #include "confdefs.h"
12265 #if defined(CRAY) && ! defined(CRAY2)
12272 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12273 egrep "webecray" >/dev/null 2>&1; then
12283 echo "$ac_t""$ac_cv_os_cray" 1>&6
12284 if test $ac_cv_os_cray = yes; then
12285 for ac_func in _getb67 GETB67 getb67; do
12286 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12287 echo "configure:12288: checking for $ac_func" >&5
12289 cat > conftest.$ac_ext <<EOF
12290 #line 12291 "configure"
12291 #include "confdefs.h"
12292 /* System header to define __stub macros and hopefully few prototypes,
12293 which can conflict with char $ac_func(); below. */
12294 #include <assert.h>
12295 /* Override any gcc2 internal prototype to avoid an error. */
12296 /* We use char because int might match the return type of a gcc2
12297 builtin and then its argument prototype would still apply. */
12302 /* The GNU C library defines this for functions which it implements
12303 to always fail with ENOSYS. Some functions are actually named
12304 something starting with __ and the normal name is an alias. */
12305 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12313 if { (eval echo configure:12314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12315 eval "ac_cv_func_$ac_func=yes"
12317 echo "configure: failed program was:" >&5
12318 cat conftest.$ac_ext >&5
12320 eval "ac_cv_func_$ac_func=no"
12324 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12325 echo "$ac_t""yes" 1>&6
12326 { test "$extra_verbose" = "yes" && cat << EOF
12327 Defining CRAY_STACKSEG_END = $ac_func
12329 cat >> confdefs.h <<EOF
12330 #define CRAY_STACKSEG_END $ac_func
12336 echo "$ac_t""no" 1>&6
12342 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
12343 echo "configure:12344: checking stack direction for C alloca" >&5
12345 cat > conftest.$ac_ext <<EOF
12346 #line 12347 "configure"
12347 #include "confdefs.h"
12348 find_stack_direction ()
12350 static char *addr = 0;
12355 return find_stack_direction ();
12358 return (&dummy > addr) ? 1 : -1;
12362 exit (find_stack_direction() < 0);
12365 if { (eval echo configure:12366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12367 ac_cv_c_stack_direction=1
12370 echo "configure: failed program was:" >&5
12371 cat conftest.$ac_ext >&5
12373 ac_cv_c_stack_direction=-1
12377 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
12378 { test "$extra_verbose" = "yes" && cat << EOF
12379 Defining STACK_DIRECTION = $ac_cv_c_stack_direction
12381 cat >> confdefs.h <<EOF
12382 #define STACK_DIRECTION $ac_cv_c_stack_direction
12388 test -n "$ALLOCA" && extra_objs="$extra_objs $ALLOCA" && if test "$extra_verbose" = "yes"; then
12389 echo " xemacs will be linked with \"$ALLOCA\""
12393 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
12394 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
12395 echo "configure:12396: checking for vfork.h" >&5
12397 cat > conftest.$ac_ext <<EOF
12398 #line 12399 "configure"
12399 #include "confdefs.h"
12402 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12403 { (eval echo configure:12404: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12404 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12405 if test -z "$ac_err"; then
12407 eval "ac_cv_header_$ac_safe=yes"
12410 echo "configure: failed program was:" >&5
12411 cat conftest.$ac_ext >&5
12413 eval "ac_cv_header_$ac_safe=no"
12416 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12417 echo "$ac_t""yes" 1>&6
12418 { test "$extra_verbose" = "yes" && cat << \EOF
12419 Defining HAVE_VFORK_H
12421 cat >> confdefs.h <<\EOF
12422 #define HAVE_VFORK_H 1
12427 echo "$ac_t""no" 1>&6
12430 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
12431 echo "configure:12432: checking for working vfork" >&5
12433 cat > conftest.$ac_ext <<EOF
12434 #line 12435 "configure"
12435 #include "confdefs.h"
12436 /* Thanks to Paul Eggert for this test. */
12438 #include <sys/types.h>
12439 #include <sys/stat.h>
12440 #ifdef HAVE_UNISTD_H
12441 #include <unistd.h>
12443 #ifdef HAVE_VFORK_H
12446 /* On some sparc systems, changes by the child to local and incoming
12447 argument registers are propagated back to the parent.
12448 The compiler is told about this with #include <vfork.h>,
12449 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
12450 Test for this by using a static variable whose address
12451 is put into a register that is clobbered by the vfork. */
12454 sparc_address_test (int arg)
12456 sparc_address_test (arg) int arg;
12459 static pid_t child;
12474 pid_t parent = getpid ();
12477 sparc_address_test ();
12482 /* Here is another test for sparc vfork register problems.
12483 This test uses lots of local variables, at least
12484 as many local variables as main has allocated so far
12485 including compiler temporaries. 4 locals are enough for
12486 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
12487 A buggy compiler should reuse the register of parent
12488 for one of the local variables, since it will think that
12489 parent can't possibly be used any more in this routine.
12490 Assigning to the local variable will thus munge parent
12491 in the parent process. */
12493 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12494 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12495 /* Convince the compiler that p..p7 are live; otherwise, it might
12496 use the same hardware register for all 8 local variables. */
12497 if (p != p1 || p != p2 || p != p3 || p != p4
12498 || p != p5 || p != p6 || p != p7)
12501 /* On some systems (e.g. IRIX 3.3),
12502 vfork doesn't separate parent from child file descriptors.
12503 If the child closes a descriptor before it execs or exits,
12504 this munges the parent's descriptor as well.
12505 Test for this by closing stdout in the child. */
12506 _exit(close(fileno(stdout)) != 0);
12511 while (wait(&status) != child)
12514 /* Was there some problem with vforking? */
12517 /* Did the child fail? (This shouldn't happen.) */
12520 /* Did the vfork/compiler bug occur? */
12521 || parent != getpid()
12523 /* Did the file descriptor bug occur? */
12524 || fstat(fileno(stdout), &st) != 0
12529 if { (eval echo configure:12530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12531 ac_cv_func_vfork_works=yes
12534 echo "configure: failed program was:" >&5
12535 cat conftest.$ac_ext >&5
12537 ac_cv_func_vfork_works=no
12541 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
12542 if test $ac_cv_func_vfork_works = no; then
12543 { test "$extra_verbose" = "yes" && cat << \EOF
12544 Defining vfork = fork
12546 cat >> confdefs.h <<\EOF
12554 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
12555 echo "configure:12556: checking for working strcoll" >&5
12557 cat > conftest.$ac_ext <<EOF
12558 #line 12559 "configure"
12559 #include "confdefs.h"
12560 #include <string.h>
12563 exit (strcoll ("abc", "def") >= 0 ||
12564 strcoll ("ABC", "DEF") >= 0 ||
12565 strcoll ("123", "456") >= 0);
12568 if { (eval echo configure:12569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12570 ac_cv_func_strcoll_works=yes
12573 echo "configure: failed program was:" >&5
12574 cat conftest.$ac_ext >&5
12576 ac_cv_func_strcoll_works=no
12580 echo "$ac_t""$ac_cv_func_strcoll_works" 1>&6
12581 if test $ac_cv_func_strcoll_works = yes; then
12582 { test "$extra_verbose" = "yes" && cat << \EOF
12583 Defining HAVE_STRCOLL
12585 cat >> confdefs.h <<\EOF
12586 #define HAVE_STRCOLL 1
12593 for ac_func in getpgrp
12595 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12596 echo "configure:12597: checking for $ac_func" >&5
12598 cat > conftest.$ac_ext <<EOF
12599 #line 12600 "configure"
12600 #include "confdefs.h"
12601 /* System header to define __stub macros and hopefully few prototypes,
12602 which can conflict with char $ac_func(); below. */
12603 #include <assert.h>
12604 /* Override any gcc2 internal prototype to avoid an error. */
12605 /* We use char because int might match the return type of a gcc2
12606 builtin and then its argument prototype would still apply. */
12611 /* The GNU C library defines this for functions which it implements
12612 to always fail with ENOSYS. Some functions are actually named
12613 something starting with __ and the normal name is an alias. */
12614 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12622 if { (eval echo configure:12623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12624 eval "ac_cv_func_$ac_func=yes"
12626 echo "configure: failed program was:" >&5
12627 cat conftest.$ac_ext >&5
12629 eval "ac_cv_func_$ac_func=no"
12633 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12634 echo "$ac_t""yes" 1>&6
12635 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12636 { test "$extra_verbose" = "yes" && cat << EOF
12637 Defining $ac_tr_func
12639 cat >> confdefs.h <<EOF
12640 #define $ac_tr_func 1
12645 echo "$ac_t""no" 1>&6
12649 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
12650 echo "configure:12651: checking whether getpgrp takes no argument" >&5
12652 cat > conftest.$ac_ext <<EOF
12653 #line 12654 "configure"
12654 #include "confdefs.h"
12657 * If this system has a BSD-style getpgrp(),
12658 * which takes a pid argument, exit unsuccessfully.
12660 * Snarfed from Chet Ramey's bash pgrp.c test program
12663 #include <sys/types.h>
12666 int pg1, pg2, pg3, pg4;
12667 int ng, np, s, child;
12674 pg3 = getpgrp(pid);
12678 * If all of these values are the same, it's pretty sure that
12679 * we're on a system that ignores getpgrp's first argument.
12681 if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3)
12687 else if (child == 0) {
12690 * If this is Sys V, this will not work; pgrp will be
12691 * set to np because setpgrp just changes a pgrp to be
12692 * the same as the pid.
12695 ng = getpgrp(0); /* Same result for Sys V and BSD */
12708 if { (eval echo configure:12709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12710 ac_cv_func_getpgrp_void=yes
12713 echo "configure: failed program was:" >&5
12714 cat conftest.$ac_ext >&5
12716 ac_cv_func_getpgrp_void=no
12721 echo "$ac_t""$ac_cv_func_getpgrp_void" 1>&6
12722 if test $ac_cv_func_getpgrp_void = yes; then
12723 { test "$extra_verbose" = "yes" && cat << \EOF
12724 Defining GETPGRP_VOID
12726 cat >> confdefs.h <<\EOF
12727 #define GETPGRP_VOID 1
12734 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
12735 echo "configure:12736: checking for working mmap" >&5
12736 case "$opsys" in ultrix* ) have_mmap=no ;; *)
12737 cat > conftest.$ac_ext <<EOF
12738 #line 12739 "configure"
12739 #include "confdefs.h"
12741 #include <unistd.h>
12743 #include <sys/mman.h>
12745 #ifndef MAP_VARIABLE
12746 #define MAP_VARIABLE 0
12750 #define MAP_FAILED -1
12753 int main (int argc, char *argv[])
12757 #ifndef MAP_ANONYMOUS
12758 fd = open ("/dev/zero", O_RDWR);
12761 #define MAP_ANONYMOUS 0
12763 if (mmap(0, 1024, PROT_READ | PROT_WRITE,
12764 MAP_PRIVATE | MAP_VARIABLE | MAP_ANONYMOUS,
12765 fd, 0) != (void *) MAP_FAILED)
12767 perror ("conftest: mmap failed");
12771 if { (eval echo configure:12772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12776 echo "configure: failed program was:" >&5
12777 cat conftest.$ac_ext >&5
12781 rm -fr conftest* ;;
12783 echo "$ac_t""$have_mmap" 1>&6
12784 test "$have_mmap" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
12787 cat >> confdefs.h <<\EOF
12788 #define HAVE_MMAP 1
12793 case "$opsys" in cygwin*)
12794 test "$rel_alloc" = "default" && rel_alloc=no ;;
12796 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no
12797 if test "$rel_alloc $have_mmap" = "default yes"; then
12798 if test "$doug_lea_malloc" = "yes"; then
12799 echo $ac_n "checking for M_MMAP_THRESHOLD""... $ac_c" 1>&6
12800 echo "configure:12801: checking for M_MMAP_THRESHOLD" >&5
12801 cat > conftest.$ac_ext <<EOF
12802 #line 12803 "configure"
12803 #include "confdefs.h"
12804 #include <malloc.h>
12807 #ifndef M_MMAP_THRESHOLD
12808 #error No M_MMAP_THRESHOLD :-(
12809 !@+$%^&*_)(_ - unlikely to compile...
12814 if { (eval echo configure:12815: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12816 rel_alloc=no; echo "$ac_t""yes" 1>&6;
12818 echo "configure: failed program was:" >&5
12819 cat conftest.$ac_ext >&5
12821 rel_alloc=yes; echo "$ac_t""no" 1>&6;
12828 test "$rel_alloc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
12831 cat >> confdefs.h <<\EOF
12832 #define REL_ALLOC 1
12837 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
12838 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
12839 echo "configure:12840: checking for termios.h" >&5
12841 cat > conftest.$ac_ext <<EOF
12842 #line 12843 "configure"
12843 #include "confdefs.h"
12844 #include <termios.h>
12846 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12847 { (eval echo configure:12848: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12848 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12849 if test -z "$ac_err"; then
12851 eval "ac_cv_header_$ac_safe=yes"
12854 echo "configure: failed program was:" >&5
12855 cat conftest.$ac_ext >&5
12857 eval "ac_cv_header_$ac_safe=no"
12860 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12861 echo "$ac_t""yes" 1>&6
12862 { test "$extra_verbose" = "yes" && cat << \EOF
12863 Defining HAVE_TERMIOS
12865 cat >> confdefs.h <<\EOF
12866 #define HAVE_TERMIOS 1
12870 { test "$extra_verbose" = "yes" && cat << \EOF
12871 Defining SIGNALS_VIA_CHARACTERS
12873 cat >> confdefs.h <<\EOF
12874 #define SIGNALS_VIA_CHARACTERS 1
12878 { test "$extra_verbose" = "yes" && cat << \EOF
12881 cat >> confdefs.h <<\EOF
12882 #define NO_TERMIO 1
12887 echo "$ac_t""no" 1>&6
12888 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
12889 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
12890 echo "configure:12891: checking for termio.h" >&5
12892 cat > conftest.$ac_ext <<EOF
12893 #line 12894 "configure"
12894 #include "confdefs.h"
12895 #include <termio.h>
12897 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12898 { (eval echo configure:12899: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12899 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12900 if test -z "$ac_err"; then
12902 eval "ac_cv_header_$ac_safe=yes"
12905 echo "configure: failed program was:" >&5
12906 cat conftest.$ac_ext >&5
12908 eval "ac_cv_header_$ac_safe=no"
12911 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12912 echo "$ac_t""yes" 1>&6
12913 { test "$extra_verbose" = "yes" && cat << \EOF
12914 Defining HAVE_TERMIO
12916 cat >> confdefs.h <<\EOF
12917 #define HAVE_TERMIO 1
12922 echo "$ac_t""no" 1>&6
12929 echo $ac_n "checking for socket""... $ac_c" 1>&6
12930 echo "configure:12931: checking for socket" >&5
12932 cat > conftest.$ac_ext <<EOF
12933 #line 12934 "configure"
12934 #include "confdefs.h"
12935 /* System header to define __stub macros and hopefully few prototypes,
12936 which can conflict with char socket(); below. */
12937 #include <assert.h>
12938 /* Override any gcc2 internal prototype to avoid an error. */
12939 /* We use char because int might match the return type of a gcc2
12940 builtin and then its argument prototype would still apply. */
12945 /* The GNU C library defines this for functions which it implements
12946 to always fail with ENOSYS. Some functions are actually named
12947 something starting with __ and the normal name is an alias. */
12948 #if defined (__stub_socket) || defined (__stub___socket)
12956 if { (eval echo configure:12957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12958 eval "ac_cv_func_socket=yes"
12960 echo "configure: failed program was:" >&5
12961 cat conftest.$ac_ext >&5
12963 eval "ac_cv_func_socket=no"
12967 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
12968 echo "$ac_t""yes" 1>&6
12969 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
12970 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
12971 echo "configure:12972: checking for netinet/in.h" >&5
12973 cat > conftest.$ac_ext <<EOF
12974 #line 12975 "configure"
12975 #include "confdefs.h"
12976 #include <netinet/in.h>
12978 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12979 { (eval echo configure:12980: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12980 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12981 if test -z "$ac_err"; then
12983 eval "ac_cv_header_$ac_safe=yes"
12986 echo "configure: failed program was:" >&5
12987 cat conftest.$ac_ext >&5
12989 eval "ac_cv_header_$ac_safe=no"
12992 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12993 echo "$ac_t""yes" 1>&6
12994 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
12995 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
12996 echo "configure:12997: checking for arpa/inet.h" >&5
12998 cat > conftest.$ac_ext <<EOF
12999 #line 13000 "configure"
13000 #include "confdefs.h"
13001 #include <arpa/inet.h>
13003 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13004 { (eval echo configure:13005: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13005 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13006 if test -z "$ac_err"; then
13008 eval "ac_cv_header_$ac_safe=yes"
13011 echo "configure: failed program was:" >&5
13012 cat conftest.$ac_ext >&5
13014 eval "ac_cv_header_$ac_safe=no"
13017 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13018 echo "$ac_t""yes" 1>&6
13020 { test "$extra_verbose" = "yes" && cat << \EOF
13021 Defining HAVE_SOCKETS
13023 cat >> confdefs.h <<\EOF
13024 #define HAVE_SOCKETS 1
13028 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
13029 echo "configure:13030: checking "for sun_len member in struct sockaddr_un"" >&5
13030 cat > conftest.$ac_ext <<EOF
13031 #line 13032 "configure"
13032 #include "confdefs.h"
13034 #include <sys/types.h>
13035 #include <sys/socket.h>
13036 #include <sys/un.h>
13039 static struct sockaddr_un x; x.sun_len = 1;
13042 if { (eval echo configure:13043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13044 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
13045 Defining HAVE_SOCKADDR_SUN_LEN
13047 cat >> confdefs.h <<\EOF
13048 #define HAVE_SOCKADDR_SUN_LEN 1
13053 echo "configure: failed program was:" >&5
13054 cat conftest.$ac_ext >&5
13056 echo "$ac_t""no" 1>&6
13059 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6
13060 echo "configure:13061: checking "for ip_mreq struct in netinet/in.h"" >&5
13061 cat > conftest.$ac_ext <<EOF
13062 #line 13063 "configure"
13063 #include "confdefs.h"
13065 #include <sys/types.h>
13066 #include <netinet/in.h>
13069 static struct ip_mreq x;
13072 if { (eval echo configure:13073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13074 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
13075 Defining HAVE_MULTICAST
13077 cat >> confdefs.h <<\EOF
13078 #define HAVE_MULTICAST 1
13083 echo "configure: failed program was:" >&5
13084 cat conftest.$ac_ext >&5
13086 echo "$ac_t""no" 1>&6
13090 echo "$ac_t""no" 1>&6
13094 echo "$ac_t""no" 1>&6
13098 echo "$ac_t""no" 1>&6
13102 echo $ac_n "checking for msgget""... $ac_c" 1>&6
13103 echo "configure:13104: checking for msgget" >&5
13105 cat > conftest.$ac_ext <<EOF
13106 #line 13107 "configure"
13107 #include "confdefs.h"
13108 /* System header to define __stub macros and hopefully few prototypes,
13109 which can conflict with char msgget(); below. */
13110 #include <assert.h>
13111 /* Override any gcc2 internal prototype to avoid an error. */
13112 /* We use char because int might match the return type of a gcc2
13113 builtin and then its argument prototype would still apply. */
13118 /* The GNU C library defines this for functions which it implements
13119 to always fail with ENOSYS. Some functions are actually named
13120 something starting with __ and the normal name is an alias. */
13121 #if defined (__stub_msgget) || defined (__stub___msgget)
13129 if { (eval echo configure:13130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13131 eval "ac_cv_func_msgget=yes"
13133 echo "configure: failed program was:" >&5
13134 cat conftest.$ac_ext >&5
13136 eval "ac_cv_func_msgget=no"
13140 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
13141 echo "$ac_t""yes" 1>&6
13142 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
13143 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
13144 echo "configure:13145: checking for sys/ipc.h" >&5
13146 cat > conftest.$ac_ext <<EOF
13147 #line 13148 "configure"
13148 #include "confdefs.h"
13149 #include <sys/ipc.h>
13151 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13152 { (eval echo configure:13153: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13153 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13154 if test -z "$ac_err"; then
13156 eval "ac_cv_header_$ac_safe=yes"
13159 echo "configure: failed program was:" >&5
13160 cat conftest.$ac_ext >&5
13162 eval "ac_cv_header_$ac_safe=no"
13165 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13166 echo "$ac_t""yes" 1>&6
13167 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
13168 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
13169 echo "configure:13170: checking for sys/msg.h" >&5
13171 cat > conftest.$ac_ext <<EOF
13172 #line 13173 "configure"
13173 #include "confdefs.h"
13174 #include <sys/msg.h>
13176 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13177 { (eval echo configure:13178: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13178 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13179 if test -z "$ac_err"; then
13181 eval "ac_cv_header_$ac_safe=yes"
13184 echo "configure: failed program was:" >&5
13185 cat conftest.$ac_ext >&5
13187 eval "ac_cv_header_$ac_safe=no"
13190 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13191 echo "$ac_t""yes" 1>&6
13192 { test "$extra_verbose" = "yes" && cat << \EOF
13193 Defining HAVE_SYSVIPC
13195 cat >> confdefs.h <<\EOF
13196 #define HAVE_SYSVIPC 1
13201 echo "$ac_t""no" 1>&6
13205 echo "$ac_t""no" 1>&6
13209 echo "$ac_t""no" 1>&6
13213 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
13214 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
13215 echo "configure:13216: checking for dirent.h" >&5
13217 cat > conftest.$ac_ext <<EOF
13218 #line 13219 "configure"
13219 #include "confdefs.h"
13220 #include <dirent.h>
13222 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13223 { (eval echo configure:13224: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13224 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13225 if test -z "$ac_err"; then
13227 eval "ac_cv_header_$ac_safe=yes"
13230 echo "configure: failed program was:" >&5
13231 cat conftest.$ac_ext >&5
13233 eval "ac_cv_header_$ac_safe=no"
13236 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13237 echo "$ac_t""yes" 1>&6
13238 { test "$extra_verbose" = "yes" && cat << \EOF
13239 Defining SYSV_SYSTEM_DIR
13241 cat >> confdefs.h <<\EOF
13242 #define SYSV_SYSTEM_DIR 1
13247 echo "$ac_t""no" 1>&6
13248 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
13249 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
13250 echo "configure:13251: checking for sys/dir.h" >&5
13252 cat > conftest.$ac_ext <<EOF
13253 #line 13254 "configure"
13254 #include "confdefs.h"
13255 #include <sys/dir.h>
13257 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13258 { (eval echo configure:13259: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13259 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13260 if test -z "$ac_err"; then
13262 eval "ac_cv_header_$ac_safe=yes"
13265 echo "configure: failed program was:" >&5
13266 cat conftest.$ac_ext >&5
13268 eval "ac_cv_header_$ac_safe=no"
13271 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13272 echo "$ac_t""yes" 1>&6
13275 echo "$ac_t""no" 1>&6
13276 { test "$extra_verbose" = "yes" && cat << \EOF
13277 Defining NONSYSTEM_DIR_LIBRARY
13279 cat >> confdefs.h <<\EOF
13280 #define NONSYSTEM_DIR_LIBRARY 1
13289 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
13290 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
13291 echo "configure:13292: checking for nlist.h" >&5
13293 cat > conftest.$ac_ext <<EOF
13294 #line 13295 "configure"
13295 #include "confdefs.h"
13298 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13299 { (eval echo configure:13300: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13300 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13301 if test -z "$ac_err"; then
13303 eval "ac_cv_header_$ac_safe=yes"
13306 echo "configure: failed program was:" >&5
13307 cat conftest.$ac_ext >&5
13309 eval "ac_cv_header_$ac_safe=no"
13312 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13313 echo "$ac_t""yes" 1>&6
13314 { test "$extra_verbose" = "yes" && cat << \EOF
13315 Defining NLIST_STRUCT
13317 cat >> confdefs.h <<\EOF
13318 #define NLIST_STRUCT 1
13323 echo "$ac_t""no" 1>&6
13328 echo "checking "for sound support"" 1>&6
13329 echo "configure:13330: checking "for sound support"" >&5
13330 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
13332 if test "$with_native_sound" != "no"; then
13333 if test -n "$native_sound_lib"; then
13334 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
13335 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
13336 echo "configure:13337: checking for multimedia/audio_device.h" >&5
13338 cat > conftest.$ac_ext <<EOF
13339 #line 13340 "configure"
13340 #include "confdefs.h"
13341 #include <multimedia/audio_device.h>
13343 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13344 { (eval echo configure:13345: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13345 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13346 if test -z "$ac_err"; then
13348 eval "ac_cv_header_$ac_safe=yes"
13351 echo "configure: failed program was:" >&5
13352 cat conftest.$ac_ext >&5
13354 eval "ac_cv_header_$ac_safe=no"
13357 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13358 echo "$ac_t""yes" 1>&6
13359 sound_found=yes sound_cflags=""
13360 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
13361 echo " xemacs will be linked with \"sunplay.o\""
13364 echo "$ac_t""no" 1>&6
13369 if test -z "$sound_found" -a -d "/usr/demo/SOUND"; then
13370 if test -d "/usr/demo/SOUND/include/multimedia"; then
13371 sun_sound_cflags="-I/usr/demo/SOUND/include"
13372 elif test -d "/usr/demo/SOUND/multimedia"; then
13373 sun_sound_cflags="-I/usr/demo/SOUND"
13376 if test -n "$native_sound_lib"; then
13377 sun_sound_lib="$native_sound_lib"
13378 elif test -r "/usr/demo/SOUND/lib/libaudio.a"; then
13379 sun_sound_lib="/usr/demo/SOUND/lib/libaudio.a"
13380 elif test -r "/usr/demo/SOUND/libaudio.a"; then
13381 sun_sound_lib="/usr/demo/SOUND/libaudio.a"
13384 if test -n "$sun_sound_cflags" -a -n "$sun_sound_lib"; then
13385 native_sound_lib="$sun_sound_lib"
13386 sound_cflags="$sun_sound_cflags"
13388 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
13389 echo " xemacs will be linked with \"sunplay.o\""
13394 if test -z "$sound_found"; then
13395 case "$canonical" in
13397 if test -z "$native_sound_lib"; then
13399 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
13400 echo "configure:13401: checking for ALopenport in -laudio" >&5
13401 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
13403 xe_check_libs=" -laudio "
13404 cat > conftest.$ac_ext <<EOF
13405 #line 13406 "configure"
13406 #include "confdefs.h"
13407 /* Override any gcc2 internal prototype to avoid an error. */
13408 /* We use char because int might match the return type of a gcc2
13409 builtin and then its argument prototype would still apply. */
13416 if { (eval echo configure:13417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13418 eval "ac_cv_lib_$ac_lib_var=yes"
13420 echo "configure: failed program was:" >&5
13421 cat conftest.$ac_ext >&5
13423 eval "ac_cv_lib_$ac_lib_var=no"
13428 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13429 echo "$ac_t""yes" 1>&6
13430 native_sound_lib="-laudio"
13432 echo "$ac_t""no" 1>&6
13437 if test -n "$native_sound_lib"; then
13438 sound_found=yes sound_cflags=""
13439 extra_objs="$extra_objs sgiplay.o" && if test "$extra_verbose" = "yes"; then
13440 echo " xemacs will be linked with \"sgiplay.o\""
13444 if test -z "$native_sound_lib"; then
13446 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
13447 echo "configure:13448: checking for AOpenAudio in -lAlib" >&5
13448 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
13450 xe_check_libs=" -lAlib "
13451 cat > conftest.$ac_ext <<EOF
13452 #line 13453 "configure"
13453 #include "confdefs.h"
13454 /* Override any gcc2 internal prototype to avoid an error. */
13455 /* We use char because int might match the return type of a gcc2
13456 builtin and then its argument prototype would still apply. */
13463 if { (eval echo configure:13464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13465 eval "ac_cv_lib_$ac_lib_var=yes"
13467 echo "configure: failed program was:" >&5
13468 cat conftest.$ac_ext >&5
13470 eval "ac_cv_lib_$ac_lib_var=no"
13475 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13476 echo "$ac_t""yes" 1>&6
13477 native_sound_lib="-lAlib"
13479 echo "$ac_t""no" 1>&6
13484 if test -n "$native_sound_lib"; then
13486 extra_objs="$extra_objs hpplay.o" && if test "$extra_verbose" = "yes"; then
13487 echo " xemacs will be linked with \"hpplay.o\""
13489 if test "$GCC" = "yes" # Kludge city
13490 then sound_cflags="-Dconst= -Dvolatile= -I/usr/audio/examples"
13491 else sound_cflags="+e -I/usr/audio/examples"
13497 if test -z "$sound_found"; then
13498 if test "$with_msw" = "yes"; then
13504 if test -z "$sound_found"; then
13505 for dir in "machine" "sys" "linux"; do
13506 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
13507 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
13508 echo "configure:13509: checking for ${dir}/soundcard.h" >&5
13510 cat > conftest.$ac_ext <<EOF
13511 #line 13512 "configure"
13512 #include "confdefs.h"
13513 #include <${dir}/soundcard.h>
13515 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13516 { (eval echo configure:13517: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13517 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13518 if test -z "$ac_err"; then
13520 eval "ac_cv_header_$ac_safe=yes"
13523 echo "configure: failed program was:" >&5
13524 cat conftest.$ac_ext >&5
13526 eval "ac_cv_header_$ac_safe=no"
13529 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13530 echo "$ac_t""yes" 1>&6
13533 extra_objs="$extra_objs linuxplay.o" && if test "$extra_verbose" = "yes"; then
13534 echo " xemacs will be linked with \"linuxplay.o\""
13536 { test "$extra_verbose" = "yes" && cat << EOF
13537 Defining SOUNDCARD_H_FILE = "${dir}/soundcard.h"
13539 cat >> confdefs.h <<EOF
13540 #define SOUNDCARD_H_FILE "${dir}/soundcard.h"
13546 echo "$ac_t""no" 1>&6
13552 test "$sound_found" = "yes" && with_native_sound=yes
13555 if test "$with_native_sound" = "yes"; then
13556 { test "$extra_verbose" = "yes" && cat << \EOF
13557 Defining HAVE_NATIVE_SOUND
13559 cat >> confdefs.h <<\EOF
13560 #define HAVE_NATIVE_SOUND 1
13564 test -n "$native_sound_lib" && LIBS="$native_sound_lib $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$native_sound_lib\" to \$LIBS"; fi
13567 if test "$with_nas_sound" != "no"; then
13568 ac_safe=`echo "audio/audiolib.h" | sed 'y%./+-%__p_%'`
13569 echo $ac_n "checking for audio/audiolib.h""... $ac_c" 1>&6
13570 echo "configure:13571: checking for audio/audiolib.h" >&5
13572 cat > conftest.$ac_ext <<EOF
13573 #line 13574 "configure"
13574 #include "confdefs.h"
13575 #include <audio/audiolib.h>
13577 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13578 { (eval echo configure:13579: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13579 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13580 if test -z "$ac_err"; then
13582 eval "ac_cv_header_$ac_safe=yes"
13585 echo "configure: failed program was:" >&5
13586 cat conftest.$ac_ext >&5
13588 eval "ac_cv_header_$ac_safe=no"
13591 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13592 echo "$ac_t""yes" 1>&6
13595 echo $ac_n "checking for AuOpenServer in -laudio""... $ac_c" 1>&6
13596 echo "configure:13597: checking for AuOpenServer in -laudio" >&5
13597 ac_lib_var=`echo audio'_'AuOpenServer | sed 'y%./+-%__p_%'`
13599 xe_check_libs=" -laudio "
13600 cat > conftest.$ac_ext <<EOF
13601 #line 13602 "configure"
13602 #include "confdefs.h"
13603 /* Override any gcc2 internal prototype to avoid an error. */
13604 /* We use char because int might match the return type of a gcc2
13605 builtin and then its argument prototype would still apply. */
13606 char AuOpenServer();
13612 if { (eval echo configure:13613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13614 eval "ac_cv_lib_$ac_lib_var=yes"
13616 echo "configure: failed program was:" >&5
13617 cat conftest.$ac_ext >&5
13619 eval "ac_cv_lib_$ac_lib_var=no"
13624 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13625 echo "$ac_t""yes" 1>&6
13628 echo "$ac_t""no" 1>&6
13633 echo "$ac_t""no" 1>&6
13636 if test "$have_nas_sound" = "yes"; then
13638 { test "$extra_verbose" = "yes" && cat << \EOF
13639 Defining HAVE_NAS_SOUND
13641 cat >> confdefs.h <<\EOF
13642 #define HAVE_NAS_SOUND 1
13646 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
13647 echo " xemacs will be linked with \"nas.o\""
13649 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi
13650 cat > conftest.$ac_ext <<EOF
13651 #line 13652 "configure"
13652 #include "confdefs.h"
13653 #include <audio/Xtutil.h>
13655 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13656 egrep "AuXtErrorJump" >/dev/null 2>&1; then
13660 old_nas=yes; { test "$extra_verbose" = "yes" && cat << \EOF
13661 Defining NAS_NO_ERROR_JUMP
13663 cat >> confdefs.h <<\EOF
13664 #define NAS_NO_ERROR_JUMP 1
13672 test "$with_nas_sound" = "yes" && \
13673 { echo "Error:" "Required NAS sound support cannot be provided." >&2; exit 1; }
13678 if test "$with_esd_sound" != "no"; then
13679 # Extract the first word of "esd-config", so it can be a program name with args.
13680 set dummy esd-config; ac_word=$2
13681 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
13682 echo "configure:13683: checking for $ac_word" >&5
13684 if test -n "$have_esd_config"; then
13685 ac_cv_prog_have_esd_config="$have_esd_config" # Let the user override the test.
13687 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
13689 for ac_dir in $ac_dummy; do
13690 test -z "$ac_dir" && ac_dir=.
13691 if test -f $ac_dir/$ac_word; then
13692 ac_cv_prog_have_esd_config="yes"
13697 test -z "$ac_cv_prog_have_esd_config" && ac_cv_prog_have_esd_config="no"
13699 have_esd_config="$ac_cv_prog_have_esd_config"
13700 if test -n "$have_esd_config"; then
13701 echo "$ac_t""$have_esd_config" 1>&6
13703 echo "$ac_t""no" 1>&6
13706 if test "$have_esd_config" = "yes"; then
13707 save_c_switch_site="$c_switch_site" save_LIBS="$LIBS"
13708 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
13709 LIBS="`esd-config --libs` $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"`esd-config --libs`\" to \$LIBS"; fi
13710 echo $ac_n "checking for esd_play_stream""... $ac_c" 1>&6
13711 echo "configure:13712: checking for esd_play_stream" >&5
13713 cat > conftest.$ac_ext <<EOF
13714 #line 13715 "configure"
13715 #include "confdefs.h"
13716 /* System header to define __stub macros and hopefully few prototypes,
13717 which can conflict with char esd_play_stream(); below. */
13718 #include <assert.h>
13719 /* Override any gcc2 internal prototype to avoid an error. */
13720 /* We use char because int might match the return type of a gcc2
13721 builtin and then its argument prototype would still apply. */
13722 char esd_play_stream();
13726 /* The GNU C library defines this for functions which it implements
13727 to always fail with ENOSYS. Some functions are actually named
13728 something starting with __ and the normal name is an alias. */
13729 #if defined (__stub_esd_play_stream) || defined (__stub___esd_play_stream)
13737 if { (eval echo configure:13738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13739 eval "ac_cv_func_esd_play_stream=yes"
13741 echo "configure: failed program was:" >&5
13742 cat conftest.$ac_ext >&5
13744 eval "ac_cv_func_esd_play_stream=no"
13748 if eval "test \"`echo '$ac_cv_func_'esd_play_stream`\" = yes"; then
13749 echo "$ac_t""yes" 1>&6
13752 echo "$ac_t""no" 1>&6
13753 c_switch_site="$save_c_switch_site" LIBS="$save_LIBS"
13758 if test "$have_esd_sound" = "yes"; then
13761 extra_objs="$extra_objs esd.o" && if test "$extra_verbose" = "yes"; then
13762 echo " xemacs will be linked with \"esd.o\""
13764 { test "$extra_verbose" = "yes" && cat << \EOF
13765 Defining HAVE_ESD_SOUND
13767 cat >> confdefs.h <<\EOF
13768 #define HAVE_ESD_SOUND 1
13773 test "$with_esd_sound" = "yes" && \
13774 { echo "Error:" "Required ESD sound support cannot be provided." >&2; exit 1; }
13779 test "$need_miscplay" = "yes" && extra_objs="$extra_objs miscplay.o" && if test "$extra_verbose" = "yes"; then
13780 echo " xemacs will be linked with \"miscplay.o\""
13784 test -z "$with_tty" && with_tty=yes
13786 if test "$with_tty" = "yes" ; then
13787 echo "checking for TTY-related features" 1>&6
13788 echo "configure:13789: checking for TTY-related features" >&5
13789 { test "$extra_verbose" = "yes" && cat << \EOF
13792 cat >> confdefs.h <<\EOF
13797 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
13798 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\""
13801 if test -z "$with_ncurses"; then
13803 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
13804 echo "configure:13805: checking for tgetent in -lncurses" >&5
13805 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
13807 xe_check_libs=" -lncurses "
13808 cat > conftest.$ac_ext <<EOF
13809 #line 13810 "configure"
13810 #include "confdefs.h"
13811 /* Override any gcc2 internal prototype to avoid an error. */
13812 /* We use char because int might match the return type of a gcc2
13813 builtin and then its argument prototype would still apply. */
13820 if { (eval echo configure:13821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13822 eval "ac_cv_lib_$ac_lib_var=yes"
13824 echo "configure: failed program was:" >&5
13825 cat conftest.$ac_ext >&5
13827 eval "ac_cv_lib_$ac_lib_var=no"
13832 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13833 echo "$ac_t""yes" 1>&6
13836 echo "$ac_t""no" 1>&6
13842 if test "$with_ncurses" = "yes"; then
13843 { test "$extra_verbose" = "yes" && cat << \EOF
13844 Defining HAVE_NCURSES
13846 cat >> confdefs.h <<\EOF
13847 #define HAVE_NCURSES 1
13851 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
13852 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
13853 echo "configure:13854: checking for ncurses/curses.h" >&5
13855 cat > conftest.$ac_ext <<EOF
13856 #line 13857 "configure"
13857 #include "confdefs.h"
13858 #include <ncurses/curses.h>
13860 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13861 { (eval echo configure:13862: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13862 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13863 if test -z "$ac_err"; then
13865 eval "ac_cv_header_$ac_safe=yes"
13868 echo "configure: failed program was:" >&5
13869 cat conftest.$ac_ext >&5
13871 eval "ac_cv_header_$ac_safe=no"
13874 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13875 echo "$ac_t""yes" 1>&6
13876 curses_h_file=ncurses/curses.h
13878 echo "$ac_t""no" 1>&6
13881 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
13882 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
13883 echo "configure:13884: checking for ncurses/term.h" >&5
13885 cat > conftest.$ac_ext <<EOF
13886 #line 13887 "configure"
13887 #include "confdefs.h"
13888 #include <ncurses/term.h>
13890 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13891 { (eval echo configure:13892: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13892 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13893 if test -z "$ac_err"; then
13895 eval "ac_cv_header_$ac_safe=yes"
13898 echo "configure: failed program was:" >&5
13899 cat conftest.$ac_ext >&5
13901 eval "ac_cv_header_$ac_safe=no"
13904 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13905 echo "$ac_t""yes" 1>&6
13906 term_h_file=ncurses/term.h
13908 echo "$ac_t""no" 1>&6
13911 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
13912 echo " xemacs will be linked with \"terminfo.o\""
13914 LIBS="-lncurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lncurses\" to \$LIBS"; fi
13916 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
13917 save_c_switch_site="$c_switch_site"
13918 c_switch_site="$c_switch_site -I/usr/include/ncurses"
13919 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
13920 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
13921 echo "configure:13922: checking for ncurses/curses.h" >&5
13923 cat > conftest.$ac_ext <<EOF
13924 #line 13925 "configure"
13925 #include "confdefs.h"
13926 #include <ncurses/curses.h>
13928 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13929 { (eval echo configure:13930: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13930 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13931 if test -z "$ac_err"; then
13933 eval "ac_cv_header_$ac_safe=yes"
13936 echo "configure: failed program was:" >&5
13937 cat conftest.$ac_ext >&5
13939 eval "ac_cv_header_$ac_safe=no"
13942 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13943 echo "$ac_t""yes" 1>&6
13944 curses_h_file=ncurses/curses.h
13946 echo "$ac_t""no" 1>&6
13949 if test "$ac_cv_header_ncurses_curses_h" = "yes"
13950 then echo "configure: warning: "Your system has the bogus ncurses include bug."" 1>&2
13951 else c_switch_site="$save_c_switch_site"
13954 else if test "$have_terminfo" = "yes"; then
13955 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
13956 echo " xemacs will be linked with \"terminfo.o\""
13958 if test -n "$libs_termcap"; then
13959 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
13961 for lib in curses termlib termcap; do
13963 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
13964 echo "configure:13965: checking for tgetent in -l$lib" >&5
13965 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
13967 xe_check_libs=" -l$lib "
13968 cat > conftest.$ac_ext <<EOF
13969 #line 13970 "configure"
13970 #include "confdefs.h"
13971 /* Override any gcc2 internal prototype to avoid an error. */
13972 /* We use char because int might match the return type of a gcc2
13973 builtin and then its argument prototype would still apply. */
13980 if { (eval echo configure:13981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13982 eval "ac_cv_lib_$ac_lib_var=yes"
13984 echo "configure: failed program was:" >&5
13985 cat conftest.$ac_ext >&5
13987 eval "ac_cv_lib_$ac_lib_var=no"
13992 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13993 echo "$ac_t""yes" 1>&6
13994 LIBS="-l${lib} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${lib}\" to \$LIBS"; fi; break
13996 echo "$ac_t""no" 1>&6
14002 else if test -n "$libs_termcap" -a "$opsys" = "openbsd"; then
14004 echo $ac_n "checking for tgoto in -ltermcap""... $ac_c" 1>&6
14005 echo "configure:14006: checking for tgoto in -ltermcap" >&5
14006 ac_lib_var=`echo termcap'_'tgoto | sed 'y%./+-%__p_%'`
14008 xe_check_libs=" -ltermcap "
14009 cat > conftest.$ac_ext <<EOF
14010 #line 14011 "configure"
14011 #include "confdefs.h"
14012 /* Override any gcc2 internal prototype to avoid an error. */
14013 /* We use char because int might match the return type of a gcc2
14014 builtin and then its argument prototype would still apply. */
14021 if { (eval echo configure:14022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14023 eval "ac_cv_lib_$ac_lib_var=yes"
14025 echo "configure: failed program was:" >&5
14026 cat conftest.$ac_ext >&5
14028 eval "ac_cv_lib_$ac_lib_var=no"
14033 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
14034 echo "$ac_t""yes" 1>&6
14035 ac_tr_lib=HAVE_LIB`echo termcap | sed -e 's/[^a-zA-Z0-9_]/_/g' \
14036 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
14037 { test "$extra_verbose" = "yes" && cat << EOF
14038 Defining $ac_tr_lib
14040 cat >> confdefs.h <<EOF
14041 #define $ac_tr_lib 1
14045 LIBS="-ltermcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltermcap\" to \$LIBS"; fi
14048 echo "$ac_t""no" 1>&6
14049 extra_objs="$extra_objs tparam.o" && if test "$extra_verbose" = "yes"; then
14050 echo " xemacs will be linked with \"tparam.o\""
14056 extra_objs="$extra_objs tparam.o" && if test "$extra_verbose" = "yes"; then
14057 echo " xemacs will be linked with \"tparam.o\""
14060 case "$opsys" in *-hp-hpux* ) libs_termcap="-ltermcap" ;; esac
14061 if test -n "$libs_termcap"; then
14062 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
14065 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
14066 echo "configure:14067: checking for tgetent in -lcurses" >&5
14067 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
14069 xe_check_libs=" -lcurses "
14070 cat > conftest.$ac_ext <<EOF
14071 #line 14072 "configure"
14072 #include "confdefs.h"
14073 /* Override any gcc2 internal prototype to avoid an error. */
14074 /* We use char because int might match the return type of a gcc2
14075 builtin and then its argument prototype would still apply. */
14082 if { (eval echo configure:14083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14084 eval "ac_cv_lib_$ac_lib_var=yes"
14086 echo "configure: failed program was:" >&5
14087 cat conftest.$ac_ext >&5
14089 eval "ac_cv_lib_$ac_lib_var=no"
14094 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
14095 echo "$ac_t""yes" 1>&6
14096 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
14098 echo "$ac_t""no" 1>&6
14099 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
14100 echo "configure:14101: checking for tgetent in -ltermcap" >&5
14101 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
14103 xe_check_libs=" -ltermcap "
14104 cat > conftest.$ac_ext <<EOF
14105 #line 14106 "configure"
14106 #include "confdefs.h"
14107 /* Override any gcc2 internal prototype to avoid an error. */
14108 /* We use char because int might match the return type of a gcc2
14109 builtin and then its argument prototype would still apply. */
14116 if { (eval echo configure:14117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14118 eval "ac_cv_lib_$ac_lib_var=yes"
14120 echo "configure: failed program was:" >&5
14121 cat conftest.$ac_ext >&5
14123 eval "ac_cv_lib_$ac_lib_var=no"
14128 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
14129 echo "$ac_t""yes" 1>&6
14130 LIBS="-ltermcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltermcap\" to \$LIBS"; fi
14132 echo "$ac_t""no" 1>&6
14133 extra_objs="$extra_objs termcap.o" && if test "$extra_verbose" = "yes"; then
14134 echo " xemacs will be linked with \"termcap.o\""
14145 { test "$extra_verbose" = "yes" && cat << EOF
14146 Defining CURSES_H_FILE = "${curses_h_file-curses.h}"
14148 cat >> confdefs.h <<EOF
14149 #define CURSES_H_FILE "${curses_h_file-curses.h}"
14153 { test "$extra_verbose" = "yes" && cat << EOF
14154 Defining TERM_H_FILE = "${term_h_file-term.h}"
14156 cat >> confdefs.h <<EOF
14157 #define TERM_H_FILE "${term_h_file-term.h}"
14162 if test "$with_gpm" != "no"; then
14163 ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
14164 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
14165 echo "configure:14166: checking for gpm.h" >&5
14167 cat > conftest.$ac_ext <<EOF
14168 #line 14169 "configure"
14169 #include "confdefs.h"
14172 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14173 { (eval echo configure:14174: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14174 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14175 if test -z "$ac_err"; then
14177 eval "ac_cv_header_$ac_safe=yes"
14180 echo "configure: failed program was:" >&5
14181 cat conftest.$ac_ext >&5
14183 eval "ac_cv_header_$ac_safe=no"
14186 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14187 echo "$ac_t""yes" 1>&6
14190 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
14191 echo "configure:14192: checking for Gpm_Open in -lgpm" >&5
14192 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
14194 xe_check_libs=" -lgpm "
14195 cat > conftest.$ac_ext <<EOF
14196 #line 14197 "configure"
14197 #include "confdefs.h"
14198 /* Override any gcc2 internal prototype to avoid an error. */
14199 /* We use char because int might match the return type of a gcc2
14200 builtin and then its argument prototype would still apply. */
14207 if { (eval echo configure:14208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14209 eval "ac_cv_lib_$ac_lib_var=yes"
14211 echo "configure: failed program was:" >&5
14212 cat conftest.$ac_ext >&5
14214 eval "ac_cv_lib_$ac_lib_var=no"
14219 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
14220 echo "$ac_t""yes" 1>&6
14223 echo "$ac_t""no" 1>&6
14228 echo "$ac_t""no" 1>&6
14231 if test "$have_gpm" = "yes"; then
14233 { test "$extra_verbose" = "yes" && cat << \EOF
14236 cat >> confdefs.h <<\EOF
14241 extra_objs="$extra_objs gpmevent.o" && if test "$extra_verbose" = "yes"; then
14242 echo " xemacs will be linked with \"gpmevent.o\""
14244 LIBS="-lgpm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgpm\" to \$LIBS"; fi
14245 elif test "$with_gpm" = "yes"; then
14246 { echo "Error:" "GPM requested, but gpm.h or libgpm seems to be missing." >&2; exit 1; }
14252 else for feature in ncurses gpm; do
14253 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
14254 echo "configure: warning: "--with-${feature} ignored: Not valid without TTY support"" 1>&2
14256 eval "with_${feature}=no"
14259 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
14260 echo " xemacs will be linked with \"event-unixoid.o\""
14264 test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
14265 != "no no no" && echo "checking for database support" 1>&6
14266 echo "configure:14267: checking for database support" >&5
14268 if test "$with_database_gdbm $with_database_dbm" != "no no"; then
14269 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'`
14270 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6
14271 echo "configure:14272: checking for ndbm.h" >&5
14273 cat > conftest.$ac_ext <<EOF
14274 #line 14275 "configure"
14275 #include "confdefs.h"
14278 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14279 { (eval echo configure:14280: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14280 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14281 if test -z "$ac_err"; then
14283 eval "ac_cv_header_$ac_safe=yes"
14286 echo "configure: failed program was:" >&5
14287 cat conftest.$ac_ext >&5
14289 eval "ac_cv_header_$ac_safe=no"
14292 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14293 echo "$ac_t""yes" 1>&6
14296 echo "$ac_t""no" 1>&6
14298 test "$with_database_gdbm" = "yes" -o \
14299 "$with_database_dbm" = "yes" && \
14300 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
14301 with_database_gdbm=no with_database_dbm=no
14306 if test "$with_database_gdbm" != "no"; then
14308 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
14309 echo "configure:14310: checking for dbm_open in -lgdbm" >&5
14310 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
14312 xe_check_libs=" -lgdbm "
14313 cat > conftest.$ac_ext <<EOF
14314 #line 14315 "configure"
14315 #include "confdefs.h"
14316 /* Override any gcc2 internal prototype to avoid an error. */
14317 /* We use char because int might match the return type of a gcc2
14318 builtin and then its argument prototype would still apply. */
14325 if { (eval echo configure:14326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14327 eval "ac_cv_lib_$ac_lib_var=yes"
14329 echo "configure: failed program was:" >&5
14330 cat conftest.$ac_ext >&5
14332 eval "ac_cv_lib_$ac_lib_var=no"
14337 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
14338 echo "$ac_t""yes" 1>&6
14339 with_database_gdbm=yes with_database_dbm=no libdbm=-lgdbm
14341 echo "$ac_t""no" 1>&6
14342 if test "$with_database_gdbm" = "yes"; then
14343 { echo "Error:" "Required GNU DBM support cannot be provided." >&2; exit 1; }
14345 with_database_gdbm=no
14351 if test "$with_database_dbm" != "no"; then
14352 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
14353 echo "configure:14354: checking for dbm_open" >&5
14355 cat > conftest.$ac_ext <<EOF
14356 #line 14357 "configure"
14357 #include "confdefs.h"
14358 /* System header to define __stub macros and hopefully few prototypes,
14359 which can conflict with char dbm_open(); below. */
14360 #include <assert.h>
14361 /* Override any gcc2 internal prototype to avoid an error. */
14362 /* We use char because int might match the return type of a gcc2
14363 builtin and then its argument prototype would still apply. */
14368 /* The GNU C library defines this for functions which it implements
14369 to always fail with ENOSYS. Some functions are actually named
14370 something starting with __ and the normal name is an alias. */
14371 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
14379 if { (eval echo configure:14380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14381 eval "ac_cv_func_dbm_open=yes"
14383 echo "configure: failed program was:" >&5
14384 cat conftest.$ac_ext >&5
14386 eval "ac_cv_func_dbm_open=no"
14390 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
14391 echo "$ac_t""yes" 1>&6
14392 with_database_dbm=yes libdbm=
14394 echo "$ac_t""no" 1>&6
14397 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
14398 echo "configure:14399: checking for dbm_open in -ldbm" >&5
14399 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
14401 xe_check_libs=" -ldbm "
14402 cat > conftest.$ac_ext <<EOF
14403 #line 14404 "configure"
14404 #include "confdefs.h"
14405 /* Override any gcc2 internal prototype to avoid an error. */
14406 /* We use char because int might match the return type of a gcc2
14407 builtin and then its argument prototype would still apply. */
14414 if { (eval echo configure:14415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14416 eval "ac_cv_lib_$ac_lib_var=yes"
14418 echo "configure: failed program was:" >&5
14419 cat conftest.$ac_ext >&5
14421 eval "ac_cv_lib_$ac_lib_var=no"
14426 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
14427 echo "$ac_t""yes" 1>&6
14428 with_database_dbm=yes libdbm=-ldbm
14430 echo "$ac_t""no" 1>&6
14431 test "$with_database_dbm" = "yes" && \
14432 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
14433 with_database_dbm=no
14441 test -n "$libdbm" && LIBS=""$libdbm" $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libdbm"\" to \$LIBS"; fi
14442 test "$with_database_gdbm" = "yes" -o \
14443 "$with_database_dbm" = "yes" && \
14444 { test "$extra_verbose" = "yes" && cat << \EOF
14447 cat >> confdefs.h <<\EOF
14453 echo $ac_n "checking for u_int8_t""... $ac_c" 1>&6
14454 echo "configure:14455: checking for u_int8_t" >&5
14456 cat > conftest.$ac_ext <<EOF
14457 #line 14458 "configure"
14458 #include "confdefs.h"
14459 #include <sys/types.h>
14461 #include <stdlib.h>
14462 #include <stddef.h>
14465 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14466 egrep "(^|[^a-zA-Z_0-9])u_int8_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14468 ac_cv_type_u_int8_t=yes
14471 ac_cv_type_u_int8_t=no
14475 echo "$ac_t""$ac_cv_type_u_int8_t" 1>&6
14476 if test $ac_cv_type_u_int8_t = no; then
14477 { test "$extra_verbose" = "yes" && cat << \EOF
14478 Defining u_int8_t = uint8_t
14480 cat >> confdefs.h <<\EOF
14481 #define u_int8_t uint8_t
14487 if test $ac_cv_type_u_int8_t = yes; then
14488 { test "$extra_verbose" = "yes" && cat << \EOF
14489 Defining HAVE_U_INT8_T = 1
14491 cat >> confdefs.h <<\EOF
14492 #define HAVE_U_INT8_T 1
14497 echo $ac_n "checking for u_int16_t""... $ac_c" 1>&6
14498 echo "configure:14499: checking for u_int16_t" >&5
14500 cat > conftest.$ac_ext <<EOF
14501 #line 14502 "configure"
14502 #include "confdefs.h"
14503 #include <sys/types.h>
14505 #include <stdlib.h>
14506 #include <stddef.h>
14509 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14510 egrep "(^|[^a-zA-Z_0-9])u_int16_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14512 ac_cv_type_u_int16_t=yes
14515 ac_cv_type_u_int16_t=no
14519 echo "$ac_t""$ac_cv_type_u_int16_t" 1>&6
14520 if test $ac_cv_type_u_int16_t = no; then
14521 { test "$extra_verbose" = "yes" && cat << \EOF
14522 Defining u_int16_t = uint16_t
14524 cat >> confdefs.h <<\EOF
14525 #define u_int16_t uint16_t
14531 if test $ac_cv_type_u_int16_t = yes; then
14532 { test "$extra_verbose" = "yes" && cat << \EOF
14533 Defining HAVE_U_INT16_T = 1
14535 cat >> confdefs.h <<\EOF
14536 #define HAVE_U_INT16_T 1
14541 echo $ac_n "checking for u_int32_t""... $ac_c" 1>&6
14542 echo "configure:14543: checking for u_int32_t" >&5
14544 cat > conftest.$ac_ext <<EOF
14545 #line 14546 "configure"
14546 #include "confdefs.h"
14547 #include <sys/types.h>
14549 #include <stdlib.h>
14550 #include <stddef.h>
14553 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14554 egrep "(^|[^a-zA-Z_0-9])u_int32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14556 ac_cv_type_u_int32_t=yes
14559 ac_cv_type_u_int32_t=no
14563 echo "$ac_t""$ac_cv_type_u_int32_t" 1>&6
14564 if test $ac_cv_type_u_int32_t = no; then
14565 { test "$extra_verbose" = "yes" && cat << \EOF
14566 Defining u_int32_t = uint32_t
14568 cat >> confdefs.h <<\EOF
14569 #define u_int32_t uint32_t
14575 if test $ac_cv_type_u_int32_t = yes; then
14576 { test "$extra_verbose" = "yes" && cat << \EOF
14577 Defining HAVE_U_INT32_T = 1
14579 cat >> confdefs.h <<\EOF
14580 #define HAVE_U_INT32_T 1
14585 echo $ac_n "checking for u_int64_t""... $ac_c" 1>&6
14586 echo "configure:14587: checking for u_int64_t" >&5
14588 cat > conftest.$ac_ext <<EOF
14589 #line 14590 "configure"
14590 #include "confdefs.h"
14591 #include <sys/types.h>
14593 #include <stdlib.h>
14594 #include <stddef.h>
14597 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14598 egrep "(^|[^a-zA-Z_0-9])u_int64_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14600 ac_cv_type_u_int64_t=yes
14603 ac_cv_type_u_int64_t=no
14607 echo "$ac_t""$ac_cv_type_u_int64_t" 1>&6
14608 if test $ac_cv_type_u_int64_t = no; then
14609 { test "$extra_verbose" = "yes" && cat << \EOF
14610 Defining u_int64_t = uint64_t
14612 cat >> confdefs.h <<\EOF
14613 #define u_int64_t uint64_t
14619 if test $ac_cv_type_u_int64_t = yes; then
14620 { test "$extra_verbose" = "yes" && cat << \EOF
14621 Defining HAVE_U_INT64_T = 1
14623 cat >> confdefs.h <<\EOF
14624 #define HAVE_U_INT64_T 1
14630 if test "$with_database_berkdb" != "no"; then
14631 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6
14632 echo "configure:14633: checking for Berkeley db.h" >&5
14633 for header in "db/db.h" "db.h"; do
14636 cat > conftest.$ac_ext <<EOF
14637 #line 14638 "configure"
14638 #include "confdefs.h"
14640 #include <stdlib.h>
14641 #if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1)
14642 #ifdef HAVE_INTTYPES_H
14643 #define __BIT_TYPES_DEFINED__
14644 #include <inttypes.h>
14653 if { (eval echo configure:14654: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14655 db_h_file="$header"; break
14657 echo "configure: failed program was:" >&5
14658 cat conftest.$ac_ext >&5
14663 cat > conftest.$ac_ext <<EOF
14664 #line 14665 "configure"
14665 #include "confdefs.h"
14667 #include <stdlib.h>
14668 #if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1)
14669 #ifdef HAVE_INTTYPES_H
14670 #define __BIT_TYPES_DEFINED__
14671 #include <inttypes.h>
14673 typedef uint8_t u_int8_t;
14675 #if !HAVE_U_INT16_T
14676 typedef uint16_t u_int16_t;
14678 #if !HAVE_U_INT32_T
14679 typedef uint32_t u_int32_t;
14681 #ifdef WE_DONT_NEED_QUADS
14682 #if !HAVE_U_INT64_T
14683 typedef uint64_t u_int64_t;
14694 if { (eval echo configure:14695: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14696 db_h_file="$header"; break
14698 echo "configure: failed program was:" >&5
14699 cat conftest.$ac_ext >&5
14705 if test -z "$db_h_file"
14706 then echo "$ac_t""no" 1>&6; with_database_berkdb=no
14707 else echo "$ac_t""$db_h_file" 1>&6
14710 if test "$with_database_berkdb" != "no"; then
14711 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6
14712 echo "configure:14713: checking for Berkeley DB version" >&5
14713 cat > conftest.$ac_ext <<EOF
14714 #line 14715 "configure"
14715 #include "confdefs.h"
14716 #include <$db_h_file>
14717 #if DB_VERSION_MAJOR > 1
14722 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14723 egrep "yes" >/dev/null 2>&1; then
14725 cat > conftest.$ac_ext <<EOF
14726 #line 14727 "configure"
14727 #include "confdefs.h"
14728 #include <$db_h_file>
14729 #if DB_VERSION_MAJOR > 2
14734 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14735 egrep "yes" >/dev/null 2>&1; then
14737 echo "$ac_t""3" 1>&6; dbfunc=db_create
14741 echo "$ac_t""2" 1>&6; dbfunc=db_open
14748 echo "$ac_t""1" 1>&6; dbfunc=dbopen
14752 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6
14753 echo "configure:14754: checking for $dbfunc" >&5
14755 cat > conftest.$ac_ext <<EOF
14756 #line 14757 "configure"
14757 #include "confdefs.h"
14758 /* System header to define __stub macros and hopefully few prototypes,
14759 which can conflict with char $dbfunc(); below. */
14760 #include <assert.h>
14761 /* Override any gcc2 internal prototype to avoid an error. */
14762 /* We use char because int might match the return type of a gcc2
14763 builtin and then its argument prototype would still apply. */
14768 /* The GNU C library defines this for functions which it implements
14769 to always fail with ENOSYS. Some functions are actually named
14770 something starting with __ and the normal name is an alias. */
14771 #if defined (__stub_$dbfunc) || defined (__stub___$dbfunc)
14779 if { (eval echo configure:14780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14781 eval "ac_cv_func_$dbfunc=yes"
14783 echo "configure: failed program was:" >&5
14784 cat conftest.$ac_ext >&5
14786 eval "ac_cv_func_$dbfunc=no"
14790 if eval "test \"`echo '$ac_cv_func_'$dbfunc`\" = yes"; then
14791 echo "$ac_t""yes" 1>&6
14792 with_database_berkdb=yes need_libdb=no
14794 echo "$ac_t""no" 1>&6
14797 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6
14798 echo "configure:14799: checking for $dbfunc in -ldb" >&5
14799 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'`
14801 xe_check_libs=" -ldb "
14802 cat > conftest.$ac_ext <<EOF
14803 #line 14804 "configure"
14804 #include "confdefs.h"
14805 /* Override any gcc2 internal prototype to avoid an error. */
14806 /* We use char because int might match the return type of a gcc2
14807 builtin and then its argument prototype would still apply. */
14814 if { (eval echo configure:14815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14816 eval "ac_cv_lib_$ac_lib_var=yes"
14818 echo "configure: failed program was:" >&5
14819 cat conftest.$ac_ext >&5
14821 eval "ac_cv_lib_$ac_lib_var=no"
14826 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
14827 echo "$ac_t""yes" 1>&6
14828 with_database_berkdb=yes need_libdb=yes
14830 echo "$ac_t""no" 1>&6
14838 if test "$with_database_berkdb" = "yes"; then
14839 { test "$extra_verbose" = "yes" && cat << EOF
14840 Defining DB_H_FILE = "$db_h_file"
14842 cat >> confdefs.h <<EOF
14843 #define DB_H_FILE "$db_h_file"
14847 { test "$extra_verbose" = "yes" && cat << \EOF
14848 Defining HAVE_BERKELEY_DB
14850 cat >> confdefs.h <<\EOF
14851 #define HAVE_BERKELEY_DB 1
14855 test "$need_libdb" = "yes" && LIBS="-ldb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldb\" to \$LIBS"; fi
14856 else with_database_berkdb=no
14860 if test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
14861 != "no no no"; then
14862 { test "$extra_verbose" = "yes" && cat << \EOF
14863 Defining HAVE_DATABASE
14865 cat >> confdefs.h <<\EOF
14866 #define HAVE_DATABASE 1
14870 extra_objs="$extra_objs database.o" && if test "$extra_verbose" = "yes"; then
14871 echo " xemacs will be linked with \"database.o\""
14875 if test "$with_socks" = "yes"; then
14877 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
14878 echo "configure:14879: checking for SOCKSinit in -lsocks" >&5
14879 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
14881 xe_check_libs=" -lsocks "
14882 cat > conftest.$ac_ext <<EOF
14883 #line 14884 "configure"
14884 #include "confdefs.h"
14885 /* Override any gcc2 internal prototype to avoid an error. */
14886 /* We use char because int might match the return type of a gcc2
14887 builtin and then its argument prototype would still apply. */
14894 if { (eval echo configure:14895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14896 eval "ac_cv_lib_$ac_lib_var=yes"
14898 echo "configure: failed program was:" >&5
14899 cat conftest.$ac_ext >&5
14901 eval "ac_cv_lib_$ac_lib_var=no"
14906 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
14907 echo "$ac_t""yes" 1>&6
14908 ac_tr_lib=HAVE_LIB`echo socks | sed -e 's/[^a-zA-Z0-9_]/_/g' \
14909 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
14910 { test "$extra_verbose" = "yes" && cat << EOF
14911 Defining $ac_tr_lib
14913 cat >> confdefs.h <<EOF
14914 #define $ac_tr_lib 1
14918 LIBS="-lsocks $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lsocks\" to \$LIBS"; fi
14921 echo "$ac_t""no" 1>&6
14925 test -n "$ac_cv_lib_socks_SOCKSinit" && { test "$extra_verbose" = "yes" && cat << \EOF
14926 Defining HAVE_SOCKS
14928 cat >> confdefs.h <<\EOF
14929 #define HAVE_SOCKS 1
14935 if test "$usage_tracking" = "yes"; then
14936 { test "$extra_verbose" = "yes" && cat << \EOF
14937 Defining USAGE_TRACKING
14939 cat >> confdefs.h <<\EOF
14940 #define USAGE_TRACKING 1
14944 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi
14947 if test "$with_modules" != "no"; then
14948 echo "checking for module support" 1>&6
14949 echo "configure:14950: checking for module support" >&5
14951 if test "$with_msw" = "yes"; then
14955 darwin) have_dl=yes; { test "$extra_verbose" = "yes" && cat << \EOF
14958 cat >> confdefs.h <<\EOF
14959 #define HAVE_DYLD 1
14963 *) ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'`
14964 echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6
14965 echo "configure:14966: checking for dlfcn.h" >&5
14967 cat > conftest.$ac_ext <<EOF
14968 #line 14969 "configure"
14969 #include "confdefs.h"
14972 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14973 { (eval echo configure:14974: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14974 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14975 if test -z "$ac_err"; then
14977 eval "ac_cv_header_$ac_safe=yes"
14980 echo "configure: failed program was:" >&5
14981 cat conftest.$ac_ext >&5
14983 eval "ac_cv_header_$ac_safe=no"
14986 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14987 echo "$ac_t""yes" 1>&6
14989 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6
14990 echo "configure:14991: checking for dlopen in -lc" >&5
14991 cat > conftest.$ac_ext <<EOF
14992 #line 14993 "configure"
14993 #include "confdefs.h"
14999 if { (eval echo configure:15000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15003 echo "configure: failed program was:" >&5
15004 cat conftest.$ac_ext >&5
15007 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
15008 echo "configure:15009: checking for dlopen in -ldl" >&5
15009 ac_save_LIBS="$LIBS"
15011 cat > conftest.$ac_ext <<EOF
15012 #line 15013 "configure"
15013 #include "confdefs.h"
15019 if { (eval echo configure:15020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15023 echo "configure: failed program was:" >&5
15024 cat conftest.$ac_ext >&5
15026 LIBS="$ac_save_LIBS"
15033 echo "$ac_t""no" 1>&6
15036 if test -n "$have_dl"; then
15037 { test "$extra_verbose" = "yes" && cat << \EOF
15038 Defining HAVE_DLOPEN
15040 cat >> confdefs.h <<\EOF
15041 #define HAVE_DLOPEN 1
15047 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
15048 echo "configure:15049: checking for shl_load in -ldld" >&5
15049 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
15051 xe_check_libs=" -ldld "
15052 cat > conftest.$ac_ext <<EOF
15053 #line 15054 "configure"
15054 #include "confdefs.h"
15055 /* Override any gcc2 internal prototype to avoid an error. */
15056 /* We use char because int might match the return type of a gcc2
15057 builtin and then its argument prototype would still apply. */
15064 if { (eval echo configure:15065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15066 eval "ac_cv_lib_$ac_lib_var=yes"
15068 echo "configure: failed program was:" >&5
15069 cat conftest.$ac_ext >&5
15071 eval "ac_cv_lib_$ac_lib_var=no"
15076 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
15077 echo "$ac_t""yes" 1>&6
15078 libdl=dld have_dl=yes;
15079 { test "$extra_verbose" = "yes" && cat << \EOF
15080 Defining HAVE_SHL_LOAD
15082 cat >> confdefs.h <<\EOF
15083 #define HAVE_SHL_LOAD 1
15088 echo "$ac_t""no" 1>&6
15090 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6
15091 echo "configure:15092: checking for dld_init in -ldld" >&5
15092 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'`
15094 xe_check_libs=" -ldld "
15095 cat > conftest.$ac_ext <<EOF
15096 #line 15097 "configure"
15097 #include "confdefs.h"
15098 /* Override any gcc2 internal prototype to avoid an error. */
15099 /* We use char because int might match the return type of a gcc2
15100 builtin and then its argument prototype would still apply. */
15107 if { (eval echo configure:15108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15109 eval "ac_cv_lib_$ac_lib_var=yes"
15111 echo "configure: failed program was:" >&5
15112 cat conftest.$ac_ext >&5
15114 eval "ac_cv_lib_$ac_lib_var=no"
15119 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
15120 echo "$ac_t""yes" 1>&6
15121 libdl=dld have_dl=yes;
15122 { test "$extra_verbose" = "yes" && cat << \EOF
15123 Defining HAVE_DLD_INIT
15125 cat >> confdefs.h <<\EOF
15126 #define HAVE_DLD_INIT 1
15131 echo "$ac_t""no" 1>&6
15142 if test -n "$have_dl"; then
15149 ld_dynamic_link_flags=
15151 xealias=$internal_configuration
15153 echo "checking how to build dynamic libraries for ${xehost}" 1>&6
15154 echo "configure:15155: checking how to build dynamic libraries for ${xehost}" >&5
15155 # Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts.
15158 *-*-linux*) xehost=`echo $xehost | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
15161 xehost_cpu=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
15162 xehost_vendor=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
15163 xehost_os=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
15165 case "$xehost_os" in
15167 # AIX sometimes has problems with the GCC collect2 program. For some
15168 # reason, if we set the COLLECT_NAMES environment variable, the problems
15169 # vanish in a puff of smoke.
15170 if test "${COLLECT_NAMES+set}" != set; then
15172 export COLLECT_NAMES
15177 # Now see if the compiler is really GCC.
15178 if test "$GCC" = "yes"; then
15181 echo $ac_n "checking checking whether we are using GNU C""... $ac_c" 1>&6
15182 echo "configure:15183: checking checking whether we are using GNU C" >&5
15183 cat > conftest.$ac_ext <<EOF
15184 #line 15185 "configure"
15185 #include "confdefs.h"
15192 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15193 egrep "yes" >/dev/null 2>&1; then
15202 echo "$ac_t""${XEGCC}" 1>&6
15205 echo $ac_n "checking how to produce PIC code""... $ac_c" 1>&6
15206 echo "configure:15207: checking how to produce PIC code" >&5
15209 can_build_shared=yes
15210 if test "$XEGCC" = yes -o "$__ICC" = yes; then
15213 case "$xehost_os" in
15214 aix[3-9]* | irix[5-9]* | osf[3-9])
15215 # PIC is the default for these OSes.
15219 # We can build DLLs from non-PIC.
15222 # FIXME: we need at least 68020 code to build shared libraries, but
15223 # adding the `-m68020' flag to GCC prevents building anything better,
15225 dll_cflags='-m68020 -resident32 -malways-restore-a4'
15227 *cygwin* | *mingw* )
15228 # PIC is the default
15235 # PORTME Check for PIC flags for the system compiler.
15236 case "$xehost_os" in
15237 hpux9* | hpux1[0-9]*)
15238 # Is there a better link_static_flag that works with the bundled CC?
15245 # PIC (with -KPIC) is the default.
15249 # We can build DLLs from non-PIC.
15253 # All OSF/1 code is PIC.
15258 # All AIX code is PIC.
15263 dll_cflags='-belf -Kpic'
15297 can_build_shared=no
15302 if test -n "$dll_cflags"; then
15303 echo "$ac_t""${dll_cflags}" 1>&6
15305 # Check to make sure the dll_cflags actually works.
15306 echo $ac_n "checking if PIC flag ${dll_cflags} really works""... $ac_c" 1>&6
15307 echo "configure:15308: checking if PIC flag ${dll_cflags} really works" >&5
15308 save_CFLAGS="$CFLAGS"
15309 CFLAGS="$CFLAGS $dll_cflags -DPIC"
15310 cat > conftest.$ac_ext <<EOF
15311 #line 15312 "configure"
15312 #include "confdefs.h"
15318 if { (eval echo configure:15319: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15321 # On HP-UX, the stripped-down bundled CC doesn't accept +Z, but also
15322 # reports no error. So, we need to grep stderr for (Bundled).
15323 if grep '(Bundled)' config.log >/dev/null; then
15324 echo "$ac_t""no" 1>&6
15325 can_build_shared=no
15328 echo "$ac_t""yes" 1>&6
15331 echo "configure: failed program was:" >&5
15332 cat conftest.$ac_ext >&5
15334 echo "$ac_t""no" 1>&6
15335 can_build_shared=no
15339 CFLAGS="$save_CFLAGS"
15341 echo "$ac_t""none" 1>&6
15344 if test "$can_build_shared" = "yes"; then
15348 echo $ac_n "checking if C compiler can produce shared libraries""... $ac_c" 1>&6
15349 echo "configure:15350: checking if C compiler can produce shared libraries" >&5
15350 if test "$XEGCC" = yes -o "$__ICC" = yes; then
15353 else # Not using GCC
15354 case "$xehost_os" in
15356 xldf="-bE:ELLSONAME.exp -H512 -T512 -bhalt:4 -bM:SRE -bnoentry -lc"
15357 xcldf="${wl}-bE:ELLSONAME.exp ${wl}-H512 ${wl}-T512 ${wl}-bhalt:4 ${wl}-bM:SRE ${wl}-bnoentry ${wl}-lc"
15360 freebsd2* | netbsd* | openbsd*)
15362 xcldf="${wl}-Bshareable"
15371 xcldf="${wl}-b ${wl}+s"
15374 irix[5-9]* | osf[3-9]*)
15375 xcldf="${wl}-shared"
15379 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7* | uts4*)
15385 xcldf="${wl}-assert ${wl}pure-text ${wl}-Bstatic"
15386 xldf="-assert pure-text -Bstatic"
15389 fi # End if if we are using gcc
15391 if test -n "$xcldf"; then
15392 save_LDFLAGS=$LDFLAGS
15394 save_xe_libs=$xe_libs
15395 LDFLAGS="$xcldf $LDFLAGS"
15398 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
15399 cat > conftest.$ac_ext <<EOF
15400 #line 15401 "configure"
15401 #include "confdefs.h"
15407 if { (eval echo configure:15408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15411 echo "configure: failed program was:" >&5
15412 cat conftest.$ac_ext >&5
15417 LDFLAGS=$save_LDFLAGS
15419 xe_libs=$save_xe_libs
15420 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
15424 echo "$ac_t""${cc_produces_so}" 1>&6
15427 if test -z "$LTLD"; then
15429 if test "$XEGCC" = yes; then
15430 # Check if gcc -print-prog-name=ld gives a path.
15431 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
15432 echo "configure:15433: checking for ld used by GCC" >&5
15433 ac_prog=`($CC -print-prog-name=ld) 2>&5`
15435 # Accept absolute paths.
15437 if test -z "$LTLD"; then
15438 # case "$ac_prog" in
15439 # *gcc-lib*) LTLD="$CC"
15448 # If it fails, then pretend we aren't using GCC.
15452 # If it is relative, then search for the first ld in PATH.
15453 with_gnu_ld=unknown
15457 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
15458 echo "configure:15459: checking for GNU ld" >&5
15461 if test -z "$LTLD"; then
15462 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
15463 for ac_dir in $PATH; do
15464 test -z "$ac_dir" && ac_dir=.
15465 if test -f "$ac_dir/$ac_prog"; then
15466 LTLD="$ac_dir/$ac_prog"
15467 # Check to see if the program is GNU ld. I'd rather use --version,
15468 # but apparently some GNU ld's only accept -v.
15469 # Break only if it was the GNU/non-GNU ld that we prefer.
15470 if "$LTLD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
15480 if test -n "$LTLD"; then
15481 echo "$ac_t""${LTLD}" 1>&6
15483 echo "$ac_t""no" 1>&6
15486 if test -z "$LTLD" -a "$cc_produces_so" = no; then
15487 { echo "configure: error: no acceptable linker found in \$PATH" 1>&2; exit 1; }
15492 ld_dynamic_link_flags=
15494 # Check to see if it really is or isn't GNU ld.
15495 echo $ac_n "checking if the linker is GNU ld""... $ac_c" 1>&6
15496 echo "configure:15497: checking if the linker is GNU ld" >&5
15497 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15498 if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
15503 echo "$ac_t""${xe_gnu_ld}" 1>&6
15505 case "$xehost_os" in
15506 amigaos* | sunos4*)
15507 # On these operating systems, we should treat GNU ld like the system ld.
15508 gnu_ld_acts_native=yes
15511 gnu_ld_acts_native=no
15515 if test "$cc_produces_so" = "yes"; then
15518 can_build_shared=yes
15521 # OK - only NOW do we futz about with ld.
15522 # See if the linker supports building shared libraries.
15523 echo $ac_n "checking whether the linker supports shared libraries""... $ac_c" 1>&6
15524 echo "configure:15525: checking whether the linker supports shared libraries" >&5
15526 dll_ldflags=$LDFLAGS
15528 can_build_shared=yes
15529 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then
15530 # See if GNU ld supports shared libraries.
15531 if $LTLD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
15533 dll_ldflags="-shared"
15539 # PORTME fill in a description of your system's linker (not GNU ld)
15540 case "$xehost_os" in
15550 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15551 # support. Future versions do this automatically, but an explicit c++rt0.o
15552 # doesn't break anything, and helps significantly (at the cost of a little
15557 dll_post="/usr/lib/c++rt0.o"
15560 # Unfortunately, older versions of FreeBSD 2 don't have this feature.
15563 dll_ldflags="-Bshareable"
15566 # FreeBSD 3, at last, uses gcc -shared to do shared libraries.
15568 dll_ldflags="-shared"
15582 # Tested with NetBSD 1.2 ld
15597 # For both SCO and Solaris we MAY want to have LDFLAGS include -z text
15598 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7*)
15601 *gcc*) dll_ldflags="-shared"
15604 *) dll_ldflags="-G"
15610 if test "$XEGCC" = yes; then
15630 can_build_shared=no
15634 echo "$ac_t""${ld_shlibs}" 1>&6
15635 if test "$ld_shlibs" = "no"; then
15636 can_build_shared=no
15638 fi # End of if cc_produces_so = no
15641 if test "$xe_gnu_ld" = yes; then
15642 if test "$ld_shlibs" = yes; then
15643 ld_dynamic_link_flags="${wl}-export-dynamic"
15647 if test -z "$ld_dynamic_link_flags"; then
15648 case "$xehost_os" in
15650 ld_dynamic_link_flags=
15654 ld_dynamic_link_flags=
15658 ld_dynamic_link_flags=
15662 ld_dynamic_link_flags=
15666 ld_dynamic_link_flags="${wl}-E"
15670 ld_dynamic_link_flags=
15674 ld_dynamic_link_flags=
15678 ld_dynamic_link_flags=
15682 ld_dynamic_link_flags=
15685 solaris2* | solaris7*)
15686 ld_dynamic_link_flags=
15689 sco3.2v5* | unixware* | sysv5* | sysv4*)
15690 ld_dynamic_link_flags="${wl}-Bexport"
15694 ld_dynamic_link_flags=
15698 ld_dynamic_link_flags=
15702 ld_dynamic_link_flags=
15706 fi # End of if -z ld_dynamic_link_flags
15707 fi # End of if test "$can_build_shared" = "yes"
15718 if test "$can_build_shared" = "yes"; then
15719 { test "$extra_verbose" = "yes" && cat << \EOF
15720 Defining HAVE_SHLIB
15722 cat >> confdefs.h <<\EOF
15723 #define HAVE_SHLIB 1
15727 extra_objs="$extra_objs sysdll.o emodules.o" && if test "$extra_verbose" = "yes"; then
15728 echo " xemacs will be linked with \"sysdll.o emodules.o\""
15730 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
15731 test -n "$libdl" && LIBS="-l${libdl} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${libdl}\" to \$LIBS"; fi
15732 for ac_func in dlerror _dlerror
15734 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15735 echo "configure:15736: checking for $ac_func" >&5
15737 cat > conftest.$ac_ext <<EOF
15738 #line 15739 "configure"
15739 #include "confdefs.h"
15740 /* System header to define __stub macros and hopefully few prototypes,
15741 which can conflict with char $ac_func(); below. */
15742 #include <assert.h>
15743 /* Override any gcc2 internal prototype to avoid an error. */
15744 /* We use char because int might match the return type of a gcc2
15745 builtin and then its argument prototype would still apply. */
15750 /* The GNU C library defines this for functions which it implements
15751 to always fail with ENOSYS. Some functions are actually named
15752 something starting with __ and the normal name is an alias. */
15753 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15761 if { (eval echo configure:15762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15763 eval "ac_cv_func_$ac_func=yes"
15765 echo "configure: failed program was:" >&5
15766 cat conftest.$ac_ext >&5
15768 eval "ac_cv_func_$ac_func=no"
15772 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15773 echo "$ac_t""yes" 1>&6
15774 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15775 { test "$extra_verbose" = "yes" && cat << EOF
15776 Defining $ac_tr_func
15778 cat >> confdefs.h <<EOF
15779 #define $ac_tr_func 1
15784 echo "$ac_t""no" 1>&6
15790 if test "$with_modules" = "yes"; then
15791 { echo "Error:" "Required module support cannot be provided." >&2; exit 1; }
15793 echo "configure: warning: "Module support cannot be provided."" 1>&2
15799 cat > conftest.$ac_ext <<EOF
15800 #line 15801 "configure"
15801 #include "confdefs.h"
15802 int main(int c,char *v[]){return 0;}
15804 if { (eval echo configure:15805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
15809 echo "configure: failed program was:" >&5
15810 cat conftest.$ac_ext >&5
15814 echo "*** PANIC *** configure forgot how to build working executables!"
15816 echo "*** This is most commonly due to an unforeseen environment, causing"
15817 echo "*** configure to incorrectly compute the sequence of libraries to link."
15818 echo "*** Please examine the tail of config.log for runtime errors."
15819 echo "*** Pay special attention to the -l flags, and perhaps -I and -L."
15820 echo "*** Often adding or removing explicit options in the configure"
15821 echo "*** invocation can work around this kind of problem. If so, please"
15822 echo "*** report it as a bug to xemacs-beta@xemacs.org."
15824 echo "*** Other possible causes are inability to write to the file system"
15825 echo "*** (bogus permissions or disk full) or a misconfiguration of the dynamic"
15826 echo "*** linker. On Linux, check /etc/ld.conf and rerun ldconfig if"
15827 echo "*** necessary. On other systems, try telling configure where to find"
15828 echo "*** the shared libraries using the --site-runtime-libraries option."
15830 echo "*** Another way to shoot yourself in the foot is to specify"
15831 echo "*** --with-FEATURE when FEATURE is not actually installed on your"
15832 echo "*** system. Don't do that."
15837 if test "$win32_processes" = "yes"; then
15838 extra_objs="$extra_objs process-nt.o" && if test "$extra_verbose" = "yes"; then
15839 echo " xemacs will be linked with \"process-nt.o\""
15842 { test "$extra_verbose" = "yes" && cat << \EOF
15843 Defining HAVE_UNIX_PROCESSES
15845 cat >> confdefs.h <<\EOF
15846 #define HAVE_UNIX_PROCESSES 1
15850 extra_objs="$extra_objs process-unix.o" && if test "$extra_verbose" = "yes"; then
15851 echo " xemacs will be linked with \"process-unix.o\""
15858 for W in $CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15863 for W in $extra_objs; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15868 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
15869 c_switch_general="$T"
15873 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
15874 c_switch_window_system="$T"
15878 for W in $c_switch_general $c_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15883 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
15884 ld_switch_general="$T"
15888 for W in $ld_switch_x_site; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15889 ld_switch_window_system="$T"
15893 for W in $ld_switch_general $ld_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15898 for W in $LIBS $libs_machine $libs_system $libs_standard; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15899 ld_libs_general="$T"
15903 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
15904 ld_libs_window_system="$T"
15908 for W in $ld_libs_window_system $ld_libs_general; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15913 MAKE_SUBDIR="$MAKE_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$MAKE_SUBDIR"; fi
15914 internal_makefile_list="Makefile.in"
15915 SUBDIR_MAKEFILES=''
15916 test -d lock || mkdir lock
15917 for dir in $MAKE_SUBDIR; do
15918 case "$dir" in */* ) ( for d in `echo $dir | sed 's:/: :g'` ; do
15919 test -d "$d" || mkdir "$d"; cd "$d"
15921 * ) test -d "$dir" || mkdir "$dir" ;;
15925 for W in $SUBDIR_MAKEFILES $dir/Makefile $dir/GNUmakefile; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15926 SUBDIR_MAKEFILES="$T"
15930 for W in $internal_makefile_list $dir/Makefile.in; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15931 internal_makefile_list="$T"
15938 for dir in src/s src/m; do
15939 if test ! -d "$dir" ; then
15940 echo Making symbolic link to "$srcdir/$dir"
15941 ${LN_S} "$srcdir/$dir" "$dir"
15945 if test "$extra_verbose" = "yes"; then
15947 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
15952 if test -f "$srcdir/src/.gdbinit" -a ! -f "src/.gdbinit"; then
15953 test "$extra_verbose" = "yes" && echo "creating src/.gdbinit"
15954 echo "source $srcdir/src/.gdbinit" > "src/.gdbinit"
15957 if test -f "$srcdir/src/.dbxrc" -a ! -f "src/.dbxrc"; then
15958 test "$extra_verbose" = "yes" && echo "creating src/.dbxrc"
15959 echo ". $srcdir/src/.dbxrc" > "src/.dbxrc"
15962 if test -f "$srcdir/TAGS" -a ! -f "TAGS"; then
15963 test "$extra_verbose" = "yes" && echo "creating TAGS"
15965 $srcdir/TAGS,include" > "TAGS"
15968 if test "$__SUNPRO_C" = "yes"; then
15969 test "$extra_verbose" = "yes" && echo "creating .sbinit"
15970 ( echo "# For use with Sun WorkShop's Source browser."
15971 echo "# See sbquery(1) and sbinit(4) for more information"
15972 for dir in $MAKE_SUBDIR; do echo "import $dir"; done
16000 *\$* ) eval "PREFIX=$PREFIX" ;;
16008 EXEC_PREFIX=$exec_prefix
16010 case "$EXEC_PREFIX" in
16011 *\$* ) eval "EXEC_PREFIX=$EXEC_PREFIX" ;;
16022 *\$* ) eval "INFODIR=$INFODIR" ;;
16032 case "$INFOPATH" in
16033 *\$* ) eval "INFOPATH=$INFOPATH" ;;
16041 PACKAGE_PATH=$package_path
16043 case "$PACKAGE_PATH" in
16044 *\$* ) eval "PACKAGE_PATH=$PACKAGE_PATH" ;;
16055 *\$* ) eval "LISPDIR=$LISPDIR" ;;
16063 MODULEDIR=$moduledir
16065 case "$MODULEDIR" in
16066 *\$* ) eval "MODULEDIR=$MODULEDIR" ;;
16074 SITELISPDIR=$sitelispdir
16076 case "$SITELISPDIR" in
16077 *\$* ) eval "SITELISPDIR=$SITELISPDIR" ;;
16085 SITEMODULEDIR=$sitemoduledir
16087 case "$SITEMODULEDIR" in
16088 *\$* ) eval "SITEMODULEDIR=$SITEMODULEDIR" ;;
16099 *\$* ) eval "ETCDIR=$ETCDIR" ;;
16110 *\$* ) eval "DOCDIR=$DOCDIR" ;;
16118 ARCHLIBDIR=$archlibdir
16120 case "$ARCHLIBDIR" in
16121 *\$* ) eval "ARCHLIBDIR=$ARCHLIBDIR" ;;
16145 RECURSIVE_MAKE_ARGS="\$(MFLAGS) CC='\$(CC)' CFLAGS='\$(CFLAGS)' LDFLAGS='\$(LDFLAGS)' CPPFLAGS='\$(CPPFLAGS)'"
16153 : ${XEMACS_CC:=$CC}
16156 if test "$with_prefix" = "yes"; then
16157 { test "$extra_verbose" = "yes" && cat << \EOF
16158 Defining PREFIX_USER_DEFINED
16160 cat >> confdefs.h <<\EOF
16161 #define PREFIX_USER_DEFINED 1
16167 if test "$with_site_lisp" = "no"; then
16168 { test "$extra_verbose" = "yes" && cat << \EOF
16169 Defining INHIBIT_SITE_LISP
16171 cat >> confdefs.h <<\EOF
16172 #define INHIBIT_SITE_LISP 1
16177 if test "$with_site_modules" = "no"; then
16178 { test "$extra_verbose" = "yes" && cat << \EOF
16179 Defining INHIBIT_SITE_MODULES
16181 cat >> confdefs.h <<\EOF
16182 #define INHIBIT_SITE_MODULES 1
16190 for W in $ac_configure_args; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
16191 ac_configure_args="$T"
16193 { test "$extra_verbose" = "yes" && cat << EOF
16194 Defining EMACS_CONFIGURATION = "$configuration"
16196 cat >> confdefs.h <<EOF
16197 #define EMACS_CONFIGURATION "$configuration"
16201 { test "$extra_verbose" = "yes" && cat << EOF
16202 Defining EMACS_CONFIG_OPTIONS = "$ac_configure_args"
16204 cat >> confdefs.h <<EOF
16205 #define EMACS_CONFIG_OPTIONS "$ac_configure_args"
16212 { test "$extra_verbose" = "yes" && cat << EOF
16213 Defining LD_SWITCH_X_SITE = $null_string
16215 cat >> confdefs.h <<EOF
16216 #define LD_SWITCH_X_SITE $null_string
16220 { test "$extra_verbose" = "yes" && cat << EOF
16221 Defining LD_SWITCH_X_SITE_AUX = $null_string
16223 cat >> confdefs.h <<EOF
16224 #define LD_SWITCH_X_SITE_AUX $null_string
16228 { test "$extra_verbose" = "yes" && cat << EOF
16229 Defining C_SWITCH_X_SITE = $null_string
16231 cat >> confdefs.h <<EOF
16232 #define C_SWITCH_X_SITE $null_string
16236 { test "$extra_verbose" = "yes" && cat << EOF
16237 Defining LD_SWITCH_SITE = $null_string
16239 cat >> confdefs.h <<EOF
16240 #define LD_SWITCH_SITE $null_string
16244 { test "$extra_verbose" = "yes" && cat << EOF
16245 Defining C_SWITCH_SITE = $null_string
16247 cat >> confdefs.h <<EOF
16248 #define C_SWITCH_SITE $null_string
16254 if test "$GNU_MALLOC" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
16255 Defining GNU_MALLOC
16257 cat >> confdefs.h <<\EOF
16258 #define GNU_MALLOC 1
16262 elif test "$with_system_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
16263 Defining USE_SYSTEM_MALLOC
16265 cat >> confdefs.h <<\EOF
16266 #define USE_SYSTEM_MALLOC 1
16270 elif test "$with_debug_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
16271 Defining USE_DEBUG_MALLOC
16273 cat >> confdefs.h <<\EOF
16274 #define USE_DEBUG_MALLOC 1
16278 { test "$extra_verbose" = "yes" && cat << \EOF
16279 Defining USE_SYSTEM_MALLOC
16281 cat >> confdefs.h <<\EOF
16282 #define USE_SYSTEM_MALLOC 1
16287 test "$with_i18n3" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
16290 cat >> confdefs.h <<\EOF
16295 test "$GCC" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
16298 cat >> confdefs.h <<\EOF
16303 test "$external_widget" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
16304 Defining EXTERNAL_WIDGET
16306 cat >> confdefs.h <<\EOF
16307 #define EXTERNAL_WIDGET 1
16311 test "$quick_build" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
16312 Defining QUICK_BUILD
16314 cat >> confdefs.h <<\EOF
16315 #define QUICK_BUILD 1
16319 test "$with_purify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
16322 cat >> confdefs.h <<\EOF
16327 test "$with_quantify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
16330 cat >> confdefs.h <<\EOF
16335 test "$with_pop" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
16336 Defining MAIL_USE_POP
16338 cat >> confdefs.h <<\EOF
16339 #define MAIL_USE_POP 1
16343 test "$with_kerberos" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
16346 cat >> confdefs.h <<\EOF
16351 test "$with_hesiod" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
16354 cat >> confdefs.h <<\EOF
16359 test "$use_union_type" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
16360 Defining USE_UNION_TYPE
16362 cat >> confdefs.h <<\EOF
16363 #define USE_UNION_TYPE 1
16367 test "$use_regex_malloc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
16368 Defining REGEX_MALLOC
16370 cat >> confdefs.h <<\EOF
16371 #define REGEX_MALLOC 1
16375 test "$pdump" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
16378 cat >> confdefs.h <<\EOF
16383 test "$with_ipv6_cname" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
16384 Defining IPV6_CANONICALIZE
16386 cat >> confdefs.h <<\EOF
16387 #define IPV6_CANONICALIZE 1
16394 if test -f /etc/osversion; then echo "osversion: `cat /etc/osversion`"
16396 echo "uname -a: `uname -a`"
16399 echo "$0 $quoted_arguments"
16402 if test ! -z ${emacs_beta_version} ; then
16403 if test -z "${emacs_is_beta}" ; then
16404 xemacs_betaname=".${emacs_beta_version}"
16406 xemacs_betaname="-b${emacs_beta_version}"
16415 XEmacs ${emacs_major_version}.${emacs_minor_version}${xemacs_betaname} \"$xemacs_codename\" configured for \`$canonical'.
16418 Compilation / Installation:"
16419 echo " Source code location: $srcdir"
16420 echo " Installation prefix: $prefix"
16421 if test -n "$site_includes"; then
16422 echo " Additional header files: $site_includes"
16424 if test -n "$site_libraries"; then
16425 echo " Additional libraries: $site_libraries"
16427 if test -n "$site_prefixes"; then
16428 echo " Additional prefixes: $site_prefixes"
16430 if test -n "$runpath"; then
16431 echo " Runtime library search path: $runpath"
16434 if test -n "$opsysfile"
16435 then echo " Operating system description file: \`$opsysfile'"
16436 else echo " Not using any operating system description file"
16438 if test -n "$machfile"
16439 then echo " Machine description file: \`$machfile'"
16440 else echo " Not using any machine description file"
16443 echo " Compiler: $CC $CFLAGS"
16445 gcc*) echo " Compiler version: `$CC --version | sed 1q`"
16446 echo " Compiler specs file: `$CC -v 2>&1 | sed 's/.* \([^ ]\)/\1/' | sed 1q`"
16448 *) case "$canonical" in
16451 if test -L $realcc ; then
16452 ccdir=`dirname $realcc`
16453 ccprog=`/bin/ls -l $realcc | sed 's/.* \([^ ]\)/\1/'`
16455 */*) realcc=$ccprog;;
16456 *) realcc=$ccdir/$ccprog;;
16459 lpp=`lslpp -wqc $realcc | cut -f2 -d:`
16460 if test ! -z "$lpp" ; then
16461 lppstr=`lslpp -Lqc $lpp`
16462 lpplev=`echo "$lppstr" | cut -f3 -d:`
16463 lppdesc=`echo "$lppstr" | cut -f8 -d:`
16465 if test ! -z "$lpplev" ; then
16466 echo " Compiler version: $lpp $lpplev - $lppdesc"
16468 echo " Compiler version: (unknown version)"
16473 ccvers=`$CC -V 2>&1 | sed 1q`
16474 if test ! -z "$ccvers" ; then
16475 echo " Compiler version: $ccvers"
16480 ccvers=`$CC -V | tr '\n' ' '`
16481 if test ! -z "$ccvers" ; then
16482 echo " Compiler version: $ccvers"
16487 ccvers=`$CC -version`
16488 if test ! -z "$ccvers" ; then
16489 echo " Compiler version: $ccvers"
16494 ccvers=`$CC -V 2>&1 | sed -n 's@^Intel.*Version @@'p`
16495 if test ! -z "$ccvers" ; then
16496 echo " Compiler version: $ccvers"
16500 *) echo " Compiler version: $CC on $canonical";;
16504 echo " Relocating allocator for buffers: $rel_alloc"
16505 echo " GNU version of malloc: ${GNU_MALLOC}${GNU_MALLOC_reason}"
16506 case "$ld_switch_site" in
16507 *nocombreloc*) echo " Linking with \`-z nocombreloc'.
16508 - Consider configuring with --pdump." ;;
16511 case "$canonical" in
16513 if test -f /etc/redhat-release ; then
16514 echo " libc: `rpm -q glibc`";
16516 echo "Need to guess glibc1/2/etc here";
16521 echo " libc: bos.rte.libc `lslpp -Lqc bos.rte.libc | cut -f3 -d:`"
16525 libc=`pkginfo -l SUNWcsl | grep VERSION: | awk '{print $2}'`
16526 echo " libc: SUNWcsl $libc"
16531 echo " IRIX version: `uname -sRm`'"
16537 libc=` grep -h libc.so *.inv | awk '$9 == "f" {print $12}' | tr '\n' ','`
16538 echo " libc: $libc"
16543 *) echo " libc: system-provided libc on $canonical" ;;
16549 if test "$with_msw" = "yes"; then
16550 echo " Compiling in support for the Microsoft window system."
16552 if test "$with_x11" = "yes"; then
16553 echo " Compiling in support for the X window system:"
16554 echo " - X Windows headers location: $x_includes"
16555 echo " - X Windows libraries location: $x_libraries"
16556 if test "$with_xauth" != yes; then
16557 echo " - Xau (X authority) not available."
16559 if test "$with_xmu" != yes; then
16560 echo " - Xmu library not available; substituting equivalent routines."
16562 if test "$with_wmcommand" != no; then
16563 echo " - Handling WM_COMMAND properly."
16566 if test "$need_motif" = "yes" ; then
16567 echo " Compiling in support for Motif."
16568 if test "$have_lesstif" = "yes"; then
16569 echo " - Using LessTif implementation."
16571 echo " *WARNING* Many versions of Motif are buggy, requiring workarounds."
16572 echo " You are likely to experience slow redisplay."
16573 echo " You may need to install vendor patches to Motif."
16574 echo " See PROBLEMS for more information."
16576 if test "$need_athena" = "yes"; then
16577 echo " Compiling in support for the Athena widget set:"
16578 echo " - Athena headers location: $athena_h_path"
16579 echo " - Athena library to link: $athena_lib"
16581 case "$with_menubars" in
16582 gtk ) echo " Using GTK menubars." ;;
16583 lucid ) echo " Using Lucid menubars." ;;
16584 motif ) echo " Using Motif menubars."
16585 echo " *WARNING* The Motif menubar implementation is currently buggy."
16586 echo " We recommend using the Lucid menubar instead."
16587 echo " Re-run configure with --with-menubars='lucid'." ;;
16588 msw ) echo " Using MS-Windows menubars." ;;
16590 case "$with_scrollbars" in
16591 gtk ) echo " Using GTK scrollbars." ;;
16592 lucid ) echo " Using Lucid scrollbars." ;;
16593 motif ) echo " Using Motif scrollbars." ;;
16594 athena ) echo " Using Athena scrollbars." ;;
16595 msw ) echo " Using MS-Windows scrollbars." ;;
16597 case "$with_dialogs" in
16598 gtk ) echo " Using GTK dialog boxes." ;;
16599 motif ) echo " Using Motif dialog boxes."
16600 if test "$unexec" = "unexaix.o"; then if test "`uname -v`" = 4 -a "`uname -r`" -ge 3; then
16601 echo " *WARNING* The Motif dialog boxes cause problems on AIX 4.3 and higher."
16602 echo " We recommend using the Athena dialog boxes instead."
16603 echo " Install libXaw and re-run configure with --with-dialogs='athena'."
16604 echo " Read the PROBLEMS file for more information."
16606 athena ) echo " Using Athena dialog boxes." ;;
16607 msw ) echo " Using MS-Windows dialog boxes." ;;
16609 case "$with_widgets" in
16610 gtk ) echo " Using GTK native widgets." ;;
16611 motif ) echo " Using Motif native widgets." ;;
16612 athena ) echo " Using Athena native widgets." ;;
16613 msw ) echo " Using MS-Windows native widgets." ;;
16615 if test "$with_dragndrop" = yes; then
16616 echo " Compiling in support for Drag'n'Drop (EXPERIMENTAL)."
16617 echo " - Drag'n'Drop prototype: $dragndrop_proto."
16622 test "$with_ncurses" = yes && echo " Compiling in support for ncurses."
16623 test "$with_gpm" = yes && echo " Compiling in support for GPM (General Purpose Mouse)."
16627 test "$with_gif" = yes && echo " Compiling in support for GIF images (builtin)."
16628 if test "$with_xpm" = yes; then
16629 echo " Compiling in support for XPM images."
16630 elif test "$with_x11" = yes; then
16631 echo " WARNING: -----------------------------------------------------------"
16632 echo " WARNING: Compiling without XPM image support."
16633 if test "$xpm_problem" != ""; then
16634 echo " Reason: $xpm_problem"
16636 echo " WARNING: You should strongly consider installing XPM."
16637 echo " WARNING: Otherwise toolbars and other graphics will look suboptimal."
16638 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
16639 echo " WARNING: -----------------------------------------------------------"
16641 if test "$with_png" = yes; then
16642 echo " Compiling in support for PNG images."
16643 elif test "$window_system" != "none"; then
16644 echo " WARNING: -----------------------------------------------------------"
16645 echo " WARNING: Compiling without PNG image support."
16646 if test "$png_problem" != ""; then
16647 echo " Reason: $png_problem"
16649 echo " WARNING: You should strongly consider installing the PNG libraries."
16650 echo " WARNING: Otherwise certain images and glyphs may not display."
16651 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
16652 echo " WARNING: -----------------------------------------------------------"
16654 test "$with_jpeg" = yes && echo " Compiling in support for JPEG images."
16655 test "$with_tiff" = yes && echo " Compiling in support for TIFF images."
16656 test "$with_xface" = yes && echo " Compiling in support for X-Face message headers."
16660 test "$with_native_sound" = yes && echo " Compiling in support for sound (native)."
16661 test "$with_nas_sound" = yes && echo " Compiling in support for NAS (network audio system)."
16662 test "$old_nas" = yes && echo " - NAS library lacks error trapping; will play synchronously."
16663 test "$with_esd_sound" = yes && echo " Compiling in support for ESD (Enlightened Sound Daemon)."
16667 test "$with_database_berkdb" = yes && echo " Compiling in support for Berkeley database."
16668 test "$with_database_dbm" = yes && echo " Compiling in support for DBM."
16669 test "$with_database_gdbm" = yes && echo " Compiling in support for GNU DBM."
16670 test "$with_ldap" = yes && echo " Compiling in support for LDAP."
16671 if test "$with_postgresql" = yes; then
16672 echo " Compiling in support for PostgreSQL."
16673 echo " - Using PostgreSQL header file: $libpq_fe_h_file"
16674 test "$with_postgresqlv7" = yes && echo " - Using PostgreSQL V7 bindings."
16678 Internationalization:"
16679 test "$with_mule" = yes && echo " Compiling in support for Mule (multi-lingual Emacs)."
16680 test "$with_file_coding" = yes && echo " Compiling in support for file coding."
16681 test "$with_xim" != no && echo " Compiling in support for XIM (X11R5+ I18N input method)."
16682 test "$with_xim" = motif && echo " - Using Motif to provide XIM support."
16683 test "$with_xim" = xlib && echo " - Using raw Xlib to provide XIM support."
16684 test "$with_xfs" = yes && echo " - Using XFontSet to provide bilingual menubar."
16685 test "$with_canna" = yes && echo " Compiling in support for Canna on Mule."
16686 if test "$with_wnn" = yes; then
16687 echo " Compiling in support for the WNN input method on Mule."
16688 test "$with_wnn6" = yes && echo " - Using WNN version 6."
16690 test "$with_i18n3" = yes && echo " Compiling in support for I18N level 3 (doesn't currently work)."
16694 test "$with_pop" = yes && echo " Compiling in support for POP mail retrieval."
16695 test "$with_kerberos" = yes && echo " Compiling in support for Kerberos POP authentication."
16696 test "$with_hesiod" = yes && echo " Compiling in support for Hesiod POP server access."
16697 test -n "$mail_locking" && echo " Compiling in support for \"$mail_locking\" mail spool file locking method."
16701 test "$with_ipv6_cname" = no && echo " Inhibiting IPv6 canonicalization at startup."
16702 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk."
16703 test "$with_workshop" = yes && echo " Compiling in support for Sun WorkShop."
16704 test "$with_socks" = yes && echo " Compiling in support for SOCKS."
16705 test "$with_dnet" = yes && echo " Compiling in support for DNET."
16706 test "$with_modules" = "yes" && echo " Compiling in support for dynamic shared object modules."
16707 if test "$use_union_type" = yes; then
16708 echo " WARNING: ---------------------------------------------------------"
16709 echo " Using the union type for Lisp_Objects."
16710 echo " Union type has been implicated in hard-to-debug runtime crashes."
16711 echo " Do NOT use this build of XEmacs for ordinary work. See PROBLEMS."
16712 echo " WARNING: ---------------------------------------------------------"
16714 if test "$use_regex_malloc" = no; then
16715 echo " WARNING: -----------------------------------------------------------"
16716 echo " Using alloca to allocate the failure stack."
16717 echo " It may be impossible to detect stack exhaustion, and you will crash."
16718 echo " Do NOT use this build of XEmacs for ordinary work."
16719 echo " WARNING: -----------------------------------------------------------"
16721 test "$pdump" = yes && echo " Using the new portable dumper."
16722 test "$debug" = yes && echo " Compiling in support for extra debugging code."
16723 test "$usage_tracking" = yes && echo " Compiling in support for active usage tracking (Sun internal)."
16724 if test "$error_check_extents $error_check_typecheck $error_check_bufpos $error_check_gc $error_check_malloc $error_check_glyphs" \
16725 != "no no no no no no"; then
16726 echo " WARNING: ---------------------------------------------------------"
16727 echo " WARNING: Compiling in support for runtime error checking."
16728 echo " WARNING: XEmacs will run noticeably more slowly as a result."
16729 echo " WARNING: Error checking is on by default for XEmacs beta releases."
16730 echo " WARNING: ---------------------------------------------------------"
16733 ) | tee -a Installation
16737 # Remove any trailing slashes in these variables.
16738 test -n "$prefix" &&
16739 prefix=`echo '' "$prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
16740 test -n "$exec_prefix" &&
16741 exec_prefix=`echo '' "$exec_prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
16744 for file in $internal_makefile_list; do
16745 test "$file" = src/Makefile.in && \
16746 file="src/Makefile.in:src/Makefile.in.in:src/depend"
16747 ac_output_files="$ac_output_files $file" && if test "$extra_verbose" = "yes"; then echo " Appending \"$file\" to \$ac_output_files"; fi
16749 ac_output_files="$ac_output_files src/paths.h lib-src/config.values"
16750 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
16754 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
16756 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16757 # Let make expand exec_prefix.
16758 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16760 # Any assignment to VPATH causes Sun make to only execute
16761 # the first set of double-colon rules, so remove it if not needed.
16762 # If there is a colon in the path, we need to keep it.
16763 if test "x$srcdir" = x.; then
16764 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
16767 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
16769 DEFS=-DHAVE_CONFIG_H
16771 # Without the "./", some shells look in PATH for config.status.
16772 : ${CONFIG_STATUS=./config.status}
16774 echo creating $CONFIG_STATUS
16775 rm -f $CONFIG_STATUS
16776 cat > $CONFIG_STATUS <<EOF
16778 # Generated automatically by configure.
16779 # Run this file to recreate the current configuration.
16780 # This directory was configured as follows,
16781 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16783 # $0 $ac_configure_args
16785 # Compiler output produced by configure, useful for debugging
16786 # configure, is in ./config.log if it exists.
16788 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
16791 case "\$ac_option" in
16792 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16793 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
16794 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
16795 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
16796 echo "$CONFIG_STATUS generated by autoconf version 2.13"
16798 -help | --help | --hel | --he | --h)
16799 echo "\$ac_cs_usage"; exit 0 ;;
16800 *) echo "\$ac_cs_usage"; exit 1 ;;
16804 ac_given_srcdir=$srcdir
16805 ac_given_INSTALL="$INSTALL"
16807 trap 'rm -fr `echo "$ac_output_files src/config.h lwlib/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
16809 cat >> $CONFIG_STATUS <<EOF
16811 # Protect against being on the right side of a sed subst in config.status.
16812 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
16813 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
16817 s%@CFLAGS@%$CFLAGS%g
16818 s%@CPPFLAGS@%$CPPFLAGS%g
16819 s%@CXXFLAGS@%$CXXFLAGS%g
16820 s%@FFLAGS@%$FFLAGS%g
16822 s%@LDFLAGS@%$LDFLAGS%g
16824 s%@exec_prefix@%$exec_prefix%g
16825 s%@prefix@%$prefix%g
16826 s%@program_transform_name@%$program_transform_name%g
16827 s%@bindir@%$bindir%g
16828 s%@sbindir@%$sbindir%g
16829 s%@libexecdir@%$libexecdir%g
16830 s%@datadir@%$datadir%g
16831 s%@sysconfdir@%$sysconfdir%g
16832 s%@sharedstatedir@%$sharedstatedir%g
16833 s%@localstatedir@%$localstatedir%g
16834 s%@libdir@%$libdir%g
16835 s%@includedir@%$includedir%g
16836 s%@oldincludedir@%$oldincludedir%g
16837 s%@infodir@%$infodir%g
16838 s%@mandir@%$mandir%g
16840 s%@blddir@%$blddir%g
16843 s%@start_flags@%$start_flags%g
16844 s%@ld_switch_shared@%$ld_switch_shared%g
16845 s%@start_files@%$start_files%g
16847 s%@lib_gcc@%$lib_gcc%g
16848 s%@RANLIB@%$RANLIB%g
16849 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
16850 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
16851 s%@INSTALL_DATA@%$INSTALL_DATA%g
16853 s%@SET_MAKE@%$SET_MAKE%g
16854 s%@GTK_CONFIG@%$GTK_CONFIG%g
16855 s%@X_CFLAGS@%$X_CFLAGS%g
16856 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
16857 s%@X_LIBS@%$X_LIBS%g
16858 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
16859 s%@install_pp@%$install_pp%g
16860 s%@libs_xauth@%$libs_xauth%g
16861 s%@dnd_objs@%$dnd_objs%g
16862 s%@lwlib_objs@%$lwlib_objs%g
16863 s%@ALLOCA@%$ALLOCA%g
16864 s%@have_esd_config@%$have_esd_config%g
16865 s%@dll_ld@%$dll_ld%g
16866 s%@dll_cflags@%$dll_cflags%g
16867 s%@dll_ldflags@%$dll_ldflags%g
16868 s%@dll_post@%$dll_post%g
16869 s%@dll_ldo@%$dll_ldo%g
16870 s%@ld_dynamic_link_flags@%$ld_dynamic_link_flags%g
16871 s%@SRC_SUBDIR_DEPS@%$SRC_SUBDIR_DEPS%g
16872 s%@INSTALL_ARCH_DEP_SUBDIR@%$INSTALL_ARCH_DEP_SUBDIR%g
16873 s%@MAKE_SUBDIR@%$MAKE_SUBDIR%g
16874 s%@SUBDIR_MAKEFILES@%$SUBDIR_MAKEFILES%g
16875 s%@PROGNAME@%$PROGNAME%g
16876 s%@version@%$version%g
16877 s%@configuration@%$configuration%g
16878 s%@canonical@%$canonical%g
16879 s%@inststaticdir@%$inststaticdir%g
16880 s%@instvardir@%$instvardir%g
16881 s%@srcdir@%$srcdir%g
16882 s%@pkgdir@%$pkgdir%g
16883 s%@statedir@%$statedir%g
16884 s%@extra_includes@%$extra_includes%g
16885 s%@PREFIX_USER_DEFINED@%$PREFIX_USER_DEFINED%g
16886 s%@PREFIX@%$PREFIX%g
16887 s%@EXEC_PREFIX_USER_DEFINED@%$EXEC_PREFIX_USER_DEFINED%g
16888 s%@EXEC_PREFIX@%$EXEC_PREFIX%g
16889 s%@INFODIR_USER_DEFINED@%$INFODIR_USER_DEFINED%g
16890 s%@INFODIR@%$INFODIR%g
16891 s%@infopath@%$infopath%g
16892 s%@INFOPATH_USER_DEFINED@%$INFOPATH_USER_DEFINED%g
16893 s%@INFOPATH@%$INFOPATH%g
16894 s%@package_path@%$package_path%g
16895 s%@PACKAGE_PATH_USER_DEFINED@%$PACKAGE_PATH_USER_DEFINED%g
16896 s%@PACKAGE_PATH@%$PACKAGE_PATH%g
16897 s%@lispdir@%$lispdir%g
16898 s%@LISPDIR_USER_DEFINED@%$LISPDIR_USER_DEFINED%g
16899 s%@LISPDIR@%$LISPDIR%g
16900 s%@moduledir@%$moduledir%g
16901 s%@MODULEDIR_USER_DEFINED@%$MODULEDIR_USER_DEFINED%g
16902 s%@MODULEDIR@%$MODULEDIR%g
16903 s%@sitelispdir@%$sitelispdir%g
16904 s%@SITELISPDIR_USER_DEFINED@%$SITELISPDIR_USER_DEFINED%g
16905 s%@SITELISPDIR@%$SITELISPDIR%g
16906 s%@sitemoduledir@%$sitemoduledir%g
16907 s%@SITEMODULEDIR_USER_DEFINED@%$SITEMODULEDIR_USER_DEFINED%g
16908 s%@SITEMODULEDIR@%$SITEMODULEDIR%g
16909 s%@etcdir@%$etcdir%g
16910 s%@ETCDIR_USER_DEFINED@%$ETCDIR_USER_DEFINED%g
16911 s%@ETCDIR@%$ETCDIR%g
16912 s%@docdir@%$docdir%g
16913 s%@DOCDIR_USER_DEFINED@%$DOCDIR_USER_DEFINED%g
16914 s%@DOCDIR@%$DOCDIR%g
16915 s%@archlibdir@%$archlibdir%g
16916 s%@ARCHLIBDIR_USER_DEFINED@%$ARCHLIBDIR_USER_DEFINED%g
16917 s%@ARCHLIBDIR@%$ARCHLIBDIR%g
16918 s%@bitmapdir@%$bitmapdir%g
16919 s%@extra_objs@%$extra_objs%g
16920 s%@machfile@%$machfile%g
16921 s%@opsysfile@%$opsysfile%g
16922 s%@c_switch_general@%$c_switch_general%g
16923 s%@c_switch_window_system@%$c_switch_window_system%g
16924 s%@c_switch_all@%$c_switch_all%g
16925 s%@ld_switch_general@%$ld_switch_general%g
16926 s%@ld_switch_window_system@%$ld_switch_window_system%g
16927 s%@ld_switch_all@%$ld_switch_all%g
16928 s%@ld_libs_general@%$ld_libs_general%g
16929 s%@ld_libs_window_system@%$ld_libs_window_system%g
16930 s%@ld_libs_all@%$ld_libs_all%g
16931 s%@RECURSIVE_MAKE_ARGS@%$RECURSIVE_MAKE_ARGS%g
16932 s%@native_sound_lib@%$native_sound_lib%g
16933 s%@sound_cflags@%$sound_cflags%g
16934 s%@dynodump_arch@%$dynodump_arch%g
16935 s%@XEMACS_CC@%$XEMACS_CC%g
16936 s%@internal_makefile_list@%$internal_makefile_list%g
16941 cat >> $CONFIG_STATUS <<\EOF
16943 # Split the substitutions into bite-sized pieces for seds with
16944 # small command number limits, like on Digital OSF/1 and HP-UX.
16945 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
16946 ac_file=1 # Number of current file.
16947 ac_beg=1 # First line for current file.
16948 ac_end=$ac_max_sed_cmds # Line after last line for current file.
16951 while $ac_more_lines; do
16952 if test $ac_beg -gt 1; then
16953 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
16955 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
16957 if test ! -s conftest.s$ac_file; then
16958 ac_more_lines=false
16959 rm -f conftest.s$ac_file
16961 if test -z "$ac_sed_cmds"; then
16962 ac_sed_cmds="sed -f conftest.s$ac_file"
16964 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
16966 ac_file=`expr $ac_file + 1`
16968 ac_end=`expr $ac_end + $ac_max_sed_cmds`
16971 if test -z "$ac_sed_cmds"; then
16976 cat >> $CONFIG_STATUS <<EOF
16978 CONFIG_FILES=\${CONFIG_FILES-"$ac_output_files"}
16980 cat >> $CONFIG_STATUS <<\EOF
16981 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
16982 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16984 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16985 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16986 *) ac_file_in="${ac_file}.in" ;;
16989 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
16991 # Remove last slash and all that follows it. Not all systems have dirname.
16992 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16993 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16994 # The file is in a subdirectory.
16995 test ! -d "$ac_dir" && mkdir "$ac_dir"
16996 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
16997 # A "../" for each directory in $ac_dir_suffix.
16998 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
17000 ac_dir_suffix= ac_dots=
17003 case "$ac_given_srcdir" in
17005 if test -z "$ac_dots"; then top_srcdir=.
17006 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
17007 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
17008 *) # Relative path.
17009 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
17010 top_srcdir="$ac_dots$ac_given_srcdir" ;;
17013 case "$ac_given_INSTALL" in
17014 [/$]*) INSTALL="$ac_given_INSTALL" ;;
17015 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
17018 echo creating "$ac_file"
17020 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
17022 *Makefile*) ac_comsub="1i\\
17023 # $configure_input" ;;
17027 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
17029 s%@configure_input@%$configure_input%g
17030 s%@srcdir@%$srcdir%g
17031 s%@top_srcdir@%$top_srcdir%g
17032 s%@INSTALL@%$INSTALL%g
17033 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
17037 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17038 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17040 # ac_d sets the value in "#define NAME VALUE" lines.
17041 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17042 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
17045 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
17046 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17047 ac_uB='\([ ]\)%\1#\2define\3'
17050 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17051 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17052 ac_eB='$%\1#\2define\3'
17056 if test "${CONFIG_HEADERS+set}" != set; then
17058 cat >> $CONFIG_STATUS <<EOF
17059 CONFIG_HEADERS="src/config.h lwlib/config.h"
17061 cat >> $CONFIG_STATUS <<\EOF
17063 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
17064 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17066 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
17067 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17068 *) ac_file_in="${ac_file}.in" ;;
17071 echo creating $ac_file
17073 rm -f conftest.frag conftest.in conftest.out
17074 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
17075 cat $ac_file_inputs > conftest.in
17079 # Transform confdefs.h into a sed script conftest.vals that substitutes
17080 # the proper values into config.h.in to produce config.h. And first:
17081 # Protect against being on the right side of a sed subst in config.status.
17082 # Protect against being in an unquoted here document in config.status.
17083 rm -f conftest.vals
17084 cat > conftest.hdr <<\EOF
17087 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
17091 sed -n -f conftest.hdr confdefs.h > conftest.vals
17094 # This sed command replaces #undef with comments. This is necessary, for
17095 # example, in the case of _POSIX_SOURCE, which is predefined and required
17096 # on some systems where configure will not decide to define it.
17097 cat >> conftest.vals <<\EOF
17098 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
17101 # Break up conftest.vals because some shells have a limit on
17102 # the size of here documents, and old seds have small limits too.
17104 rm -f conftest.tail
17107 ac_lines=`grep -c . conftest.vals`
17108 # grep -c gives empty output for an empty file on some AIX systems.
17109 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
17110 # Write a limited-size here document to conftest.frag.
17111 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
17112 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
17114 sed -f conftest.frag conftest.in > conftest.out
17116 mv conftest.out conftest.in
17117 ' >> $CONFIG_STATUS
17118 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
17119 rm -f conftest.vals
17120 mv conftest.tail conftest.vals
17122 rm -f conftest.vals
17124 cat >> $CONFIG_STATUS <<\EOF
17125 rm -f conftest.frag conftest.h
17126 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
17127 cat conftest.in >> conftest.h
17129 if cmp -s $ac_file conftest.h 2>/dev/null; then
17130 echo "$ac_file is unchanged"
17133 # Remove last slash and all that follows it. Not all systems have dirname.
17134 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
17135 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
17136 # The file is in a subdirectory.
17137 test ! -d "$ac_dir" && mkdir "$ac_dir"
17140 mv conftest.h $ac_file
17145 cat >> $CONFIG_STATUS <<EOF
17147 top_srcdir="$srcdir"
17148 MAKE_SUBDIR="$MAKE_SUBDIR"
17151 cat >> $CONFIG_STATUS <<\EOF
17152 for dir in . $MAKE_SUBDIR; do
17157 sed -e '/^# Generated/d' \
17158 -e 's%/\*\*/#.*%%' \
17173 echo creating $dir/Makefile
17174 $CPP -I. -I${top_srcdir}/src junk.c \
17175 | sed -e 's/^\#.*//' \
17176 -e 's/^[ ][ ]*$//'\
17184 chmod 444 Makefile.new
17185 mv -f Makefile.new Makefile
17187 echo creating $dir/GNUmakefile
17188 $CPP -I. -I${top_srcdir}/src -DUSE_GNU_MAKE junk.c \
17189 | sed -e 's/^\#.*//' \
17190 -e 's/^[ ][ ]*$//'\
17198 chmod 444 Makefile.new
17199 mv -f Makefile.new GNUmakefile
17205 sed < config.status >> lib-src/config.values \
17206 -e '/{ac_dA}.*{ac_dB}.*{ac_dC}.*{ac_dD}$/!d' \
17207 -e 's/\${ac_dA}\(.*\)\${ac_dB}.*\${ac_dC}\(.*\)\${ac_dD}/\1 \2/' \
17208 -e 's/^\([^ ]*\) $/\1 ""/' \
17214 chmod +x $CONFIG_STATUS
17215 rm -fr confdefs* $ac_clean_files
17216 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1