3 #### Configuration script for XEmacs. Largely divergent from FSF.
4 #### Guess values for system-dependent variables and create Makefiles.
5 #### Generated automatically using autoconf version 2.13
6 #### Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
7 #### Copyright (C) 1993-1995 Board of Trustees, University of Illinois.
8 #### Copyright (C) 1996, 1997 Sun Microsystems, Inc.
9 #### Copyright (C) 1995, 1996 Ben Wing.
10 #### Copyright (C) 2000, 2001 Martin Buchholz.
11 #### Copyright (C) 1998, 1999 J. Kean Johnston.
13 ### Don't edit this script!
14 ### This script was automatically generated by the `autoconf' program
15 ### from the file `./configure.in'.
16 ### To rebuild it, execute the command
18 ### in the this directory. You must have autoconf version 2.13 or later.
19 ### Note: this script has not yet been ported to autoconf version 2.5x.
21 ### This file is part of XEmacs.
23 ### XEmacs is free software; you can redistribute it and/or modify it
24 ### under the terms of the GNU General Public License as published by
25 ### the Free Software Foundation; either version 2, or (at your
26 ### option) any later version.
28 ### XEmacs is distributed in the hope that it will be useful, but
29 ### WITHOUT ANY WARRANTY; without even the implied warranty of
30 ### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
31 ### General Public License for more details.
33 ### You should have received a copy of the GNU General Public License
34 ### along with XEmacs; see the file COPYING. If not, write to the Free
35 ### Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
38 ### For usage, run `./configure --help'
39 ### For more detailed information on building and installing XEmacs,
40 ### read the file `INSTALL'.
42 ### If configure succeeds, it leaves its status in config.status.
43 ### A log of configuration tests can be found in config.log.
44 ### If configure fails after disturbing the status quo,
45 ### config.status is removed.
48 --with-x use the X Window System"
52 if test -n "$ZSH_VERSION"; then
53 setopt NO_BAD_PATTERN NO_BANG_HIST NO_BG_NICE NO_EQUALS NO_FUNCTION_ARGZERO
54 setopt GLOB_SUBST NO_HUP INTERACTIVE_COMMENTS KSH_ARRAYS NO_MULTIOS NO_NOMATCH
55 setopt RM_STAR_SILENT POSIX_BUILTINS SH_FILE_EXPANSION SH_GLOB SH_OPTION_LETTERS
56 setopt SH_WORD_SPLIT BSD_ECHO IGNORE_BRACES
57 if test -n "$CDPATH"; then CDPATH="."; export CDPATH; fi
58 elif test -n "$BASH_VERSION"; then
62 if test -n "$CDPATH"; then CDPATH="."; export CDPATH; fi
73 program_transform_name=s,x,x,
84 SHELL=${CONFIG_SHELL-/bin/sh}
87 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
89 # File descriptor usage:
92 # 2 errors and warnings
93 # 3 some systems may open it to /dev/tty
94 # 4 used on the Kubota Titan
95 # 6 checking for... messages and results
96 # 5 compiler messages saved in config.log
97 if test "$silent" = yes; then
105 This file contains any messages produced by compilers while
106 running configure, to aid debugging if configure makes a mistake.
109 # Strip out --no-create and --no-recursion so they do not pile up.
110 # Also quote any args containing shell metacharacters.
115 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
116 | --no-cr | --no-c) ;;
117 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
118 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
119 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
120 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
121 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
126 # Only set these to C if already set. These must not be set unconditionally
127 # because not all systems understand e.g. LANG=C (notably SCO).
128 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
129 # Non-C LC_CTYPE values break the ctype check.
130 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
131 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
132 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
133 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
135 # confdefs.h avoids OS command line length limits that DEFS can exceed.
136 rm -rf conftest* confdefs.h
137 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
140 # A filename unique to this package, relative to the directory that
141 # configure is in, which we can look for to find out if srcdir is correct.
142 ac_unique_file=src/lisp.h
144 # Find the source files, if location was not specified.
145 if test -z "$srcdir"; then
146 ac_srcdir_defaulted=yes
147 # Try the directory containing this script, then its parent.
149 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
150 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
152 if test ! -r $srcdir/$ac_unique_file; then
156 ac_srcdir_defaulted=no
158 if test ! -r $srcdir/$ac_unique_file; then
159 if test "$ac_srcdir_defaulted" = yes; then
160 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
162 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
165 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
167 # Prefer explicitly selected file to automatically selected ones.
168 if test -z "$CONFIG_SITE"; then
169 if test "x$prefix" != xNONE; then
170 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
172 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
175 for ac_site_file in $CONFIG_SITE; do
176 if test -r "$ac_site_file"; then
177 echo "loading site script $ac_site_file"
184 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
185 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
186 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
187 ac_cpp='$CPP '"$xe_cppflags"
188 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
189 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
194 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
195 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
196 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
203 ac_n= ac_c='\c' ac_t=
207 progname="`echo $0 | sed 's:^\./\./:\./:'`"
210 MAKE_SUBDIR="$MAKE_SUBDIR lib-src" && if test "$extra_verbose" = "yes"; then echo " Appending \"lib-src\" to \$MAKE_SUBDIR"; fi
211 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR lib-src" && if test "$extra_verbose" = "yes"; then echo " Appending \"lib-src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
214 exec_prefix='${prefix}'
215 bindir='${exec_prefix}/bin'
216 datadir='${prefix}/lib'
217 statedir='${prefix}/lib'
218 libdir='${exec_prefix}/lib'
219 mandir='${prefix}/man/man1'
220 inststaticdir='${PROGNAME}'
221 instvardir='${PROGNAME}-${version}'
222 infodir='${datadir}/${instvardir}/info'
225 lispdir='${datadir}/${instvardir}/lisp'
226 moduledir='${libdir}/${instvardir}/${configuration}/modules'
227 sitelispdir='${datadir}/${inststaticdir}/site-lisp'
228 sitemoduledir='${libdir}/${inststaticdir}/site-modules'
229 pkgdir='${datadir}/${instvardir}/lisp'
231 etcdir='${datadir}/${instvardir}/etc'
232 archlibdir='${libdir}/${instvardir}/${configuration}'
233 docdir='${archlibdir}'
237 with_site_modules='yes'
243 cpp='' cppflags='' libs='' ldflags=''
249 with_system_malloc='default'
250 with_dlmalloc='default'
269 quoted_sed_magic=s/"'"/"'"'"'"'"'"'"'"/g
273 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
274 | --no-cr | --no-c) ;;
275 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
276 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
278 quoted_i="`echo '' $i | sed -e 's:^ ::' -e $quoted_sed_magic`"
279 quoted_arguments="$quoted_arguments '$quoted_i'" ;;
283 while test $# != 0; do
286 --no-create|--no-recursion) ;;
290 opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\([^=]*\)=.*$:\1:'`
291 val=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*[^=]*=\(.*\)$:\1:'`
295 opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\(.*\)$:\1:'`
296 val="yes" valomitted=yes
301 opt="`echo '' $opt | sed -e 's:^ ::' | tr - _`"
303 case "${valomitted}-${opt}" in yes-without_* )
304 opt=`echo $opt | sed 's/without/with/'`
305 valomitted="no" val="no" ;;
312 with_site_modules | \
366 memory_usage_stats | \
367 with_clash_detection | \
371 y | ye | yes ) val=yes ;;
373 * ) (echo "$progname: Usage error:"
374 echo " " "The \`--$optname' option requires a boolean value: \`yes' or \`no'."
375 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
377 eval "$opt=\"$val\"" ;;
395 site_runtime_libraries )
396 if test "$valomitted" = "yes" ; then
397 if test "$#" = 0 ; then
398 (echo "$progname: Usage error:"
399 echo " " "The \`--$optname' option requires a value."
400 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
409 with_debug_malloc | use_debug_malloc | \
410 with_system_malloc | use_system_malloc )
412 y | ye | yes ) val=yes ;;
414 d | de | def | defa | defau | defaul | default ) val=default ;;
415 * ) (echo "$progname: Usage error:"
416 echo " " "The \`--$optname' option requires one of these values:
417 \`yes', \`no', or \`default'."
418 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
420 case "$opt" in use_* ) opt="`echo $opt | sed s/use/with/`" ;; esac
425 with_database_berkdb=no
427 with_database_gdbm=no
428 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
431 b | be | ber | berk | berkd | berkdb ) with_database_berkdb=yes ;;
432 d | db | dbm ) with_database_dbm=yes ;;
433 g | gn | gnu | gnud | gnudb | gnudbm | gdbm) with_database_gdbm=yes ;;
434 * ) (echo "$progname: Usage error:"
435 echo " " "The \`--$optname' option value
436 must be either \`no' or a comma-separated list
437 of one or more of \`berkdb' and either \`dbm' or \`gnudbm'."
438 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
441 if test "$with_database_dbm" = "yes" -a \
442 "$with_database_gdbm" = "yes"; then
443 (echo "$progname: Usage error:"
444 echo " " "Only one of \`dbm' and \`gnudbm' may be specified
445 with the \`--$optname' option."
446 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
451 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
453 n | no | non | none ) new_sdefault=no ;;
454 a | al | all | both ) new_sdefault=yes ;;
456 native ) with_native_sound=yes ;;
457 nonative ) with_native_sound=no ;;
459 nas ) with_nas_sound=yes ;;
460 nonas ) with_nas_sound=no ;;
462 esd ) with_esd_sound=yes ;;
463 noesd ) with_esd_sound=no ;;
465 * ) bogus_sound=yes ;;
467 if test "$bogus_sound" -o \
468 \( -n "$new_sdefault" -a -n "$sound_notfirst" \) ; then
469 types="\`all', \`none', \`(no)native', \`no(nas)', \`(no)esd'."
470 (echo "$progname: Usage error:"
471 echo " " "Valid types for the \`--$optname' option are:
473 Option \`all' or \`none' must be first in the list.
474 The default is to autodetect native and NAS sound support."
475 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
476 elif test -n "$new_sdefault" ; then
477 with_native_sound=$new_sdefault
478 with_nas_sound=$new_sdefault
479 with_esd_sound=$new_sdefault
480 new_sdefault= # reset this
488 xa | xaw ) val=xaw ;;
489 3 | 3d | xaw3d ) val=3d ;;
490 ne | nex | next | naxtaw) val=next ;;
491 9 | 95 | xaw95 ) val=95 ;;
492 xp | xpm | xawxpm ) val=xpm ;;
493 * ) (echo "$progname: Usage error:"
494 echo " " "The \`--$optname' option must have one of these values:
495 \`xaw', \`3d', \`next', \`95', or \`xpm'."
496 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
503 y | ye | yes ) val=yes ;;
504 n | no | non | none ) val=no ;;
505 x | xl | xli | xlib ) val=xlib ;;
506 m | mo | mot | moti | motif ) val=motif ;;
507 * ) (echo "$progname: Usage error:"
508 echo " " "The \`--$optname' option must have one of these values:
509 \`motif', \`xlib', \`yes', or \`no'."
510 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
519 file | dot ) val=file ;;
520 locking ) val=locking ;;
521 * ) (echo "$progname: Usage error:"
522 echo " " "The \`--$optname' option must have one of these values:
523 \`lockf', \`flock', \`file', \`locking', or \`mmdf'."
524 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
531 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
533 n | no | non | none ) new_default=no ;;
534 a | al | all ) new_default=yes ;;
536 extents ) error_check_extents=yes ;;
537 noextents ) error_check_extents=no ;;
539 typecheck ) error_check_typecheck=yes ;;
540 notypecheck ) error_check_typecheck=no ;;
542 bufpos ) error_check_bufpos=yes ;;
543 nobufpos ) error_check_bufpos=no ;;
545 gc ) error_check_gc=yes ;;
546 nogc ) error_check_gc=no ;;
548 malloc ) error_check_malloc=yes ;;
549 nomalloc ) error_check_malloc=no ;;
551 byte_code ) error_check_byte_code=yes ;;
552 nobyte_code ) error_check_byte_code=no ;;
554 glyphs ) error_check_glyphs=yes ;;
555 noglyphs ) error_check_glyphs=no ;;
557 * ) bogus_error_check=yes ;;
559 if test "$bogus_error_check" -o \
560 \( -n "$new_default" -a -n "$echeck_notfirst" \) ; then
561 if test "$error_check_default" = yes ; then
562 types="\`all' (default), \`none', \`noextents', \`notypecheck', \`nobufpos', \`nogc', \`nomalloc', \`noglyphs' and \`nobyte-code'."
564 types="\`all', \`none' (default), \`extents', \`typecheck', \`bufpos', \`gc', \`malloc', \`glyphs' and \`byte-code'."
566 (echo "$progname: Usage error:"
567 echo " " "Valid types for the \`--$optname' option are:
569 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
570 elif test -n "$new_default" ; then
571 error_check_extents=$new_default
572 error_check_typecheck=$new_default
573 error_check_bufpos=$new_default
574 error_check_gc=$new_default
575 error_check_malloc=$new_default
576 error_check_byte_code=$new_default
577 error_check_glyphs=$new_default
578 new_default= # reset this
585 prefix | exec_prefix | bindir | datadir | statedir | libdir | \
586 mandir | infodir | infopath | lispdir | etcdir | pkgdir | \
587 archlibdir | docdir | package_path | moduledir )
588 if test "$valomitted" = "yes"; then
589 if test "$#" = 0; then
590 (echo "$progname: Usage error:"
591 echo " " "The \`--$optname' option requires a value."
592 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
599 exec_prefix ) { test "$extra_verbose" = "yes" && cat << \EOF
600 Defining EXEC_PREFIX_USER_DEFINED
602 cat >> confdefs.h <<\EOF
603 #define EXEC_PREFIX_USER_DEFINED 1
607 lispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
608 Defining LISPDIR_USER_DEFINED
610 cat >> confdefs.h <<\EOF
611 #define LISPDIR_USER_DEFINED 1
615 sitelispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
616 Defining SITELISPDIR_USER_DEFINED
618 cat >> confdefs.h <<\EOF
619 #define SITELISPDIR_USER_DEFINED 1
623 moduledir ) { test "$extra_verbose" = "yes" && cat << \EOF
624 Defining MODULEDIR_USER_DEFINED
626 cat >> confdefs.h <<\EOF
627 #define MODULEDIR_USER_DEFINED 1
631 etcdir ) { test "$extra_verbose" = "yes" && cat << \EOF
632 Defining ETCDIR_USER_DEFINED
634 cat >> confdefs.h <<\EOF
635 #define ETCDIR_USER_DEFINED 1
639 infodir ) { test "$extra_verbose" = "yes" && cat << \EOF
640 Defining INFODIR_USER_DEFINED
642 cat >> confdefs.h <<\EOF
643 #define INFODIR_USER_DEFINED 1
647 infopath ) { test "$extra_verbose" = "yes" && cat << \EOF
648 Defining INFOPATH_USER_DEFINED
650 cat >> confdefs.h <<\EOF
651 #define INFOPATH_USER_DEFINED 1
655 package_path ) { test "$extra_verbose" = "yes" && cat << \EOF
656 Defining PACKAGE_PATH_USER_DEFINED
658 cat >> confdefs.h <<\EOF
659 #define PACKAGE_PATH_USER_DEFINED 1
664 { test "$extra_verbose" = "yes" && cat << \EOF
665 Defining INFODIR_USER_DEFINED
667 cat >> confdefs.h <<\EOF
668 #define INFODIR_USER_DEFINED 1
672 { test "$extra_verbose" = "yes" && cat << \EOF
673 Defining LISPDIR_USER_DEFINED
675 cat >> confdefs.h <<\EOF
676 #define LISPDIR_USER_DEFINED 1
680 { test "$extra_verbose" = "yes" && cat << \EOF
681 Defining MODULEDIR_USER_DEFINED
683 cat >> confdefs.h <<\EOF
684 #define MODULEDIR_USER_DEFINED 1
688 { test "$extra_verbose" = "yes" && cat << \EOF
689 Defining ETCDIR_USER_DEFINED
691 cat >> confdefs.h <<\EOF
692 #define ETCDIR_USER_DEFINED 1
696 { test "$extra_verbose" = "yes" && cat << \EOF
697 Defining DOCDIR_USER_DEFINED
699 cat >> confdefs.h <<\EOF
700 #define DOCDIR_USER_DEFINED 1
704 { test "$extra_verbose" = "yes" && cat << \EOF
705 Defining ARCHLIBDIR_USER_DEFINED
707 cat >> confdefs.h <<\EOF
708 #define ARCHLIBDIR_USER_DEFINED 1
712 docdir ) { test "$extra_verbose" = "yes" && cat << \EOF
713 Defining DOCDIR_USER_DEFINED
715 cat >> confdefs.h <<\EOF
716 #define DOCDIR_USER_DEFINED 1
720 exec_prefix | libdir | archlibdir ) { test "$extra_verbose" = "yes" && cat << \EOF
721 Defining ARCHLIBDIR_USER_DEFINED
723 cat >> confdefs.h <<\EOF
724 #define ARCHLIBDIR_USER_DEFINED 1
733 "usage" | "help" ) ${PAGER-more} ${srcdir}/configure.usage; exit 0 ;;
736 "with_scrollbars" | \
740 l | lu | luc | luci | lucid ) val=lucid ;;
741 mo | mot | moti | motif ) val=motif ;;
742 a | at | ath | athe | athen | athena ) val=athena ;;
743 n | no | non | none ) val=no ;;
744 y | ye | yes ) val=yes ;;
746 g | gt | gtk ) val=gtk ;;
747 ms | msw ) val=msw ;;
748 * ) (echo "$progname: Usage error:"
749 echo " " "The \`--$optname' option must have one of these values:
750 \`gtk', \`lucid', \`motif', \`athena', \`yes', or \`no'."
751 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
756 "use_minimal_tagbits" | \
757 "use_indexed_lrecord_implementation" | \
759 "const_is_losing" | \
761 echo "configure: warning: Obsolete option \`--$optname' ignored." 1>&2
764 * ) (echo "$progname: Usage error:"
765 echo " " "Unrecognized option: $arg"
766 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
771 *-*-*) configuration="$arg" ;;
773 *) (echo "$progname: Usage error:"
774 echo " " "Unrecognized argument: $arg"
775 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
781 test -n "$cpp" && CPP="$cpp"
782 test -n "$cppflags" && CPPFLAGS="$cppflags"
783 test -n "$libs" && LIBS="$libs"
784 test -n "$ldflags" && LDFLAGS="$ldflags"
786 eval set x "$quoted_arguments"; shift
788 test "$extra_verbose" = "yes" && verbose=yes
790 test -n "$with_x" && with_x11="$with_x"
792 if test "$with_purify" = "yes" -o "$with_quantify" = "yes"; then
793 test "$with_system_malloc" = "default" && with_system_malloc=yes
798 if test "$with_cde $with_tooltalk" = "yes no"; then
799 (echo "$progname: Usage error:"
800 echo " " "--with-cde requires --with-tooltalk"
801 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
802 elif test "$with_tooltalk" = "no" ; then with_cde=no
803 elif test "$with_cde" = "yes"; then with_tooltalk=yes
810 for dir in "`echo $0 | sed 's|//|/|' | sed 's|/[^/]*$||'`" "." ".." ; do
811 if test -f "$dir/src/lisp.h" -a \
812 -f "$dir/lisp/version.el" ; then
817 if test -z "$srcdir" ; then
818 (echo "$progname: Usage error:"
819 echo " " "Neither the current directory nor its parent seem to
820 contain the XEmacs sources. If you do not want to build XEmacs in its
821 source tree, you should run \`$progname' in the directory in which
822 you wish to build XEmacs, using the \`--srcdir' option to say where the
823 sources may be found."
824 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
829 if test ! -f "$srcdir/src/lisp.h" -o \
830 ! -f "$srcdir/lisp/version.el" ; then
831 (echo "$progname: Usage error:"
832 echo " " "The directory specified with the \`--srcdir' option,
833 \`$srcdir', doesn't seem to contain the XEmacs sources. You should
834 either run the \`$progname' script at the top of the XEmacs source
835 tree, or use the \`--srcdir' option to specify the XEmacs source directory."
836 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
841 if test -z "$configuration"; then
842 configuration=`${CONFIG_SHELL-/bin/sh} $srcdir/config.guess`
843 if test -z "$configuration"; then
844 (echo "$progname: Usage error:"
845 echo " " "XEmacs has not been ported to this host type.
846 Try explicitly specifying the CONFIGURATION when rerunning configure."
847 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
851 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
852 echo "configure:853: checking whether ln -s works" >&5
855 if ln -s X conftestdata 2>/dev/null
858 ac_cv_prog_LN_S="ln -s"
862 LN_S="$ac_cv_prog_LN_S"
863 if test "$ac_cv_prog_LN_S" = "ln -s"; then
864 echo "$ac_t""yes" 1>&6
866 echo "$ac_t""no" 1>&6
870 for dir in lisp etc man info tests; do
871 if test ! -d "$dir" ; then
872 echo Making symbolic link to "$srcdir/$dir"
873 ${LN_S} "$srcdir/$dir" "$dir"
878 absolute_pwd="`pwd`";
879 if test -n "$PWD" -a "`cd $PWD && pwd`" = "$absolute_pwd"
881 else blddir="$absolute_pwd"; if test -d "/net"; then
882 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi
883 blddir=`echo "$blddir" | \
884 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
891 . ) srcdir="$blddir" ;;
892 * ) srcdir="`cd $srcdir && pwd`"; if test -d "/net"; then
893 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi
894 srcdir=`echo "$srcdir" | \
895 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
899 if test `pwd` != `sh -c cd $srcdir && pwd` \
900 && test -f "$srcdir/src/config.h"; then
901 (echo "$progname: WARNING: The directory tree \`$srcdir' is being used"
902 echo " as a build directory right now; it has been configured in its own"
903 echo " right. To configure in another directory as well, you MUST"
904 echo " use GNU make. If you do not have GNU make, then you must"
905 echo " now do \`make distclean' in $srcdir,"
906 echo " and then run $progname again.") >&2
907 extrasub='/^VPATH[ ]*=/c\
913 vpath %.in $(srcdir)'
916 . "$srcdir/version.sh" || exit 1;
917 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
918 : "${extra_verbose=$beta}"
919 version="${emacs_major_version}.${emacs_minor_version}"
920 { test "$extra_verbose" = "yes" && cat << EOF
921 Defining EMACS_MAJOR_VERSION = $emacs_major_version
923 cat >> confdefs.h <<EOF
924 #define EMACS_MAJOR_VERSION $emacs_major_version
928 { test "$extra_verbose" = "yes" && cat << EOF
929 Defining EMACS_MINOR_VERSION = $emacs_minor_version
931 cat >> confdefs.h <<EOF
932 #define EMACS_MINOR_VERSION $emacs_minor_version
936 if test -n "$emacs_beta_version" ; then
937 if test "$beta" = "yes"; then
938 version="${version}-b${emacs_beta_version}"
939 { test "$extra_verbose" = "yes" && cat << EOF
940 Defining EMACS_BETA_VERSION = $emacs_beta_version
942 cat >> confdefs.h <<EOF
943 #define EMACS_BETA_VERSION $emacs_beta_version
948 version="${version}.${emacs_beta_version}"
949 { test "$extra_verbose" = "yes" && cat << EOF
950 Defining EMACS_PATCH_LEVEL = $emacs_beta_version
952 cat >> confdefs.h <<EOF
953 #define EMACS_PATCH_LEVEL $emacs_beta_version
959 { test "$extra_verbose" = "yes" && cat << EOF
960 Defining XEMACS_CODENAME = "$xemacs_codename"
962 cat >> confdefs.h <<EOF
963 #define XEMACS_CODENAME "$xemacs_codename"
967 { test "$extra_verbose" = "yes" && cat << EOF
968 Defining EMACS_VERSION = "$version"
970 cat >> confdefs.h <<EOF
971 #define EMACS_VERSION "$version"
976 if test "$with_infodock" = "yes"; then
977 if test ! -f ../../ID-INSTALL; then
978 echo "Cannot build InfoDock without InfoDock sources"
983 if test "$with_infodock" = "yes"; then
984 { test "$extra_verbose" = "yes" && cat << EOF
985 Defining INFODOCK_MAJOR_VERSION = $infodock_major_version
987 cat >> confdefs.h <<EOF
988 #define INFODOCK_MAJOR_VERSION $infodock_major_version
992 { test "$extra_verbose" = "yes" && cat << EOF
993 Defining INFODOCK_MINOR_VERSION = $infodock_minor_version
995 cat >> confdefs.h <<EOF
996 #define INFODOCK_MINOR_VERSION $infodock_minor_version
1000 { test "$extra_verbose" = "yes" && cat << EOF
1001 Defining INFODOCK_BUILD_VERSION = $infodock_build_version
1003 cat >> confdefs.h <<EOF
1004 #define INFODOCK_BUILD_VERSION $infodock_build_version
1008 version=${infodock_major_version}.${infodock_minor_version}.${infodock_build_version}
1010 CPPFLAGS="$CPPFLAGS -DINFODOCK"
1015 { test "$extra_verbose" = "yes" && cat << EOF
1016 Defining EMACS_PROGNAME = "$PROGNAME"
1018 cat >> confdefs.h <<EOF
1019 #define EMACS_PROGNAME "$PROGNAME"
1024 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
1025 test "${error_check_extents=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1026 Defining ERROR_CHECK_EXTENTS
1028 cat >> confdefs.h <<\EOF
1029 #define ERROR_CHECK_EXTENTS 1
1033 test "${error_check_typecheck=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1034 Defining ERROR_CHECK_TYPECHECK
1036 cat >> confdefs.h <<\EOF
1037 #define ERROR_CHECK_TYPECHECK 1
1041 test "${error_check_bufpos=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1042 Defining ERROR_CHECK_BUFPOS
1044 cat >> confdefs.h <<\EOF
1045 #define ERROR_CHECK_BUFPOS 1
1049 test "${error_check_gc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1050 Defining ERROR_CHECK_GC
1052 cat >> confdefs.h <<\EOF
1053 #define ERROR_CHECK_GC 1
1057 test "${error_check_malloc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1058 Defining ERROR_CHECK_MALLOC
1060 cat >> confdefs.h <<\EOF
1061 #define ERROR_CHECK_MALLOC 1
1065 test "${error_check_byte_code=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1066 Defining ERROR_CHECK_BYTE_CODE
1068 cat >> confdefs.h <<\EOF
1069 #define ERROR_CHECK_BYTE_CODE 1
1073 test "${error_check_glyphs=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1074 Defining ERROR_CHECK_GLYPHS
1076 cat >> confdefs.h <<\EOF
1077 #define ERROR_CHECK_GLYPHS 1
1081 if test "${debug:=$beta}" = "yes"; then
1082 use_assertions=yes memory_usage_stats=yes
1083 extra_objs="$extra_objs debug.o" && if test "$extra_verbose" = "yes"; then
1084 echo " xemacs will be linked with \"debug.o\""
1086 extra_objs="$extra_objs tests.o" && if test "$extra_verbose" = "yes"; then
1087 echo " xemacs will be linked with \"tests.o\""
1089 { test "$extra_verbose" = "yes" && cat << \EOF
1090 Defining DEBUG_XEMACS
1092 cat >> confdefs.h <<\EOF
1093 #define DEBUG_XEMACS 1
1098 test "$use_assertions" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
1099 Defining USE_ASSERTIONS
1101 cat >> confdefs.h <<\EOF
1102 #define USE_ASSERTIONS 1
1106 test "$memory_usage_stats" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
1107 Defining MEMORY_USAGE_STATS
1109 cat >> confdefs.h <<\EOF
1110 #define MEMORY_USAGE_STATS 1
1116 echo $ac_n "checking "host system type"""... $ac_c" 1>&6
1117 echo "configure:1118: checking "host system type"" >&5
1118 internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'`
1119 canonical=`${CONFIG_SHELL-/bin/sh} $srcdir/config.sub "$internal_configuration"`
1120 configuration=`echo "$configuration" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
1121 canonical=`echo "$canonical" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
1122 echo "$ac_t""$configuration" 1>&6
1130 case "$canonical" in
1131 sparc-*-* ) machine=sparc ;;
1132 alpha*-*-* ) machine=alpha ;;
1133 vax-*-* ) machine=vax ;;
1134 mips-dec-* ) machine=pmax ;;
1135 mips-sgi-irix6* ) machine=iris6d ;;
1136 mips-sgi-* ) machine=iris4d ;;
1137 mips*-linux ) machine=mips ;;
1138 romp-ibm-* ) machine=ibmrt ;;
1139 rs6000-ibm-aix* ) machine=ibmrs6000 ;;
1140 powerpc-ibm-aix* ) machine=ibmrs6000 ;;
1141 powerpc*-* ) machine=powerpc ;;
1142 hppa-*-* ) machine=hp800 ;;
1143 m88k-dg-* ) machine=aviion ;;
1144 m68*-sony-* ) machine=news ;;
1145 mips-sony-* ) machine=news-risc ;;
1146 clipper-* ) machine=clipper ;;
1147 arm* ) machine=arm ;;
1148 ns32k-* ) machine=ns32000 ;;
1151 case "$canonical" in
1152 *-*-linux* ) opsys=linux ;;
1153 *-*-netbsd* ) opsys=netbsd ;;
1154 *-*-openbsd* ) opsys=openbsd ;;
1155 *-*-nextstep* ) opsys=nextstep ;;
1156 *-*-vms ) opsys=vms ;;
1158 *-dec-osf1.3 | *-dec-osf2* ) opsys=decosf1-3 ;;
1159 *-dec-osf1.2 | *-dec-osf1* ) opsys=decosf1-2 ;;
1160 *-dec-osf3.[2-9] ) opsys=decosf3-2 ;;
1161 *-dec-osf3* ) opsys=decosf3-1 ;;
1162 *-dec-osf[4-9]* ) opsys=decosf4-0 ;;
1164 *-*-ultrix[0-3].* | *-*-ultrix4.0* ) opsys=bsd4-2 ;;
1165 *-*-ultrix4.[12]* ) opsys=bsd4-3 ;;
1166 *-*-ultrix* ) opsys=ultrix4-3 ;;
1168 *-*-aix3.1* ) opsys=aix3-1 ;;
1169 *-*-aix3.2.5 ) opsys=aix3-2-5 ;;
1170 *-*-aix3* ) opsys=aix3-2 ;;
1171 *-*-aix4.0* ) opsys=aix4 ;;
1172 *-*-aix4.1* ) opsys=aix4-1 ;;
1173 *-*-aix4* ) opsys=aix4-2 ;;
1175 *-gnu* ) opsys=gnu ;;
1176 *-*-bsd4.[01] ) opsys=bsd4-1 ;;
1177 *-*-bsd4.2 ) opsys=bsd4-2 ;;
1178 *-*-bsd4.3 ) opsys=bsd4-3 ;;
1179 *-*-aos4.2 ) opsys=bsd4-2 ;;
1180 *-*-aos* ) opsys=bsd4-3 ;;
1181 *-*-sysv0 | *-*-sysvr0 ) opsys=usg5-0 ;;
1182 *-*-sysv2 | *-*-sysvr2 ) opsys=usg5-2 ;;
1183 *-*-sysv2.2 | *-*-sysvr2.2 ) opsys=usg5-2-2 ;;
1184 *-*-sysv3* | *-*-sysvr3* ) opsys=usg5-3 ;;
1185 *-*-sysv4.1* | *-*-sysvr4.1* )opsys=usg5-4 NON_GNU_CPP=/usr/lib/cpp ;;
1186 *-*-sysv4.[2-9]* | *-sysvr4.[2-9]* )
1187 if test -z "$NON_GNU_CPP" ; then
1188 for prog in "/usr/ccs/lib/cpp" "/lib/cpp"; do
1189 if test -f "$prog"; then NON_GNU_CPP="$prog"; break; fi
1193 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
1194 *-*-mach_bsd4.3* ) opsys=mach-bsd4-3 ;;
1197 case "$canonical" in
1200 case "$canonical" in
1201 i[3-9]86-*-netbsd*) machine=intel386 ;;
1202 hp300-*-netbsd* | amiga-*-netbsd* | sun3-*-netbsd* | mac68k-*-netbsd* | da30-*-netbsd* | m68k-*-netbsd* )
1203 machine=hp9000s300 ;;
1204 pc532-*-netbsd* | ns32k-*-netbsd* ) machine=ns32000 ;;
1205 pmax-*-netbsd* | mips-*-netbsd* ) machine=pmax ;;
1210 case "${canonical}" in
1211 i386-*-openbsd*) machine=intel386 ;;
1212 m68k-*-openbsd*) machine=hp9000s300 ;;
1213 mipsel-*-openbsd*) machine=pmax ;;
1217 arm-acorn-riscix1.1* ) machine=acorn opsys=riscix1-1 ;;
1218 arm-acorn-riscix1.2* | arm-acorn-riscix ) machine=acorn opsys=riscix1-2 ;;
1220 fx80-alliant-* ) machine=alliant4 opsys=bsd4-2 ;;
1221 i860-alliant-* ) machine=alliant-2800 opsys=bsd4-3 ;;
1223 m68*-altos-sysv* ) machine=altos opsys=usg5-2 ;;
1225 580-amdahl-sysv* ) machine=amdahl opsys=usg5-2-2 ;;
1227 m68*-apollo-* ) machine=apollo opsys=bsd4-3 ;;
1229 we32k-att-sysv* ) machine=att3b opsys=usg5-2-2 ;;
1231 m68*-att-sysv* ) machine=7300 opsys=usg5-2-2 ;;
1233 rs6000-bull-bosx* ) machine=ibmrs6000 opsys=aix3-2 ;; # dpx20
1234 m68*-bull-sysv3* ) machine=dpx2 opsys=usg5-3 ;; # dpx2
1235 m68*-bull-sysv2* ) machine=sps7 opsys=usg5-2 ;; # sps7
1238 celerity-celerity-bsd* ) machine=celerity opsys=bsd4-2 ;;
1240 *-convex-bsd* | *-convex-convexos* )
1241 machine=convex opsys=bsd4-3
1242 NON_GNU_CPP="cc -E -P"
1245 i[3-9]86-cubix-sysv* ) machine=intel386 opsys=usg5-3 ;;
1249 RANLIB="ranlib -c" pdump=yes ;;
1251 i586-dg-dgux*R4* | i586-dg-dgux5.4.4* ) machine=aviion opsys=dgux5-4r4 ;;
1252 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) opsys=dgux5-4r3 ;;
1253 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) opsys=dgux5-4r2 ;;
1254 m88k-dg-dgux* ) opsys=dgux ;;
1256 m68k-motorola-sysv* | m68000-motorola-sysv* ) machine=delta opsys=usg5-3 ;;
1257 m88k-motorola-sysv4* )
1258 machine=delta88k opsys=usg5-4-2
1260 m88k-motorola-sysv* | m88k-motorola-m88kbcs* ) machine=delta88k opsys=usg5-3 ;;
1262 m68*-dual-sysv* ) machine=dual opsys=usg5-2 ;;
1263 m68*-dual-uniplus* ) machine=dual opsys=unipl5-2 ;;
1265 ns16k-encore-bsd* ) machine=ns16000 opsys=umax ;;
1267 pn-gould-bsd4.2* ) machine=gould opsys=bsd4-2 ;;
1268 pn-gould-bsd4.3* ) machine=gould opsys=bsd4-3 ;;
1269 np1-gould-bsd* ) machine=gould-np1 opsys=bsd4-3 ;;
1272 case "`uname -r`" in
1273 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
1274 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
1276 NON_GNU_CPP="/lib/cpp"
1278 m68k-harris-cxux* ) machine=nh3000 opsys=cxux ;;
1279 powerpc-harris-powerunix ) machine=nh6000 opsys=powerunix NON_GNU_CPP="cc -Xo -E -P" ;;
1281 xps*-honeywell-sysv* ) machine=xps100 opsys=usg5-2 ;;
1283 m68*-hp-bsd* ) machine=hp9000s300 opsys=bsd4-3 ;;
1286 case "$canonical" in
1287 m68* ) machine=hp9000s300 ;;
1288 hppa* ) machine=hp800 ;;
1291 case "$canonical" in
1292 *-hp-hpux7* ) opsys=hpux ;;
1293 *-hp-hpux8* ) opsys=hpux8 ;;
1294 *-hp-hpux9* ) opsys=hpux9 ;;
1295 *-hp-hpux10* ) opsys=hpux10 ;;
1296 *-hp-hpux11* ) opsys=hpux11 ;;
1300 case "$opsys" in hpux9 | hpux10 ) extra_objs="$extra_objs strcat.o" && if test "$extra_verbose" = "yes"; then
1301 echo " xemacs will be linked with \"strcat.o\""
1304 if test "$opsys" = "hpux10" -o "$opsys" = "hpux11"; then \
1305 ansi_flag="-Ae"; else ansi_flag="-Aa"; fi
1306 NON_GNU_CC="cc $ansi_flag" NON_GNU_CPP="cc $ansi_flag -E"
1308 case "$canonical" in *-hp-hpux*shr* ) opsys="${opsys}-shr" ;; esac
1311 orion-orion-bsd* ) machine=orion opsys=bsd4-2 ;;
1312 clipper-orion-bsd* ) machine=orion105 opsys=bsd4-2 ;;
1314 i[3-9]86-ibm-aix1.1* ) machine=ibmps2-aix opsys=usg5-2-2 ;;
1315 i[3-9]86-ibm-aix1.[23]* | i[3-9]86-ibm-aix* ) machine=ibmps2-aix opsys=usg5-3 ;;
1316 i370-ibm-aix*) machine=ibm370aix opsys=usg5-3 ;;
1317 romp-ibm-aos* ) opsys=bsd4-3 ;;
1318 romp-ibm-bsd* ) opsys=bsd4-3 ;;
1319 romp-ibm-mach* ) opsys=mach-bsd4-3 ;;
1321 m68*-isi-bsd4.2* ) machine=isi-ov opsys=bsd4-2 ;;
1322 m68*-isi-bsd4.3* ) machine=isi-ov opsys=bsd4-3 ;;
1324 i[3-9]86-intsys-sysv* ) machine=is386 opsys=usg5-2-2 ;;
1326 i[3-9]86-prime-sysv* ) machine=i386 opsys=usg5-3 ;;
1328 i[3-9]86-sequent-bsd* ) machine=symmetry opsys=bsd4-3 ;;
1330 i[3-9]86-sequent-ptx* ) machine=sequent-ptx opsys=ptx NON_GNU_CPP="/lib/cpp" ;;
1332 i[3-9]86-ncr-sysv* ) machine=ncr386 opsys=usg5-4-2 ;;
1334 i860-intel-osf1* ) machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp ;;
1336 i860-*-sysv4* ) machine=i860 opsys=usg5-4 NON_GNU_CC="/bin/cc" NON_GNU_CPP="/usr/ccs/lib/cpp" ;;
1338 m68*-masscomp-rtu* ) machine=masscomp opsys=rtu ;;
1340 m68*-megatest-bsd* ) machine=mega68 opsys=bsd4-2 ;;
1342 mips-mips-usg* ) machine=mips4 ;;
1345 NON_GNU_CC="cc -systype bsd43"
1346 NON_GNU_CPP="cc -systype bsd43 -E"
1347 case "$canonical" in
1348 mips-mips-riscos4* ) opsys=bsd4-3 ;;
1349 mips-mips-riscos5* ) opsys=riscos5 ;;
1352 mips-mips-bsd* ) machine=mips opsys=bsd4-3 ;;
1353 mips-mips-* ) machine=mips opsys=usg5-2-2 ;;
1355 m68*-next-* | m68k-*-nextstep* ) machine=m68k opsys=nextstep ;;
1357 ns32k-ns-genix* ) machine=ns32000 opsys=usg5-2 ;;
1359 m68*-ncr-sysv2* | m68*-ncr-sysvr2* ) machine=tower32 opsys=usg5-2-2 ;;
1360 m68*-ncr-sysv3* | m68*-ncr-sysvr3* ) machine=tower32v3 opsys=usg5-3 ;;
1362 m68*-nixdorf-sysv* ) machine=targon31 opsys=usg5-2-2 ;;
1364 m68*-nu-sysv* ) machine=nu opsys=usg5-2 ;;
1366 m68*-plexus-sysv* ) machine=plexus opsys=usg5-2 ;;
1368 pyramid-pyramid-bsd* ) machine=pyramid opsys=bsd4-2 ;;
1370 ns32k-sequent-bsd4.2* ) machine=sequent opsys=bsd4-2 ;;
1371 ns32k-sequent-bsd4.3* ) machine=sequent opsys=bsd4-3 ;;
1373 mips-siemens-sysv* | mips-sni-sysv*)
1374 machine=mips-siemens opsys=usg5-4
1375 NON_GNU_CC=/usr/ccs/bin/cc
1376 NON_GNU_CPP=/usr/ccs/lib/cpp
1381 NON_GNU_CC=/usr/ccs/bin/cc
1382 NON_GNU_CPP=/usr/ccs/lib/cpp
1385 m68*-sgi-iris3.5* ) machine=irist opsys=iris3-5 ;;
1386 m68*-sgi-iris3.6* | m68*-sgi-iris*) machine=irist opsys=iris3-6 ;;
1387 mips-sgi-irix3.* ) opsys=irix3-3 ;;
1388 mips-sgi-irix4.* ) opsys=irix4-0 ;;
1389 mips-sgi-irix6* ) opsys=irix6-0 ;;
1390 mips-sgi-irix5.1* ) opsys=irix5-1 ;;
1391 mips-sgi-irix5.2* ) opsys=irix5-2 ;;
1392 mips-sgi-irix5.* ) opsys=irix5-3 ;;
1393 mips-sgi-irix* ) opsys=irix5-0 ;;
1395 *-sony-newsos[34]* | *-sony-news[34]* ) opsys=bsd4-3 ;;
1396 *-sony-news* ) opsys=newsos5 ;;
1398 m68*-stride-sysv* ) machine=stride opsys=usg5-2 ;;
1400 *-*-solaris* | *-*-sunos* | *-sun-mach* | *-sun-bsd* )
1401 case "$canonical" in
1402 m68*-sunos1* ) machine=sun1 ;;
1403 m68*-sunos2* ) machine=sun2 ;;
1404 m68* ) machine=sun3 ;;
1405 i*86*-sun-sunos[34]* ) machine=sun386 ;;
1406 i*86-*-* ) machine=intel386 ;;
1407 rs6000* ) machine=rs6000 ;;
1410 case "$canonical" in *-sunos5*)
1411 canonical=`echo $canonical | sed -e s/sunos5/solaris2/`;;
1414 case "$canonical" in
1416 #test -f /usr/lib/cpp && NON_GNU_CPP=/usr/lib/cpp ;;
1419 #test -f /usr/ccs/lib/cpp && NON_GNU_CPP=/usr/ccs/lib/cpp
1423 case "$canonical" in
1426 os_release=`uname -r | sed -e 's/^\([0-9]\)\.\([0-9]\).*/\1\2/'`
1427 { test "$extra_verbose" = "yes" && cat << EOF
1428 Defining OS_RELEASE = $os_release
1430 cat >> confdefs.h <<EOF
1431 #define OS_RELEASE $os_release
1436 i*86-*-sunos4* ) opsys=sunos4-0 ;;
1437 *-sunos4.0* ) opsys=sunos4-0 ;;
1438 *-sunos4.1.2* ) opsys=sunos4-1-2 ;;
1439 *-sunos4.1.3* ) opsys=sunos4-1-3 ;;
1440 *-sunos4.1.[4-9]* ) opsys=sunos4-1-4 ;;
1441 *-sunos4* | *-sunos ) opsys=sunos4-1 ;;
1442 *-mach* ) opsys=mach-bsd4-3 ;;
1446 case "$canonical" in *-sunos4*shr* ) opsys="${opsys}-shr" ;; esac
1448 test "$opsys $CC" = "sol2 /usr/ucb/cc" && CC=""
1451 m68*-tadpole-sysv* ) machine=tad68k opsys=usg5-3 ;;
1453 tahoe-tahoe-bsd4.2* ) machine=tahoe opsys=bsd4-2 ;;
1454 tahoe-tahoe-bsd4.3* ) machine=tahoe opsys=bsd4-3 ;;
1456 mips-tandem-sysv* ) machine=tandem-s2 opsys=usg5-3 ;;
1458 m88k-tektronix-sysv3* ) machine=tekxd88 opsys=usg5-3 ;;
1460 ns16k-tektronix-bsd* ) machine=ns16000 opsys=bsd4-2 ;;
1461 m68*-tektronix-bsd* ) machine=tek4300 opsys=bsd4-3 ;;
1463 titan-titan-sysv* ) machine=titan opsys=usg5-3 ;;
1465 m68*-unisys-uniplus* ) machine=ustation opsystem=unipl5-2 ;;
1468 case "$canonical" in
1469 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
1470 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
1471 *-mach* ) opsys=mach-bsd4-3 ;;
1475 ns16k-whitechapel-* ) machine=mg1 ;;
1477 m68*-wicat-sysv* ) machine=wicat opsys=usg5-2 ;;
1481 case "$canonical" in
1482 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
1483 *-isc2.2* ) opsys=isc2-2 ;;
1484 *-isc4.0* ) opsys=isc4-0 ;;
1485 *-isc4.* ) opsys=isc4-1
1486 GCC_TEST_OPTIONS=-posix
1487 NON_GCC_TEST_OPTIONS=-Xp
1489 *-isc* ) opsys=isc3-0 ;;
1490 *-esix5* ) opsys=esix5r4 NON_GNU_CPP=/usr/lib/cpp ;;
1491 *-esix* ) opsys=esix ;;
1492 *-mach* ) opsys=mach-bsd4-3 ;;
1493 *-xenix* ) opsys=xenix ;;
1494 *-sco3.2v4* ) opsys=sco4 NON_GNU_CPP=/lib/cpp ;;
1495 *-bsd386* | *-bsdi1* ) opsys=bsd386 ;;
1496 *-bsdi4* ) opsys=bsdos4 ;;
1497 *-bsdi3* ) opsys=bsdos3 ;;
1498 *-bsdi2.1* ) opsys=bsdos2-1 ;;
1499 *-bsdi2* ) opsys=bsdos2 ;;
1500 *-sco3.2v5* ) opsys=sco5 ;;
1501 *-sysv5* ) opsys=sco7 ;;
1502 *-386bsd* ) opsys=386bsd ;;
1503 *-freebsd* ) opsys=freebsd ;;
1504 *-nextstep* ) opsys=nextstep ;;
1505 *-pc-cygwin* ) opsys=cygwin32 ;;
1506 *-pc-mingw* ) opsys=mingw32 ;
1507 test -z "$with_tty" && with_tty="no";;
1511 m68k-*-linux* ) machine=m68k opsys=linux ;;
1515 test -z "$machine" && machine=`echo $canonical | sed 's/-.*$//'`
1517 test -z "$opsys" && opsys=`uname -s | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
1519 if test -r "${srcdir}/src/m/${machine}.h"; then
1520 machfile="m/${machine}.h"
1521 { test "$extra_verbose" = "yes" && cat << EOF
1522 Defining config_machfile = "$machfile"
1524 cat >> confdefs.h <<EOF
1525 #define config_machfile "$machfile"
1530 echo "XEmacs has no builtin knowledge of \`$machine' machines."
1531 echo "Using configure-time autodetection only."
1534 if test -r "${srcdir}/src/s/${opsys}.h"; then
1535 opsysfile="s/${opsys}.h"
1536 { test "$extra_verbose" = "yes" && cat << EOF
1537 Defining config_opsysfile = "$opsysfile"
1539 cat >> confdefs.h <<EOF
1540 #define config_opsysfile "$opsysfile"
1545 echo "XEmacs has no builtin knowledge of \`$opsys' operating systems."
1546 echo "Using configure-time autodetection only."
1550 if test -z "$dynamic"; then
1552 hpux* | sunos4* ) dynamic=no ;;
1556 if test "$dynamic" = "yes"; then
1558 hpux* | sunos4* | sco5 ) opsys="${opsys}-shr" ;;
1559 decosf* ) ld_call_shared="-call_shared" ;;
1561 else case "$opsys" in
1563 echo "Static linking is not supported on Solaris 2."
1564 echo "Rerun configure without specifying --dynamic=no."
1566 linux ) ld_call_shared="-Bstatic" ;;
1567 decosf* ) ld_call_shared="-non_shared" ;;
1571 case "$opsys" in aix*) NON_GNU_CC=xlc ;; esac
1573 stack_trace_eye_catcher=`echo ${PROGNAME}_${version}_${canonical} | sed 'y/.-/__/'`
1574 { test "$extra_verbose" = "yes" && cat << EOF
1575 Defining STACK_TRACE_EYE_CATCHER = $stack_trace_eye_catcher
1577 cat >> confdefs.h <<EOF
1578 #define STACK_TRACE_EYE_CATCHER $stack_trace_eye_catcher
1584 test "$with_sparcworks" = "yes" && with_workshop=yes # compatibility alias
1585 if test "$with_workshop $with_tooltalk" = "yes no"; then
1586 (echo "$progname: Usage error:"
1587 echo " " "--with-workshop requires --with-tooltalk"
1588 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
1589 elif test "$with_tooltalk" = "no" ; then with_workshop=no
1590 elif test "$with_workshop" = "yes"; then with_tooltalk=yes
1593 if test "$with_workshop" = "yes"; then
1594 { test "$extra_verbose" = "yes" && cat << \EOF
1597 cat >> confdefs.h <<\EOF
1602 extra_objs="$extra_objs sunpro.o" && if test "$extra_verbose" = "yes"; then
1603 echo " xemacs will be linked with \"sunpro.o\""
1607 if test "$with_clash_detection" != "no"; then
1608 { test "$extra_verbose" = "yes" && cat << \EOF
1609 Defining CLASH_DETECTION
1611 cat >> confdefs.h <<\EOF
1612 #define CLASH_DETECTION 1
1616 extra_objs="$extra_objs filelock.o" && if test "$extra_verbose" = "yes"; then
1617 echo " xemacs will be linked with \"filelock.o\""
1621 test -n "$compiler" && CC="$compiler"
1622 if test "$with_gcc" = "no"; then case "$CC" in "" | *gcc* ) CC="${NON_GNU_CC-cc}" ;; esac
1625 test "${cflags-unset}" != unset && CFLAGS="$cflags"
1626 if test "${CFLAGS-unset}" != unset
1627 then cflags_specified=yes;
1628 else cflags_specified=no;
1631 xe_save_CFLAGS="$CFLAGS"
1633 # Extract the first word of "gcc", so it can be a program name with args.
1634 set dummy gcc; ac_word=$2
1635 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1636 echo "configure:1637: checking for $ac_word" >&5
1638 if test -n "$CC"; then
1639 ac_cv_prog_CC="$CC" # Let the user override the test.
1641 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1643 for ac_dir in $ac_dummy; do
1644 test -z "$ac_dir" && ac_dir=.
1645 if test -f $ac_dir/$ac_word; then
1653 if test -n "$CC"; then
1654 echo "$ac_t""$CC" 1>&6
1656 echo "$ac_t""no" 1>&6
1659 if test -z "$CC"; then
1660 # Extract the first word of "cc", so it can be a program name with args.
1661 set dummy cc; ac_word=$2
1662 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1663 echo "configure:1664: checking for $ac_word" >&5
1665 if test -n "$CC"; then
1666 ac_cv_prog_CC="$CC" # Let the user override the test.
1668 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1671 for ac_dir in $ac_dummy; do
1672 test -z "$ac_dir" && ac_dir=.
1673 if test -f $ac_dir/$ac_word; then
1674 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1675 ac_prog_rejected=yes
1683 if test $ac_prog_rejected = yes; then
1684 # We found a bogon in the path, so make sure we never use it.
1685 set dummy $ac_cv_prog_CC
1687 if test $# -gt 0; then
1688 # We chose a different compiler from the bogus one.
1689 # However, it has the same basename, so the bogon will be chosen
1690 # first if we set CC to just the basename; use the full file name.
1692 set dummy "$ac_dir/$ac_word" "$@"
1699 if test -n "$CC"; then
1700 echo "$ac_t""$CC" 1>&6
1702 echo "$ac_t""no" 1>&6
1705 if test -z "$CC"; then
1706 case "`uname -s`" in
1708 # Extract the first word of "cl", so it can be a program name with args.
1709 set dummy cl; ac_word=$2
1710 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1711 echo "configure:1712: checking for $ac_word" >&5
1713 if test -n "$CC"; then
1714 ac_cv_prog_CC="$CC" # Let the user override the test.
1716 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1718 for ac_dir in $ac_dummy; do
1719 test -z "$ac_dir" && ac_dir=.
1720 if test -f $ac_dir/$ac_word; then
1728 if test -n "$CC"; then
1729 echo "$ac_t""$CC" 1>&6
1731 echo "$ac_t""no" 1>&6
1736 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1739 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1740 echo "configure:1741: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1743 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1744 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1745 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'
1746 ac_cpp='$CPP '"$xe_cppflags"
1747 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1748 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1751 cat > conftest.$ac_ext << EOF
1753 #line 1754 "configure"
1754 #include "confdefs.h"
1758 if { (eval echo configure:1759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1759 ac_cv_prog_cc_works=yes
1760 # If we can't run a trivial program, we are probably using a cross compiler.
1761 if (./conftest; exit) 2>/dev/null; then
1762 ac_cv_prog_cc_cross=no
1764 ac_cv_prog_cc_cross=yes
1767 echo "configure: failed program was:" >&5
1768 cat conftest.$ac_ext >&5
1769 ac_cv_prog_cc_works=no
1773 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1774 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1775 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'
1776 ac_cpp='$CPP '"$xe_cppflags"
1777 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1778 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1781 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1782 if test $ac_cv_prog_cc_works = no; then
1783 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1785 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1786 echo "configure:1787: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1787 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1788 cross_compiling=$ac_cv_prog_cc_cross
1790 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1791 echo "configure:1792: checking whether we are using GNU C" >&5
1793 cat > conftest.c <<EOF
1798 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1799: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1804 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1806 if test $ac_cv_prog_gcc = yes; then
1812 ac_test_CFLAGS="${CFLAGS+set}"
1813 ac_save_CFLAGS="$CFLAGS"
1815 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1816 echo "configure:1817: checking whether ${CC-cc} accepts -g" >&5
1818 echo 'void f(){}' > conftest.c
1819 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1827 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1828 if test "$ac_test_CFLAGS" = set; then
1829 CFLAGS="$ac_save_CFLAGS"
1830 elif test $ac_cv_prog_cc_g = yes; then
1831 if test "$GCC" = yes; then
1837 if test "$GCC" = yes; then
1844 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then
1846 # Extract the first word of "gcc", so it can be a program name with args.
1847 set dummy gcc; ac_word=$2
1848 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1849 echo "configure:1850: checking for $ac_word" >&5
1851 if test -n "$CC"; then
1852 ac_cv_prog_CC="$CC" # Let the user override the test.
1854 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1856 for ac_dir in $ac_dummy; do
1857 test -z "$ac_dir" && ac_dir=.
1858 if test -f $ac_dir/$ac_word; then
1866 if test -n "$CC"; then
1867 echo "$ac_t""$CC" 1>&6
1869 echo "$ac_t""no" 1>&6
1872 if test -z "$CC"; then
1873 # Extract the first word of "cc", so it can be a program name with args.
1874 set dummy cc; ac_word=$2
1875 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1876 echo "configure:1877: checking for $ac_word" >&5
1878 if test -n "$CC"; then
1879 ac_cv_prog_CC="$CC" # Let the user override the test.
1881 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1884 for ac_dir in $ac_dummy; do
1885 test -z "$ac_dir" && ac_dir=.
1886 if test -f $ac_dir/$ac_word; then
1887 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1888 ac_prog_rejected=yes
1896 if test $ac_prog_rejected = yes; then
1897 # We found a bogon in the path, so make sure we never use it.
1898 set dummy $ac_cv_prog_CC
1900 if test $# -gt 0; then
1901 # We chose a different compiler from the bogus one.
1902 # However, it has the same basename, so the bogon will be chosen
1903 # first if we set CC to just the basename; use the full file name.
1905 set dummy "$ac_dir/$ac_word" "$@"
1912 if test -n "$CC"; then
1913 echo "$ac_t""$CC" 1>&6
1915 echo "$ac_t""no" 1>&6
1918 if test -z "$CC"; then
1919 case "`uname -s`" in
1921 # Extract the first word of "cl", so it can be a program name with args.
1922 set dummy cl; ac_word=$2
1923 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1924 echo "configure:1925: checking for $ac_word" >&5
1926 if test -n "$CC"; then
1927 ac_cv_prog_CC="$CC" # Let the user override the test.
1929 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1931 for ac_dir in $ac_dummy; do
1932 test -z "$ac_dir" && ac_dir=.
1933 if test -f $ac_dir/$ac_word; then
1941 if test -n "$CC"; then
1942 echo "$ac_t""$CC" 1>&6
1944 echo "$ac_t""no" 1>&6
1949 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1952 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1953 echo "configure:1954: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1956 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1957 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1958 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'
1959 ac_cpp='$CPP '"$xe_cppflags"
1960 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1961 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1964 cat > conftest.$ac_ext << EOF
1966 #line 1967 "configure"
1967 #include "confdefs.h"
1971 if { (eval echo configure:1972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1972 ac_cv_prog_cc_works=yes
1973 # If we can't run a trivial program, we are probably using a cross compiler.
1974 if (./conftest; exit) 2>/dev/null; then
1975 ac_cv_prog_cc_cross=no
1977 ac_cv_prog_cc_cross=yes
1980 echo "configure: failed program was:" >&5
1981 cat conftest.$ac_ext >&5
1982 ac_cv_prog_cc_works=no
1986 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1987 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1988 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'
1989 ac_cpp='$CPP '"$xe_cppflags"
1990 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1991 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1994 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1995 if test $ac_cv_prog_cc_works = no; then
1996 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1998 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1999 echo "configure:2000: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2000 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2001 cross_compiling=$ac_cv_prog_cc_cross
2003 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2004 echo "configure:2005: checking whether we are using GNU C" >&5
2006 cat > conftest.c <<EOF
2011 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2012: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2017 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2019 if test $ac_cv_prog_gcc = yes; then
2025 ac_test_CFLAGS="${CFLAGS+set}"
2026 ac_save_CFLAGS="$CFLAGS"
2028 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2029 echo "configure:2030: checking whether ${CC-cc} accepts -g" >&5
2031 echo 'void f(){}' > conftest.c
2032 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2040 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2041 if test "$ac_test_CFLAGS" = set; then
2042 CFLAGS="$ac_save_CFLAGS"
2043 elif test $ac_cv_prog_cc_g = yes; then
2044 if test "$GCC" = yes; then
2050 if test "$GCC" = yes; then
2057 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then
2059 # Extract the first word of "gcc", so it can be a program name with args.
2060 set dummy gcc; ac_word=$2
2061 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2062 echo "configure:2063: checking for $ac_word" >&5
2064 if test -n "$CC"; then
2065 ac_cv_prog_CC="$CC" # Let the user override the test.
2067 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2069 for ac_dir in $ac_dummy; do
2070 test -z "$ac_dir" && ac_dir=.
2071 if test -f $ac_dir/$ac_word; then
2079 if test -n "$CC"; then
2080 echo "$ac_t""$CC" 1>&6
2082 echo "$ac_t""no" 1>&6
2085 if test -z "$CC"; then
2086 # Extract the first word of "cc", so it can be a program name with args.
2087 set dummy cc; ac_word=$2
2088 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2089 echo "configure:2090: checking for $ac_word" >&5
2091 if test -n "$CC"; then
2092 ac_cv_prog_CC="$CC" # Let the user override the test.
2094 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2097 for ac_dir in $ac_dummy; do
2098 test -z "$ac_dir" && ac_dir=.
2099 if test -f $ac_dir/$ac_word; then
2100 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2101 ac_prog_rejected=yes
2109 if test $ac_prog_rejected = yes; then
2110 # We found a bogon in the path, so make sure we never use it.
2111 set dummy $ac_cv_prog_CC
2113 if test $# -gt 0; then
2114 # We chose a different compiler from the bogus one.
2115 # However, it has the same basename, so the bogon will be chosen
2116 # first if we set CC to just the basename; use the full file name.
2118 set dummy "$ac_dir/$ac_word" "$@"
2125 if test -n "$CC"; then
2126 echo "$ac_t""$CC" 1>&6
2128 echo "$ac_t""no" 1>&6
2131 if test -z "$CC"; then
2132 case "`uname -s`" in
2134 # Extract the first word of "cl", so it can be a program name with args.
2135 set dummy cl; ac_word=$2
2136 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2137 echo "configure:2138: checking for $ac_word" >&5
2139 if test -n "$CC"; then
2140 ac_cv_prog_CC="$CC" # Let the user override the test.
2142 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2144 for ac_dir in $ac_dummy; do
2145 test -z "$ac_dir" && ac_dir=.
2146 if test -f $ac_dir/$ac_word; then
2154 if test -n "$CC"; then
2155 echo "$ac_t""$CC" 1>&6
2157 echo "$ac_t""no" 1>&6
2162 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2165 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2166 echo "configure:2167: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2169 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2170 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2171 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'
2172 ac_cpp='$CPP '"$xe_cppflags"
2173 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
2174 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2177 cat > conftest.$ac_ext << EOF
2179 #line 2180 "configure"
2180 #include "confdefs.h"
2184 if { (eval echo configure:2185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2185 ac_cv_prog_cc_works=yes
2186 # If we can't run a trivial program, we are probably using a cross compiler.
2187 if (./conftest; exit) 2>/dev/null; then
2188 ac_cv_prog_cc_cross=no
2190 ac_cv_prog_cc_cross=yes
2193 echo "configure: failed program was:" >&5
2194 cat conftest.$ac_ext >&5
2195 ac_cv_prog_cc_works=no
2199 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2200 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2201 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'
2202 ac_cpp='$CPP '"$xe_cppflags"
2203 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
2204 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2207 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2208 if test $ac_cv_prog_cc_works = no; then
2209 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2211 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2212 echo "configure:2213: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2213 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2214 cross_compiling=$ac_cv_prog_cc_cross
2216 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2217 echo "configure:2218: checking whether we are using GNU C" >&5
2219 cat > conftest.c <<EOF
2224 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2225: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2230 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2232 if test $ac_cv_prog_gcc = yes; then
2238 ac_test_CFLAGS="${CFLAGS+set}"
2239 ac_save_CFLAGS="$CFLAGS"
2241 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2242 echo "configure:2243: checking whether ${CC-cc} accepts -g" >&5
2244 echo 'void f(){}' > conftest.c
2245 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2253 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2254 if test "$ac_test_CFLAGS" = set; then
2255 CFLAGS="$ac_save_CFLAGS"
2256 elif test $ac_cv_prog_cc_g = yes; then
2257 if test "$GCC" = yes; then
2263 if test "$GCC" = yes; then
2271 CFLAGS="$xe_save_CFLAGS"
2274 test -n "$CPP" -a -d "$CPP" && CPP=
2276 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP"
2278 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2279 echo "configure:2280: checking how to run the C preprocessor" >&5
2280 # On Suns, sometimes $CPP names a directory.
2281 if test -n "$CPP" && test -d "$CPP"; then
2284 if test -z "$CPP"; then
2286 # This must be in double quotes, not single quotes, because CPP may get
2287 # substituted into the Makefile and "${CC-cc}" will confuse make.
2289 # On the NeXT, cc -E runs the code through the compiler's parser,
2290 # not just through cpp.
2291 cat > conftest.$ac_ext <<EOF
2292 #line 2293 "configure"
2293 #include "confdefs.h"
2297 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2298 { (eval echo configure:2299: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2299 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2300 if test -z "$ac_err"; then
2304 echo "configure: failed program was:" >&5
2305 cat conftest.$ac_ext >&5
2307 CPP="${CC-cc} -E -traditional-cpp"
2308 cat > conftest.$ac_ext <<EOF
2309 #line 2310 "configure"
2310 #include "confdefs.h"
2314 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2315 { (eval echo configure:2316: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2316 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2317 if test -z "$ac_err"; then
2321 echo "configure: failed program was:" >&5
2322 cat conftest.$ac_ext >&5
2324 CPP="${CC-cc} -nologo -E"
2325 cat > conftest.$ac_ext <<EOF
2326 #line 2327 "configure"
2327 #include "confdefs.h"
2331 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2332 { (eval echo configure:2333: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2333 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2334 if test -z "$ac_err"; then
2338 echo "configure: failed program was:" >&5
2339 cat conftest.$ac_ext >&5
2348 ac_cv_prog_CPP="$CPP"
2349 CPP="$ac_cv_prog_CPP"
2351 ac_cv_prog_CPP="$CPP"
2353 echo "$ac_t""$CPP" 1>&6
2357 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2358 echo "configure:2359: checking for AIX" >&5
2359 cat > conftest.$ac_ext <<EOF
2360 #line 2361 "configure"
2361 #include "confdefs.h"
2367 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2368 egrep "yes" >/dev/null 2>&1; then
2370 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
2371 Defining _ALL_SOURCE
2373 cat >> confdefs.h <<\EOF
2374 #define _ALL_SOURCE 1
2380 echo "$ac_t""no" 1>&6
2386 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6
2387 echo "configure:2388: checking for GNU libc" >&5
2388 cat > conftest.$ac_ext <<EOF
2389 #line 2390 "configure"
2390 #include "confdefs.h"
2391 #include <features.h>
2394 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
2395 #error Not a GNU libc system :-(
2396 ******* ======= ******** &&&&&&&&
2401 if { (eval echo configure:2402: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2405 echo "configure: failed program was:" >&5
2406 cat conftest.$ac_ext >&5
2411 echo "$ac_t""$have_glibc" 1>&6
2412 test "$have_glibc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
2413 Defining _GNU_SOURCE
2415 cat >> confdefs.h <<\EOF
2416 #define _GNU_SOURCE 1
2423 { test "$extra_verbose" = "yes" && cat << \EOF
2424 Defining __EXTENSIONS__
2426 cat >> confdefs.h <<\EOF
2427 #define __EXTENSIONS__ 1
2431 if test "$os_release" -ge 55; then
2432 { test "$extra_verbose" = "yes" && cat << \EOF
2433 Defining _XOPEN_SOURCE = 500
2435 cat >> confdefs.h <<\EOF
2436 #define _XOPEN_SOURCE 500
2440 { test "$extra_verbose" = "yes" && cat << \EOF
2441 Defining _XOPEN_SOURCE_EXTENDED
2443 cat >> confdefs.h <<\EOF
2444 #define _XOPEN_SOURCE_EXTENDED 1
2450 { test "$extra_verbose" = "yes" && cat << \EOF
2451 Defining _POSIX_C_SOURCE = 199506L
2453 cat >> confdefs.h <<\EOF
2454 #define _POSIX_C_SOURCE 199506L
2458 { test "$extra_verbose" = "yes" && cat << \EOF
2459 Defining _XOPEN_SOURCE = 500
2461 cat >> confdefs.h <<\EOF
2462 #define _XOPEN_SOURCE 500
2466 { test "$extra_verbose" = "yes" && cat << \EOF
2467 Defining _XOPEN_SOURCE_EXTENDED
2469 cat >> confdefs.h <<\EOF
2470 #define _XOPEN_SOURCE_EXTENDED 1
2477 cat > conftest.$ac_ext <<EOF
2478 #line 2479 "configure"
2479 #include "confdefs.h"
2481 #if defined __SUNPRO_C
2483 #elif defined __DECC
2485 #elif defined __USLC__ && defined __SCO_VERSION__
2492 if { (eval echo configure:2493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
2497 echo "configure: failed program was:" >&5
2498 cat conftest.$ac_ext >&5
2500 case "$conftest_rc" in
2501 11) echo "You appear to be using the SunPro C compiler."; __SUNPRO_C=yes ;;
2502 12) echo "You appear to be using the DEC C compiler." ; __DECC=yes ;;
2503 13) echo "You appear to be using the SCO C compiler." ; __USLC__=yes ;;
2511 echo "Extracting information from the machine- and system-dependent headers..."
2513 tempcname="conftest.c"
2517 cat > $tempcname < confdefs.h
2518 cat >> $tempcname <<EOF
2520 #define C_SWITCH_SITE
2521 #define C_SWITCH_X_SITE
2522 #define LD_SWITCH_SITE
2523 #define LD_SWITCH_X_SITE
2524 #define LD_SWITCH_X_SITE_AUX
2525 #define OS_RELEASE $os_release
2527 #ifdef config_opsysfile
2528 #include "$srcdir/src/$opsysfile"
2531 #ifdef config_machfile
2532 #include "$srcdir/src/$machfile"
2535 #ifndef LIBS_MACHINE
2536 #define LIBS_MACHINE
2538 configure___ libs_machine=LIBS_MACHINE
2543 configure___ libs_system=LIBS_SYSTEM
2545 #ifndef LIBS_TERMCAP
2546 #define LIBS_TERMCAP
2548 configure___ libs_termcap=LIBS_TERMCAP
2550 #ifndef LIB_STANDARD
2551 #define LIB_STANDARD
2553 configure___ libs_standard=LIB_STANDARD
2556 #ifndef OBJECTS_MACHINE
2557 #define OBJECTS_MACHINE
2559 configure___ objects_machine=OBJECTS_MACHINE
2561 #ifndef OBJECTS_SYSTEM
2562 #define OBJECTS_SYSTEM
2564 configure___ objects_system=OBJECTS_SYSTEM
2567 #ifndef C_SWITCH_MACHINE
2568 #define C_SWITCH_MACHINE
2570 configure___ c_switch_machine=C_SWITCH_MACHINE
2572 #ifndef C_SWITCH_SYSTEM
2573 #define C_SWITCH_SYSTEM
2575 configure___ c_switch_system=C_SWITCH_SYSTEM
2578 #ifndef LD_SWITCH_MACHINE
2579 #define LD_SWITCH_MACHINE
2581 configure___ ld_switch_machine=LD_SWITCH_MACHINE
2583 #ifndef LD_SWITCH_SYSTEM
2584 #define LD_SWITCH_SYSTEM
2586 configure___ ld_switch_system=LD_SWITCH_SYSTEM
2590 #define UNEXEC "unexec.o"
2592 configure___ unexec=UNEXEC
2595 #ifndef LD_SWITCH_SHARED
2596 #define LD_SWITCH_SHARED "-c"
2598 configure___ ld_switch_shared=LD_SWITCH_SHARED
2601 #define ORDINARY_LD "\$(CC) \$(CFLAGS)"
2602 configure___ ordinary_ld=ORDINARY_LD
2604 #ifdef ORDINARY_LINK
2605 #define LD ORDINARY_LD
2606 #else /* no ORDINARY LINK */
2607 #ifdef COFF_ENCAPSULATE
2608 #define LD "\$(CC) -nostdlib"
2609 #else /* not COFF_ENCAPSULATE */
2612 #else /* ! defined (LINKER) */
2614 #endif /* ! defined (LINKER) */
2615 #endif /* ! defined (COFF_ENCAPSULATE) */
2616 #endif /* not ORDINARY_LINK */
2622 configure___ lib_gcc=LIB_GCC
2624 #ifndef LD_TEXT_START_ADDR
2625 #define LD_TEXT_START_ADDR
2627 configure___ ld_text_start_addr=LD_TEXT_START_ADDR
2630 #if ! defined (ORDINARY_LINK) && !defined (START_FILES)
2632 #ifdef COFF_ENCAPSULATE
2633 #define START_FILES "pre-crt0.o /usr/local/lib/gcc-crt0.o"
2634 #else /* ! defined (COFF_ENCAPSULATE) */
2635 #define START_FILES "pre-crt0.o /lib/crt0.o"
2636 #endif /* ! defined (COFF_ENCAPSULATE) */
2637 #else /* ! defined (NO_REMAP) */
2638 #define START_FILES "ecrt0.o"
2639 #endif /* ! defined (NO_REMAP) */
2640 #endif /* no ORDINARY_LINK */
2644 configure___ start_files=START_FILES
2646 #ifdef ORDINARY_LINK
2647 configure___ ordinary_link=yes
2649 configure___ ordinary_link=no
2652 #ifdef SYSTEM_MALLOC
2653 configure___ system_malloc=yes
2655 configure___ system_malloc=no
2659 configure___ have_terminfo=yes
2661 configure___ have_terminfo=no
2664 #ifdef MAIL_USE_FLOCK
2665 configure___ mail_use_flock=yes
2667 configure___ mail_use_flock=no
2670 #ifdef MAIL_USE_LOCKF
2671 configure___ mail_use_lockf=yes
2673 configure___ mail_use_lockf=no
2676 #ifdef MAIL_USE_LOCKING
2677 configure___ mail_use_locking=yes
2679 configure___ mail_use_locking=no
2682 #ifdef HAVE_WIN32_PROCESSES
2683 configure___ win32_processes=yes
2685 configure___ win32_processes=no
2690 CPP=`eval "echo $CPP $CPPFLAGS"`
2691 eval `$CPP -Isrc $tempcname \
2692 | sed -n -e "s/[ ]*=[ \"]*/='/" -e "s/[ \"]*\$/'/" -e "s/^configure___//p"`
2696 if test "$pdump" = "yes"; then
2705 test "$extra_verbose" = "yes" && \
2706 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 ""
2708 case "$opsys" in mingw* | cygwin*)
2709 cygwin_include=`eval "gcc -print-file-name=libc.a"` ;
2710 cygwin_include=`eval "dirname $cygwin_include"` ;
2711 cygwin_include="-I$cygwin_include/../include" ;
2712 extra_includes="$cygwin_include/mingw $cygwin_include" ;
2713 case "$opsys" in mingw*)
2714 c_switch_system="$c_switch_system $extra_includes" && if test "$extra_verbose" = "yes"; then echo " Appending \"$extra_includes\" to \$c_switch_system"; fi ;;
2719 test "$ordinary_link" = "no" -a -z "$libs_standard" && libs_standard="-lc"
2722 test "$__DECC" = "yes" && c_switch_site="$c_switch_site -std1" && if test "$extra_verbose" = "yes"; then echo " Appending \"-std1\" to \$c_switch_site"; fi
2724 if test "$__USLC__" = yes; then
2725 echo $ac_n "checking for whether the -Kalloca compiler flag is needed""... $ac_c" 1>&6
2726 echo "configure:2727: checking for whether the -Kalloca compiler flag is needed" >&5
2728 cat > conftest.$ac_ext <<EOF
2729 #line 2730 "configure"
2730 #include "confdefs.h"
2733 void *x = alloca(4);
2736 if { (eval echo configure:2737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2740 echo "configure: failed program was:" >&5
2741 cat conftest.$ac_ext >&5
2744 xe_save_c_switch_system="$c_switch_system"
2745 c_switch_system="$c_switch_system -Kalloca"
2746 cat > conftest.$ac_ext <<EOF
2747 #line 2748 "configure"
2748 #include "confdefs.h"
2751 void *x = alloca(4);
2754 if { (eval echo configure:2755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2758 echo "configure: failed program was:" >&5
2759 cat conftest.$ac_ext >&5
2762 c_switch_system="$xe_save_c_switch_system"
2765 echo "$ac_t""$need_kalloca" 1>&6
2766 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
2769 if test "$cflags_specified" = "no"; then
2770 if test "$GCC" = "yes"; then
2771 CFLAGS="-g -O3 -Wall -Wno-switch -Winline -Wmissing-prototypes"
2772 CFLAGS="$CFLAGS -Wsign-compare"
2773 if test "$xemacs_compiler" != "g++"; then
2774 CFLAGS="$CFLAGS -Wshadow"
2776 test "$have_glibc" != "yes" && CFLAGS="$CFLAGS -Wpointer-arith"
2777 elif test "$__SUNPRO_C" = "yes"; then
2779 sol2 ) CFLAGS="-v -xO4" ;;
2780 sunos4* ) CFLAGS="-xO2";;
2782 elif test "$__DECC" = "yes"; then
2784 elif test "$CC" = "xlc"; then
2785 CFLAGS="-g -O3 -qstrict -qnoansialias -qlibansi -qinfo -qro -qmaxmem=20000"
2790 if test "$GCC" = "yes"; then
2791 echo $ac_n "checking for buggy gcc versions""... $ac_c" 1>&6
2792 echo "configure:2793: checking for buggy gcc versions" >&5
2793 GCC_VERSION=`$CC --version`
2794 case `uname -s`:`uname -m`:$GCC_VERSION in
2795 *:sun4*:2.8.1|*:sun4*:egcs-2.90.*)
2799 *-fno-schedule-insns*) ;;
2801 echo "$ac_t""yes" 1>&6
2802 echo "configure: warning: Don't use -O2 with gcc 2.8.1 and egcs 1.0 under SPARC architectures" 1>&2
2803 echo "configure: warning: without also using -fno-schedule-insns." 1>&2
2804 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2810 Linux:alpha:egcs-2.91.*)
2811 echo "$ac_t""yes" 1>&6
2812 echo "configure: warning: There have been reports of egcs-1.1 not compiling XEmacs correctly on" 1>&2
2813 echo "configure: warning: Alpha Linux. There have also been reports that egcs-1.0.3a is O.K." 1>&2
2814 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2819 case "$GCC_VERSION" in
2822 *-fno-strength-reduce*) ;;
2824 echo "$ac_t""yes" 1>&6
2825 echo "configure: warning: Don't use -O2 with gcc 2.7.2 under Intel/XXX without also using" 1>&2
2826 echo "configure: warning: -fno-strength-reduce." 1>&2
2827 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2833 *-fno-caller-saves*) ;;
2835 echo "$ac_t""yes" 1>&6
2836 echo "configure: warning: Don't use -O2 with gcc 2.7.2 under Intel/XXX without also using" 1>&2
2837 echo "configure: warning: -fno-caller-saves." 1>&2
2838 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2845 echo "$ac_t""no" 1>&6
2849 if test "$GCC" = "yes"; then
2850 set x $ld_switch_system; shift; ld_switch_system=""
2851 while test -n "$1"; do
2853 -L | -l | -u ) ld_switch_system="$ld_switch_system $1 $2"; shift ;;
2854 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_system="$ld_switch_system $1" ;;
2856 * ) ld_switch_system="$ld_switch_system -Xlinker $1" ;;
2862 if test "$GCC" = "yes"; then
2863 set x $ld_switch_machine; shift; ld_switch_machine=""
2864 while test -n "$1"; do
2866 -L | -l | -u ) ld_switch_machine="$ld_switch_machine $1 $2"; shift ;;
2867 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_machine="$ld_switch_machine $1" ;;
2869 * ) ld_switch_machine="$ld_switch_machine -Xlinker $1" ;;
2875 if test "$GCC" = "yes"; then
2876 set x $LDFLAGS; shift; LDFLAGS=""
2877 while test -n "$1"; do
2879 -L | -l | -u ) LDFLAGS="$LDFLAGS $1 $2"; shift ;;
2880 -L* | -l* | -u* | -Wl* | -pg ) LDFLAGS="$LDFLAGS $1" ;;
2882 * ) LDFLAGS="$LDFLAGS -Xlinker $1" ;;
2888 if test "$GCC" = "yes"; then
2889 set x $ld_call_shared; shift; ld_call_shared=""
2890 while test -n "$1"; do
2892 -L | -l | -u ) ld_call_shared="$ld_call_shared $1 $2"; shift ;;
2893 -L* | -l* | -u* | -Wl* | -pg ) ld_call_shared="$ld_call_shared $1" ;;
2895 * ) ld_call_shared="$ld_call_shared -Xlinker $1" ;;
2901 test -n "$objects_machine" && extra_objs="$extra_objs $objects_machine" && if test "$extra_verbose" = "yes"; then
2902 echo " xemacs will be linked with \"$objects_machine\""
2904 test -n "$objects_system" && extra_objs="$extra_objs $objects_system" && if test "$extra_verbose" = "yes"; then
2905 echo " xemacs will be linked with \"$objects_system\""
2907 test -n "$unexec" && test ! "$pdump" = "yes" && extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then
2908 echo " xemacs will be linked with \"$unexec\""
2910 test "$pdump" = "yes" && extra_objs="$extra_objs dumper.o" && if test "$extra_verbose" = "yes"; then
2911 echo " xemacs will be linked with \"dumper.o\""
2914 echo $ac_n "checking for dynodump""... $ac_c" 1>&6
2915 echo "configure:2916: checking for dynodump" >&5
2916 if test "$unexec" != "unexsol2.o"; then
2917 echo "$ac_t""no" 1>&6
2919 echo "$ac_t""yes" 1>&6
2920 { test "$extra_verbose" = "yes" && cat << \EOF
2923 cat >> confdefs.h <<\EOF
2928 MAKE_SUBDIR="$MAKE_SUBDIR dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$MAKE_SUBDIR"; fi
2929 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$SRC_SUBDIR_DEPS"; fi
2931 sparc ) dynodump_arch=sparc ;;
2932 *86* ) dynodump_arch=i386 ;;
2933 powerpc ) dynodump_arch=ppc ;;
2935 test "$GCC" = "yes" && ld_switch_site="$ld_switch_site -fno-gnu-linker" && if test "$extra_verbose" = "yes"; then echo " Appending \"-fno-gnu-linker\" to \$ld_switch_site"; fi
2939 test "$machine$opsys" = "powerpclinux" && start_flags="-T $srcdir/src/ppc.ldscript"
2941 if test "$unexec" = "unexaix.o"; then
2942 if test "$dynamic" = "no"; then
2943 start_flags="-Wl,-bnso,-bnodelcsect"
2944 test "$GCC" = "yes" && start_flags="-B/bin/ ${start_flags}"
2945 for f in "/lib/syscalls.exp" "/lib/threads.exp"; do
2946 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; fi
2948 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do
2949 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi
2952 echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6
2953 echo "configure:2954: checking for terminateAndUnload in -lC" >&5
2954 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'`
2956 xe_check_libs=" -lC "
2957 cat > conftest.$ac_ext <<EOF
2958 #line 2959 "configure"
2959 #include "confdefs.h"
2960 /* Override any gcc2 internal prototype to avoid an error. */
2961 /* We use char because int might match the return type of a gcc2
2962 builtin and then its argument prototype would still apply. */
2963 char terminateAndUnload();
2966 terminateAndUnload()
2969 if { (eval echo configure:2970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2971 eval "ac_cv_lib_$ac_lib_var=yes"
2973 echo "configure: failed program was:" >&5
2974 cat conftest.$ac_ext >&5
2976 eval "ac_cv_lib_$ac_lib_var=no"
2981 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
2982 echo "$ac_t""yes" 1>&6
2983 libs_system="$libs_system -lC" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lC\" to \$libs_system"; fi
2985 echo "$ac_t""no" 1>&6
2990 elif test -n "$ld_text_start_addr"; then
2991 start_flags="-T $ld_text_start_addr -e __start"
2997 if test "$ordinary_link" = "no" -a "$GCC" = "yes"; then
2998 test -z "$linker" && linker='$(CC) -nostdlib'
2999 test -z "$lib_gcc" && lib_gcc='`$(CC) -print-libgcc-file-name`'
3001 test "$GCC" != "yes" && lib_gcc=
3007 case "$site_libraries" in *:* ) site_libraries="`echo '' $site_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
3008 if test -n "$site_libraries"; then
3009 for arg in $site_libraries; do
3012 * ) test -d "$arg" || \
3013 { echo "Error:" "Invalid site library \`$arg': no such directory" >&2; exit 1; }
3016 ld_switch_site="$ld_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$ld_switch_site"; fi
3020 case "$site_includes" in *:* ) site_includes="`echo '' $site_includes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
3021 if test -n "$site_includes"; then
3022 for arg in $site_includes; do
3025 * ) test -d "$arg" || \
3026 { echo "Error:" "Invalid site include \`$arg': no such directory" >&2; exit 1; }
3029 c_switch_site="$c_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$c_switch_site"; fi
3033 case "$site_prefixes" in *:* ) site_prefixes="`echo '' $site_prefixes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
3034 if test -n "$site_prefixes"; then
3035 for dir in $site_prefixes; do
3036 lib_dir="${dir}/lib"
3037 inc_dir="${dir}/include"
3038 if test ! -d "$dir"; then
3039 { echo "Error:" "Invalid site prefix \`$dir': no such directory" >&2; exit 1; }
3040 elif test ! -d "$lib_dir"; then
3041 { echo "Error:" "Invalid site prefix \`$dir': no such directory \`$lib_dir'" >&2; exit 1; }
3043 if test -d "$inc_dir"; then
3044 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
3046 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
3052 for dir in "/usr/ccs/lib"; do
3053 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
3056 case "$site_runtime_libraries" in *:* ) site_runtime_libraries="`echo '' $site_runtime_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
3057 if test -n "$site_runtime_libraries"; then
3058 LD_RUN_PATH="`echo $site_runtime_libraries | sed -e 's/ */:/g'`"
3066 if test -n "$add_runtime_path"; then :;
3067 elif test "$dynamic" = "no"; then add_runtime_path=no
3068 elif test -n "$LD_RUN_PATH"; then add_runtime_path=yes
3069 else case "$opsys" in
3070 sol2 | irix* | *bsd* | decosf* ) add_runtime_path=yes ;;
3071 * ) add_runtime_path=no ;;
3075 if test "$add_runtime_path" = "yes"; then
3076 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6
3077 echo "configure:3078: checking "for runtime libraries flag"" >&5
3079 sol2 ) dash_r="-R" ;;
3080 decosf* | linux* | irix*) dash_r="-rpath " ;;
3083 for try_dash_r in "-R" "-R " "-rpath "; do
3084 xe_check_libs="${try_dash_r}/no/such/file-or-directory"
3086 if test "$GCC" = "yes"; then
3087 set x $xe_check_libs; shift; xe_check_libs=""
3088 while test -n "$1"; do
3090 -L | -l | -u ) xe_check_libs="$xe_check_libs $1 $2"; shift ;;
3091 -L* | -l* | -u* | -Wl* | -pg ) xe_check_libs="$xe_check_libs $1" ;;
3093 * ) xe_check_libs="$xe_check_libs -Xlinker $1" ;;
3098 cat > conftest.$ac_ext <<EOF
3099 #line 3100 "configure"
3100 #include "confdefs.h"
3106 if { (eval echo configure:3107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3108 dash_r="$try_dash_r"
3110 echo "configure: failed program was:" >&5
3111 cat conftest.$ac_ext >&5
3115 test -n "$dash_r" && break
3118 if test -n "$dash_r";
3119 then echo "$ac_t"""\"${dash_r}\""" 1>&6
3120 else echo "$ac_t""NONE" 1>&6
3124 xe_add_unique_runpath_dir='
3126 for xe_dir in $runpath_dirs; do test "$xe_dir" = "$xe_runpath_dir" && xe_add_p=no
3128 if test "$xe_add_p" = "yes"; then
3129 test -n "$runpath" && runpath="${runpath}:"
3130 runpath="${runpath}${xe_runpath_dir}"
3131 runpath_dirs="$runpath_dirs $xe_runpath_dir"
3137 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
3138 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
3139 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
3141 runpath="" runpath_dirs=""
3142 if test -n "$LD_RUN_PATH"; then
3143 runpath="$LD_RUN_PATH"
3144 elif test "$GCC" = "yes"; then
3145 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
3146 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
3147 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
3148 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
3149 case "$arg" in P,* | -L* | -R* )
3150 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
3152 xe_runpath_dir="$dir"
3153 test "$xe_runpath_dir" != "/lib" -a \
3154 "$xe_runpath_dir" != "/usr/lib" -a \
3155 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
3156 eval "$xe_add_unique_runpath_dir"
3161 ld_switch_run="$ld_switch_run_save"
3164 for arg in $ld_switch_site $ld_switch_x_site; do
3165 case "$arg" in -L*) {
3166 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
3167 test "$xe_runpath_dir" != "/lib" -a \
3168 "$xe_runpath_dir" != "/usr/lib" -a \
3169 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
3170 eval "$xe_add_unique_runpath_dir"
3173 if test "$opsys $need_motif" = "sol2 yes"; then
3174 xe_runpath_dir="/opt/SUNWdt/lib";
3175 eval "$xe_add_unique_runpath_dir";
3178 if test -n "$runpath"; then
3179 ld_switch_run="${dash_r}${runpath}"
3181 if test "$GCC" = "yes"; then
3182 set x $ld_switch_run; shift; ld_switch_run=""
3183 while test -n "$1"; do
3185 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
3186 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
3188 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
3193 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
3200 if test "$with_dlmalloc" != "no"; then
3205 after_morecore_hook_exists=yes
3206 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
3207 echo "configure:3208: checking for malloc_set_state" >&5
3209 cat > conftest.$ac_ext <<EOF
3210 #line 3211 "configure"
3211 #include "confdefs.h"
3212 /* System header to define __stub macros and hopefully few prototypes,
3213 which can conflict with char malloc_set_state(); below. */
3215 /* Override any gcc2 internal prototype to avoid an error. */
3216 /* We use char because int might match the return type of a gcc2
3217 builtin and then its argument prototype would still apply. */
3218 char malloc_set_state();
3222 /* The GNU C library defines this for functions which it implements
3223 to always fail with ENOSYS. Some functions are actually named
3224 something starting with __ and the normal name is an alias. */
3225 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
3233 if { (eval echo configure:3234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3235 eval "ac_cv_func_malloc_set_state=yes"
3237 echo "configure: failed program was:" >&5
3238 cat conftest.$ac_ext >&5
3240 eval "ac_cv_func_malloc_set_state=no"
3244 if eval "test \"`echo '$ac_cv_func_'malloc_set_state`\" = yes"; then
3245 echo "$ac_t""yes" 1>&6
3248 echo "$ac_t""no" 1>&6
3252 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
3253 echo "configure:3254: checking whether __after_morecore_hook exists" >&5
3254 cat > conftest.$ac_ext <<EOF
3255 #line 3256 "configure"
3256 #include "confdefs.h"
3257 extern void (* __after_morecore_hook)();
3259 __after_morecore_hook = 0
3262 if { (eval echo configure:3263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3264 echo "$ac_t""yes" 1>&6
3266 echo "configure: failed program was:" >&5
3267 cat conftest.$ac_ext >&5
3269 echo "$ac_t""no" 1>&6
3270 after_morecore_hook_exists=no
3273 if test "$system_malloc" = "yes" ; then
3276 - The GNU allocators don't work with this system configuration."
3277 elif test "$with_system_malloc" = "yes" ; then
3280 - User chose not to use GNU allocators."
3281 elif test "$with_debug_malloc" = "yes" ; then
3284 - User chose to use Debugging Malloc."
3287 if test "$doug_lea_malloc" = "yes" -a "$GNU_MALLOC" = "yes" ; then
3289 - Using Doug Lea's new malloc from the GNU C Library."
3290 { test "$extra_verbose" = "yes" && cat << \EOF
3291 Defining DOUG_LEA_MALLOC
3293 cat >> confdefs.h <<\EOF
3294 #define DOUG_LEA_MALLOC 1
3298 if test "$after_morecore_hook_exists" = "no" ; then
3300 - Using Doug Lea's new malloc from the Linux C Library."
3301 { test "$extra_verbose" = "yes" && cat << \EOF
3302 Defining _NO_MALLOC_WARNING_
3304 cat >> confdefs.h <<\EOF
3305 #define _NO_MALLOC_WARNING_ 1
3315 # Extract the first word of "ranlib", so it can be a program name with args.
3316 set dummy ranlib; ac_word=$2
3317 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3318 echo "configure:3319: checking for $ac_word" >&5
3320 if test -n "$RANLIB"; then
3321 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3323 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3325 for ac_dir in $ac_dummy; do
3326 test -z "$ac_dir" && ac_dir=.
3327 if test -f $ac_dir/$ac_word; then
3328 ac_cv_prog_RANLIB="ranlib"
3333 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
3335 RANLIB="$ac_cv_prog_RANLIB"
3336 if test -n "$RANLIB"; then
3337 echo "$ac_t""$RANLIB" 1>&6
3339 echo "$ac_t""no" 1>&6
3343 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3344 if test -f $ac_dir/install-sh; then
3346 ac_install_sh="$ac_aux_dir/install-sh -c"
3348 elif test -f $ac_dir/install.sh; then
3350 ac_install_sh="$ac_aux_dir/install.sh -c"
3354 if test -z "$ac_aux_dir"; then
3355 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
3357 ac_config_guess=$ac_aux_dir/config.guess
3358 ac_config_sub=$ac_aux_dir/config.sub
3359 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
3361 # Find a good install program. We prefer a C program (faster),
3362 # so one script is as good as another. But avoid the broken or
3363 # incompatible versions:
3364 # SysV /etc/install, /usr/sbin/install
3365 # SunOS /usr/etc/install
3366 # IRIX /sbin/install
3368 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3369 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3370 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3371 # ./install, which can be erroneously created by make from ./install.sh.
3372 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3373 echo "configure:3374: checking for a BSD compatible install" >&5
3374 if test -z "$INSTALL"; then
3376 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3377 for ac_dir in $PATH; do
3378 # Account for people who put trailing slashes in PATH elements.
3380 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3382 # OSF1 and SCO ODT 3.0 have their own names for install.
3383 # Don't use installbsd from OSF since it installs stuff as root
3385 for ac_prog in ginstall scoinst install; do
3386 if test -f $ac_dir/$ac_prog; then
3387 if test $ac_prog = install &&
3388 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3389 # AIX install. It has an incompatible calling convention.
3392 ac_cv_path_install="$ac_dir/$ac_prog -c"
3402 if test "${ac_cv_path_install+set}" = set; then
3403 INSTALL="$ac_cv_path_install"
3405 # As a last resort, use the slow shell script. We don't cache a
3406 # path for INSTALL within a source directory, because that will
3407 # break other packages using the cache if that directory is
3408 # removed, or if the path is relative.
3409 INSTALL="$ac_install_sh"
3412 echo "$ac_t""$INSTALL" 1>&6
3414 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3415 # It thinks the first close brace ends the variable substitution.
3416 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3418 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3420 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3422 for ac_prog in 'bison -y' byacc
3424 # Extract the first word of "$ac_prog", so it can be a program name with args.
3425 set dummy $ac_prog; ac_word=$2
3426 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3427 echo "configure:3428: checking for $ac_word" >&5
3429 if test -n "$YACC"; then
3430 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3432 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3434 for ac_dir in $ac_dummy; do
3435 test -z "$ac_dir" && ac_dir=.
3436 if test -f $ac_dir/$ac_word; then
3437 ac_cv_prog_YACC="$ac_prog"
3443 YACC="$ac_cv_prog_YACC"
3444 if test -n "$YACC"; then
3445 echo "$ac_t""$YACC" 1>&6
3447 echo "$ac_t""no" 1>&6
3450 test -n "$YACC" && break
3452 test -n "$YACC" || YACC="yacc"
3455 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
3457 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3458 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3459 echo "configure:3460: checking for $ac_hdr" >&5
3461 cat > conftest.$ac_ext <<EOF
3462 #line 3463 "configure"
3463 #include "confdefs.h"
3466 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3467 { (eval echo configure:3468: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3468 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3469 if test -z "$ac_err"; then
3471 eval "ac_cv_header_$ac_safe=yes"
3474 echo "configure: failed program was:" >&5
3475 cat conftest.$ac_ext >&5
3477 eval "ac_cv_header_$ac_safe=no"
3480 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3481 echo "$ac_t""yes" 1>&6
3482 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3483 { test "$extra_verbose" = "yes" && cat << EOF
3486 cat >> confdefs.h <<EOF
3487 #define $ac_tr_hdr 1
3492 echo "$ac_t""no" 1>&6
3496 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
3497 echo "configure:3498: checking for sys/wait.h that is POSIX.1 compatible" >&5
3499 cat > conftest.$ac_ext <<EOF
3500 #line 3501 "configure"
3501 #include "confdefs.h"
3502 #include <sys/types.h>
3503 #include <sys/wait.h>
3505 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3508 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3513 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3516 if { (eval echo configure:3517: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3518 ac_cv_header_sys_wait_h=yes
3520 echo "configure: failed program was:" >&5
3521 cat conftest.$ac_ext >&5
3523 ac_cv_header_sys_wait_h=no
3527 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
3528 if test $ac_cv_header_sys_wait_h = yes; then
3529 { test "$extra_verbose" = "yes" && cat << \EOF
3530 Defining HAVE_SYS_WAIT_H
3532 cat >> confdefs.h <<\EOF
3533 #define HAVE_SYS_WAIT_H 1
3539 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3540 echo "configure:3541: checking for ANSI C header files" >&5
3542 cat > conftest.$ac_ext <<EOF
3543 #line 3544 "configure"
3544 #include "confdefs.h"
3550 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3551 { (eval echo configure:3552: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3552 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3553 if test -z "$ac_err"; then
3555 ac_cv_header_stdc=yes
3558 echo "configure: failed program was:" >&5
3559 cat conftest.$ac_ext >&5
3561 ac_cv_header_stdc=no
3565 if test $ac_cv_header_stdc = yes; then
3566 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3567 cat > conftest.$ac_ext <<EOF
3568 #line 3569 "configure"
3569 #include "confdefs.h"
3572 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3573 egrep "memchr" >/dev/null 2>&1; then
3577 ac_cv_header_stdc=no
3583 if test $ac_cv_header_stdc = yes; then
3584 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3585 cat > conftest.$ac_ext <<EOF
3586 #line 3587 "configure"
3587 #include "confdefs.h"
3590 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3591 egrep "free" >/dev/null 2>&1; then
3595 ac_cv_header_stdc=no
3601 if test $ac_cv_header_stdc = yes; then
3602 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3603 cat > conftest.$ac_ext <<EOF
3604 #line 3605 "configure"
3605 #include "confdefs.h"
3607 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3608 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3609 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3610 int main () { int i; for (i = 0; i < 256; i++)
3611 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3615 if { (eval echo configure:3616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
3620 echo "configure: failed program was:" >&5
3621 cat conftest.$ac_ext >&5
3623 ac_cv_header_stdc=no
3628 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3629 if test $ac_cv_header_stdc = yes; then
3630 { test "$extra_verbose" = "yes" && cat << \EOF
3631 Defining STDC_HEADERS
3633 cat >> confdefs.h <<\EOF
3634 #define STDC_HEADERS 1
3640 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3641 echo "configure:3642: checking whether time.h and sys/time.h may both be included" >&5
3643 cat > conftest.$ac_ext <<EOF
3644 #line 3645 "configure"
3645 #include "confdefs.h"
3646 #include <sys/types.h>
3647 #include <sys/time.h>
3653 if { (eval echo configure:3654: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3655 ac_cv_header_time=yes
3657 echo "configure: failed program was:" >&5
3658 cat conftest.$ac_ext >&5
3660 ac_cv_header_time=no
3664 echo "$ac_t""$ac_cv_header_time" 1>&6
3665 if test $ac_cv_header_time = yes; then
3666 { test "$extra_verbose" = "yes" && cat << \EOF
3667 Defining TIME_WITH_SYS_TIME
3669 cat >> confdefs.h <<\EOF
3670 #define TIME_WITH_SYS_TIME 1
3676 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
3677 echo "configure:3678: checking for sys_siglist declaration in signal.h or unistd.h" >&5
3679 cat > conftest.$ac_ext <<EOF
3680 #line 3681 "configure"
3681 #include "confdefs.h"
3682 #include <sys/types.h>
3684 /* NetBSD declares sys_siglist in unistd.h. */
3685 #ifdef HAVE_UNISTD_H
3689 char *msg = *(sys_siglist + 1);
3692 if { (eval echo configure:3693: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3694 ac_cv_decl_sys_siglist=yes
3696 echo "configure: failed program was:" >&5
3697 cat conftest.$ac_ext >&5
3699 ac_cv_decl_sys_siglist=no
3703 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
3704 if test $ac_cv_decl_sys_siglist = yes; then
3705 { test "$extra_verbose" = "yes" && cat << \EOF
3706 Defining SYS_SIGLIST_DECLARED
3708 cat >> confdefs.h <<\EOF
3709 #define SYS_SIGLIST_DECLARED 1
3717 echo $ac_n "checking for utime""... $ac_c" 1>&6
3718 echo "configure:3719: checking for utime" >&5
3719 cat > conftest.$ac_ext <<EOF
3720 #line 3721 "configure"
3721 #include "confdefs.h"
3722 #include <sys/types.h>
3725 struct utimbuf x; x.actime = x.modtime = 0; utime ("/", &x);
3728 if { (eval echo configure:3729: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3730 echo "$ac_t""yes" 1>&6
3731 { test "$extra_verbose" = "yes" && cat << \EOF
3734 cat >> confdefs.h <<\EOF
3735 #define HAVE_UTIME 1
3740 echo "configure: failed program was:" >&5
3741 cat conftest.$ac_ext >&5
3743 echo "$ac_t""no" 1>&6
3744 for ac_func in utimes
3746 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3747 echo "configure:3748: checking for $ac_func" >&5
3749 cat > conftest.$ac_ext <<EOF
3750 #line 3751 "configure"
3751 #include "confdefs.h"
3752 /* System header to define __stub macros and hopefully few prototypes,
3753 which can conflict with char $ac_func(); below. */
3755 /* Override any gcc2 internal prototype to avoid an error. */
3756 /* We use char because int might match the return type of a gcc2
3757 builtin and then its argument prototype would still apply. */
3762 /* The GNU C library defines this for functions which it implements
3763 to always fail with ENOSYS. Some functions are actually named
3764 something starting with __ and the normal name is an alias. */
3765 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3773 if { (eval echo configure:3774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3775 eval "ac_cv_func_$ac_func=yes"
3777 echo "configure: failed program was:" >&5
3778 cat conftest.$ac_ext >&5
3780 eval "ac_cv_func_$ac_func=no"
3784 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3785 echo "$ac_t""yes" 1>&6
3786 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3787 { test "$extra_verbose" = "yes" && cat << EOF
3788 Defining $ac_tr_func
3790 cat >> confdefs.h <<EOF
3791 #define $ac_tr_func 1
3796 echo "$ac_t""no" 1>&6
3804 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3805 echo "configure:3806: checking return type of signal handlers" >&5
3807 cat > conftest.$ac_ext <<EOF
3808 #line 3809 "configure"
3809 #include "confdefs.h"
3810 #include <sys/types.h>
3816 extern "C" void (*signal (int, void (*)(int)))(int);
3818 void (*signal ()) ();
3825 if { (eval echo configure:3826: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3827 ac_cv_type_signal=void
3829 echo "configure: failed program was:" >&5
3830 cat conftest.$ac_ext >&5
3832 ac_cv_type_signal=int
3836 echo "$ac_t""$ac_cv_type_signal" 1>&6
3837 { test "$extra_verbose" = "yes" && cat << EOF
3838 Defining RETSIGTYPE = $ac_cv_type_signal
3840 cat >> confdefs.h <<EOF
3841 #define RETSIGTYPE $ac_cv_type_signal
3846 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3847 echo "configure:3848: checking for size_t" >&5
3849 cat > conftest.$ac_ext <<EOF
3850 #line 3851 "configure"
3851 #include "confdefs.h"
3852 #include <sys/types.h>
3858 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3859 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3861 ac_cv_type_size_t=yes
3864 ac_cv_type_size_t=no
3868 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3869 if test $ac_cv_type_size_t = no; then
3870 { test "$extra_verbose" = "yes" && cat << \EOF
3871 Defining size_t = unsigned
3873 cat >> confdefs.h <<\EOF
3874 #define size_t unsigned
3880 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3881 echo "configure:3882: checking for pid_t" >&5
3883 cat > conftest.$ac_ext <<EOF
3884 #line 3885 "configure"
3885 #include "confdefs.h"
3886 #include <sys/types.h>
3892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3893 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3895 ac_cv_type_pid_t=yes
3902 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3903 if test $ac_cv_type_pid_t = no; then
3904 { test "$extra_verbose" = "yes" && cat << \EOF
3905 Defining pid_t = int
3907 cat >> confdefs.h <<\EOF
3914 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3915 echo "configure:3916: checking for uid_t in sys/types.h" >&5
3917 cat > conftest.$ac_ext <<EOF
3918 #line 3919 "configure"
3919 #include "confdefs.h"
3920 #include <sys/types.h>
3922 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3923 egrep "uid_t" >/dev/null 2>&1; then
3925 ac_cv_type_uid_t=yes
3933 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3934 if test $ac_cv_type_uid_t = no; then
3935 { test "$extra_verbose" = "yes" && cat << \EOF
3936 Defining uid_t = int
3938 cat >> confdefs.h <<\EOF
3943 { test "$extra_verbose" = "yes" && cat << \EOF
3944 Defining gid_t = int
3946 cat >> confdefs.h <<\EOF
3953 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3954 echo "configure:3955: checking for mode_t" >&5
3956 cat > conftest.$ac_ext <<EOF
3957 #line 3958 "configure"
3958 #include "confdefs.h"
3959 #include <sys/types.h>
3965 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3966 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3968 ac_cv_type_mode_t=yes
3971 ac_cv_type_mode_t=no
3975 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3976 if test $ac_cv_type_mode_t = no; then
3977 { test "$extra_verbose" = "yes" && cat << \EOF
3978 Defining mode_t = int
3980 cat >> confdefs.h <<\EOF
3987 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3988 echo "configure:3989: checking for off_t" >&5
3990 cat > conftest.$ac_ext <<EOF
3991 #line 3992 "configure"
3992 #include "confdefs.h"
3993 #include <sys/types.h>
3999 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4000 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4002 ac_cv_type_off_t=yes
4009 echo "$ac_t""$ac_cv_type_off_t" 1>&6
4010 if test $ac_cv_type_off_t = no; then
4011 { test "$extra_verbose" = "yes" && cat << \EOF
4012 Defining off_t = long
4014 cat >> confdefs.h <<\EOF
4021 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
4022 echo "configure:4023: checking for ssize_t" >&5
4024 cat > conftest.$ac_ext <<EOF
4025 #line 4026 "configure"
4026 #include "confdefs.h"
4027 #include <sys/types.h>
4033 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4034 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4036 ac_cv_type_ssize_t=yes
4039 ac_cv_type_ssize_t=no
4043 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
4044 if test $ac_cv_type_ssize_t = no; then
4045 { test "$extra_verbose" = "yes" && cat << \EOF
4046 Defining ssize_t = int
4048 cat >> confdefs.h <<\EOF
4056 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
4057 echo "configure:4058: checking for socklen_t" >&5
4058 cat > conftest.$ac_ext <<EOF
4059 #line 4060 "configure"
4060 #include "confdefs.h"
4061 #include <sys/socket.h>
4068 if { (eval echo configure:4069: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4070 echo "$ac_t""yes" 1>&6
4072 echo "configure: failed program was:" >&5
4073 cat conftest.$ac_ext >&5
4076 cat > conftest.$ac_ext <<EOF
4077 #line 4078 "configure"
4078 #include "confdefs.h"
4079 #include <sys/socket.h>
4080 int accept (int, struct sockaddr *, size_t *);
4086 if { (eval echo configure:4087: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4089 echo "$ac_t""size_t" 1>&6
4090 { test "$extra_verbose" = "yes" && cat << \EOF
4091 Defining socklen_t = size_t
4093 cat >> confdefs.h <<\EOF
4094 #define socklen_t size_t
4099 echo "configure: failed program was:" >&5
4100 cat conftest.$ac_ext >&5
4103 echo "$ac_t""int" 1>&6
4104 { test "$extra_verbose" = "yes" && cat << \EOF
4105 Defining socklen_t = int
4107 cat >> confdefs.h <<\EOF
4108 #define socklen_t int
4117 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
4118 echo "configure:4119: checking for struct timeval" >&5
4119 cat > conftest.$ac_ext <<EOF
4120 #line 4121 "configure"
4121 #include "confdefs.h"
4122 #ifdef TIME_WITH_SYS_TIME
4123 #include <sys/time.h>
4126 #ifdef HAVE_SYS_TIME_H
4127 #include <sys/time.h>
4133 static struct timeval x; x.tv_sec = x.tv_usec;
4136 if { (eval echo configure:4137: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4138 echo "$ac_t""yes" 1>&6
4140 { test "$extra_verbose" = "yes" && cat << \EOF
4141 Defining HAVE_TIMEVAL
4143 cat >> confdefs.h <<\EOF
4144 #define HAVE_TIMEVAL 1
4149 echo "configure: failed program was:" >&5
4150 cat conftest.$ac_ext >&5
4152 echo "$ac_t""no" 1>&6
4157 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
4158 echo "configure:4159: checking whether struct tm is in sys/time.h or time.h" >&5
4160 cat > conftest.$ac_ext <<EOF
4161 #line 4162 "configure"
4162 #include "confdefs.h"
4163 #include <sys/types.h>
4166 struct tm *tp; tp->tm_sec;
4169 if { (eval echo configure:4170: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4171 ac_cv_struct_tm=time.h
4173 echo "configure: failed program was:" >&5
4174 cat conftest.$ac_ext >&5
4176 ac_cv_struct_tm=sys/time.h
4180 echo "$ac_t""$ac_cv_struct_tm" 1>&6
4181 if test $ac_cv_struct_tm = sys/time.h; then
4182 { test "$extra_verbose" = "yes" && cat << \EOF
4183 Defining TM_IN_SYS_TIME
4185 cat >> confdefs.h <<\EOF
4186 #define TM_IN_SYS_TIME 1
4192 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
4193 echo "configure:4194: checking for tm_zone in struct tm" >&5
4195 cat > conftest.$ac_ext <<EOF
4196 #line 4197 "configure"
4197 #include "confdefs.h"
4198 #include <sys/types.h>
4199 #include <$ac_cv_struct_tm>
4201 struct tm tm; tm.tm_zone;
4204 if { (eval echo configure:4205: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4206 ac_cv_struct_tm_zone=yes
4208 echo "configure: failed program was:" >&5
4209 cat conftest.$ac_ext >&5
4211 ac_cv_struct_tm_zone=no
4215 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
4216 if test "$ac_cv_struct_tm_zone" = yes; then
4217 { test "$extra_verbose" = "yes" && cat << \EOF
4218 Defining HAVE_TM_ZONE
4220 cat >> confdefs.h <<\EOF
4221 #define HAVE_TM_ZONE 1
4226 echo $ac_n "checking for tzname""... $ac_c" 1>&6
4227 echo "configure:4228: checking for tzname" >&5
4229 cat > conftest.$ac_ext <<EOF
4230 #line 4231 "configure"
4231 #include "confdefs.h"
4233 #ifndef tzname /* For SGI. */
4234 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4240 if { (eval echo configure:4241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4242 ac_cv_var_tzname=yes
4244 echo "configure: failed program was:" >&5
4245 cat conftest.$ac_ext >&5
4251 echo "$ac_t""$ac_cv_var_tzname" 1>&6
4252 if test $ac_cv_var_tzname = yes; then
4253 { test "$extra_verbose" = "yes" && cat << \EOF
4254 Defining HAVE_TZNAME
4256 cat >> confdefs.h <<\EOF
4257 #define HAVE_TZNAME 1
4265 echo $ac_n "checking for working const""... $ac_c" 1>&6
4266 echo "configure:4267: checking for working const" >&5
4268 cat > conftest.$ac_ext <<EOF
4269 #line 4270 "configure"
4270 #include "confdefs.h"
4274 /* Ultrix mips cc rejects this. */
4275 typedef int charset[2]; const charset x;
4276 /* SunOS 4.1.1 cc rejects this. */
4277 char const *const *ccp;
4279 /* NEC SVR4.0.2 mips cc rejects this. */
4280 struct point {int x, y;};
4281 static struct point const zero = {0,0};
4282 /* AIX XL C 1.02.0.0 rejects this.
4283 It does not let you subtract one const X* pointer from another in an arm
4284 of an if-expression whose if-part is not a constant expression */
4285 const char *g = "string";
4286 ccp = &g + (g ? g-g : 0);
4287 /* HPUX 7.0 cc rejects these. */
4290 ccp = (char const *const *) p;
4291 { /* SCO 3.2v4 cc rejects this. */
4293 char const *s = 0 ? (char *) 0 : (char const *) 0;
4297 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4299 const int *foo = &x[0];
4302 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4303 typedef const int *iptr;
4307 { /* AIX XL C 1.02.0.0 rejects this saying
4308 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4309 struct s { int j; const int *ap[3]; };
4310 struct s *b; b->j = 5;
4312 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4318 if { (eval echo configure:4319: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4322 echo "configure: failed program was:" >&5
4323 cat conftest.$ac_ext >&5
4329 echo "$ac_t""$ac_cv_c_const" 1>&6
4330 if test $ac_cv_c_const = no; then
4331 { test "$extra_verbose" = "yes" && cat << \EOF
4334 cat >> confdefs.h <<\EOF
4342 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
4343 echo "configure:4344: checking whether ${MAKE-make} sets \${MAKE}" >&5
4344 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
4346 cat > conftestmake <<\EOF
4348 @echo 'ac_maketemp="${MAKE}"'
4350 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4351 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
4352 if test -n "$ac_maketemp"; then
4353 eval ac_cv_prog_make_${ac_make}_set=yes
4355 eval ac_cv_prog_make_${ac_make}_set=no
4358 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4359 echo "$ac_t""yes" 1>&6
4362 echo "$ac_t""no" 1>&6
4363 SET_MAKE="MAKE=${MAKE-make}"
4367 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
4368 echo "configure:4369: checking whether byte ordering is bigendian" >&5
4370 ac_cv_c_bigendian=unknown
4371 # See if sys/param.h defines the BYTE_ORDER macro.
4372 cat > conftest.$ac_ext <<EOF
4373 #line 4374 "configure"
4374 #include "confdefs.h"
4375 #include <sys/types.h>
4376 #include <sys/param.h>
4379 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4384 if { (eval echo configure:4385: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4386 # It does; now see whether it defined to BIG_ENDIAN or not.
4387 cat > conftest.$ac_ext <<EOF
4388 #line 4389 "configure"
4389 #include "confdefs.h"
4390 #include <sys/types.h>
4391 #include <sys/param.h>
4394 #if BYTE_ORDER != BIG_ENDIAN
4399 if { (eval echo configure:4400: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4401 ac_cv_c_bigendian=yes
4403 echo "configure: failed program was:" >&5
4404 cat conftest.$ac_ext >&5
4406 ac_cv_c_bigendian=no
4410 echo "configure: failed program was:" >&5
4411 cat conftest.$ac_ext >&5
4414 if test $ac_cv_c_bigendian = unknown; then
4415 cat > conftest.$ac_ext <<EOF
4416 #line 4417 "configure"
4417 #include "confdefs.h"
4419 /* Are we little or big endian? From Harbison&Steele. */
4423 char c[sizeof (long)];
4426 exit (u.c[sizeof (long) - 1] == 1);
4429 if { (eval echo configure:4430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4431 ac_cv_c_bigendian=no
4434 echo "configure: failed program was:" >&5
4435 cat conftest.$ac_ext >&5
4437 ac_cv_c_bigendian=yes
4442 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
4443 if test $ac_cv_c_bigendian = yes; then
4444 { test "$extra_verbose" = "yes" && cat << \EOF
4445 Defining WORDS_BIGENDIAN
4447 cat >> confdefs.h <<\EOF
4448 #define WORDS_BIGENDIAN 1
4455 echo $ac_n "checking size of short""... $ac_c" 1>&6
4456 echo "configure:4457: checking size of short" >&5
4458 cat > conftest.$ac_ext <<EOF
4459 #line 4460 "configure"
4460 #include "confdefs.h"
4462 #include <sys/types.h>
4465 FILE *f=fopen("conftestval", "w");
4467 fprintf(f, "%d\n", sizeof(short));
4471 if { (eval echo configure:4472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4473 ac_cv_sizeof_short=`cat conftestval`
4476 echo "configure: failed program was:" >&5
4477 cat conftest.$ac_ext >&5
4479 ac_cv_sizeof_short=0
4482 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
4483 { test "$extra_verbose" = "yes" && cat << EOF
4484 Defining SIZEOF_SHORT = $ac_cv_sizeof_short
4486 cat >> confdefs.h <<EOF
4487 #define SIZEOF_SHORT $ac_cv_sizeof_short
4492 if test "$ac_cv_sizeof_short" = 0; then
4494 echo "*** PANIC *** Configure tests are not working - compiler is broken."
4495 echo "*** PANIC *** Please examine config.log for compilation errors."
4498 echo $ac_n "checking size of int""... $ac_c" 1>&6
4499 echo "configure:4500: checking size of int" >&5
4501 cat > conftest.$ac_ext <<EOF
4502 #line 4503 "configure"
4503 #include "confdefs.h"
4505 #include <sys/types.h>
4508 FILE *f=fopen("conftestval", "w");
4510 fprintf(f, "%d\n", sizeof(int));
4514 if { (eval echo configure:4515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4516 ac_cv_sizeof_int=`cat conftestval`
4519 echo "configure: failed program was:" >&5
4520 cat conftest.$ac_ext >&5
4525 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
4526 { test "$extra_verbose" = "yes" && cat << EOF
4527 Defining SIZEOF_INT = $ac_cv_sizeof_int
4529 cat >> confdefs.h <<EOF
4530 #define SIZEOF_INT $ac_cv_sizeof_int
4535 echo $ac_n "checking size of long""... $ac_c" 1>&6
4536 echo "configure:4537: checking size of long" >&5
4538 cat > conftest.$ac_ext <<EOF
4539 #line 4540 "configure"
4540 #include "confdefs.h"
4542 #include <sys/types.h>
4545 FILE *f=fopen("conftestval", "w");
4547 fprintf(f, "%d\n", sizeof(long));
4551 if { (eval echo configure:4552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4553 ac_cv_sizeof_long=`cat conftestval`
4556 echo "configure: failed program was:" >&5
4557 cat conftest.$ac_ext >&5
4562 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
4563 { test "$extra_verbose" = "yes" && cat << EOF
4564 Defining SIZEOF_LONG = $ac_cv_sizeof_long
4566 cat >> confdefs.h <<EOF
4567 #define SIZEOF_LONG $ac_cv_sizeof_long
4572 echo $ac_n "checking size of long long""... $ac_c" 1>&6
4573 echo "configure:4574: checking size of long long" >&5
4575 cat > conftest.$ac_ext <<EOF
4576 #line 4577 "configure"
4577 #include "confdefs.h"
4579 #include <sys/types.h>
4582 FILE *f=fopen("conftestval", "w");
4584 fprintf(f, "%d\n", sizeof(long long));
4588 if { (eval echo configure:4589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4590 ac_cv_sizeof_long_long=`cat conftestval`
4593 echo "configure: failed program was:" >&5
4594 cat conftest.$ac_ext >&5
4596 ac_cv_sizeof_long_long=0
4599 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
4600 { test "$extra_verbose" = "yes" && cat << EOF
4601 Defining SIZEOF_LONG_LONG = $ac_cv_sizeof_long_long
4603 cat >> confdefs.h <<EOF
4604 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4609 echo $ac_n "checking size of void *""... $ac_c" 1>&6
4610 echo "configure:4611: checking size of void *" >&5
4612 cat > conftest.$ac_ext <<EOF
4613 #line 4614 "configure"
4614 #include "confdefs.h"
4616 #include <sys/types.h>
4619 FILE *f=fopen("conftestval", "w");
4621 fprintf(f, "%d\n", sizeof(void *));
4625 if { (eval echo configure:4626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4627 ac_cv_sizeof_void_p=`cat conftestval`
4630 echo "configure: failed program was:" >&5
4631 cat conftest.$ac_ext >&5
4633 ac_cv_sizeof_void_p=0
4636 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
4637 { test "$extra_verbose" = "yes" && cat << EOF
4638 Defining SIZEOF_VOID_P = $ac_cv_sizeof_void_p
4640 cat >> confdefs.h <<EOF
4641 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4647 echo $ac_n "checking for long file names""... $ac_c" 1>&6
4648 echo "configure:4649: checking for long file names" >&5
4650 ac_cv_sys_long_file_names=yes
4651 # Test for long file names in all the places we know might matter:
4652 # . the current directory, where building will happen
4653 # $prefix/lib where we will be installing things
4654 # $exec_prefix/lib likewise
4655 # eval it to expand exec_prefix.
4656 # $TMPDIR if set, where it might want to write temporary files
4657 # if $TMPDIR is not set:
4658 # /tmp where it might want to write temporary files
4661 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
4662 ac_tmpdirs="$TMPDIR"
4664 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
4666 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
4667 test -d $ac_dir || continue
4668 test -w $ac_dir || continue # It is less confusing to not echo anything here.
4669 (echo 1 > $ac_dir/conftest9012345) 2>/dev/null
4670 (echo 2 > $ac_dir/conftest9012346) 2>/dev/null
4671 val=`cat $ac_dir/conftest9012345 2>/dev/null`
4672 if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then
4673 ac_cv_sys_long_file_names=no
4674 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
4677 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
4680 echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
4681 if test $ac_cv_sys_long_file_names = yes; then
4682 { test "$extra_verbose" = "yes" && cat << \EOF
4683 Defining HAVE_LONG_FILE_NAMES
4685 cat >> confdefs.h <<\EOF
4686 #define HAVE_LONG_FILE_NAMES 1
4693 echo $ac_n "checking for sin""... $ac_c" 1>&6
4694 echo "configure:4695: checking for sin" >&5
4696 cat > conftest.$ac_ext <<EOF
4697 #line 4698 "configure"
4698 #include "confdefs.h"
4699 /* System header to define __stub macros and hopefully few prototypes,
4700 which can conflict with char sin(); below. */
4702 /* Override any gcc2 internal prototype to avoid an error. */
4703 /* We use char because int might match the return type of a gcc2
4704 builtin and then its argument prototype would still apply. */
4709 /* The GNU C library defines this for functions which it implements
4710 to always fail with ENOSYS. Some functions are actually named
4711 something starting with __ and the normal name is an alias. */
4712 #if defined (__stub_sin) || defined (__stub___sin)
4720 if { (eval echo configure:4721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4722 eval "ac_cv_func_sin=yes"
4724 echo "configure: failed program was:" >&5
4725 cat conftest.$ac_ext >&5
4727 eval "ac_cv_func_sin=no"
4731 if eval "test \"`echo '$ac_cv_func_'sin`\" = yes"; then
4732 echo "$ac_t""yes" 1>&6
4735 echo "$ac_t""no" 1>&6
4737 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
4738 echo "configure:4739: checking for sin in -lm" >&5
4739 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
4741 xe_check_libs=" -lm "
4742 cat > conftest.$ac_ext <<EOF
4743 #line 4744 "configure"
4744 #include "confdefs.h"
4745 /* Override any gcc2 internal prototype to avoid an error. */
4746 /* We use char because int might match the return type of a gcc2
4747 builtin and then its argument prototype would still apply. */
4754 if { (eval echo configure:4755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4756 eval "ac_cv_lib_$ac_lib_var=yes"
4758 echo "configure: failed program was:" >&5
4759 cat conftest.$ac_ext >&5
4761 eval "ac_cv_lib_$ac_lib_var=no"
4766 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4767 echo "$ac_t""yes" 1>&6
4768 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/^a-zA-Z0-9_/_/g' \
4769 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4770 { test "$extra_verbose" = "yes" && cat << EOF
4773 cat >> confdefs.h <<EOF
4774 #define $ac_tr_lib 1
4778 LIBS="-lm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lm\" to \$LIBS"; fi
4781 echo "$ac_t""no" 1>&6
4788 { test "$extra_verbose" = "yes" && cat << \EOF
4789 Defining LISP_FLOAT_TYPE
4791 cat >> confdefs.h <<\EOF
4792 #define LISP_FLOAT_TYPE 1
4797 cat > conftest.$ac_ext <<EOF
4798 #line 4799 "configure"
4799 #include "confdefs.h"
4802 return atanh(1.0) + asinh(1.0) + acosh(1.0);
4805 if { (eval echo configure:4806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4807 { test "$extra_verbose" = "yes" && cat << \EOF
4808 Defining HAVE_INVERSE_HYPERBOLIC
4810 cat >> confdefs.h <<\EOF
4811 #define HAVE_INVERSE_HYPERBOLIC 1
4816 echo "configure: failed program was:" >&5
4817 cat conftest.$ac_ext >&5
4821 echo "checking type of mail spool file locking" 1>&6
4822 echo "configure:4823: checking type of mail spool file locking" >&5
4823 for ac_func in lockf flock
4825 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4826 echo "configure:4827: checking for $ac_func" >&5
4828 cat > conftest.$ac_ext <<EOF
4829 #line 4830 "configure"
4830 #include "confdefs.h"
4831 /* System header to define __stub macros and hopefully few prototypes,
4832 which can conflict with char $ac_func(); below. */
4834 /* Override any gcc2 internal prototype to avoid an error. */
4835 /* We use char because int might match the return type of a gcc2
4836 builtin and then its argument prototype would still apply. */
4841 /* The GNU C library defines this for functions which it implements
4842 to always fail with ENOSYS. Some functions are actually named
4843 something starting with __ and the normal name is an alias. */
4844 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4852 if { (eval echo configure:4853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4854 eval "ac_cv_func_$ac_func=yes"
4856 echo "configure: failed program was:" >&5
4857 cat conftest.$ac_ext >&5
4859 eval "ac_cv_func_$ac_func=no"
4863 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4864 echo "$ac_t""yes" 1>&6
4865 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4866 { test "$extra_verbose" = "yes" && cat << EOF
4867 Defining $ac_tr_func
4869 cat >> confdefs.h <<EOF
4870 #define $ac_tr_func 1
4875 echo "$ac_t""no" 1>&6
4879 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock
4880 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf
4881 test -z "$mail_locking" -a "$mail_use_locking" = "yes" && mail_locking=locking
4882 if test -z "$mail_locking"; then
4883 case "$opsys" in cygwin* | mingw*)
4888 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF
4889 Defining MAIL_LOCK_LOCKF
4891 cat >> confdefs.h <<\EOF
4892 #define MAIL_LOCK_LOCKF 1
4896 elif test "$mail_locking" = "flock"; then { test "$extra_verbose" = "yes" && cat << \EOF
4897 Defining MAIL_LOCK_FLOCK
4899 cat >> confdefs.h <<\EOF
4900 #define MAIL_LOCK_FLOCK 1
4904 elif test "$mail_locking" = "locking"; then { test "$extra_verbose" = "yes" && cat << \EOF
4905 Defining MAIL_LOCK_LOCKING
4907 cat >> confdefs.h <<\EOF
4908 #define MAIL_LOCK_LOCKING 1
4912 elif test "$mail_locking" = "pop"; then
4915 else mail_locking="dot-locking"; { test "$extra_verbose" = "yes" && cat << \EOF
4916 Defining MAIL_LOCK_DOT
4918 cat >> confdefs.h <<\EOF
4919 #define MAIL_LOCK_DOT 1
4924 test "$mail_locking" = "lockf" -a "$ac_cv_func_lockf" != "yes" && \
4925 { echo "Error:" "lockf mail locking requested but not available." >&2; exit 1; }
4926 test "$mail_locking" = "flock" -a "$ac_cv_func_flock" != "yes" && \
4927 { echo "Error:" "flock mail locking requested but not available." >&2; exit 1; }
4928 test "$mail_locking" = "locking" -a "$ac_cv_func_locking" != "yes" && \
4929 { echo "Error:" "locking mail locking requested but not available." >&2; exit 1; }
4931 case "$opsys" in decosf*)
4933 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
4934 echo "configure:4935: checking for cma_open in -lpthreads" >&5
4935 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
4937 xe_check_libs=" -lpthreads "
4938 cat > conftest.$ac_ext <<EOF
4939 #line 4940 "configure"
4940 #include "confdefs.h"
4941 /* Override any gcc2 internal prototype to avoid an error. */
4942 /* We use char because int might match the return type of a gcc2
4943 builtin and then its argument prototype would still apply. */
4950 if { (eval echo configure:4951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4952 eval "ac_cv_lib_$ac_lib_var=yes"
4954 echo "configure: failed program was:" >&5
4955 cat conftest.$ac_ext >&5
4957 eval "ac_cv_lib_$ac_lib_var=no"
4962 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4963 echo "$ac_t""yes" 1>&6
4964 ac_tr_lib=HAVE_LIB`echo pthreads | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4965 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4966 { test "$extra_verbose" = "yes" && cat << EOF
4969 cat >> confdefs.h <<EOF
4970 #define $ac_tr_lib 1
4974 LIBS="-lpthreads $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpthreads\" to \$LIBS"; fi
4977 echo "$ac_t""no" 1>&6
4981 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \
4982 c_switch_site="$c_switch_site -threads" ;;
4986 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6
4987 echo "configure:4988: checking whether the -xildoff compiler flag is required" >&5
4988 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
4989 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ;
4990 then echo "$ac_t""no" 1>&6;
4991 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
4993 else echo "$ac_t""no" 1>&6
4996 if test "$opsys" = "sol2"; then
4997 if test "$os_release" -ge 56; then
4998 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6
4999 echo "configure:5000: checking for \"-z ignore\" linker flag" >&5
5000 case "`ld -h 2>&1`" in
5001 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6
5002 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;;
5003 *) echo "$ac_t""no" 1>&6 ;;
5008 if test "$pdump" != "yes"; then
5009 echo $ac_n "checking for \"-z nocombreloc\" linker flag""... $ac_c" 1>&6
5010 echo "configure:5011: checking for \"-z nocombreloc\" linker flag" >&5
5011 case "`ld --help 2>&1`" in
5012 *-z\ nocombreloc* ) echo "$ac_t""yes" 1>&6
5013 ld_switch_site="-z nocombreloc $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z nocombreloc\" to \$ld_switch_site"; fi ;;
5014 *) echo "$ac_t""no" 1>&6 ;;
5019 echo "checking "for specified window system"" 1>&6
5020 echo "configure:5021: checking "for specified window system"" >&5
5026 if test "$with_gnome" != "no"; then
5027 echo $ac_n "checking for GNOME configuration script""... $ac_c" 1>&6
5028 echo "configure:5029: checking for GNOME configuration script" >&5
5029 for possible in gnome-config
5031 possible_version=`${possible} --version 2> /dev/null`
5032 if test "x${possible_version}" != "x"; then
5033 GNOME_CONFIG="${possible}"
5039 echo "$ac_t""${GNOME_CONFIG}" 1>&6
5042 if test "${GNOME_CONFIG}" != "no"; then
5043 GNOME_LIBS=`${GNOME_CONFIG} --libs gnomeui`
5044 GNOME_CFLAGS=`${GNOME_CONFIG} --cflags gnomeui`
5045 { test "$extra_verbose" = "yes" && cat << \EOF
5048 cat >> confdefs.h <<\EOF
5049 #define HAVE_GNOME 1
5053 libs_gtk="$libs_gtk ${GNOME_LIBS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GNOME_LIBS}\" to \$libs_gtk"; fi
5054 c_switch_gtk="$c_switch_gtk ${GNOME_CFLAGS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GNOME_CFLAGS}\" to \$c_switch_gtk"; fi
5057 if test "$with_gtk" != "no";then
5058 echo $ac_n "checking for GTK configuration script""... $ac_c" 1>&6
5059 echo "configure:5060: checking for GTK configuration script" >&5
5060 for possible in gtk12-config gtk14-config gtk-config
5062 possible_version=`${possible} --version 2> /dev/null`
5063 if test "x${possible_version}" != "x"; then
5064 GTK_CONFIG="${possible}"
5066 case "${possible_version}" in
5067 1.0.*) echo "configure: warning: GTK 1.2 is required, please upgrade your version of GTK." 1>&2; with_gtk=no;;
5068 1.3.*) echo "configure: warning: GTK 1.3 is not supported right now" 1>&2; with_gtk=no;;
5073 *) echo "configure: warning: Found unsupported version of GTK: $possible_version" 1>&2;;
5076 echo "$ac_t""${GTK_CONFIG}" 1>&6
5079 if test "${GTK_CONFIG}" != "no"; then
5080 echo $ac_n "checking gtk version""... $ac_c" 1>&6
5081 echo "configure:5082: checking gtk version" >&5
5082 GTK_VERSION=`${GTK_CONFIG} --version`
5083 echo "$ac_t""${GTK_VERSION}" 1>&6
5085 echo $ac_n "checking gtk libs""... $ac_c" 1>&6
5086 echo "configure:5087: checking gtk libs" >&5
5087 GTK_LIBS=`${GTK_CONFIG} --libs`
5088 libs_gtk="$libs_gtk ${GTK_LIBS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GTK_LIBS}\" to \$libs_gtk"; fi
5089 echo "$ac_t""${GTK_LIBS}" 1>&6
5091 echo $ac_n "checking gtk cflags""... $ac_c" 1>&6
5092 echo "configure:5093: checking gtk cflags" >&5
5093 GTK_CFLAGS=`${GTK_CONFIG} --cflags`
5094 if test "$GCC" = "yes"; then
5095 GTK_CFLAGS="${GTK_CFLAGS} -Wno-shadow"
5097 c_switch_gtk="$c_switch_gtk ${GTK_CFLAGS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GTK_CFLAGS}\" to \$c_switch_gtk"; fi
5098 echo "$ac_t""${GTK_CFLAGS}" 1>&6
5101 echo $ac_n "checking for main in -lgdk_imlib""... $ac_c" 1>&6
5102 echo "configure:5103: checking for main in -lgdk_imlib" >&5
5103 ac_lib_var=`echo gdk_imlib'_'main | sed 'y%./+-%__p_%'`
5105 xe_check_libs=" -lgdk_imlib "
5106 cat > conftest.$ac_ext <<EOF
5107 #line 5108 "configure"
5108 #include "confdefs.h"
5114 if { (eval echo configure:5115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5116 eval "ac_cv_lib_$ac_lib_var=yes"
5118 echo "configure: failed program was:" >&5
5119 cat conftest.$ac_ext >&5
5121 eval "ac_cv_lib_$ac_lib_var=no"
5126 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5127 echo "$ac_t""yes" 1>&6
5128 libs_gtk="-lgdk_imlib $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgdk_imlib\" to \$libs_gtk"; fi
5130 echo "$ac_t""no" 1>&6
5135 echo $ac_n "checking for Imlib_init in -lImlib""... $ac_c" 1>&6
5136 echo "configure:5137: checking for Imlib_init in -lImlib" >&5
5137 ac_lib_var=`echo Imlib'_'Imlib_init | sed 'y%./+-%__p_%'`
5139 xe_check_libs=" -lImlib "
5140 cat > conftest.$ac_ext <<EOF
5141 #line 5142 "configure"
5142 #include "confdefs.h"
5143 /* Override any gcc2 internal prototype to avoid an error. */
5144 /* We use char because int might match the return type of a gcc2
5145 builtin and then its argument prototype would still apply. */
5152 if { (eval echo configure:5153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5154 eval "ac_cv_lib_$ac_lib_var=yes"
5156 echo "configure: failed program was:" >&5
5157 cat conftest.$ac_ext >&5
5159 eval "ac_cv_lib_$ac_lib_var=no"
5164 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5165 echo "$ac_t""yes" 1>&6
5166 libs_gtk="$libs_gtk -lImlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lImlib\" to \$libs_gtk"; fi
5168 echo "$ac_t""no" 1>&6
5172 for ac_func in gdk_imlib_init
5174 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5175 echo "configure:5176: checking for $ac_func" >&5
5177 cat > conftest.$ac_ext <<EOF
5178 #line 5179 "configure"
5179 #include "confdefs.h"
5180 /* System header to define __stub macros and hopefully few prototypes,
5181 which can conflict with char $ac_func(); below. */
5183 /* Override any gcc2 internal prototype to avoid an error. */
5184 /* We use char because int might match the return type of a gcc2
5185 builtin and then its argument prototype would still apply. */
5190 /* The GNU C library defines this for functions which it implements
5191 to always fail with ENOSYS. Some functions are actually named
5192 something starting with __ and the normal name is an alias. */
5193 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5201 if { (eval echo configure:5202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5203 eval "ac_cv_func_$ac_func=yes"
5205 echo "configure: failed program was:" >&5
5206 cat conftest.$ac_ext >&5
5208 eval "ac_cv_func_$ac_func=no"
5212 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5213 echo "$ac_t""yes" 1>&6
5214 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5215 { test "$extra_verbose" = "yes" && cat << EOF
5216 Defining $ac_tr_func
5218 cat >> confdefs.h <<EOF
5219 #define $ac_tr_func 1
5224 echo "$ac_t""no" 1>&6
5229 { test "$extra_verbose" = "yes" && cat << \EOF
5232 cat >> confdefs.h <<\EOF
5237 { test "$extra_verbose" = "yes" && cat << \EOF
5240 cat >> confdefs.h <<\EOF
5251 test "${with_scrollbars}" != "no" && with_scrollbars=gtk
5252 test "${with_toolbars}" != no && with_toolbars=gtk
5253 test "${with_menubars}" != "no" && with_menubars=gtk
5254 test "${with_dialogs}" != "no" && with_dialogs=gtk
5255 test "${with_widgets}" != "no" && with_widgets=gtk
5257 extra_objs="$extra_objs console-gtk.o device-gtk.o event-gtk.o frame-gtk.o" && if test "$extra_verbose" = "yes"; then
5258 echo " xemacs will be linked with \"console-gtk.o device-gtk.o event-gtk.o frame-gtk.o\""
5260 extra_objs="$extra_objs objects-gtk.o redisplay-gtk.o glyphs-gtk.o" && if test "$extra_verbose" = "yes"; then
5261 echo " xemacs will be linked with \"objects-gtk.o redisplay-gtk.o glyphs-gtk.o\""
5263 extra_objs="$extra_objs select-gtk.o gccache-gtk.o" && if test "$extra_verbose" = "yes"; then
5264 echo " xemacs will be linked with \"select-gtk.o gccache-gtk.o\""
5266 extra_objs="$extra_objs gtk-xemacs.o ui-gtk.o" && if test "$extra_verbose" = "yes"; then
5267 echo " xemacs will be linked with \"gtk-xemacs.o ui-gtk.o\""
5270 OLD_CFLAGS="${CFLAGS}"
5271 OLD_CPPFLAGS="${CPPFLAGS}"
5272 OLD_LDFLAGS="${LDFLAGS}"
5273 CFLAGS="${GTK_CFLAGS} ${CFLAGS}"
5274 CPPFLAGS="${GTK_CFLAGS} ${CFLAGS}"
5275 LDFLAGS="${LDFLAGS} ${GTK_LIBS}"
5276 for ac_hdr in glade/glade.h glade.h
5278 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5279 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5280 echo "configure:5281: checking for $ac_hdr" >&5
5282 cat > conftest.$ac_ext <<EOF
5283 #line 5284 "configure"
5284 #include "confdefs.h"
5287 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5288 { (eval echo configure:5289: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5289 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5290 if test -z "$ac_err"; then
5292 eval "ac_cv_header_$ac_safe=yes"
5295 echo "configure: failed program was:" >&5
5296 cat conftest.$ac_ext >&5
5298 eval "ac_cv_header_$ac_safe=no"
5301 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5302 echo "$ac_t""yes" 1>&6
5303 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5304 { test "$extra_verbose" = "yes" && cat << EOF
5307 cat >> confdefs.h <<EOF
5308 #define $ac_tr_hdr 1
5313 echo "$ac_t""no" 1>&6
5318 echo $ac_n "checking for main in -lxml""... $ac_c" 1>&6
5319 echo "configure:5320: checking for main in -lxml" >&5
5320 ac_lib_var=`echo xml'_'main | sed 'y%./+-%__p_%'`
5322 xe_check_libs=" -lxml "
5323 cat > conftest.$ac_ext <<EOF
5324 #line 5325 "configure"
5325 #include "confdefs.h"
5331 if { (eval echo configure:5332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5333 eval "ac_cv_lib_$ac_lib_var=yes"
5335 echo "configure: failed program was:" >&5
5336 cat conftest.$ac_ext >&5
5338 eval "ac_cv_lib_$ac_lib_var=no"
5343 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5344 echo "$ac_t""yes" 1>&6
5345 libs_gtk="-lxml $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lxml\" to \$libs_gtk"; fi
5347 echo "$ac_t""no" 1>&6
5352 echo $ac_n "checking for main in -lglade""... $ac_c" 1>&6
5353 echo "configure:5354: checking for main in -lglade" >&5
5354 ac_lib_var=`echo glade'_'main | sed 'y%./+-%__p_%'`
5356 xe_check_libs=" -lglade "
5357 cat > conftest.$ac_ext <<EOF
5358 #line 5359 "configure"
5359 #include "confdefs.h"
5365 if { (eval echo configure:5366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5367 eval "ac_cv_lib_$ac_lib_var=yes"
5369 echo "configure: failed program was:" >&5
5370 cat conftest.$ac_ext >&5
5372 eval "ac_cv_lib_$ac_lib_var=no"
5377 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5378 echo "$ac_t""yes" 1>&6
5379 libs_gtk="-lglade $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lglade\" to \$libs_gtk"; fi
5381 echo "$ac_t""no" 1>&6
5386 echo $ac_n "checking for main in -lglade-gnome""... $ac_c" 1>&6
5387 echo "configure:5388: checking for main in -lglade-gnome" >&5
5388 ac_lib_var=`echo glade-gnome'_'main | sed 'y%./+-%__p_%'`
5390 xe_check_libs=" -lglade-gnome "
5391 cat > conftest.$ac_ext <<EOF
5392 #line 5393 "configure"
5393 #include "confdefs.h"
5399 if { (eval echo configure:5400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5401 eval "ac_cv_lib_$ac_lib_var=yes"
5403 echo "configure: failed program was:" >&5
5404 cat conftest.$ac_ext >&5
5406 eval "ac_cv_lib_$ac_lib_var=no"
5411 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5412 echo "$ac_t""yes" 1>&6
5413 libs_gtk="-lglade-gnome $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lglade-gnome\" to \$libs_gtk"; fi
5415 echo "$ac_t""no" 1>&6
5419 cat > conftest.$ac_ext <<EOF
5420 #line 5421 "configure"
5421 #include "confdefs.h"
5422 #include <glade/glade-xml.h>
5424 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5425 egrep "char \*txtdomain;" >/dev/null 2>&1; then
5427 echo "$ac_t""yes" 1>&6
5428 { test "$extra_verbose" = "yes" && cat << \EOF
5429 Defining LIBGLADE_XML_TXTDOMAIN = 1
5431 cat >> confdefs.h <<\EOF
5432 #define LIBGLADE_XML_TXTDOMAIN 1
5438 echo "$ac_t""no" 1>&6
5442 CFLAGS="${OLD_CFLAGS}"
5443 CPPFLAGS="${OLD_CPPFLAGS}"
5444 LDFLAGS="${OLD_LDFLAGS}"
5448 if test "$with_x11" != "no"; then
5449 test "$x_includes $x_libraries" != "NONE NONE" && \
5450 window_system=x11 with_x11=yes
5453 if test "$x_includes $x_libraries" = "NONE NONE" \
5454 -a -n "$OPENWINHOME" \
5455 -a "$OPENWINHOME" != "/usr/openwin" \
5456 -a -d "$OPENWINHOME"; then
5457 test -d "$OPENWINHOME/lib" && x_libraries="$OPENWINHOME/lib"
5458 test -d "$OPENWINHOME/include" && x_includes="$OPENWINHOME/include"
5459 test -d "$OPENWINHOME/share/include" && x_includes="$OPENWINHOME/share/include"
5462 if test "$x_includes" = "NONE"; then
5463 for dir in "/usr/X11" "/usr/X11R6"; do
5464 if test -d "$dir/include/X11"; then x_includes="$dir/include"; break; fi
5468 if test "$x_libraries" = "NONE"; then
5469 for dir in "/usr/X11/lib" "/usr/X11R6/lib" "/usr/lib/X11R6"; do
5470 if test -r "$dir/libX11.a"; then x_libraries="$dir"; break; fi
5474 # If we find X, set shell vars x_includes and x_libraries to the
5475 # paths, otherwise set no_x=yes.
5476 # Uses ac_ vars as temps to allow command line to override cache and checks.
5477 # --without-x overrides everything else, but does not touch the cache.
5478 echo $ac_n "checking for X""... $ac_c" 1>&6
5479 echo "configure:5480: checking for X" >&5
5481 # Check whether --with-x or --without-x was given.
5482 if test "${with_x+set}" = set; then
5487 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5488 if test "x$with_x" = xno; then
5489 # The user explicitly disabled X.
5492 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
5493 # Both variables are already set.
5497 # One or both of the vars are not set, and there is no cached value.
5498 ac_x_includes=NO ac_x_libraries=NO
5500 if mkdir conftestdir; then
5502 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5503 cat > Imakefile <<'EOF'
5505 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5507 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5508 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5509 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5510 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5511 for ac_extension in a so sl; do
5512 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
5513 test -f $ac_im_libdir/libX11.$ac_extension; then
5514 ac_im_usrlibdir=$ac_im_libdir; break
5517 # Screen out bogus values from the imake configuration. They are
5518 # bogus both because they are the default anyway, and because
5519 # using them would break gcc on systems where it needs fixed includes.
5520 case "$ac_im_incroot" in
5522 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
5524 case "$ac_im_usrlibdir" in
5526 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
5533 if test "$ac_x_includes" = NO; then
5534 # Guess where to find include files, by looking for this one X11 .h file.
5535 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
5537 # First, try using that file with no special directory specified.
5538 cat > conftest.$ac_ext <<EOF
5539 #line 5540 "configure"
5540 #include "confdefs.h"
5541 #include <$x_direct_test_include>
5543 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5544 { (eval echo configure:5545: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5545 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5546 if test -z "$ac_err"; then
5548 # We can compile using X headers with no special include directory.
5552 echo "configure: failed program was:" >&5
5553 cat conftest.$ac_ext >&5
5555 # Look for the header file in a standard set of common directories.
5556 # Check X11 before X11Rn because it is often a symlink to the current release.
5559 /usr/X11R6/include \
5560 /usr/X11R5/include \
5561 /usr/X11R4/include \
5564 /usr/include/X11R6 \
5565 /usr/include/X11R5 \
5566 /usr/include/X11R4 \
5568 /usr/local/X11/include \
5569 /usr/local/X11R6/include \
5570 /usr/local/X11R5/include \
5571 /usr/local/X11R4/include \
5573 /usr/local/include/X11 \
5574 /usr/local/include/X11R6 \
5575 /usr/local/include/X11R5 \
5576 /usr/local/include/X11R4 \
5580 /usr/XFree86/include/X11 \
5583 /usr/local/include \
5584 /usr/unsupported/include \
5585 /usr/athena/include \
5586 /usr/local/x11r5/include \
5587 /usr/lpp/Xamples/include \
5589 /usr/openwin/include \
5590 /usr/openwin/share/include \
5593 if test -r "$ac_dir/$x_direct_test_include"; then
5594 ac_x_includes=$ac_dir
5600 fi # $ac_x_includes = NO
5602 if test "$ac_x_libraries" = NO; then
5603 # Check for the libraries.
5605 test -z "$x_direct_test_library" && x_direct_test_library=Xt
5606 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
5608 # See if we find them without any special options.
5609 # Don't add to $LIBS permanently.
5610 ac_save_LIBS="$LIBS"
5611 LIBS="-l$x_direct_test_library $LIBS"
5612 cat > conftest.$ac_ext <<EOF
5613 #line 5614 "configure"
5614 #include "confdefs.h"
5617 ${x_direct_test_function}()
5620 if { (eval echo configure:5621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5622 LIBS="$ac_save_LIBS"
5623 # We can link X programs with no special library path.
5626 echo "configure: failed program was:" >&5
5627 cat conftest.$ac_ext >&5
5629 LIBS="$ac_save_LIBS"
5630 # First see if replacing the include by lib works.
5631 # Check X11 before X11Rn because it is often a symlink to the current release.
5632 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
5643 /usr/local/X11/lib \
5644 /usr/local/X11R6/lib \
5645 /usr/local/X11R5/lib \
5646 /usr/local/X11R4/lib \
5648 /usr/local/lib/X11 \
5649 /usr/local/lib/X11R6 \
5650 /usr/local/lib/X11R5 \
5651 /usr/local/lib/X11R4 \
5655 /usr/XFree86/lib/X11 \
5659 /usr/unsupported/lib \
5661 /usr/local/x11r5/lib \
5662 /usr/lpp/Xamples/lib \
5666 /usr/openwin/share/lib \
5669 for ac_extension in a so sl; do
5670 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
5671 ac_x_libraries=$ac_dir
5678 fi # $ac_x_libraries = NO
5680 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
5681 # Didn't find X anywhere. Cache the known absence of X.
5682 ac_cv_have_x="have_x=no"
5684 # Record where we found X for the cache.
5685 ac_cv_have_x="have_x=yes \
5686 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5689 eval "$ac_cv_have_x"
5692 if test "$have_x" != yes; then
5693 echo "$ac_t""$have_x" 1>&6
5696 # If each of the values was on the command line, it overrides each guess.
5697 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5698 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5699 # Update the cache value to reflect the command line values.
5700 ac_cv_have_x="have_x=yes \
5701 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5702 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
5705 if test "$no_x" = yes; then
5706 # Not all programs may use this symbol, but it does not hurt to define it.
5707 { test "$extra_verbose" = "yes" && cat << \EOF
5708 Defining X_DISPLAY_MISSING
5710 cat >> confdefs.h <<\EOF
5711 #define X_DISPLAY_MISSING 1
5715 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5717 if test -n "$x_includes"; then
5718 X_CFLAGS="$X_CFLAGS -I$x_includes"
5721 # It would also be nice to do this for all -L options, not just this one.
5722 if test -n "$x_libraries"; then
5723 X_LIBS="$X_LIBS -L$x_libraries"
5724 # For Solaris; some versions of Sun CC require a space after -R and
5725 # others require no space. Words are not sufficient . . . .
5726 case "`(uname -sr) 2>/dev/null`" in
5728 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
5729 echo "configure:5730: checking whether -R must be followed by a space" >&5
5730 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
5731 cat > conftest.$ac_ext <<EOF
5732 #line 5733 "configure"
5733 #include "confdefs.h"
5739 if { (eval echo configure:5740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5743 echo "configure: failed program was:" >&5
5744 cat conftest.$ac_ext >&5
5749 if test $ac_R_nospace = yes; then
5750 echo "$ac_t""no" 1>&6
5751 X_LIBS="$X_LIBS -R$x_libraries"
5753 LIBS="$ac_xsave_LIBS -R $x_libraries"
5754 cat > conftest.$ac_ext <<EOF
5755 #line 5756 "configure"
5756 #include "confdefs.h"
5762 if { (eval echo configure:5763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5766 echo "configure: failed program was:" >&5
5767 cat conftest.$ac_ext >&5
5772 if test $ac_R_space = yes; then
5773 echo "$ac_t""yes" 1>&6
5774 X_LIBS="$X_LIBS -R $x_libraries"
5776 echo "$ac_t""neither works" 1>&6
5779 LIBS="$ac_xsave_LIBS"
5783 # Check for system-dependent libraries X programs must link with.
5784 # Do this before checking for the system-independent R6 libraries
5785 # (-lICE), since we may need -lsocket or whatever for X linking.
5787 if test "$ISC" = yes; then
5788 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5790 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
5791 # libraries were built with DECnet support. And karl@cs.umb.edu says
5792 # the Alpha needs dnet_stub (dnet does not exist).
5793 if test "$with_dnet" = "no" ; then
5794 ac_cv_lib_dnet_dnet_ntoa=no
5797 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
5798 echo "configure:5799: checking for dnet_ntoa in -ldnet" >&5
5799 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5801 xe_check_libs=" -ldnet "
5802 cat > conftest.$ac_ext <<EOF
5803 #line 5804 "configure"
5804 #include "confdefs.h"
5805 /* Override any gcc2 internal prototype to avoid an error. */
5806 /* We use char because int might match the return type of a gcc2
5807 builtin and then its argument prototype would still apply. */
5814 if { (eval echo configure:5815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5816 eval "ac_cv_lib_$ac_lib_var=yes"
5818 echo "configure: failed program was:" >&5
5819 cat conftest.$ac_ext >&5
5821 eval "ac_cv_lib_$ac_lib_var=no"
5826 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5827 echo "$ac_t""yes" 1>&6
5828 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5830 echo "$ac_t""no" 1>&6
5835 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5837 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
5838 echo "configure:5839: checking for dnet_ntoa in -ldnet_stub" >&5
5839 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5841 xe_check_libs=" -ldnet_stub "
5842 cat > conftest.$ac_ext <<EOF
5843 #line 5844 "configure"
5844 #include "confdefs.h"
5845 /* Override any gcc2 internal prototype to avoid an error. */
5846 /* We use char because int might match the return type of a gcc2
5847 builtin and then its argument prototype would still apply. */
5854 if { (eval echo configure:5855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5856 eval "ac_cv_lib_$ac_lib_var=yes"
5858 echo "configure: failed program was:" >&5
5859 cat conftest.$ac_ext >&5
5861 eval "ac_cv_lib_$ac_lib_var=no"
5866 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5867 echo "$ac_t""yes" 1>&6
5868 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5870 echo "$ac_t""no" 1>&6
5876 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5877 # to get the SysV transport functions.
5878 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
5880 # The nsl library prevents programs from opening the X display
5881 # on Irix 5.2, according to dickey@clark.net.
5882 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
5883 echo "configure:5884: checking for gethostbyname" >&5
5885 cat > conftest.$ac_ext <<EOF
5886 #line 5887 "configure"
5887 #include "confdefs.h"
5888 /* System header to define __stub macros and hopefully few prototypes,
5889 which can conflict with char gethostbyname(); below. */
5891 /* Override any gcc2 internal prototype to avoid an error. */
5892 /* We use char because int might match the return type of a gcc2
5893 builtin and then its argument prototype would still apply. */
5894 char gethostbyname();
5898 /* The GNU C library defines this for functions which it implements
5899 to always fail with ENOSYS. Some functions are actually named
5900 something starting with __ and the normal name is an alias. */
5901 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5909 if { (eval echo configure:5910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5911 eval "ac_cv_func_gethostbyname=yes"
5913 echo "configure: failed program was:" >&5
5914 cat conftest.$ac_ext >&5
5916 eval "ac_cv_func_gethostbyname=no"
5920 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
5921 echo "$ac_t""yes" 1>&6
5924 echo "$ac_t""no" 1>&6
5927 if test $ac_cv_func_gethostbyname = no; then
5929 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
5930 echo "configure:5931: checking for gethostbyname in -lnsl" >&5
5931 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
5933 xe_check_libs=" -lnsl "
5934 cat > conftest.$ac_ext <<EOF
5935 #line 5936 "configure"
5936 #include "confdefs.h"
5937 /* Override any gcc2 internal prototype to avoid an error. */
5938 /* We use char because int might match the return type of a gcc2
5939 builtin and then its argument prototype would still apply. */
5940 char gethostbyname();
5946 if { (eval echo configure:5947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5948 eval "ac_cv_lib_$ac_lib_var=yes"
5950 echo "configure: failed program was:" >&5
5951 cat conftest.$ac_ext >&5
5953 eval "ac_cv_lib_$ac_lib_var=no"
5958 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5959 echo "$ac_t""yes" 1>&6
5960 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5962 echo "$ac_t""no" 1>&6
5968 # lieder@skyler.mavd.honeywell.com says without -lsocket,
5969 # socket/setsockopt and other routines are undefined under SCO ODT
5970 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5971 # on later versions), says simon@lia.di.epfl.ch: it contains
5972 # gethostby* variants that don't use the nameserver (or something).
5973 # -lsocket must be given before -lnsl if both are needed.
5974 # We assume that if connect needs -lnsl, so does gethostbyname.
5975 echo $ac_n "checking for connect""... $ac_c" 1>&6
5976 echo "configure:5977: checking for connect" >&5
5978 cat > conftest.$ac_ext <<EOF
5979 #line 5980 "configure"
5980 #include "confdefs.h"
5981 /* System header to define __stub macros and hopefully few prototypes,
5982 which can conflict with char connect(); below. */
5984 /* Override any gcc2 internal prototype to avoid an error. */
5985 /* We use char because int might match the return type of a gcc2
5986 builtin and then its argument prototype would still apply. */
5991 /* The GNU C library defines this for functions which it implements
5992 to always fail with ENOSYS. Some functions are actually named
5993 something starting with __ and the normal name is an alias. */
5994 #if defined (__stub_connect) || defined (__stub___connect)
6002 if { (eval echo configure:6003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6004 eval "ac_cv_func_connect=yes"
6006 echo "configure: failed program was:" >&5
6007 cat conftest.$ac_ext >&5
6009 eval "ac_cv_func_connect=no"
6013 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
6014 echo "$ac_t""yes" 1>&6
6017 echo "$ac_t""no" 1>&6
6020 if test $ac_cv_func_connect = no; then
6022 xe_msg_checking="for connect in -lsocket"
6023 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
6024 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6025 echo "configure:6026: checking "$xe_msg_checking"" >&5
6026 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
6028 xe_check_libs=" -lsocket $X_EXTRA_LIBS"
6029 cat > conftest.$ac_ext <<EOF
6030 #line 6031 "configure"
6031 #include "confdefs.h"
6032 /* Override any gcc2 internal prototype to avoid an error. */
6033 /* We use char because int might match the return type of a gcc2
6034 builtin and then its argument prototype would still apply. */
6041 if { (eval echo configure:6042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6043 eval "ac_cv_lib_$ac_lib_var=yes"
6045 echo "configure: failed program was:" >&5
6046 cat conftest.$ac_ext >&5
6048 eval "ac_cv_lib_$ac_lib_var=no"
6053 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6054 echo "$ac_t""yes" 1>&6
6055 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6057 echo "$ac_t""no" 1>&6
6063 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
6064 echo $ac_n "checking for remove""... $ac_c" 1>&6
6065 echo "configure:6066: checking for remove" >&5
6067 cat > conftest.$ac_ext <<EOF
6068 #line 6069 "configure"
6069 #include "confdefs.h"
6070 /* System header to define __stub macros and hopefully few prototypes,
6071 which can conflict with char remove(); below. */
6073 /* Override any gcc2 internal prototype to avoid an error. */
6074 /* We use char because int might match the return type of a gcc2
6075 builtin and then its argument prototype would still apply. */
6080 /* The GNU C library defines this for functions which it implements
6081 to always fail with ENOSYS. Some functions are actually named
6082 something starting with __ and the normal name is an alias. */
6083 #if defined (__stub_remove) || defined (__stub___remove)
6091 if { (eval echo configure:6092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6093 eval "ac_cv_func_remove=yes"
6095 echo "configure: failed program was:" >&5
6096 cat conftest.$ac_ext >&5
6098 eval "ac_cv_func_remove=no"
6102 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
6103 echo "$ac_t""yes" 1>&6
6106 echo "$ac_t""no" 1>&6
6109 if test $ac_cv_func_remove = no; then
6111 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
6112 echo "configure:6113: checking for remove in -lposix" >&5
6113 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
6115 xe_check_libs=" -lposix "
6116 cat > conftest.$ac_ext <<EOF
6117 #line 6118 "configure"
6118 #include "confdefs.h"
6119 /* Override any gcc2 internal prototype to avoid an error. */
6120 /* We use char because int might match the return type of a gcc2
6121 builtin and then its argument prototype would still apply. */
6128 if { (eval echo configure:6129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6130 eval "ac_cv_lib_$ac_lib_var=yes"
6132 echo "configure: failed program was:" >&5
6133 cat conftest.$ac_ext >&5
6135 eval "ac_cv_lib_$ac_lib_var=no"
6140 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6141 echo "$ac_t""yes" 1>&6
6142 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6144 echo "$ac_t""no" 1>&6
6150 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6151 echo $ac_n "checking for shmat""... $ac_c" 1>&6
6152 echo "configure:6153: checking for shmat" >&5
6154 cat > conftest.$ac_ext <<EOF
6155 #line 6156 "configure"
6156 #include "confdefs.h"
6157 /* System header to define __stub macros and hopefully few prototypes,
6158 which can conflict with char shmat(); below. */
6160 /* Override any gcc2 internal prototype to avoid an error. */
6161 /* We use char because int might match the return type of a gcc2
6162 builtin and then its argument prototype would still apply. */
6167 /* The GNU C library defines this for functions which it implements
6168 to always fail with ENOSYS. Some functions are actually named
6169 something starting with __ and the normal name is an alias. */
6170 #if defined (__stub_shmat) || defined (__stub___shmat)
6178 if { (eval echo configure:6179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6180 eval "ac_cv_func_shmat=yes"
6182 echo "configure: failed program was:" >&5
6183 cat conftest.$ac_ext >&5
6185 eval "ac_cv_func_shmat=no"
6189 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
6190 echo "$ac_t""yes" 1>&6
6193 echo "$ac_t""no" 1>&6
6196 if test $ac_cv_func_shmat = no; then
6198 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
6199 echo "configure:6200: checking for shmat in -lipc" >&5
6200 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
6202 xe_check_libs=" -lipc "
6203 cat > conftest.$ac_ext <<EOF
6204 #line 6205 "configure"
6205 #include "confdefs.h"
6206 /* Override any gcc2 internal prototype to avoid an error. */
6207 /* We use char because int might match the return type of a gcc2
6208 builtin and then its argument prototype would still apply. */
6215 if { (eval echo configure:6216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6217 eval "ac_cv_lib_$ac_lib_var=yes"
6219 echo "configure: failed program was:" >&5
6220 cat conftest.$ac_ext >&5
6222 eval "ac_cv_lib_$ac_lib_var=no"
6227 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6228 echo "$ac_t""yes" 1>&6
6229 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6231 echo "$ac_t""no" 1>&6
6238 # Check for libraries that X11R6 Xt/Xaw programs need.
6239 ac_save_LDFLAGS="$LDFLAGS"
6240 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6241 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6242 # check for ICE first), but we must link in the order -lSM -lICE or
6243 # we get undefined symbols. So assume we have SM if we have ICE.
6244 # These have to be linked with before -lX11, unlike the other
6245 # libraries we check for below, so use a different variable.
6246 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
6248 xe_msg_checking="for IceConnectionNumber in -lICE"
6249 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
6250 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6251 echo "configure:6252: checking "$xe_msg_checking"" >&5
6252 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
6254 xe_check_libs=" -lICE $X_EXTRA_LIBS"
6255 cat > conftest.$ac_ext <<EOF
6256 #line 6257 "configure"
6257 #include "confdefs.h"
6258 /* Override any gcc2 internal prototype to avoid an error. */
6259 /* We use char because int might match the return type of a gcc2
6260 builtin and then its argument prototype would still apply. */
6261 char IceConnectionNumber();
6264 IceConnectionNumber()
6267 if { (eval echo configure:6268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6269 eval "ac_cv_lib_$ac_lib_var=yes"
6271 echo "configure: failed program was:" >&5
6272 cat conftest.$ac_ext >&5
6274 eval "ac_cv_lib_$ac_lib_var=no"
6279 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6280 echo "$ac_t""yes" 1>&6
6281 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6283 echo "$ac_t""no" 1>&6
6287 LDFLAGS="$ac_save_LDFLAGS"
6290 # Autoconf claims to find X library and include dirs for us.
6291 if test "$no_x" = "yes"
6292 then with_x11=no window_system=none HAVE_X_WINDOWS=no
6293 else with_x11=yes window_system=x11 HAVE_X_WINDOWS=yes
6298 if test "$with_x11" = "yes"; then
6299 { test "$extra_verbose" = "yes" && cat << \EOF
6300 Defining HAVE_X_WINDOWS
6302 cat >> confdefs.h <<\EOF
6303 #define HAVE_X_WINDOWS 1
6307 MAKE_SUBDIR="$MAKE_SUBDIR lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$MAKE_SUBDIR"; fi
6308 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$SRC_SUBDIR_DEPS"; fi
6310 for lib_dir in "/usr/dt/lib" "/usr/lib/Motif2.1" "/usr/lib/Motif1.2" "/usr/lib/Motif1.1"; do
6311 inc_dir=`echo $lib_dir | sed -e 's/lib/include/'`
6312 if test -d "$lib_dir" -a -d "$inc_dir"; then
6313 case "$x_libraries" in *"$lib_dir"* ) ;; *)
6314 x_libraries="$lib_dir $x_libraries"
6315 X_LIBS="-L${lib_dir} $X_LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-L${lib_dir}\" to \$X_LIBS"; fi ;;
6317 case "$x_includes" in "$inc_dir"* ) ;; *)
6318 x_includes="$inc_dir $x_includes"
6319 X_CFLAGS="-I${inc_dir} $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-I${inc_dir}\" to \$X_CFLAGS"; fi ;;
6324 for rel in "X11R6" "X11R5" "X11R4"; do
6325 lib_dir="/usr/contrib/$rel/lib" inc_dir="/usr/contrib/$rel/include"
6326 if test -d "$lib_dir" -a -d "$inc_dir"; then
6327 case "$x_libraries" in *"$lib_dir"* ) ;; *)
6328 x_libraries="$x_libraries $lib_dir"
6329 X_LIBS="$X_LIBS -L${lib_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L${lib_dir}\" to \$X_LIBS"; fi
6331 case "$x_includes" in "$inc_dir"* ) ;; *)
6332 x_includes="$x_includes $inc_dir"
6333 X_CFLAGS="$X_CFLAGS -I${inc_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-I${inc_dir}\" to \$X_CFLAGS"; fi
6339 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 ;;
6342 ld_switch_x_site="$X_LIBS"
6345 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
6346 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
6347 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
6349 runpath="" runpath_dirs=""
6350 if test -n "$LD_RUN_PATH"; then
6351 runpath="$LD_RUN_PATH"
6352 elif test "$GCC" = "yes"; then
6353 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
6354 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
6355 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
6356 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
6357 case "$arg" in P,* | -L* | -R* )
6358 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
6360 xe_runpath_dir="$dir"
6361 test "$xe_runpath_dir" != "/lib" -a \
6362 "$xe_runpath_dir" != "/usr/lib" -a \
6363 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
6364 eval "$xe_add_unique_runpath_dir"
6369 ld_switch_run="$ld_switch_run_save"
6372 for arg in $ld_switch_site $ld_switch_x_site; do
6373 case "$arg" in -L*) {
6374 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
6375 test "$xe_runpath_dir" != "/lib" -a \
6376 "$xe_runpath_dir" != "/usr/lib" -a \
6377 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
6378 eval "$xe_add_unique_runpath_dir"
6381 if test "$opsys $need_motif" = "sol2 yes"; then
6382 xe_runpath_dir="/opt/SUNWdt/lib";
6383 eval "$xe_add_unique_runpath_dir";
6386 if test -n "$runpath"; then
6387 ld_switch_run="${dash_r}${runpath}"
6389 if test "$GCC" = "yes"; then
6390 set x $ld_switch_run; shift; ld_switch_run=""
6391 while test -n "$1"; do
6393 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
6394 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
6396 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
6401 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
6406 if test "$extra_verbose" = "yes"; then
6407 echo; echo "X11 compilation variables:"
6408 for var in x_libraries x_includes X_CFLAGS X_LIBS X_PRE_LIBS X_EXTRA_LIBS; do eval "echo \"$var = '\$$var'\""; done
6413 if test "$x_includes" != NONE; then
6414 for i in $x_includes; do
6415 if test -d "$i/bitmaps"; then
6416 bitmapdirs="$i/bitmaps:$bitmapdirs"
6418 if test -d "$i/X11/bitmaps"; then
6419 bitmapdirs="$i/X11/bitmaps:$bitmapdirs"
6422 bitmapdirs=`echo "$bitmapdirs" | sed s/.$//`
6424 test ! -z "$bitmapdirs" && { test "$extra_verbose" = "yes" && cat << EOF
6425 Defining BITMAPDIR = "$bitmapdirs"
6427 cat >> confdefs.h <<EOF
6428 #define BITMAPDIR "$bitmapdirs"
6433 echo "checking for X defines extracted by xmkmf" 1>&6
6434 echo "configure:6435: checking for X defines extracted by xmkmf" >&5
6436 if mkdir conftestdir; then
6438 cat > Imakefile <<'EOF'
6440 @echo ${PROTO_DEFINES} ${STD_DEFINES}
6442 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6443 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6444 xmkmf_defines=`${MAKE-make} xetest 2>/dev/null | grep -v make`
6448 for word in $xmkmf_defines; do
6452 sym=`echo '' $word | sed -e 's:^ *-D::' -e 's:=.*::'`
6454 -D*=* ) val=`echo '' $word | sed -e 's:^.*=::'` ;;
6457 if grep "^#define $sym " confdefs.h >/dev/null; then :; else
6458 if test "$val" = "1"
6459 then { test "$extra_verbose" = "yes" && cat << EOF
6462 cat >> confdefs.h <<EOF
6467 else { test "$extra_verbose" = "yes" && cat << EOF
6468 Defining $sym = $val
6470 cat >> confdefs.h <<EOF
6481 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
6482 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
6483 echo "configure:6484: checking for X11/Intrinsic.h" >&5
6485 cat > conftest.$ac_ext <<EOF
6486 #line 6487 "configure"
6487 #include "confdefs.h"
6488 #include <X11/Intrinsic.h>
6490 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6491 { (eval echo configure:6492: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6492 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6493 if test -z "$ac_err"; then
6495 eval "ac_cv_header_$ac_safe=yes"
6498 echo "configure: failed program was:" >&5
6499 cat conftest.$ac_ext >&5
6501 eval "ac_cv_header_$ac_safe=no"
6504 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6505 echo "$ac_t""yes" 1>&6
6508 echo "$ac_t""no" 1>&6
6509 { echo "configure: error: "Unable to find X11 header files."" 1>&2; exit 1; }
6514 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
6515 echo "configure:6516: checking for XOpenDisplay in -lX11" >&5
6516 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
6518 xe_check_libs=" -lX11 "
6519 cat > conftest.$ac_ext <<EOF
6520 #line 6521 "configure"
6521 #include "confdefs.h"
6522 /* Override any gcc2 internal prototype to avoid an error. */
6523 /* We use char because int might match the return type of a gcc2
6524 builtin and then its argument prototype would still apply. */
6525 char XOpenDisplay();
6531 if { (eval echo configure:6532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6533 eval "ac_cv_lib_$ac_lib_var=yes"
6535 echo "configure: failed program was:" >&5
6536 cat conftest.$ac_ext >&5
6538 eval "ac_cv_lib_$ac_lib_var=no"
6543 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6544 echo "$ac_t""yes" 1>&6
6547 echo "$ac_t""no" 1>&6
6551 if test "$have_lib_x11" != "yes"; then
6553 xe_msg_checking="for XGetFontProperty in -lX11"
6554 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout"
6555 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6556 echo "configure:6557: checking "$xe_msg_checking"" >&5
6557 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
6559 xe_check_libs=" -lX11 -b i486-linuxaout"
6560 cat > conftest.$ac_ext <<EOF
6561 #line 6562 "configure"
6562 #include "confdefs.h"
6563 /* Override any gcc2 internal prototype to avoid an error. */
6564 /* We use char because int might match the return type of a gcc2
6565 builtin and then its argument prototype would still apply. */
6566 char XGetFontProperty();
6572 if { (eval echo configure:6573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6574 eval "ac_cv_lib_$ac_lib_var=yes"
6576 echo "configure: failed program was:" >&5
6577 cat conftest.$ac_ext >&5
6579 eval "ac_cv_lib_$ac_lib_var=no"
6584 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6585 echo "$ac_t""yes" 1>&6
6586 ld_switch_x_site="-b i486-linuxaout $ld_switch_x_site"
6588 echo "$ac_t""no" 1>&6
6589 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
6595 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
6598 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
6599 echo "configure:6600: checking for XShapeSelectInput in -lXext" >&5
6600 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
6602 xe_check_libs=" -lXext "
6603 cat > conftest.$ac_ext <<EOF
6604 #line 6605 "configure"
6605 #include "confdefs.h"
6606 /* Override any gcc2 internal prototype to avoid an error. */
6607 /* We use char because int might match the return type of a gcc2
6608 builtin and then its argument prototype would still apply. */
6609 char XShapeSelectInput();
6615 if { (eval echo configure:6616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6617 eval "ac_cv_lib_$ac_lib_var=yes"
6619 echo "configure: failed program was:" >&5
6620 cat conftest.$ac_ext >&5
6622 eval "ac_cv_lib_$ac_lib_var=no"
6627 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6628 echo "$ac_t""yes" 1>&6
6629 libs_x="-lXext $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXext\" to \$libs_x"; fi
6631 echo "$ac_t""no" 1>&6
6637 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6
6638 echo "configure:6639: checking for XtOpenDisplay in -lXt" >&5
6639 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
6641 xe_check_libs=" -lXt "
6642 cat > conftest.$ac_ext <<EOF
6643 #line 6644 "configure"
6644 #include "confdefs.h"
6645 /* Override any gcc2 internal prototype to avoid an error. */
6646 /* We use char because int might match the return type of a gcc2
6647 builtin and then its argument prototype would still apply. */
6648 char XtOpenDisplay();
6654 if { (eval echo configure:6655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6656 eval "ac_cv_lib_$ac_lib_var=yes"
6658 echo "configure: failed program was:" >&5
6659 cat conftest.$ac_ext >&5
6661 eval "ac_cv_lib_$ac_lib_var=no"
6666 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6667 echo "$ac_t""yes" 1>&6
6668 libs_x="-lXt $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXt\" to \$libs_x"; fi
6670 echo "$ac_t""no" 1>&6
6671 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
6676 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6
6677 echo "configure:6678: checking the version of X11 being used" >&5
6678 cat > conftest.$ac_ext <<EOF
6679 #line 6680 "configure"
6680 #include "confdefs.h"
6681 #include <X11/Intrinsic.h>
6682 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; }
6684 if { (eval echo configure:6685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6686 ./conftest foobar; x11_release=$?
6689 echo "configure: failed program was:" >&5
6690 cat conftest.$ac_ext >&5
6695 echo "$ac_t""R${x11_release}" 1>&6
6696 { test "$extra_verbose" = "yes" && cat << EOF
6697 Defining THIS_IS_X11R${x11_release}
6699 cat >> confdefs.h <<EOF
6700 #define THIS_IS_X11R${x11_release} 1
6705 if test "${x11_release}" = "4"; then
6706 case "$with_widgets" in
6707 "" | "no") with_widgets=no ;;
6708 *) { echo "Error:" "Widget support requires X11R5 or greater" >&2; exit 1; } ;;
6712 for ac_func in XConvertCase
6714 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6715 echo "configure:6716: checking for $ac_func" >&5
6717 cat > conftest.$ac_ext <<EOF
6718 #line 6719 "configure"
6719 #include "confdefs.h"
6720 /* System header to define __stub macros and hopefully few prototypes,
6721 which can conflict with char $ac_func(); below. */
6723 /* Override any gcc2 internal prototype to avoid an error. */
6724 /* We use char because int might match the return type of a gcc2
6725 builtin and then its argument prototype would still apply. */
6730 /* The GNU C library defines this for functions which it implements
6731 to always fail with ENOSYS. Some functions are actually named
6732 something starting with __ and the normal name is an alias. */
6733 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6741 if { (eval echo configure:6742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6743 eval "ac_cv_func_$ac_func=yes"
6745 echo "configure: failed program was:" >&5
6746 cat conftest.$ac_ext >&5
6748 eval "ac_cv_func_$ac_func=no"
6752 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6753 echo "$ac_t""yes" 1>&6
6754 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6755 { test "$extra_verbose" = "yes" && cat << EOF
6756 Defining $ac_tr_func
6758 cat >> confdefs.h <<EOF
6759 #define $ac_tr_func 1
6764 echo "$ac_t""no" 1>&6
6769 for ac_hdr in X11/Xlocale.h
6771 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6772 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6773 echo "configure:6774: checking for $ac_hdr" >&5
6775 cat > conftest.$ac_ext <<EOF
6776 #line 6777 "configure"
6777 #include "confdefs.h"
6780 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6781 { (eval echo configure:6782: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6782 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6783 if test -z "$ac_err"; then
6785 eval "ac_cv_header_$ac_safe=yes"
6788 echo "configure: failed program was:" >&5
6789 cat conftest.$ac_ext >&5
6791 eval "ac_cv_header_$ac_safe=no"
6794 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6795 echo "$ac_t""yes" 1>&6
6796 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6797 { test "$extra_verbose" = "yes" && cat << EOF
6800 cat >> confdefs.h <<EOF
6801 #define $ac_tr_hdr 1
6806 echo "$ac_t""no" 1>&6
6811 for ac_func in XRegisterIMInstantiateCallback
6813 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6814 echo "configure:6815: checking for $ac_func" >&5
6816 cat > conftest.$ac_ext <<EOF
6817 #line 6818 "configure"
6818 #include "confdefs.h"
6819 /* System header to define __stub macros and hopefully few prototypes,
6820 which can conflict with char $ac_func(); below. */
6822 /* Override any gcc2 internal prototype to avoid an error. */
6823 /* We use char because int might match the return type of a gcc2
6824 builtin and then its argument prototype would still apply. */
6829 /* The GNU C library defines this for functions which it implements
6830 to always fail with ENOSYS. Some functions are actually named
6831 something starting with __ and the normal name is an alias. */
6832 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6840 if { (eval echo configure:6841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6842 eval "ac_cv_func_$ac_func=yes"
6844 echo "configure: failed program was:" >&5
6845 cat conftest.$ac_ext >&5
6847 eval "ac_cv_func_$ac_func=no"
6851 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6852 echo "$ac_t""yes" 1>&6
6853 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6854 { test "$extra_verbose" = "yes" && cat << EOF
6855 Defining $ac_tr_func
6857 cat >> confdefs.h <<EOF
6858 #define $ac_tr_func 1
6863 echo "$ac_t""no" 1>&6
6867 echo $ac_n "checking for standard XRegisterIMInstantiateCallback prototype""... $ac_c" 1>&6
6868 echo "configure:6869: checking for standard XRegisterIMInstantiateCallback prototype" >&5
6869 cat > conftest.$ac_ext <<EOF
6870 #line 6871 "configure"
6871 #include "confdefs.h"
6873 #define NeedFunctionPrototypes 1
6874 #include <X11/Xlib.h>
6875 extern Bool XRegisterIMInstantiateCallback(
6876 Display*, struct _XrmHashBucketRec*, char*, char*, XIMProc, XPointer*);
6882 if { (eval echo configure:6883: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6884 echo "$ac_t""yes" 1>&6
6886 echo "configure: failed program was:" >&5
6887 cat conftest.$ac_ext >&5
6889 echo "$ac_t""no" 1>&6
6890 { test "$extra_verbose" = "yes" && cat << \EOF
6891 Defining XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE
6893 cat >> confdefs.h <<\EOF
6894 #define XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE 1
6901 test -z "$with_xmu" && {
6902 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6
6903 echo "configure:6904: checking for XmuReadBitmapDataFromFile in -lXmu" >&5
6904 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'`
6906 xe_check_libs=" -lXmu "
6907 cat > conftest.$ac_ext <<EOF
6908 #line 6909 "configure"
6909 #include "confdefs.h"
6910 /* Override any gcc2 internal prototype to avoid an error. */
6911 /* We use char because int might match the return type of a gcc2
6912 builtin and then its argument prototype would still apply. */
6913 char XmuReadBitmapDataFromFile();
6916 XmuReadBitmapDataFromFile()
6919 if { (eval echo configure:6920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6921 eval "ac_cv_lib_$ac_lib_var=yes"
6923 echo "configure: failed program was:" >&5
6924 cat conftest.$ac_ext >&5
6926 eval "ac_cv_lib_$ac_lib_var=no"
6931 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6932 echo "$ac_t""yes" 1>&6
6935 echo "$ac_t""no" 1>&6
6940 if test "$with_xmu" = "no"; then
6941 extra_objs="$extra_objs xmu.o" && if test "$extra_verbose" = "yes"; then
6942 echo " xemacs will be linked with \"xmu.o\""
6945 libs_x="-lXmu $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXmu\" to \$libs_x"; fi
6946 { test "$extra_verbose" = "yes" && cat << \EOF
6949 cat >> confdefs.h <<\EOF
6957 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
6958 echo "configure:6959: checking for main in -lXbsd" >&5
6959 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
6961 xe_check_libs=" -lXbsd "
6962 cat > conftest.$ac_ext <<EOF
6963 #line 6964 "configure"
6964 #include "confdefs.h"
6970 if { (eval echo configure:6971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6972 eval "ac_cv_lib_$ac_lib_var=yes"
6974 echo "configure: failed program was:" >&5
6975 cat conftest.$ac_ext >&5
6977 eval "ac_cv_lib_$ac_lib_var=no"
6982 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6983 echo "$ac_t""yes" 1>&6
6984 libs_x="-lXbsd $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXbsd\" to \$libs_x"; fi
6986 echo "$ac_t""no" 1>&6
6991 if test "$unexec" = "unexaix.o" -a "$x11_release" = "6"; then
6992 if test "$GCC" = "yes"; then
6993 X_CFLAGS="-mthreads $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$X_CFLAGS"; fi
6994 libs_x="-mthreads $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$libs_x"; fi
6997 "xlc" ) CC="xlc_r" ;;
6998 "xlC" ) CC="xlC_r" ;;
7005 if test "$with_msw" != "no"; then
7006 echo "checking for MS-Windows" 1>&6
7007 echo "configure:7008: checking for MS-Windows" >&5
7009 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6
7010 echo "configure:7011: checking for main in -lgdi32" >&5
7011 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'`
7013 xe_check_libs=" -lgdi32 "
7014 cat > conftest.$ac_ext <<EOF
7015 #line 7016 "configure"
7016 #include "confdefs.h"
7022 if { (eval echo configure:7023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7024 eval "ac_cv_lib_$ac_lib_var=yes"
7026 echo "configure: failed program was:" >&5
7027 cat conftest.$ac_ext >&5
7029 eval "ac_cv_lib_$ac_lib_var=no"
7034 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7035 echo "$ac_t""yes" 1>&6
7038 echo "$ac_t""no" 1>&6
7042 if test "$with_msw" = "yes"; then
7043 { test "$extra_verbose" = "yes" && cat << \EOF
7044 Defining HAVE_MS_WINDOWS
7046 cat >> confdefs.h <<\EOF
7047 #define HAVE_MS_WINDOWS 1
7052 if test "$with_netinstall" = "yes"; then
7053 MAKE_SUBDIR="$MAKE_SUBDIR netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$MAKE_SUBDIR"; fi
7054 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$SRC_SUBDIR_DEPS"; fi
7055 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
7058 install_pp="$blddir/lib-src/installexe.sh"
7059 libs_system="$libs_system -lshell32 -lgdi32 -luser32 -lcomdlg32 -lcomctl32 -lwinspool" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lshell32 -lgdi32 -luser32 -lcomdlg32 -lcomctl32 -lwinspool\" to \$libs_system"; fi
7060 test "$with_dragndrop" != no && dragndrop_proto="$dragndrop_proto msw" && if test "$extra_verbose" = "yes"; then echo " Appending \"msw\" to \$dragndrop_proto"; fi
7061 if test "$window_system" != x11; then
7063 test "$with_scrollbars" != "no" && with_scrollbars=msw \
7064 && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
7065 echo " xemacs will be linked with \"scrollbar-msw.o\""
7067 test "$with_menubars" != "no" && with_menubars=msw \
7068 && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
7069 echo " xemacs will be linked with \"menubar-msw.o\""
7071 test "$with_toolbars" != "no" && with_toolbars=msw \
7072 && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
7073 echo " xemacs will be linked with \"toolbar-msw.o\""
7075 test "$with_dialogs" != "no" && with_dialogs=msw \
7076 && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
7077 echo " xemacs will be linked with \"dialog-msw.o\""
7079 test "$with_widgets" != "no" && with_widgets=msw
7081 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
7082 echo " xemacs will be linked with \"scrollbar-msw.o\""
7084 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
7085 echo " xemacs will be linked with \"menubar-msw.o\""
7087 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
7088 echo " xemacs will be linked with \"toolbar-msw.o\""
7090 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
7091 echo " xemacs will be linked with \"dialog-msw.o\""
7094 cat > conftest.$ac_ext <<EOF
7095 #line 7096 "configure"
7096 #include "confdefs.h"
7098 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; }
7100 if { (eval echo configure:7101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
7102 need_event_unixoid=yes; { test "$extra_verbose" = "yes" && cat << \EOF
7103 Defining HAVE_MSG_SELECT
7105 cat >> confdefs.h <<\EOF
7106 #define HAVE_MSG_SELECT 1
7112 echo "configure: failed program was:" >&5
7113 cat conftest.$ac_ext >&5
7116 with_file_coding=yes
7117 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
7118 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\""
7125 test -z "$window_system" && window_system="none"
7127 if test "$window_system" = "none"; then
7128 for feature in menubars scrollbars toolbars dialogs dragndrop xface
7130 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
7131 echo "configure: warning: --with-$feature ignored: Not valid without window system support" 1>&2
7133 eval "with_${feature}=no"
7136 test -z "$with_toolbars" && with_toolbars=yes
7139 if test "$with_msw" != "yes"; then
7140 for feature in MARTIN_IS_CLUELESS_ABOUT_MSW_FEATURES
7142 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
7143 echo "configure: warning: --with-$feature ignored: Not valid without MS-Windows support" 1>&2
7145 eval "with_${feature}=no"
7151 if test "$with_x11" != "yes"; then
7152 for feature in tooltalk cde offix wmcommand xim xmu nas_sound
7154 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
7155 echo "configure: warning: --with-$feature ignored: Not valid without X support" 1>&2
7157 eval "with_${feature}=no"
7161 if test "$with_x11" = "yes"; then
7162 ac_safe=`echo "X11/extensions/shape.h" | sed 'y%./+-%__p_%'`
7163 echo $ac_n "checking for X11/extensions/shape.h""... $ac_c" 1>&6
7164 echo "configure:7165: checking for X11/extensions/shape.h" >&5
7166 cat > conftest.$ac_ext <<EOF
7167 #line 7168 "configure"
7168 #include "confdefs.h"
7169 #include <X11/extensions/shape.h>
7171 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7172 { (eval echo configure:7173: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7173 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7174 if test -z "$ac_err"; then
7176 eval "ac_cv_header_$ac_safe=yes"
7179 echo "configure: failed program was:" >&5
7180 cat conftest.$ac_ext >&5
7182 eval "ac_cv_header_$ac_safe=no"
7185 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7186 echo "$ac_t""yes" 1>&6
7188 { test "$extra_verbose" = "yes" && cat << \EOF
7189 Defining HAVE_BALLOON_HELP
7191 cat >> confdefs.h <<\EOF
7192 #define HAVE_BALLOON_HELP 1
7196 extra_objs="$extra_objs balloon_help.o balloon-x.o" && if test "$extra_verbose" = "yes"; then
7197 echo " xemacs will be linked with \"balloon_help.o balloon-x.o\""
7200 echo "$ac_t""no" 1>&6
7207 case "$window_system" in
7208 x11 ) HAVE_X_WINDOWS=yes; echo " Using X11." ;;
7209 msw ) HAVE_X_WINDOWS=no ; echo " Using MS-Windows." ;;
7212 test "$with_gnome" = "yes" && echo " Using GNOME."
7213 test "$with_gnome" = "no" && echo " Using GTK."
7215 none ) HAVE_X_WINDOWS=no ; echo " Using no window system." ;;
7218 case "$x_libraries" in *X11R4* )
7219 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h"
7220 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h"
7223 echo "checking for WM_COMMAND option" 1>&6
7224 echo "configure:7225: checking for WM_COMMAND option" >&5;
7225 if test "$with_wmcommand" != "no"; then
7226 { test "$extra_verbose" = "yes" && cat << \EOF
7227 Defining HAVE_WMCOMMAND
7229 cat >> confdefs.h <<\EOF
7230 #define HAVE_WMCOMMAND 1
7236 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
7237 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'`
7238 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
7239 echo "configure:7240: checking for X11/Xauth.h" >&5
7241 cat > conftest.$ac_ext <<EOF
7242 #line 7243 "configure"
7243 #include "confdefs.h"
7244 #include <X11/Xauth.h>
7246 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7247 { (eval echo configure:7248: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7248 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7249 if test -z "$ac_err"; then
7251 eval "ac_cv_header_$ac_safe=yes"
7254 echo "configure: failed program was:" >&5
7255 cat conftest.$ac_ext >&5
7257 eval "ac_cv_header_$ac_safe=no"
7260 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7261 echo "$ac_t""yes" 1>&6
7264 echo "$ac_t""no" 1>&6
7268 test -z "$with_xauth" && {
7269 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
7270 echo "configure:7271: checking for XauGetAuthByAddr in -lXau" >&5
7271 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
7273 xe_check_libs=" -lXau "
7274 cat > conftest.$ac_ext <<EOF
7275 #line 7276 "configure"
7276 #include "confdefs.h"
7277 /* Override any gcc2 internal prototype to avoid an error. */
7278 /* We use char because int might match the return type of a gcc2
7279 builtin and then its argument prototype would still apply. */
7280 char XauGetAuthByAddr();
7286 if { (eval echo configure:7287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7288 eval "ac_cv_lib_$ac_lib_var=yes"
7290 echo "configure: failed program was:" >&5
7291 cat conftest.$ac_ext >&5
7293 eval "ac_cv_lib_$ac_lib_var=no"
7298 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7299 echo "$ac_t""yes" 1>&6
7302 echo "$ac_t""no" 1>&6
7307 test -z "$with_xauth" && with_xauth=yes
7308 if test "$with_xauth" = "yes"; then
7309 { test "$extra_verbose" = "yes" && cat << \EOF
7312 cat >> confdefs.h <<\EOF
7313 #define HAVE_XAUTH 1
7319 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
7327 if test "$with_tooltalk" != "no" ; then
7328 for dir in "" "Tt/" "desktop/" ; do
7329 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
7330 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
7331 echo "configure:7332: checking for ${dir}tt_c.h" >&5
7333 cat > conftest.$ac_ext <<EOF
7334 #line 7335 "configure"
7335 #include "confdefs.h"
7336 #include <${dir}tt_c.h>
7338 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7339 { (eval echo configure:7340: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7340 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7341 if test -z "$ac_err"; then
7343 eval "ac_cv_header_$ac_safe=yes"
7346 echo "configure: failed program was:" >&5
7347 cat conftest.$ac_ext >&5
7349 eval "ac_cv_header_$ac_safe=no"
7352 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7353 echo "$ac_t""yes" 1>&6
7354 tt_c_h_file="${dir}tt_c.h"; break
7356 echo "$ac_t""no" 1>&6
7360 if test -z "$tt_c_h_file"; then
7361 if test "$with_tooltalk" = "yes"; then
7362 (echo "$progname: Usage error:"
7363 echo " " "Unable to find required tooltalk header files."
7364 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
7369 if test "$with_tooltalk" != "no" ; then
7370 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
7372 xe_msg_checking="for tt_message_create in -ltt"
7373 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
7374 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7375 echo "configure:7376: checking "$xe_msg_checking"" >&5
7376 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
7378 xe_check_libs=" -ltt $extra_libs"
7379 cat > conftest.$ac_ext <<EOF
7380 #line 7381 "configure"
7381 #include "confdefs.h"
7382 /* Override any gcc2 internal prototype to avoid an error. */
7383 /* We use char because int might match the return type of a gcc2
7384 builtin and then its argument prototype would still apply. */
7385 char tt_message_create();
7391 if { (eval echo configure:7392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7393 eval "ac_cv_lib_$ac_lib_var=yes"
7395 echo "configure: failed program was:" >&5
7396 cat conftest.$ac_ext >&5
7398 eval "ac_cv_lib_$ac_lib_var=no"
7403 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7404 echo "$ac_t""yes" 1>&6
7405 tt_libs="-ltt $extra_libs"; break
7407 echo "$ac_t""no" 1>&6
7413 if test -z "$tt_libs"; then
7414 if test "$with_tooltalk" = "yes"; then
7415 (echo "$progname: Usage error:"
7416 echo " " "Unable to find required tooltalk libraries."
7417 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
7422 test -z "$with_tooltalk" && with_tooltalk=yes
7423 if test "$with_tooltalk" = "yes"; then
7424 { test "$extra_verbose" = "yes" && cat << \EOF
7427 cat >> confdefs.h <<\EOF
7432 { test "$extra_verbose" = "yes" && cat << EOF
7433 Defining TT_C_H_FILE = "$tt_c_h_file"
7435 cat >> confdefs.h <<EOF
7436 #define TT_C_H_FILE "$tt_c_h_file"
7440 libs_x="$tt_libs $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$tt_libs\" to \$libs_x"; fi
7441 extra_objs="$extra_objs tooltalk.o" && if test "$extra_verbose" = "yes"; then
7442 echo " xemacs will be linked with \"tooltalk.o\""
7446 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'`
7447 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
7448 echo "configure:7449: checking for Dt/Dt.h" >&5
7450 cat > conftest.$ac_ext <<EOF
7451 #line 7452 "configure"
7452 #include "confdefs.h"
7455 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7456 { (eval echo configure:7457: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7457 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7458 if test -z "$ac_err"; then
7460 eval "ac_cv_header_$ac_safe=yes"
7463 echo "configure: failed program was:" >&5
7464 cat conftest.$ac_ext >&5
7466 eval "ac_cv_header_$ac_safe=no"
7469 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7470 echo "$ac_t""yes" 1>&6
7473 echo "$ac_t""no" 1>&6
7477 test -z "$with_cde" && {
7478 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
7479 echo "configure:7480: checking for DtDndDragStart in -lDtSvc" >&5
7480 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
7482 xe_check_libs=" -lDtSvc "
7483 cat > conftest.$ac_ext <<EOF
7484 #line 7485 "configure"
7485 #include "confdefs.h"
7486 /* Override any gcc2 internal prototype to avoid an error. */
7487 /* We use char because int might match the return type of a gcc2
7488 builtin and then its argument prototype would still apply. */
7489 char DtDndDragStart();
7495 if { (eval echo configure:7496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7497 eval "ac_cv_lib_$ac_lib_var=yes"
7499 echo "configure: failed program was:" >&5
7500 cat conftest.$ac_ext >&5
7502 eval "ac_cv_lib_$ac_lib_var=no"
7507 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7508 echo "$ac_t""yes" 1>&6
7511 echo "$ac_t""no" 1>&6
7516 test -z "$with_cde" && with_cde=yes
7517 if test "$with_dragndrop" = no; then
7518 echo "configure: warning: No CDE without generic Drag'n'Drop support" 1>&2
7521 if test "$with_cde" = "yes" ; then
7522 { test "$extra_verbose" = "yes" && cat << \EOF
7525 cat >> confdefs.h <<\EOF
7530 libs_x="-lDtSvc $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lDtSvc\" to \$libs_x"; fi
7531 dragndrop_proto="$dragndrop_proto CDE" && if test "$extra_verbose" = "yes"; then echo " Appending \"CDE\" to \$dragndrop_proto"; fi
7532 with_tooltalk=yes # CDE requires Tooltalk
7533 need_motif=yes # CDE requires Motif
7536 test "$window_system" != "x11" && with_offix=no
7537 if test "$with_xmu" != yes -a "$with_x11" = yes; then
7538 echo "configure: warning: No OffiX without real Xmu support" 1>&2
7541 if test "$with_dragndrop" = no; then
7542 echo "configure: warning: No OffiX without generic Drag'n'Drop support" 1>&2
7545 if test "$with_cde" = yes; then
7546 echo "configure: warning: CDE already found, disabling OffiX support" 1>&2
7549 test -z "$with_offix" && with_offix=no
7550 if test "$with_offix" = "yes"; then
7551 { test "$extra_verbose" = "yes" && cat << \EOF
7552 Defining HAVE_OFFIX_DND
7554 cat >> confdefs.h <<\EOF
7555 #define HAVE_OFFIX_DND 1
7559 dnd_objs="$dnd_objs offix.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"offix.o\" to \$dnd_objs"; fi
7560 dragndrop_proto="$dragndrop_proto OffiX" && if test "$extra_verbose" = "yes"; then echo " Appending \"OffiX\" to \$dragndrop_proto"; fi
7562 if test "$with_gtk" = "yes"; then
7563 dragndrop_proto="$dragndrop_proto GTK" && if test "$extra_verbose" = "yes"; then echo " Appending \"GTK\" to \$dragndrop_proto"; fi
7566 if test "$with_dragndrop" != "no" ; then
7567 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6
7568 echo "configure:7569: checking if drag and drop API is needed" >&5
7569 if test -n "$dragndrop_proto" ; then
7571 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6
7572 { test "$extra_verbose" = "yes" && cat << \EOF
7573 Defining HAVE_DRAGNDROP
7575 cat >> confdefs.h <<\EOF
7576 #define HAVE_DRAGNDROP 1
7580 extra_objs="$extra_objs dragdrop.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"dragdrop.o\" to \$extra_objs"; fi
7583 echo "$ac_t""no" 1>&6
7587 echo "checking for LDAP" 1>&6
7588 echo "configure:7589: checking for LDAP" >&5
7589 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'`
7590 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6
7591 echo "configure:7592: checking for ldap.h" >&5
7593 cat > conftest.$ac_ext <<EOF
7594 #line 7595 "configure"
7595 #include "confdefs.h"
7598 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7599 { (eval echo configure:7600: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7600 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7601 if test -z "$ac_err"; then
7603 eval "ac_cv_header_$ac_safe=yes"
7606 echo "configure: failed program was:" >&5
7607 cat conftest.$ac_ext >&5
7609 eval "ac_cv_header_$ac_safe=no"
7612 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7613 echo "$ac_t""yes" 1>&6
7616 echo "$ac_t""no" 1>&6
7620 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'`
7621 echo $ac_n "checking for lber.h""... $ac_c" 1>&6
7622 echo "configure:7623: checking for lber.h" >&5
7624 cat > conftest.$ac_ext <<EOF
7625 #line 7626 "configure"
7626 #include "confdefs.h"
7629 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7630 { (eval echo configure:7631: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7631 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7632 if test -z "$ac_err"; then
7634 eval "ac_cv_header_$ac_safe=yes"
7637 echo "configure: failed program was:" >&5
7638 cat conftest.$ac_ext >&5
7640 eval "ac_cv_header_$ac_safe=no"
7643 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7644 echo "$ac_t""yes" 1>&6
7647 echo "$ac_t""no" 1>&6
7651 if test "$with_ldap" != "no"; then
7653 echo $ac_n "checking for ldap_search in -lldap""... $ac_c" 1>&6
7654 echo "configure:7655: checking for ldap_search in -lldap" >&5
7655 ac_lib_var=`echo ldap'_'ldap_search | sed 'y%./+-%__p_%'`
7657 xe_check_libs=" -lldap "
7658 cat > conftest.$ac_ext <<EOF
7659 #line 7660 "configure"
7660 #include "confdefs.h"
7661 /* Override any gcc2 internal prototype to avoid an error. */
7662 /* We use char because int might match the return type of a gcc2
7663 builtin and then its argument prototype would still apply. */
7670 if { (eval echo configure:7671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7672 eval "ac_cv_lib_$ac_lib_var=yes"
7674 echo "configure: failed program was:" >&5
7675 cat conftest.$ac_ext >&5
7677 eval "ac_cv_lib_$ac_lib_var=no"
7682 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7683 echo "$ac_t""yes" 1>&6
7684 with_ldap_nolber=yes
7686 echo "$ac_t""no" 1>&6
7691 test "$with_ldap_nolber" = "no" && {
7692 xe_msg_checking="for ldap_open in -lldap"
7693 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber"
7694 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7695 echo "configure:7696: checking "$xe_msg_checking"" >&5
7696 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7698 xe_check_libs=" -lldap -llber"
7699 cat > conftest.$ac_ext <<EOF
7700 #line 7701 "configure"
7701 #include "confdefs.h"
7702 /* Override any gcc2 internal prototype to avoid an error. */
7703 /* We use char because int might match the return type of a gcc2
7704 builtin and then its argument prototype would still apply. */
7711 if { (eval echo configure:7712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7713 eval "ac_cv_lib_$ac_lib_var=yes"
7715 echo "configure: failed program was:" >&5
7716 cat conftest.$ac_ext >&5
7718 eval "ac_cv_lib_$ac_lib_var=no"
7723 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7724 echo "$ac_t""yes" 1>&6
7727 echo "$ac_t""no" 1>&6
7732 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" && {
7733 xe_msg_checking="for ldap_open in -lldap"
7734 test -n "-llber -lkrb" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb"
7735 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7736 echo "configure:7737: checking "$xe_msg_checking"" >&5
7737 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7739 xe_check_libs=" -lldap -llber -lkrb"
7740 cat > conftest.$ac_ext <<EOF
7741 #line 7742 "configure"
7742 #include "confdefs.h"
7743 /* Override any gcc2 internal prototype to avoid an error. */
7744 /* We use char because int might match the return type of a gcc2
7745 builtin and then its argument prototype would still apply. */
7752 if { (eval echo configure:7753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7754 eval "ac_cv_lib_$ac_lib_var=yes"
7756 echo "configure: failed program was:" >&5
7757 cat conftest.$ac_ext >&5
7759 eval "ac_cv_lib_$ac_lib_var=no"
7764 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7765 echo "$ac_t""yes" 1>&6
7768 echo "$ac_t""no" 1>&6
7773 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" -a "$with_ldap_krb" = "no" && {
7774 xe_msg_checking="for ldap_open in -lldap"
7775 test -n "-llber -lkrb -ldes" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb -ldes"
7776 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7777 echo "configure:7778: checking "$xe_msg_checking"" >&5
7778 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7780 xe_check_libs=" -lldap -llber -lkrb -ldes"
7781 cat > conftest.$ac_ext <<EOF
7782 #line 7783 "configure"
7783 #include "confdefs.h"
7784 /* Override any gcc2 internal prototype to avoid an error. */
7785 /* We use char because int might match the return type of a gcc2
7786 builtin and then its argument prototype would still apply. */
7793 if { (eval echo configure:7794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7795 eval "ac_cv_lib_$ac_lib_var=yes"
7797 echo "configure: failed program was:" >&5
7798 cat conftest.$ac_ext >&5
7800 eval "ac_cv_lib_$ac_lib_var=no"
7805 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7806 echo "$ac_t""yes" 1>&6
7807 with_ldap_krbdes=yes
7809 echo "$ac_t""no" 1>&6
7814 test -z "$with_ldap" -a \( "$with_ldap_lber" = "yes" -o "$with_ldap_nolber" = "yes" -o "$with_ldap_krb" = "yes" -o "$with_ldap_krbdes" = "yes" \) && with_ldap=yes
7816 if test "$with_ldap" = "yes"; then
7817 { test "$extra_verbose" = "yes" && cat << \EOF
7820 cat >> confdefs.h <<\EOF
7825 extra_objs="$extra_objs eldap.o" && if test "$extra_verbose" = "yes"; then
7826 echo " xemacs will be linked with \"eldap.o\""
7828 if test "$with_ldap_nolber" = "yes" ; then
7829 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
7831 if test "$with_ldap_krb" = "yes" ; then
7832 LIBS="-lkrb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$LIBS"; fi
7834 if test "$with_ldap_krbdes" = "yes" ; then
7835 LIBS="-ldes $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldes\" to \$LIBS"; fi
7836 LIBS="-lkrb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$LIBS"; fi
7838 LIBS="-llber $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-llber\" to \$LIBS"; fi
7839 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
7841 for ac_func in ldap_set_option ldap_get_lderrno ldap_result2error ldap_parse_result
7843 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7844 echo "configure:7845: checking for $ac_func" >&5
7846 cat > conftest.$ac_ext <<EOF
7847 #line 7848 "configure"
7848 #include "confdefs.h"
7849 /* System header to define __stub macros and hopefully few prototypes,
7850 which can conflict with char $ac_func(); below. */
7852 /* Override any gcc2 internal prototype to avoid an error. */
7853 /* We use char because int might match the return type of a gcc2
7854 builtin and then its argument prototype would still apply. */
7859 /* The GNU C library defines this for functions which it implements
7860 to always fail with ENOSYS. Some functions are actually named
7861 something starting with __ and the normal name is an alias. */
7862 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7870 if { (eval echo configure:7871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7872 eval "ac_cv_func_$ac_func=yes"
7874 echo "configure: failed program was:" >&5
7875 cat conftest.$ac_ext >&5
7877 eval "ac_cv_func_$ac_func=no"
7881 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7882 echo "$ac_t""yes" 1>&6
7883 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7884 { test "$extra_verbose" = "yes" && cat << EOF
7885 Defining $ac_tr_func
7887 cat >> confdefs.h <<EOF
7888 #define $ac_tr_func 1
7893 echo "$ac_t""no" 1>&6
7899 if test "$with_postgresql" != "no"; then
7900 echo "checking for PostgreSQL" 1>&6
7901 echo "configure:7902: checking for PostgreSQL" >&5
7903 for header_dir in "" "pgsql/" "postgresql/"; do
7904 ac_safe=`echo "${header_dir}libpq-fe.h" | sed 'y%./+-%__p_%'`
7905 echo $ac_n "checking for ${header_dir}libpq-fe.h""... $ac_c" 1>&6
7906 echo "configure:7907: checking for ${header_dir}libpq-fe.h" >&5
7908 cat > conftest.$ac_ext <<EOF
7909 #line 7910 "configure"
7910 #include "confdefs.h"
7911 #include <${header_dir}libpq-fe.h>
7913 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7914 { (eval echo configure:7915: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7915 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7916 if test -z "$ac_err"; then
7918 eval "ac_cv_header_$ac_safe=yes"
7921 echo "configure: failed program was:" >&5
7922 cat conftest.$ac_ext >&5
7924 eval "ac_cv_header_$ac_safe=no"
7927 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7928 echo "$ac_t""yes" 1>&6
7929 libpq_fe_h_file=${header_dir}libpq-fe.h; break
7931 echo "$ac_t""no" 1>&6
7936 test -n "$libpq_fe_h_file" && {
7937 echo $ac_n "checking for PQconnectdb in -lpq""... $ac_c" 1>&6
7938 echo "configure:7939: checking for PQconnectdb in -lpq" >&5
7939 ac_lib_var=`echo pq'_'PQconnectdb | sed 'y%./+-%__p_%'`
7941 xe_check_libs=" -lpq "
7942 cat > conftest.$ac_ext <<EOF
7943 #line 7944 "configure"
7944 #include "confdefs.h"
7945 /* Override any gcc2 internal prototype to avoid an error. */
7946 /* We use char because int might match the return type of a gcc2
7947 builtin and then its argument prototype would still apply. */
7954 if { (eval echo configure:7955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7956 eval "ac_cv_lib_$ac_lib_var=yes"
7958 echo "configure: failed program was:" >&5
7959 cat conftest.$ac_ext >&5
7961 eval "ac_cv_lib_$ac_lib_var=no"
7966 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7967 echo "$ac_t""yes" 1>&6
7970 echo "$ac_t""no" 1>&6
7975 if test -n "$libpq_fe_h_file" -a "$have_libpq" = "yes"; then
7977 { test "$extra_verbose" = "yes" && cat << \EOF
7978 Defining HAVE_POSTGRESQL
7980 cat >> confdefs.h <<\EOF
7981 #define HAVE_POSTGRESQL 1
7986 echo $ac_n "checking for PQconnectStart in -lpq""... $ac_c" 1>&6
7987 echo "configure:7988: checking for PQconnectStart in -lpq" >&5
7988 ac_lib_var=`echo pq'_'PQconnectStart | sed 'y%./+-%__p_%'`
7990 xe_check_libs=" -lpq "
7991 cat > conftest.$ac_ext <<EOF
7992 #line 7993 "configure"
7993 #include "confdefs.h"
7994 /* Override any gcc2 internal prototype to avoid an error. */
7995 /* We use char because int might match the return type of a gcc2
7996 builtin and then its argument prototype would still apply. */
7997 char PQconnectStart();
8003 if { (eval echo configure:8004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8005 eval "ac_cv_lib_$ac_lib_var=yes"
8007 echo "configure: failed program was:" >&5
8008 cat conftest.$ac_ext >&5
8010 eval "ac_cv_lib_$ac_lib_var=no"
8015 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8016 echo "$ac_t""yes" 1>&6
8017 with_postgresqlv7=yes;
8018 { test "$extra_verbose" = "yes" && cat << \EOF
8019 Defining HAVE_POSTGRESQLV7
8021 cat >> confdefs.h <<\EOF
8022 #define HAVE_POSTGRESQLV7 1
8027 echo "$ac_t""no" 1>&6
8031 { test "$extra_verbose" = "yes" && cat << EOF
8032 Defining LIBPQ_FE_H_FILE = "$libpq_fe_h_file"
8034 cat >> confdefs.h <<EOF
8035 #define LIBPQ_FE_H_FILE "$libpq_fe_h_file"
8039 LIBS="-lpq $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpq\" to \$LIBS"; fi
8040 extra_objs="$extra_objs postgresql.o" && if test "$extra_verbose" = "yes"; then
8041 echo " xemacs will be linked with \"postgresql.o\""
8043 elif test "$with_postgresql" = "yes"; then
8044 { echo "Error:" "Required PostgreSQL support cannot be provided. Check --site-prefixes." >&2; exit 1; }
8049 if test "$window_system" != "none"; then
8050 echo "checking for graphics libraries" 1>&6
8051 echo "configure:8052: checking for graphics libraries" >&5
8057 cygwin_top=`eval "gcc -print-file-name=libc.a"` ;
8058 cygwin_top=`eval "dirname ${cygwin_top}"`;
8059 cygwin_top="${cygwin_top}/..";
8060 case "$window_system" in
8062 msw) libpath_xpm="-L${cygwin_top}/lib/noX"
8063 incpath_xpm="-I${cygwin_top}/include/noX"
8073 if test -z "$with_xpm"; then
8074 CFLAGS=""$incpath_xpm" $CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$incpath_xpm"\" to \$CFLAGS"; fi
8075 LDFLAGS=""$libpath_xpm" $LDFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libpath_xpm"\" to \$LDFLAGS"; fi
8076 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6
8077 echo "configure:8078: checking for Xpm - no older than 3.4f" >&5
8079 cat > conftest.$ac_ext <<EOF
8080 #line 8081 "configure"
8081 #include "confdefs.h"
8083 #include <X11/xpm.h>
8084 int main(int c, char **v) {
8086 XpmIncludeVersion != XpmLibraryVersion() ? 1 :
8087 XpmIncludeVersion < 30406 ? 2 : 0 ;}
8089 if { (eval echo configure:8090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
8091 ./conftest dummy_arg; xpm_status=$?;
8092 if test "$xpm_status" = "0"; then
8096 if test "$xpm_status" = "1"; then
8097 xpm_problem="Xpm library version and header file version don't match!"
8098 elif test "$xpm_status" = "2"; then
8099 xpm_problem="Xpm library version is too old!"
8101 xpm_problem="Internal xpm detection logic error!"
8104 *** WARNING *** $xpm_problem
8105 I'm not touching that with a 10-foot pole!
8106 If you really want to use the installed version of Xpm, rerun
8107 configure and add '--with-xpm=yes', but don't blame me if XEmacs crashes!"
8111 echo "configure: failed program was:" >&5
8112 cat conftest.$ac_ext >&5
8118 echo "$ac_t""$with_xpm" 1>&6
8120 if test "$with_xpm" = "yes"; then
8121 { test "$extra_verbose" = "yes" && cat << \EOF
8124 cat >> confdefs.h <<\EOF
8129 LDFLAGS=""$libpath_xpm" $LDFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libpath_xpm"\" to \$LDFLAGS"; fi
8130 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
8131 CFLAGS=""$incpath_xpm" $CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$incpath_xpm"\" to \$CFLAGS"; fi
8132 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6
8133 echo "configure:8134: checking for \"FOR_MSW\" xpm" >&5
8135 cat > conftest.$ac_ext <<EOF
8136 #line 8137 "configure"
8137 #include "confdefs.h"
8140 XpmCreatePixmapFromData()
8143 if { (eval echo configure:8144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8147 echo "configure: failed program was:" >&5
8148 cat conftest.$ac_ext >&5
8154 echo "$ac_t""$xpm_for_msw" 1>&6
8155 if test "$xpm_for_msw" = "yes"; then
8156 { test "$extra_verbose" = "yes" && cat << \EOF
8159 cat >> confdefs.h <<\EOF
8167 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
8168 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
8169 echo "configure:8170: checking for compface.h" >&5
8171 cat > conftest.$ac_ext <<EOF
8172 #line 8173 "configure"
8173 #include "confdefs.h"
8174 #include <compface.h>
8176 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8177 { (eval echo configure:8178: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8178 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8179 if test -z "$ac_err"; then
8181 eval "ac_cv_header_$ac_safe=yes"
8184 echo "configure: failed program was:" >&5
8185 cat conftest.$ac_ext >&5
8187 eval "ac_cv_header_$ac_safe=no"
8190 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8191 echo "$ac_t""yes" 1>&6
8194 echo "$ac_t""no" 1>&6
8198 test -z "$with_xface" && {
8199 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
8200 echo "configure:8201: checking for UnGenFace in -lcompface" >&5
8201 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
8203 xe_check_libs=" -lcompface "
8204 cat > conftest.$ac_ext <<EOF
8205 #line 8206 "configure"
8206 #include "confdefs.h"
8207 /* Override any gcc2 internal prototype to avoid an error. */
8208 /* We use char because int might match the return type of a gcc2
8209 builtin and then its argument prototype would still apply. */
8216 if { (eval echo configure:8217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8218 eval "ac_cv_lib_$ac_lib_var=yes"
8220 echo "configure: failed program was:" >&5
8221 cat conftest.$ac_ext >&5
8223 eval "ac_cv_lib_$ac_lib_var=no"
8228 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8229 echo "$ac_t""yes" 1>&6
8232 echo "$ac_t""no" 1>&6
8237 test -z "$with_xface" && with_xface=yes
8238 if test "$with_xface" = "yes"; then
8239 { test "$extra_verbose" = "yes" && cat << \EOF
8242 cat >> confdefs.h <<\EOF
8243 #define HAVE_XFACE 1
8247 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi
8250 if test "$with_gif" != "no"; then
8252 { test "$extra_verbose" = "yes" && cat << \EOF
8255 cat >> confdefs.h <<\EOF
8260 extra_objs="$extra_objs dgif_lib.o gif_io.o" && if test "$extra_verbose" = "yes"; then
8261 echo " xemacs will be linked with \"dgif_lib.o gif_io.o\""
8265 if test "$with_png $with_tiff" != "no no"; then
8267 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6
8268 echo "configure:8269: checking for inflate in -lc" >&5
8269 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'`
8271 xe_check_libs=" -lc "
8272 cat > conftest.$ac_ext <<EOF
8273 #line 8274 "configure"
8274 #include "confdefs.h"
8275 /* Override any gcc2 internal prototype to avoid an error. */
8276 /* We use char because int might match the return type of a gcc2
8277 builtin and then its argument prototype would still apply. */
8284 if { (eval echo configure:8285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8286 eval "ac_cv_lib_$ac_lib_var=yes"
8288 echo "configure: failed program was:" >&5
8289 cat conftest.$ac_ext >&5
8291 eval "ac_cv_lib_$ac_lib_var=no"
8296 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8297 echo "$ac_t""yes" 1>&6
8300 echo "$ac_t""no" 1>&6
8302 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
8303 echo "configure:8304: checking for inflate in -lz" >&5
8304 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
8306 xe_check_libs=" -lz "
8307 cat > conftest.$ac_ext <<EOF
8308 #line 8309 "configure"
8309 #include "confdefs.h"
8310 /* Override any gcc2 internal prototype to avoid an error. */
8311 /* We use char because int might match the return type of a gcc2
8312 builtin and then its argument prototype would still apply. */
8319 if { (eval echo configure:8320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8321 eval "ac_cv_lib_$ac_lib_var=yes"
8323 echo "configure: failed program was:" >&5
8324 cat conftest.$ac_ext >&5
8326 eval "ac_cv_lib_$ac_lib_var=no"
8331 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8332 echo "$ac_t""yes" 1>&6
8333 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi
8335 echo "$ac_t""no" 1>&6
8337 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6
8338 echo "configure:8339: checking for inflate in -lgz" >&5
8339 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'`
8341 xe_check_libs=" -lgz "
8342 cat > conftest.$ac_ext <<EOF
8343 #line 8344 "configure"
8344 #include "confdefs.h"
8345 /* Override any gcc2 internal prototype to avoid an error. */
8346 /* We use char because int might match the return type of a gcc2
8347 builtin and then its argument prototype would still apply. */
8354 if { (eval echo configure:8355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8356 eval "ac_cv_lib_$ac_lib_var=yes"
8358 echo "configure: failed program was:" >&5
8359 cat conftest.$ac_ext >&5
8361 eval "ac_cv_lib_$ac_lib_var=no"
8366 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8367 echo "$ac_t""yes" 1>&6
8368 libs_x="-lgz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgz\" to \$libs_x"; fi
8370 echo "$ac_t""no" 1>&6
8382 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
8383 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
8384 echo "configure:8385: checking for jpeglib.h" >&5
8386 cat > conftest.$ac_ext <<EOF
8387 #line 8388 "configure"
8388 #include "confdefs.h"
8389 #include <jpeglib.h>
8391 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8392 { (eval echo configure:8393: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8393 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8394 if test -z "$ac_err"; then
8396 eval "ac_cv_header_$ac_safe=yes"
8399 echo "configure: failed program was:" >&5
8400 cat conftest.$ac_ext >&5
8402 eval "ac_cv_header_$ac_safe=no"
8405 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8406 echo "$ac_t""yes" 1>&6
8409 echo "$ac_t""no" 1>&6
8413 test -z "$with_jpeg" && {
8414 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6
8415 echo "configure:8416: checking for jpeg_destroy_decompress in -ljpeg" >&5
8416 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'`
8418 xe_check_libs=" -ljpeg "
8419 cat > conftest.$ac_ext <<EOF
8420 #line 8421 "configure"
8421 #include "confdefs.h"
8422 /* Override any gcc2 internal prototype to avoid an error. */
8423 /* We use char because int might match the return type of a gcc2
8424 builtin and then its argument prototype would still apply. */
8425 char jpeg_destroy_decompress();
8428 jpeg_destroy_decompress()
8431 if { (eval echo configure:8432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8433 eval "ac_cv_lib_$ac_lib_var=yes"
8435 echo "configure: failed program was:" >&5
8436 cat conftest.$ac_ext >&5
8438 eval "ac_cv_lib_$ac_lib_var=no"
8443 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8444 echo "$ac_t""yes" 1>&6
8447 echo "$ac_t""no" 1>&6
8452 test -z "$with_jpeg" && with_jpeg=yes
8453 if test "$with_jpeg" = "yes"; then
8454 { test "$extra_verbose" = "yes" && cat << \EOF
8457 cat >> confdefs.h <<\EOF
8462 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi
8466 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6
8467 echo "configure:8468: checking for pow" >&5
8469 cat > conftest.$ac_ext <<EOF
8470 #line 8471 "configure"
8471 #include "confdefs.h"
8472 /* System header to define __stub macros and hopefully few prototypes,
8473 which can conflict with char pow(); below. */
8475 /* Override any gcc2 internal prototype to avoid an error. */
8476 /* We use char because int might match the return type of a gcc2
8477 builtin and then its argument prototype would still apply. */
8482 /* The GNU C library defines this for functions which it implements
8483 to always fail with ENOSYS. Some functions are actually named
8484 something starting with __ and the normal name is an alias. */
8485 #if defined (__stub_pow) || defined (__stub___pow)
8493 if { (eval echo configure:8494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8495 eval "ac_cv_func_pow=yes"
8497 echo "configure: failed program was:" >&5
8498 cat conftest.$ac_ext >&5
8500 eval "ac_cv_func_pow=no"
8504 if eval "test \"`echo '$ac_cv_func_'pow`\" = yes"; then
8505 echo "$ac_t""yes" 1>&6
8508 echo "$ac_t""no" 1>&6
8512 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
8513 echo $ac_n "checking for png.h""... $ac_c" 1>&6
8514 echo "configure:8515: checking for png.h" >&5
8516 cat > conftest.$ac_ext <<EOF
8517 #line 8518 "configure"
8518 #include "confdefs.h"
8521 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8522 { (eval echo configure:8523: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8523 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8524 if test -z "$ac_err"; then
8526 eval "ac_cv_header_$ac_safe=yes"
8529 echo "configure: failed program was:" >&5
8530 cat conftest.$ac_ext >&5
8532 eval "ac_cv_header_$ac_safe=no"
8535 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8536 echo "$ac_t""yes" 1>&6
8539 echo "$ac_t""no" 1>&6
8543 test -z "$with_png" && {
8544 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6
8545 echo "configure:8546: checking for png_read_image in -lpng" >&5
8546 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
8548 xe_check_libs=" -lpng "
8549 cat > conftest.$ac_ext <<EOF
8550 #line 8551 "configure"
8551 #include "confdefs.h"
8552 /* Override any gcc2 internal prototype to avoid an error. */
8553 /* We use char because int might match the return type of a gcc2
8554 builtin and then its argument prototype would still apply. */
8555 char png_read_image();
8561 if { (eval echo configure:8562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8563 eval "ac_cv_lib_$ac_lib_var=yes"
8565 echo "configure: failed program was:" >&5
8566 cat conftest.$ac_ext >&5
8568 eval "ac_cv_lib_$ac_lib_var=no"
8573 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8574 echo "$ac_t""yes" 1>&6
8577 echo "$ac_t""no" 1>&6
8582 if test -z "$with_png"; then
8583 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6
8584 echo "configure:8585: checking for workable png version information" >&5
8585 xe_check_libs="-lpng -lz"
8586 cat > conftest.$ac_ext <<EOF
8587 #line 8588 "configure"
8588 #include "confdefs.h"
8590 int main(int c, char **v) {
8591 if (c == 1) return 0;
8592 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1;
8593 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;}
8595 if { (eval echo configure:8596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
8597 ./conftest dummy_arg; png_status=$?;
8598 if test "$png_status" = "0"; then
8602 if test "$png_status" = "1"; then
8603 png_problem="PNG library version and header file don't match!"
8604 elif test "$png_status" = "2"; then
8605 png_problem="PNG library version too old (pre 1.0.2)!"
8608 *** WARNING *** $png_problem
8609 I'm not touching that with a 10-foot pole!
8610 If you really want to use the installed version of libPNG, rerun
8611 configure and add '--with-png=yes', but don't blame me if XEmacs crashes!"
8615 echo "configure: failed program was:" >&5
8616 cat conftest.$ac_ext >&5
8622 echo "$ac_t""$with_png" 1>&6
8624 if test "$with_png" = "yes"; then
8625 { test "$extra_verbose" = "yes" && cat << \EOF
8628 cat >> confdefs.h <<\EOF
8633 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi
8636 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
8637 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
8638 echo "configure:8639: checking for tiffio.h" >&5
8640 cat > conftest.$ac_ext <<EOF
8641 #line 8642 "configure"
8642 #include "confdefs.h"
8645 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8646 { (eval echo configure:8647: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8647 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8648 if test -z "$ac_err"; then
8650 eval "ac_cv_header_$ac_safe=yes"
8653 echo "configure: failed program was:" >&5
8654 cat conftest.$ac_ext >&5
8656 eval "ac_cv_header_$ac_safe=no"
8659 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8660 echo "$ac_t""yes" 1>&6
8663 echo "$ac_t""no" 1>&6
8667 test -z "$with_tiff" && {
8668 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6
8669 echo "configure:8670: checking for TIFFClientOpen in -ltiff" >&5
8670 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'`
8672 xe_check_libs=" -ltiff "
8673 cat > conftest.$ac_ext <<EOF
8674 #line 8675 "configure"
8675 #include "confdefs.h"
8676 /* Override any gcc2 internal prototype to avoid an error. */
8677 /* We use char because int might match the return type of a gcc2
8678 builtin and then its argument prototype would still apply. */
8679 char TIFFClientOpen();
8685 if { (eval echo configure:8686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8687 eval "ac_cv_lib_$ac_lib_var=yes"
8689 echo "configure: failed program was:" >&5
8690 cat conftest.$ac_ext >&5
8692 eval "ac_cv_lib_$ac_lib_var=no"
8697 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8698 echo "$ac_t""yes" 1>&6
8701 echo "$ac_t""no" 1>&6
8706 test -z "$with_tiff" && with_tiff=yes
8707 if test "$with_tiff" = "yes"; then
8708 { test "$extra_verbose" = "yes" && cat << \EOF
8711 cat >> confdefs.h <<\EOF
8716 libs_x="-ltiff $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltiff\" to \$libs_x"; fi
8721 if test "$with_gtk" = "yes"; then
8722 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
8723 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
8724 echo "configure:8725: checking for compface.h" >&5
8726 cat > conftest.$ac_ext <<EOF
8727 #line 8728 "configure"
8728 #include "confdefs.h"
8729 #include <compface.h>
8731 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8732 { (eval echo configure:8733: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8733 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8734 if test -z "$ac_err"; then
8736 eval "ac_cv_header_$ac_safe=yes"
8739 echo "configure: failed program was:" >&5
8740 cat conftest.$ac_ext >&5
8742 eval "ac_cv_header_$ac_safe=no"
8745 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8746 echo "$ac_t""yes" 1>&6
8749 echo "$ac_t""no" 1>&6
8753 test -z "$with_xface" && {
8754 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
8755 echo "configure:8756: checking for UnGenFace in -lcompface" >&5
8756 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
8758 xe_check_libs=" -lcompface "
8759 cat > conftest.$ac_ext <<EOF
8760 #line 8761 "configure"
8761 #include "confdefs.h"
8762 /* Override any gcc2 internal prototype to avoid an error. */
8763 /* We use char because int might match the return type of a gcc2
8764 builtin and then its argument prototype would still apply. */
8771 if { (eval echo configure:8772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8773 eval "ac_cv_lib_$ac_lib_var=yes"
8775 echo "configure: failed program was:" >&5
8776 cat conftest.$ac_ext >&5
8778 eval "ac_cv_lib_$ac_lib_var=no"
8783 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8784 echo "$ac_t""yes" 1>&6
8787 echo "$ac_t""no" 1>&6
8792 test -z "$with_xface" && with_xface=yes
8793 if test "$with_xface" = "yes"; then
8794 { test "$extra_verbose" = "yes" && cat << \EOF
8797 cat >> confdefs.h <<\EOF
8798 #define HAVE_XFACE 1
8802 libs_gtk="-lcompface $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_gtk"; fi
8808 if test "$with_x11" = "yes"; then
8809 echo "checking for X11 graphics libraries" 1>&6
8810 echo "configure:8811: checking for X11 graphics libraries" >&5
8813 case "$with_widgets" in
8814 "yes" | "athena") detect_athena=yes ;;
8815 *) detect_athena=no ;;
8818 if test "$with_x11" = "yes" -a "$detect_athena" = "yes" ; then
8819 echo "checking for the Athena widgets" 1>&6
8820 echo "configure:8821: checking for the Athena widgets" >&5
8822 case "$with_athena" in
8823 "xaw" | "") athena_variant=Xaw athena_3d=no ;;
8824 "3d") athena_variant=Xaw3d athena_3d=yes ;;
8825 "next") athena_variant=neXtaw athena_3d=yes ;;
8826 "95") athena_variant=Xaw95 athena_3d=yes ;;
8827 "xpm") athena_variant=XawXpm athena_3d=yes ;;
8828 *) { echo "Error:" "Unknown Athena widget set \`$with_athena'. This should not happen." >&2; exit 1; } ;;
8831 if test "$athena_3d" = "no"; then
8833 echo $ac_n "checking for XawScrollbarSetThumb in -l$athena_variant""... $ac_c" 1>&6
8834 echo "configure:8835: checking for XawScrollbarSetThumb in -l$athena_variant" >&5
8835 ac_lib_var=`echo $athena_variant'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
8837 xe_check_libs=" -l$athena_variant "
8838 cat > conftest.$ac_ext <<EOF
8839 #line 8840 "configure"
8840 #include "confdefs.h"
8841 /* Override any gcc2 internal prototype to avoid an error. */
8842 /* We use char because int might match the return type of a gcc2
8843 builtin and then its argument prototype would still apply. */
8844 char XawScrollbarSetThumb();
8847 XawScrollbarSetThumb()
8850 if { (eval echo configure:8851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8852 eval "ac_cv_lib_$ac_lib_var=yes"
8854 echo "configure: failed program was:" >&5
8855 cat conftest.$ac_ext >&5
8857 eval "ac_cv_lib_$ac_lib_var=no"
8862 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8863 echo "$ac_t""yes" 1>&6
8865 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
8866 echo "configure:8867: checking for threeDClassRec in -l$athena_variant" >&5
8867 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
8869 xe_check_libs=" -l$athena_variant "
8870 cat > conftest.$ac_ext <<EOF
8871 #line 8872 "configure"
8872 #include "confdefs.h"
8873 /* Override any gcc2 internal prototype to avoid an error. */
8874 /* We use char because int might match the return type of a gcc2
8875 builtin and then its argument prototype would still apply. */
8876 char threeDClassRec();
8882 if { (eval echo configure:8883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8884 eval "ac_cv_lib_$ac_lib_var=yes"
8886 echo "configure: failed program was:" >&5
8887 cat conftest.$ac_ext >&5
8889 eval "ac_cv_lib_$ac_lib_var=no"
8894 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8895 echo "$ac_t""yes" 1>&6
8896 echo "configure: warning: "Could not find a non-3d Athena widget library."" 1>&2
8898 echo "$ac_t""no" 1>&6
8899 athena_lib=$athena_variant
8905 echo "$ac_t""no" 1>&6
8906 echo "configure: warning: "Could not find an Athena widget library."" 1>&2
8912 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
8913 echo "configure:8914: checking for threeDClassRec in -l$athena_variant" >&5
8914 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
8916 xe_check_libs=" -l$athena_variant "
8917 cat > conftest.$ac_ext <<EOF
8918 #line 8919 "configure"
8919 #include "confdefs.h"
8920 /* Override any gcc2 internal prototype to avoid an error. */
8921 /* We use char because int might match the return type of a gcc2
8922 builtin and then its argument prototype would still apply. */
8923 char threeDClassRec();
8929 if { (eval echo configure:8930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8931 eval "ac_cv_lib_$ac_lib_var=yes"
8933 echo "configure: failed program was:" >&5
8934 cat conftest.$ac_ext >&5
8936 eval "ac_cv_lib_$ac_lib_var=no"
8941 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8942 echo "$ac_t""yes" 1>&6
8943 athena_lib=$athena_variant
8945 echo "$ac_t""no" 1>&6
8946 echo $ac_n "checking for threeDClassRec in -lXaw""... $ac_c" 1>&6
8947 echo "configure:8948: checking for threeDClassRec in -lXaw" >&5
8948 ac_lib_var=`echo Xaw'_'threeDClassRec | sed 'y%./+-%__p_%'`
8950 xe_check_libs=" -lXaw "
8951 cat > conftest.$ac_ext <<EOF
8952 #line 8953 "configure"
8953 #include "confdefs.h"
8954 /* Override any gcc2 internal prototype to avoid an error. */
8955 /* We use char because int might match the return type of a gcc2
8956 builtin and then its argument prototype would still apply. */
8957 char threeDClassRec();
8963 if { (eval echo configure:8964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8965 eval "ac_cv_lib_$ac_lib_var=yes"
8967 echo "configure: failed program was:" >&5
8968 cat conftest.$ac_ext >&5
8970 eval "ac_cv_lib_$ac_lib_var=no"
8975 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8976 echo "$ac_t""yes" 1>&6
8978 echo "configure: warning: "Assuming that libXaw is actually $athena_variant."" 1>&2;
8981 echo "$ac_t""no" 1>&6
8982 echo "configure: warning: "Could not find a 3d Athena widget library that looked like $athena_variant."" 1>&2
8991 if test "$athena_3d" = "no"; then
8992 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
8993 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
8994 echo "configure:8995: checking for X11/Xaw/ThreeD.h" >&5
8996 cat > conftest.$ac_ext <<EOF
8997 #line 8998 "configure"
8998 #include "confdefs.h"
8999 #include <X11/Xaw/ThreeD.h>
9001 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9002 { (eval echo configure:9003: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9003 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9004 if test -z "$ac_err"; then
9006 eval "ac_cv_header_$ac_safe=yes"
9009 echo "configure: failed program was:" >&5
9010 cat conftest.$ac_ext >&5
9012 eval "ac_cv_header_$ac_safe=no"
9015 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9016 echo "$ac_t""yes" 1>&6
9017 echo "configure: warning: "Could not find a non-3d Athena header set."" 1>&2
9019 echo "$ac_t""no" 1>&6
9020 ac_safe=`echo "X11/Xaw/XawInit.h" | sed 'y%./+-%__p_%'`
9021 echo $ac_n "checking for X11/Xaw/XawInit.h""... $ac_c" 1>&6
9022 echo "configure:9023: checking for X11/Xaw/XawInit.h" >&5
9024 cat > conftest.$ac_ext <<EOF
9025 #line 9026 "configure"
9026 #include "confdefs.h"
9027 #include <X11/Xaw/XawInit.h>
9029 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9030 { (eval echo configure:9031: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9031 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9032 if test -z "$ac_err"; then
9034 eval "ac_cv_header_$ac_safe=yes"
9037 echo "configure: failed program was:" >&5
9038 cat conftest.$ac_ext >&5
9040 eval "ac_cv_header_$ac_safe=no"
9043 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9044 echo "$ac_t""yes" 1>&6
9045 athena_h_path=X11/Xaw
9047 echo "$ac_t""no" 1>&6
9048 echo "configure: warning: "Could not find a non-3d Athena header set."" 1>&2
9054 ac_safe=`echo "X11/$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
9055 echo $ac_n "checking for X11/$athena_variant/XawInit.h""... $ac_c" 1>&6
9056 echo "configure:9057: checking for X11/$athena_variant/XawInit.h" >&5
9058 cat > conftest.$ac_ext <<EOF
9059 #line 9060 "configure"
9060 #include "confdefs.h"
9061 #include <X11/$athena_variant/XawInit.h>
9063 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9064 { (eval echo configure:9065: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9065 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9066 if test -z "$ac_err"; then
9068 eval "ac_cv_header_$ac_safe=yes"
9071 echo "configure: failed program was:" >&5
9072 cat conftest.$ac_ext >&5
9074 eval "ac_cv_header_$ac_safe=no"
9077 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9078 echo "$ac_t""yes" 1>&6
9079 ac_safe=`echo "X11/$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
9080 echo $ac_n "checking for X11/$athena_variant/ThreeD.h""... $ac_c" 1>&6
9081 echo "configure:9082: checking for X11/$athena_variant/ThreeD.h" >&5
9083 cat > conftest.$ac_ext <<EOF
9084 #line 9085 "configure"
9085 #include "confdefs.h"
9086 #include <X11/$athena_variant/ThreeD.h>
9088 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9089 { (eval echo configure:9090: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9090 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9091 if test -z "$ac_err"; then
9093 eval "ac_cv_header_$ac_safe=yes"
9096 echo "configure: failed program was:" >&5
9097 cat conftest.$ac_ext >&5
9099 eval "ac_cv_header_$ac_safe=no"
9102 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9103 echo "$ac_t""yes" 1>&6
9104 athena_h_path=X11/$athena_variant
9106 echo "$ac_t""no" 1>&6
9110 echo "$ac_t""no" 1>&6
9114 if test -z "$athena_h_path"; then
9115 ac_safe=`echo "$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
9116 echo $ac_n "checking for $athena_variant/XawInit.h""... $ac_c" 1>&6
9117 echo "configure:9118: checking for $athena_variant/XawInit.h" >&5
9119 cat > conftest.$ac_ext <<EOF
9120 #line 9121 "configure"
9121 #include "confdefs.h"
9122 #include <$athena_variant/XawInit.h>
9124 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9125 { (eval echo configure:9126: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9126 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9127 if test -z "$ac_err"; then
9129 eval "ac_cv_header_$ac_safe=yes"
9132 echo "configure: failed program was:" >&5
9133 cat conftest.$ac_ext >&5
9135 eval "ac_cv_header_$ac_safe=no"
9138 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9139 echo "$ac_t""yes" 1>&6
9140 ac_safe=`echo "$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
9141 echo $ac_n "checking for $athena_variant/ThreeD.h""... $ac_c" 1>&6
9142 echo "configure:9143: checking for $athena_variant/ThreeD.h" >&5
9144 cat > conftest.$ac_ext <<EOF
9145 #line 9146 "configure"
9146 #include "confdefs.h"
9147 #include <$athena_variant/ThreeD.h>
9149 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9150 { (eval echo configure:9151: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9151 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9152 if test -z "$ac_err"; then
9154 eval "ac_cv_header_$ac_safe=yes"
9157 echo "configure: failed program was:" >&5
9158 cat conftest.$ac_ext >&5
9160 eval "ac_cv_header_$ac_safe=no"
9163 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9164 echo "$ac_t""yes" 1>&6
9165 athena_h_path=$athena_variant
9167 echo "$ac_t""no" 1>&6
9171 echo "$ac_t""no" 1>&6
9176 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
9177 ac_safe=`echo "X11/Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
9178 echo $ac_n "checking for X11/Xaw3d/XawInit.h""... $ac_c" 1>&6
9179 echo "configure:9180: checking for X11/Xaw3d/XawInit.h" >&5
9181 cat > conftest.$ac_ext <<EOF
9182 #line 9183 "configure"
9183 #include "confdefs.h"
9184 #include <X11/Xaw3d/XawInit.h>
9186 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9187 { (eval echo configure:9188: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9188 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9189 if test -z "$ac_err"; then
9191 eval "ac_cv_header_$ac_safe=yes"
9194 echo "configure: failed program was:" >&5
9195 cat conftest.$ac_ext >&5
9197 eval "ac_cv_header_$ac_safe=no"
9200 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9201 echo "$ac_t""yes" 1>&6
9202 ac_safe=`echo "X11/Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
9203 echo $ac_n "checking for X11/Xaw3d/ThreeD.h""... $ac_c" 1>&6
9204 echo "configure:9205: checking for X11/Xaw3d/ThreeD.h" >&5
9206 cat > conftest.$ac_ext <<EOF
9207 #line 9208 "configure"
9208 #include "confdefs.h"
9209 #include <X11/Xaw3d/ThreeD.h>
9211 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9212 { (eval echo configure:9213: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9213 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9214 if test -z "$ac_err"; then
9216 eval "ac_cv_header_$ac_safe=yes"
9219 echo "configure: failed program was:" >&5
9220 cat conftest.$ac_ext >&5
9222 eval "ac_cv_header_$ac_safe=no"
9225 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9226 echo "$ac_t""yes" 1>&6
9228 echo "configure: warning: "Assuming that X11/Xaw3d headers are suitable for $athena_variant."" 1>&2
9229 athena_h_path=X11/Xaw3d
9232 echo "$ac_t""no" 1>&6
9236 echo "$ac_t""no" 1>&6
9241 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
9242 ac_safe=`echo "Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
9243 echo $ac_n "checking for Xaw3d/XawInit.h""... $ac_c" 1>&6
9244 echo "configure:9245: checking for Xaw3d/XawInit.h" >&5
9246 cat > conftest.$ac_ext <<EOF
9247 #line 9248 "configure"
9248 #include "confdefs.h"
9249 #include <Xaw3d/XawInit.h>
9251 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9252 { (eval echo configure:9253: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9253 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9254 if test -z "$ac_err"; then
9256 eval "ac_cv_header_$ac_safe=yes"
9259 echo "configure: failed program was:" >&5
9260 cat conftest.$ac_ext >&5
9262 eval "ac_cv_header_$ac_safe=no"
9265 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9266 echo "$ac_t""yes" 1>&6
9267 ac_safe=`echo "Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
9268 echo $ac_n "checking for Xaw3d/ThreeD.h""... $ac_c" 1>&6
9269 echo "configure:9270: checking for Xaw3d/ThreeD.h" >&5
9271 cat > conftest.$ac_ext <<EOF
9272 #line 9273 "configure"
9273 #include "confdefs.h"
9274 #include <Xaw3d/ThreeD.h>
9276 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9277 { (eval echo configure:9278: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9278 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9279 if test -z "$ac_err"; then
9281 eval "ac_cv_header_$ac_safe=yes"
9284 echo "configure: failed program was:" >&5
9285 cat conftest.$ac_ext >&5
9287 eval "ac_cv_header_$ac_safe=no"
9290 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9291 echo "$ac_t""yes" 1>&6
9293 echo "configure: warning: "Assuming that Xaw3d headers are suitable for $athena_variant."" 1>&2
9297 echo "$ac_t""no" 1>&6
9301 echo "$ac_t""no" 1>&6
9306 if test -z "$athena_h_path"; then
9307 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
9308 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
9309 echo "configure:9310: checking for X11/Xaw/ThreeD.h" >&5
9311 cat > conftest.$ac_ext <<EOF
9312 #line 9313 "configure"
9313 #include "confdefs.h"
9314 #include <X11/Xaw/ThreeD.h>
9316 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9317 { (eval echo configure:9318: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9318 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9319 if test -z "$ac_err"; then
9321 eval "ac_cv_header_$ac_safe=yes"
9324 echo "configure: failed program was:" >&5
9325 cat conftest.$ac_ext >&5
9327 eval "ac_cv_header_$ac_safe=no"
9330 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9331 echo "$ac_t""yes" 1>&6
9333 echo "configure: warning: "Assuming that X11/Xaw headers are suitable for $athena_variant."" 1>&2
9334 athena_h_path=X11/Xaw
9337 echo "$ac_t""no" 1>&6
9338 echo "configure: warning: "Could not find a suitable 3d Athena header set."" 1>&2
9344 if test -n "$athena_lib" -a -n "$athena_h_path"; then
9353 if test "$with_x11" = "yes"; then
9354 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
9355 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
9356 echo "configure:9357: checking for Xm/Xm.h" >&5
9358 cat > conftest.$ac_ext <<EOF
9359 #line 9360 "configure"
9360 #include "confdefs.h"
9363 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9364 { (eval echo configure:9365: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9365 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9366 if test -z "$ac_err"; then
9368 eval "ac_cv_header_$ac_safe=yes"
9371 echo "configure: failed program was:" >&5
9372 cat conftest.$ac_ext >&5
9374 eval "ac_cv_header_$ac_safe=no"
9377 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9378 echo "$ac_t""yes" 1>&6
9380 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
9381 echo "configure:9382: checking for XmStringFree in -lXm" >&5
9382 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
9384 xe_check_libs=" -lXm "
9385 cat > conftest.$ac_ext <<EOF
9386 #line 9387 "configure"
9387 #include "confdefs.h"
9388 /* Override any gcc2 internal prototype to avoid an error. */
9389 /* We use char because int might match the return type of a gcc2
9390 builtin and then its argument prototype would still apply. */
9391 char XmStringFree();
9397 if { (eval echo configure:9398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9399 eval "ac_cv_lib_$ac_lib_var=yes"
9401 echo "configure: failed program was:" >&5
9402 cat conftest.$ac_ext >&5
9404 eval "ac_cv_lib_$ac_lib_var=no"
9409 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9410 echo "$ac_t""yes" 1>&6
9413 echo "$ac_t""no" 1>&6
9419 echo "$ac_t""no" 1>&6
9424 if test "$have_motif" = "yes"; then
9425 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6
9426 echo "configure:9427: checking for Lesstif" >&5
9427 cat > conftest.$ac_ext <<EOF
9428 #line 9429 "configure"
9429 #include "confdefs.h"
9431 #ifdef LESSTIF_VERSION
9436 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9437 egrep "yes" >/dev/null 2>&1; then
9446 echo "$ac_t""$have_lesstif" 1>&6
9451 case "$with_menubars" in "" | "yes" | "athena" )
9452 with_menubars="lucid" ;;
9454 case "$with_dialogs" in "" | "yes" | "lucid" )
9455 if test "$have_motif" = "yes"; then with_dialogs="motif"
9456 elif test "$have_xaw" = "yes"; then with_dialogs="athena"
9457 else with_dialogs=no
9460 case "$with_scrollbars" in "" | "yes" )
9461 with_scrollbars="lucid" ;;
9463 case "$with_widgets" in "" | "yes" | "lucid")
9464 if test "$have_motif" = "yes"; then with_widgets="motif"
9465 elif test "$have_xaw" = "yes"; then with_widgets="athena"
9466 else with_widgets=no
9470 all_widgets="$with_menubars $with_scrollbars $with_dialogs $with_toolbars $with_widgets"
9472 case "$all_widgets" in
9474 if test "$have_xaw" != "yes"; then
9475 { echo "Error:" "Could not find a suitable Athena library to build with." >&2; exit 1; }
9478 lwlib_objs="$lwlib_objs lwlib-Xaw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xaw.o\" to \$lwlib_objs"; fi
9480 libs_x="-l$athena_lib $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$athena_lib\" to \$libs_x"; fi
9482 { test "$extra_verbose" = "yes" && cat << EOF
9483 Defining ATHENA_Scrollbar_h_ = "$athena_h_path/Scrollbar.h"
9485 cat >> confdefs.h <<EOF
9486 #define ATHENA_Scrollbar_h_ "$athena_h_path/Scrollbar.h"
9490 { test "$extra_verbose" = "yes" && cat << EOF
9491 Defining ATHENA_Dialog_h_ = "$athena_h_path/Dialog.h"
9493 cat >> confdefs.h <<EOF
9494 #define ATHENA_Dialog_h_ "$athena_h_path/Dialog.h"
9498 { test "$extra_verbose" = "yes" && cat << EOF
9499 Defining ATHENA_Form_h_ = "$athena_h_path/Form.h"
9501 cat >> confdefs.h <<EOF
9502 #define ATHENA_Form_h_ "$athena_h_path/Form.h"
9506 { test "$extra_verbose" = "yes" && cat << EOF
9507 Defining ATHENA_Command_h_ = "$athena_h_path/Command.h"
9509 cat >> confdefs.h <<EOF
9510 #define ATHENA_Command_h_ "$athena_h_path/Command.h"
9514 { test "$extra_verbose" = "yes" && cat << EOF
9515 Defining ATHENA_Label_h_ = "$athena_h_path/Label.h"
9517 cat >> confdefs.h <<EOF
9518 #define ATHENA_Label_h_ "$athena_h_path/Label.h"
9522 { test "$extra_verbose" = "yes" && cat << EOF
9523 Defining ATHENA_LabelP_h_ = "$athena_h_path/LabelP.h"
9525 cat >> confdefs.h <<EOF
9526 #define ATHENA_LabelP_h_ "$athena_h_path/LabelP.h"
9530 { test "$extra_verbose" = "yes" && cat << EOF
9531 Defining ATHENA_Toggle_h_ = "$athena_h_path/Toggle.h"
9533 cat >> confdefs.h <<EOF
9534 #define ATHENA_Toggle_h_ "$athena_h_path/Toggle.h"
9538 { test "$extra_verbose" = "yes" && cat << EOF
9539 Defining ATHENA_ToggleP_h_ = "$athena_h_path/ToggleP.h"
9541 cat >> confdefs.h <<EOF
9542 #define ATHENA_ToggleP_h_ "$athena_h_path/ToggleP.h"
9546 { test "$extra_verbose" = "yes" && cat << EOF
9547 Defining ATHENA_AsciiText_h_ = "$athena_h_path/AsciiText.h"
9549 cat >> confdefs.h <<EOF
9550 #define ATHENA_AsciiText_h_ "$athena_h_path/AsciiText.h"
9554 { test "$extra_verbose" = "yes" && cat << EOF
9555 Defining ATHENA_XawInit_h_ = "$athena_h_path/XawInit.h"
9557 cat >> confdefs.h <<EOF
9558 #define ATHENA_XawInit_h_ "$athena_h_path/XawInit.h"
9563 { test "$extra_verbose" = "yes" && cat << \EOF
9564 Defining LWLIB_USES_ATHENA
9566 cat >> confdefs.h <<\EOF
9567 #define LWLIB_USES_ATHENA 1
9571 { test "$extra_verbose" = "yes" && cat << \EOF
9572 Defining NEED_ATHENA
9574 cat >> confdefs.h <<\EOF
9575 #define NEED_ATHENA 1
9581 if test "$athena_3d" = "yes"; then
9582 { test "$extra_verbose" = "yes" && cat << \EOF
9583 Defining HAVE_ATHENA_3D
9585 cat >> confdefs.h <<\EOF
9586 #define HAVE_ATHENA_3D 1
9594 case "$all_widgets" in *motif* )
9595 { test "$extra_verbose" = "yes" && cat << \EOF
9596 Defining LWLIB_USES_MOTIF
9598 cat >> confdefs.h <<\EOF
9599 #define LWLIB_USES_MOTIF 1
9603 { test "$extra_verbose" = "yes" && cat << \EOF
9606 cat >> confdefs.h <<\EOF
9607 #define NEED_MOTIF 1
9611 lwlib_objs="$lwlib_objs lwlib-Xm.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xm.o\" to \$lwlib_objs"; fi
9615 test "$with_menubars" = "lucid" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
9616 test "$with_menubars" = "motif" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
9617 test "$with_scrollbars" = "lucid" && lwlib_objs="$lwlib_objs xlwscrollbar.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwscrollbar.o\" to \$lwlib_objs"; fi
9618 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
9619 lwlib_objs="$lwlib_objs xlwtabs.o xlwgcs.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwtabs.o xlwgcs.o\" to \$lwlib_objs"; fi
9620 case "$with_widgets" in athena* )
9621 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;;
9623 case "$all_widgets" in *lucid* )
9624 { test "$extra_verbose" = "yes" && cat << \EOF
9627 cat >> confdefs.h <<\EOF
9628 #define NEED_LUCID 1
9632 lwlib_objs="$lwlib_objs lwlib-Xlw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xlw.o\" to \$lwlib_objs"; fi ;;
9637 test "$with_scrollbars" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
9638 Defining LWLIB_SCROLLBARS_ATHENA
9640 cat >> confdefs.h <<\EOF
9641 #define LWLIB_SCROLLBARS_ATHENA 1
9645 test "$with_dialogs" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
9646 Defining LWLIB_DIALOGS_ATHENA
9648 cat >> confdefs.h <<\EOF
9649 #define LWLIB_DIALOGS_ATHENA 1
9654 if test "$athena_3d" = "yes"; then
9655 test "$with_scrollbars" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
9656 Defining LWLIB_SCROLLBARS_ATHENA3D
9658 cat >> confdefs.h <<\EOF
9659 #define LWLIB_SCROLLBARS_ATHENA3D 1
9663 test "$with_dialogs" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
9664 Defining LWLIB_DIALOGS_ATHENA3D
9666 cat >> confdefs.h <<\EOF
9667 #define LWLIB_DIALOGS_ATHENA3D 1
9673 case "$with_widgets" in athena* ) { test "$extra_verbose" = "yes" && cat << \EOF
9674 Defining LWLIB_WIDGETS_ATHENA
9676 cat >> confdefs.h <<\EOF
9677 #define LWLIB_WIDGETS_ATHENA 1
9681 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
9682 { test "$extra_verbose" = "yes" && cat << \EOF
9683 Defining LWLIB_TABS_LUCID
9685 cat >> confdefs.h <<\EOF
9686 #define LWLIB_TABS_LUCID 1
9691 test "$with_menubars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9692 Defining HAVE_MENUBARS
9694 cat >> confdefs.h <<\EOF
9695 #define HAVE_MENUBARS 1
9699 test "$with_scrollbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9700 Defining HAVE_SCROLLBARS
9702 cat >> confdefs.h <<\EOF
9703 #define HAVE_SCROLLBARS 1
9707 test "$with_dialogs" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9708 Defining HAVE_DIALOGS
9710 cat >> confdefs.h <<\EOF
9711 #define HAVE_DIALOGS 1
9715 test "$with_toolbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9716 Defining HAVE_TOOLBARS
9718 cat >> confdefs.h <<\EOF
9719 #define HAVE_TOOLBARS 1
9723 test "$with_widgets" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9724 Defining HAVE_WIDGETS
9726 cat >> confdefs.h <<\EOF
9727 #define HAVE_WIDGETS 1
9732 test "$with_menubars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
9733 Defining LWLIB_MENUBARS_LUCID
9735 cat >> confdefs.h <<\EOF
9736 #define LWLIB_MENUBARS_LUCID 1
9740 test "$with_scrollbars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
9741 Defining LWLIB_SCROLLBARS_LUCID
9743 cat >> confdefs.h <<\EOF
9744 #define LWLIB_SCROLLBARS_LUCID 1
9749 test "$with_menubars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9750 Defining LWLIB_MENUBARS_MOTIF
9752 cat >> confdefs.h <<\EOF
9753 #define LWLIB_MENUBARS_MOTIF 1
9757 test "$with_scrollbars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9758 Defining LWLIB_SCROLLBARS_MOTIF
9760 cat >> confdefs.h <<\EOF
9761 #define LWLIB_SCROLLBARS_MOTIF 1
9765 test "$with_dialogs" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9766 Defining LWLIB_DIALOGS_MOTIF
9768 cat >> confdefs.h <<\EOF
9769 #define LWLIB_DIALOGS_MOTIF 1
9773 test "$with_widgets" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9774 Defining LWLIB_WIDGETS_MOTIF
9776 cat >> confdefs.h <<\EOF
9777 #define LWLIB_WIDGETS_MOTIF 1
9782 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar.o" && if test "$extra_verbose" = "yes"; then
9783 echo " xemacs will be linked with \"menubar.o\""
9785 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar.o" && if test "$extra_verbose" = "yes"; then
9786 echo " xemacs will be linked with \"scrollbar.o\""
9788 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog.o" && if test "$extra_verbose" = "yes"; then
9789 echo " xemacs will be linked with \"dialog.o\""
9791 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar.o" && if test "$extra_verbose" = "yes"; then
9792 echo " xemacs will be linked with \"toolbar.o\""
9795 if test "$with_gtk" = "yes"; then
9796 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-gtk.o" && if test "$extra_verbose" = "yes"; then
9797 echo " xemacs will be linked with \"menubar-gtk.o\""
9799 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-gtk.o" && if test "$extra_verbose" = "yes"; then
9800 echo " xemacs will be linked with \"scrollbar-gtk.o\""
9802 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-gtk.o" && if test "$extra_verbose" = "yes"; then
9803 echo " xemacs will be linked with \"dialog-gtk.o\""
9805 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-gtk.o" && if test "$extra_verbose" = "yes"; then
9806 echo " xemacs will be linked with \"toolbar-gtk.o\""
9808 test "$all_widgets" != "no no no no no" && extra_objs="$extra_objs gui-gtk.o" && if test "$extra_verbose" = "yes"; then
9809 echo " xemacs will be linked with \"gui-gtk.o\""
9813 if test "$with_x11" = "yes"; then
9814 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-x.o" && if test "$extra_verbose" = "yes"; then
9815 echo " xemacs will be linked with \"menubar-x.o\""
9817 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-x.o" && if test "$extra_verbose" = "yes"; then
9818 echo " xemacs will be linked with \"scrollbar-x.o\""
9820 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-x.o" && if test "$extra_verbose" = "yes"; then
9821 echo " xemacs will be linked with \"dialog-x.o\""
9823 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-x.o" && if test "$extra_verbose" = "yes"; then
9824 echo " xemacs will be linked with \"toolbar-x.o\""
9826 test "$all_widgets" != "no no no no no" && extra_objs="$extra_objs gui-x.o" && if test "$extra_verbose" = "yes"; then
9827 echo " xemacs will be linked with \"gui-x.o\""
9832 test -z "$with_mule" && with_mule=no
9833 test -z "$with_file_coding" && with_file_coding=no
9836 if test "$with_file_coding" = "yes" && test "$with_mule" = "no"; then
9837 { test "$extra_verbose" = "yes" && cat << \EOF
9838 Defining FILE_CODING
9840 cat >> confdefs.h <<\EOF
9841 #define FILE_CODING 1
9845 extra_objs="$extra_objs file-coding.o" && if test "$extra_verbose" = "yes"; then
9846 echo " xemacs will be linked with \"file-coding.o\""
9850 if test "$with_mule" = "yes" ; then
9851 echo "checking for Mule-related features" 1>&6
9852 echo "configure:9853: checking for Mule-related features" >&5
9853 { test "$extra_verbose" = "yes" && cat << \EOF
9856 cat >> confdefs.h <<\EOF
9861 { test "$extra_verbose" = "yes" && cat << \EOF
9862 Defining FILE_CODING
9864 cat >> confdefs.h <<\EOF
9865 #define FILE_CODING 1
9869 extra_objs="$extra_objs mule.o mule-ccl.o mule-charset.o file-coding.o" && if test "$extra_verbose" = "yes"; then
9870 echo " xemacs will be linked with \"mule.o mule-ccl.o mule-charset.o file-coding.o\""
9873 for ac_hdr in libintl.h
9875 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9876 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9877 echo "configure:9878: checking for $ac_hdr" >&5
9879 cat > conftest.$ac_ext <<EOF
9880 #line 9881 "configure"
9881 #include "confdefs.h"
9884 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9885 { (eval echo configure:9886: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9886 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9887 if test -z "$ac_err"; then
9889 eval "ac_cv_header_$ac_safe=yes"
9892 echo "configure: failed program was:" >&5
9893 cat conftest.$ac_ext >&5
9895 eval "ac_cv_header_$ac_safe=no"
9898 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9899 echo "$ac_t""yes" 1>&6
9900 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9901 { test "$extra_verbose" = "yes" && cat << EOF
9904 cat >> confdefs.h <<EOF
9905 #define $ac_tr_hdr 1
9910 echo "$ac_t""no" 1>&6
9915 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
9916 echo "configure:9917: checking for strerror in -lintl" >&5
9917 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
9919 xe_check_libs=" -lintl "
9920 cat > conftest.$ac_ext <<EOF
9921 #line 9922 "configure"
9922 #include "confdefs.h"
9923 /* Override any gcc2 internal prototype to avoid an error. */
9924 /* We use char because int might match the return type of a gcc2
9925 builtin and then its argument prototype would still apply. */
9932 if { (eval echo configure:9933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9934 eval "ac_cv_lib_$ac_lib_var=yes"
9936 echo "configure: failed program was:" >&5
9937 cat conftest.$ac_ext >&5
9939 eval "ac_cv_lib_$ac_lib_var=no"
9944 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9945 echo "$ac_t""yes" 1>&6
9946 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9947 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9948 { test "$extra_verbose" = "yes" && cat << EOF
9951 cat >> confdefs.h <<EOF
9952 #define $ac_tr_lib 1
9956 LIBS="-lintl $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lintl\" to \$LIBS"; fi
9959 echo "$ac_t""no" 1>&6
9964 echo "checking for Mule input methods" 1>&6
9965 echo "configure:9966: checking for Mule input methods" >&5
9966 case "$with_xim" in "" | "yes" )
9967 echo "checking for XIM" 1>&6
9968 echo "configure:9969: checking for XIM" >&5
9970 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6
9971 echo "configure:9972: checking for XOpenIM in -lX11" >&5
9972 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'`
9974 xe_check_libs=" -lX11 "
9975 cat > conftest.$ac_ext <<EOF
9976 #line 9977 "configure"
9977 #include "confdefs.h"
9978 /* Override any gcc2 internal prototype to avoid an error. */
9979 /* We use char because int might match the return type of a gcc2
9980 builtin and then its argument prototype would still apply. */
9987 if { (eval echo configure:9988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9989 eval "ac_cv_lib_$ac_lib_var=yes"
9991 echo "configure: failed program was:" >&5
9992 cat conftest.$ac_ext >&5
9994 eval "ac_cv_lib_$ac_lib_var=no"
9999 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10000 echo "$ac_t""yes" 1>&6
10003 echo "$ac_t""no" 1>&6
10008 if test "$have_motif $have_lesstif" = "yes no"; then
10010 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
10011 echo "configure:10012: checking for XmImMbLookupString in -lXm" >&5
10012 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
10014 xe_check_libs=" -lXm "
10015 cat > conftest.$ac_ext <<EOF
10016 #line 10017 "configure"
10017 #include "confdefs.h"
10018 /* Override any gcc2 internal prototype to avoid an error. */
10019 /* We use char because int might match the return type of a gcc2
10020 builtin and then its argument prototype would still apply. */
10021 char XmImMbLookupString();
10024 XmImMbLookupString()
10027 if { (eval echo configure:10028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10029 eval "ac_cv_lib_$ac_lib_var=yes"
10031 echo "configure: failed program was:" >&5
10032 cat conftest.$ac_ext >&5
10034 eval "ac_cv_lib_$ac_lib_var=no"
10039 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10040 echo "$ac_t""yes" 1>&6
10043 echo "$ac_t""no" 1>&6
10049 if test "$with_xim" != "no"; then
10050 { test "$extra_verbose" = "yes" && cat << \EOF
10053 cat >> confdefs.h <<\EOF
10058 if test "$with_xim" = "xlib"; then
10059 { test "$extra_verbose" = "yes" && cat << \EOF
10062 cat >> confdefs.h <<\EOF
10067 extra_objs="$extra_objs input-method-xlib.o" && if test "$extra_verbose" = "yes"; then
10068 echo " xemacs will be linked with \"input-method-xlib.o\""
10071 if test "$with_xim" = "motif"; then
10072 { test "$extra_verbose" = "yes" && cat << \EOF
10075 cat >> confdefs.h <<\EOF
10076 #define XIM_MOTIF 1
10081 extra_objs="$extra_objs input-method-motif.o" && if test "$extra_verbose" = "yes"; then
10082 echo " xemacs will be linked with \"input-method-motif.o\""
10085 if test "$with_xim" = "motif"; then
10090 if test "$with_xfs" = "yes" ; then
10091 echo "checking for XFontSet" 1>&6
10092 echo "configure:10093: checking for XFontSet" >&5
10094 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6
10095 echo "configure:10096: checking for XmbDrawString in -lX11" >&5
10096 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
10098 xe_check_libs=" -lX11 "
10099 cat > conftest.$ac_ext <<EOF
10100 #line 10101 "configure"
10101 #include "confdefs.h"
10102 /* Override any gcc2 internal prototype to avoid an error. */
10103 /* We use char because int might match the return type of a gcc2
10104 builtin and then its argument prototype would still apply. */
10105 char XmbDrawString();
10111 if { (eval echo configure:10112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10113 eval "ac_cv_lib_$ac_lib_var=yes"
10115 echo "configure: failed program was:" >&5
10116 cat conftest.$ac_ext >&5
10118 eval "ac_cv_lib_$ac_lib_var=no"
10123 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10124 echo "$ac_t""yes" 1>&6
10127 echo "$ac_t""no" 1>&6
10132 if test "$with_xfs" = "yes" && test "$with_menubars" = "lucid"; then
10133 { test "$extra_verbose" = "yes" && cat << \EOF
10134 Defining USE_XFONTSET
10136 cat >> confdefs.h <<\EOF
10137 #define USE_XFONTSET 1
10141 if test "$with_xim" = "no" ; then
10142 extra_objs="$extra_objs input-method-xlib.o" && if test "$extra_verbose" = "yes"; then
10143 echo " xemacs will be linked with \"input-method-xlib.o\""
10148 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
10149 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
10150 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
10151 echo "configure:10152: checking for wnn/jllib.h" >&5
10153 cat > conftest.$ac_ext <<EOF
10154 #line 10155 "configure"
10155 #include "confdefs.h"
10156 #include <wnn/jllib.h>
10158 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10159 { (eval echo configure:10160: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10160 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10161 if test -z "$ac_err"; then
10163 eval "ac_cv_header_$ac_safe=yes"
10166 echo "configure: failed program was:" >&5
10167 cat conftest.$ac_ext >&5
10169 eval "ac_cv_header_$ac_safe=no"
10172 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10173 echo "$ac_t""yes" 1>&6
10176 echo "$ac_t""no" 1>&6
10180 test -z "$with_wnn" && { ac_safe=`echo "wnn/commonhd.h" | sed 'y%./+-%__p_%'`
10181 echo $ac_n "checking for wnn/commonhd.h""... $ac_c" 1>&6
10182 echo "configure:10183: checking for wnn/commonhd.h" >&5
10184 cat > conftest.$ac_ext <<EOF
10185 #line 10186 "configure"
10186 #include "confdefs.h"
10187 #include <wnn/commonhd.h>
10189 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10190 { (eval echo configure:10191: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10191 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10192 if test -z "$ac_err"; then
10194 eval "ac_cv_header_$ac_safe=yes"
10197 echo "configure: failed program was:" >&5
10198 cat conftest.$ac_ext >&5
10200 eval "ac_cv_header_$ac_safe=no"
10203 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10204 echo "$ac_t""yes" 1>&6
10207 echo "$ac_t""no" 1>&6
10211 if test "$with_wnn" != "no"; then
10212 for ac_func in crypt
10214 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10215 echo "configure:10216: checking for $ac_func" >&5
10217 cat > conftest.$ac_ext <<EOF
10218 #line 10219 "configure"
10219 #include "confdefs.h"
10220 /* System header to define __stub macros and hopefully few prototypes,
10221 which can conflict with char $ac_func(); below. */
10222 #include <assert.h>
10223 /* Override any gcc2 internal prototype to avoid an error. */
10224 /* We use char because int might match the return type of a gcc2
10225 builtin and then its argument prototype would still apply. */
10230 /* The GNU C library defines this for functions which it implements
10231 to always fail with ENOSYS. Some functions are actually named
10232 something starting with __ and the normal name is an alias. */
10233 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10241 if { (eval echo configure:10242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10243 eval "ac_cv_func_$ac_func=yes"
10245 echo "configure: failed program was:" >&5
10246 cat conftest.$ac_ext >&5
10248 eval "ac_cv_func_$ac_func=no"
10252 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10253 echo "$ac_t""yes" 1>&6
10254 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10255 { test "$extra_verbose" = "yes" && cat << EOF
10256 Defining $ac_tr_func
10258 cat >> confdefs.h <<EOF
10259 #define $ac_tr_func 1
10264 echo "$ac_t""no" 1>&6
10268 test "$ac_cv_func_crypt" != "yes" && {
10269 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
10270 echo "configure:10271: checking for crypt in -lcrypt" >&5
10271 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
10273 xe_check_libs=" -lcrypt "
10274 cat > conftest.$ac_ext <<EOF
10275 #line 10276 "configure"
10276 #include "confdefs.h"
10277 /* Override any gcc2 internal prototype to avoid an error. */
10278 /* We use char because int might match the return type of a gcc2
10279 builtin and then its argument prototype would still apply. */
10286 if { (eval echo configure:10287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10288 eval "ac_cv_lib_$ac_lib_var=yes"
10290 echo "configure: failed program was:" >&5
10291 cat conftest.$ac_ext >&5
10293 eval "ac_cv_lib_$ac_lib_var=no"
10298 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10299 echo "$ac_t""yes" 1>&6
10300 ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10301 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10302 { test "$extra_verbose" = "yes" && cat << EOF
10303 Defining $ac_tr_lib
10305 cat >> confdefs.h <<EOF
10306 #define $ac_tr_lib 1
10310 LIBS="-lcrypt $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcrypt\" to \$LIBS"; fi
10313 echo "$ac_t""no" 1>&6
10318 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then
10320 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
10321 echo "configure:10322: checking for jl_dic_list_e in -lwnn" >&5
10322 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
10324 xe_check_libs=" -lwnn "
10325 cat > conftest.$ac_ext <<EOF
10326 #line 10327 "configure"
10327 #include "confdefs.h"
10328 /* Override any gcc2 internal prototype to avoid an error. */
10329 /* We use char because int might match the return type of a gcc2
10330 builtin and then its argument prototype would still apply. */
10331 char jl_dic_list_e();
10337 if { (eval echo configure:10338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10339 eval "ac_cv_lib_$ac_lib_var=yes"
10341 echo "configure: failed program was:" >&5
10342 cat conftest.$ac_ext >&5
10344 eval "ac_cv_lib_$ac_lib_var=no"
10349 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10350 echo "$ac_t""yes" 1>&6
10353 echo "$ac_t""no" 1>&6
10354 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6
10355 echo "configure:10356: checking for jl_dic_list_e in -lwnn4" >&5
10356 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
10358 xe_check_libs=" -lwnn4 "
10359 cat > conftest.$ac_ext <<EOF
10360 #line 10361 "configure"
10361 #include "confdefs.h"
10362 /* Override any gcc2 internal prototype to avoid an error. */
10363 /* We use char because int might match the return type of a gcc2
10364 builtin and then its argument prototype would still apply. */
10365 char jl_dic_list_e();
10371 if { (eval echo configure:10372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10373 eval "ac_cv_lib_$ac_lib_var=yes"
10375 echo "configure: failed program was:" >&5
10376 cat conftest.$ac_ext >&5
10378 eval "ac_cv_lib_$ac_lib_var=no"
10383 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10384 echo "$ac_t""yes" 1>&6
10387 echo "$ac_t""no" 1>&6
10388 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6
10389 echo "configure:10390: checking for jl_dic_list_e in -lwnn6" >&5
10390 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
10392 xe_check_libs=" -lwnn6 "
10393 cat > conftest.$ac_ext <<EOF
10394 #line 10395 "configure"
10395 #include "confdefs.h"
10396 /* Override any gcc2 internal prototype to avoid an error. */
10397 /* We use char because int might match the return type of a gcc2
10398 builtin and then its argument prototype would still apply. */
10399 char jl_dic_list_e();
10405 if { (eval echo configure:10406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10407 eval "ac_cv_lib_$ac_lib_var=yes"
10409 echo "configure: failed program was:" >&5
10410 cat conftest.$ac_ext >&5
10412 eval "ac_cv_lib_$ac_lib_var=no"
10417 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10418 echo "$ac_t""yes" 1>&6
10421 echo "$ac_t""no" 1>&6
10422 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6
10423 echo "configure:10424: checking for dic_list_e in -lwnn6_fromsrc" >&5
10424 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'`
10426 xe_check_libs=" -lwnn6_fromsrc "
10427 cat > conftest.$ac_ext <<EOF
10428 #line 10429 "configure"
10429 #include "confdefs.h"
10430 /* Override any gcc2 internal prototype to avoid an error. */
10431 /* We use char because int might match the return type of a gcc2
10432 builtin and then its argument prototype would still apply. */
10439 if { (eval echo configure:10440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10441 eval "ac_cv_lib_$ac_lib_var=yes"
10443 echo "configure: failed program was:" >&5
10444 cat conftest.$ac_ext >&5
10446 eval "ac_cv_lib_$ac_lib_var=no"
10451 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10452 echo "$ac_t""yes" 1>&6
10453 libwnn=wnn6_fromsrc
10455 echo "$ac_t""no" 1>&6
10470 test -z "$with_wnn" && with_wnn=yes
10471 if test "$with_wnn" = "yes"; then
10472 { test "$extra_verbose" = "yes" && cat << \EOF
10475 cat >> confdefs.h <<\EOF
10480 libs_x="-l$libwnn $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$libwnn\" to \$libs_x"; fi
10481 extra_objs="$extra_objs mule-wnnfns.o" && if test "$extra_verbose" = "yes"; then
10482 echo " xemacs will be linked with \"mule-wnnfns.o\""
10484 if test "$with_wnn6" != "no"; then
10486 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6
10487 echo "configure:10488: checking for jl_fi_dic_list in -l$libwnn" >&5
10488 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
10490 xe_check_libs=" -l$libwnn "
10491 cat > conftest.$ac_ext <<EOF
10492 #line 10493 "configure"
10493 #include "confdefs.h"
10494 /* Override any gcc2 internal prototype to avoid an error. */
10495 /* We use char because int might match the return type of a gcc2
10496 builtin and then its argument prototype would still apply. */
10497 char jl_fi_dic_list();
10503 if { (eval echo configure:10504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10505 eval "ac_cv_lib_$ac_lib_var=yes"
10507 echo "configure: failed program was:" >&5
10508 cat conftest.$ac_ext >&5
10510 eval "ac_cv_lib_$ac_lib_var=no"
10515 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10516 echo "$ac_t""yes" 1>&6
10519 echo "$ac_t""no" 1>&6
10523 test "$with_wnn6" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
10526 cat >> confdefs.h <<\EOF
10534 canna_includes_found=no
10535 if test "$with_canna" != "no"; then
10536 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
10537 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
10538 echo "configure:10539: checking for canna/jrkanji.h" >&5
10540 cat > conftest.$ac_ext <<EOF
10541 #line 10542 "configure"
10542 #include "confdefs.h"
10543 #include <canna/jrkanji.h>
10545 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10546 { (eval echo configure:10547: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10547 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10548 if test -z "$ac_err"; then
10550 eval "ac_cv_header_$ac_safe=yes"
10553 echo "configure: failed program was:" >&5
10554 cat conftest.$ac_ext >&5
10556 eval "ac_cv_header_$ac_safe=no"
10559 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10560 echo "$ac_t""yes" 1>&6
10561 canna_includes_found=yes
10563 echo "$ac_t""no" 1>&6
10567 if test "$canna_includes_found" = "no" -a "$with_canna" != "no" -a \
10568 -d "/usr/local/canna/include"; then
10569 save_c_switch_site="$c_switch_site"
10570 c_switch_site="$c_switch_site -I/usr/local/canna/include"
10571 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
10572 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
10573 echo "configure:10574: checking for canna/jrkanji.h" >&5
10575 cat > conftest.$ac_ext <<EOF
10576 #line 10577 "configure"
10577 #include "confdefs.h"
10578 #include <canna/jrkanji.h>
10580 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10581 { (eval echo configure:10582: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10582 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10583 if test -z "$ac_err"; then
10585 eval "ac_cv_header_$ac_safe=yes"
10588 echo "configure: failed program was:" >&5
10589 cat conftest.$ac_ext >&5
10591 eval "ac_cv_header_$ac_safe=no"
10594 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10595 echo "$ac_t""yes" 1>&6
10596 canna_includes_found=yes
10598 echo "$ac_t""no" 1>&6
10601 if test "$canna_includes_found" != "yes"; then
10602 c_switch_site="$save_c_switch_site"
10607 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
10608 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
10609 echo "configure:10610: checking for canna/RK.h" >&5
10611 cat > conftest.$ac_ext <<EOF
10612 #line 10613 "configure"
10613 #include "confdefs.h"
10614 #include <canna/RK.h>
10616 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10617 { (eval echo configure:10618: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10618 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10619 if test -z "$ac_err"; then
10621 eval "ac_cv_header_$ac_safe=yes"
10624 echo "configure: failed program was:" >&5
10625 cat conftest.$ac_ext >&5
10627 eval "ac_cv_header_$ac_safe=no"
10630 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10631 echo "$ac_t""yes" 1>&6
10634 echo "$ac_t""no" 1>&6
10638 test -z "$with_canna" && {
10639 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
10640 echo "configure:10641: checking for RkBgnBun in -lRKC" >&5
10641 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
10643 xe_check_libs=" -lRKC "
10644 cat > conftest.$ac_ext <<EOF
10645 #line 10646 "configure"
10646 #include "confdefs.h"
10647 /* Override any gcc2 internal prototype to avoid an error. */
10648 /* We use char because int might match the return type of a gcc2
10649 builtin and then its argument prototype would still apply. */
10656 if { (eval echo configure:10657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10658 eval "ac_cv_lib_$ac_lib_var=yes"
10660 echo "configure: failed program was:" >&5
10661 cat conftest.$ac_ext >&5
10663 eval "ac_cv_lib_$ac_lib_var=no"
10668 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10669 echo "$ac_t""yes" 1>&6
10672 echo "$ac_t""no" 1>&6
10677 test -z "$with_canna" && {
10678 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
10679 echo "configure:10680: checking for jrKanjiControl in -lcanna" >&5
10680 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
10682 xe_check_libs=" -lcanna "
10683 cat > conftest.$ac_ext <<EOF
10684 #line 10685 "configure"
10685 #include "confdefs.h"
10686 /* Override any gcc2 internal prototype to avoid an error. */
10687 /* We use char because int might match the return type of a gcc2
10688 builtin and then its argument prototype would still apply. */
10689 char jrKanjiControl();
10695 if { (eval echo configure:10696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10697 eval "ac_cv_lib_$ac_lib_var=yes"
10699 echo "configure: failed program was:" >&5
10700 cat conftest.$ac_ext >&5
10702 eval "ac_cv_lib_$ac_lib_var=no"
10707 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10708 echo "$ac_t""yes" 1>&6
10711 echo "$ac_t""no" 1>&6
10716 test -z "$with_canna" && with_canna=yes
10717 if test "$with_canna" = "yes"; then
10718 { test "$extra_verbose" = "yes" && cat << \EOF
10719 Defining HAVE_CANNA
10721 cat >> confdefs.h <<\EOF
10722 #define HAVE_CANNA 1
10726 libs_x="-lcanna -lRKC $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcanna -lRKC\" to \$libs_x"; fi
10727 extra_objs="$extra_objs mule-canna.o" && if test "$extra_verbose" = "yes"; then
10728 echo " xemacs will be linked with \"mule-canna.o\""
10732 else for feature in xim canna wnn; do
10733 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
10734 echo "configure: warning: "--with-${feature} ignored: Not valid without Mule support"" 1>&2
10736 eval "with_${feature}=no"
10740 if test "$need_motif" = "yes" ; then
10741 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi
10743 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6
10744 echo "configure:10745: checking for layout_object_getvalue in -li18n" >&5
10745 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'`
10747 xe_check_libs=" -li18n "
10748 cat > conftest.$ac_ext <<EOF
10749 #line 10750 "configure"
10750 #include "confdefs.h"
10751 /* Override any gcc2 internal prototype to avoid an error. */
10752 /* We use char because int might match the return type of a gcc2
10753 builtin and then its argument prototype would still apply. */
10754 char layout_object_getvalue();
10757 layout_object_getvalue()
10760 if { (eval echo configure:10761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10762 eval "ac_cv_lib_$ac_lib_var=yes"
10764 echo "configure: failed program was:" >&5
10765 cat conftest.$ac_ext >&5
10767 eval "ac_cv_lib_$ac_lib_var=no"
10772 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10773 echo "$ac_t""yes" 1>&6
10774 libs_x="-li18n $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-li18n\" to \$libs_x"; fi
10776 echo "$ac_t""no" 1>&6
10781 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
10782 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
10783 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
10785 runpath="" runpath_dirs=""
10786 if test -n "$LD_RUN_PATH"; then
10787 runpath="$LD_RUN_PATH"
10788 elif test "$GCC" = "yes"; then
10789 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
10790 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
10791 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
10792 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
10793 case "$arg" in P,* | -L* | -R* )
10794 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
10796 xe_runpath_dir="$dir"
10797 test "$xe_runpath_dir" != "/lib" -a \
10798 "$xe_runpath_dir" != "/usr/lib" -a \
10799 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
10800 eval "$xe_add_unique_runpath_dir"
10805 ld_switch_run="$ld_switch_run_save"
10808 for arg in $ld_switch_site $ld_switch_x_site; do
10809 case "$arg" in -L*) {
10810 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
10811 test "$xe_runpath_dir" != "/lib" -a \
10812 "$xe_runpath_dir" != "/usr/lib" -a \
10813 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
10814 eval "$xe_add_unique_runpath_dir"
10817 if test "$opsys $need_motif" = "sol2 yes"; then
10818 xe_runpath_dir="/opt/SUNWdt/lib";
10819 eval "$xe_add_unique_runpath_dir";
10822 if test -n "$runpath"; then
10823 ld_switch_run="${dash_r}${runpath}"
10825 if test "$GCC" = "yes"; then
10826 set x $ld_switch_run; shift; ld_switch_run=""
10827 while test -n "$1"; do
10829 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
10830 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
10832 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
10837 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
10843 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
10845 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10846 echo "configure:10847: checking for $ac_func" >&5
10848 cat > conftest.$ac_ext <<EOF
10849 #line 10850 "configure"
10850 #include "confdefs.h"
10851 /* System header to define __stub macros and hopefully few prototypes,
10852 which can conflict with char $ac_func(); below. */
10853 #include <assert.h>
10854 /* Override any gcc2 internal prototype to avoid an error. */
10855 /* We use char because int might match the return type of a gcc2
10856 builtin and then its argument prototype would still apply. */
10861 /* The GNU C library defines this for functions which it implements
10862 to always fail with ENOSYS. Some functions are actually named
10863 something starting with __ and the normal name is an alias. */
10864 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10872 if { (eval echo configure:10873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10874 eval "ac_cv_func_$ac_func=yes"
10876 echo "configure: failed program was:" >&5
10877 cat conftest.$ac_ext >&5
10879 eval "ac_cv_func_$ac_func=no"
10883 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10884 echo "$ac_t""yes" 1>&6
10885 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10886 { test "$extra_verbose" = "yes" && cat << EOF
10887 Defining $ac_tr_func
10889 cat >> confdefs.h <<EOF
10890 #define $ac_tr_func 1
10895 echo "$ac_t""no" 1>&6
10901 for ac_func in getpt _getpty grantpt unlockpt ptsname killpg tcgetpgrp
10903 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10904 echo "configure:10905: checking for $ac_func" >&5
10906 cat > conftest.$ac_ext <<EOF
10907 #line 10908 "configure"
10908 #include "confdefs.h"
10909 /* System header to define __stub macros and hopefully few prototypes,
10910 which can conflict with char $ac_func(); below. */
10911 #include <assert.h>
10912 /* Override any gcc2 internal prototype to avoid an error. */
10913 /* We use char because int might match the return type of a gcc2
10914 builtin and then its argument prototype would still apply. */
10919 /* The GNU C library defines this for functions which it implements
10920 to always fail with ENOSYS. Some functions are actually named
10921 something starting with __ and the normal name is an alias. */
10922 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10930 if { (eval echo configure:10931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10932 eval "ac_cv_func_$ac_func=yes"
10934 echo "configure: failed program was:" >&5
10935 cat conftest.$ac_ext >&5
10937 eval "ac_cv_func_$ac_func=no"
10941 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10942 echo "$ac_t""yes" 1>&6
10943 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10944 { test "$extra_verbose" = "yes" && cat << EOF
10945 Defining $ac_tr_func
10947 cat >> confdefs.h <<EOF
10948 #define $ac_tr_func 1
10953 echo "$ac_t""no" 1>&6
10958 echo $ac_n "checking for openpty""... $ac_c" 1>&6
10959 echo "configure:10960: checking for openpty" >&5
10961 cat > conftest.$ac_ext <<EOF
10962 #line 10963 "configure"
10963 #include "confdefs.h"
10964 /* System header to define __stub macros and hopefully few prototypes,
10965 which can conflict with char openpty(); below. */
10966 #include <assert.h>
10967 /* Override any gcc2 internal prototype to avoid an error. */
10968 /* We use char because int might match the return type of a gcc2
10969 builtin and then its argument prototype would still apply. */
10974 /* The GNU C library defines this for functions which it implements
10975 to always fail with ENOSYS. Some functions are actually named
10976 something starting with __ and the normal name is an alias. */
10977 #if defined (__stub_openpty) || defined (__stub___openpty)
10985 if { (eval echo configure:10986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10987 eval "ac_cv_func_openpty=yes"
10989 echo "configure: failed program was:" >&5
10990 cat conftest.$ac_ext >&5
10992 eval "ac_cv_func_openpty=no"
10996 if eval "test \"`echo '$ac_cv_func_'openpty`\" = yes"; then
10997 echo "$ac_t""yes" 1>&6
11000 echo "$ac_t""no" 1>&6
11003 echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6
11004 echo "configure:11005: checking for openpty in -lutil" >&5
11005 ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'`
11007 xe_check_libs=" -lutil "
11008 cat > conftest.$ac_ext <<EOF
11009 #line 11010 "configure"
11010 #include "confdefs.h"
11011 /* Override any gcc2 internal prototype to avoid an error. */
11012 /* We use char because int might match the return type of a gcc2
11013 builtin and then its argument prototype would still apply. */
11020 if { (eval echo configure:11021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11022 eval "ac_cv_lib_$ac_lib_var=yes"
11024 echo "configure: failed program was:" >&5
11025 cat conftest.$ac_ext >&5
11027 eval "ac_cv_lib_$ac_lib_var=no"
11032 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11033 echo "$ac_t""yes" 1>&6
11034 have_openpty=yes need_libutil=yes
11036 echo "$ac_t""no" 1>&6
11042 if test "$have_openpty" = "yes"; then
11043 { test "$extra_verbose" = "yes" && cat << \EOF
11044 Defining HAVE_OPENPTY
11046 cat >> confdefs.h <<\EOF
11047 #define HAVE_OPENPTY 1
11051 for ac_hdr in pty.h libutil.h util.h
11053 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11054 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11055 echo "configure:11056: checking for $ac_hdr" >&5
11057 cat > conftest.$ac_ext <<EOF
11058 #line 11059 "configure"
11059 #include "confdefs.h"
11062 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11063 { (eval echo configure:11064: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11064 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11065 if test -z "$ac_err"; then
11067 eval "ac_cv_header_$ac_safe=yes"
11070 echo "configure: failed program was:" >&5
11071 cat conftest.$ac_ext >&5
11073 eval "ac_cv_header_$ac_safe=no"
11076 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11077 echo "$ac_t""yes" 1>&6
11078 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11079 { test "$extra_verbose" = "yes" && cat << EOF
11080 Defining $ac_tr_hdr
11082 cat >> confdefs.h <<EOF
11083 #define $ac_tr_hdr 1
11088 echo "$ac_t""no" 1>&6
11092 test "$need_libutil" = "yes" && libs_system="$libs_system -lutil" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lutil\" to \$libs_system"; fi
11095 for ac_hdr in stropts.h
11097 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11098 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11099 echo "configure:11100: checking for $ac_hdr" >&5
11101 cat > conftest.$ac_ext <<EOF
11102 #line 11103 "configure"
11103 #include "confdefs.h"
11106 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11107 { (eval echo configure:11108: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11108 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11109 if test -z "$ac_err"; then
11111 eval "ac_cv_header_$ac_safe=yes"
11114 echo "configure: failed program was:" >&5
11115 cat conftest.$ac_ext >&5
11117 eval "ac_cv_header_$ac_safe=no"
11120 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11121 echo "$ac_t""yes" 1>&6
11122 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11123 { test "$extra_verbose" = "yes" && cat << EOF
11124 Defining $ac_tr_hdr
11126 cat >> confdefs.h <<EOF
11127 #define $ac_tr_hdr 1
11132 echo "$ac_t""no" 1>&6
11136 if test "$ac_cv_header_stropts_h" = "yes"; then
11137 for ac_func in isastream
11139 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11140 echo "configure:11141: checking for $ac_func" >&5
11142 cat > conftest.$ac_ext <<EOF
11143 #line 11144 "configure"
11144 #include "confdefs.h"
11145 /* System header to define __stub macros and hopefully few prototypes,
11146 which can conflict with char $ac_func(); below. */
11147 #include <assert.h>
11148 /* Override any gcc2 internal prototype to avoid an error. */
11149 /* We use char because int might match the return type of a gcc2
11150 builtin and then its argument prototype would still apply. */
11155 /* The GNU C library defines this for functions which it implements
11156 to always fail with ENOSYS. Some functions are actually named
11157 something starting with __ and the normal name is an alias. */
11158 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11166 if { (eval echo configure:11167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11168 eval "ac_cv_func_$ac_func=yes"
11170 echo "configure: failed program was:" >&5
11171 cat conftest.$ac_ext >&5
11173 eval "ac_cv_func_$ac_func=no"
11177 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11178 echo "$ac_t""yes" 1>&6
11179 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11180 { test "$extra_verbose" = "yes" && cat << EOF
11181 Defining $ac_tr_func
11183 cat >> confdefs.h <<EOF
11184 #define $ac_tr_func 1
11189 echo "$ac_t""no" 1>&6
11193 for ac_hdr in strtio.h
11195 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11196 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11197 echo "configure:11198: checking for $ac_hdr" >&5
11199 cat > conftest.$ac_ext <<EOF
11200 #line 11201 "configure"
11201 #include "confdefs.h"
11204 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11205 { (eval echo configure:11206: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11206 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11207 if test -z "$ac_err"; then
11209 eval "ac_cv_header_$ac_safe=yes"
11212 echo "configure: failed program was:" >&5
11213 cat conftest.$ac_ext >&5
11215 eval "ac_cv_header_$ac_safe=no"
11218 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11219 echo "$ac_t""yes" 1>&6
11220 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11221 { test "$extra_verbose" = "yes" && cat << EOF
11222 Defining $ac_tr_hdr
11224 cat >> confdefs.h <<EOF
11225 #define $ac_tr_hdr 1
11230 echo "$ac_t""no" 1>&6
11235 extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
11236 echo " xemacs will be linked with \"realpath.o\""
11239 for ac_func in getloadavg
11241 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11242 echo "configure:11243: checking for $ac_func" >&5
11244 cat > conftest.$ac_ext <<EOF
11245 #line 11246 "configure"
11246 #include "confdefs.h"
11247 /* System header to define __stub macros and hopefully few prototypes,
11248 which can conflict with char $ac_func(); below. */
11249 #include <assert.h>
11250 /* Override any gcc2 internal prototype to avoid an error. */
11251 /* We use char because int might match the return type of a gcc2
11252 builtin and then its argument prototype would still apply. */
11257 /* The GNU C library defines this for functions which it implements
11258 to always fail with ENOSYS. Some functions are actually named
11259 something starting with __ and the normal name is an alias. */
11260 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11268 if { (eval echo configure:11269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11270 eval "ac_cv_func_$ac_func=yes"
11272 echo "configure: failed program was:" >&5
11273 cat conftest.$ac_ext >&5
11275 eval "ac_cv_func_$ac_func=no"
11279 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11280 echo "$ac_t""yes" 1>&6
11281 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11282 { test "$extra_verbose" = "yes" && cat << EOF
11283 Defining $ac_tr_func
11285 cat >> confdefs.h <<EOF
11286 #define $ac_tr_func 1
11291 echo "$ac_t""no" 1>&6
11296 if test "$ac_cv_func_getloadavg" = "yes"; then
11297 for ac_hdr in sys/loadavg.h
11299 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11300 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11301 echo "configure:11302: checking for $ac_hdr" >&5
11303 cat > conftest.$ac_ext <<EOF
11304 #line 11305 "configure"
11305 #include "confdefs.h"
11308 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11309 { (eval echo configure:11310: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11310 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11311 if test -z "$ac_err"; then
11313 eval "ac_cv_header_$ac_safe=yes"
11316 echo "configure: failed program was:" >&5
11317 cat conftest.$ac_ext >&5
11319 eval "ac_cv_header_$ac_safe=no"
11322 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11323 echo "$ac_t""yes" 1>&6
11324 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11325 { test "$extra_verbose" = "yes" && cat << EOF
11326 Defining $ac_tr_hdr
11328 cat >> confdefs.h <<EOF
11329 #define $ac_tr_hdr 1
11334 echo "$ac_t""no" 1>&6
11339 extra_objs="$extra_objs getloadavg.o" && if test "$extra_verbose" = "yes"; then
11340 echo " xemacs will be linked with \"getloadavg.o\""
11344 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
11345 echo "configure:11346: checking for kstat_open in -lkstat" >&5
11346 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
11348 xe_check_libs=" -lkstat "
11349 cat > conftest.$ac_ext <<EOF
11350 #line 11351 "configure"
11351 #include "confdefs.h"
11352 /* Override any gcc2 internal prototype to avoid an error. */
11353 /* We use char because int might match the return type of a gcc2
11354 builtin and then its argument prototype would still apply. */
11361 if { (eval echo configure:11362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11363 eval "ac_cv_lib_$ac_lib_var=yes"
11365 echo "configure: failed program was:" >&5
11366 cat conftest.$ac_ext >&5
11368 eval "ac_cv_lib_$ac_lib_var=no"
11373 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11374 echo "$ac_t""yes" 1>&6
11375 ac_tr_lib=HAVE_LIB`echo kstat | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11376 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11377 { test "$extra_verbose" = "yes" && cat << EOF
11378 Defining $ac_tr_lib
11380 cat >> confdefs.h <<EOF
11381 #define $ac_tr_lib 1
11385 LIBS="-lkstat $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkstat\" to \$LIBS"; fi
11388 echo "$ac_t""no" 1>&6
11392 for ac_hdr in kstat.h
11394 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11395 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11396 echo "configure:11397: checking for $ac_hdr" >&5
11398 cat > conftest.$ac_ext <<EOF
11399 #line 11400 "configure"
11400 #include "confdefs.h"
11403 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11404 { (eval echo configure:11405: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11405 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11406 if test -z "$ac_err"; then
11408 eval "ac_cv_header_$ac_safe=yes"
11411 echo "configure: failed program was:" >&5
11412 cat conftest.$ac_ext >&5
11414 eval "ac_cv_header_$ac_safe=no"
11417 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11418 echo "$ac_t""yes" 1>&6
11419 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11420 { test "$extra_verbose" = "yes" && cat << EOF
11421 Defining $ac_tr_hdr
11423 cat >> confdefs.h <<EOF
11424 #define $ac_tr_hdr 1
11429 echo "$ac_t""no" 1>&6
11435 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
11436 echo "configure:11437: checking for kvm_read in -lkvm" >&5
11437 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
11439 xe_check_libs=" -lkvm "
11440 cat > conftest.$ac_ext <<EOF
11441 #line 11442 "configure"
11442 #include "confdefs.h"
11443 /* Override any gcc2 internal prototype to avoid an error. */
11444 /* We use char because int might match the return type of a gcc2
11445 builtin and then its argument prototype would still apply. */
11452 if { (eval echo configure:11453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11454 eval "ac_cv_lib_$ac_lib_var=yes"
11456 echo "configure: failed program was:" >&5
11457 cat conftest.$ac_ext >&5
11459 eval "ac_cv_lib_$ac_lib_var=no"
11464 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11465 echo "$ac_t""yes" 1>&6
11466 ac_tr_lib=HAVE_LIB`echo kvm | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11467 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11468 { test "$extra_verbose" = "yes" && cat << EOF
11469 Defining $ac_tr_lib
11471 cat >> confdefs.h <<EOF
11472 #define $ac_tr_lib 1
11476 LIBS="-lkvm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkvm\" to \$LIBS"; fi
11479 echo "$ac_t""no" 1>&6
11485 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
11486 echo "configure:11487: checking whether netdb declares h_errno" >&5
11487 cat > conftest.$ac_ext <<EOF
11488 #line 11489 "configure"
11489 #include "confdefs.h"
11495 if { (eval echo configure:11496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11497 echo "$ac_t""yes" 1>&6
11498 { test "$extra_verbose" = "yes" && cat << \EOF
11499 Defining HAVE_H_ERRNO
11501 cat >> confdefs.h <<\EOF
11502 #define HAVE_H_ERRNO 1
11507 echo "configure: failed program was:" >&5
11508 cat conftest.$ac_ext >&5
11510 echo "$ac_t""no" 1>&6
11514 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
11515 echo "configure:11516: checking for sigsetjmp" >&5
11516 cat > conftest.$ac_ext <<EOF
11517 #line 11518 "configure"
11518 #include "confdefs.h"
11519 #include <setjmp.h>
11521 sigjmp_buf bar; sigsetjmp (bar, 0);
11524 if { (eval echo configure:11525: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11526 echo "$ac_t""yes" 1>&6
11527 { test "$extra_verbose" = "yes" && cat << \EOF
11528 Defining HAVE_SIGSETJMP
11530 cat >> confdefs.h <<\EOF
11531 #define HAVE_SIGSETJMP 1
11536 echo "configure: failed program was:" >&5
11537 cat conftest.$ac_ext >&5
11539 echo "$ac_t""no" 1>&6
11543 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
11544 echo "configure:11545: checking whether localtime caches TZ" >&5
11546 if test "$ac_cv_func_tzset" = "yes"; then
11547 cat > conftest.$ac_ext <<EOF
11548 #line 11549 "configure"
11549 #include "confdefs.h"
11552 # include <stdlib.h>
11554 extern char **environ;
11558 for (to = from = environ; (*to = *from); from++)
11559 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
11562 char TZ_GMT0[] = "TZ=GMT0";
11563 char TZ_PST8[] = "TZ=PST8";
11566 time_t now = time ((time_t *) 0);
11567 int hour_GMT0, hour_unset;
11568 if (putenv (TZ_GMT0) != 0)
11570 hour_GMT0 = localtime (&now)->tm_hour;
11572 hour_unset = localtime (&now)->tm_hour;
11573 if (putenv (TZ_PST8) != 0)
11575 if (localtime (&now)->tm_hour == hour_GMT0)
11578 if (localtime (&now)->tm_hour != hour_unset)
11583 if { (eval echo configure:11584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11585 emacs_cv_localtime_cache=no
11588 echo "configure: failed program was:" >&5
11589 cat conftest.$ac_ext >&5
11591 emacs_cv_localtime_cache=yes
11595 # If we lack tzset, report that localtime does not cache TZ,
11596 # since we can't invalidate the cache if we don't have tzset.
11597 emacs_cv_localtime_cache=no
11599 echo "$ac_t""$emacs_cv_localtime_cache" 1>&6
11600 if test $emacs_cv_localtime_cache = yes; then
11601 { test "$extra_verbose" = "yes" && cat << \EOF
11602 Defining LOCALTIME_CACHE
11604 cat >> confdefs.h <<\EOF
11605 #define LOCALTIME_CACHE 1
11611 if test "$HAVE_TIMEVAL" = "yes"; then
11612 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6
11613 echo "configure:11614: checking whether gettimeofday accepts one or two arguments" >&5
11614 cat > conftest.$ac_ext <<EOF
11615 #line 11616 "configure"
11616 #include "confdefs.h"
11618 #ifdef TIME_WITH_SYS_TIME
11619 #include <sys/time.h>
11622 #ifdef HAVE_SYS_TIME_H
11623 #include <sys/time.h>
11631 struct timeval time;
11632 gettimeofday (&time, 0);
11636 if { (eval echo configure:11637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11638 echo "$ac_t""two" 1>&6
11640 echo "configure: failed program was:" >&5
11641 cat conftest.$ac_ext >&5
11643 echo "$ac_t""one" 1>&6
11644 { test "$extra_verbose" = "yes" && cat << \EOF
11645 Defining GETTIMEOFDAY_ONE_ARGUMENT
11647 cat >> confdefs.h <<\EOF
11648 #define GETTIMEOFDAY_ONE_ARGUMENT 1
11657 echo $ac_n "checking for inline""... $ac_c" 1>&6
11658 echo "configure:11659: checking for inline" >&5
11661 for ac_kw in inline __inline__ __inline; do
11662 cat > conftest.$ac_ext <<EOF
11663 #line 11664 "configure"
11664 #include "confdefs.h"
11670 if { (eval echo configure:11671: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11672 ac_cv_c_inline=$ac_kw; break
11674 echo "configure: failed program was:" >&5
11675 cat conftest.$ac_ext >&5
11681 echo "$ac_t""$ac_cv_c_inline" 1>&6
11682 case "$ac_cv_c_inline" in
11684 no) { test "$extra_verbose" = "yes" && cat << \EOF
11687 cat >> confdefs.h <<\EOF
11692 *) { test "$extra_verbose" = "yes" && cat << EOF
11693 Defining inline = $ac_cv_c_inline
11695 cat >> confdefs.h <<EOF
11696 #define inline $ac_cv_c_inline
11702 test "$ac_cv_c_inline" != "no" -a "$GCC" = "yes" && extra_objs="$extra_objs inline.o" && if test "$extra_verbose" = "yes"; then
11703 echo " xemacs will be linked with \"inline.o\""
11707 if test "$__DECC" != "yes"; then
11708 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11709 # for constant arguments. Useless!
11710 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
11711 echo "configure:11712: checking for working alloca.h" >&5
11713 cat > conftest.$ac_ext <<EOF
11714 #line 11715 "configure"
11715 #include "confdefs.h"
11716 #include <alloca.h>
11718 char *p = alloca(2 * sizeof(int));
11721 if { (eval echo configure:11722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11723 ac_cv_header_alloca_h=yes
11725 echo "configure: failed program was:" >&5
11726 cat conftest.$ac_ext >&5
11728 ac_cv_header_alloca_h=no
11732 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
11733 if test $ac_cv_header_alloca_h = yes; then
11734 { test "$extra_verbose" = "yes" && cat << \EOF
11735 Defining HAVE_ALLOCA_H
11737 cat >> confdefs.h <<\EOF
11738 #define HAVE_ALLOCA_H 1
11744 echo $ac_n "checking for alloca""... $ac_c" 1>&6
11745 echo "configure:11746: checking for alloca" >&5
11747 cat > conftest.$ac_ext <<EOF
11748 #line 11749 "configure"
11749 #include "confdefs.h"
11752 # define alloca __builtin_alloca
11755 # include <malloc.h>
11756 # define alloca _alloca
11759 # include <alloca.h>
11764 # ifndef alloca /* predefined by HP cc +Olibcalls */
11773 char *p = (char *) alloca(1);
11776 if { (eval echo configure:11777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11778 ac_cv_func_alloca_works=yes
11780 echo "configure: failed program was:" >&5
11781 cat conftest.$ac_ext >&5
11783 ac_cv_func_alloca_works=no
11787 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
11788 if test $ac_cv_func_alloca_works = yes; then
11789 { test "$extra_verbose" = "yes" && cat << \EOF
11790 Defining HAVE_ALLOCA
11792 cat >> confdefs.h <<\EOF
11793 #define HAVE_ALLOCA 1
11799 if test $ac_cv_func_alloca_works = no; then
11800 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11801 # that cause trouble. Some versions do not even contain alloca or
11802 # contain a buggy version. If you still want to use their alloca,
11803 # use ar to extract alloca.o from them instead of compiling alloca.c.
11804 ALLOCA=alloca.${ac_objext}
11805 { test "$extra_verbose" = "yes" && cat << \EOF
11808 cat >> confdefs.h <<\EOF
11814 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
11815 echo "configure:11816: checking whether alloca needs Cray hooks" >&5
11817 cat > conftest.$ac_ext <<EOF
11818 #line 11819 "configure"
11819 #include "confdefs.h"
11820 #if defined(CRAY) && ! defined(CRAY2)
11827 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11828 egrep "webecray" >/dev/null 2>&1; then
11838 echo "$ac_t""$ac_cv_os_cray" 1>&6
11839 if test $ac_cv_os_cray = yes; then
11840 for ac_func in _getb67 GETB67 getb67; do
11841 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11842 echo "configure:11843: checking for $ac_func" >&5
11844 cat > conftest.$ac_ext <<EOF
11845 #line 11846 "configure"
11846 #include "confdefs.h"
11847 /* System header to define __stub macros and hopefully few prototypes,
11848 which can conflict with char $ac_func(); below. */
11849 #include <assert.h>
11850 /* Override any gcc2 internal prototype to avoid an error. */
11851 /* We use char because int might match the return type of a gcc2
11852 builtin and then its argument prototype would still apply. */
11857 /* The GNU C library defines this for functions which it implements
11858 to always fail with ENOSYS. Some functions are actually named
11859 something starting with __ and the normal name is an alias. */
11860 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11868 if { (eval echo configure:11869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11870 eval "ac_cv_func_$ac_func=yes"
11872 echo "configure: failed program was:" >&5
11873 cat conftest.$ac_ext >&5
11875 eval "ac_cv_func_$ac_func=no"
11879 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11880 echo "$ac_t""yes" 1>&6
11881 { test "$extra_verbose" = "yes" && cat << EOF
11882 Defining CRAY_STACKSEG_END = $ac_func
11884 cat >> confdefs.h <<EOF
11885 #define CRAY_STACKSEG_END $ac_func
11891 echo "$ac_t""no" 1>&6
11897 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
11898 echo "configure:11899: checking stack direction for C alloca" >&5
11900 cat > conftest.$ac_ext <<EOF
11901 #line 11902 "configure"
11902 #include "confdefs.h"
11903 find_stack_direction ()
11905 static char *addr = 0;
11910 return find_stack_direction ();
11913 return (&dummy > addr) ? 1 : -1;
11917 exit (find_stack_direction() < 0);
11920 if { (eval echo configure:11921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11922 ac_cv_c_stack_direction=1
11925 echo "configure: failed program was:" >&5
11926 cat conftest.$ac_ext >&5
11928 ac_cv_c_stack_direction=-1
11932 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
11933 { test "$extra_verbose" = "yes" && cat << EOF
11934 Defining STACK_DIRECTION = $ac_cv_c_stack_direction
11936 cat >> confdefs.h <<EOF
11937 #define STACK_DIRECTION $ac_cv_c_stack_direction
11943 test -n "$ALLOCA" && extra_objs="$extra_objs $ALLOCA" && if test "$extra_verbose" = "yes"; then
11944 echo " xemacs will be linked with \"$ALLOCA\""
11948 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
11949 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
11950 echo "configure:11951: checking for vfork.h" >&5
11952 cat > conftest.$ac_ext <<EOF
11953 #line 11954 "configure"
11954 #include "confdefs.h"
11957 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11958 { (eval echo configure:11959: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11959 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11960 if test -z "$ac_err"; then
11962 eval "ac_cv_header_$ac_safe=yes"
11965 echo "configure: failed program was:" >&5
11966 cat conftest.$ac_ext >&5
11968 eval "ac_cv_header_$ac_safe=no"
11971 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11972 echo "$ac_t""yes" 1>&6
11973 { test "$extra_verbose" = "yes" && cat << \EOF
11974 Defining HAVE_VFORK_H
11976 cat >> confdefs.h <<\EOF
11977 #define HAVE_VFORK_H 1
11982 echo "$ac_t""no" 1>&6
11985 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
11986 echo "configure:11987: checking for working vfork" >&5
11988 cat > conftest.$ac_ext <<EOF
11989 #line 11990 "configure"
11990 #include "confdefs.h"
11991 /* Thanks to Paul Eggert for this test. */
11993 #include <sys/types.h>
11994 #include <sys/stat.h>
11995 #ifdef HAVE_UNISTD_H
11996 #include <unistd.h>
11998 #ifdef HAVE_VFORK_H
12001 /* On some sparc systems, changes by the child to local and incoming
12002 argument registers are propagated back to the parent.
12003 The compiler is told about this with #include <vfork.h>,
12004 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
12005 Test for this by using a static variable whose address
12006 is put into a register that is clobbered by the vfork. */
12009 sparc_address_test (int arg)
12011 sparc_address_test (arg) int arg;
12014 static pid_t child;
12029 pid_t parent = getpid ();
12032 sparc_address_test ();
12037 /* Here is another test for sparc vfork register problems.
12038 This test uses lots of local variables, at least
12039 as many local variables as main has allocated so far
12040 including compiler temporaries. 4 locals are enough for
12041 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
12042 A buggy compiler should reuse the register of parent
12043 for one of the local variables, since it will think that
12044 parent can't possibly be used any more in this routine.
12045 Assigning to the local variable will thus munge parent
12046 in the parent process. */
12048 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12049 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12050 /* Convince the compiler that p..p7 are live; otherwise, it might
12051 use the same hardware register for all 8 local variables. */
12052 if (p != p1 || p != p2 || p != p3 || p != p4
12053 || p != p5 || p != p6 || p != p7)
12056 /* On some systems (e.g. IRIX 3.3),
12057 vfork doesn't separate parent from child file descriptors.
12058 If the child closes a descriptor before it execs or exits,
12059 this munges the parent's descriptor as well.
12060 Test for this by closing stdout in the child. */
12061 _exit(close(fileno(stdout)) != 0);
12066 while (wait(&status) != child)
12069 /* Was there some problem with vforking? */
12072 /* Did the child fail? (This shouldn't happen.) */
12075 /* Did the vfork/compiler bug occur? */
12076 || parent != getpid()
12078 /* Did the file descriptor bug occur? */
12079 || fstat(fileno(stdout), &st) != 0
12084 if { (eval echo configure:12085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12086 ac_cv_func_vfork_works=yes
12089 echo "configure: failed program was:" >&5
12090 cat conftest.$ac_ext >&5
12092 ac_cv_func_vfork_works=no
12096 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
12097 if test $ac_cv_func_vfork_works = no; then
12098 { test "$extra_verbose" = "yes" && cat << \EOF
12099 Defining vfork = fork
12101 cat >> confdefs.h <<\EOF
12109 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
12110 echo "configure:12111: checking for working strcoll" >&5
12112 cat > conftest.$ac_ext <<EOF
12113 #line 12114 "configure"
12114 #include "confdefs.h"
12115 #include <string.h>
12118 exit (strcoll ("abc", "def") >= 0 ||
12119 strcoll ("ABC", "DEF") >= 0 ||
12120 strcoll ("123", "456") >= 0);
12123 if { (eval echo configure:12124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12125 ac_cv_func_strcoll_works=yes
12128 echo "configure: failed program was:" >&5
12129 cat conftest.$ac_ext >&5
12131 ac_cv_func_strcoll_works=no
12135 echo "$ac_t""$ac_cv_func_strcoll_works" 1>&6
12136 if test $ac_cv_func_strcoll_works = yes; then
12137 { test "$extra_verbose" = "yes" && cat << \EOF
12138 Defining HAVE_STRCOLL
12140 cat >> confdefs.h <<\EOF
12141 #define HAVE_STRCOLL 1
12148 for ac_func in getpgrp
12150 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12151 echo "configure:12152: checking for $ac_func" >&5
12153 cat > conftest.$ac_ext <<EOF
12154 #line 12155 "configure"
12155 #include "confdefs.h"
12156 /* System header to define __stub macros and hopefully few prototypes,
12157 which can conflict with char $ac_func(); below. */
12158 #include <assert.h>
12159 /* Override any gcc2 internal prototype to avoid an error. */
12160 /* We use char because int might match the return type of a gcc2
12161 builtin and then its argument prototype would still apply. */
12166 /* The GNU C library defines this for functions which it implements
12167 to always fail with ENOSYS. Some functions are actually named
12168 something starting with __ and the normal name is an alias. */
12169 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12177 if { (eval echo configure:12178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12179 eval "ac_cv_func_$ac_func=yes"
12181 echo "configure: failed program was:" >&5
12182 cat conftest.$ac_ext >&5
12184 eval "ac_cv_func_$ac_func=no"
12188 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12189 echo "$ac_t""yes" 1>&6
12190 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12191 { test "$extra_verbose" = "yes" && cat << EOF
12192 Defining $ac_tr_func
12194 cat >> confdefs.h <<EOF
12195 #define $ac_tr_func 1
12200 echo "$ac_t""no" 1>&6
12204 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
12205 echo "configure:12206: checking whether getpgrp takes no argument" >&5
12207 cat > conftest.$ac_ext <<EOF
12208 #line 12209 "configure"
12209 #include "confdefs.h"
12212 * If this system has a BSD-style getpgrp(),
12213 * which takes a pid argument, exit unsuccessfully.
12215 * Snarfed from Chet Ramey's bash pgrp.c test program
12218 #include <sys/types.h>
12221 int pg1, pg2, pg3, pg4;
12222 int ng, np, s, child;
12229 pg3 = getpgrp(pid);
12233 * If all of these values are the same, it's pretty sure that
12234 * we're on a system that ignores getpgrp's first argument.
12236 if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3)
12242 else if (child == 0) {
12245 * If this is Sys V, this will not work; pgrp will be
12246 * set to np because setpgrp just changes a pgrp to be
12247 * the same as the pid.
12250 ng = getpgrp(0); /* Same result for Sys V and BSD */
12263 if { (eval echo configure:12264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12265 ac_cv_func_getpgrp_void=yes
12268 echo "configure: failed program was:" >&5
12269 cat conftest.$ac_ext >&5
12271 ac_cv_func_getpgrp_void=no
12276 echo "$ac_t""$ac_cv_func_getpgrp_void" 1>&6
12277 if test $ac_cv_func_getpgrp_void = yes; then
12278 { test "$extra_verbose" = "yes" && cat << \EOF
12279 Defining GETPGRP_VOID
12281 cat >> confdefs.h <<\EOF
12282 #define GETPGRP_VOID 1
12289 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
12290 echo "configure:12291: checking for working mmap" >&5
12291 case "$opsys" in ultrix* ) have_mmap=no ;; *)
12292 cat > conftest.$ac_ext <<EOF
12293 #line 12294 "configure"
12294 #include "confdefs.h"
12296 #include <unistd.h>
12298 #include <sys/mman.h>
12300 #ifndef MAP_VARIABLE
12301 #define MAP_VARIABLE 0
12305 #define MAP_FAILED -1
12308 int main (int argc, char *argv[])
12312 #ifndef MAP_ANONYMOUS
12313 fd = open ("/dev/zero", O_RDWR);
12316 #define MAP_ANONYMOUS 0
12318 if (mmap(0, 1024, PROT_READ | PROT_WRITE,
12319 MAP_PRIVATE | MAP_VARIABLE | MAP_ANONYMOUS,
12320 fd, 0) != (void *) MAP_FAILED)
12322 perror ("conftest: mmap failed");
12326 if { (eval echo configure:12327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12331 echo "configure: failed program was:" >&5
12332 cat conftest.$ac_ext >&5
12336 rm -fr conftest* ;;
12338 echo "$ac_t""$have_mmap" 1>&6
12339 test "$have_mmap" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
12342 cat >> confdefs.h <<\EOF
12343 #define HAVE_MMAP 1
12348 case "$opsys" in cygwin*)
12349 test "$rel_alloc" = "default" && rel_alloc=no ;;
12351 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no
12352 if test "$rel_alloc $have_mmap" = "default yes"; then
12353 if test "$doug_lea_malloc" = "yes"; then
12354 echo $ac_n "checking for M_MMAP_THRESHOLD""... $ac_c" 1>&6
12355 echo "configure:12356: checking for M_MMAP_THRESHOLD" >&5
12356 cat > conftest.$ac_ext <<EOF
12357 #line 12358 "configure"
12358 #include "confdefs.h"
12359 #include <malloc.h>
12362 #ifndef M_MMAP_THRESHOLD
12363 #error No M_MMAP_THRESHOLD :-(
12364 !@+$%^&*_)(_ - unlikely to compile...
12369 if { (eval echo configure:12370: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12371 rel_alloc=no; echo "$ac_t""yes" 1>&6;
12373 echo "configure: failed program was:" >&5
12374 cat conftest.$ac_ext >&5
12376 rel_alloc=yes; echo "$ac_t""no" 1>&6;
12383 test "$rel_alloc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
12386 cat >> confdefs.h <<\EOF
12387 #define REL_ALLOC 1
12392 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
12393 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
12394 echo "configure:12395: checking for termios.h" >&5
12396 cat > conftest.$ac_ext <<EOF
12397 #line 12398 "configure"
12398 #include "confdefs.h"
12399 #include <termios.h>
12401 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12402 { (eval echo configure:12403: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12403 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12404 if test -z "$ac_err"; then
12406 eval "ac_cv_header_$ac_safe=yes"
12409 echo "configure: failed program was:" >&5
12410 cat conftest.$ac_ext >&5
12412 eval "ac_cv_header_$ac_safe=no"
12415 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12416 echo "$ac_t""yes" 1>&6
12417 { test "$extra_verbose" = "yes" && cat << \EOF
12418 Defining HAVE_TERMIOS
12420 cat >> confdefs.h <<\EOF
12421 #define HAVE_TERMIOS 1
12425 { test "$extra_verbose" = "yes" && cat << \EOF
12426 Defining SIGNALS_VIA_CHARACTERS
12428 cat >> confdefs.h <<\EOF
12429 #define SIGNALS_VIA_CHARACTERS 1
12433 { test "$extra_verbose" = "yes" && cat << \EOF
12436 cat >> confdefs.h <<\EOF
12437 #define NO_TERMIO 1
12442 echo "$ac_t""no" 1>&6
12443 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
12444 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
12445 echo "configure:12446: checking for termio.h" >&5
12447 cat > conftest.$ac_ext <<EOF
12448 #line 12449 "configure"
12449 #include "confdefs.h"
12450 #include <termio.h>
12452 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12453 { (eval echo configure:12454: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12454 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12455 if test -z "$ac_err"; then
12457 eval "ac_cv_header_$ac_safe=yes"
12460 echo "configure: failed program was:" >&5
12461 cat conftest.$ac_ext >&5
12463 eval "ac_cv_header_$ac_safe=no"
12466 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12467 echo "$ac_t""yes" 1>&6
12468 { test "$extra_verbose" = "yes" && cat << \EOF
12469 Defining HAVE_TERMIO
12471 cat >> confdefs.h <<\EOF
12472 #define HAVE_TERMIO 1
12477 echo "$ac_t""no" 1>&6
12484 echo $ac_n "checking for socket""... $ac_c" 1>&6
12485 echo "configure:12486: checking for socket" >&5
12487 cat > conftest.$ac_ext <<EOF
12488 #line 12489 "configure"
12489 #include "confdefs.h"
12490 /* System header to define __stub macros and hopefully few prototypes,
12491 which can conflict with char socket(); below. */
12492 #include <assert.h>
12493 /* Override any gcc2 internal prototype to avoid an error. */
12494 /* We use char because int might match the return type of a gcc2
12495 builtin and then its argument prototype would still apply. */
12500 /* The GNU C library defines this for functions which it implements
12501 to always fail with ENOSYS. Some functions are actually named
12502 something starting with __ and the normal name is an alias. */
12503 #if defined (__stub_socket) || defined (__stub___socket)
12511 if { (eval echo configure:12512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12513 eval "ac_cv_func_socket=yes"
12515 echo "configure: failed program was:" >&5
12516 cat conftest.$ac_ext >&5
12518 eval "ac_cv_func_socket=no"
12522 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
12523 echo "$ac_t""yes" 1>&6
12524 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
12525 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
12526 echo "configure:12527: checking for netinet/in.h" >&5
12528 cat > conftest.$ac_ext <<EOF
12529 #line 12530 "configure"
12530 #include "confdefs.h"
12531 #include <netinet/in.h>
12533 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12534 { (eval echo configure:12535: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12535 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12536 if test -z "$ac_err"; then
12538 eval "ac_cv_header_$ac_safe=yes"
12541 echo "configure: failed program was:" >&5
12542 cat conftest.$ac_ext >&5
12544 eval "ac_cv_header_$ac_safe=no"
12547 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12548 echo "$ac_t""yes" 1>&6
12549 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
12550 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
12551 echo "configure:12552: checking for arpa/inet.h" >&5
12553 cat > conftest.$ac_ext <<EOF
12554 #line 12555 "configure"
12555 #include "confdefs.h"
12556 #include <arpa/inet.h>
12558 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12559 { (eval echo configure:12560: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12560 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12561 if test -z "$ac_err"; then
12563 eval "ac_cv_header_$ac_safe=yes"
12566 echo "configure: failed program was:" >&5
12567 cat conftest.$ac_ext >&5
12569 eval "ac_cv_header_$ac_safe=no"
12572 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12573 echo "$ac_t""yes" 1>&6
12575 { test "$extra_verbose" = "yes" && cat << \EOF
12576 Defining HAVE_SOCKETS
12578 cat >> confdefs.h <<\EOF
12579 #define HAVE_SOCKETS 1
12583 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
12584 echo "configure:12585: checking "for sun_len member in struct sockaddr_un"" >&5
12585 cat > conftest.$ac_ext <<EOF
12586 #line 12587 "configure"
12587 #include "confdefs.h"
12589 #include <sys/types.h>
12590 #include <sys/socket.h>
12591 #include <sys/un.h>
12594 static struct sockaddr_un x; x.sun_len = 1;
12597 if { (eval echo configure:12598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12599 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
12600 Defining HAVE_SOCKADDR_SUN_LEN
12602 cat >> confdefs.h <<\EOF
12603 #define HAVE_SOCKADDR_SUN_LEN 1
12608 echo "configure: failed program was:" >&5
12609 cat conftest.$ac_ext >&5
12611 echo "$ac_t""no" 1>&6
12614 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6
12615 echo "configure:12616: checking "for ip_mreq struct in netinet/in.h"" >&5
12616 cat > conftest.$ac_ext <<EOF
12617 #line 12618 "configure"
12618 #include "confdefs.h"
12620 #include <sys/types.h>
12621 #include <netinet/in.h>
12624 static struct ip_mreq x;
12627 if { (eval echo configure:12628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12629 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
12630 Defining HAVE_MULTICAST
12632 cat >> confdefs.h <<\EOF
12633 #define HAVE_MULTICAST 1
12638 echo "configure: failed program was:" >&5
12639 cat conftest.$ac_ext >&5
12641 echo "$ac_t""no" 1>&6
12645 echo "$ac_t""no" 1>&6
12649 echo "$ac_t""no" 1>&6
12653 echo "$ac_t""no" 1>&6
12657 echo $ac_n "checking for msgget""... $ac_c" 1>&6
12658 echo "configure:12659: checking for msgget" >&5
12660 cat > conftest.$ac_ext <<EOF
12661 #line 12662 "configure"
12662 #include "confdefs.h"
12663 /* System header to define __stub macros and hopefully few prototypes,
12664 which can conflict with char msgget(); below. */
12665 #include <assert.h>
12666 /* Override any gcc2 internal prototype to avoid an error. */
12667 /* We use char because int might match the return type of a gcc2
12668 builtin and then its argument prototype would still apply. */
12673 /* The GNU C library defines this for functions which it implements
12674 to always fail with ENOSYS. Some functions are actually named
12675 something starting with __ and the normal name is an alias. */
12676 #if defined (__stub_msgget) || defined (__stub___msgget)
12684 if { (eval echo configure:12685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12686 eval "ac_cv_func_msgget=yes"
12688 echo "configure: failed program was:" >&5
12689 cat conftest.$ac_ext >&5
12691 eval "ac_cv_func_msgget=no"
12695 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
12696 echo "$ac_t""yes" 1>&6
12697 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
12698 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
12699 echo "configure:12700: checking for sys/ipc.h" >&5
12701 cat > conftest.$ac_ext <<EOF
12702 #line 12703 "configure"
12703 #include "confdefs.h"
12704 #include <sys/ipc.h>
12706 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12707 { (eval echo configure:12708: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12708 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12709 if test -z "$ac_err"; then
12711 eval "ac_cv_header_$ac_safe=yes"
12714 echo "configure: failed program was:" >&5
12715 cat conftest.$ac_ext >&5
12717 eval "ac_cv_header_$ac_safe=no"
12720 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12721 echo "$ac_t""yes" 1>&6
12722 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
12723 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
12724 echo "configure:12725: checking for sys/msg.h" >&5
12726 cat > conftest.$ac_ext <<EOF
12727 #line 12728 "configure"
12728 #include "confdefs.h"
12729 #include <sys/msg.h>
12731 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12732 { (eval echo configure:12733: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12733 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12734 if test -z "$ac_err"; then
12736 eval "ac_cv_header_$ac_safe=yes"
12739 echo "configure: failed program was:" >&5
12740 cat conftest.$ac_ext >&5
12742 eval "ac_cv_header_$ac_safe=no"
12745 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12746 echo "$ac_t""yes" 1>&6
12747 { test "$extra_verbose" = "yes" && cat << \EOF
12748 Defining HAVE_SYSVIPC
12750 cat >> confdefs.h <<\EOF
12751 #define HAVE_SYSVIPC 1
12756 echo "$ac_t""no" 1>&6
12760 echo "$ac_t""no" 1>&6
12764 echo "$ac_t""no" 1>&6
12768 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
12769 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
12770 echo "configure:12771: checking for dirent.h" >&5
12772 cat > conftest.$ac_ext <<EOF
12773 #line 12774 "configure"
12774 #include "confdefs.h"
12775 #include <dirent.h>
12777 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12778 { (eval echo configure:12779: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12779 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12780 if test -z "$ac_err"; then
12782 eval "ac_cv_header_$ac_safe=yes"
12785 echo "configure: failed program was:" >&5
12786 cat conftest.$ac_ext >&5
12788 eval "ac_cv_header_$ac_safe=no"
12791 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12792 echo "$ac_t""yes" 1>&6
12793 { test "$extra_verbose" = "yes" && cat << \EOF
12794 Defining SYSV_SYSTEM_DIR
12796 cat >> confdefs.h <<\EOF
12797 #define SYSV_SYSTEM_DIR 1
12802 echo "$ac_t""no" 1>&6
12803 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
12804 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
12805 echo "configure:12806: checking for sys/dir.h" >&5
12807 cat > conftest.$ac_ext <<EOF
12808 #line 12809 "configure"
12809 #include "confdefs.h"
12810 #include <sys/dir.h>
12812 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12813 { (eval echo configure:12814: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12814 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12815 if test -z "$ac_err"; then
12817 eval "ac_cv_header_$ac_safe=yes"
12820 echo "configure: failed program was:" >&5
12821 cat conftest.$ac_ext >&5
12823 eval "ac_cv_header_$ac_safe=no"
12826 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12827 echo "$ac_t""yes" 1>&6
12830 echo "$ac_t""no" 1>&6
12831 { test "$extra_verbose" = "yes" && cat << \EOF
12832 Defining NONSYSTEM_DIR_LIBRARY
12834 cat >> confdefs.h <<\EOF
12835 #define NONSYSTEM_DIR_LIBRARY 1
12844 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
12845 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
12846 echo "configure:12847: checking for nlist.h" >&5
12848 cat > conftest.$ac_ext <<EOF
12849 #line 12850 "configure"
12850 #include "confdefs.h"
12853 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12854 { (eval echo configure:12855: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12855 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12856 if test -z "$ac_err"; then
12858 eval "ac_cv_header_$ac_safe=yes"
12861 echo "configure: failed program was:" >&5
12862 cat conftest.$ac_ext >&5
12864 eval "ac_cv_header_$ac_safe=no"
12867 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12868 echo "$ac_t""yes" 1>&6
12869 { test "$extra_verbose" = "yes" && cat << \EOF
12870 Defining NLIST_STRUCT
12872 cat >> confdefs.h <<\EOF
12873 #define NLIST_STRUCT 1
12878 echo "$ac_t""no" 1>&6
12883 echo "checking "for sound support"" 1>&6
12884 echo "configure:12885: checking "for sound support"" >&5
12885 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
12887 if test "$with_native_sound" != "no"; then
12888 if test -n "$native_sound_lib"; then
12889 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
12890 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
12891 echo "configure:12892: checking for multimedia/audio_device.h" >&5
12893 cat > conftest.$ac_ext <<EOF
12894 #line 12895 "configure"
12895 #include "confdefs.h"
12896 #include <multimedia/audio_device.h>
12898 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12899 { (eval echo configure:12900: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12900 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12901 if test -z "$ac_err"; then
12903 eval "ac_cv_header_$ac_safe=yes"
12906 echo "configure: failed program was:" >&5
12907 cat conftest.$ac_ext >&5
12909 eval "ac_cv_header_$ac_safe=no"
12912 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12913 echo "$ac_t""yes" 1>&6
12914 sound_found=yes sound_cflags=""
12915 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
12916 echo " xemacs will be linked with \"sunplay.o\""
12919 echo "$ac_t""no" 1>&6
12924 if test -z "$sound_found" -a -d "/usr/demo/SOUND"; then
12926 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
12927 echo " xemacs will be linked with \"sunplay.o\""
12929 if test -d "/usr/demo/SOUND/include"
12930 then sound_cflags="-I/usr/demo/SOUND/include"
12931 else sound_cflags="-I/usr/demo/SOUND"
12933 if test -z "$native_sound_lib" ; then
12934 if test -r "/usr/demo/SOUND/lib/libaudio.a"
12935 then native_sound_lib="/usr/demo/SOUND/lib/libaudio.a"
12936 else native_sound_lib="/usr/demo/SOUND/libaudio.a"
12941 if test -z "$sound_found"; then
12942 case "$canonical" in
12944 if test -z "$native_sound_lib"; then
12946 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
12947 echo "configure:12948: checking for ALopenport in -laudio" >&5
12948 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
12950 xe_check_libs=" -laudio "
12951 cat > conftest.$ac_ext <<EOF
12952 #line 12953 "configure"
12953 #include "confdefs.h"
12954 /* Override any gcc2 internal prototype to avoid an error. */
12955 /* We use char because int might match the return type of a gcc2
12956 builtin and then its argument prototype would still apply. */
12963 if { (eval echo configure:12964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12965 eval "ac_cv_lib_$ac_lib_var=yes"
12967 echo "configure: failed program was:" >&5
12968 cat conftest.$ac_ext >&5
12970 eval "ac_cv_lib_$ac_lib_var=no"
12975 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12976 echo "$ac_t""yes" 1>&6
12977 native_sound_lib="-laudio"
12979 echo "$ac_t""no" 1>&6
12984 if test -n "$native_sound_lib"; then
12985 sound_found=yes sound_cflags=""
12986 extra_objs="$extra_objs sgiplay.o" && if test "$extra_verbose" = "yes"; then
12987 echo " xemacs will be linked with \"sgiplay.o\""
12991 if test -z "$native_sound_lib"; then
12993 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
12994 echo "configure:12995: checking for AOpenAudio in -lAlib" >&5
12995 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
12997 xe_check_libs=" -lAlib "
12998 cat > conftest.$ac_ext <<EOF
12999 #line 13000 "configure"
13000 #include "confdefs.h"
13001 /* Override any gcc2 internal prototype to avoid an error. */
13002 /* We use char because int might match the return type of a gcc2
13003 builtin and then its argument prototype would still apply. */
13010 if { (eval echo configure:13011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13012 eval "ac_cv_lib_$ac_lib_var=yes"
13014 echo "configure: failed program was:" >&5
13015 cat conftest.$ac_ext >&5
13017 eval "ac_cv_lib_$ac_lib_var=no"
13022 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13023 echo "$ac_t""yes" 1>&6
13024 native_sound_lib="-lAlib"
13026 echo "$ac_t""no" 1>&6
13031 if test -n "$native_sound_lib"; then
13033 extra_objs="$extra_objs hpplay.o" && if test "$extra_verbose" = "yes"; then
13034 echo " xemacs will be linked with \"hpplay.o\""
13036 if test "$GCC" = "yes" # Kludge city
13037 then sound_cflags="-Dconst= -Dvolatile= -I/usr/audio/examples"
13038 else sound_cflags="+e -I/usr/audio/examples"
13044 if test -z "$sound_found"; then
13045 if test "$with_msw" = "yes"; then
13051 if test -z "$sound_found"; then
13052 for dir in "machine" "sys" "linux"; do
13053 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
13054 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
13055 echo "configure:13056: checking for ${dir}/soundcard.h" >&5
13057 cat > conftest.$ac_ext <<EOF
13058 #line 13059 "configure"
13059 #include "confdefs.h"
13060 #include <${dir}/soundcard.h>
13062 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13063 { (eval echo configure:13064: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13064 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13065 if test -z "$ac_err"; then
13067 eval "ac_cv_header_$ac_safe=yes"
13070 echo "configure: failed program was:" >&5
13071 cat conftest.$ac_ext >&5
13073 eval "ac_cv_header_$ac_safe=no"
13076 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13077 echo "$ac_t""yes" 1>&6
13080 extra_objs="$extra_objs linuxplay.o" && if test "$extra_verbose" = "yes"; then
13081 echo " xemacs will be linked with \"linuxplay.o\""
13083 { test "$extra_verbose" = "yes" && cat << EOF
13084 Defining SOUNDCARD_H_FILE = "${dir}/soundcard.h"
13086 cat >> confdefs.h <<EOF
13087 #define SOUNDCARD_H_FILE "${dir}/soundcard.h"
13093 echo "$ac_t""no" 1>&6
13099 test "$sound_found" = "yes" && with_native_sound=yes
13102 if test "$with_native_sound" = "yes"; then
13103 { test "$extra_verbose" = "yes" && cat << \EOF
13104 Defining HAVE_NATIVE_SOUND
13106 cat >> confdefs.h <<\EOF
13107 #define HAVE_NATIVE_SOUND 1
13111 test -n "$native_sound_lib" && LIBS="$native_sound_lib $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$native_sound_lib\" to \$LIBS"; fi
13114 if test "$with_nas_sound" != "no"; then
13115 ac_safe=`echo "audio/audiolib.h" | sed 'y%./+-%__p_%'`
13116 echo $ac_n "checking for audio/audiolib.h""... $ac_c" 1>&6
13117 echo "configure:13118: checking for audio/audiolib.h" >&5
13119 cat > conftest.$ac_ext <<EOF
13120 #line 13121 "configure"
13121 #include "confdefs.h"
13122 #include <audio/audiolib.h>
13124 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13125 { (eval echo configure:13126: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13126 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13127 if test -z "$ac_err"; then
13129 eval "ac_cv_header_$ac_safe=yes"
13132 echo "configure: failed program was:" >&5
13133 cat conftest.$ac_ext >&5
13135 eval "ac_cv_header_$ac_safe=no"
13138 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13139 echo "$ac_t""yes" 1>&6
13142 echo $ac_n "checking for AuOpenServer in -laudio""... $ac_c" 1>&6
13143 echo "configure:13144: checking for AuOpenServer in -laudio" >&5
13144 ac_lib_var=`echo audio'_'AuOpenServer | sed 'y%./+-%__p_%'`
13146 xe_check_libs=" -laudio "
13147 cat > conftest.$ac_ext <<EOF
13148 #line 13149 "configure"
13149 #include "confdefs.h"
13150 /* Override any gcc2 internal prototype to avoid an error. */
13151 /* We use char because int might match the return type of a gcc2
13152 builtin and then its argument prototype would still apply. */
13153 char AuOpenServer();
13159 if { (eval echo configure:13160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13161 eval "ac_cv_lib_$ac_lib_var=yes"
13163 echo "configure: failed program was:" >&5
13164 cat conftest.$ac_ext >&5
13166 eval "ac_cv_lib_$ac_lib_var=no"
13171 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13172 echo "$ac_t""yes" 1>&6
13175 echo "$ac_t""no" 1>&6
13180 echo "$ac_t""no" 1>&6
13183 if test "$have_nas_sound" = "yes"; then
13185 { test "$extra_verbose" = "yes" && cat << \EOF
13186 Defining HAVE_NAS_SOUND
13188 cat >> confdefs.h <<\EOF
13189 #define HAVE_NAS_SOUND 1
13193 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
13194 echo " xemacs will be linked with \"nas.o\""
13196 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi
13197 cat > conftest.$ac_ext <<EOF
13198 #line 13199 "configure"
13199 #include "confdefs.h"
13200 #include <audio/Xtutil.h>
13202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13203 egrep "AuXtErrorJump" >/dev/null 2>&1; then
13207 old_nas=yes; { test "$extra_verbose" = "yes" && cat << \EOF
13208 Defining NAS_NO_ERROR_JUMP
13210 cat >> confdefs.h <<\EOF
13211 #define NAS_NO_ERROR_JUMP 1
13219 test "$with_nas_sound" = "yes" && \
13220 { echo "Error:" "Required NAS sound support cannot be provided." >&2; exit 1; }
13225 if test "$with_esd_sound" != "no"; then
13226 # Extract the first word of "esd-config", so it can be a program name with args.
13227 set dummy esd-config; ac_word=$2
13228 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
13229 echo "configure:13230: checking for $ac_word" >&5
13231 if test -n "$have_esd_config"; then
13232 ac_cv_prog_have_esd_config="$have_esd_config" # Let the user override the test.
13234 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
13236 for ac_dir in $ac_dummy; do
13237 test -z "$ac_dir" && ac_dir=.
13238 if test -f $ac_dir/$ac_word; then
13239 ac_cv_prog_have_esd_config="yes"
13244 test -z "$ac_cv_prog_have_esd_config" && ac_cv_prog_have_esd_config="no"
13246 have_esd_config="$ac_cv_prog_have_esd_config"
13247 if test -n "$have_esd_config"; then
13248 echo "$ac_t""$have_esd_config" 1>&6
13250 echo "$ac_t""no" 1>&6
13253 if test "$have_esd_config" = "yes"; then
13254 save_c_switch_site="$c_switch_site" save_LIBS="$LIBS"
13255 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
13256 LIBS="`esd-config --libs` $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"`esd-config --libs`\" to \$LIBS"; fi
13257 echo $ac_n "checking for esd_play_stream""... $ac_c" 1>&6
13258 echo "configure:13259: checking for esd_play_stream" >&5
13260 cat > conftest.$ac_ext <<EOF
13261 #line 13262 "configure"
13262 #include "confdefs.h"
13263 /* System header to define __stub macros and hopefully few prototypes,
13264 which can conflict with char esd_play_stream(); below. */
13265 #include <assert.h>
13266 /* Override any gcc2 internal prototype to avoid an error. */
13267 /* We use char because int might match the return type of a gcc2
13268 builtin and then its argument prototype would still apply. */
13269 char esd_play_stream();
13273 /* The GNU C library defines this for functions which it implements
13274 to always fail with ENOSYS. Some functions are actually named
13275 something starting with __ and the normal name is an alias. */
13276 #if defined (__stub_esd_play_stream) || defined (__stub___esd_play_stream)
13284 if { (eval echo configure:13285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13286 eval "ac_cv_func_esd_play_stream=yes"
13288 echo "configure: failed program was:" >&5
13289 cat conftest.$ac_ext >&5
13291 eval "ac_cv_func_esd_play_stream=no"
13295 if eval "test \"`echo '$ac_cv_func_'esd_play_stream`\" = yes"; then
13296 echo "$ac_t""yes" 1>&6
13299 echo "$ac_t""no" 1>&6
13300 c_switch_site="$save_c_switch_site" LIBS="$save_LIBS"
13305 if test "$have_esd_sound" = "yes"; then
13308 extra_objs="$extra_objs esd.o" && if test "$extra_verbose" = "yes"; then
13309 echo " xemacs will be linked with \"esd.o\""
13311 { test "$extra_verbose" = "yes" && cat << \EOF
13312 Defining HAVE_ESD_SOUND
13314 cat >> confdefs.h <<\EOF
13315 #define HAVE_ESD_SOUND 1
13320 test "$with_esd_sound" = "yes" && \
13321 { echo "Error:" "Required ESD sound support cannot be provided." >&2; exit 1; }
13326 test "$need_miscplay" = "yes" && extra_objs="$extra_objs miscplay.o" && if test "$extra_verbose" = "yes"; then
13327 echo " xemacs will be linked with \"miscplay.o\""
13331 test -z "$with_tty" && with_tty=yes
13333 if test "$with_tty" = "yes" ; then
13334 echo "checking for TTY-related features" 1>&6
13335 echo "configure:13336: checking for TTY-related features" >&5
13336 { test "$extra_verbose" = "yes" && cat << \EOF
13339 cat >> confdefs.h <<\EOF
13344 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
13345 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\""
13348 if test -z "$with_ncurses"; then
13350 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
13351 echo "configure:13352: checking for tgetent in -lncurses" >&5
13352 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
13354 xe_check_libs=" -lncurses "
13355 cat > conftest.$ac_ext <<EOF
13356 #line 13357 "configure"
13357 #include "confdefs.h"
13358 /* Override any gcc2 internal prototype to avoid an error. */
13359 /* We use char because int might match the return type of a gcc2
13360 builtin and then its argument prototype would still apply. */
13367 if { (eval echo configure:13368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13369 eval "ac_cv_lib_$ac_lib_var=yes"
13371 echo "configure: failed program was:" >&5
13372 cat conftest.$ac_ext >&5
13374 eval "ac_cv_lib_$ac_lib_var=no"
13379 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13380 echo "$ac_t""yes" 1>&6
13383 echo "$ac_t""no" 1>&6
13389 if test "$with_ncurses" = "yes"; then
13390 { test "$extra_verbose" = "yes" && cat << \EOF
13391 Defining HAVE_NCURSES
13393 cat >> confdefs.h <<\EOF
13394 #define HAVE_NCURSES 1
13398 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
13399 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
13400 echo "configure:13401: checking for ncurses/curses.h" >&5
13402 cat > conftest.$ac_ext <<EOF
13403 #line 13404 "configure"
13404 #include "confdefs.h"
13405 #include <ncurses/curses.h>
13407 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13408 { (eval echo configure:13409: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13409 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13410 if test -z "$ac_err"; then
13412 eval "ac_cv_header_$ac_safe=yes"
13415 echo "configure: failed program was:" >&5
13416 cat conftest.$ac_ext >&5
13418 eval "ac_cv_header_$ac_safe=no"
13421 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13422 echo "$ac_t""yes" 1>&6
13423 curses_h_file=ncurses/curses.h
13425 echo "$ac_t""no" 1>&6
13428 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
13429 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
13430 echo "configure:13431: checking for ncurses/term.h" >&5
13432 cat > conftest.$ac_ext <<EOF
13433 #line 13434 "configure"
13434 #include "confdefs.h"
13435 #include <ncurses/term.h>
13437 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13438 { (eval echo configure:13439: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13439 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13440 if test -z "$ac_err"; then
13442 eval "ac_cv_header_$ac_safe=yes"
13445 echo "configure: failed program was:" >&5
13446 cat conftest.$ac_ext >&5
13448 eval "ac_cv_header_$ac_safe=no"
13451 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13452 echo "$ac_t""yes" 1>&6
13453 term_h_file=ncurses/term.h
13455 echo "$ac_t""no" 1>&6
13458 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
13459 echo " xemacs will be linked with \"terminfo.o\""
13461 LIBS="-lncurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lncurses\" to \$LIBS"; fi
13463 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
13464 save_c_switch_site="$c_switch_site"
13465 c_switch_site="$c_switch_site -I/usr/include/ncurses"
13466 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
13467 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
13468 echo "configure:13469: checking for ncurses/curses.h" >&5
13470 cat > conftest.$ac_ext <<EOF
13471 #line 13472 "configure"
13472 #include "confdefs.h"
13473 #include <ncurses/curses.h>
13475 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13476 { (eval echo configure:13477: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13477 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13478 if test -z "$ac_err"; then
13480 eval "ac_cv_header_$ac_safe=yes"
13483 echo "configure: failed program was:" >&5
13484 cat conftest.$ac_ext >&5
13486 eval "ac_cv_header_$ac_safe=no"
13489 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13490 echo "$ac_t""yes" 1>&6
13491 curses_h_file=ncurses/curses.h
13493 echo "$ac_t""no" 1>&6
13496 if test "$ac_cv_header_ncurses_curses_h" = "yes"
13497 then echo "configure: warning: "Your system has the bogus ncurses include bug."" 1>&2
13498 else c_switch_site="$save_c_switch_site"
13501 else if test "$have_terminfo" = "yes"; then
13502 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
13503 echo " xemacs will be linked with \"terminfo.o\""
13505 if test -n "$libs_termcap"; then
13506 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
13508 for lib in curses termlib termcap; do
13510 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
13511 echo "configure:13512: checking for tgetent in -l$lib" >&5
13512 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
13514 xe_check_libs=" -l$lib "
13515 cat > conftest.$ac_ext <<EOF
13516 #line 13517 "configure"
13517 #include "confdefs.h"
13518 /* Override any gcc2 internal prototype to avoid an error. */
13519 /* We use char because int might match the return type of a gcc2
13520 builtin and then its argument prototype would still apply. */
13527 if { (eval echo configure:13528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13529 eval "ac_cv_lib_$ac_lib_var=yes"
13531 echo "configure: failed program was:" >&5
13532 cat conftest.$ac_ext >&5
13534 eval "ac_cv_lib_$ac_lib_var=no"
13539 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13540 echo "$ac_t""yes" 1>&6
13541 LIBS="-l${lib} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${lib}\" to \$LIBS"; fi; break
13543 echo "$ac_t""no" 1>&6
13549 else extra_objs="$extra_objs tparam.o" && if test "$extra_verbose" = "yes"; then
13550 echo " xemacs will be linked with \"tparam.o\""
13552 case "$opsys" in *-hp-hpux* ) libs_termcap="-ltermcap" ;; esac
13553 if test -n "$libs_termcap"; then
13554 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
13557 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
13558 echo "configure:13559: checking for tgetent in -lcurses" >&5
13559 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
13561 xe_check_libs=" -lcurses "
13562 cat > conftest.$ac_ext <<EOF
13563 #line 13564 "configure"
13564 #include "confdefs.h"
13565 /* Override any gcc2 internal prototype to avoid an error. */
13566 /* We use char because int might match the return type of a gcc2
13567 builtin and then its argument prototype would still apply. */
13574 if { (eval echo configure:13575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13576 eval "ac_cv_lib_$ac_lib_var=yes"
13578 echo "configure: failed program was:" >&5
13579 cat conftest.$ac_ext >&5
13581 eval "ac_cv_lib_$ac_lib_var=no"
13586 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13587 echo "$ac_t""yes" 1>&6
13588 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
13590 echo "$ac_t""no" 1>&6
13591 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
13592 echo "configure:13593: checking for tgetent in -ltermcap" >&5
13593 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
13595 xe_check_libs=" -ltermcap "
13596 cat > conftest.$ac_ext <<EOF
13597 #line 13598 "configure"
13598 #include "confdefs.h"
13599 /* Override any gcc2 internal prototype to avoid an error. */
13600 /* We use char because int might match the return type of a gcc2
13601 builtin and then its argument prototype would still apply. */
13608 if { (eval echo configure:13609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13610 eval "ac_cv_lib_$ac_lib_var=yes"
13612 echo "configure: failed program was:" >&5
13613 cat conftest.$ac_ext >&5
13615 eval "ac_cv_lib_$ac_lib_var=no"
13620 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13621 echo "$ac_t""yes" 1>&6
13622 LIBS="-ltermcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltermcap\" to \$LIBS"; fi
13624 echo "$ac_t""no" 1>&6
13625 extra_objs="$extra_objs termcap.o" && if test "$extra_verbose" = "yes"; then
13626 echo " xemacs will be linked with \"termcap.o\""
13637 { test "$extra_verbose" = "yes" && cat << EOF
13638 Defining CURSES_H_FILE = "${curses_h_file-curses.h}"
13640 cat >> confdefs.h <<EOF
13641 #define CURSES_H_FILE "${curses_h_file-curses.h}"
13645 { test "$extra_verbose" = "yes" && cat << EOF
13646 Defining TERM_H_FILE = "${term_h_file-term.h}"
13648 cat >> confdefs.h <<EOF
13649 #define TERM_H_FILE "${term_h_file-term.h}"
13654 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
13655 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
13656 echo "configure:13657: checking for gpm.h" >&5
13658 cat > conftest.$ac_ext <<EOF
13659 #line 13660 "configure"
13660 #include "confdefs.h"
13663 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13664 { (eval echo configure:13665: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13665 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13666 if test -z "$ac_err"; then
13668 eval "ac_cv_header_$ac_safe=yes"
13671 echo "configure: failed program was:" >&5
13672 cat conftest.$ac_ext >&5
13674 eval "ac_cv_header_$ac_safe=no"
13677 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13678 echo "$ac_t""yes" 1>&6
13681 echo "$ac_t""no" 1>&6
13685 test -z "$with_gpm" && {
13686 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
13687 echo "configure:13688: checking for Gpm_Open in -lgpm" >&5
13688 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
13690 xe_check_libs=" -lgpm "
13691 cat > conftest.$ac_ext <<EOF
13692 #line 13693 "configure"
13693 #include "confdefs.h"
13694 /* Override any gcc2 internal prototype to avoid an error. */
13695 /* We use char because int might match the return type of a gcc2
13696 builtin and then its argument prototype would still apply. */
13703 if { (eval echo configure:13704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13705 eval "ac_cv_lib_$ac_lib_var=yes"
13707 echo "configure: failed program was:" >&5
13708 cat conftest.$ac_ext >&5
13710 eval "ac_cv_lib_$ac_lib_var=no"
13715 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13716 echo "$ac_t""yes" 1>&6
13719 echo "$ac_t""no" 1>&6
13724 if test "$with_gpm" = "yes"; then
13725 { test "$extra_verbose" = "yes" && cat << \EOF
13728 cat >> confdefs.h <<\EOF
13733 extra_objs="$extra_objs gpmevent.o" && if test "$extra_verbose" = "yes"; then
13734 echo " xemacs will be linked with \"gpmevent.o\""
13736 LIBS="-lgpm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgpm\" to \$LIBS"; fi
13739 else for feature in ncurses gpm; do
13740 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
13741 echo "configure: warning: "--with-${feature} ignored: Not valid without TTY support"" 1>&2
13743 eval "with_${feature}=no"
13746 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
13747 echo " xemacs will be linked with \"event-unixoid.o\""
13751 test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
13752 != "no no no" && echo "checking for database support" 1>&6
13753 echo "configure:13754: checking for database support" >&5
13755 if test "$with_database_gdbm $with_database_dbm" != "no no"; then
13756 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'`
13757 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6
13758 echo "configure:13759: checking for ndbm.h" >&5
13760 cat > conftest.$ac_ext <<EOF
13761 #line 13762 "configure"
13762 #include "confdefs.h"
13765 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13766 { (eval echo configure:13767: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13767 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13768 if test -z "$ac_err"; then
13770 eval "ac_cv_header_$ac_safe=yes"
13773 echo "configure: failed program was:" >&5
13774 cat conftest.$ac_ext >&5
13776 eval "ac_cv_header_$ac_safe=no"
13779 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13780 echo "$ac_t""yes" 1>&6
13783 echo "$ac_t""no" 1>&6
13785 test "$with_database_gdbm" = "yes" -o \
13786 "$with_database_dbm" = "yes" && \
13787 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
13788 with_database_gdbm=no with_database_dbm=no
13793 if test "$with_database_gdbm" != "no"; then
13795 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
13796 echo "configure:13797: checking for dbm_open in -lgdbm" >&5
13797 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
13799 xe_check_libs=" -lgdbm "
13800 cat > conftest.$ac_ext <<EOF
13801 #line 13802 "configure"
13802 #include "confdefs.h"
13803 /* Override any gcc2 internal prototype to avoid an error. */
13804 /* We use char because int might match the return type of a gcc2
13805 builtin and then its argument prototype would still apply. */
13812 if { (eval echo configure:13813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13814 eval "ac_cv_lib_$ac_lib_var=yes"
13816 echo "configure: failed program was:" >&5
13817 cat conftest.$ac_ext >&5
13819 eval "ac_cv_lib_$ac_lib_var=no"
13824 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13825 echo "$ac_t""yes" 1>&6
13826 with_database_gdbm=yes with_database_dbm=no libdbm=-lgdbm
13828 echo "$ac_t""no" 1>&6
13829 if test "$with_database_gdbm" = "yes"; then
13830 { echo "Error:" "Required GNU DBM support cannot be provided." >&2; exit 1; }
13832 with_database_gdbm=no
13838 if test "$with_database_dbm" != "no"; then
13839 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
13840 echo "configure:13841: checking for dbm_open" >&5
13842 cat > conftest.$ac_ext <<EOF
13843 #line 13844 "configure"
13844 #include "confdefs.h"
13845 /* System header to define __stub macros and hopefully few prototypes,
13846 which can conflict with char dbm_open(); below. */
13847 #include <assert.h>
13848 /* Override any gcc2 internal prototype to avoid an error. */
13849 /* We use char because int might match the return type of a gcc2
13850 builtin and then its argument prototype would still apply. */
13855 /* The GNU C library defines this for functions which it implements
13856 to always fail with ENOSYS. Some functions are actually named
13857 something starting with __ and the normal name is an alias. */
13858 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
13866 if { (eval echo configure:13867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13868 eval "ac_cv_func_dbm_open=yes"
13870 echo "configure: failed program was:" >&5
13871 cat conftest.$ac_ext >&5
13873 eval "ac_cv_func_dbm_open=no"
13877 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
13878 echo "$ac_t""yes" 1>&6
13879 with_database_dbm=yes libdbm=
13881 echo "$ac_t""no" 1>&6
13884 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
13885 echo "configure:13886: checking for dbm_open in -ldbm" >&5
13886 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
13888 xe_check_libs=" -ldbm "
13889 cat > conftest.$ac_ext <<EOF
13890 #line 13891 "configure"
13891 #include "confdefs.h"
13892 /* Override any gcc2 internal prototype to avoid an error. */
13893 /* We use char because int might match the return type of a gcc2
13894 builtin and then its argument prototype would still apply. */
13901 if { (eval echo configure:13902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13903 eval "ac_cv_lib_$ac_lib_var=yes"
13905 echo "configure: failed program was:" >&5
13906 cat conftest.$ac_ext >&5
13908 eval "ac_cv_lib_$ac_lib_var=no"
13913 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13914 echo "$ac_t""yes" 1>&6
13915 with_database_dbm=yes libdbm=-ldbm
13917 echo "$ac_t""no" 1>&6
13918 test "$with_database_dbm" = "yes" && \
13919 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
13920 with_database_dbm=no
13928 test -n "$libdbm" && LIBS=""$libdbm" $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libdbm"\" to \$LIBS"; fi
13929 test "$with_database_gdbm" = "yes" -o \
13930 "$with_database_dbm" = "yes" && \
13931 { test "$extra_verbose" = "yes" && cat << \EOF
13934 cat >> confdefs.h <<\EOF
13940 if test "$with_database_berkdb" != "no"; then
13941 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6
13942 echo "configure:13943: checking for Berkeley db.h" >&5
13943 for header in "db/db.h" "db.h"; do
13944 cat > conftest.$ac_ext <<EOF
13945 #line 13946 "configure"
13946 #include "confdefs.h"
13948 #include <stdlib.h>
13949 #if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1)
13950 #ifdef HAVE_INTTYPES_H
13951 #define __BIT_TYPES_DEFINED__
13952 #include <inttypes.h>
13953 typedef uint8_t u_int8_t;
13954 typedef uint16_t u_int16_t;
13955 typedef uint32_t u_int32_t;
13956 #ifdef WE_DONT_NEED_QUADS
13957 typedef uint64_t u_int64_t;
13967 if { (eval echo configure:13968: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13969 db_h_file="$header"; break
13971 echo "configure: failed program was:" >&5
13972 cat conftest.$ac_ext >&5
13976 if test -z "$db_h_file"
13977 then echo "$ac_t""no" 1>&6; with_database_berkdb=no
13978 else echo "$ac_t""$db_h_file" 1>&6
13981 if test "$with_database_berkdb" != "no"; then
13982 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6
13983 echo "configure:13984: checking for Berkeley DB version" >&5
13984 cat > conftest.$ac_ext <<EOF
13985 #line 13986 "configure"
13986 #include "confdefs.h"
13987 #include <$db_h_file>
13988 #if DB_VERSION_MAJOR > 1
13993 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13994 egrep "yes" >/dev/null 2>&1; then
13996 cat > conftest.$ac_ext <<EOF
13997 #line 13998 "configure"
13998 #include "confdefs.h"
13999 #include <$db_h_file>
14000 #if DB_VERSION_MAJOR > 2
14005 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14006 egrep "yes" >/dev/null 2>&1; then
14008 echo "$ac_t""3" 1>&6; dbfunc=db_create
14012 echo "$ac_t""2" 1>&6; dbfunc=db_open
14019 echo "$ac_t""1" 1>&6; dbfunc=dbopen
14023 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6
14024 echo "configure:14025: checking for $dbfunc" >&5
14026 cat > conftest.$ac_ext <<EOF
14027 #line 14028 "configure"
14028 #include "confdefs.h"
14029 /* System header to define __stub macros and hopefully few prototypes,
14030 which can conflict with char $dbfunc(); below. */
14031 #include <assert.h>
14032 /* Override any gcc2 internal prototype to avoid an error. */
14033 /* We use char because int might match the return type of a gcc2
14034 builtin and then its argument prototype would still apply. */
14039 /* The GNU C library defines this for functions which it implements
14040 to always fail with ENOSYS. Some functions are actually named
14041 something starting with __ and the normal name is an alias. */
14042 #if defined (__stub_$dbfunc) || defined (__stub___$dbfunc)
14050 if { (eval echo configure:14051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14052 eval "ac_cv_func_$dbfunc=yes"
14054 echo "configure: failed program was:" >&5
14055 cat conftest.$ac_ext >&5
14057 eval "ac_cv_func_$dbfunc=no"
14061 if eval "test \"`echo '$ac_cv_func_'$dbfunc`\" = yes"; then
14062 echo "$ac_t""yes" 1>&6
14063 with_database_berkdb=yes need_libdb=no
14065 echo "$ac_t""no" 1>&6
14068 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6
14069 echo "configure:14070: checking for $dbfunc in -ldb" >&5
14070 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'`
14072 xe_check_libs=" -ldb "
14073 cat > conftest.$ac_ext <<EOF
14074 #line 14075 "configure"
14075 #include "confdefs.h"
14076 /* Override any gcc2 internal prototype to avoid an error. */
14077 /* We use char because int might match the return type of a gcc2
14078 builtin and then its argument prototype would still apply. */
14085 if { (eval echo configure:14086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14087 eval "ac_cv_lib_$ac_lib_var=yes"
14089 echo "configure: failed program was:" >&5
14090 cat conftest.$ac_ext >&5
14092 eval "ac_cv_lib_$ac_lib_var=no"
14097 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
14098 echo "$ac_t""yes" 1>&6
14099 with_database_berkdb=yes need_libdb=yes
14101 echo "$ac_t""no" 1>&6
14109 if test "$with_database_berkdb" = "yes"; then
14110 { test "$extra_verbose" = "yes" && cat << EOF
14111 Defining DB_H_FILE = "$db_h_file"
14113 cat >> confdefs.h <<EOF
14114 #define DB_H_FILE "$db_h_file"
14118 { test "$extra_verbose" = "yes" && cat << \EOF
14119 Defining HAVE_BERKELEY_DB
14121 cat >> confdefs.h <<\EOF
14122 #define HAVE_BERKELEY_DB 1
14126 test "$need_libdb" = "yes" && LIBS="-ldb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldb\" to \$LIBS"; fi
14127 else with_database_berkdb=no
14131 if test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
14132 != "no no no"; then
14133 { test "$extra_verbose" = "yes" && cat << \EOF
14134 Defining HAVE_DATABASE
14136 cat >> confdefs.h <<\EOF
14137 #define HAVE_DATABASE 1
14141 extra_objs="$extra_objs database.o" && if test "$extra_verbose" = "yes"; then
14142 echo " xemacs will be linked with \"database.o\""
14146 if test "$with_socks" = "yes"; then
14148 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
14149 echo "configure:14150: checking for SOCKSinit in -lsocks" >&5
14150 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
14152 xe_check_libs=" -lsocks "
14153 cat > conftest.$ac_ext <<EOF
14154 #line 14155 "configure"
14155 #include "confdefs.h"
14156 /* Override any gcc2 internal prototype to avoid an error. */
14157 /* We use char because int might match the return type of a gcc2
14158 builtin and then its argument prototype would still apply. */
14165 if { (eval echo configure:14166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14167 eval "ac_cv_lib_$ac_lib_var=yes"
14169 echo "configure: failed program was:" >&5
14170 cat conftest.$ac_ext >&5
14172 eval "ac_cv_lib_$ac_lib_var=no"
14177 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
14178 echo "$ac_t""yes" 1>&6
14179 ac_tr_lib=HAVE_LIB`echo socks | sed -e 's/[^a-zA-Z0-9_]/_/g' \
14180 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
14181 { test "$extra_verbose" = "yes" && cat << EOF
14182 Defining $ac_tr_lib
14184 cat >> confdefs.h <<EOF
14185 #define $ac_tr_lib 1
14189 LIBS="-lsocks $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lsocks\" to \$LIBS"; fi
14192 echo "$ac_t""no" 1>&6
14196 test -n "$ac_cv_lib_socks_SOCKSinit" && { test "$extra_verbose" = "yes" && cat << \EOF
14197 Defining HAVE_SOCKS
14199 cat >> confdefs.h <<\EOF
14200 #define HAVE_SOCKS 1
14206 if test "$usage_tracking" = "yes"; then
14207 { test "$extra_verbose" = "yes" && cat << \EOF
14208 Defining USAGE_TRACKING
14210 cat >> confdefs.h <<\EOF
14211 #define USAGE_TRACKING 1
14215 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi
14218 if test "$with_modules" != "no"; then
14219 echo "checking for module support" 1>&6
14220 echo "configure:14221: checking for module support" >&5
14222 if test "$with_msw" = "yes"; then
14225 ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'`
14226 echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6
14227 echo "configure:14228: checking for dlfcn.h" >&5
14229 cat > conftest.$ac_ext <<EOF
14230 #line 14231 "configure"
14231 #include "confdefs.h"
14234 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14235 { (eval echo configure:14236: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14236 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14237 if test -z "$ac_err"; then
14239 eval "ac_cv_header_$ac_safe=yes"
14242 echo "configure: failed program was:" >&5
14243 cat conftest.$ac_ext >&5
14245 eval "ac_cv_header_$ac_safe=no"
14248 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14249 echo "$ac_t""yes" 1>&6
14251 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6
14252 echo "configure:14253: checking for dlopen in -lc" >&5
14253 cat > conftest.$ac_ext <<EOF
14254 #line 14255 "configure"
14255 #include "confdefs.h"
14261 if { (eval echo configure:14262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14265 echo "configure: failed program was:" >&5
14266 cat conftest.$ac_ext >&5
14269 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
14270 echo "configure:14271: checking for dlopen in -ldl" >&5
14271 ac_save_LIBS="$LIBS"
14273 cat > conftest.$ac_ext <<EOF
14274 #line 14275 "configure"
14275 #include "confdefs.h"
14281 if { (eval echo configure:14282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14285 echo "configure: failed program was:" >&5
14286 cat conftest.$ac_ext >&5
14288 LIBS="$ac_save_LIBS"
14295 echo "$ac_t""no" 1>&6
14298 if test -n "$have_dl"; then
14299 { test "$extra_verbose" = "yes" && cat << \EOF
14300 Defining HAVE_DLOPEN
14302 cat >> confdefs.h <<\EOF
14303 #define HAVE_DLOPEN 1
14309 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
14310 echo "configure:14311: checking for shl_load in -ldld" >&5
14311 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
14313 xe_check_libs=" -ldld "
14314 cat > conftest.$ac_ext <<EOF
14315 #line 14316 "configure"
14316 #include "confdefs.h"
14317 /* Override any gcc2 internal prototype to avoid an error. */
14318 /* We use char because int might match the return type of a gcc2
14319 builtin and then its argument prototype would still apply. */
14326 if { (eval echo configure:14327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14328 eval "ac_cv_lib_$ac_lib_var=yes"
14330 echo "configure: failed program was:" >&5
14331 cat conftest.$ac_ext >&5
14333 eval "ac_cv_lib_$ac_lib_var=no"
14338 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
14339 echo "$ac_t""yes" 1>&6
14340 libdl=dld have_dl=yes;
14341 { test "$extra_verbose" = "yes" && cat << \EOF
14342 Defining HAVE_SHL_LOAD
14344 cat >> confdefs.h <<\EOF
14345 #define HAVE_SHL_LOAD 1
14350 echo "$ac_t""no" 1>&6
14352 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6
14353 echo "configure:14354: checking for dld_init in -ldld" >&5
14354 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'`
14356 xe_check_libs=" -ldld "
14357 cat > conftest.$ac_ext <<EOF
14358 #line 14359 "configure"
14359 #include "confdefs.h"
14360 /* Override any gcc2 internal prototype to avoid an error. */
14361 /* We use char because int might match the return type of a gcc2
14362 builtin and then its argument prototype would still apply. */
14369 if { (eval echo configure:14370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14371 eval "ac_cv_lib_$ac_lib_var=yes"
14373 echo "configure: failed program was:" >&5
14374 cat conftest.$ac_ext >&5
14376 eval "ac_cv_lib_$ac_lib_var=no"
14381 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
14382 echo "$ac_t""yes" 1>&6
14383 libdl=dld have_dl=yes;
14384 { test "$extra_verbose" = "yes" && cat << \EOF
14385 Defining HAVE_DLD_INIT
14387 cat >> confdefs.h <<\EOF
14388 #define HAVE_DLD_INIT 1
14393 echo "$ac_t""no" 1>&6
14402 if test -n "$have_dl"; then
14409 ld_dynamic_link_flags=
14411 xealias=$internal_configuration
14413 echo "checking how to build dynamic libraries for ${xehost}" 1>&6
14414 echo "configure:14415: checking how to build dynamic libraries for ${xehost}" >&5
14415 # Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts.
14418 *-*-linux*) xehost=`echo $xehost | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
14421 xehost_cpu=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
14422 xehost_vendor=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
14423 xehost_os=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
14425 case "$xehost_os" in
14427 # AIX sometimes has problems with the GCC collect2 program. For some
14428 # reason, if we set the COLLECT_NAMES environment variable, the problems
14429 # vanish in a puff of smoke.
14430 if test "${COLLECT_NAMES+set}" != set; then
14432 export COLLECT_NAMES
14437 # Now see if the compiler is really GCC.
14438 if test "$GCC" = "yes"; then
14441 echo $ac_n "checking checking whether we are using GNU C""... $ac_c" 1>&6
14442 echo "configure:14443: checking checking whether we are using GNU C" >&5
14443 cat > conftest.$ac_ext <<EOF
14444 #line 14445 "configure"
14445 #include "confdefs.h"
14452 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14453 egrep "yes" >/dev/null 2>&1; then
14462 echo "$ac_t""${XEGCC}" 1>&6
14465 echo $ac_n "checking how to produce PIC code""... $ac_c" 1>&6
14466 echo "configure:14467: checking how to produce PIC code" >&5
14469 can_build_shared=yes
14470 if test "$XEGCC" = yes; then
14473 case "$xehost_os" in
14474 aix[3-9]* | irix[5-9]* | osf[3-9])
14475 # PIC is the default for these OSes.
14479 # We can build DLLs from non-PIC.
14482 # FIXME: we need at least 68020 code to build shared libraries, but
14483 # adding the `-m68020' flag to GCC prevents building anything better,
14485 dll_cflags='-m68020 -resident32 -malways-restore-a4'
14487 *cygwin* | *mingw* )
14488 # PIC is the default
14495 # PORTME Check for PIC flags for the system compiler.
14496 case "$xehost_os" in
14497 hpux9* | hpux1[0-9]*)
14498 # Is there a better link_static_flag that works with the bundled CC?
14505 # PIC (with -KPIC) is the default.
14509 # We can build DLLs from non-PIC.
14513 # All OSF/1 code is PIC.
14518 # All AIX code is PIC.
14523 dll_cflags='-belf -Kpic'
14557 can_build_shared=no
14562 if test -n "$dll_cflags"; then
14563 echo "$ac_t""${dll_cflags}" 1>&6
14565 # Check to make sure the dll_cflags actually works.
14566 echo $ac_n "checking if PIC flag ${dll_cflags} really works""... $ac_c" 1>&6
14567 echo "configure:14568: checking if PIC flag ${dll_cflags} really works" >&5
14568 save_CFLAGS="$CFLAGS"
14569 CFLAGS="$CFLAGS $dll_cflags -DPIC"
14570 cat > conftest.$ac_ext <<EOF
14571 #line 14572 "configure"
14572 #include "confdefs.h"
14578 if { (eval echo configure:14579: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14581 # On HP-UX, the stripped-down bundled CC doesn't accept +Z, but also
14582 # reports no error. So, we need to grep stderr for (Bundled).
14583 if grep '(Bundled)' config.log >/dev/null; then
14584 echo "$ac_t""no" 1>&6
14585 can_build_shared=no
14588 echo "$ac_t""yes" 1>&6
14591 echo "configure: failed program was:" >&5
14592 cat conftest.$ac_ext >&5
14594 echo "$ac_t""no" 1>&6
14595 can_build_shared=no
14599 CFLAGS="$save_CFLAGS"
14601 echo "$ac_t""none" 1>&6
14604 if test "$can_build_shared" = "yes"; then
14608 echo $ac_n "checking if C compiler can produce shared libraries""... $ac_c" 1>&6
14609 echo "configure:14610: checking if C compiler can produce shared libraries" >&5
14610 if test "$XEGCC" = yes; then
14613 else # Not using GCC
14614 case "$xehost_os" in
14616 xldf="-bE:ELLSONAME.exp -H512 -T512 -bhalt:4 -bM:SRE -bnoentry -lc"
14617 xcldf="${wl}-bE:ELLSONAME.exp ${wl}-H512 ${wl}-T512 ${wl}-bhalt:4 ${wl}-bM:SRE ${wl}-bnoentry ${wl}-lc"
14620 freebsd2* | netbsd* | openbsd*)
14622 xcldf="${wl}-Bshareable"
14631 xcldf="${wl}-b ${wl}+s"
14634 irix[5-9]* | osf[3-9]*)
14635 xcldf="${wl}-shared"
14639 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7* | uts4*)
14645 xcldf="${wl}-assert ${wl}pure-text ${wl}-Bstatic"
14646 xldf="-assert pure-text -Bstatic"
14649 fi # End if if we are using gcc
14651 if test -n "$xcldf"; then
14652 save_LDFLAGS=$LDFLAGS
14654 save_xe_libs=$xe_libs
14655 LDFLAGS="$xcldf $LDFLAGS"
14658 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
14659 cat > conftest.$ac_ext <<EOF
14660 #line 14661 "configure"
14661 #include "confdefs.h"
14667 if { (eval echo configure:14668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14671 echo "configure: failed program was:" >&5
14672 cat conftest.$ac_ext >&5
14677 LDFLAGS=$save_LDFLAGS
14679 xe_libs=$save_xe_libs
14680 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
14684 echo "$ac_t""${cc_produces_so}" 1>&6
14687 if test -z "$LTLD"; then
14689 if test "$XEGCC" = yes; then
14690 # Check if gcc -print-prog-name=ld gives a path.
14691 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
14692 echo "configure:14693: checking for ld used by GCC" >&5
14693 ac_prog=`($CC -print-prog-name=ld) 2>&5`
14695 # Accept absolute paths.
14697 if test -z "$LTLD"; then
14698 # case "$ac_prog" in
14699 # *gcc-lib*) LTLD="$CC"
14708 # If it fails, then pretend we aren't using GCC.
14712 # If it is relative, then search for the first ld in PATH.
14713 with_gnu_ld=unknown
14717 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
14718 echo "configure:14719: checking for GNU ld" >&5
14721 if test -z "$LTLD"; then
14722 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
14723 for ac_dir in $PATH; do
14724 test -z "$ac_dir" && ac_dir=.
14725 if test -f "$ac_dir/$ac_prog"; then
14726 LTLD="$ac_dir/$ac_prog"
14727 # Check to see if the program is GNU ld. I'd rather use --version,
14728 # but apparently some GNU ld's only accept -v.
14729 # Break only if it was the GNU/non-GNU ld that we prefer.
14730 if "$LTLD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
14740 if test -n "$LTLD"; then
14741 echo "$ac_t""${LTLD}" 1>&6
14743 echo "$ac_t""no" 1>&6
14746 if test -z "$LTLD" -a "$cc_produces_so" = no; then
14747 { echo "configure: error: no acceptable linker found in \$PATH" 1>&2; exit 1; }
14752 ld_dynamic_link_flags=
14754 # Check to see if it really is or isn't GNU ld.
14755 echo $ac_n "checking if the linker is GNU ld""... $ac_c" 1>&6
14756 echo "configure:14757: checking if the linker is GNU ld" >&5
14757 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
14758 if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
14763 echo "$ac_t""${xe_gnu_ld}" 1>&6
14765 case "$xehost_os" in
14766 amigaos* | sunos4*)
14767 # On these operating systems, we should treat GNU ld like the system ld.
14768 gnu_ld_acts_native=yes
14771 gnu_ld_acts_native=no
14775 if test "$cc_produces_so" = "yes"; then
14778 can_build_shared=yes
14781 # OK - only NOW do we futz about with ld.
14782 # See if the linker supports building shared libraries.
14783 echo $ac_n "checking whether the linker supports shared libraries""... $ac_c" 1>&6
14784 echo "configure:14785: checking whether the linker supports shared libraries" >&5
14786 dll_ldflags=$LDFLAGS
14788 can_build_shared=yes
14789 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then
14790 # See if GNU ld supports shared libraries.
14791 if $LTLD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
14793 dll_ldflags="-shared"
14799 # PORTME fill in a description of your system's linker (not GNU ld)
14800 case "$xehost_os" in
14810 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14811 # support. Future versions do this automatically, but an explicit c++rt0.o
14812 # doesn't break anything, and helps significantly (at the cost of a little
14817 dll_post="/usr/lib/c++rt0.o"
14820 # Unfortunately, older versions of FreeBSD 2 don't have this feature.
14823 dll_ldflags="-Bshareable"
14826 # FreeBSD 3, at last, uses gcc -shared to do shared libraries.
14828 dll_ldflags="-shared"
14842 # Tested with NetBSD 1.2 ld
14857 # For both SCO and Solaris we MAY want to have LDFLAGS include -z text
14858 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7*)
14861 *gcc*) dll_ldflags="-shared"
14864 *) dll_ldflags="-G"
14870 if test "$XEGCC" = yes; then
14890 can_build_shared=no
14894 echo "$ac_t""${ld_shlibs}" 1>&6
14895 if test "$ld_shlibs" = "no"; then
14896 can_build_shared=no
14898 fi # End of if cc_produces_so = no
14901 if test "$xe_gnu_ld" = yes; then
14902 if test "$ld_shlibs" = yes; then
14903 ld_dynamic_link_flags="${wl}-export-dynamic"
14907 if test -z "$ld_dynamic_link_flags"; then
14908 case "$xehost_os" in
14910 ld_dynamic_link_flags=
14914 ld_dynamic_link_flags=
14918 ld_dynamic_link_flags=
14922 ld_dynamic_link_flags=
14926 ld_dynamic_link_flags="${wl}-E"
14930 ld_dynamic_link_flags=
14934 ld_dynamic_link_flags=
14938 ld_dynamic_link_flags=
14942 ld_dynamic_link_flags=
14945 solaris2* | solaris7*)
14946 ld_dynamic_link_flags=
14949 sco3.2v5* | unixware* | sysv5* | sysv4*)
14950 ld_dynamic_link_flags="${wl}-Bexport"
14954 ld_dynamic_link_flags=
14958 ld_dynamic_link_flags=
14962 ld_dynamic_link_flags=
14966 fi # End of if -z ld_dynamic_link_flags
14967 fi # End of if test "$can_build_shared" = "yes"
14978 if test "$can_build_shared" = "yes"; then
14979 { test "$extra_verbose" = "yes" && cat << \EOF
14980 Defining HAVE_SHLIB
14982 cat >> confdefs.h <<\EOF
14983 #define HAVE_SHLIB 1
14987 extra_objs="$extra_objs sysdll.o emodules.o" && if test "$extra_verbose" = "yes"; then
14988 echo " xemacs will be linked with \"sysdll.o emodules.o\""
14990 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
14991 test -n "$libdl" && LIBS="-l${libdl} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${libdl}\" to \$LIBS"; fi
14992 for ac_func in dlerror _dlerror
14994 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14995 echo "configure:14996: checking for $ac_func" >&5
14997 cat > conftest.$ac_ext <<EOF
14998 #line 14999 "configure"
14999 #include "confdefs.h"
15000 /* System header to define __stub macros and hopefully few prototypes,
15001 which can conflict with char $ac_func(); below. */
15002 #include <assert.h>
15003 /* Override any gcc2 internal prototype to avoid an error. */
15004 /* We use char because int might match the return type of a gcc2
15005 builtin and then its argument prototype would still apply. */
15010 /* The GNU C library defines this for functions which it implements
15011 to always fail with ENOSYS. Some functions are actually named
15012 something starting with __ and the normal name is an alias. */
15013 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15021 if { (eval echo configure:15022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15023 eval "ac_cv_func_$ac_func=yes"
15025 echo "configure: failed program was:" >&5
15026 cat conftest.$ac_ext >&5
15028 eval "ac_cv_func_$ac_func=no"
15032 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15033 echo "$ac_t""yes" 1>&6
15034 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15035 { test "$extra_verbose" = "yes" && cat << EOF
15036 Defining $ac_tr_func
15038 cat >> confdefs.h <<EOF
15039 #define $ac_tr_func 1
15044 echo "$ac_t""no" 1>&6
15050 if test "$with_modules" = "yes"; then
15051 { echo "Error:" "Required module support cannot be provided." >&2; exit 1; }
15053 echo "configure: warning: "Module support cannot be provided."" 1>&2
15059 cat > conftest.$ac_ext <<EOF
15060 #line 15061 "configure"
15061 #include "confdefs.h"
15062 int main(int c,char *v[]){return 0;}
15064 if { (eval echo configure:15065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
15069 echo "configure: failed program was:" >&5
15070 cat conftest.$ac_ext >&5
15074 echo "*** PANIC *** The C compiler can no longer build working executables."
15075 echo "*** PANIC *** Please examine the tail of config.log for runtime errors."
15076 echo "*** PANIC *** The most likely reason for this problem is that configure"
15077 echo "*** PANIC *** links with shared libraries, but those libraries cannot be"
15078 echo "*** PANIC *** found at run time."
15079 echo "*** PANIC ***"
15080 echo "*** PANIC *** On a Linux system, edit /etc/ld.so.conf and re-run ldconfig."
15081 echo "*** PANIC *** On other systems, try telling configure where to find the"
15082 echo "*** PANIC *** shared libraries using the --site-runtime-libraries option"
15083 echo "*** PANIC ***"
15084 echo "*** PANIC *** Another way to shoot yourself in the foot is to specify"
15085 echo "*** PANIC *** --with-FEATURE when FEATURE is not actually installed"
15086 echo "*** PANIC *** on your system. Don't do that."
15091 if test "$win32_processes" = "yes"; then
15092 extra_objs="$extra_objs process-nt.o" && if test "$extra_verbose" = "yes"; then
15093 echo " xemacs will be linked with \"process-nt.o\""
15096 { test "$extra_verbose" = "yes" && cat << \EOF
15097 Defining HAVE_UNIX_PROCESSES
15099 cat >> confdefs.h <<\EOF
15100 #define HAVE_UNIX_PROCESSES 1
15104 extra_objs="$extra_objs process-unix.o" && if test "$extra_verbose" = "yes"; then
15105 echo " xemacs will be linked with \"process-unix.o\""
15112 for W in $CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15117 for W in $extra_objs; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15122 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
15123 c_switch_general="$T"
15127 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
15128 c_switch_window_system="$T"
15132 for W in $c_switch_general $c_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15137 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
15138 ld_switch_general="$T"
15142 for W in $ld_switch_x_site; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15143 ld_switch_window_system="$T"
15147 for W in $ld_switch_general $ld_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15152 for W in $LIBS $libs_machine $libs_system $libs_standard; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15153 ld_libs_general="$T"
15157 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
15158 ld_libs_window_system="$T"
15162 for W in $ld_libs_window_system $ld_libs_general; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15167 MAKE_SUBDIR="$MAKE_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$MAKE_SUBDIR"; fi
15168 internal_makefile_list="Makefile.in"
15169 SUBDIR_MAKEFILES=''
15170 test -d lock || mkdir lock
15171 for dir in $MAKE_SUBDIR; do
15172 case "$dir" in */* ) ( for d in `echo $dir | sed 's:/: :g'` ; do
15173 test -d "$d" || mkdir "$d"; cd "$d"
15175 * ) test -d "$dir" || mkdir "$dir" ;;
15179 for W in $SUBDIR_MAKEFILES $dir/Makefile $dir/GNUmakefile; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15180 SUBDIR_MAKEFILES="$T"
15184 for W in $internal_makefile_list $dir/Makefile.in; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15185 internal_makefile_list="$T"
15192 for dir in src/s src/m; do
15193 if test ! -d "$dir" ; then
15194 echo Making symbolic link to "$srcdir/$dir"
15195 ${LN_S} "$srcdir/$dir" "$dir"
15199 if test "$extra_verbose" = "yes"; then
15201 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
15206 if test -f "$srcdir/src/.gdbinit" -a ! -f "src/.gdbinit"; then
15207 test "$extra_verbose" = "yes" && echo "creating src/.gdbinit"
15208 echo "source $srcdir/src/.gdbinit" > "src/.gdbinit"
15211 if test -f "$srcdir/src/.dbxrc" -a ! -f "src/.dbxrc"; then
15212 test "$extra_verbose" = "yes" && echo "creating src/.dbxrc"
15213 echo ". $srcdir/src/.dbxrc" > "src/.dbxrc"
15216 if test -f "$srcdir/TAGS" -a ! -f "TAGS"; then
15217 test "$extra_verbose" = "yes" && echo "creating TAGS"
15219 $srcdir/TAGS,include" > "TAGS"
15222 if test "$__SUNPRO_C" = "yes"; then
15223 test "$extra_verbose" = "yes" && echo "creating .sbinit"
15224 ( echo "# For use with Sun WorkShop's Source browser."
15225 echo "# See sbquery(1) and sbinit(4) for more information"
15226 for dir in $MAKE_SUBDIR; do echo "import $dir"; done
15254 *\$* ) eval "PREFIX=$PREFIX" ;;
15262 EXEC_PREFIX=$exec_prefix
15264 case "$EXEC_PREFIX" in
15265 *\$* ) eval "EXEC_PREFIX=$EXEC_PREFIX" ;;
15276 *\$* ) eval "INFODIR=$INFODIR" ;;
15286 case "$INFOPATH" in
15287 *\$* ) eval "INFOPATH=$INFOPATH" ;;
15295 PACKAGE_PATH=$package_path
15297 case "$PACKAGE_PATH" in
15298 *\$* ) eval "PACKAGE_PATH=$PACKAGE_PATH" ;;
15309 *\$* ) eval "LISPDIR=$LISPDIR" ;;
15317 MODULEDIR=$moduledir
15319 case "$MODULEDIR" in
15320 *\$* ) eval "MODULEDIR=$MODULEDIR" ;;
15328 SITELISPDIR=$sitelispdir
15330 case "$SITELISPDIR" in
15331 *\$* ) eval "SITELISPDIR=$SITELISPDIR" ;;
15339 SITEMODULEDIR=$sitemoduledir
15341 case "$SITEMODULEDIR" in
15342 *\$* ) eval "SITEMODULEDIR=$SITEMODULEDIR" ;;
15353 *\$* ) eval "ETCDIR=$ETCDIR" ;;
15364 *\$* ) eval "DOCDIR=$DOCDIR" ;;
15372 ARCHLIBDIR=$archlibdir
15374 case "$ARCHLIBDIR" in
15375 *\$* ) eval "ARCHLIBDIR=$ARCHLIBDIR" ;;
15399 RECURSIVE_MAKE="\$(MAKE) \$(MFLAGS) CC='\$(CC)' CFLAGS='\$(CFLAGS)' LDFLAGS='\$(LDFLAGS)' CPPFLAGS='\$(CPPFLAGS)'"
15407 : ${XEMACS_CC:=$CC}
15410 if test "$with_prefix" = "yes"; then
15411 { test "$extra_verbose" = "yes" && cat << \EOF
15412 Defining PREFIX_USER_DEFINED
15414 cat >> confdefs.h <<\EOF
15415 #define PREFIX_USER_DEFINED 1
15421 if test "$with_site_lisp" = "no"; then
15422 { test "$extra_verbose" = "yes" && cat << \EOF
15423 Defining INHIBIT_SITE_LISP
15425 cat >> confdefs.h <<\EOF
15426 #define INHIBIT_SITE_LISP 1
15431 if test "$with_site_modules" = "no"; then
15432 { test "$extra_verbose" = "yes" && cat << \EOF
15433 Defining INHIBIT_SITE_MODULES
15435 cat >> confdefs.h <<\EOF
15436 #define INHIBIT_SITE_MODULES 1
15444 for W in $ac_configure_args; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15445 ac_configure_args="$T"
15447 { test "$extra_verbose" = "yes" && cat << EOF
15448 Defining EMACS_CONFIGURATION = "$configuration"
15450 cat >> confdefs.h <<EOF
15451 #define EMACS_CONFIGURATION "$configuration"
15455 { test "$extra_verbose" = "yes" && cat << EOF
15456 Defining EMACS_CONFIG_OPTIONS = "$ac_configure_args"
15458 cat >> confdefs.h <<EOF
15459 #define EMACS_CONFIG_OPTIONS "$ac_configure_args"
15466 { test "$extra_verbose" = "yes" && cat << EOF
15467 Defining LD_SWITCH_X_SITE = $null_string
15469 cat >> confdefs.h <<EOF
15470 #define LD_SWITCH_X_SITE $null_string
15474 { test "$extra_verbose" = "yes" && cat << EOF
15475 Defining LD_SWITCH_X_SITE_AUX = $null_string
15477 cat >> confdefs.h <<EOF
15478 #define LD_SWITCH_X_SITE_AUX $null_string
15482 { test "$extra_verbose" = "yes" && cat << EOF
15483 Defining C_SWITCH_X_SITE = $null_string
15485 cat >> confdefs.h <<EOF
15486 #define C_SWITCH_X_SITE $null_string
15490 { test "$extra_verbose" = "yes" && cat << EOF
15491 Defining LD_SWITCH_SITE = $null_string
15493 cat >> confdefs.h <<EOF
15494 #define LD_SWITCH_SITE $null_string
15498 { test "$extra_verbose" = "yes" && cat << EOF
15499 Defining C_SWITCH_SITE = $null_string
15501 cat >> confdefs.h <<EOF
15502 #define C_SWITCH_SITE $null_string
15508 if test "$GNU_MALLOC" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
15509 Defining GNU_MALLOC
15511 cat >> confdefs.h <<\EOF
15512 #define GNU_MALLOC 1
15516 elif test "$with_system_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
15517 Defining USE_SYSTEM_MALLOC
15519 cat >> confdefs.h <<\EOF
15520 #define USE_SYSTEM_MALLOC 1
15524 elif test "$with_debug_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
15525 Defining USE_DEBUG_MALLOC
15527 cat >> confdefs.h <<\EOF
15528 #define USE_DEBUG_MALLOC 1
15532 { test "$extra_verbose" = "yes" && cat << \EOF
15533 Defining USE_SYSTEM_MALLOC
15535 cat >> confdefs.h <<\EOF
15536 #define USE_SYSTEM_MALLOC 1
15541 test "$with_i18n3" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15544 cat >> confdefs.h <<\EOF
15549 test "$GCC" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15552 cat >> confdefs.h <<\EOF
15557 test "$external_widget" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15558 Defining EXTERNAL_WIDGET
15560 cat >> confdefs.h <<\EOF
15561 #define EXTERNAL_WIDGET 1
15565 test "$quick_build" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15566 Defining QUICK_BUILD
15568 cat >> confdefs.h <<\EOF
15569 #define QUICK_BUILD 1
15573 test "$with_purify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15576 cat >> confdefs.h <<\EOF
15581 test "$with_quantify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15584 cat >> confdefs.h <<\EOF
15589 test "$with_pop" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15590 Defining MAIL_USE_POP
15592 cat >> confdefs.h <<\EOF
15593 #define MAIL_USE_POP 1
15597 test "$with_kerberos" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15600 cat >> confdefs.h <<\EOF
15605 test "$with_hesiod" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15608 cat >> confdefs.h <<\EOF
15613 test "$use_union_type" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15614 Defining USE_UNION_TYPE
15616 cat >> confdefs.h <<\EOF
15617 #define USE_UNION_TYPE 1
15621 test "$pdump" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15624 cat >> confdefs.h <<\EOF
15629 test "$with_ipv6_cname" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15630 Defining IPV6_CANONICALIZE
15632 cat >> confdefs.h <<\EOF
15633 #define IPV6_CANONICALIZE 1
15640 if test -f /etc/osversion; then echo "osversion: `cat /etc/osversion`"
15642 echo "uname -a: `uname -a`"
15645 echo "$0 $quoted_arguments"
15648 if test ! -z ${emacs_beta_version} ; then
15649 if test -z "${emacs_is_beta}" ; then
15650 xemacs_betaname=".${emacs_beta_version}"
15652 xemacs_betaname="-b${emacs_beta_version}"
15661 XEmacs ${emacs_major_version}.${emacs_minor_version}${xemacs_betaname} \"$xemacs_codename\" configured for \`$canonical'.
15664 Compilation / Installation:"
15665 echo " Source code location: $srcdir"
15666 echo " Installation prefix: $prefix"
15667 if test -n "$site_includes"; then
15668 echo " Additional header files: $site_includes"
15670 if test -n "$site_libraries"; then
15671 echo " Additional libraries: $site_libraries"
15673 if test -n "$site_prefixes"; then
15674 echo " Additional prefixes: $site_prefixes"
15676 if test -n "$runpath"; then
15677 echo " Runtime library search path: $runpath"
15680 if test -n "$opsysfile"
15681 then echo " Operating system description file: \`$opsysfile'"
15682 else echo " Not using any operating system description file"
15684 if test -n "$machfile"
15685 then echo " Machine description file: \`$machfile'"
15686 else echo " Not using any machine description file"
15689 echo " Compiler: $CC $CFLAGS"
15690 echo " Relocating allocator for buffers: $rel_alloc"
15691 echo " GNU version of malloc: ${GNU_MALLOC}${GNU_MALLOC_reason}"
15692 case "$ld_switch_site" in
15693 *nocombreloc*) echo " Linking with \`-z nocombreloc'.
15694 - Consider configuring with --pdump." ;;
15699 if test "$with_msw" = "yes"; then
15700 echo " Compiling in support for the Microsoft window system."
15702 if test "$with_x11" = "yes"; then
15703 echo " Compiling in support for the X window system:"
15704 echo " - X Windows headers location: $x_includes"
15705 echo " - X Windows libraries location: $x_libraries"
15706 if test "$with_xauth" != yes; then
15707 echo " - Xau (X authority) not available."
15709 if test "$with_xmu" != yes; then
15710 echo " - Xmu library not available; substituting equivalent routines."
15712 if test "$with_wmcommand" != no; then
15713 echo " - Handling WM_COMMAND properly."
15716 if test "$need_athena" = "yes"; then
15717 echo " Compiling in support for the Athena widget set:"
15718 echo " - Athena headers location: $athena_h_path"
15719 echo " - Athena library to link: $athena_lib"
15721 case "$with_menubars" in
15722 gtk ) echo " Using GTK menubars." ;;
15723 lucid ) echo " Using Lucid menubars." ;;
15724 motif ) echo " Using Motif menubars."
15725 echo " *WARNING* The Motif menubar implementation is currently buggy."
15726 echo " We recommend using the Lucid menubar instead."
15727 echo " Re-run configure with --with-menubars='lucid'." ;;
15728 msw ) echo " Using MS-Windows menubars." ;;
15730 case "$with_scrollbars" in
15731 gtk ) echo " Using GTK scrollbars." ;;
15732 lucid ) echo " Using Lucid scrollbars." ;;
15733 motif ) echo " Using Motif scrollbars." ;;
15734 athena ) echo " Using Athena scrollbars." ;;
15735 msw ) echo " Using MS-Windows scrollbars." ;;
15737 case "$with_dialogs" in
15738 gtk ) echo " Using GTK dialog boxes." ;;
15739 motif ) echo " Using Motif dialog boxes."
15740 if test "$unexec" = "unexaix.o"; then if test "`uname -v`" = 4 -a "`uname -r`" -ge 3; then
15741 echo " *WARNING* The Motif dialog boxes cause problems on AIX 4.3 and higher."
15742 echo " We recommend using the Athena dialog boxes instead."
15743 echo " Install libXaw and re-run configure with --with-dialogs='athena'."
15744 echo " Read the PROBLEMS file for more information."
15746 athena ) echo " Using Athena dialog boxes." ;;
15747 msw ) echo " Using MS-Windows dialog boxes." ;;
15749 case "$with_widgets" in
15750 gtk ) echo " Using GTK native widgets." ;;
15751 motif ) echo " Using Motif native widgets." ;;
15752 athena ) echo " Using Athena native widgets." ;;
15753 msw ) echo " Using MS-Windows native widgets." ;;
15755 if test "$with_dragndrop" = yes; then
15756 echo " Compiling in support for Drag'n'Drop (EXPERIMENTAL)."
15757 echo " - Drag'n'Drop prototype: $dragndrop_proto."
15762 test "$with_ncurses" = yes && echo " Compiling in support for ncurses."
15763 test "$with_gpm" = yes && echo " Compiling in support for GPM (General Purpose Mouse)."
15767 test "$with_gif" = yes && echo " Compiling in support for GIF images (builtin)."
15768 if test "$with_xpm" = yes; then
15769 echo " Compiling in support for XPM images."
15770 elif test "$with_x11" = yes; then
15771 echo " WARNING: -----------------------------------------------------------"
15772 echo " WARNING: Compiling without XPM image support."
15773 if test "$xpm_problem" != ""; then
15774 echo " Reason: $xpm_problem"
15776 echo " WARNING: You should strongly consider installing XPM."
15777 echo " WARNING: Otherwise toolbars and other graphics will look suboptimal."
15778 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
15779 echo " WARNING: -----------------------------------------------------------"
15781 if test "$with_png" = yes; then
15782 echo " Compiling in support for PNG images."
15783 elif test "$window_system" != "none"; then
15784 echo " WARNING: -----------------------------------------------------------"
15785 echo " WARNING: Compiling without PNG image support."
15786 if test "$png_problem" != ""; then
15787 echo " Reason: $png_problem"
15789 echo " WARNING: You should strongly consider installing the PNG libraries."
15790 echo " WARNING: Otherwise certain images and glyphs may not display."
15791 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
15792 echo " WARNING: -----------------------------------------------------------"
15794 test "$with_jpeg" = yes && echo " Compiling in support for JPEG images."
15795 test "$with_tiff" = yes && echo " Compiling in support for TIFF images."
15796 test "$with_xface" = yes && echo " Compiling in support for X-Face message headers."
15800 test "$with_native_sound" = yes && echo " Compiling in support for sound (native)."
15801 test "$with_nas_sound" = yes && echo " Compiling in support for NAS (network audio system)."
15802 test "$old_nas" = yes && echo " - NAS library lacks error trapping; will play synchronously."
15803 test "$with_esd_sound" = yes && echo " Compiling in support for ESD (Enlightened Sound Daemon)."
15807 test "$with_database_berkdb" = yes && echo " Compiling in support for Berkeley database."
15808 test "$with_database_dbm" = yes && echo " Compiling in support for DBM."
15809 test "$with_database_gdbm" = yes && echo " Compiling in support for GNU DBM."
15810 test "$with_ldap" = yes && echo " Compiling in support for LDAP."
15811 if test "$with_postgresql" = yes; then
15812 echo " Compiling in support for PostgreSQL."
15813 echo " - Using PostgreSQL header file: $libpq_fe_h_file"
15814 test "$with_postgresqlv7" = yes && echo " - Using PostgreSQL V7 bindings."
15818 Internationalization:"
15819 test "$with_mule" = yes && echo " Compiling in support for Mule (multi-lingual Emacs)."
15820 test "$with_file_coding" = yes && echo " Compiling in support for file coding."
15821 test "$with_xim" != no && echo " Compiling in support for XIM (X11R5+ I18N input method)."
15822 test "$with_xim" = motif && echo " - Using Motif to provide XIM support."
15823 test "$with_xim" = xlib && echo " - Using raw Xlib to provide XIM support."
15824 test "$with_xfs" = yes && echo " - Using XFontSet to provide bilingual menubar."
15825 test "$with_canna" = yes && echo " Compiling in support for Canna on Mule."
15826 if test "$with_wnn" = yes; then
15827 echo " Compiling in support for the WNN input method on Mule."
15828 test "$with_wnn6" = yes && echo " - Using WNN version 6."
15830 test "$with_i18n3" = yes && echo " Compiling in support for I18N level 3 (doesn't currently work)."
15834 test "$with_pop" = yes && echo " Compiling in support for POP mail retrieval."
15835 test "$with_kerberos" = yes && echo " Compiling in support for Kerberos POP authentication."
15836 test "$with_hesiod" = yes && echo " Compiling in support for Hesiod POP server access."
15837 test -n "$mail_locking" && echo " Compiling in support for \"$mail_locking\" mail spool file locking method."
15841 test "$with_ipv6_cname" = no && echo " Inhibiting IPv6 canonicalization at startup."
15842 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk."
15843 test "$with_workshop" = yes && echo " Compiling in support for Sun WorkShop."
15844 test "$with_socks" = yes && echo " Compiling in support for SOCKS."
15845 test "$with_dnet" = yes && echo " Compiling in support for DNET."
15846 test "$with_modules" = "yes" && echo " Compiling in support for dynamic shared object modules."
15847 test "$use_union_type" = yes && echo " Using the union type for Lisp_Objects."
15848 test "$pdump" = yes && echo " Using the new portable dumper."
15849 test "$debug" = yes && echo " Compiling in support for extra debugging code."
15850 test "$usage_tracking" = yes && echo " Compiling in support for active usage tracking (Sun internal)."
15851 if test "$error_check_extents $error_check_typecheck $error_check_bufpos $error_check_gc $error_check_malloc $error_check_glyphs" \
15852 != "no no no no no no"; then
15853 echo " WARNING: ---------------------------------------------------------"
15854 echo " WARNING: Compiling in support for runtime error checking."
15855 echo " WARNING: XEmacs will run noticeably more slowly as a result."
15856 echo " WARNING: Error checking is on by default for XEmacs beta releases."
15857 echo " WARNING: ---------------------------------------------------------"
15860 ) | tee -a Installation
15864 # Remove any trailing slashes in these variables.
15865 test -n "$prefix" &&
15866 prefix=`echo '' "$prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
15867 test -n "$exec_prefix" &&
15868 exec_prefix=`echo '' "$exec_prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
15871 for file in $internal_makefile_list; do
15872 test "$file" = src/Makefile.in && \
15873 file="src/Makefile.in:src/Makefile.in.in:src/depend"
15874 ac_output_files="$ac_output_files $file" && if test "$extra_verbose" = "yes"; then echo " Appending \"$file\" to \$ac_output_files"; fi
15876 ac_output_files="$ac_output_files src/paths.h lib-src/config.values"
15877 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
15881 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
15883 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15884 # Let make expand exec_prefix.
15885 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15887 # Any assignment to VPATH causes Sun make to only execute
15888 # the first set of double-colon rules, so remove it if not needed.
15889 # If there is a colon in the path, we need to keep it.
15890 if test "x$srcdir" = x.; then
15891 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
15894 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
15896 DEFS=-DHAVE_CONFIG_H
15898 # Without the "./", some shells look in PATH for config.status.
15899 : ${CONFIG_STATUS=./config.status}
15901 echo creating $CONFIG_STATUS
15902 rm -f $CONFIG_STATUS
15903 cat > $CONFIG_STATUS <<EOF
15905 # Generated automatically by configure.
15906 # Run this file to recreate the current configuration.
15907 # This directory was configured as follows,
15908 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15910 # $0 $ac_configure_args
15912 # Compiler output produced by configure, useful for debugging
15913 # configure, is in ./config.log if it exists.
15915 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
15918 case "\$ac_option" in
15919 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15920 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
15921 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
15922 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
15923 echo "$CONFIG_STATUS generated by autoconf version 2.13"
15925 -help | --help | --hel | --he | --h)
15926 echo "\$ac_cs_usage"; exit 0 ;;
15927 *) echo "\$ac_cs_usage"; exit 1 ;;
15931 ac_given_srcdir=$srcdir
15932 ac_given_INSTALL="$INSTALL"
15934 trap 'rm -fr `echo "$ac_output_files src/config.h lwlib/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
15936 cat >> $CONFIG_STATUS <<EOF
15938 # Protect against being on the right side of a sed subst in config.status.
15939 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
15940 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
15944 s%@CFLAGS@%$CFLAGS%g
15945 s%@CPPFLAGS@%$CPPFLAGS%g
15946 s%@CXXFLAGS@%$CXXFLAGS%g
15947 s%@FFLAGS@%$FFLAGS%g
15949 s%@LDFLAGS@%$LDFLAGS%g
15951 s%@exec_prefix@%$exec_prefix%g
15952 s%@prefix@%$prefix%g
15953 s%@program_transform_name@%$program_transform_name%g
15954 s%@bindir@%$bindir%g
15955 s%@sbindir@%$sbindir%g
15956 s%@libexecdir@%$libexecdir%g
15957 s%@datadir@%$datadir%g
15958 s%@sysconfdir@%$sysconfdir%g
15959 s%@sharedstatedir@%$sharedstatedir%g
15960 s%@localstatedir@%$localstatedir%g
15961 s%@libdir@%$libdir%g
15962 s%@includedir@%$includedir%g
15963 s%@oldincludedir@%$oldincludedir%g
15964 s%@infodir@%$infodir%g
15965 s%@mandir@%$mandir%g
15967 s%@blddir@%$blddir%g
15970 s%@start_flags@%$start_flags%g
15971 s%@ld_switch_shared@%$ld_switch_shared%g
15972 s%@start_files@%$start_files%g
15974 s%@lib_gcc@%$lib_gcc%g
15975 s%@RANLIB@%$RANLIB%g
15976 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
15977 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
15978 s%@INSTALL_DATA@%$INSTALL_DATA%g
15980 s%@SET_MAKE@%$SET_MAKE%g
15981 s%@GTK_CONFIG@%$GTK_CONFIG%g
15982 s%@X_CFLAGS@%$X_CFLAGS%g
15983 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
15984 s%@X_LIBS@%$X_LIBS%g
15985 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
15986 s%@install_pp@%$install_pp%g
15987 s%@libs_xauth@%$libs_xauth%g
15988 s%@dnd_objs@%$dnd_objs%g
15989 s%@lwlib_objs@%$lwlib_objs%g
15990 s%@ALLOCA@%$ALLOCA%g
15991 s%@have_esd_config@%$have_esd_config%g
15992 s%@dll_ld@%$dll_ld%g
15993 s%@dll_cflags@%$dll_cflags%g
15994 s%@dll_ldflags@%$dll_ldflags%g
15995 s%@dll_post@%$dll_post%g
15996 s%@dll_ldo@%$dll_ldo%g
15997 s%@ld_dynamic_link_flags@%$ld_dynamic_link_flags%g
15998 s%@SRC_SUBDIR_DEPS@%$SRC_SUBDIR_DEPS%g
15999 s%@INSTALL_ARCH_DEP_SUBDIR@%$INSTALL_ARCH_DEP_SUBDIR%g
16000 s%@MAKE_SUBDIR@%$MAKE_SUBDIR%g
16001 s%@SUBDIR_MAKEFILES@%$SUBDIR_MAKEFILES%g
16002 s%@PROGNAME@%$PROGNAME%g
16003 s%@version@%$version%g
16004 s%@configuration@%$configuration%g
16005 s%@canonical@%$canonical%g
16006 s%@inststaticdir@%$inststaticdir%g
16007 s%@instvardir@%$instvardir%g
16008 s%@srcdir@%$srcdir%g
16009 s%@pkgdir@%$pkgdir%g
16010 s%@statedir@%$statedir%g
16011 s%@extra_includes@%$extra_includes%g
16012 s%@PREFIX_USER_DEFINED@%$PREFIX_USER_DEFINED%g
16013 s%@PREFIX@%$PREFIX%g
16014 s%@EXEC_PREFIX_USER_DEFINED@%$EXEC_PREFIX_USER_DEFINED%g
16015 s%@EXEC_PREFIX@%$EXEC_PREFIX%g
16016 s%@INFODIR_USER_DEFINED@%$INFODIR_USER_DEFINED%g
16017 s%@INFODIR@%$INFODIR%g
16018 s%@infopath@%$infopath%g
16019 s%@INFOPATH_USER_DEFINED@%$INFOPATH_USER_DEFINED%g
16020 s%@INFOPATH@%$INFOPATH%g
16021 s%@package_path@%$package_path%g
16022 s%@PACKAGE_PATH_USER_DEFINED@%$PACKAGE_PATH_USER_DEFINED%g
16023 s%@PACKAGE_PATH@%$PACKAGE_PATH%g
16024 s%@lispdir@%$lispdir%g
16025 s%@LISPDIR_USER_DEFINED@%$LISPDIR_USER_DEFINED%g
16026 s%@LISPDIR@%$LISPDIR%g
16027 s%@moduledir@%$moduledir%g
16028 s%@MODULEDIR_USER_DEFINED@%$MODULEDIR_USER_DEFINED%g
16029 s%@MODULEDIR@%$MODULEDIR%g
16030 s%@sitelispdir@%$sitelispdir%g
16031 s%@SITELISPDIR_USER_DEFINED@%$SITELISPDIR_USER_DEFINED%g
16032 s%@SITELISPDIR@%$SITELISPDIR%g
16033 s%@sitemoduledir@%$sitemoduledir%g
16034 s%@SITEMODULEDIR_USER_DEFINED@%$SITEMODULEDIR_USER_DEFINED%g
16035 s%@SITEMODULEDIR@%$SITEMODULEDIR%g
16036 s%@etcdir@%$etcdir%g
16037 s%@ETCDIR_USER_DEFINED@%$ETCDIR_USER_DEFINED%g
16038 s%@ETCDIR@%$ETCDIR%g
16039 s%@docdir@%$docdir%g
16040 s%@DOCDIR_USER_DEFINED@%$DOCDIR_USER_DEFINED%g
16041 s%@DOCDIR@%$DOCDIR%g
16042 s%@archlibdir@%$archlibdir%g
16043 s%@ARCHLIBDIR_USER_DEFINED@%$ARCHLIBDIR_USER_DEFINED%g
16044 s%@ARCHLIBDIR@%$ARCHLIBDIR%g
16045 s%@bitmapdir@%$bitmapdir%g
16046 s%@extra_objs@%$extra_objs%g
16047 s%@machfile@%$machfile%g
16048 s%@opsysfile@%$opsysfile%g
16049 s%@c_switch_general@%$c_switch_general%g
16050 s%@c_switch_window_system@%$c_switch_window_system%g
16051 s%@c_switch_all@%$c_switch_all%g
16052 s%@ld_switch_general@%$ld_switch_general%g
16053 s%@ld_switch_window_system@%$ld_switch_window_system%g
16054 s%@ld_switch_all@%$ld_switch_all%g
16055 s%@ld_libs_general@%$ld_libs_general%g
16056 s%@ld_libs_window_system@%$ld_libs_window_system%g
16057 s%@ld_libs_all@%$ld_libs_all%g
16058 s%@RECURSIVE_MAKE@%$RECURSIVE_MAKE%g
16059 s%@native_sound_lib@%$native_sound_lib%g
16060 s%@sound_cflags@%$sound_cflags%g
16061 s%@dynodump_arch@%$dynodump_arch%g
16062 s%@XEMACS_CC@%$XEMACS_CC%g
16063 s%@internal_makefile_list@%$internal_makefile_list%g
16068 cat >> $CONFIG_STATUS <<\EOF
16070 # Split the substitutions into bite-sized pieces for seds with
16071 # small command number limits, like on Digital OSF/1 and HP-UX.
16072 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
16073 ac_file=1 # Number of current file.
16074 ac_beg=1 # First line for current file.
16075 ac_end=$ac_max_sed_cmds # Line after last line for current file.
16078 while $ac_more_lines; do
16079 if test $ac_beg -gt 1; then
16080 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
16082 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
16084 if test ! -s conftest.s$ac_file; then
16085 ac_more_lines=false
16086 rm -f conftest.s$ac_file
16088 if test -z "$ac_sed_cmds"; then
16089 ac_sed_cmds="sed -f conftest.s$ac_file"
16091 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
16093 ac_file=`expr $ac_file + 1`
16095 ac_end=`expr $ac_end + $ac_max_sed_cmds`
16098 if test -z "$ac_sed_cmds"; then
16103 cat >> $CONFIG_STATUS <<EOF
16105 CONFIG_FILES=\${CONFIG_FILES-"$ac_output_files"}
16107 cat >> $CONFIG_STATUS <<\EOF
16108 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
16109 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16111 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16112 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16113 *) ac_file_in="${ac_file}.in" ;;
16116 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
16118 # Remove last slash and all that follows it. Not all systems have dirname.
16119 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16120 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16121 # The file is in a subdirectory.
16122 test ! -d "$ac_dir" && mkdir "$ac_dir"
16123 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
16124 # A "../" for each directory in $ac_dir_suffix.
16125 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
16127 ac_dir_suffix= ac_dots=
16130 case "$ac_given_srcdir" in
16132 if test -z "$ac_dots"; then top_srcdir=.
16133 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
16134 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
16135 *) # Relative path.
16136 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
16137 top_srcdir="$ac_dots$ac_given_srcdir" ;;
16140 case "$ac_given_INSTALL" in
16141 [/$]*) INSTALL="$ac_given_INSTALL" ;;
16142 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
16145 echo creating "$ac_file"
16147 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
16149 *Makefile*) ac_comsub="1i\\
16150 # $configure_input" ;;
16154 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16156 s%@configure_input@%$configure_input%g
16157 s%@srcdir@%$srcdir%g
16158 s%@top_srcdir@%$top_srcdir%g
16159 s%@INSTALL@%$INSTALL%g
16160 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
16164 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16165 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16167 # ac_d sets the value in "#define NAME VALUE" lines.
16168 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16169 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
16172 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
16173 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16174 ac_uB='\([ ]\)%\1#\2define\3'
16177 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16178 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16179 ac_eB='$%\1#\2define\3'
16183 if test "${CONFIG_HEADERS+set}" != set; then
16185 cat >> $CONFIG_STATUS <<EOF
16186 CONFIG_HEADERS="src/config.h lwlib/config.h"
16188 cat >> $CONFIG_STATUS <<\EOF
16190 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
16191 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16193 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16194 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16195 *) ac_file_in="${ac_file}.in" ;;
16198 echo creating $ac_file
16200 rm -f conftest.frag conftest.in conftest.out
16201 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16202 cat $ac_file_inputs > conftest.in
16206 # Transform confdefs.h into a sed script conftest.vals that substitutes
16207 # the proper values into config.h.in to produce config.h. And first:
16208 # Protect against being on the right side of a sed subst in config.status.
16209 # Protect against being in an unquoted here document in config.status.
16210 rm -f conftest.vals
16211 cat > conftest.hdr <<\EOF
16214 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
16218 sed -n -f conftest.hdr confdefs.h > conftest.vals
16221 # This sed command replaces #undef with comments. This is necessary, for
16222 # example, in the case of _POSIX_SOURCE, which is predefined and required
16223 # on some systems where configure will not decide to define it.
16224 cat >> conftest.vals <<\EOF
16225 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
16228 # Break up conftest.vals because some shells have a limit on
16229 # the size of here documents, and old seds have small limits too.
16231 rm -f conftest.tail
16234 ac_lines=`grep -c . conftest.vals`
16235 # grep -c gives empty output for an empty file on some AIX systems.
16236 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
16237 # Write a limited-size here document to conftest.frag.
16238 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
16239 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
16241 sed -f conftest.frag conftest.in > conftest.out
16243 mv conftest.out conftest.in
16244 ' >> $CONFIG_STATUS
16245 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
16246 rm -f conftest.vals
16247 mv conftest.tail conftest.vals
16249 rm -f conftest.vals
16251 cat >> $CONFIG_STATUS <<\EOF
16252 rm -f conftest.frag conftest.h
16253 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
16254 cat conftest.in >> conftest.h
16256 if cmp -s $ac_file conftest.h 2>/dev/null; then
16257 echo "$ac_file is unchanged"
16260 # Remove last slash and all that follows it. Not all systems have dirname.
16261 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16262 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16263 # The file is in a subdirectory.
16264 test ! -d "$ac_dir" && mkdir "$ac_dir"
16267 mv conftest.h $ac_file
16272 cat >> $CONFIG_STATUS <<EOF
16274 top_srcdir="$srcdir"
16275 MAKE_SUBDIR="$MAKE_SUBDIR"
16278 cat >> $CONFIG_STATUS <<\EOF
16279 for dir in . $MAKE_SUBDIR; do
16284 sed -e '/^# Generated/d' \
16285 -e 's%/\*\*/#.*%%' \
16300 echo creating $dir/Makefile
16301 $CPP -I. -I${top_srcdir}/src junk.c \
16302 | sed -e 's/^\#.*//' \
16303 -e 's/^[ ][ ]*$//'\
16311 chmod 444 Makefile.new
16312 mv -f Makefile.new Makefile
16314 echo creating $dir/GNUmakefile
16315 $CPP -I. -I${top_srcdir}/src -DUSE_GNU_MAKE junk.c \
16316 | sed -e 's/^\#.*//' \
16317 -e 's/^[ ][ ]*$//'\
16325 chmod 444 Makefile.new
16326 mv -f Makefile.new GNUmakefile
16332 sed < config.status >> lib-src/config.values \
16333 -e '/{ac_dA}.*{ac_dB}.*{ac_dC}.*{ac_dD}$/!d' \
16334 -e 's/\${ac_dA}\(.*\)\${ac_dB}.*\${ac_dC}\(.*\)\${ac_dD}/\1 \2/' \
16335 -e 's/^\([^ ]*\) $/\1 ""/' \
16341 chmod +x $CONFIG_STATUS
16342 rm -fr confdefs* $ac_clean_files
16343 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1