3 #### Configuration script for XEmacs. Largely divergent from FSF.
4 #### Guess values for system-dependent variables and create Makefiles.
5 #### Generated automatically using autoconf version 2.13
6 #### Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 #### Copyright (C) 1993-1995 Board of Trustees, University of Illinois.
8 #### Copyright (C) 1996, 1997 Sun Microsystems, Inc.
9 #### Copyright (C) 1995, 1996 Ben Wing.
10 #### Copyright (C) 1998, 1999 J. Kean Johnston.
12 ### Don't edit this script!
13 ### This script was automatically generated by the `autoconf' program
14 ### from the file `./configure.in'.
15 ### To rebuild it, execute the command
17 ### in the this directory. You must have autoconf version 2.12 or later.
19 ### This file is part of XEmacs.
21 ### XEmacs is free software; you can redistribute it and/or modify it
22 ### under the terms of the GNU General Public License as published by
23 ### the Free Software Foundation; either version 2, or (at your
24 ### option) any later version.
26 ### XEmacs is distributed in the hope that it will be useful, but
27 ### WITHOUT ANY WARRANTY; without even the implied warranty of
28 ### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
29 ### General Public License for more details.
31 ### You should have received a copy of the GNU General Public License
32 ### along with XEmacs; see the file COPYING. If not, write to the Free
33 ### Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
36 ### For usage, run `./configure --help'
37 ### For more detailed information on building and installing XEmacs,
38 ### read the file `INSTALL'.
40 ### If configure succeeds, it leaves its status in config.status.
41 ### A log of configuration tests can be found in config.log.
42 ### If configure fails after disturbing the status quo,
43 ### config.status is removed.
46 --with-x use the X Window System"
50 if test -n "$ZSH_VERSION"; then
51 setopt NO_BAD_PATTERN NO_BANG_HIST NO_BG_NICE NO_EQUALS NO_FUNCTION_ARGZERO
52 setopt GLOB_SUBST NO_HUP INTERACTIVE_COMMENTS KSH_ARRAYS NO_MULTIOS NO_NOMATCH
53 setopt RM_STAR_SILENT POSIX_BUILTINS SH_FILE_EXPANSION SH_GLOB SH_OPTION_LETTERS
54 setopt SH_WORD_SPLIT BSD_ECHO IGNORE_BRACES
55 if test -n "$CDPATH"; then CDPATH="."; export CDPATH; fi
56 elif test -n "$BASH_VERSION"; then
60 if test -n "$CDPATH"; then CDPATH="."; export CDPATH; fi
71 program_transform_name=s,x,x,
80 bindir='${exec_prefix}/bin'
81 sbindir='${exec_prefix}/sbin'
82 libexecdir='${exec_prefix}/libexec'
83 datadir='${prefix}/share'
84 sysconfdir='${prefix}/etc'
85 sharedstatedir='${prefix}/com'
86 localstatedir='${prefix}/var'
87 libdir='${{exec_prefix}}/lib'
88 includedir='${prefix}/include'
89 oldincludedir='/usr/include'
90 infodir='${prefix}/info'
91 mandir='${prefix}/man'
97 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
99 # File descriptor usage:
102 # 2 errors and warnings
103 # 3 some systems may open it to /dev/tty
104 # 4 used on the Kubota Titan
105 # 6 checking for... messages and results
106 # 5 compiler messages saved in config.log
107 if test "$silent" = yes; then
115 This file contains any messages produced by compilers while
116 running configure, to aid debugging if configure makes a mistake.
119 # Strip out --no-create and --no-recursion so they do not pile up.
120 # Also quote any args containing shell metacharacters.
125 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
126 | --no-cr | --no-c) ;;
127 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
128 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
129 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
130 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
131 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
136 # Only set these to C if already set. These must not be set unconditionally
137 # because not all systems understand e.g. LANG=C (notably SCO).
138 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
139 # Non-C LC_CTYPE values break the ctype check.
140 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
141 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
142 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
143 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
145 # confdefs.h avoids OS command line length limits that DEFS can exceed.
146 rm -rf conftest* confdefs.h
147 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
150 # A filename unique to this package, relative to the directory that
151 # configure is in, which we can look for to find out if srcdir is correct.
152 ac_unique_file=src/lisp.h
154 # Find the source files, if location was not specified.
155 if test -z "$srcdir"; then
156 ac_srcdir_defaulted=yes
157 # Try the directory containing this script, then its parent.
159 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
160 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
162 if test ! -r $srcdir/$ac_unique_file; then
166 ac_srcdir_defaulted=no
168 if test ! -r $srcdir/$ac_unique_file; then
169 if test "$ac_srcdir_defaulted" = yes; then
170 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
172 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
175 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
177 # Prefer explicitly selected file to automatically selected ones.
178 if test -z "$CONFIG_SITE"; then
179 if test "x$prefix" != xNONE; then
180 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
182 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
185 for ac_site_file in $CONFIG_SITE; do
186 if test -r "$ac_site_file"; then
187 echo "loading site script $ac_site_file"
194 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
195 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
196 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
197 ac_cpp='$CPP '"$xe_cppflags"
198 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
199 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
204 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
205 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
206 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
213 ac_n= ac_c='\c' ac_t=
217 progname="`echo $0 | sed 's:^\./\./:\./:'`"
220 MAKE_SUBDIR="$MAKE_SUBDIR lib-src" && if test "$extra_verbose" = "yes"; then echo " Appending \"lib-src\" to \$MAKE_SUBDIR"; fi
221 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR lib-src" && if test "$extra_verbose" = "yes"; then echo " Appending \"lib-src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
224 exec_prefix='${prefix}'
225 bindir='${exec_prefix}/bin'
226 datadir='${prefix}/lib'
227 statedir='${prefix}/lib'
228 libdir='${exec_prefix}/lib'
229 mandir='${prefix}/man/man1'
230 inststaticdir='${PROGNAME}'
231 instvardir='${PROGNAME}-${version}'
232 infodir='${datadir}/${instvardir}/info'
235 lispdir='${datadir}/${instvardir}/lisp'
236 moduledir='${datadir}/${instvardir}/${configuration}/modules'
237 sitelispdir='${datadir}/${inststaticdir}/site-lisp'
238 sitemoduledir='${datadir}/${inststaticdir}/site-modules'
239 pkgdir='${datadir}/${instvardir}/lisp'
241 etcdir='${datadir}/${instvardir}/etc'
242 lockdir='${statedir}/${inststaticdir}/lock'
243 archlibdir='${datadir}/${instvardir}/${configuration}'
244 docdir='${archlibdir}'
247 with_site_modules='yes'
253 cpp='' cppflags='' libs='' ldflags=''
258 with_system_malloc='default'
259 with_dlmalloc='default'
273 quoted_sed_magic=s/"'"/"'"'"'"'"'"'"'"/g
277 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
278 | --no-cr | --no-c) ;;
279 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
280 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
282 quoted_i="`echo '' $i | sed -e 's:^ ::' -e $quoted_sed_magic`"
283 quoted_arguments="$quoted_arguments '$quoted_i'" ;;
287 while test $# != 0; do
290 --no-create|--no-recursion) ;;
294 opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\([^=]*\)=.*$:\1:'`
295 val=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*[^=]*=\(.*\)$:\1:'`
299 opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\(.*\)$:\1:'`
300 val="yes" valomitted=yes
305 opt="`echo '' $opt | sed -e 's:^ ::' | tr - _`"
307 case "${valomitted}-${opt}" in yes-without_* )
308 opt=`echo $opt | sed 's/without/with/'`
309 valomitted="no" val="no" ;;
316 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 The default is to autodetect all sound support."
474 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
475 elif test -n "$new_sdefault" ; then
476 with_native_sound=$new_sdefault
477 with_nas_sound=$new_sdefault
478 with_esd_sound=$new_sdefault
479 new_sdefault= # reset this
487 xa | xaw ) val=xaw ;;
488 3 | 3d | xaw3d ) val=3d ;;
489 ne | nex | next | naxtaw) val=next ;;
490 9 | 95 | xaw95 ) val=95 ;;
491 xp | xpm | xawxpm ) val=xpm ;;
492 * ) (echo "$progname: Usage error:"
493 echo " " "The \`--$optname' option must have one of these values:
494 \`xaw', \`3d', \`next', \`95', or \`xpm'."
495 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
502 y | ye | yes ) val=yes ;;
503 n | no | non | none ) val=no ;;
504 x | xl | xli | xlib ) val=xlib ;;
505 m | mo | mot | moti | motif ) val=motif ;;
506 * ) (echo "$progname: Usage error:"
507 echo " " "The \`--$optname' option must have one of these values:
508 \`motif', \`xlib', \`yes', or \`no'."
509 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
518 file | dot ) val=file ;;
519 locking ) val=locking ;;
520 * ) (echo "$progname: Usage error:"
521 echo " " "The \`--$optname' option must have one of these values:
522 \`lockf', \`flock', \`file', \`locking', or \`mmdf'."
523 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
530 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
532 n | no | non | none ) new_default=no ;;
533 a | al | all ) new_default=yes ;;
535 extents ) error_check_extents=yes ;;
536 noextents ) error_check_extents=no ;;
538 typecheck ) error_check_typecheck=yes ;;
539 notypecheck ) error_check_typecheck=no ;;
541 bufpos ) error_check_bufpos=yes ;;
542 nobufpos ) error_check_bufpos=no ;;
544 gc ) error_check_gc=yes ;;
545 nogc ) error_check_gc=no ;;
547 malloc ) error_check_malloc=yes ;;
548 nomalloc ) error_check_malloc=no ;;
550 byte_code ) error_check_byte_code=yes ;;
551 nobyte_code ) error_check_byte_code=no ;;
553 * ) bogus_error_check=yes ;;
555 if test "$bogus_error_check" -o \
556 \( -n "$new_default" -a -n "$echeck_notfirst" \) ; then
557 if test "$error_check_default" = yes ; then
558 types="\`all' (default), \`none', \`noextents', \`notypecheck', \`nobufpos', \`nogc', \`nomalloc', and \`nobyte-code'."
560 types="\`all', \`none' (default), \`extents', \`typecheck', \`bufpos', \`gc', \`malloc', and \`byte-code'."
562 (echo "$progname: Usage error:"
563 echo " " "Valid types for the \`--$optname' option are:
565 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
566 elif test -n "$new_default" ; then
567 error_check_extents=$new_default
568 error_check_typecheck=$new_default
569 error_check_bufpos=$new_default
570 error_check_gc=$new_default
571 error_check_malloc=$new_default
572 error_check_byte_code=$new_default
573 new_default= # reset this
580 prefix | exec_prefix | bindir | datadir | statedir | libdir | \
581 mandir | infodir | infopath | lispdir | etcdir | lockdir | pkgdir | \
582 archlibdir | docdir | package_path )
583 if test "$valomitted" = "yes"; then
584 if test "$#" = 0; then
585 (echo "$progname: Usage error:"
586 echo " " "The \`--$optname' option requires a value."
587 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
594 exec_prefix ) { test "$extra_verbose" = "yes" && cat << \EOF
595 Defining EXEC_PREFIX_USER_DEFINED
597 cat >> confdefs.h <<\EOF
598 #define EXEC_PREFIX_USER_DEFINED 1
602 lispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
603 Defining LISPDIR_USER_DEFINED
605 cat >> confdefs.h <<\EOF
606 #define LISPDIR_USER_DEFINED 1
610 sitelispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
611 Defining SITELISPDIR_USER_DEFINED
613 cat >> confdefs.h <<\EOF
614 #define SITELISPDIR_USER_DEFINED 1
618 moduledir ) { test "$extra_verbose" = "yes" && cat << \EOF
619 Defining MODULEDIR_USER_DEFINED
621 cat >> confdefs.h <<\EOF
622 #define MODULEDIR_USER_DEFINED 1
626 etcdir ) { test "$extra_verbose" = "yes" && cat << \EOF
627 Defining ETCDIR_USER_DEFINED
629 cat >> confdefs.h <<\EOF
630 #define ETCDIR_USER_DEFINED 1
634 infodir ) { test "$extra_verbose" = "yes" && cat << \EOF
635 Defining INFODIR_USER_DEFINED
637 cat >> confdefs.h <<\EOF
638 #define INFODIR_USER_DEFINED 1
642 infopath ) { test "$extra_verbose" = "yes" && cat << \EOF
643 Defining INFOPATH_USER_DEFINED
645 cat >> confdefs.h <<\EOF
646 #define INFOPATH_USER_DEFINED 1
650 package_path ) { test "$extra_verbose" = "yes" && cat << \EOF
651 Defining PACKAGE_PATH_USER_DEFINED
653 cat >> confdefs.h <<\EOF
654 #define PACKAGE_PATH_USER_DEFINED 1
659 { test "$extra_verbose" = "yes" && cat << \EOF
660 Defining INFODIR_USER_DEFINED
662 cat >> confdefs.h <<\EOF
663 #define INFODIR_USER_DEFINED 1
667 { test "$extra_verbose" = "yes" && cat << \EOF
668 Defining LISPDIR_USER_DEFINED
670 cat >> confdefs.h <<\EOF
671 #define LISPDIR_USER_DEFINED 1
675 { test "$extra_verbose" = "yes" && cat << \EOF
676 Defining MODULEDIR_USER_DEFINED
678 cat >> confdefs.h <<\EOF
679 #define MODULEDIR_USER_DEFINED 1
683 { test "$extra_verbose" = "yes" && cat << \EOF
684 Defining ETCDIR_USER_DEFINED
686 cat >> confdefs.h <<\EOF
687 #define ETCDIR_USER_DEFINED 1
691 statedir | lockdir ) { test "$extra_verbose" = "yes" && cat << \EOF
692 Defining LOCKDIR_USER_DEFINED
694 cat >> confdefs.h <<\EOF
695 #define LOCKDIR_USER_DEFINED 1
699 docdir ) { test "$extra_verbose" = "yes" && cat << \EOF
700 Defining DOCDIR_USER_DEFINED
702 cat >> confdefs.h <<\EOF
703 #define DOCDIR_USER_DEFINED 1
707 exec_prefix | libdir | archlibdir ) { test "$extra_verbose" = "yes" && cat << \EOF
708 Defining ARCHLIBDIR_USER_DEFINED
710 cat >> confdefs.h <<\EOF
711 #define ARCHLIBDIR_USER_DEFINED 1
720 "usage" | "help" ) ${PAGER-more} ${srcdir}/configure.usage; exit 0 ;;
723 "with_scrollbars" | \
727 l | lu | luc | luci | lucid ) val=lucid ;;
728 m | mo | mot | moti | motif ) val=motif ;;
729 a | at | ath | athe | athen | athena ) val=athena ;;
730 n | no | non | none ) val=no ;;
731 * ) (echo "$progname: Usage error:"
732 echo " " "The \`--$optname' option must have one of these values:
733 \`lucid', \`motif', \`athena', or \`no'."
734 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
739 "use_minimal_tagbits" | \
740 "use_indexed_lrecord_implementation" | \
743 echo "configure: warning: Obsolete option \`--$optname' ignored." 1>&2
746 * ) (echo "$progname: Usage error:"
747 echo " " "Unrecognized option: $arg"
748 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
753 *-*-*) configuration="$arg" ;;
755 *) (echo "$progname: Usage error:"
756 echo " " "Unrecognized argument: $arg"
757 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
763 test -n "$cpp" && CPP="$cpp"
764 test -n "$cppflags" && CPPFLAGS="$cppflags"
765 test -n "$libs" && LIBS="$libs"
766 test -n "$ldflags" && LDFLAGS="$ldflags"
768 eval set x "$quoted_arguments"; shift
770 test "$extra_verbose" = "yes" && verbose=yes
772 test -n "$with_x" && with_x11="$with_x"
774 if test "$with_purify" = "yes" -o "$with_quantify" = "yes"; then
775 test "$with_system_malloc" = "default" && with_system_malloc=yes
780 if test "$with_cde $with_tooltalk" = "yes no"; then
781 (echo "$progname: Usage error:"
782 echo " " "--with-cde requires --with-tooltalk"
783 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
784 elif test "$with_tooltalk" = "no" ; then with_cde=no
785 elif test "$with_cde" = "yes"; then with_tooltalk=yes
792 for dir in "`echo $0 | sed 's|//|/|' | sed 's|/[^/]*$||'`" "." ".." ; do
793 if test -f "$dir/src/lisp.h" -a \
794 -f "$dir/lisp/version.el" ; then
799 if test -z "$srcdir" ; then
800 (echo "$progname: Usage error:"
801 echo " " "Neither the current directory nor its parent seem to
802 contain the XEmacs sources. If you do not want to build XEmacs in its
803 source tree, you should run \`$progname' in the directory in which
804 you wish to build XEmacs, using the \`--srcdir' option to say where the
805 sources may be found."
806 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
811 if test ! -f "$srcdir/src/lisp.h" -o \
812 ! -f "$srcdir/lisp/version.el" ; then
813 (echo "$progname: Usage error:"
814 echo " " "The directory specified with the \`--srcdir' option,
815 \`$srcdir', doesn't seem to contain the XEmacs sources. You should
816 either run the \`$progname' script at the top of the XEmacs source
817 tree, or use the \`--srcdir' option to specify the XEmacs source directory."
818 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
823 if test -z "$configuration"; then
824 configuration=`${CONFIG_SHELL-/bin/sh} $srcdir/config.guess`
825 if test -z "$configuration"; then
826 (echo "$progname: Usage error:"
827 echo " " "XEmacs has not been ported to this host type.
828 Try explicitly specifying the CONFIGURATION when rerunning configure."
829 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
833 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
834 echo "configure:835: checking whether ln -s works" >&5
837 if ln -s X conftestdata 2>/dev/null
840 ac_cv_prog_LN_S="ln -s"
844 LN_S="$ac_cv_prog_LN_S"
845 if test "$ac_cv_prog_LN_S" = "ln -s"; then
846 echo "$ac_t""yes" 1>&6
848 echo "$ac_t""no" 1>&6
852 for dir in lisp etc man info tests; do
853 if test ! -d "$dir" ; then
854 echo Making symbolic link to "$srcdir/$dir"
855 ${LN_S} "$srcdir/$dir" "$dir"
860 absolute_pwd="`pwd`";
861 if test -n "$PWD" -a "`cd $PWD && pwd`" = "$absolute_pwd"
863 else blddir="$absolute_pwd"; if test -d "/net"; then
864 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi
865 blddir=`echo "$blddir" | \
866 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
873 . ) srcdir="$blddir" ;;
874 * ) srcdir="`cd $srcdir && pwd`"; if test -d "/net"; then
875 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi
876 srcdir=`echo "$srcdir" | \
877 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
881 if test `pwd` != `sh -c cd $srcdir && pwd` \
882 && test -f "$srcdir/src/config.h"; then
883 (echo "$progname: WARNING: The directory tree \`$srcdir' is being used"
884 echo " as a build directory right now; it has been configured in its own"
885 echo " right. To configure in another directory as well, you MUST"
886 echo " use GNU make. If you do not have GNU make, then you must"
887 echo " now do \`make distclean' in $srcdir,"
888 echo " and then run $progname again.") >&2
889 extrasub='/^VPATH[ ]*=/c\
895 vpath %.in $(srcdir)'
898 . "$srcdir/version.sh" || exit 1;
899 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
900 : "${extra_verbose=$beta}"
901 version="${emacs_major_version}.${emacs_minor_version}"
902 { test "$extra_verbose" = "yes" && cat << EOF
903 Defining EMACS_MAJOR_VERSION = $emacs_major_version
905 cat >> confdefs.h <<EOF
906 #define EMACS_MAJOR_VERSION $emacs_major_version
910 { test "$extra_verbose" = "yes" && cat << EOF
911 Defining EMACS_MINOR_VERSION = $emacs_minor_version
913 cat >> confdefs.h <<EOF
914 #define EMACS_MINOR_VERSION $emacs_minor_version
918 if test -n "$emacs_beta_version" ; then
919 if test "$beta" = "yes"; then
920 version="${version}-b${emacs_beta_version}"
921 { test "$extra_verbose" = "yes" && cat << EOF
922 Defining EMACS_BETA_VERSION = $emacs_beta_version
924 cat >> confdefs.h <<EOF
925 #define EMACS_BETA_VERSION $emacs_beta_version
930 version="${version}.${emacs_beta_version}"
931 { test "$extra_verbose" = "yes" && cat << EOF
932 Defining EMACS_PATCH_LEVEL = $emacs_beta_version
934 cat >> confdefs.h <<EOF
935 #define EMACS_PATCH_LEVEL $emacs_beta_version
941 { test "$extra_verbose" = "yes" && cat << EOF
942 Defining XEMACS_CODENAME = "$xemacs_codename"
944 cat >> confdefs.h <<EOF
945 #define XEMACS_CODENAME "$xemacs_codename"
949 { test "$extra_verbose" = "yes" && cat << EOF
950 Defining EMACS_VERSION = "$version"
952 cat >> confdefs.h <<EOF
953 #define EMACS_VERSION "$version"
958 if test "$with_infodock" = "yes"; then
959 if test ! -f ../../ID-INSTALL; then
960 echo "Cannot build InfoDock without InfoDock sources"
965 if test "$with_infodock" = "yes"; then
966 { test "$extra_verbose" = "yes" && cat << EOF
967 Defining INFODOCK_MAJOR_VERSION = $infodock_major_version
969 cat >> confdefs.h <<EOF
970 #define INFODOCK_MAJOR_VERSION $infodock_major_version
974 { test "$extra_verbose" = "yes" && cat << EOF
975 Defining INFODOCK_MINOR_VERSION = $infodock_minor_version
977 cat >> confdefs.h <<EOF
978 #define INFODOCK_MINOR_VERSION $infodock_minor_version
982 { test "$extra_verbose" = "yes" && cat << EOF
983 Defining INFODOCK_BUILD_VERSION = $infodock_build_version
985 cat >> confdefs.h <<EOF
986 #define INFODOCK_BUILD_VERSION $infodock_build_version
990 version=${infodock_major_version}.${infodock_minor_version}.${infodock_build_version}
992 CPPFLAGS="$CPPFLAGS -DINFODOCK"
997 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
998 test "${error_check_extents=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
999 Defining ERROR_CHECK_EXTENTS
1001 cat >> confdefs.h <<\EOF
1002 #define ERROR_CHECK_EXTENTS 1
1006 test "${error_check_typecheck=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1007 Defining ERROR_CHECK_TYPECHECK
1009 cat >> confdefs.h <<\EOF
1010 #define ERROR_CHECK_TYPECHECK 1
1014 test "${error_check_bufpos=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1015 Defining ERROR_CHECK_BUFPOS
1017 cat >> confdefs.h <<\EOF
1018 #define ERROR_CHECK_BUFPOS 1
1022 test "${error_check_gc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1023 Defining ERROR_CHECK_GC
1025 cat >> confdefs.h <<\EOF
1026 #define ERROR_CHECK_GC 1
1030 test "${error_check_malloc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1031 Defining ERROR_CHECK_MALLOC
1033 cat >> confdefs.h <<\EOF
1034 #define ERROR_CHECK_MALLOC 1
1038 test "${error_check_byte_code=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1039 Defining ERROR_CHECK_BYTE_CODE
1041 cat >> confdefs.h <<\EOF
1042 #define ERROR_CHECK_BYTE_CODE 1
1046 if test "${debug:=$beta}" = "yes"; then
1047 use_assertions=yes memory_usage_stats=yes
1048 extra_objs="$extra_objs debug.o" && if test "$extra_verbose" = "yes"; then
1049 echo " xemacs will be linked with \"debug.o\""
1051 { test "$extra_verbose" = "yes" && cat << \EOF
1052 Defining DEBUG_XEMACS
1054 cat >> confdefs.h <<\EOF
1055 #define DEBUG_XEMACS 1
1060 test "$use_assertions" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
1061 Defining USE_ASSERTIONS
1063 cat >> confdefs.h <<\EOF
1064 #define USE_ASSERTIONS 1
1068 test "$memory_usage_stats" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
1069 Defining MEMORY_USAGE_STATS
1071 cat >> confdefs.h <<\EOF
1072 #define MEMORY_USAGE_STATS 1
1078 echo $ac_n "checking "host system type"""... $ac_c" 1>&6
1079 echo "configure:1080: checking "host system type"" >&5
1080 internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'`
1081 canonical=`${CONFIG_SHELL-/bin/sh} $srcdir/config.sub "$internal_configuration"`
1082 configuration=`echo "$configuration" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
1083 canonical=`echo "$canonical" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
1084 echo "$ac_t""$configuration" 1>&6
1092 case "$canonical" in
1093 sparc-*-* ) machine=sparc ;;
1094 alpha*-*-* ) machine=alpha ;;
1095 vax-*-* ) machine=vax ;;
1096 mips-dec-* ) machine=pmax ;;
1097 mips-sgi-* ) machine=iris4d ;;
1098 mips*-linux ) machine=mips ;;
1099 romp-ibm-* ) machine=ibmrt ;;
1100 rs6000-ibm-aix* ) machine=ibmrs6000 ;;
1101 powerpc-ibm-aix* ) machine=ibmrs6000 ;;
1102 powerpc*-* ) machine=powerpc ;;
1103 hppa-*-* ) machine=hp800 ;;
1104 m88k-dg-* ) machine=aviion ;;
1105 m68*-sony-* ) machine=news ;;
1106 mips-sony-* ) machine=news-risc ;;
1107 clipper-* ) machine=clipper ;;
1108 arm-* ) machine=arm ;;
1109 ns32k-* ) machine=ns32000 ;;
1112 case "$canonical" in
1113 *-*-linux* ) opsys=linux ;;
1114 *-*-netbsd* ) opsys=netbsd ;;
1115 *-*-openbsd* ) opsys=openbsd ;;
1116 *-*-nextstep* ) opsys=nextstep ;;
1117 *-*-vms ) opsys=vms ;;
1119 *-dec-osf1.3 | *-dec-osf2* ) opsys=decosf1-3 ;;
1120 *-dec-osf1.2 | *-dec-osf1* ) opsys=decosf1-2 ;;
1121 *-dec-osf3.[2-9] ) opsys=decosf3-2 ;;
1122 *-dec-osf3* ) opsys=decosf3-1 ;;
1123 *-dec-osf4* ) opsys=decosf4-0 ;;
1125 *-*-ultrix[0-3].* | *-*-ultrix4.0* ) opsys=bsd4-2 ;;
1126 *-*-ultrix4.[12]* ) opsys=bsd4-3 ;;
1127 *-*-ultrix* ) opsys=ultrix4-3 ;;
1129 *-*-aix3.1* ) opsys=aix3-1 ;;
1130 *-*-aix3.2.5 ) opsys=aix3-2-5 ;;
1131 *-*-aix3* ) opsys=aix3-2 ;;
1132 *-*-aix4.0* ) opsys=aix4 ;;
1133 *-*-aix4.1* ) opsys=aix4-1 ;;
1134 *-*-aix4* ) opsys=aix4-2 ;;
1136 *-gnu* ) opsys=gnu ;;
1137 *-*-bsd4.[01] ) opsys=bsd4-1 ;;
1138 *-*-bsd4.2 ) opsys=bsd4-2 ;;
1139 *-*-bsd4.3 ) opsys=bsd4-3 ;;
1140 *-*-aos4.2 ) opsys=bsd4-2 ;;
1141 *-*-aos* ) opsys=bsd4-3 ;;
1142 *-*-sysv0 | *-*-sysvr0 ) opsys=usg5-0 ;;
1143 *-*-sysv2 | *-*-sysvr2 ) opsys=usg5-2 ;;
1144 *-*-sysv2.2 | *-*-sysvr2.2 ) opsys=usg5-2-2 ;;
1145 *-*-sysv3* | *-*-sysvr3* ) opsys=usg5-3 ;;
1146 *-*-sysv4.1* | *-*-sysvr4.1* )opsys=usg5-4 NON_GNU_CPP=/usr/lib/cpp ;;
1147 *-*-sysv4.[2-9]* | *-sysvr4.[2-9]* )
1148 if test -z "$NON_GNU_CPP" ; then
1149 for prog in "/usr/ccs/lib/cpp" "/lib/cpp"; do
1150 if test -f "$prog"; then NON_GNU_CPP="$prog"; break; fi
1154 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
1155 *-*-mach_bsd4.3* ) opsys=mach-bsd4-3 ;;
1158 case "$canonical" in
1161 case "$canonical" in
1162 i[3-9]86-*-netbsd*) machine=intel386 ;;
1163 hp300-*-netbsd* | amiga-*-netbsd* | sun3-*-netbsd* | mac68k-*-netbsd* | da30-*-netbsd* | m68k-*-netbsd* )
1164 machine=hp9000s300 ;;
1165 pc532-*-netbsd* | ns32k-*-netbsd* ) machine=ns32000 ;;
1166 pmax-*-netbsd* | mips-*-netbsd* ) machine=pmax ;;
1171 case "${canonical}" in
1172 i386-*-openbsd*) machine=intel386 ;;
1173 m68k-*-openbsd*) machine=hp9000s300 ;;
1174 mipsel-*-openbsd*) machine=pmax ;;
1178 arm-acorn-riscix1.1* ) machine=acorn opsys=riscix1-1 ;;
1179 arm-acorn-riscix1.2* | arm-acorn-riscix ) machine=acorn opsys=riscix1-2 ;;
1181 fx80-alliant-* ) machine=alliant4 opsys=bsd4-2 ;;
1182 i860-alliant-* ) machine=alliant-2800 opsys=bsd4-3 ;;
1184 m68*-altos-sysv* ) machine=altos opsys=usg5-2 ;;
1186 580-amdahl-sysv* ) machine=amdahl opsys=usg5-2-2 ;;
1188 m68*-apollo-* ) machine=apollo opsys=bsd4-3 ;;
1190 we32k-att-sysv* ) machine=att3b opsys=usg5-2-2 ;;
1192 m68*-att-sysv* ) machine=7300 opsys=usg5-2-2 ;;
1194 rs6000-bull-bosx* ) machine=ibmrs6000 opsys=aix3-2 ;; # dpx20
1195 m68*-bull-sysv3* ) machine=dpx2 opsys=usg5-3 ;; # dpx2
1196 m68*-bull-sysv2* ) machine=sps7 opsys=usg5-2 ;; # sps7
1199 celerity-celerity-bsd* ) machine=celerity opsys=bsd4-2 ;;
1201 *-convex-bsd* | *-convex-convexos* )
1202 machine=convex opsys=bsd4-3
1203 NON_GNU_CPP="cc -E -P"
1206 i[3-9]86-cubix-sysv* ) machine=intel386 opsys=usg5-3 ;;
1208 i586-dg-dgux*R4* | i586-dg-dgux5.4.4* ) machine=aviion opsys=dgux5-4r4 ;;
1209 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) opsys=dgux5-4r3 ;;
1210 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) opsys=dgux5-4r2 ;;
1211 m88k-dg-dgux* ) opsys=dgux ;;
1213 m68k-motorola-sysv* | m68000-motorola-sysv* ) machine=delta opsys=usg5-3 ;;
1214 m88k-motorola-sysv4* )
1215 machine=delta88k opsys=usg5-4-2
1217 m88k-motorola-sysv* | m88k-motorola-m88kbcs* ) machine=delta88k opsys=usg5-3 ;;
1219 m68*-dual-sysv* ) machine=dual opsys=usg5-2 ;;
1220 m68*-dual-uniplus* ) machine=dual opsys=unipl5-2 ;;
1222 ns16k-encore-bsd* ) machine=ns16000 opsys=umax ;;
1224 pn-gould-bsd4.2* ) machine=gould opsys=bsd4-2 ;;
1225 pn-gould-bsd4.3* ) machine=gould opsys=bsd4-3 ;;
1226 np1-gould-bsd* ) machine=gould-np1 opsys=bsd4-3 ;;
1229 case "`uname -r`" in
1230 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
1231 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
1233 NON_GNU_CPP="/lib/cpp"
1235 m68k-harris-cxux* ) machine=nh3000 opsys=cxux ;;
1236 powerpc-harris-powerunix ) machine=nh6000 opsys=powerunix NON_GNU_CPP="cc -Xo -E -P" ;;
1238 xps*-honeywell-sysv* ) machine=xps100 opsys=usg5-2 ;;
1240 m68*-hp-bsd* ) machine=hp9000s300 opsys=bsd4-3 ;;
1243 case "$canonical" in
1244 m68* ) machine=hp9000s300 ;;
1245 hppa* ) machine=hp800 ;;
1248 case "$canonical" in
1249 *-hp-hpux7* ) opsys=hpux ;;
1250 *-hp-hpux8* ) opsys=hpux8 ;;
1251 *-hp-hpux9* ) opsys=hpux9 ;;
1252 *-hp-hpux10* ) opsys=hpux10 ;;
1253 *-hp-hpux11* ) opsys=hpux11 ;;
1257 case "$opsys" in hpux9 | hpux10 ) extra_objs="$extra_objs strcat.o" && if test "$extra_verbose" = "yes"; then
1258 echo " xemacs will be linked with \"strcat.o\""
1261 if test "$opsys" = "hpux10" -o "$opsys" = "hpux11"; then \
1262 ansi_flag="-Ae"; else ansi_flag="-Aa"; fi
1263 NON_GNU_CC="cc $ansi_flag" NON_GNU_CPP="cc $ansi_flag -E"
1265 case "$canonical" in *-hp-hpux*shr* ) opsys="${opsys}-shr" ;; esac
1268 orion-orion-bsd* ) machine=orion opsys=bsd4-2 ;;
1269 clipper-orion-bsd* ) machine=orion105 opsys=bsd4-2 ;;
1271 i[3-9]86-ibm-aix1.1* ) machine=ibmps2-aix opsys=usg5-2-2 ;;
1272 i[3-9]86-ibm-aix1.[23]* | i[3-9]86-ibm-aix* ) machine=ibmps2-aix opsys=usg5-3 ;;
1273 i370-ibm-aix*) machine=ibm370aix opsys=usg5-3 ;;
1274 romp-ibm-aos* ) opsys=bsd4-3 ;;
1275 romp-ibm-bsd* ) opsys=bsd4-3 ;;
1276 romp-ibm-mach* ) opsys=mach-bsd4-3 ;;
1278 m68*-isi-bsd4.2* ) machine=isi-ov opsys=bsd4-2 ;;
1279 m68*-isi-bsd4.3* ) machine=isi-ov opsys=bsd4-3 ;;
1281 i[3-9]86-intsys-sysv* ) machine=is386 opsys=usg5-2-2 ;;
1283 i[3-9]86-prime-sysv* ) machine=i386 opsys=usg5-3 ;;
1285 i[3-9]86-sequent-bsd* ) machine=symmetry opsys=bsd4-3 ;;
1287 i[3-9]86-sequent-ptx* ) machine=sequent-ptx opsys=ptx NON_GNU_CPP="/lib/cpp" ;;
1289 i[3-9]86-ncr-sysv* ) machine=ncr386 opsys=usg5-4-2 ;;
1291 i860-intel-osf1* ) machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp ;;
1293 i860-*-sysv4* ) machine=i860 opsys=usg5-4 NON_GNU_CC="/bin/cc" NON_GNU_CPP="/usr/ccs/lib/cpp" ;;
1295 m68*-masscomp-rtu* ) machine=masscomp opsys=rtu ;;
1297 m68*-megatest-bsd* ) machine=mega68 opsys=bsd4-2 ;;
1299 mips-mips-usg* ) machine=mips4 ;;
1302 NON_GNU_CC="cc -systype bsd43"
1303 NON_GNU_CPP="cc -systype bsd43 -E"
1304 case "$canonical" in
1305 mips-mips-riscos4* ) opsys=bsd4-3 ;;
1306 mips-mips-riscos5* ) opsys=riscos5 ;;
1309 mips-mips-bsd* ) machine=mips opsys=bsd4-3 ;;
1310 mips-mips-* ) machine=mips opsys=usg5-2-2 ;;
1312 m68*-next-* | m68k-*-nextstep* ) machine=m68k opsys=nextstep ;;
1314 ns32k-ns-genix* ) machine=ns32000 opsys=usg5-2 ;;
1316 m68*-ncr-sysv2* | m68*-ncr-sysvr2* ) machine=tower32 opsys=usg5-2-2 ;;
1317 m68*-ncr-sysv3* | m68*-ncr-sysvr3* ) machine=tower32v3 opsys=usg5-3 ;;
1319 m68*-nixdorf-sysv* ) machine=targon31 opsys=usg5-2-2 ;;
1321 m68*-nu-sysv* ) machine=nu opsys=usg5-2 ;;
1323 m68*-plexus-sysv* ) machine=plexus opsys=usg5-2 ;;
1325 pyramid-pyramid-bsd* ) machine=pyramid opsys=bsd4-2 ;;
1327 ns32k-sequent-bsd4.2* ) machine=sequent opsys=bsd4-2 ;;
1328 ns32k-sequent-bsd4.3* ) machine=sequent opsys=bsd4-3 ;;
1330 mips-siemens-sysv* | mips-sni-sysv*)
1331 machine=mips-siemens opsys=usg5-4
1332 NON_GNU_CC=/usr/ccs/bin/cc
1333 NON_GNU_CPP=/usr/ccs/lib/cpp
1338 NON_GNU_CC=/usr/ccs/bin/cc
1339 NON_GNU_CPP=/usr/ccs/lib/cpp
1342 m68*-sgi-iris3.5* ) machine=irist opsys=iris3-5 ;;
1343 m68*-sgi-iris3.6* | m68*-sgi-iris*) machine=irist opsys=iris3-6 ;;
1344 mips-sgi-irix3.* ) opsys=irix3-3 ;;
1345 mips-sgi-irix4.* ) opsys=irix4-0 ;;
1346 mips-sgi-irix6* ) opsys=irix6-0 ;;
1347 mips-sgi-irix5.1* ) opsys=irix5-1 ;;
1348 mips-sgi-irix5.2* ) opsys=irix5-2 ;;
1349 mips-sgi-irix5.* ) opsys=irix5-3 ;;
1350 mips-sgi-irix* ) opsys=irix5-0 ;;
1352 *-sony-newsos[34]* | *-sony-news[34]* ) opsys=bsd4-3 ;;
1353 *-sony-news* ) opsys=newsos5 ;;
1355 m68*-stride-sysv* ) machine=stride opsys=usg5-2 ;;
1357 *-*-solaris* | *-*-sunos* | *-sun-mach* | *-sun-bsd* )
1358 case "$canonical" in
1359 m68*-sunos1* ) machine=sun1 ;;
1360 m68*-sunos2* ) machine=sun2 ;;
1361 m68* ) machine=sun3 ;;
1362 i*86*-sun-sunos[34]* ) machine=sun386 ;;
1363 i*86-*-* ) machine=intel386 ;;
1364 rs6000* ) machine=rs6000 ;;
1367 case "$canonical" in *-sunos5*)
1368 canonical=`echo $canonical | sed -e s/sunos5/solaris2/`;;
1371 case "$canonical" in
1373 #test -f /usr/lib/cpp && NON_GNU_CPP=/usr/lib/cpp ;;
1376 #test -f /usr/ccs/lib/cpp && NON_GNU_CPP=/usr/ccs/lib/cpp
1380 case "$canonical" in
1383 os_release=`uname -r | sed -e 's/^\([0-9]\)\.\([0-9]\).*/\1\2/'`
1384 { test "$extra_verbose" = "yes" && cat << EOF
1385 Defining OS_RELEASE = $os_release
1387 cat >> confdefs.h <<EOF
1388 #define OS_RELEASE $os_release
1393 i*86-*-sunos4* ) opsys=sunos4-0 ;;
1394 *-sunos4.0* ) opsys=sunos4-0 ;;
1395 *-sunos4.1.2* ) opsys=sunos4-1-2 ;;
1396 *-sunos4.1.3* ) opsys=sunos4-1-3 ;;
1397 *-sunos4.1.[4-9]* ) opsys=sunos4-1-4 ;;
1398 *-sunos4* | *-sunos ) opsys=sunos4-1 ;;
1399 *-mach* ) opsys=mach-bsd4-3 ;;
1403 case "$canonical" in *-sunos4*shr* ) opsys="${opsys}-shr" ;; esac
1405 test "$opsys $CC" = "sol2 /usr/ucb/cc" && CC=""
1408 m68*-tadpole-sysv* ) machine=tad68k opsys=usg5-3 ;;
1410 tahoe-tahoe-bsd4.2* ) machine=tahoe opsys=bsd4-2 ;;
1411 tahoe-tahoe-bsd4.3* ) machine=tahoe opsys=bsd4-3 ;;
1413 mips-tandem-sysv* ) machine=tandem-s2 opsys=usg5-3 ;;
1415 m88k-tektronix-sysv3* ) machine=tekxd88 opsys=usg5-3 ;;
1417 ns16k-tektronix-bsd* ) machine=ns16000 opsys=bsd4-2 ;;
1418 m68*-tektronix-bsd* ) machine=tek4300 opsys=bsd4-3 ;;
1420 titan-titan-sysv* ) machine=titan opsys=usg5-3 ;;
1422 m68*-unisys-uniplus* ) machine=ustation opsystem=unipl5-2 ;;
1425 case "$canonical" in
1426 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
1427 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
1428 *-mach* ) opsys=mach-bsd4-3 ;;
1432 ns16k-whitechapel-* ) machine=mg1 ;;
1434 m68*-wicat-sysv* ) machine=wicat opsys=usg5-2 ;;
1438 case "$canonical" in
1439 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
1440 *-isc2.2* ) opsys=isc2-2 ;;
1441 *-isc4.0* ) opsys=isc4-0 ;;
1442 *-isc4.* ) opsys=isc4-1
1443 GCC_TEST_OPTIONS=-posix
1444 NON_GCC_TEST_OPTIONS=-Xp
1446 *-isc* ) opsys=isc3-0 ;;
1447 *-esix5* ) opsys=esix5r4 NON_GNU_CPP=/usr/lib/cpp ;;
1448 *-esix* ) opsys=esix ;;
1449 *-mach* ) opsys=mach-bsd4-3 ;;
1450 *-xenix* ) opsys=xenix ;;
1451 *-sco3.2v4* ) opsys=sco4 NON_GNU_CPP=/lib/cpp ;;
1452 *-bsd386* | *-bsdi1* ) opsys=bsd386 ;;
1453 *-bsdi4* ) opsys=bsdos4 ;;
1454 *-bsdi3* ) opsys=bsdos3 ;;
1455 *-bsdi2.1* ) opsys=bsdos2-1 ;;
1456 *-bsdi2* ) opsys=bsdos2 ;;
1457 *-sco3.2v5* ) opsys=sco5 ;
1458 if test "$dynamic" = "yes" ; then
1459 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE -D_SCO_ELF" ;
1461 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE" ;
1463 *-sysv5* ) opsys=sco7 ;;
1464 *-386bsd* ) opsys=386bsd ;;
1465 *-freebsd* ) opsys=freebsd ;;
1466 *-nextstep* ) opsys=nextstep ;;
1467 *-pc-cygwin* ) opsys=cygwin32 ;;
1468 *-pc-mingw* ) opsys=mingw32 ;
1469 test -z "$with_tty" && with_tty="no";;
1473 m68k-*-linux* ) machine=m68k opsys=linux ;;
1477 if test -z "$machine" -o -z "$opsys"; then
1478 (echo "$progname: XEmacs hasn't been ported to \`$canonical' systems."
1479 echo "$progname: Check \`etc/MACHINES' for recognized configuration names."
1484 if test -z "$dynamic"; then
1486 hpux* | sunos4* ) dynamic=no ;;
1490 if test "$dynamic" = "yes"; then
1492 hpux* | sunos4* | sco5 ) opsys="${opsys}-shr" ;;
1493 decosf* ) ld_call_shared="-call_shared" ;;
1495 else case "$opsys" in
1497 echo "Static linking is not supported on Solaris 2."
1498 echo "Rerun configure without specifying --dynamic=no."
1500 linux ) ld_call_shared="-Bstatic" ;;
1501 decosf* ) ld_call_shared="-non_shared" ;;
1505 case "$opsys" in aix*) NON_GNU_CC=xlc ;; esac
1507 stack_trace_eye_catcher=`echo ${PROGNAME}_${version}_${canonical} | sed 'y/.-/__/'`
1508 { test "$extra_verbose" = "yes" && cat << EOF
1509 Defining STACK_TRACE_EYE_CATCHER = $stack_trace_eye_catcher
1511 cat >> confdefs.h <<EOF
1512 #define STACK_TRACE_EYE_CATCHER $stack_trace_eye_catcher
1517 machfile="m/${machine}.h"
1518 opsysfile="s/${opsys}.h"
1521 test "$with_sparcworks" = "yes" && with_workshop=yes # compatibility alias
1522 if test "$with_workshop $with_tooltalk" = "yes no"; then
1523 (echo "$progname: Usage error:"
1524 echo " " "--with-workshop requires --with-tooltalk"
1525 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
1526 elif test "$with_tooltalk" = "no" ; then with_workshop=no
1527 elif test "$with_workshop" = "yes"; then with_tooltalk=yes
1530 if test "$with_workshop" = "yes"; then
1531 { test "$extra_verbose" = "yes" && cat << \EOF
1534 cat >> confdefs.h <<\EOF
1539 extra_objs="$extra_objs sunpro.o" && if test "$extra_verbose" = "yes"; then
1540 echo " xemacs will be linked with \"sunpro.o\""
1544 if test "$with_clash_detection" = "yes"; then
1545 { test "$extra_verbose" = "yes" && cat << \EOF
1546 Defining CLASH_DETECTION
1548 cat >> confdefs.h <<\EOF
1549 #define CLASH_DETECTION 1
1553 extra_objs="$extra_objs filelock.o" && if test "$extra_verbose" = "yes"; then
1554 echo " xemacs will be linked with \"filelock.o\""
1558 test -n "$compiler" && CC="$compiler"
1559 if test "$with_gcc" = "no"; then case "$CC" in "" | *gcc* ) CC="${NON_GNU_CC-cc}" ;; esac
1562 test "${cflags-unset}" != unset && CFLAGS="$cflags"
1563 if test "${CFLAGS-unset}" != unset
1564 then cflags_specified=yes;
1565 else cflags_specified=no;
1568 xe_save_CFLAGS="$CFLAGS"
1570 # Extract the first word of "gcc", so it can be a program name with args.
1571 set dummy gcc; ac_word=$2
1572 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1573 echo "configure:1574: checking for $ac_word" >&5
1575 if test -n "$CC"; then
1576 ac_cv_prog_CC="$CC" # Let the user override the test.
1578 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1580 for ac_dir in $ac_dummy; do
1581 test -z "$ac_dir" && ac_dir=.
1582 if test -f $ac_dir/$ac_word; then
1590 if test -n "$CC"; then
1591 echo "$ac_t""$CC" 1>&6
1593 echo "$ac_t""no" 1>&6
1596 if test -z "$CC"; then
1597 # Extract the first word of "cc", so it can be a program name with args.
1598 set dummy cc; ac_word=$2
1599 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1600 echo "configure:1601: checking for $ac_word" >&5
1602 if test -n "$CC"; then
1603 ac_cv_prog_CC="$CC" # Let the user override the test.
1605 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1608 for ac_dir in $ac_dummy; do
1609 test -z "$ac_dir" && ac_dir=.
1610 if test -f $ac_dir/$ac_word; then
1611 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1612 ac_prog_rejected=yes
1620 if test $ac_prog_rejected = yes; then
1621 # We found a bogon in the path, so make sure we never use it.
1622 set dummy $ac_cv_prog_CC
1624 if test $# -gt 0; then
1625 # We chose a different compiler from the bogus one.
1626 # However, it has the same basename, so the bogon will be chosen
1627 # first if we set CC to just the basename; use the full file name.
1629 set dummy "$ac_dir/$ac_word" "$@"
1636 if test -n "$CC"; then
1637 echo "$ac_t""$CC" 1>&6
1639 echo "$ac_t""no" 1>&6
1642 if test -z "$CC"; then
1643 case "`uname -s`" in
1645 # Extract the first word of "cl", so it can be a program name with args.
1646 set dummy cl; ac_word=$2
1647 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1648 echo "configure:1649: checking for $ac_word" >&5
1650 if test -n "$CC"; then
1651 ac_cv_prog_CC="$CC" # Let the user override the test.
1653 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1655 for ac_dir in $ac_dummy; do
1656 test -z "$ac_dir" && ac_dir=.
1657 if test -f $ac_dir/$ac_word; then
1665 if test -n "$CC"; then
1666 echo "$ac_t""$CC" 1>&6
1668 echo "$ac_t""no" 1>&6
1673 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1676 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1677 echo "configure:1678: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1680 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1681 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1682 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1683 ac_cpp='$CPP '"$xe_cppflags"
1684 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1685 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1688 cat > conftest.$ac_ext << EOF
1690 #line 1691 "configure"
1691 #include "confdefs.h"
1695 if { (eval echo configure:1696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1696 ac_cv_prog_cc_works=yes
1697 # If we can't run a trivial program, we are probably using a cross compiler.
1698 if (./conftest; exit) 2>/dev/null; then
1699 ac_cv_prog_cc_cross=no
1701 ac_cv_prog_cc_cross=yes
1704 echo "configure: failed program was:" >&5
1705 cat conftest.$ac_ext >&5
1706 ac_cv_prog_cc_works=no
1710 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1711 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1712 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1713 ac_cpp='$CPP '"$xe_cppflags"
1714 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1715 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1718 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1719 if test $ac_cv_prog_cc_works = no; then
1720 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1722 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1723 echo "configure:1724: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1724 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1725 cross_compiling=$ac_cv_prog_cc_cross
1727 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1728 echo "configure:1729: checking whether we are using GNU C" >&5
1730 cat > conftest.c <<EOF
1735 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1736: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1741 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1743 if test $ac_cv_prog_gcc = yes; then
1749 ac_test_CFLAGS="${CFLAGS+set}"
1750 ac_save_CFLAGS="$CFLAGS"
1752 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1753 echo "configure:1754: checking whether ${CC-cc} accepts -g" >&5
1755 echo 'void f(){}' > conftest.c
1756 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1764 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1765 if test "$ac_test_CFLAGS" = set; then
1766 CFLAGS="$ac_save_CFLAGS"
1767 elif test $ac_cv_prog_cc_g = yes; then
1768 if test "$GCC" = yes; then
1774 if test "$GCC" = yes; then
1781 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then
1783 # Extract the first word of "gcc", so it can be a program name with args.
1784 set dummy gcc; ac_word=$2
1785 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1786 echo "configure:1787: checking for $ac_word" >&5
1788 if test -n "$CC"; then
1789 ac_cv_prog_CC="$CC" # Let the user override the test.
1791 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1793 for ac_dir in $ac_dummy; do
1794 test -z "$ac_dir" && ac_dir=.
1795 if test -f $ac_dir/$ac_word; then
1803 if test -n "$CC"; then
1804 echo "$ac_t""$CC" 1>&6
1806 echo "$ac_t""no" 1>&6
1809 if test -z "$CC"; then
1810 # Extract the first word of "cc", so it can be a program name with args.
1811 set dummy cc; ac_word=$2
1812 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1813 echo "configure:1814: checking for $ac_word" >&5
1815 if test -n "$CC"; then
1816 ac_cv_prog_CC="$CC" # Let the user override the test.
1818 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1821 for ac_dir in $ac_dummy; do
1822 test -z "$ac_dir" && ac_dir=.
1823 if test -f $ac_dir/$ac_word; then
1824 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1825 ac_prog_rejected=yes
1833 if test $ac_prog_rejected = yes; then
1834 # We found a bogon in the path, so make sure we never use it.
1835 set dummy $ac_cv_prog_CC
1837 if test $# -gt 0; then
1838 # We chose a different compiler from the bogus one.
1839 # However, it has the same basename, so the bogon will be chosen
1840 # first if we set CC to just the basename; use the full file name.
1842 set dummy "$ac_dir/$ac_word" "$@"
1849 if test -n "$CC"; then
1850 echo "$ac_t""$CC" 1>&6
1852 echo "$ac_t""no" 1>&6
1855 if test -z "$CC"; then
1856 case "`uname -s`" in
1858 # Extract the first word of "cl", so it can be a program name with args.
1859 set dummy cl; ac_word=$2
1860 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1861 echo "configure:1862: checking for $ac_word" >&5
1863 if test -n "$CC"; then
1864 ac_cv_prog_CC="$CC" # Let the user override the test.
1866 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1868 for ac_dir in $ac_dummy; do
1869 test -z "$ac_dir" && ac_dir=.
1870 if test -f $ac_dir/$ac_word; then
1878 if test -n "$CC"; then
1879 echo "$ac_t""$CC" 1>&6
1881 echo "$ac_t""no" 1>&6
1886 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1889 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1890 echo "configure:1891: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1893 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1894 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1895 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1896 ac_cpp='$CPP '"$xe_cppflags"
1897 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1898 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1901 cat > conftest.$ac_ext << EOF
1903 #line 1904 "configure"
1904 #include "confdefs.h"
1908 if { (eval echo configure:1909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1909 ac_cv_prog_cc_works=yes
1910 # If we can't run a trivial program, we are probably using a cross compiler.
1911 if (./conftest; exit) 2>/dev/null; then
1912 ac_cv_prog_cc_cross=no
1914 ac_cv_prog_cc_cross=yes
1917 echo "configure: failed program was:" >&5
1918 cat conftest.$ac_ext >&5
1919 ac_cv_prog_cc_works=no
1923 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1924 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1925 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1926 ac_cpp='$CPP '"$xe_cppflags"
1927 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1928 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1931 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1932 if test $ac_cv_prog_cc_works = no; then
1933 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1935 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1936 echo "configure:1937: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1937 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1938 cross_compiling=$ac_cv_prog_cc_cross
1940 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1941 echo "configure:1942: checking whether we are using GNU C" >&5
1943 cat > conftest.c <<EOF
1948 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1949: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1954 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1956 if test $ac_cv_prog_gcc = yes; then
1962 ac_test_CFLAGS="${CFLAGS+set}"
1963 ac_save_CFLAGS="$CFLAGS"
1965 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1966 echo "configure:1967: checking whether ${CC-cc} accepts -g" >&5
1968 echo 'void f(){}' > conftest.c
1969 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1977 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1978 if test "$ac_test_CFLAGS" = set; then
1979 CFLAGS="$ac_save_CFLAGS"
1980 elif test $ac_cv_prog_cc_g = yes; then
1981 if test "$GCC" = yes; then
1987 if test "$GCC" = yes; then
1994 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then
1996 # Extract the first word of "gcc", so it can be a program name with args.
1997 set dummy gcc; ac_word=$2
1998 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1999 echo "configure:2000: checking for $ac_word" >&5
2001 if test -n "$CC"; then
2002 ac_cv_prog_CC="$CC" # Let the user override the test.
2004 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2006 for ac_dir in $ac_dummy; do
2007 test -z "$ac_dir" && ac_dir=.
2008 if test -f $ac_dir/$ac_word; then
2016 if test -n "$CC"; then
2017 echo "$ac_t""$CC" 1>&6
2019 echo "$ac_t""no" 1>&6
2022 if test -z "$CC"; then
2023 # Extract the first word of "cc", so it can be a program name with args.
2024 set dummy cc; ac_word=$2
2025 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2026 echo "configure:2027: checking for $ac_word" >&5
2028 if test -n "$CC"; then
2029 ac_cv_prog_CC="$CC" # Let the user override the test.
2031 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2034 for ac_dir in $ac_dummy; do
2035 test -z "$ac_dir" && ac_dir=.
2036 if test -f $ac_dir/$ac_word; then
2037 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2038 ac_prog_rejected=yes
2046 if test $ac_prog_rejected = yes; then
2047 # We found a bogon in the path, so make sure we never use it.
2048 set dummy $ac_cv_prog_CC
2050 if test $# -gt 0; then
2051 # We chose a different compiler from the bogus one.
2052 # However, it has the same basename, so the bogon will be chosen
2053 # first if we set CC to just the basename; use the full file name.
2055 set dummy "$ac_dir/$ac_word" "$@"
2062 if test -n "$CC"; then
2063 echo "$ac_t""$CC" 1>&6
2065 echo "$ac_t""no" 1>&6
2068 if test -z "$CC"; then
2069 case "`uname -s`" in
2071 # Extract the first word of "cl", so it can be a program name with args.
2072 set dummy cl; ac_word=$2
2073 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2074 echo "configure:2075: checking for $ac_word" >&5
2076 if test -n "$CC"; then
2077 ac_cv_prog_CC="$CC" # Let the user override the test.
2079 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2081 for ac_dir in $ac_dummy; do
2082 test -z "$ac_dir" && ac_dir=.
2083 if test -f $ac_dir/$ac_word; then
2091 if test -n "$CC"; then
2092 echo "$ac_t""$CC" 1>&6
2094 echo "$ac_t""no" 1>&6
2099 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2102 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2103 echo "configure:2104: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2106 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2107 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2108 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
2109 ac_cpp='$CPP '"$xe_cppflags"
2110 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
2111 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2114 cat > conftest.$ac_ext << EOF
2116 #line 2117 "configure"
2117 #include "confdefs.h"
2121 if { (eval echo configure:2122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2122 ac_cv_prog_cc_works=yes
2123 # If we can't run a trivial program, we are probably using a cross compiler.
2124 if (./conftest; exit) 2>/dev/null; then
2125 ac_cv_prog_cc_cross=no
2127 ac_cv_prog_cc_cross=yes
2130 echo "configure: failed program was:" >&5
2131 cat conftest.$ac_ext >&5
2132 ac_cv_prog_cc_works=no
2136 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2137 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2138 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
2139 ac_cpp='$CPP '"$xe_cppflags"
2140 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
2141 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2144 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2145 if test $ac_cv_prog_cc_works = no; then
2146 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2148 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2149 echo "configure:2150: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2150 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2151 cross_compiling=$ac_cv_prog_cc_cross
2153 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2154 echo "configure:2155: checking whether we are using GNU C" >&5
2156 cat > conftest.c <<EOF
2161 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2162: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2167 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2169 if test $ac_cv_prog_gcc = yes; then
2175 ac_test_CFLAGS="${CFLAGS+set}"
2176 ac_save_CFLAGS="$CFLAGS"
2178 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2179 echo "configure:2180: checking whether ${CC-cc} accepts -g" >&5
2181 echo 'void f(){}' > conftest.c
2182 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2190 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2191 if test "$ac_test_CFLAGS" = set; then
2192 CFLAGS="$ac_save_CFLAGS"
2193 elif test $ac_cv_prog_cc_g = yes; then
2194 if test "$GCC" = yes; then
2200 if test "$GCC" = yes; then
2208 CFLAGS="$xe_save_CFLAGS"
2211 test -n "$CPP" -a -d "$CPP" && CPP=
2213 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP"
2215 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2216 echo "configure:2217: checking how to run the C preprocessor" >&5
2217 # On Suns, sometimes $CPP names a directory.
2218 if test -n "$CPP" && test -d "$CPP"; then
2221 if test -z "$CPP"; then
2223 # This must be in double quotes, not single quotes, because CPP may get
2224 # substituted into the Makefile and "${CC-cc}" will confuse make.
2226 # On the NeXT, cc -E runs the code through the compiler's parser,
2227 # not just through cpp.
2228 cat > conftest.$ac_ext <<EOF
2229 #line 2230 "configure"
2230 #include "confdefs.h"
2234 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2235 { (eval echo configure:2236: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2236 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2237 if test -z "$ac_err"; then
2241 echo "configure: failed program was:" >&5
2242 cat conftest.$ac_ext >&5
2244 CPP="${CC-cc} -E -traditional-cpp"
2245 cat > conftest.$ac_ext <<EOF
2246 #line 2247 "configure"
2247 #include "confdefs.h"
2251 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2252 { (eval echo configure:2253: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2253 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2254 if test -z "$ac_err"; then
2258 echo "configure: failed program was:" >&5
2259 cat conftest.$ac_ext >&5
2261 CPP="${CC-cc} -nologo -E"
2262 cat > conftest.$ac_ext <<EOF
2263 #line 2264 "configure"
2264 #include "confdefs.h"
2268 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2269 { (eval echo configure:2270: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2270 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2271 if test -z "$ac_err"; then
2275 echo "configure: failed program was:" >&5
2276 cat conftest.$ac_ext >&5
2285 ac_cv_prog_CPP="$CPP"
2286 CPP="$ac_cv_prog_CPP"
2288 ac_cv_prog_CPP="$CPP"
2290 echo "$ac_t""$CPP" 1>&6
2293 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2294 echo "configure:2295: checking for AIX" >&5
2295 cat > conftest.$ac_ext <<EOF
2296 #line 2297 "configure"
2297 #include "confdefs.h"
2303 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2304 egrep "yes" >/dev/null 2>&1; then
2306 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
2307 Defining _ALL_SOURCE
2309 cat >> confdefs.h <<\EOF
2310 #define _ALL_SOURCE 1
2316 echo "$ac_t""no" 1>&6
2322 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6
2323 echo "configure:2324: checking for GNU libc" >&5
2324 cat > conftest.$ac_ext <<EOF
2325 #line 2326 "configure"
2326 #include "confdefs.h"
2327 #include <features.h>
2330 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
2331 #error Not a GNU libc system :-(
2332 ******* ======= ******** &&&&&&&&
2337 if { (eval echo configure:2338: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2341 echo "configure: failed program was:" >&5
2342 cat conftest.$ac_ext >&5
2347 echo "$ac_t""$have_glibc" 1>&6
2348 test "$have_glibc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
2349 Defining _GNU_SOURCE
2351 cat >> confdefs.h <<\EOF
2352 #define _GNU_SOURCE 1
2358 cat > conftest.$ac_ext <<EOF
2359 #line 2360 "configure"
2360 #include "confdefs.h"
2362 #if defined __SUNPRO_C
2364 #elif defined __DECC
2371 if { (eval echo configure:2372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
2376 echo "configure: failed program was:" >&5
2377 cat conftest.$ac_ext >&5
2379 case "$conftest_rc" in
2380 11) echo "You appear to be using the SunPro C compiler."; __SUNPRO_C=yes ;;
2381 12) echo "You appear to be using the DEC C compiler." ; __DECC=yes ;;
2389 echo "Extracting information from the machine- and system-dependent headers..."
2391 tempcname="conftest.c"
2395 cat > $tempcname <<EOF
2397 #define C_SWITCH_SITE
2398 #define C_SWITCH_X_SITE
2399 #define LD_SWITCH_SITE
2400 #define LD_SWITCH_X_SITE
2401 #define LD_SWITCH_X_SITE_AUX
2402 #define OS_RELEASE $os_release
2403 #include "$srcdir/src/$opsysfile"
2404 #include "$srcdir/src/$machfile"
2406 #ifndef LIBS_MACHINE
2407 #define LIBS_MACHINE
2409 configure___ libs_machine=LIBS_MACHINE
2414 configure___ libs_system=LIBS_SYSTEM
2416 #ifndef LIBS_TERMCAP
2417 #define LIBS_TERMCAP
2419 configure___ libs_termcap=LIBS_TERMCAP
2421 #ifndef LIB_STANDARD
2422 #define LIB_STANDARD
2424 configure___ libs_standard=LIB_STANDARD
2427 #ifndef OBJECTS_MACHINE
2428 #define OBJECTS_MACHINE
2430 configure___ objects_machine=OBJECTS_MACHINE
2432 #ifndef OBJECTS_SYSTEM
2433 #define OBJECTS_SYSTEM
2435 configure___ objects_system=OBJECTS_SYSTEM
2438 #ifndef C_SWITCH_MACHINE
2439 #define C_SWITCH_MACHINE
2441 configure___ c_switch_machine=C_SWITCH_MACHINE
2443 #ifndef C_SWITCH_SYSTEM
2444 #define C_SWITCH_SYSTEM
2446 configure___ c_switch_system=C_SWITCH_SYSTEM
2449 #ifndef LD_SWITCH_MACHINE
2450 #define LD_SWITCH_MACHINE
2452 configure___ ld_switch_machine=LD_SWITCH_MACHINE
2454 #ifndef LD_SWITCH_SYSTEM
2455 #define LD_SWITCH_SYSTEM
2457 configure___ ld_switch_system=LD_SWITCH_SYSTEM
2461 #define UNEXEC "unexec.o"
2463 configure___ unexec=UNEXEC
2466 #ifndef LD_SWITCH_SHARED
2467 #define LD_SWITCH_SHARED "-c"
2469 configure___ ld_switch_shared=LD_SWITCH_SHARED
2472 #ifdef ORDINARY_LINK
2473 #define LD "\$(CC) \$(CFLAGS)"
2474 #else /* no ORDINARY LINK */
2475 #ifdef COFF_ENCAPSULATE
2476 #define LD "\$(CC) -nostdlib"
2477 #else /* not COFF_ENCAPSULATE */
2480 #else /* ! defined (LINKER) */
2482 #endif /* ! defined (LINKER) */
2483 #endif /* ! defined (COFF_ENCAPSULATE) */
2484 #endif /* not ORDINARY_LINK */
2490 configure___ lib_gcc=LIB_GCC
2492 #ifndef LD_TEXT_START_ADDR
2493 #define LD_TEXT_START_ADDR
2495 configure___ ld_text_start_addr=LD_TEXT_START_ADDR
2498 #if ! defined (ORDINARY_LINK) && !defined (START_FILES)
2500 #ifdef COFF_ENCAPSULATE
2501 #define START_FILES "pre-crt0.o /usr/local/lib/gcc-crt0.o"
2502 #else /* ! defined (COFF_ENCAPSULATE) */
2503 #define START_FILES "pre-crt0.o /lib/crt0.o"
2504 #endif /* ! defined (COFF_ENCAPSULATE) */
2505 #else /* ! defined (NO_REMAP) */
2506 #define START_FILES "ecrt0.o"
2507 #endif /* ! defined (NO_REMAP) */
2508 #endif /* no ORDINARY_LINK */
2512 configure___ start_files=START_FILES
2514 #ifdef ORDINARY_LINK
2515 configure___ ordinary_link=yes
2517 configure___ ordinary_link=no
2520 #ifdef SYSTEM_MALLOC
2521 configure___ system_malloc=yes
2523 configure___ system_malloc=no
2527 configure___ have_terminfo=yes
2529 configure___ have_terminfo=no
2532 #ifdef MAIL_USE_FLOCK
2533 configure___ mail_use_flock=yes
2535 configure___ mail_use_flock=no
2538 #ifdef MAIL_USE_LOCKF
2539 configure___ mail_use_lockf=yes
2541 configure___ mail_use_lockf=no
2544 #ifdef MAIL_USE_LOCKING
2545 configure___ mail_use_locking=yes
2547 configure___ mail_use_locking=no
2550 #ifdef HAVE_WIN32_PROCESSES
2551 configure___ win32_processes=yes
2553 configure___ win32_processes=no
2558 CPP=`eval "echo $CPP $CPPFLAGS"`
2559 eval `$CPP -Isrc $tempcname \
2560 | sed -n -e "s/[ ]*=[ \"]*/='/" -e "s/[ \"]*\$/'/" -e "s/^configure___//p"`
2564 test "$extra_verbose" = "yes" && \
2565 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 ""
2567 case "$opsys" in mingw*) mingw_include=`eval "gcc -print-file-name=libc.a"` ;
2568 mingw_include=`eval "dirname $mingw_include"` ;
2569 mingw_include="-I$mingw_include/../include/mingw32" ;
2570 c_switch_system="$c_switch_system $mingw_include" && if test "$extra_verbose" = "yes"; then echo " Appending \"$mingw_include\" to \$c_switch_system"; fi ;;
2573 test "$ordinary_link" = "no" -a -z "$libs_standard" && libs_standard="-lc"
2575 test "$__DECC" = "yes" && c_switch_site="$c_switch_site -std" && if test "$extra_verbose" = "yes"; then echo " Appending \"-std\" to \$c_switch_site"; fi
2577 if test "$cflags_specified" = "no"; then
2578 if test "$GCC" = "yes"; then
2579 CFLAGS="-g -O3 -Wall -Wno-switch"
2580 elif test "$__SUNPRO_C" = "yes"; then
2582 sol2 ) CFLAGS="-v -xO4" ;;
2583 sunos4* ) CFLAGS="-xO2";;
2585 elif test "$__DECC" = "yes"; then
2587 elif test "$CC" = "xlc"; then
2588 CFLAGS="-g -O3 -qstrict -qnoansialias -qlibansi -qinfo -qro -qmaxmem=20000"
2594 if test "$GCC" = "yes"; then
2595 set x $ld_switch_system; shift; ld_switch_system=""
2596 while test -n "$1"; do
2598 -L | -l | -u ) ld_switch_system="$ld_switch_system $1 $2"; shift ;;
2599 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_system="$ld_switch_system $1" ;;
2601 * ) ld_switch_system="$ld_switch_system -Xlinker $1" ;;
2607 if test "$GCC" = "yes"; then
2608 set x $ld_switch_machine; shift; ld_switch_machine=""
2609 while test -n "$1"; do
2611 -L | -l | -u ) ld_switch_machine="$ld_switch_machine $1 $2"; shift ;;
2612 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_machine="$ld_switch_machine $1" ;;
2614 * ) ld_switch_machine="$ld_switch_machine -Xlinker $1" ;;
2620 if test "$GCC" = "yes"; then
2621 set x $LDFLAGS; shift; LDFLAGS=""
2622 while test -n "$1"; do
2624 -L | -l | -u ) LDFLAGS="$LDFLAGS $1 $2"; shift ;;
2625 -L* | -l* | -u* | -Wl* | -pg ) LDFLAGS="$LDFLAGS $1" ;;
2627 * ) LDFLAGS="$LDFLAGS -Xlinker $1" ;;
2633 if test "$GCC" = "yes"; then
2634 set x $ld_call_shared; shift; ld_call_shared=""
2635 while test -n "$1"; do
2637 -L | -l | -u ) ld_call_shared="$ld_call_shared $1 $2"; shift ;;
2638 -L* | -l* | -u* | -Wl* | -pg ) ld_call_shared="$ld_call_shared $1" ;;
2640 * ) ld_call_shared="$ld_call_shared -Xlinker $1" ;;
2646 test -n "$objects_machine" && extra_objs="$extra_objs $objects_machine" && if test "$extra_verbose" = "yes"; then
2647 echo " xemacs will be linked with \"$objects_machine\""
2649 test -n "$objects_system" && extra_objs="$extra_objs $objects_system" && if test "$extra_verbose" = "yes"; then
2650 echo " xemacs will be linked with \"$objects_system\""
2652 test -n "$unexec" && extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then
2653 echo " xemacs will be linked with \"$unexec\""
2656 echo $ac_n "checking for dynodump""... $ac_c" 1>&6
2657 echo "configure:2658: checking for dynodump" >&5
2658 if test "$unexec" != "unexsol2.o"; then
2659 echo "$ac_t""no" 1>&6
2661 echo "$ac_t""yes" 1>&6
2662 { test "$extra_verbose" = "yes" && cat << \EOF
2665 cat >> confdefs.h <<\EOF
2670 MAKE_SUBDIR="$MAKE_SUBDIR dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$MAKE_SUBDIR"; fi
2671 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$SRC_SUBDIR_DEPS"; fi
2673 sparc ) dynodump_arch=sparc ;;
2674 *86* ) dynodump_arch=i386 ;;
2675 powerpc ) dynodump_arch=ppc ;;
2677 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
2681 test "$machine$opsys" = "powerpclinux" && start_flags="-T $srcdir/src/ppc.ldscript"
2683 if test "$unexec" = "unexaix.o"; then
2684 if test "$dynamic" = "no"; then
2685 start_flags="-Wl,-bnso,-bnodelcsect"
2686 test "$GCC" = "yes" && start_flags="-B/bin/ ${start_flags}"
2687 for f in "/lib/syscalls.exp" "/lib/threads.exp"; do
2688 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; fi
2690 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do
2691 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi
2694 echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6
2695 echo "configure:2696: checking for terminateAndUnload in -lC" >&5
2696 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'`
2698 xe_check_libs=" -lC "
2699 cat > conftest.$ac_ext <<EOF
2700 #line 2701 "configure"
2701 #include "confdefs.h"
2702 /* Override any gcc2 internal prototype to avoid an error. */
2703 /* We use char because int might match the return type of a gcc2
2704 builtin and then its argument prototype would still apply. */
2705 char terminateAndUnload();
2708 terminateAndUnload()
2711 if { (eval echo configure:2712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2713 eval "ac_cv_lib_$ac_lib_var=yes"
2715 echo "configure: failed program was:" >&5
2716 cat conftest.$ac_ext >&5
2718 eval "ac_cv_lib_$ac_lib_var=no"
2723 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
2724 echo "$ac_t""yes" 1>&6
2725 libs_system="$libs_system -lC" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lC\" to \$libs_system"; fi
2727 echo "$ac_t""no" 1>&6
2732 elif test -n "$ld_text_start_addr"; then
2733 start_flags="-T $ld_text_start_addr -e __start"
2739 if test "$ordinary_link" = "no" -a "$GCC" = "yes"; then
2740 test -z "$linker" && linker='$(CC) -nostdlib'
2741 test -z "$lib_gcc" && lib_gcc='`$(CC) -print-libgcc-file-name`'
2743 test "$GCC" != "yes" && lib_gcc=
2749 case "$site_libraries" in *:* ) site_libraries="`echo '' $site_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
2750 if test -n "$site_libraries"; then
2751 for arg in $site_libraries; do
2754 * ) test -d "$arg" || \
2755 { echo "Error:" "Invalid site library \`$arg': no such directory" >&2; exit 1; }
2758 ld_switch_site="$ld_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$ld_switch_site"; fi
2762 case "$site_includes" in *:* ) site_includes="`echo '' $site_includes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
2763 if test -n "$site_includes"; then
2764 for arg in $site_includes; do
2767 * ) test -d "$arg" || \
2768 { echo "Error:" "Invalid site include \`$arg': no such directory" >&2; exit 1; }
2771 c_switch_site="$c_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$c_switch_site"; fi
2775 case "$site_prefixes" in *:* ) site_prefixes="`echo '' $site_prefixes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
2776 if test -n "$site_prefixes"; then
2777 for dir in $site_prefixes; do
2778 lib_dir="${dir}/lib"
2779 inc_dir="${dir}/include"
2780 if test ! -d "$dir"; then
2781 { echo "Error:" "Invalid site prefix \`$dir': no such directory" >&2; exit 1; }
2782 elif test ! -d "$lib_dir"; then
2783 { echo "Error:" "Invalid site prefix \`$dir': no such directory \`$lib_dir'" >&2; exit 1; }
2785 if test -d "$inc_dir"; then
2786 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
2788 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
2794 for dir in "/usr/ccs/lib"; do
2795 test -d "$dir" && ld_switch_site="$ld_switch_site -L${dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L${dir}\" to \$ld_switch_site"; fi
2798 case "$site_runtime_libraries" in *:* ) site_runtime_libraries="`echo '' $site_runtime_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
2799 if test -n "$site_runtime_libraries"; then
2800 LD_RUN_PATH="`echo $site_runtime_libraries | sed -e 's/ */:/g'`"
2805 if test "$dynamic" = "no"; then add_runtime_path=no
2806 elif test -n "$LD_RUN_PATH"; then add_runtime_path=yes
2807 else case "$opsys" in
2808 sol2 | irix* | *bsd* | decosf* ) add_runtime_path=yes ;;
2809 * ) add_runtime_path=no ;;
2813 if test "$add_runtime_path" = "yes"; then
2814 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6
2815 echo "configure:2816: checking "for runtime libraries flag"" >&5
2817 sol2 ) dash_r="-R" ;;
2818 decosf* | linux* | irix*) dash_r="-rpath " ;;
2821 for try_dash_r in "-R" "-R " "-rpath "; do
2822 xe_check_libs="${try_dash_r}/no/such/file-or-directory"
2824 if test "$GCC" = "yes"; then
2825 set x $xe_check_libs; shift; xe_check_libs=""
2826 while test -n "$1"; do
2828 -L | -l | -u ) xe_check_libs="$xe_check_libs $1 $2"; shift ;;
2829 -L* | -l* | -u* | -Wl* | -pg ) xe_check_libs="$xe_check_libs $1" ;;
2831 * ) xe_check_libs="$xe_check_libs -Xlinker $1" ;;
2836 cat > conftest.$ac_ext <<EOF
2837 #line 2838 "configure"
2838 #include "confdefs.h"
2844 if { (eval echo configure:2845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2846 dash_r="$try_dash_r"
2848 echo "configure: failed program was:" >&5
2849 cat conftest.$ac_ext >&5
2853 test -n "$dash_r" && break
2856 if test -n "$dash_r";
2857 then echo "$ac_t"""\"${dash_r}\""" 1>&6
2858 else echo "$ac_t""NONE" 1>&6
2862 xe_add_unique_runpath_dir='
2864 for xe_dir in $runpath_dirs; do test "$xe_dir" = "$xe_runpath_dir" && xe_add_p=no
2866 if test "$xe_add_p" = "yes"; then
2867 test -n "$runpath" && runpath="${runpath}:"
2868 runpath="${runpath}${xe_runpath_dir}"
2869 runpath_dirs="$runpath_dirs $xe_runpath_dir"
2875 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
2876 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
2877 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
2879 runpath="" runpath_dirs=""
2880 if test -n "$LD_RUN_PATH"; then
2881 runpath="$LD_RUN_PATH"
2882 elif test "$GCC" = "yes"; then
2883 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
2884 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
2885 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
2886 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
2887 case "$arg" in P,* | -L* | -R* )
2888 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
2890 xe_runpath_dir="$dir"
2891 test "$xe_runpath_dir" != "/lib" -a \
2892 "$xe_runpath_dir" != "/usr/lib" -a \
2893 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
2894 eval "$xe_add_unique_runpath_dir"
2899 ld_switch_run="$ld_switch_run_save"
2902 for arg in $ld_switch_site $ld_switch_x_site; do
2903 case "$arg" in -L*) {
2904 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
2905 test "$xe_runpath_dir" != "/lib" -a \
2906 "$xe_runpath_dir" != "/usr/lib" -a \
2907 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
2908 eval "$xe_add_unique_runpath_dir"
2911 if test "$opsys $need_motif" = "sol2 yes"; then
2912 xe_runpath_dir="/opt/SUNWdt/lib";
2913 eval "$xe_add_unique_runpath_dir";
2916 if test -n "$runpath"; then
2917 ld_switch_run="${dash_r}${runpath}"
2919 if test "$GCC" = "yes"; then
2920 set x $ld_switch_run; shift; ld_switch_run=""
2921 while test -n "$1"; do
2923 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
2924 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
2926 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
2931 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
2939 if test "$with_dlmalloc" != "no"; then
2944 after_morecore_hook_exists=yes
2945 echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6
2946 echo "configure:2947: checking for malloc_get_state" >&5
2948 cat > conftest.$ac_ext <<EOF
2949 #line 2950 "configure"
2950 #include "confdefs.h"
2951 /* System header to define __stub macros and hopefully few prototypes,
2952 which can conflict with char malloc_get_state(); below. */
2954 /* Override any gcc2 internal prototype to avoid an error. */
2955 /* We use char because int might match the return type of a gcc2
2956 builtin and then its argument prototype would still apply. */
2957 char malloc_get_state();
2961 /* The GNU C library defines this for functions which it implements
2962 to always fail with ENOSYS. Some functions are actually named
2963 something starting with __ and the normal name is an alias. */
2964 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
2972 if { (eval echo configure:2973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2974 eval "ac_cv_func_malloc_get_state=yes"
2976 echo "configure: failed program was:" >&5
2977 cat conftest.$ac_ext >&5
2979 eval "ac_cv_func_malloc_get_state=no"
2983 if eval "test \"`echo '$ac_cv_func_'malloc_get_state`\" = yes"; then
2984 echo "$ac_t""yes" 1>&6
2987 echo "$ac_t""no" 1>&6
2991 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
2992 echo "configure:2993: checking for malloc_set_state" >&5
2994 cat > conftest.$ac_ext <<EOF
2995 #line 2996 "configure"
2996 #include "confdefs.h"
2997 /* System header to define __stub macros and hopefully few prototypes,
2998 which can conflict with char malloc_set_state(); below. */
3000 /* Override any gcc2 internal prototype to avoid an error. */
3001 /* We use char because int might match the return type of a gcc2
3002 builtin and then its argument prototype would still apply. */
3003 char malloc_set_state();
3007 /* The GNU C library defines this for functions which it implements
3008 to always fail with ENOSYS. Some functions are actually named
3009 something starting with __ and the normal name is an alias. */
3010 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
3018 if { (eval echo configure:3019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3020 eval "ac_cv_func_malloc_set_state=yes"
3022 echo "configure: failed program was:" >&5
3023 cat conftest.$ac_ext >&5
3025 eval "ac_cv_func_malloc_set_state=no"
3029 if eval "test \"`echo '$ac_cv_func_'malloc_set_state`\" = yes"; then
3030 echo "$ac_t""yes" 1>&6
3033 echo "$ac_t""no" 1>&6
3037 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
3038 echo "configure:3039: checking whether __after_morecore_hook exists" >&5
3039 cat > conftest.$ac_ext <<EOF
3040 #line 3041 "configure"
3041 #include "confdefs.h"
3042 extern void (* __after_morecore_hook)();
3044 __after_morecore_hook = 0
3047 if { (eval echo configure:3048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3049 echo "$ac_t""yes" 1>&6
3051 echo "configure: failed program was:" >&5
3052 cat conftest.$ac_ext >&5
3054 echo "$ac_t""no" 1>&6
3055 after_morecore_hook_exists=no
3058 if test "$system_malloc" = "yes" ; then
3061 (The GNU allocators don't work with this system configuration)."
3062 elif test "$with_system_malloc" = "yes" ; then
3065 (User chose not to use GNU allocators)."
3066 elif test "$with_debug_malloc" = "yes" ; then
3069 (User chose to use Debugging Malloc)."
3072 if test "$doug_lea_malloc" = "yes" ; then
3073 if test "$GNU_MALLOC" = yes ; then
3075 (Using Doug Lea's new malloc from the GNU C Library.)"
3077 { test "$extra_verbose" = "yes" && cat << \EOF
3078 Defining DOUG_LEA_MALLOC
3080 cat >> confdefs.h <<\EOF
3081 #define DOUG_LEA_MALLOC 1
3085 if test "$after_morecore_hook_exists" = "no" ; then
3087 (Using Doug Lea's new malloc from the Linux C Library.)"
3088 { test "$extra_verbose" = "yes" && cat << \EOF
3089 Defining _NO_MALLOC_WARNING_
3091 cat >> confdefs.h <<\EOF
3092 #define _NO_MALLOC_WARNING_ 1
3097 use_minimal_tagbits=yes
3103 # Extract the first word of "ranlib", so it can be a program name with args.
3104 set dummy ranlib; ac_word=$2
3105 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3106 echo "configure:3107: checking for $ac_word" >&5
3108 if test -n "$RANLIB"; then
3109 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3111 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3113 for ac_dir in $ac_dummy; do
3114 test -z "$ac_dir" && ac_dir=.
3115 if test -f $ac_dir/$ac_word; then
3116 ac_cv_prog_RANLIB="ranlib"
3121 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
3123 RANLIB="$ac_cv_prog_RANLIB"
3124 if test -n "$RANLIB"; then
3125 echo "$ac_t""$RANLIB" 1>&6
3127 echo "$ac_t""no" 1>&6
3131 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3132 if test -f $ac_dir/install-sh; then
3134 ac_install_sh="$ac_aux_dir/install-sh -c"
3136 elif test -f $ac_dir/install.sh; then
3138 ac_install_sh="$ac_aux_dir/install.sh -c"
3142 if test -z "$ac_aux_dir"; then
3143 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
3145 ac_config_guess=$ac_aux_dir/config.guess
3146 ac_config_sub=$ac_aux_dir/config.sub
3147 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
3149 # Find a good install program. We prefer a C program (faster),
3150 # so one script is as good as another. But avoid the broken or
3151 # incompatible versions:
3152 # SysV /etc/install, /usr/sbin/install
3153 # SunOS /usr/etc/install
3154 # IRIX /sbin/install
3156 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3157 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3158 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3159 # ./install, which can be erroneously created by make from ./install.sh.
3160 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3161 echo "configure:3162: checking for a BSD compatible install" >&5
3162 if test -z "$INSTALL"; then
3164 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3165 for ac_dir in $PATH; do
3166 # Account for people who put trailing slashes in PATH elements.
3168 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3170 # OSF1 and SCO ODT 3.0 have their own names for install.
3171 # Don't use installbsd from OSF since it installs stuff as root
3173 for ac_prog in ginstall scoinst install; do
3174 if test -f $ac_dir/$ac_prog; then
3175 if test $ac_prog = install &&
3176 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3177 # AIX install. It has an incompatible calling convention.
3180 ac_cv_path_install="$ac_dir/$ac_prog -c"
3190 if test "${ac_cv_path_install+set}" = set; then
3191 INSTALL="$ac_cv_path_install"
3193 # As a last resort, use the slow shell script. We don't cache a
3194 # path for INSTALL within a source directory, because that will
3195 # break other packages using the cache if that directory is
3196 # removed, or if the path is relative.
3197 INSTALL="$ac_install_sh"
3200 echo "$ac_t""$INSTALL" 1>&6
3202 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3203 # It thinks the first close brace ends the variable substitution.
3204 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3206 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3208 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3210 for ac_prog in 'bison -y' byacc
3212 # Extract the first word of "$ac_prog", so it can be a program name with args.
3213 set dummy $ac_prog; ac_word=$2
3214 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3215 echo "configure:3216: checking for $ac_word" >&5
3217 if test -n "$YACC"; then
3218 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3220 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3222 for ac_dir in $ac_dummy; do
3223 test -z "$ac_dir" && ac_dir=.
3224 if test -f $ac_dir/$ac_word; then
3225 ac_cv_prog_YACC="$ac_prog"
3231 YACC="$ac_cv_prog_YACC"
3232 if test -n "$YACC"; then
3233 echo "$ac_t""$YACC" 1>&6
3235 echo "$ac_t""no" 1>&6
3238 test -n "$YACC" && break
3240 test -n "$YACC" || YACC="yacc"
3243 for ac_hdr in mach/mach.h sys/stropts.h sys/timeb.h sys/time.h unistd.h
3245 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3246 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3247 echo "configure:3248: checking for $ac_hdr" >&5
3249 cat > conftest.$ac_ext <<EOF
3250 #line 3251 "configure"
3251 #include "confdefs.h"
3254 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3255 { (eval echo configure:3256: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3256 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3257 if test -z "$ac_err"; then
3259 eval "ac_cv_header_$ac_safe=yes"
3262 echo "configure: failed program was:" >&5
3263 cat conftest.$ac_ext >&5
3265 eval "ac_cv_header_$ac_safe=no"
3268 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3269 echo "$ac_t""yes" 1>&6
3270 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3271 { test "$extra_verbose" = "yes" && cat << EOF
3274 cat >> confdefs.h <<EOF
3275 #define $ac_tr_hdr 1
3280 echo "$ac_t""no" 1>&6
3284 for ac_hdr in utime.h locale.h libgen.h fcntl.h ulimit.h cygwin/version.h
3286 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3287 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3288 echo "configure:3289: checking for $ac_hdr" >&5
3290 cat > conftest.$ac_ext <<EOF
3291 #line 3292 "configure"
3292 #include "confdefs.h"
3295 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3296 { (eval echo configure:3297: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3297 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3298 if test -z "$ac_err"; then
3300 eval "ac_cv_header_$ac_safe=yes"
3303 echo "configure: failed program was:" >&5
3304 cat conftest.$ac_ext >&5
3306 eval "ac_cv_header_$ac_safe=no"
3309 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3310 echo "$ac_t""yes" 1>&6
3311 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3312 { test "$extra_verbose" = "yes" && cat << EOF
3315 cat >> confdefs.h <<EOF
3316 #define $ac_tr_hdr 1
3321 echo "$ac_t""no" 1>&6
3325 for ac_hdr in kstat.h sys/pstat.h inttypes.h sys/un.h a.out.h
3327 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3328 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3329 echo "configure:3330: checking for $ac_hdr" >&5
3331 cat > conftest.$ac_ext <<EOF
3332 #line 3333 "configure"
3333 #include "confdefs.h"
3336 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3337 { (eval echo configure:3338: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3338 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3339 if test -z "$ac_err"; then
3341 eval "ac_cv_header_$ac_safe=yes"
3344 echo "configure: failed program was:" >&5
3345 cat conftest.$ac_ext >&5
3347 eval "ac_cv_header_$ac_safe=no"
3350 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3351 echo "$ac_t""yes" 1>&6
3352 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3353 { test "$extra_verbose" = "yes" && cat << EOF
3356 cat >> confdefs.h <<EOF
3357 #define $ac_tr_hdr 1
3362 echo "$ac_t""no" 1>&6
3366 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
3367 echo "configure:3368: checking for sys/wait.h that is POSIX.1 compatible" >&5
3369 cat > conftest.$ac_ext <<EOF
3370 #line 3371 "configure"
3371 #include "confdefs.h"
3372 #include <sys/types.h>
3373 #include <sys/wait.h>
3375 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3378 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3383 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3386 if { (eval echo configure:3387: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3388 ac_cv_header_sys_wait_h=yes
3390 echo "configure: failed program was:" >&5
3391 cat conftest.$ac_ext >&5
3393 ac_cv_header_sys_wait_h=no
3397 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
3398 if test $ac_cv_header_sys_wait_h = yes; then
3399 { test "$extra_verbose" = "yes" && cat << \EOF
3400 Defining HAVE_SYS_WAIT_H
3402 cat >> confdefs.h <<\EOF
3403 #define HAVE_SYS_WAIT_H 1
3409 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3410 echo "configure:3411: checking for ANSI C header files" >&5
3412 cat > conftest.$ac_ext <<EOF
3413 #line 3414 "configure"
3414 #include "confdefs.h"
3420 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3421 { (eval echo configure:3422: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3422 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3423 if test -z "$ac_err"; then
3425 ac_cv_header_stdc=yes
3428 echo "configure: failed program was:" >&5
3429 cat conftest.$ac_ext >&5
3431 ac_cv_header_stdc=no
3435 if test $ac_cv_header_stdc = yes; then
3436 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3437 cat > conftest.$ac_ext <<EOF
3438 #line 3439 "configure"
3439 #include "confdefs.h"
3442 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3443 egrep "memchr" >/dev/null 2>&1; then
3447 ac_cv_header_stdc=no
3453 if test $ac_cv_header_stdc = yes; then
3454 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3455 cat > conftest.$ac_ext <<EOF
3456 #line 3457 "configure"
3457 #include "confdefs.h"
3460 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3461 egrep "free" >/dev/null 2>&1; then
3465 ac_cv_header_stdc=no
3471 if test $ac_cv_header_stdc = yes; then
3472 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3473 cat > conftest.$ac_ext <<EOF
3474 #line 3475 "configure"
3475 #include "confdefs.h"
3477 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3478 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3479 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3480 int main () { int i; for (i = 0; i < 256; i++)
3481 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3485 if { (eval echo configure:3486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
3490 echo "configure: failed program was:" >&5
3491 cat conftest.$ac_ext >&5
3493 ac_cv_header_stdc=no
3498 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3499 if test $ac_cv_header_stdc = yes; then
3500 { test "$extra_verbose" = "yes" && cat << \EOF
3501 Defining STDC_HEADERS
3503 cat >> confdefs.h <<\EOF
3504 #define STDC_HEADERS 1
3510 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3511 echo "configure:3512: checking whether time.h and sys/time.h may both be included" >&5
3513 cat > conftest.$ac_ext <<EOF
3514 #line 3515 "configure"
3515 #include "confdefs.h"
3516 #include <sys/types.h>
3517 #include <sys/time.h>
3523 if { (eval echo configure:3524: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3525 ac_cv_header_time=yes
3527 echo "configure: failed program was:" >&5
3528 cat conftest.$ac_ext >&5
3530 ac_cv_header_time=no
3534 echo "$ac_t""$ac_cv_header_time" 1>&6
3535 if test $ac_cv_header_time = yes; then
3536 { test "$extra_verbose" = "yes" && cat << \EOF
3537 Defining TIME_WITH_SYS_TIME
3539 cat >> confdefs.h <<\EOF
3540 #define TIME_WITH_SYS_TIME 1
3546 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
3547 echo "configure:3548: checking for sys_siglist declaration in signal.h or unistd.h" >&5
3549 cat > conftest.$ac_ext <<EOF
3550 #line 3551 "configure"
3551 #include "confdefs.h"
3552 #include <sys/types.h>
3554 /* NetBSD declares sys_siglist in unistd.h. */
3555 #ifdef HAVE_UNISTD_H
3559 char *msg = *(sys_siglist + 1);
3562 if { (eval echo configure:3563: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3564 ac_cv_decl_sys_siglist=yes
3566 echo "configure: failed program was:" >&5
3567 cat conftest.$ac_ext >&5
3569 ac_cv_decl_sys_siglist=no
3573 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
3574 if test $ac_cv_decl_sys_siglist = yes; then
3575 { test "$extra_verbose" = "yes" && cat << \EOF
3576 Defining SYS_SIGLIST_DECLARED
3578 cat >> confdefs.h <<\EOF
3579 #define SYS_SIGLIST_DECLARED 1
3586 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6
3587 echo "configure:3588: checking for struct utimbuf" >&5
3588 cat > conftest.$ac_ext <<EOF
3589 #line 3590 "configure"
3590 #include "confdefs.h"
3591 #ifdef TIME_WITH_SYS_TIME
3592 #include <sys/time.h>
3595 #ifdef HAVE_SYS_TIME_H
3596 #include <sys/time.h>
3605 static struct utimbuf x; x.actime = x.modtime;
3608 if { (eval echo configure:3609: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3610 echo "$ac_t""yes" 1>&6
3611 { test "$extra_verbose" = "yes" && cat << \EOF
3612 Defining HAVE_STRUCT_UTIMBUF
3614 cat >> confdefs.h <<\EOF
3615 #define HAVE_STRUCT_UTIMBUF 1
3620 echo "configure: failed program was:" >&5
3621 cat conftest.$ac_ext >&5
3623 echo "$ac_t""no" 1>&6
3627 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3628 echo "configure:3629: checking return type of signal handlers" >&5
3630 cat > conftest.$ac_ext <<EOF
3631 #line 3632 "configure"
3632 #include "confdefs.h"
3633 #include <sys/types.h>
3639 extern "C" void (*signal (int, void (*)(int)))(int);
3641 void (*signal ()) ();
3648 if { (eval echo configure:3649: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3650 ac_cv_type_signal=void
3652 echo "configure: failed program was:" >&5
3653 cat conftest.$ac_ext >&5
3655 ac_cv_type_signal=int
3659 echo "$ac_t""$ac_cv_type_signal" 1>&6
3660 { test "$extra_verbose" = "yes" && cat << EOF
3661 Defining RETSIGTYPE = $ac_cv_type_signal
3663 cat >> confdefs.h <<EOF
3664 #define RETSIGTYPE $ac_cv_type_signal
3669 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3670 echo "configure:3671: checking for size_t" >&5
3672 cat > conftest.$ac_ext <<EOF
3673 #line 3674 "configure"
3674 #include "confdefs.h"
3675 #include <sys/types.h>
3681 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3682 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3684 ac_cv_type_size_t=yes
3687 ac_cv_type_size_t=no
3691 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3692 if test $ac_cv_type_size_t = no; then
3693 { test "$extra_verbose" = "yes" && cat << \EOF
3694 Defining size_t = unsigned
3696 cat >> confdefs.h <<\EOF
3697 #define size_t unsigned
3703 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3704 echo "configure:3705: checking for pid_t" >&5
3706 cat > conftest.$ac_ext <<EOF
3707 #line 3708 "configure"
3708 #include "confdefs.h"
3709 #include <sys/types.h>
3715 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3716 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3718 ac_cv_type_pid_t=yes
3725 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3726 if test $ac_cv_type_pid_t = no; then
3727 { test "$extra_verbose" = "yes" && cat << \EOF
3728 Defining pid_t = int
3730 cat >> confdefs.h <<\EOF
3737 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3738 echo "configure:3739: checking for uid_t in sys/types.h" >&5
3740 cat > conftest.$ac_ext <<EOF
3741 #line 3742 "configure"
3742 #include "confdefs.h"
3743 #include <sys/types.h>
3745 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3746 egrep "uid_t" >/dev/null 2>&1; then
3748 ac_cv_type_uid_t=yes
3756 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3757 if test $ac_cv_type_uid_t = no; then
3758 { test "$extra_verbose" = "yes" && cat << \EOF
3759 Defining uid_t = int
3761 cat >> confdefs.h <<\EOF
3766 { test "$extra_verbose" = "yes" && cat << \EOF
3767 Defining gid_t = int
3769 cat >> confdefs.h <<\EOF
3776 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3777 echo "configure:3778: checking for mode_t" >&5
3779 cat > conftest.$ac_ext <<EOF
3780 #line 3781 "configure"
3781 #include "confdefs.h"
3782 #include <sys/types.h>
3788 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3789 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3791 ac_cv_type_mode_t=yes
3794 ac_cv_type_mode_t=no
3798 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3799 if test $ac_cv_type_mode_t = no; then
3800 { test "$extra_verbose" = "yes" && cat << \EOF
3801 Defining mode_t = int
3803 cat >> confdefs.h <<\EOF
3810 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3811 echo "configure:3812: checking for off_t" >&5
3813 cat > conftest.$ac_ext <<EOF
3814 #line 3815 "configure"
3815 #include "confdefs.h"
3816 #include <sys/types.h>
3822 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3823 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3825 ac_cv_type_off_t=yes
3832 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3833 if test $ac_cv_type_off_t = no; then
3834 { test "$extra_verbose" = "yes" && cat << \EOF
3835 Defining off_t = long
3837 cat >> confdefs.h <<\EOF
3844 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3845 echo "configure:3846: checking for ssize_t" >&5
3847 cat > conftest.$ac_ext <<EOF
3848 #line 3849 "configure"
3849 #include "confdefs.h"
3850 #include <sys/types.h>
3856 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3857 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3859 ac_cv_type_ssize_t=yes
3862 ac_cv_type_ssize_t=no
3866 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3867 if test $ac_cv_type_ssize_t = no; then
3868 { test "$extra_verbose" = "yes" && cat << \EOF
3869 Defining ssize_t = int
3871 cat >> confdefs.h <<\EOF
3879 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
3880 echo "configure:3881: checking for struct timeval" >&5
3881 cat > conftest.$ac_ext <<EOF
3882 #line 3883 "configure"
3883 #include "confdefs.h"
3884 #ifdef TIME_WITH_SYS_TIME
3885 #include <sys/time.h>
3888 #ifdef HAVE_SYS_TIME_H
3889 #include <sys/time.h>
3895 static struct timeval x; x.tv_sec = x.tv_usec;
3898 if { (eval echo configure:3899: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3900 echo "$ac_t""yes" 1>&6
3902 { test "$extra_verbose" = "yes" && cat << \EOF
3903 Defining HAVE_TIMEVAL
3905 cat >> confdefs.h <<\EOF
3906 #define HAVE_TIMEVAL 1
3911 echo "configure: failed program was:" >&5
3912 cat conftest.$ac_ext >&5
3914 echo "$ac_t""no" 1>&6
3919 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
3920 echo "configure:3921: checking whether struct tm is in sys/time.h or time.h" >&5
3922 cat > conftest.$ac_ext <<EOF
3923 #line 3924 "configure"
3924 #include "confdefs.h"
3925 #include <sys/types.h>
3928 struct tm *tp; tp->tm_sec;
3931 if { (eval echo configure:3932: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3933 ac_cv_struct_tm=time.h
3935 echo "configure: failed program was:" >&5
3936 cat conftest.$ac_ext >&5
3938 ac_cv_struct_tm=sys/time.h
3942 echo "$ac_t""$ac_cv_struct_tm" 1>&6
3943 if test $ac_cv_struct_tm = sys/time.h; then
3944 { test "$extra_verbose" = "yes" && cat << \EOF
3945 Defining TM_IN_SYS_TIME
3947 cat >> confdefs.h <<\EOF
3948 #define TM_IN_SYS_TIME 1
3954 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
3955 echo "configure:3956: checking for tm_zone in struct tm" >&5
3957 cat > conftest.$ac_ext <<EOF
3958 #line 3959 "configure"
3959 #include "confdefs.h"
3960 #include <sys/types.h>
3961 #include <$ac_cv_struct_tm>
3963 struct tm tm; tm.tm_zone;
3966 if { (eval echo configure:3967: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3968 ac_cv_struct_tm_zone=yes
3970 echo "configure: failed program was:" >&5
3971 cat conftest.$ac_ext >&5
3973 ac_cv_struct_tm_zone=no
3977 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
3978 if test "$ac_cv_struct_tm_zone" = yes; then
3979 { test "$extra_verbose" = "yes" && cat << \EOF
3980 Defining HAVE_TM_ZONE
3982 cat >> confdefs.h <<\EOF
3983 #define HAVE_TM_ZONE 1
3988 echo $ac_n "checking for tzname""... $ac_c" 1>&6
3989 echo "configure:3990: checking for tzname" >&5
3991 cat > conftest.$ac_ext <<EOF
3992 #line 3993 "configure"
3993 #include "confdefs.h"
3995 #ifndef tzname /* For SGI. */
3996 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4002 if { (eval echo configure:4003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4004 ac_cv_var_tzname=yes
4006 echo "configure: failed program was:" >&5
4007 cat conftest.$ac_ext >&5
4013 echo "$ac_t""$ac_cv_var_tzname" 1>&6
4014 if test $ac_cv_var_tzname = yes; then
4015 { test "$extra_verbose" = "yes" && cat << \EOF
4016 Defining HAVE_TZNAME
4018 cat >> confdefs.h <<\EOF
4019 #define HAVE_TZNAME 1
4027 echo $ac_n "checking for working const""... $ac_c" 1>&6
4028 echo "configure:4029: checking for working const" >&5
4030 cat > conftest.$ac_ext <<EOF
4031 #line 4032 "configure"
4032 #include "confdefs.h"
4036 /* Ultrix mips cc rejects this. */
4037 typedef int charset[2]; const charset x;
4038 /* SunOS 4.1.1 cc rejects this. */
4039 char const *const *ccp;
4041 /* NEC SVR4.0.2 mips cc rejects this. */
4042 struct point {int x, y;};
4043 static struct point const zero = {0,0};
4044 /* AIX XL C 1.02.0.0 rejects this.
4045 It does not let you subtract one const X* pointer from another in an arm
4046 of an if-expression whose if-part is not a constant expression */
4047 const char *g = "string";
4048 ccp = &g + (g ? g-g : 0);
4049 /* HPUX 7.0 cc rejects these. */
4052 ccp = (char const *const *) p;
4053 { /* SCO 3.2v4 cc rejects this. */
4055 char const *s = 0 ? (char *) 0 : (char const *) 0;
4059 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4061 const int *foo = &x[0];
4064 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4065 typedef const int *iptr;
4069 { /* AIX XL C 1.02.0.0 rejects this saying
4070 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4071 struct s { int j; const int *ap[3]; };
4072 struct s *b; b->j = 5;
4074 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4080 if { (eval echo configure:4081: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4084 echo "configure: failed program was:" >&5
4085 cat conftest.$ac_ext >&5
4091 echo "$ac_t""$ac_cv_c_const" 1>&6
4092 if test $ac_cv_c_const = no; then
4093 { test "$extra_verbose" = "yes" && cat << \EOF
4096 cat >> confdefs.h <<\EOF
4104 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
4105 echo "configure:4106: checking whether ${MAKE-make} sets \${MAKE}" >&5
4106 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
4108 cat > conftestmake <<\EOF
4110 @echo 'ac_maketemp="${MAKE}"'
4112 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4113 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
4114 if test -n "$ac_maketemp"; then
4115 eval ac_cv_prog_make_${ac_make}_set=yes
4117 eval ac_cv_prog_make_${ac_make}_set=no
4120 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4121 echo "$ac_t""yes" 1>&6
4124 echo "$ac_t""no" 1>&6
4125 SET_MAKE="MAKE=${MAKE-make}"
4129 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
4130 echo "configure:4131: checking whether byte ordering is bigendian" >&5
4132 ac_cv_c_bigendian=unknown
4133 # See if sys/param.h defines the BYTE_ORDER macro.
4134 cat > conftest.$ac_ext <<EOF
4135 #line 4136 "configure"
4136 #include "confdefs.h"
4137 #include <sys/types.h>
4138 #include <sys/param.h>
4141 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4146 if { (eval echo configure:4147: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4148 # It does; now see whether it defined to BIG_ENDIAN or not.
4149 cat > conftest.$ac_ext <<EOF
4150 #line 4151 "configure"
4151 #include "confdefs.h"
4152 #include <sys/types.h>
4153 #include <sys/param.h>
4156 #if BYTE_ORDER != BIG_ENDIAN
4161 if { (eval echo configure:4162: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4163 ac_cv_c_bigendian=yes
4165 echo "configure: failed program was:" >&5
4166 cat conftest.$ac_ext >&5
4168 ac_cv_c_bigendian=no
4172 echo "configure: failed program was:" >&5
4173 cat conftest.$ac_ext >&5
4176 if test $ac_cv_c_bigendian = unknown; then
4177 cat > conftest.$ac_ext <<EOF
4178 #line 4179 "configure"
4179 #include "confdefs.h"
4181 /* Are we little or big endian? From Harbison&Steele. */
4185 char c[sizeof (long)];
4188 exit (u.c[sizeof (long) - 1] == 1);
4191 if { (eval echo configure:4192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4193 ac_cv_c_bigendian=no
4196 echo "configure: failed program was:" >&5
4197 cat conftest.$ac_ext >&5
4199 ac_cv_c_bigendian=yes
4204 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
4205 if test $ac_cv_c_bigendian = yes; then
4206 { test "$extra_verbose" = "yes" && cat << \EOF
4207 Defining WORDS_BIGENDIAN
4209 cat >> confdefs.h <<\EOF
4210 #define WORDS_BIGENDIAN 1
4217 echo $ac_n "checking size of short""... $ac_c" 1>&6
4218 echo "configure:4219: checking size of short" >&5
4220 cat > conftest.$ac_ext <<EOF
4221 #line 4222 "configure"
4222 #include "confdefs.h"
4226 FILE *f=fopen("conftestval", "w");
4228 fprintf(f, "%d\n", sizeof(short));
4232 if { (eval echo configure:4233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4234 ac_cv_sizeof_short=`cat conftestval`
4237 echo "configure: failed program was:" >&5
4238 cat conftest.$ac_ext >&5
4240 ac_cv_sizeof_short=0
4243 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
4244 { test "$extra_verbose" = "yes" && cat << EOF
4245 Defining SIZEOF_SHORT = $ac_cv_sizeof_short
4247 cat >> confdefs.h <<EOF
4248 #define SIZEOF_SHORT $ac_cv_sizeof_short
4253 if test "$ac_cv_sizeof_short" = 0; then
4255 echo "*** PANIC *** Configure tests are not working - compiler is broken."
4256 echo "*** PANIC *** Please examine config.log for compilation errors."
4259 echo $ac_n "checking size of int""... $ac_c" 1>&6
4260 echo "configure:4261: checking size of int" >&5
4262 cat > conftest.$ac_ext <<EOF
4263 #line 4264 "configure"
4264 #include "confdefs.h"
4268 FILE *f=fopen("conftestval", "w");
4270 fprintf(f, "%d\n", sizeof(int));
4274 if { (eval echo configure:4275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4276 ac_cv_sizeof_int=`cat conftestval`
4279 echo "configure: failed program was:" >&5
4280 cat conftest.$ac_ext >&5
4285 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
4286 { test "$extra_verbose" = "yes" && cat << EOF
4287 Defining SIZEOF_INT = $ac_cv_sizeof_int
4289 cat >> confdefs.h <<EOF
4290 #define SIZEOF_INT $ac_cv_sizeof_int
4295 echo $ac_n "checking size of long""... $ac_c" 1>&6
4296 echo "configure:4297: checking size of long" >&5
4298 cat > conftest.$ac_ext <<EOF
4299 #line 4300 "configure"
4300 #include "confdefs.h"
4304 FILE *f=fopen("conftestval", "w");
4306 fprintf(f, "%d\n", sizeof(long));
4310 if { (eval echo configure:4311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4312 ac_cv_sizeof_long=`cat conftestval`
4315 echo "configure: failed program was:" >&5
4316 cat conftest.$ac_ext >&5
4321 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
4322 { test "$extra_verbose" = "yes" && cat << EOF
4323 Defining SIZEOF_LONG = $ac_cv_sizeof_long
4325 cat >> confdefs.h <<EOF
4326 #define SIZEOF_LONG $ac_cv_sizeof_long
4331 echo $ac_n "checking size of long long""... $ac_c" 1>&6
4332 echo "configure:4333: checking size of long long" >&5
4334 cat > conftest.$ac_ext <<EOF
4335 #line 4336 "configure"
4336 #include "confdefs.h"
4340 FILE *f=fopen("conftestval", "w");
4342 fprintf(f, "%d\n", sizeof(long long));
4346 if { (eval echo configure:4347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4348 ac_cv_sizeof_long_long=`cat conftestval`
4351 echo "configure: failed program was:" >&5
4352 cat conftest.$ac_ext >&5
4354 ac_cv_sizeof_long_long=0
4357 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
4358 { test "$extra_verbose" = "yes" && cat << EOF
4359 Defining SIZEOF_LONG_LONG = $ac_cv_sizeof_long_long
4361 cat >> confdefs.h <<EOF
4362 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4367 echo $ac_n "checking size of void *""... $ac_c" 1>&6
4368 echo "configure:4369: checking size of void *" >&5
4370 cat > conftest.$ac_ext <<EOF
4371 #line 4372 "configure"
4372 #include "confdefs.h"
4376 FILE *f=fopen("conftestval", "w");
4378 fprintf(f, "%d\n", sizeof(void *));
4382 if { (eval echo configure:4383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4384 ac_cv_sizeof_void_p=`cat conftestval`
4387 echo "configure: failed program was:" >&5
4388 cat conftest.$ac_ext >&5
4390 ac_cv_sizeof_void_p=0
4393 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
4394 { test "$extra_verbose" = "yes" && cat << EOF
4395 Defining SIZEOF_VOID_P = $ac_cv_sizeof_void_p
4397 cat >> confdefs.h <<EOF
4398 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4404 echo $ac_n "checking for long file names""... $ac_c" 1>&6
4405 echo "configure:4406: checking for long file names" >&5
4407 ac_cv_sys_long_file_names=yes
4408 # Test for long file names in all the places we know might matter:
4409 # . the current directory, where building will happen
4410 # $prefix/lib where we will be installing things
4411 # $exec_prefix/lib likewise
4412 # eval it to expand exec_prefix.
4413 # $TMPDIR if set, where it might want to write temporary files
4414 # if $TMPDIR is not set:
4415 # /tmp where it might want to write temporary files
4418 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
4419 ac_tmpdirs="$TMPDIR"
4421 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
4423 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
4424 test -d $ac_dir || continue
4425 test -w $ac_dir || continue # It is less confusing to not echo anything here.
4426 (echo 1 > $ac_dir/conftest9012345) 2>/dev/null
4427 (echo 2 > $ac_dir/conftest9012346) 2>/dev/null
4428 val=`cat $ac_dir/conftest9012345 2>/dev/null`
4429 if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then
4430 ac_cv_sys_long_file_names=no
4431 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
4434 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
4437 echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
4438 if test $ac_cv_sys_long_file_names = yes; then
4439 { test "$extra_verbose" = "yes" && cat << \EOF
4440 Defining HAVE_LONG_FILE_NAMES
4442 cat >> confdefs.h <<\EOF
4443 #define HAVE_LONG_FILE_NAMES 1
4450 echo $ac_n "checking for sin""... $ac_c" 1>&6
4451 echo "configure:4452: checking for sin" >&5
4453 cat > conftest.$ac_ext <<EOF
4454 #line 4455 "configure"
4455 #include "confdefs.h"
4456 /* System header to define __stub macros and hopefully few prototypes,
4457 which can conflict with char sin(); below. */
4459 /* Override any gcc2 internal prototype to avoid an error. */
4460 /* We use char because int might match the return type of a gcc2
4461 builtin and then its argument prototype would still apply. */
4466 /* The GNU C library defines this for functions which it implements
4467 to always fail with ENOSYS. Some functions are actually named
4468 something starting with __ and the normal name is an alias. */
4469 #if defined (__stub_sin) || defined (__stub___sin)
4477 if { (eval echo configure:4478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4479 eval "ac_cv_func_sin=yes"
4481 echo "configure: failed program was:" >&5
4482 cat conftest.$ac_ext >&5
4484 eval "ac_cv_func_sin=no"
4488 if eval "test \"`echo '$ac_cv_func_'sin`\" = yes"; then
4489 echo "$ac_t""yes" 1>&6
4492 echo "$ac_t""no" 1>&6
4494 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
4495 echo "configure:4496: checking for sin in -lm" >&5
4496 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
4498 xe_check_libs=" -lm "
4499 cat > conftest.$ac_ext <<EOF
4500 #line 4501 "configure"
4501 #include "confdefs.h"
4502 /* Override any gcc2 internal prototype to avoid an error. */
4503 /* We use char because int might match the return type of a gcc2
4504 builtin and then its argument prototype would still apply. */
4511 if { (eval echo configure:4512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4513 eval "ac_cv_lib_$ac_lib_var=yes"
4515 echo "configure: failed program was:" >&5
4516 cat conftest.$ac_ext >&5
4518 eval "ac_cv_lib_$ac_lib_var=no"
4523 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4524 echo "$ac_t""yes" 1>&6
4525 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/^a-zA-Z0-9_/_/g' \
4526 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4527 { test "$extra_verbose" = "yes" && cat << EOF
4530 cat >> confdefs.h <<EOF
4531 #define $ac_tr_lib 1
4535 LIBS="-lm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lm\" to \$LIBS"; fi
4538 echo "$ac_t""no" 1>&6
4545 { test "$extra_verbose" = "yes" && cat << \EOF
4546 Defining LISP_FLOAT_TYPE
4548 cat >> confdefs.h <<\EOF
4549 #define LISP_FLOAT_TYPE 1
4554 cat > conftest.$ac_ext <<EOF
4555 #line 4556 "configure"
4556 #include "confdefs.h"
4559 return atanh(1.0) + asinh(1.0) + acosh(1.0);
4562 if { (eval echo configure:4563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4564 { test "$extra_verbose" = "yes" && cat << \EOF
4565 Defining HAVE_INVERSE_HYPERBOLIC
4567 cat >> confdefs.h <<\EOF
4568 #define HAVE_INVERSE_HYPERBOLIC 1
4573 echo "configure: failed program was:" >&5
4574 cat conftest.$ac_ext >&5
4578 echo "checking type of mail spool file locking" 1>&6
4579 echo "configure:4580: checking type of mail spool file locking" >&5
4580 for ac_func in lockf flock
4582 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4583 echo "configure:4584: checking for $ac_func" >&5
4585 cat > conftest.$ac_ext <<EOF
4586 #line 4587 "configure"
4587 #include "confdefs.h"
4588 /* System header to define __stub macros and hopefully few prototypes,
4589 which can conflict with char $ac_func(); below. */
4591 /* Override any gcc2 internal prototype to avoid an error. */
4592 /* We use char because int might match the return type of a gcc2
4593 builtin and then its argument prototype would still apply. */
4598 /* The GNU C library defines this for functions which it implements
4599 to always fail with ENOSYS. Some functions are actually named
4600 something starting with __ and the normal name is an alias. */
4601 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4609 if { (eval echo configure:4610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4611 eval "ac_cv_func_$ac_func=yes"
4613 echo "configure: failed program was:" >&5
4614 cat conftest.$ac_ext >&5
4616 eval "ac_cv_func_$ac_func=no"
4620 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4621 echo "$ac_t""yes" 1>&6
4622 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4623 { test "$extra_verbose" = "yes" && cat << EOF
4624 Defining $ac_tr_func
4626 cat >> confdefs.h <<EOF
4627 #define $ac_tr_func 1
4632 echo "$ac_t""no" 1>&6
4636 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock
4637 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf
4638 test -z "$mail_locking" -a "$mail_use_locking" = "yes" && mail_locking=locking
4639 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF
4640 Defining MAIL_LOCK_LOCKF
4642 cat >> confdefs.h <<\EOF
4643 #define MAIL_LOCK_LOCKF 1
4647 elif test "$mail_locking" = "flock"; then { test "$extra_verbose" = "yes" && cat << \EOF
4648 Defining MAIL_LOCK_FLOCK
4650 cat >> confdefs.h <<\EOF
4651 #define MAIL_LOCK_FLOCK 1
4655 elif test "$mail_locking" = "locking"; then { test "$extra_verbose" = "yes" && cat << \EOF
4656 Defining MAIL_LOCK_LOCKING
4658 cat >> confdefs.h <<\EOF
4659 #define MAIL_LOCK_LOCKING 1
4663 else mail_locking="dot-locking"; { test "$extra_verbose" = "yes" && cat << \EOF
4664 Defining MAIL_LOCK_DOT
4666 cat >> confdefs.h <<\EOF
4667 #define MAIL_LOCK_DOT 1
4672 test "$mail_locking" = "lockf" -a "$ac_cv_func_lockf" != "yes" && \
4673 { echo "Error:" "lockf mail locking requested but not available." >&2; exit 1; }
4674 test "$mail_locking" = "flock" -a "$ac_cv_func_flock" != "yes" && \
4675 { echo "Error:" "flock mail locking requested but not available." >&2; exit 1; }
4676 test "$mail_locking" = "locking" -a "$ac_cv_func_locking" != "yes" && \
4677 { echo "Error:" "locking mail locking requested but not available." >&2; exit 1; }
4679 case "$opsys" in decosf*)
4681 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
4682 echo "configure:4683: checking for cma_open in -lpthreads" >&5
4683 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
4685 xe_check_libs=" -lpthreads "
4686 cat > conftest.$ac_ext <<EOF
4687 #line 4688 "configure"
4688 #include "confdefs.h"
4689 /* Override any gcc2 internal prototype to avoid an error. */
4690 /* We use char because int might match the return type of a gcc2
4691 builtin and then its argument prototype would still apply. */
4698 if { (eval echo configure:4699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4700 eval "ac_cv_lib_$ac_lib_var=yes"
4702 echo "configure: failed program was:" >&5
4703 cat conftest.$ac_ext >&5
4705 eval "ac_cv_lib_$ac_lib_var=no"
4710 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4711 echo "$ac_t""yes" 1>&6
4712 ac_tr_lib=HAVE_LIB`echo pthreads | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4713 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4714 { test "$extra_verbose" = "yes" && cat << EOF
4717 cat >> confdefs.h <<EOF
4718 #define $ac_tr_lib 1
4722 LIBS="-lpthreads $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpthreads\" to \$LIBS"; fi
4725 echo "$ac_t""no" 1>&6
4729 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \
4730 c_switch_site="$c_switch_site -threads" ;;
4733 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6
4734 echo "configure:4735: checking whether the -xildoff compiler flag is required" >&5
4735 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
4736 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ;
4737 then echo "$ac_t""no" 1>&6;
4738 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
4740 else echo "$ac_t""no" 1>&6
4743 if test "$opsys" = "sol2" && test "$OS_RELEASE" -ge 56; then
4744 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6
4745 echo "configure:4746: checking for \"-z ignore\" linker flag" >&5
4746 case "`ld -h 2>&1`" in
4747 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6
4748 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;;
4749 *) echo "$ac_t""no" 1>&6 ;;
4754 echo "checking "for specified window system"" 1>&6
4755 echo "configure:4756: checking "for specified window system"" >&5
4757 if test "$with_x11" != "no"; then
4758 test "$x_includes $x_libraries" != "NONE NONE" && \
4759 window_system=x11 with_x11=yes
4762 if test "$x_includes $x_libraries" = "NONE NONE" \
4763 -a -n "$OPENWINHOME" \
4764 -a "$OPENWINHOME" != "/usr/openwin" \
4765 -a -d "$OPENWINHOME"; then
4766 test -d "$OPENWINHOME/lib" && x_libraries="$OPENWINHOME/lib"
4767 test -d "$OPENWINHOME/include" && x_includes="$OPENWINHOME/include"
4768 test -d "$OPENWINHOME/share/include" && x_includes="$OPENWINHOME/share/include"
4771 if test "$x_includes" = "NONE"; then
4772 for dir in "/usr/X11" "/usr/X11R6"; do
4773 if test -d "$dir/include/X11"; then x_includes="$dir/include"; break; fi
4777 if test "$x_libraries" = "NONE"; then
4778 for dir in "/usr/X11/lib" "/usr/X11R6/lib" "/usr/lib/X11R6"; do
4779 if test -r "$dir/libX11.a"; then x_libraries="$dir"; break; fi
4783 # If we find X, set shell vars x_includes and x_libraries to the
4784 # paths, otherwise set no_x=yes.
4785 # Uses ac_ vars as temps to allow command line to override cache and checks.
4786 # --without-x overrides everything else, but does not touch the cache.
4787 echo $ac_n "checking for X""... $ac_c" 1>&6
4788 echo "configure:4789: checking for X" >&5
4790 # Check whether --with-x or --without-x was given.
4791 if test "${with_x+set}" = set; then
4796 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4797 if test "x$with_x" = xno; then
4798 # The user explicitly disabled X.
4801 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
4802 # Both variables are already set.
4806 # One or both of the vars are not set, and there is no cached value.
4807 ac_x_includes=NO ac_x_libraries=NO
4809 if mkdir conftestdir; then
4811 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
4812 cat > Imakefile <<'EOF'
4814 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4816 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
4817 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4818 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4819 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4820 for ac_extension in a so sl; do
4821 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
4822 test -f $ac_im_libdir/libX11.$ac_extension; then
4823 ac_im_usrlibdir=$ac_im_libdir; break
4826 # Screen out bogus values from the imake configuration. They are
4827 # bogus both because they are the default anyway, and because
4828 # using them would break gcc on systems where it needs fixed includes.
4829 case "$ac_im_incroot" in
4831 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
4833 case "$ac_im_usrlibdir" in
4835 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
4842 if test "$ac_x_includes" = NO; then
4843 # Guess where to find include files, by looking for this one X11 .h file.
4844 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
4846 # First, try using that file with no special directory specified.
4847 cat > conftest.$ac_ext <<EOF
4848 #line 4849 "configure"
4849 #include "confdefs.h"
4850 #include <$x_direct_test_include>
4852 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4853 { (eval echo configure:4854: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4854 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4855 if test -z "$ac_err"; then
4857 # We can compile using X headers with no special include directory.
4861 echo "configure: failed program was:" >&5
4862 cat conftest.$ac_ext >&5
4864 # Look for the header file in a standard set of common directories.
4865 # Check X11 before X11Rn because it is often a symlink to the current release.
4868 /usr/X11R6/include \
4869 /usr/X11R5/include \
4870 /usr/X11R4/include \
4873 /usr/include/X11R6 \
4874 /usr/include/X11R5 \
4875 /usr/include/X11R4 \
4877 /usr/local/X11/include \
4878 /usr/local/X11R6/include \
4879 /usr/local/X11R5/include \
4880 /usr/local/X11R4/include \
4882 /usr/local/include/X11 \
4883 /usr/local/include/X11R6 \
4884 /usr/local/include/X11R5 \
4885 /usr/local/include/X11R4 \
4889 /usr/XFree86/include/X11 \
4892 /usr/local/include \
4893 /usr/unsupported/include \
4894 /usr/athena/include \
4895 /usr/local/x11r5/include \
4896 /usr/lpp/Xamples/include \
4898 /usr/openwin/include \
4899 /usr/openwin/share/include \
4902 if test -r "$ac_dir/$x_direct_test_include"; then
4903 ac_x_includes=$ac_dir
4909 fi # $ac_x_includes = NO
4911 if test "$ac_x_libraries" = NO; then
4912 # Check for the libraries.
4914 test -z "$x_direct_test_library" && x_direct_test_library=Xt
4915 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
4917 # See if we find them without any special options.
4918 # Don't add to $LIBS permanently.
4919 ac_save_LIBS="$LIBS"
4920 LIBS="-l$x_direct_test_library $LIBS"
4921 cat > conftest.$ac_ext <<EOF
4922 #line 4923 "configure"
4923 #include "confdefs.h"
4926 ${x_direct_test_function}()
4929 if { (eval echo configure:4930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4931 LIBS="$ac_save_LIBS"
4932 # We can link X programs with no special library path.
4935 echo "configure: failed program was:" >&5
4936 cat conftest.$ac_ext >&5
4938 LIBS="$ac_save_LIBS"
4939 # First see if replacing the include by lib works.
4940 # Check X11 before X11Rn because it is often a symlink to the current release.
4941 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
4952 /usr/local/X11/lib \
4953 /usr/local/X11R6/lib \
4954 /usr/local/X11R5/lib \
4955 /usr/local/X11R4/lib \
4957 /usr/local/lib/X11 \
4958 /usr/local/lib/X11R6 \
4959 /usr/local/lib/X11R5 \
4960 /usr/local/lib/X11R4 \
4964 /usr/XFree86/lib/X11 \
4968 /usr/unsupported/lib \
4970 /usr/local/x11r5/lib \
4971 /usr/lpp/Xamples/lib \
4975 /usr/openwin/share/lib \
4978 for ac_extension in a so sl; do
4979 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
4980 ac_x_libraries=$ac_dir
4987 fi # $ac_x_libraries = NO
4989 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
4990 # Didn't find X anywhere. Cache the known absence of X.
4991 ac_cv_have_x="have_x=no"
4993 # Record where we found X for the cache.
4994 ac_cv_have_x="have_x=yes \
4995 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
4998 eval "$ac_cv_have_x"
5001 if test "$have_x" != yes; then
5002 echo "$ac_t""$have_x" 1>&6
5005 # If each of the values was on the command line, it overrides each guess.
5006 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5007 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5008 # Update the cache value to reflect the command line values.
5009 ac_cv_have_x="have_x=yes \
5010 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5011 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
5014 if test "$no_x" = yes; then
5015 # Not all programs may use this symbol, but it does not hurt to define it.
5016 { test "$extra_verbose" = "yes" && cat << \EOF
5017 Defining X_DISPLAY_MISSING
5019 cat >> confdefs.h <<\EOF
5020 #define X_DISPLAY_MISSING 1
5024 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5026 if test -n "$x_includes"; then
5027 X_CFLAGS="$X_CFLAGS -I$x_includes"
5030 # It would also be nice to do this for all -L options, not just this one.
5031 if test -n "$x_libraries"; then
5032 X_LIBS="$X_LIBS -L$x_libraries"
5033 # For Solaris; some versions of Sun CC require a space after -R and
5034 # others require no space. Words are not sufficient . . . .
5035 case "`(uname -sr) 2>/dev/null`" in
5037 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
5038 echo "configure:5039: checking whether -R must be followed by a space" >&5
5039 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
5040 cat > conftest.$ac_ext <<EOF
5041 #line 5042 "configure"
5042 #include "confdefs.h"
5048 if { (eval echo configure:5049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5052 echo "configure: failed program was:" >&5
5053 cat conftest.$ac_ext >&5
5058 if test $ac_R_nospace = yes; then
5059 echo "$ac_t""no" 1>&6
5060 X_LIBS="$X_LIBS -R$x_libraries"
5062 LIBS="$ac_xsave_LIBS -R $x_libraries"
5063 cat > conftest.$ac_ext <<EOF
5064 #line 5065 "configure"
5065 #include "confdefs.h"
5071 if { (eval echo configure:5072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5075 echo "configure: failed program was:" >&5
5076 cat conftest.$ac_ext >&5
5081 if test $ac_R_space = yes; then
5082 echo "$ac_t""yes" 1>&6
5083 X_LIBS="$X_LIBS -R $x_libraries"
5085 echo "$ac_t""neither works" 1>&6
5088 LIBS="$ac_xsave_LIBS"
5092 # Check for system-dependent libraries X programs must link with.
5093 # Do this before checking for the system-independent R6 libraries
5094 # (-lICE), since we may need -lsocket or whatever for X linking.
5096 if test "$ISC" = yes; then
5097 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5099 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
5100 # libraries were built with DECnet support. And karl@cs.umb.edu says
5101 # the Alpha needs dnet_stub (dnet does not exist).
5102 if test "$with_dnet" = "no" ; then
5103 ac_cv_lib_dnet_dnet_ntoa=no
5106 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
5107 echo "configure:5108: checking for dnet_ntoa in -ldnet" >&5
5108 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5110 xe_check_libs=" -ldnet "
5111 cat > conftest.$ac_ext <<EOF
5112 #line 5113 "configure"
5113 #include "confdefs.h"
5114 /* Override any gcc2 internal prototype to avoid an error. */
5115 /* We use char because int might match the return type of a gcc2
5116 builtin and then its argument prototype would still apply. */
5123 if { (eval echo configure:5124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5125 eval "ac_cv_lib_$ac_lib_var=yes"
5127 echo "configure: failed program was:" >&5
5128 cat conftest.$ac_ext >&5
5130 eval "ac_cv_lib_$ac_lib_var=no"
5135 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5136 echo "$ac_t""yes" 1>&6
5137 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5139 echo "$ac_t""no" 1>&6
5144 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5146 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
5147 echo "configure:5148: checking for dnet_ntoa in -ldnet_stub" >&5
5148 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5150 xe_check_libs=" -ldnet_stub "
5151 cat > conftest.$ac_ext <<EOF
5152 #line 5153 "configure"
5153 #include "confdefs.h"
5154 /* Override any gcc2 internal prototype to avoid an error. */
5155 /* We use char because int might match the return type of a gcc2
5156 builtin and then its argument prototype would still apply. */
5163 if { (eval echo configure:5164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5165 eval "ac_cv_lib_$ac_lib_var=yes"
5167 echo "configure: failed program was:" >&5
5168 cat conftest.$ac_ext >&5
5170 eval "ac_cv_lib_$ac_lib_var=no"
5175 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5176 echo "$ac_t""yes" 1>&6
5177 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5179 echo "$ac_t""no" 1>&6
5185 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5186 # to get the SysV transport functions.
5187 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
5189 # The nsl library prevents programs from opening the X display
5190 # on Irix 5.2, according to dickey@clark.net.
5191 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
5192 echo "configure:5193: checking for gethostbyname" >&5
5194 cat > conftest.$ac_ext <<EOF
5195 #line 5196 "configure"
5196 #include "confdefs.h"
5197 /* System header to define __stub macros and hopefully few prototypes,
5198 which can conflict with char gethostbyname(); below. */
5200 /* Override any gcc2 internal prototype to avoid an error. */
5201 /* We use char because int might match the return type of a gcc2
5202 builtin and then its argument prototype would still apply. */
5203 char gethostbyname();
5207 /* The GNU C library defines this for functions which it implements
5208 to always fail with ENOSYS. Some functions are actually named
5209 something starting with __ and the normal name is an alias. */
5210 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5218 if { (eval echo configure:5219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5220 eval "ac_cv_func_gethostbyname=yes"
5222 echo "configure: failed program was:" >&5
5223 cat conftest.$ac_ext >&5
5225 eval "ac_cv_func_gethostbyname=no"
5229 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
5230 echo "$ac_t""yes" 1>&6
5233 echo "$ac_t""no" 1>&6
5236 if test $ac_cv_func_gethostbyname = no; then
5238 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
5239 echo "configure:5240: checking for gethostbyname in -lnsl" >&5
5240 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
5242 xe_check_libs=" -lnsl "
5243 cat > conftest.$ac_ext <<EOF
5244 #line 5245 "configure"
5245 #include "confdefs.h"
5246 /* Override any gcc2 internal prototype to avoid an error. */
5247 /* We use char because int might match the return type of a gcc2
5248 builtin and then its argument prototype would still apply. */
5249 char gethostbyname();
5255 if { (eval echo configure:5256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5257 eval "ac_cv_lib_$ac_lib_var=yes"
5259 echo "configure: failed program was:" >&5
5260 cat conftest.$ac_ext >&5
5262 eval "ac_cv_lib_$ac_lib_var=no"
5267 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5268 echo "$ac_t""yes" 1>&6
5269 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5271 echo "$ac_t""no" 1>&6
5277 # lieder@skyler.mavd.honeywell.com says without -lsocket,
5278 # socket/setsockopt and other routines are undefined under SCO ODT
5279 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5280 # on later versions), says simon@lia.di.epfl.ch: it contains
5281 # gethostby* variants that don't use the nameserver (or something).
5282 # -lsocket must be given before -lnsl if both are needed.
5283 # We assume that if connect needs -lnsl, so does gethostbyname.
5284 echo $ac_n "checking for connect""... $ac_c" 1>&6
5285 echo "configure:5286: checking for connect" >&5
5287 cat > conftest.$ac_ext <<EOF
5288 #line 5289 "configure"
5289 #include "confdefs.h"
5290 /* System header to define __stub macros and hopefully few prototypes,
5291 which can conflict with char connect(); below. */
5293 /* Override any gcc2 internal prototype to avoid an error. */
5294 /* We use char because int might match the return type of a gcc2
5295 builtin and then its argument prototype would still apply. */
5300 /* The GNU C library defines this for functions which it implements
5301 to always fail with ENOSYS. Some functions are actually named
5302 something starting with __ and the normal name is an alias. */
5303 #if defined (__stub_connect) || defined (__stub___connect)
5311 if { (eval echo configure:5312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5313 eval "ac_cv_func_connect=yes"
5315 echo "configure: failed program was:" >&5
5316 cat conftest.$ac_ext >&5
5318 eval "ac_cv_func_connect=no"
5322 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
5323 echo "$ac_t""yes" 1>&6
5326 echo "$ac_t""no" 1>&6
5329 if test $ac_cv_func_connect = no; then
5331 xe_msg_checking="for connect in -lsocket"
5332 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
5333 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5334 echo "configure:5335: checking "$xe_msg_checking"" >&5
5335 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
5337 xe_check_libs=" -lsocket $X_EXTRA_LIBS"
5338 cat > conftest.$ac_ext <<EOF
5339 #line 5340 "configure"
5340 #include "confdefs.h"
5341 /* Override any gcc2 internal prototype to avoid an error. */
5342 /* We use char because int might match the return type of a gcc2
5343 builtin and then its argument prototype would still apply. */
5350 if { (eval echo configure:5351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5352 eval "ac_cv_lib_$ac_lib_var=yes"
5354 echo "configure: failed program was:" >&5
5355 cat conftest.$ac_ext >&5
5357 eval "ac_cv_lib_$ac_lib_var=no"
5362 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5363 echo "$ac_t""yes" 1>&6
5364 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5366 echo "$ac_t""no" 1>&6
5372 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
5373 echo $ac_n "checking for remove""... $ac_c" 1>&6
5374 echo "configure:5375: checking for remove" >&5
5376 cat > conftest.$ac_ext <<EOF
5377 #line 5378 "configure"
5378 #include "confdefs.h"
5379 /* System header to define __stub macros and hopefully few prototypes,
5380 which can conflict with char remove(); below. */
5382 /* Override any gcc2 internal prototype to avoid an error. */
5383 /* We use char because int might match the return type of a gcc2
5384 builtin and then its argument prototype would still apply. */
5389 /* The GNU C library defines this for functions which it implements
5390 to always fail with ENOSYS. Some functions are actually named
5391 something starting with __ and the normal name is an alias. */
5392 #if defined (__stub_remove) || defined (__stub___remove)
5400 if { (eval echo configure:5401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5402 eval "ac_cv_func_remove=yes"
5404 echo "configure: failed program was:" >&5
5405 cat conftest.$ac_ext >&5
5407 eval "ac_cv_func_remove=no"
5411 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
5412 echo "$ac_t""yes" 1>&6
5415 echo "$ac_t""no" 1>&6
5418 if test $ac_cv_func_remove = no; then
5420 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
5421 echo "configure:5422: checking for remove in -lposix" >&5
5422 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
5424 xe_check_libs=" -lposix "
5425 cat > conftest.$ac_ext <<EOF
5426 #line 5427 "configure"
5427 #include "confdefs.h"
5428 /* Override any gcc2 internal prototype to avoid an error. */
5429 /* We use char because int might match the return type of a gcc2
5430 builtin and then its argument prototype would still apply. */
5437 if { (eval echo configure:5438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5439 eval "ac_cv_lib_$ac_lib_var=yes"
5441 echo "configure: failed program was:" >&5
5442 cat conftest.$ac_ext >&5
5444 eval "ac_cv_lib_$ac_lib_var=no"
5449 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5450 echo "$ac_t""yes" 1>&6
5451 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5453 echo "$ac_t""no" 1>&6
5459 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5460 echo $ac_n "checking for shmat""... $ac_c" 1>&6
5461 echo "configure:5462: checking for shmat" >&5
5463 cat > conftest.$ac_ext <<EOF
5464 #line 5465 "configure"
5465 #include "confdefs.h"
5466 /* System header to define __stub macros and hopefully few prototypes,
5467 which can conflict with char shmat(); below. */
5469 /* Override any gcc2 internal prototype to avoid an error. */
5470 /* We use char because int might match the return type of a gcc2
5471 builtin and then its argument prototype would still apply. */
5476 /* The GNU C library defines this for functions which it implements
5477 to always fail with ENOSYS. Some functions are actually named
5478 something starting with __ and the normal name is an alias. */
5479 #if defined (__stub_shmat) || defined (__stub___shmat)
5487 if { (eval echo configure:5488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5489 eval "ac_cv_func_shmat=yes"
5491 echo "configure: failed program was:" >&5
5492 cat conftest.$ac_ext >&5
5494 eval "ac_cv_func_shmat=no"
5498 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
5499 echo "$ac_t""yes" 1>&6
5502 echo "$ac_t""no" 1>&6
5505 if test $ac_cv_func_shmat = no; then
5507 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
5508 echo "configure:5509: checking for shmat in -lipc" >&5
5509 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
5511 xe_check_libs=" -lipc "
5512 cat > conftest.$ac_ext <<EOF
5513 #line 5514 "configure"
5514 #include "confdefs.h"
5515 /* Override any gcc2 internal prototype to avoid an error. */
5516 /* We use char because int might match the return type of a gcc2
5517 builtin and then its argument prototype would still apply. */
5524 if { (eval echo configure:5525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5526 eval "ac_cv_lib_$ac_lib_var=yes"
5528 echo "configure: failed program was:" >&5
5529 cat conftest.$ac_ext >&5
5531 eval "ac_cv_lib_$ac_lib_var=no"
5536 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5537 echo "$ac_t""yes" 1>&6
5538 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5540 echo "$ac_t""no" 1>&6
5547 # Check for libraries that X11R6 Xt/Xaw programs need.
5548 ac_save_LDFLAGS="$LDFLAGS"
5549 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5550 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5551 # check for ICE first), but we must link in the order -lSM -lICE or
5552 # we get undefined symbols. So assume we have SM if we have ICE.
5553 # These have to be linked with before -lX11, unlike the other
5554 # libraries we check for below, so use a different variable.
5555 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
5557 xe_msg_checking="for IceConnectionNumber in -lICE"
5558 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
5559 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5560 echo "configure:5561: checking "$xe_msg_checking"" >&5
5561 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
5563 xe_check_libs=" -lICE $X_EXTRA_LIBS"
5564 cat > conftest.$ac_ext <<EOF
5565 #line 5566 "configure"
5566 #include "confdefs.h"
5567 /* Override any gcc2 internal prototype to avoid an error. */
5568 /* We use char because int might match the return type of a gcc2
5569 builtin and then its argument prototype would still apply. */
5570 char IceConnectionNumber();
5573 IceConnectionNumber()
5576 if { (eval echo configure:5577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5578 eval "ac_cv_lib_$ac_lib_var=yes"
5580 echo "configure: failed program was:" >&5
5581 cat conftest.$ac_ext >&5
5583 eval "ac_cv_lib_$ac_lib_var=no"
5588 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5589 echo "$ac_t""yes" 1>&6
5590 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5592 echo "$ac_t""no" 1>&6
5596 LDFLAGS="$ac_save_LDFLAGS"
5599 # Autoconf claims to find X library and include dirs for us.
5600 if test "$no_x" = "yes"
5601 then with_x11=no window_system=none HAVE_X_WINDOWS=no
5602 else with_x11=yes window_system=x11 HAVE_X_WINDOWS=yes
5607 yes ) window_system=x11 HAVE_X_WINDOWS=yes ;;
5608 no ) window_system=none HAVE_X_WINDOWS=no ;;
5611 if test "$with_x11" = "yes"; then
5612 { test "$extra_verbose" = "yes" && cat << \EOF
5613 Defining HAVE_X_WINDOWS
5615 cat >> confdefs.h <<\EOF
5616 #define HAVE_X_WINDOWS 1
5620 MAKE_SUBDIR="$MAKE_SUBDIR lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$MAKE_SUBDIR"; fi
5621 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$SRC_SUBDIR_DEPS"; fi
5623 for lib_dir in "/usr/dt/lib" "/usr/lib/Motif2.1" "/usr/lib/Motif1.2" "/usr/lib/Motif1.1"; do
5624 inc_dir=`echo $lib_dir | sed -e 's/lib/include/'`
5625 if test -d "$lib_dir" -a -d "$inc_dir"; then
5626 case "$x_libraries" in *"$lib_dir"* ) ;; *)
5627 x_libraries="$lib_dir $x_libraries"
5628 X_LIBS="-L${lib_dir} $X_LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-L${lib_dir}\" to \$X_LIBS"; fi ;;
5630 case "$x_includes" in "$inc_dir"* ) ;; *)
5631 x_includes="$inc_dir $x_includes"
5632 X_CFLAGS="-I${inc_dir} $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-I${inc_dir}\" to \$X_CFLAGS"; fi ;;
5637 for rel in "X11R6" "X11R5" "X11R4"; do
5638 lib_dir="/usr/contrib/$rel/lib" inc_dir="/usr/contrib/$rel/include"
5639 if test -d "$lib_dir" -a -d "$inc_dir"; then
5640 case "$x_libraries" in *"$lib_dir"* ) ;; *)
5641 x_libraries="$x_libraries $lib_dir"
5642 X_LIBS="$X_LIBS -L${lib_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L${lib_dir}\" to \$X_LIBS"; fi
5644 case "$x_includes" in "$inc_dir"* ) ;; *)
5645 x_includes="$x_includes $inc_dir"
5646 X_CFLAGS="$X_CFLAGS -I${inc_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-I${inc_dir}\" to \$X_CFLAGS"; fi
5651 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
5653 ld_switch_x_site="$X_LIBS"
5656 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
5657 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
5658 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
5660 runpath="" runpath_dirs=""
5661 if test -n "$LD_RUN_PATH"; then
5662 runpath="$LD_RUN_PATH"
5663 elif test "$GCC" = "yes"; then
5664 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
5665 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
5666 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
5667 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
5668 case "$arg" in P,* | -L* | -R* )
5669 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
5671 xe_runpath_dir="$dir"
5672 test "$xe_runpath_dir" != "/lib" -a \
5673 "$xe_runpath_dir" != "/usr/lib" -a \
5674 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
5675 eval "$xe_add_unique_runpath_dir"
5680 ld_switch_run="$ld_switch_run_save"
5683 for arg in $ld_switch_site $ld_switch_x_site; do
5684 case "$arg" in -L*) {
5685 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
5686 test "$xe_runpath_dir" != "/lib" -a \
5687 "$xe_runpath_dir" != "/usr/lib" -a \
5688 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
5689 eval "$xe_add_unique_runpath_dir"
5692 if test "$opsys $need_motif" = "sol2 yes"; then
5693 xe_runpath_dir="/opt/SUNWdt/lib";
5694 eval "$xe_add_unique_runpath_dir";
5697 if test -n "$runpath"; then
5698 ld_switch_run="${dash_r}${runpath}"
5700 if test "$GCC" = "yes"; then
5701 set x $ld_switch_run; shift; ld_switch_run=""
5702 while test -n "$1"; do
5704 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
5705 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
5707 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
5712 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
5717 if test "$extra_verbose" = "yes"; then
5718 echo; echo "X11 compilation variables:"
5719 for var in x_libraries x_includes X_CFLAGS X_LIBS X_PRE_LIBS X_EXTRA_LIBS; do eval "echo \"$var = '\$$var'\""; done
5724 if test "$x_includes" != NONE; then
5725 for i in $x_includes; do
5726 if test -d "$i/bitmaps"; then
5727 bitmapdirs="$i/bitmaps:$bitmapdirs"
5729 if test -d "$i/X11/bitmaps"; then
5730 bitmapdirs="$i/X11/bitmaps:$bitmapdirs"
5733 bitmapdirs=`echo "$bitmapdirs" | sed s/.$//`
5735 test ! -z "$bitmapdirs" && { test "$extra_verbose" = "yes" && cat << EOF
5736 Defining BITMAPDIR = "$bitmapdirs"
5738 cat >> confdefs.h <<EOF
5739 #define BITMAPDIR "$bitmapdirs"
5744 echo "checking for X defines extracted by xmkmf" 1>&6
5745 echo "configure:5746: checking for X defines extracted by xmkmf" >&5
5747 if mkdir conftestdir; then
5749 cat > Imakefile <<'EOF'
5751 @echo ${PROTO_DEFINES} ${STD_DEFINES}
5753 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5754 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5755 xmkmf_defines=`${MAKE-make} xetest 2>/dev/null | grep -v make`
5759 for word in $xmkmf_defines; do
5762 -D* ) word=`echo '' $word | sed -e 's:^ *-D::'`
5763 { test "$extra_verbose" = "yes" && cat << EOF
5766 cat >> confdefs.h <<EOF
5775 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
5776 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
5777 echo "configure:5778: checking for X11/Intrinsic.h" >&5
5779 cat > conftest.$ac_ext <<EOF
5780 #line 5781 "configure"
5781 #include "confdefs.h"
5782 #include <X11/Intrinsic.h>
5784 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5785 { (eval echo configure:5786: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5786 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5787 if test -z "$ac_err"; then
5789 eval "ac_cv_header_$ac_safe=yes"
5792 echo "configure: failed program was:" >&5
5793 cat conftest.$ac_ext >&5
5795 eval "ac_cv_header_$ac_safe=no"
5798 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5799 echo "$ac_t""yes" 1>&6
5802 echo "$ac_t""no" 1>&6
5803 { echo "configure: error: "Unable to find X11 header files."" 1>&2; exit 1; }
5808 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
5809 echo "configure:5810: checking for XOpenDisplay in -lX11" >&5
5810 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
5812 xe_check_libs=" -lX11 "
5813 cat > conftest.$ac_ext <<EOF
5814 #line 5815 "configure"
5815 #include "confdefs.h"
5816 /* Override any gcc2 internal prototype to avoid an error. */
5817 /* We use char because int might match the return type of a gcc2
5818 builtin and then its argument prototype would still apply. */
5819 char XOpenDisplay();
5825 if { (eval echo configure:5826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5827 eval "ac_cv_lib_$ac_lib_var=yes"
5829 echo "configure: failed program was:" >&5
5830 cat conftest.$ac_ext >&5
5832 eval "ac_cv_lib_$ac_lib_var=no"
5837 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5838 echo "$ac_t""yes" 1>&6
5841 echo "$ac_t""no" 1>&6
5845 if test "$have_lib_x11" != "yes"; then
5847 xe_msg_checking="for XGetFontProperty in -lX11"
5848 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout"
5849 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5850 echo "configure:5851: checking "$xe_msg_checking"" >&5
5851 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
5853 xe_check_libs=" -lX11 -b i486-linuxaout"
5854 cat > conftest.$ac_ext <<EOF
5855 #line 5856 "configure"
5856 #include "confdefs.h"
5857 /* Override any gcc2 internal prototype to avoid an error. */
5858 /* We use char because int might match the return type of a gcc2
5859 builtin and then its argument prototype would still apply. */
5860 char XGetFontProperty();
5866 if { (eval echo configure:5867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5868 eval "ac_cv_lib_$ac_lib_var=yes"
5870 echo "configure: failed program was:" >&5
5871 cat conftest.$ac_ext >&5
5873 eval "ac_cv_lib_$ac_lib_var=no"
5878 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5879 echo "$ac_t""yes" 1>&6
5880 ld_switch_x_site="-b i486-linuxaout $ld_switch_x_site"
5882 echo "$ac_t""no" 1>&6
5883 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
5889 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
5892 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
5893 echo "configure:5894: checking for XShapeSelectInput in -lXext" >&5
5894 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
5896 xe_check_libs=" -lXext "
5897 cat > conftest.$ac_ext <<EOF
5898 #line 5899 "configure"
5899 #include "confdefs.h"
5900 /* Override any gcc2 internal prototype to avoid an error. */
5901 /* We use char because int might match the return type of a gcc2
5902 builtin and then its argument prototype would still apply. */
5903 char XShapeSelectInput();
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_lib_$ac_lib_var=yes"
5913 echo "configure: failed program was:" >&5
5914 cat conftest.$ac_ext >&5
5916 eval "ac_cv_lib_$ac_lib_var=no"
5921 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5922 echo "$ac_t""yes" 1>&6
5923 libs_x="-lXext $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXext\" to \$libs_x"; fi
5925 echo "$ac_t""no" 1>&6
5931 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6
5932 echo "configure:5933: checking for XtOpenDisplay in -lXt" >&5
5933 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
5935 xe_check_libs=" -lXt "
5936 cat > conftest.$ac_ext <<EOF
5937 #line 5938 "configure"
5938 #include "confdefs.h"
5939 /* Override any gcc2 internal prototype to avoid an error. */
5940 /* We use char because int might match the return type of a gcc2
5941 builtin and then its argument prototype would still apply. */
5942 char XtOpenDisplay();
5948 if { (eval echo configure:5949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5950 eval "ac_cv_lib_$ac_lib_var=yes"
5952 echo "configure: failed program was:" >&5
5953 cat conftest.$ac_ext >&5
5955 eval "ac_cv_lib_$ac_lib_var=no"
5960 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5961 echo "$ac_t""yes" 1>&6
5962 libs_x="-lXt $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXt\" to \$libs_x"; fi
5964 echo "$ac_t""no" 1>&6
5965 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
5970 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6
5971 echo "configure:5972: checking the version of X11 being used" >&5
5972 cat > conftest.$ac_ext <<EOF
5973 #line 5974 "configure"
5974 #include "confdefs.h"
5975 #include <X11/Intrinsic.h>
5976 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; }
5978 if { (eval echo configure:5979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
5980 ./conftest foobar; x11_release=$?
5983 echo "configure: failed program was:" >&5
5984 cat conftest.$ac_ext >&5
5989 echo "$ac_t""R${x11_release}" 1>&6
5990 { test "$extra_verbose" = "yes" && cat << EOF
5991 Defining THIS_IS_X11R${x11_release}
5993 cat >> confdefs.h <<EOF
5994 #define THIS_IS_X11R${x11_release} 1
5999 for ac_hdr in X11/Xlocale.h
6001 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6002 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6003 echo "configure:6004: checking for $ac_hdr" >&5
6005 cat > conftest.$ac_ext <<EOF
6006 #line 6007 "configure"
6007 #include "confdefs.h"
6010 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6011 { (eval echo configure:6012: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6012 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6013 if test -z "$ac_err"; then
6015 eval "ac_cv_header_$ac_safe=yes"
6018 echo "configure: failed program was:" >&5
6019 cat conftest.$ac_ext >&5
6021 eval "ac_cv_header_$ac_safe=no"
6024 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6025 echo "$ac_t""yes" 1>&6
6026 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6027 { test "$extra_verbose" = "yes" && cat << EOF
6030 cat >> confdefs.h <<EOF
6031 #define $ac_tr_hdr 1
6036 echo "$ac_t""no" 1>&6
6041 echo $ac_n "checking for XFree86""... $ac_c" 1>&6
6042 echo "configure:6043: checking for XFree86" >&5
6043 if test -d "/usr/X386/include" -o \
6044 -f "/etc/XF86Config" -o \
6045 -f "/etc/X11/XF86Config" -o \
6046 -f "/usr/X11R6/lib/X11/XF86Config"; then
6047 echo "$ac_t""yes" 1>&6
6048 { test "$extra_verbose" = "yes" && cat << \EOF
6049 Defining HAVE_XFREE386
6051 cat >> confdefs.h <<\EOF
6052 #define HAVE_XFREE386 1
6057 echo "$ac_t""no" 1>&6
6060 test -z "$with_xmu" && {
6061 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6
6062 echo "configure:6063: checking for XmuReadBitmapDataFromFile in -lXmu" >&5
6063 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'`
6065 xe_check_libs=" -lXmu "
6066 cat > conftest.$ac_ext <<EOF
6067 #line 6068 "configure"
6068 #include "confdefs.h"
6069 /* Override any gcc2 internal prototype to avoid an error. */
6070 /* We use char because int might match the return type of a gcc2
6071 builtin and then its argument prototype would still apply. */
6072 char XmuReadBitmapDataFromFile();
6075 XmuReadBitmapDataFromFile()
6078 if { (eval echo configure:6079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6080 eval "ac_cv_lib_$ac_lib_var=yes"
6082 echo "configure: failed program was:" >&5
6083 cat conftest.$ac_ext >&5
6085 eval "ac_cv_lib_$ac_lib_var=no"
6090 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6091 echo "$ac_t""yes" 1>&6
6094 echo "$ac_t""no" 1>&6
6099 if test "$with_xmu" = "no"; then
6100 extra_objs="$extra_objs xmu.o" && if test "$extra_verbose" = "yes"; then
6101 echo " xemacs will be linked with \"xmu.o\""
6104 libs_x="-lXmu $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXmu\" to \$libs_x"; fi
6105 { test "$extra_verbose" = "yes" && cat << \EOF
6108 cat >> confdefs.h <<\EOF
6116 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
6117 echo "configure:6118: checking for main in -lXbsd" >&5
6118 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
6120 xe_check_libs=" -lXbsd "
6121 cat > conftest.$ac_ext <<EOF
6122 #line 6123 "configure"
6123 #include "confdefs.h"
6129 if { (eval echo configure:6130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6131 eval "ac_cv_lib_$ac_lib_var=yes"
6133 echo "configure: failed program was:" >&5
6134 cat conftest.$ac_ext >&5
6136 eval "ac_cv_lib_$ac_lib_var=no"
6141 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6142 echo "$ac_t""yes" 1>&6
6143 libs_x="-lXbsd $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXbsd\" to \$libs_x"; fi
6145 echo "$ac_t""no" 1>&6
6150 if test "$unexec" = "unexaix.o" -a "$x11_release" = "6"; then
6151 if test "$GCC" = "yes"; then
6152 X_CFLAGS="-mthreads $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$X_CFLAGS"; fi
6153 libs_x="-mthreads $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$libs_x"; fi
6156 "xlc" ) CC="xlc_r" ;;
6157 "xlC" ) CC="xlC_r" ;;
6164 if test "$with_msw" != "no"; then
6165 echo "checking for MS-Windows" 1>&6
6166 echo "configure:6167: checking for MS-Windows" >&5
6168 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6
6169 echo "configure:6170: checking for main in -lgdi32" >&5
6170 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'`
6172 xe_check_libs=" -lgdi32 "
6173 cat > conftest.$ac_ext <<EOF
6174 #line 6175 "configure"
6175 #include "confdefs.h"
6181 if { (eval echo configure:6182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6183 eval "ac_cv_lib_$ac_lib_var=yes"
6185 echo "configure: failed program was:" >&5
6186 cat conftest.$ac_ext >&5
6188 eval "ac_cv_lib_$ac_lib_var=no"
6193 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6194 echo "$ac_t""yes" 1>&6
6197 echo "$ac_t""no" 1>&6
6201 if test "$with_msw" = "yes"; then
6202 { test "$extra_verbose" = "yes" && cat << \EOF
6203 Defining HAVE_MS_WINDOWS
6205 cat >> confdefs.h <<\EOF
6206 #define HAVE_MS_WINDOWS 1
6210 install_pp="$blddir/lib-src/installexe.sh"
6211 libs_system="$libs_system -lshell32 -lgdi32 -luser32 -lcomctl32" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lshell32 -lgdi32 -luser32 -lcomctl32\" to \$libs_system"; fi
6212 test "$with_dragndrop" != no && dragndrop_proto="$dragndrop_proto msw" && if test "$extra_verbose" = "yes"; then echo " Appending \"msw\" to \$dragndrop_proto"; fi
6213 if test "$window_system" != x11; then
6215 test "$with_scrollbars" != "no" && with_scrollbars=msw \
6216 && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
6217 echo " xemacs will be linked with \"scrollbar-msw.o\""
6219 test "$with_menubars" != "no" && with_menubars=msw \
6220 && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
6221 echo " xemacs will be linked with \"menubar-msw.o\""
6223 test "$with_toolbars" != "no" && with_toolbars=msw \
6224 && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
6225 echo " xemacs will be linked with \"toolbar-msw.o\""
6227 test "$with_dialogs" != "no" && with_dialogs=msw \
6228 && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
6229 echo " xemacs will be linked with \"dialog-msw.o\""
6231 test "$with_widgets" != "no" && with_widgets=msw
6233 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
6234 echo " xemacs will be linked with \"scrollbar-msw.o\""
6236 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
6237 echo " xemacs will be linked with \"menubar-msw.o\""
6239 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
6240 echo " xemacs will be linked with \"toolbar-msw.o\""
6242 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
6243 echo " xemacs will be linked with \"dialog-msw.o\""
6246 cat > conftest.$ac_ext <<EOF
6247 #line 6248 "configure"
6248 #include "confdefs.h"
6250 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; }
6252 if { (eval echo configure:6253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6254 { test "$extra_verbose" = "yes" && cat << \EOF
6255 Defining HAVE_MSG_SELECT
6257 cat >> confdefs.h <<\EOF
6258 #define HAVE_MSG_SELECT 1
6264 echo "configure: failed program was:" >&5
6265 cat conftest.$ac_ext >&5
6269 with_file_coding=yes
6270 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
6271 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\""
6278 test -z "$window_system" && window_system="none"
6280 if test "$window_system" = "none"; then
6281 for feature in menubars scrollbars toolbars dialogs dragndrop xface
6283 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
6284 echo "configure: warning: --with-$feature ignored: Not valid without window system support" 1>&2
6286 eval "with_${feature}=no"
6289 test -z "$with_toolbars" && with_toolbars=yes
6292 if test "$with_msw" != "yes"; then
6293 for feature in MARTIN_IS_CLUELESS_ABOUT_MSW_FEATURES
6295 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
6296 echo "configure: warning: --with-$feature ignored: Not valid without MS-Windows support" 1>&2
6298 eval "with_${feature}=no"
6304 if test "$with_x11" != "yes"; then
6305 for feature in tooltalk cde offix wmcommand xim xmu nas_sound
6307 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
6308 echo "configure: warning: --with-$feature ignored: Not valid without X support" 1>&2
6310 eval "with_${feature}=no"
6316 case "$window_system" in
6317 x11 ) HAVE_X_WINDOWS=yes; echo " Using X11." ;;
6318 msw ) HAVE_X_WINDOWS=no ; echo " Using MS-Windows." ;;
6319 none ) HAVE_X_WINDOWS=no ; echo " Using no window system." ;;
6322 case "$x_libraries" in *X11R4* )
6323 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h"
6324 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h"
6327 echo "checking for WM_COMMAND option" 1>&6
6328 echo "configure:6329: checking for WM_COMMAND option" >&5;
6329 if test "$with_wmcommand" != "no"; then
6330 { test "$extra_verbose" = "yes" && cat << \EOF
6331 Defining HAVE_WMCOMMAND
6333 cat >> confdefs.h <<\EOF
6334 #define HAVE_WMCOMMAND 1
6340 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
6341 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'`
6342 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
6343 echo "configure:6344: checking for X11/Xauth.h" >&5
6345 cat > conftest.$ac_ext <<EOF
6346 #line 6347 "configure"
6347 #include "confdefs.h"
6348 #include <X11/Xauth.h>
6350 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6351 { (eval echo configure:6352: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6352 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6353 if test -z "$ac_err"; then
6355 eval "ac_cv_header_$ac_safe=yes"
6358 echo "configure: failed program was:" >&5
6359 cat conftest.$ac_ext >&5
6361 eval "ac_cv_header_$ac_safe=no"
6364 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6365 echo "$ac_t""yes" 1>&6
6368 echo "$ac_t""no" 1>&6
6372 test -z "$with_xauth" && {
6373 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
6374 echo "configure:6375: checking for XauGetAuthByAddr in -lXau" >&5
6375 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
6377 xe_check_libs=" -lXau "
6378 cat > conftest.$ac_ext <<EOF
6379 #line 6380 "configure"
6380 #include "confdefs.h"
6381 /* Override any gcc2 internal prototype to avoid an error. */
6382 /* We use char because int might match the return type of a gcc2
6383 builtin and then its argument prototype would still apply. */
6384 char XauGetAuthByAddr();
6390 if { (eval echo configure:6391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6392 eval "ac_cv_lib_$ac_lib_var=yes"
6394 echo "configure: failed program was:" >&5
6395 cat conftest.$ac_ext >&5
6397 eval "ac_cv_lib_$ac_lib_var=no"
6402 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6403 echo "$ac_t""yes" 1>&6
6406 echo "$ac_t""no" 1>&6
6411 test -z "$with_xauth" && with_xauth=yes
6412 if test "$with_xauth" = "yes"; then
6413 { test "$extra_verbose" = "yes" && cat << \EOF
6416 cat >> confdefs.h <<\EOF
6417 #define HAVE_XAUTH 1
6423 for W in $X_EXTRA_LIBS -lXau $libs_x $X_PRE_LIBS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
6431 if test "$with_tooltalk" != "no" ; then
6432 for dir in "" "Tt/" "desktop/" ; do
6433 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
6434 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
6435 echo "configure:6436: checking for ${dir}tt_c.h" >&5
6437 cat > conftest.$ac_ext <<EOF
6438 #line 6439 "configure"
6439 #include "confdefs.h"
6440 #include <${dir}tt_c.h>
6442 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6443 { (eval echo configure:6444: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6444 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6445 if test -z "$ac_err"; then
6447 eval "ac_cv_header_$ac_safe=yes"
6450 echo "configure: failed program was:" >&5
6451 cat conftest.$ac_ext >&5
6453 eval "ac_cv_header_$ac_safe=no"
6456 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6457 echo "$ac_t""yes" 1>&6
6458 tt_c_h_path="${dir}tt_c.h"; break
6460 echo "$ac_t""no" 1>&6
6464 if test -z "$tt_c_h_path"; then
6465 if test "$with_tooltalk" = "yes"; then
6466 (echo "$progname: Usage error:"
6467 echo " " "Unable to find required tooltalk header files."
6468 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
6473 if test "$with_tooltalk" != "no" ; then
6474 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
6476 xe_msg_checking="for tt_message_create in -ltt"
6477 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
6478 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6479 echo "configure:6480: checking "$xe_msg_checking"" >&5
6480 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
6482 xe_check_libs=" -ltt $extra_libs"
6483 cat > conftest.$ac_ext <<EOF
6484 #line 6485 "configure"
6485 #include "confdefs.h"
6486 /* Override any gcc2 internal prototype to avoid an error. */
6487 /* We use char because int might match the return type of a gcc2
6488 builtin and then its argument prototype would still apply. */
6489 char tt_message_create();
6495 if { (eval echo configure:6496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6497 eval "ac_cv_lib_$ac_lib_var=yes"
6499 echo "configure: failed program was:" >&5
6500 cat conftest.$ac_ext >&5
6502 eval "ac_cv_lib_$ac_lib_var=no"
6507 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6508 echo "$ac_t""yes" 1>&6
6509 tt_libs="-ltt $extra_libs"; break
6511 echo "$ac_t""no" 1>&6
6517 if test -z "$tt_libs"; then
6518 if test "$with_tooltalk" = "yes"; then
6519 (echo "$progname: Usage error:"
6520 echo " " "Unable to find required tooltalk libraries."
6521 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
6526 test -z "$with_tooltalk" && with_tooltalk=yes
6527 if test "$with_tooltalk" = "yes"; then
6528 { test "$extra_verbose" = "yes" && cat << \EOF
6531 cat >> confdefs.h <<\EOF
6536 { test "$extra_verbose" = "yes" && cat << EOF
6537 Defining TT_C_H_PATH = "$tt_c_h_path"
6539 cat >> confdefs.h <<EOF
6540 #define TT_C_H_PATH "$tt_c_h_path"
6544 libs_x="$tt_libs $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$tt_libs\" to \$libs_x"; fi
6545 extra_objs="$extra_objs tooltalk.o" && if test "$extra_verbose" = "yes"; then
6546 echo " xemacs will be linked with \"tooltalk.o\""
6550 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'`
6551 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
6552 echo "configure:6553: checking for Dt/Dt.h" >&5
6554 cat > conftest.$ac_ext <<EOF
6555 #line 6556 "configure"
6556 #include "confdefs.h"
6559 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6560 { (eval echo configure:6561: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6561 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6562 if test -z "$ac_err"; then
6564 eval "ac_cv_header_$ac_safe=yes"
6567 echo "configure: failed program was:" >&5
6568 cat conftest.$ac_ext >&5
6570 eval "ac_cv_header_$ac_safe=no"
6573 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6574 echo "$ac_t""yes" 1>&6
6577 echo "$ac_t""no" 1>&6
6581 test -z "$with_cde" && {
6582 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
6583 echo "configure:6584: checking for DtDndDragStart in -lDtSvc" >&5
6584 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
6586 xe_check_libs=" -lDtSvc "
6587 cat > conftest.$ac_ext <<EOF
6588 #line 6589 "configure"
6589 #include "confdefs.h"
6590 /* Override any gcc2 internal prototype to avoid an error. */
6591 /* We use char because int might match the return type of a gcc2
6592 builtin and then its argument prototype would still apply. */
6593 char DtDndDragStart();
6599 if { (eval echo configure:6600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6601 eval "ac_cv_lib_$ac_lib_var=yes"
6603 echo "configure: failed program was:" >&5
6604 cat conftest.$ac_ext >&5
6606 eval "ac_cv_lib_$ac_lib_var=no"
6611 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6612 echo "$ac_t""yes" 1>&6
6615 echo "$ac_t""no" 1>&6
6620 test -z "$with_cde" && with_cde=yes
6621 if test "$with_dragndrop" = no; then
6622 echo "configure: warning: No CDE without generic Drag'n'Drop support" 1>&2
6625 if test "$with_cde" = "yes" ; then
6626 { test "$extra_verbose" = "yes" && cat << \EOF
6629 cat >> confdefs.h <<\EOF
6634 libs_x="-lDtSvc $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lDtSvc\" to \$libs_x"; fi
6635 dragndrop_proto="$dragndrop_proto CDE" && if test "$extra_verbose" = "yes"; then echo " Appending \"CDE\" to \$dragndrop_proto"; fi
6636 with_tooltalk=yes # CDE requires Tooltalk
6637 need_motif=yes # CDE requires Motif
6640 test "$window_system" != "x11" && with_offix=no
6641 if test "$with_xmu" != yes -a "$with_x11" = yes; then
6642 echo "configure: warning: No OffiX without real Xmu support" 1>&2
6645 if test "$with_dragndrop" = no; then
6646 echo "configure: warning: No OffiX without generic Drag'n'Drop support" 1>&2
6649 if test "$with_cde" = yes; then
6650 echo "configure: warning: CDE already found, disabling OffiX support" 1>&2
6653 test -z "$with_offix" && with_offix=no
6654 if test "$with_offix" = "yes"; then
6655 { test "$extra_verbose" = "yes" && cat << \EOF
6656 Defining HAVE_OFFIX_DND
6658 cat >> confdefs.h <<\EOF
6659 #define HAVE_OFFIX_DND 1
6663 dnd_objs="$dnd_objs offix.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"offix.o\" to \$dnd_objs"; fi
6664 dragndrop_proto="$dragndrop_proto OffiX" && if test "$extra_verbose" = "yes"; then echo " Appending \"OffiX\" to \$dragndrop_proto"; fi
6667 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6
6668 echo "configure:6669: checking if drag and drop API is needed" >&5
6669 if test "$with_dragndrop" != "no" ; then
6670 if test -n "$dragndrop_proto" ; then
6672 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6
6673 { test "$extra_verbose" = "yes" && cat << \EOF
6674 Defining HAVE_DRAGNDROP
6676 cat >> confdefs.h <<\EOF
6677 #define HAVE_DRAGNDROP 1
6681 extra_objs="$extra_objs dragdrop.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"dragdrop.o\" to \$extra_objs"; fi
6684 echo "$ac_t""no" 1>&6
6688 echo "checking for LDAP" 1>&6
6689 echo "configure:6690: checking for LDAP" >&5
6690 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'`
6691 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6
6692 echo "configure:6693: checking for ldap.h" >&5
6694 cat > conftest.$ac_ext <<EOF
6695 #line 6696 "configure"
6696 #include "confdefs.h"
6699 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6700 { (eval echo configure:6701: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6701 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6702 if test -z "$ac_err"; then
6704 eval "ac_cv_header_$ac_safe=yes"
6707 echo "configure: failed program was:" >&5
6708 cat conftest.$ac_ext >&5
6710 eval "ac_cv_header_$ac_safe=no"
6713 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6714 echo "$ac_t""yes" 1>&6
6717 echo "$ac_t""no" 1>&6
6721 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'`
6722 echo $ac_n "checking for lber.h""... $ac_c" 1>&6
6723 echo "configure:6724: checking for lber.h" >&5
6725 cat > conftest.$ac_ext <<EOF
6726 #line 6727 "configure"
6727 #include "confdefs.h"
6730 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6731 { (eval echo configure:6732: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6732 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6733 if test -z "$ac_err"; then
6735 eval "ac_cv_header_$ac_safe=yes"
6738 echo "configure: failed program was:" >&5
6739 cat conftest.$ac_ext >&5
6741 eval "ac_cv_header_$ac_safe=no"
6744 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6745 echo "$ac_t""yes" 1>&6
6748 echo "$ac_t""no" 1>&6
6752 if test "$with_ldap" != "no"; then
6754 echo $ac_n "checking for ldap_search in -lldap""... $ac_c" 1>&6
6755 echo "configure:6756: checking for ldap_search in -lldap" >&5
6756 ac_lib_var=`echo ldap'_'ldap_search | sed 'y%./+-%__p_%'`
6758 xe_check_libs=" -lldap "
6759 cat > conftest.$ac_ext <<EOF
6760 #line 6761 "configure"
6761 #include "confdefs.h"
6762 /* Override any gcc2 internal prototype to avoid an error. */
6763 /* We use char because int might match the return type of a gcc2
6764 builtin and then its argument prototype would still apply. */
6771 if { (eval echo configure:6772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6773 eval "ac_cv_lib_$ac_lib_var=yes"
6775 echo "configure: failed program was:" >&5
6776 cat conftest.$ac_ext >&5
6778 eval "ac_cv_lib_$ac_lib_var=no"
6783 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6784 echo "$ac_t""yes" 1>&6
6785 with_ldap_nolber=yes
6787 echo "$ac_t""no" 1>&6
6792 test "$with_ldap_nolber" = "no" && {
6793 xe_msg_checking="for ldap_open in -lldap"
6794 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber"
6795 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6796 echo "configure:6797: checking "$xe_msg_checking"" >&5
6797 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
6799 xe_check_libs=" -lldap -llber"
6800 cat > conftest.$ac_ext <<EOF
6801 #line 6802 "configure"
6802 #include "confdefs.h"
6803 /* Override any gcc2 internal prototype to avoid an error. */
6804 /* We use char because int might match the return type of a gcc2
6805 builtin and then its argument prototype would still apply. */
6812 if { (eval echo configure:6813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6814 eval "ac_cv_lib_$ac_lib_var=yes"
6816 echo "configure: failed program was:" >&5
6817 cat conftest.$ac_ext >&5
6819 eval "ac_cv_lib_$ac_lib_var=no"
6824 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6825 echo "$ac_t""yes" 1>&6
6828 echo "$ac_t""no" 1>&6
6833 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" && {
6834 xe_msg_checking="for ldap_open in -lldap"
6835 test -n "-llber -lkrb" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb"
6836 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6837 echo "configure:6838: checking "$xe_msg_checking"" >&5
6838 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
6840 xe_check_libs=" -lldap -llber -lkrb"
6841 cat > conftest.$ac_ext <<EOF
6842 #line 6843 "configure"
6843 #include "confdefs.h"
6844 /* Override any gcc2 internal prototype to avoid an error. */
6845 /* We use char because int might match the return type of a gcc2
6846 builtin and then its argument prototype would still apply. */
6853 if { (eval echo configure:6854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6855 eval "ac_cv_lib_$ac_lib_var=yes"
6857 echo "configure: failed program was:" >&5
6858 cat conftest.$ac_ext >&5
6860 eval "ac_cv_lib_$ac_lib_var=no"
6865 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6866 echo "$ac_t""yes" 1>&6
6869 echo "$ac_t""no" 1>&6
6874 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" -a "$with_ldap_krb" = "no" && {
6875 xe_msg_checking="for ldap_open in -lldap"
6876 test -n "-llber -lkrb -ldes" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb -ldes"
6877 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6878 echo "configure:6879: checking "$xe_msg_checking"" >&5
6879 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
6881 xe_check_libs=" -lldap -llber -lkrb -ldes"
6882 cat > conftest.$ac_ext <<EOF
6883 #line 6884 "configure"
6884 #include "confdefs.h"
6885 /* Override any gcc2 internal prototype to avoid an error. */
6886 /* We use char because int might match the return type of a gcc2
6887 builtin and then its argument prototype would still apply. */
6894 if { (eval echo configure:6895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6896 eval "ac_cv_lib_$ac_lib_var=yes"
6898 echo "configure: failed program was:" >&5
6899 cat conftest.$ac_ext >&5
6901 eval "ac_cv_lib_$ac_lib_var=no"
6906 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6907 echo "$ac_t""yes" 1>&6
6908 with_ldap_krbdes=yes
6910 echo "$ac_t""no" 1>&6
6915 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
6917 if test "$with_ldap" = "yes"; then
6918 { test "$extra_verbose" = "yes" && cat << \EOF
6921 cat >> confdefs.h <<\EOF
6926 extra_objs="$extra_objs eldap.o" && if test "$extra_verbose" = "yes"; then
6927 echo " xemacs will be linked with \"eldap.o\""
6929 if test "$with_ldap_nolber" = "yes" ; then
6930 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
6932 if test "$with_ldap_krb" = "yes" ; then
6933 LIBS="-lkrb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$LIBS"; fi
6935 if test "$with_ldap_krbdes" = "yes" ; then
6936 LIBS="-ldes $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldes\" to \$LIBS"; fi
6937 LIBS="-lkrb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$LIBS"; fi
6939 LIBS="-llber $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-llber\" to \$LIBS"; fi
6940 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
6942 for ac_func in ldap_set_option ldap_get_lderrno ldap_result2error ldap_parse_result
6944 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6945 echo "configure:6946: checking for $ac_func" >&5
6947 cat > conftest.$ac_ext <<EOF
6948 #line 6949 "configure"
6949 #include "confdefs.h"
6950 /* System header to define __stub macros and hopefully few prototypes,
6951 which can conflict with char $ac_func(); below. */
6953 /* Override any gcc2 internal prototype to avoid an error. */
6954 /* We use char because int might match the return type of a gcc2
6955 builtin and then its argument prototype would still apply. */
6960 /* The GNU C library defines this for functions which it implements
6961 to always fail with ENOSYS. Some functions are actually named
6962 something starting with __ and the normal name is an alias. */
6963 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6971 if { (eval echo configure:6972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6973 eval "ac_cv_func_$ac_func=yes"
6975 echo "configure: failed program was:" >&5
6976 cat conftest.$ac_ext >&5
6978 eval "ac_cv_func_$ac_func=no"
6982 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6983 echo "$ac_t""yes" 1>&6
6984 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6985 { test "$extra_verbose" = "yes" && cat << EOF
6986 Defining $ac_tr_func
6988 cat >> confdefs.h <<EOF
6989 #define $ac_tr_func 1
6994 echo "$ac_t""no" 1>&6
7001 if test "$window_system" != "none"; then
7002 echo "checking for graphics libraries" 1>&6
7003 echo "configure:7004: checking for graphics libraries" >&5
7006 if test -z "$with_xpm"; then
7007 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6
7008 echo "configure:7009: checking for Xpm - no older than 3.4f" >&5
7010 cat > conftest.$ac_ext <<EOF
7011 #line 7012 "configure"
7012 #include "confdefs.h"
7013 #include <X11/xpm.h>
7014 int main(int c, char **v) {
7016 XpmIncludeVersion != XpmLibraryVersion() ? 1 :
7017 XpmIncludeVersion < 30406 ? 2 : 0 ;}
7019 if { (eval echo configure:7020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
7021 ./conftest dummy_arg; xpm_status=$?;
7022 if test "$xpm_status" = "0"; then
7026 if test "$xpm_status" = "1"; then
7027 xpm_problem="Xpm library version and header file version don't match!"
7028 elif test "$xpm_status" = "2"; then
7029 xpm_problem="Xpm library version is too old!"
7031 xpm_problem="Internal xpm detection logic error!"
7034 *** WARNING *** $xpm_problem
7035 I'm not touching that with a 10-foot pole!
7036 If you really want to use the installed version of Xpm, rerun
7037 configure and add '--with-xpm=yes', but don't blame me if XEmacs crashes!"
7041 echo "configure: failed program was:" >&5
7042 cat conftest.$ac_ext >&5
7048 echo "$ac_t""$with_xpm" 1>&6
7050 if test "$with_xpm" = "yes"; then
7051 { test "$extra_verbose" = "yes" && cat << \EOF
7054 cat >> confdefs.h <<\EOF
7059 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
7060 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6
7061 echo "configure:7062: checking for \"FOR_MSW\" xpm" >&5
7063 cat > conftest.$ac_ext <<EOF
7064 #line 7065 "configure"
7065 #include "confdefs.h"
7068 XpmCreatePixmapFromData()
7071 if { (eval echo configure:7072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7075 echo "configure: failed program was:" >&5
7076 cat conftest.$ac_ext >&5
7082 echo "$ac_t""$xpm_for_msw" 1>&6
7083 if test "$xpm_for_msw" = "yes"; then
7084 { test "$extra_verbose" = "yes" && cat << \EOF
7087 cat >> confdefs.h <<\EOF
7095 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
7096 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
7097 echo "configure:7098: checking for compface.h" >&5
7099 cat > conftest.$ac_ext <<EOF
7100 #line 7101 "configure"
7101 #include "confdefs.h"
7102 #include <compface.h>
7104 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7105 { (eval echo configure:7106: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7106 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7107 if test -z "$ac_err"; then
7109 eval "ac_cv_header_$ac_safe=yes"
7112 echo "configure: failed program was:" >&5
7113 cat conftest.$ac_ext >&5
7115 eval "ac_cv_header_$ac_safe=no"
7118 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7119 echo "$ac_t""yes" 1>&6
7122 echo "$ac_t""no" 1>&6
7126 test -z "$with_xface" && {
7127 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
7128 echo "configure:7129: checking for UnGenFace in -lcompface" >&5
7129 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
7131 xe_check_libs=" -lcompface "
7132 cat > conftest.$ac_ext <<EOF
7133 #line 7134 "configure"
7134 #include "confdefs.h"
7135 /* Override any gcc2 internal prototype to avoid an error. */
7136 /* We use char because int might match the return type of a gcc2
7137 builtin and then its argument prototype would still apply. */
7144 if { (eval echo configure:7145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7146 eval "ac_cv_lib_$ac_lib_var=yes"
7148 echo "configure: failed program was:" >&5
7149 cat conftest.$ac_ext >&5
7151 eval "ac_cv_lib_$ac_lib_var=no"
7156 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7157 echo "$ac_t""yes" 1>&6
7160 echo "$ac_t""no" 1>&6
7165 test -z "$with_xface" && with_xface=yes
7166 if test "$with_xface" = "yes"; then
7167 { test "$extra_verbose" = "yes" && cat << \EOF
7170 cat >> confdefs.h <<\EOF
7171 #define HAVE_XFACE 1
7175 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi
7178 if test "$with_gif" != "no"; then
7180 { test "$extra_verbose" = "yes" && cat << \EOF
7183 cat >> confdefs.h <<\EOF
7188 extra_objs="$extra_objs dgif_lib.o gif_io.o" && if test "$extra_verbose" = "yes"; then
7189 echo " xemacs will be linked with \"dgif_lib.o gif_io.o\""
7193 if test "$with_png $with_tiff" != "no no"; then
7195 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6
7196 echo "configure:7197: checking for inflate in -lc" >&5
7197 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'`
7199 xe_check_libs=" -lc "
7200 cat > conftest.$ac_ext <<EOF
7201 #line 7202 "configure"
7202 #include "confdefs.h"
7203 /* Override any gcc2 internal prototype to avoid an error. */
7204 /* We use char because int might match the return type of a gcc2
7205 builtin and then its argument prototype would still apply. */
7212 if { (eval echo configure:7213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7214 eval "ac_cv_lib_$ac_lib_var=yes"
7216 echo "configure: failed program was:" >&5
7217 cat conftest.$ac_ext >&5
7219 eval "ac_cv_lib_$ac_lib_var=no"
7224 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7225 echo "$ac_t""yes" 1>&6
7228 echo "$ac_t""no" 1>&6
7230 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
7231 echo "configure:7232: checking for inflate in -lz" >&5
7232 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
7234 xe_check_libs=" -lz "
7235 cat > conftest.$ac_ext <<EOF
7236 #line 7237 "configure"
7237 #include "confdefs.h"
7238 /* Override any gcc2 internal prototype to avoid an error. */
7239 /* We use char because int might match the return type of a gcc2
7240 builtin and then its argument prototype would still apply. */
7247 if { (eval echo configure:7248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7249 eval "ac_cv_lib_$ac_lib_var=yes"
7251 echo "configure: failed program was:" >&5
7252 cat conftest.$ac_ext >&5
7254 eval "ac_cv_lib_$ac_lib_var=no"
7259 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7260 echo "$ac_t""yes" 1>&6
7261 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi
7263 echo "$ac_t""no" 1>&6
7265 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6
7266 echo "configure:7267: checking for inflate in -lgz" >&5
7267 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'`
7269 xe_check_libs=" -lgz "
7270 cat > conftest.$ac_ext <<EOF
7271 #line 7272 "configure"
7272 #include "confdefs.h"
7273 /* Override any gcc2 internal prototype to avoid an error. */
7274 /* We use char because int might match the return type of a gcc2
7275 builtin and then its argument prototype would still apply. */
7282 if { (eval echo configure:7283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7284 eval "ac_cv_lib_$ac_lib_var=yes"
7286 echo "configure: failed program was:" >&5
7287 cat conftest.$ac_ext >&5
7289 eval "ac_cv_lib_$ac_lib_var=no"
7294 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7295 echo "$ac_t""yes" 1>&6
7296 libs_x="-lgz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgz\" to \$libs_x"; fi
7298 echo "$ac_t""no" 1>&6
7310 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
7311 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
7312 echo "configure:7313: checking for jpeglib.h" >&5
7314 cat > conftest.$ac_ext <<EOF
7315 #line 7316 "configure"
7316 #include "confdefs.h"
7317 #include <jpeglib.h>
7319 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7320 { (eval echo configure:7321: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7321 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7322 if test -z "$ac_err"; then
7324 eval "ac_cv_header_$ac_safe=yes"
7327 echo "configure: failed program was:" >&5
7328 cat conftest.$ac_ext >&5
7330 eval "ac_cv_header_$ac_safe=no"
7333 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7334 echo "$ac_t""yes" 1>&6
7337 echo "$ac_t""no" 1>&6
7341 test -z "$with_jpeg" && {
7342 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6
7343 echo "configure:7344: checking for jpeg_destroy_decompress in -ljpeg" >&5
7344 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'`
7346 xe_check_libs=" -ljpeg "
7347 cat > conftest.$ac_ext <<EOF
7348 #line 7349 "configure"
7349 #include "confdefs.h"
7350 /* Override any gcc2 internal prototype to avoid an error. */
7351 /* We use char because int might match the return type of a gcc2
7352 builtin and then its argument prototype would still apply. */
7353 char jpeg_destroy_decompress();
7356 jpeg_destroy_decompress()
7359 if { (eval echo configure:7360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7361 eval "ac_cv_lib_$ac_lib_var=yes"
7363 echo "configure: failed program was:" >&5
7364 cat conftest.$ac_ext >&5
7366 eval "ac_cv_lib_$ac_lib_var=no"
7371 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7372 echo "$ac_t""yes" 1>&6
7375 echo "$ac_t""no" 1>&6
7380 test -z "$with_jpeg" && with_jpeg=yes
7381 if test "$with_jpeg" = "yes"; then
7382 { test "$extra_verbose" = "yes" && cat << \EOF
7385 cat >> confdefs.h <<\EOF
7390 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi
7394 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6
7395 echo "configure:7396: checking for pow" >&5
7397 cat > conftest.$ac_ext <<EOF
7398 #line 7399 "configure"
7399 #include "confdefs.h"
7400 /* System header to define __stub macros and hopefully few prototypes,
7401 which can conflict with char pow(); below. */
7403 /* Override any gcc2 internal prototype to avoid an error. */
7404 /* We use char because int might match the return type of a gcc2
7405 builtin and then its argument prototype would still apply. */
7410 /* The GNU C library defines this for functions which it implements
7411 to always fail with ENOSYS. Some functions are actually named
7412 something starting with __ and the normal name is an alias. */
7413 #if defined (__stub_pow) || defined (__stub___pow)
7421 if { (eval echo configure:7422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7423 eval "ac_cv_func_pow=yes"
7425 echo "configure: failed program was:" >&5
7426 cat conftest.$ac_ext >&5
7428 eval "ac_cv_func_pow=no"
7432 if eval "test \"`echo '$ac_cv_func_'pow`\" = yes"; then
7433 echo "$ac_t""yes" 1>&6
7436 echo "$ac_t""no" 1>&6
7440 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
7441 echo $ac_n "checking for png.h""... $ac_c" 1>&6
7442 echo "configure:7443: checking for png.h" >&5
7444 cat > conftest.$ac_ext <<EOF
7445 #line 7446 "configure"
7446 #include "confdefs.h"
7449 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7450 { (eval echo configure:7451: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7451 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7452 if test -z "$ac_err"; then
7454 eval "ac_cv_header_$ac_safe=yes"
7457 echo "configure: failed program was:" >&5
7458 cat conftest.$ac_ext >&5
7460 eval "ac_cv_header_$ac_safe=no"
7463 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7464 echo "$ac_t""yes" 1>&6
7467 echo "$ac_t""no" 1>&6
7471 test -z "$with_png" && {
7472 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6
7473 echo "configure:7474: checking for png_read_image in -lpng" >&5
7474 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
7476 xe_check_libs=" -lpng "
7477 cat > conftest.$ac_ext <<EOF
7478 #line 7479 "configure"
7479 #include "confdefs.h"
7480 /* Override any gcc2 internal prototype to avoid an error. */
7481 /* We use char because int might match the return type of a gcc2
7482 builtin and then its argument prototype would still apply. */
7483 char png_read_image();
7489 if { (eval echo configure:7490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7491 eval "ac_cv_lib_$ac_lib_var=yes"
7493 echo "configure: failed program was:" >&5
7494 cat conftest.$ac_ext >&5
7496 eval "ac_cv_lib_$ac_lib_var=no"
7501 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7502 echo "$ac_t""yes" 1>&6
7505 echo "$ac_t""no" 1>&6
7510 if test -z "$with_png"; then
7511 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6
7512 echo "configure:7513: checking for workable png version information" >&5
7513 xe_check_libs="-lpng -lz"
7514 cat > conftest.$ac_ext <<EOF
7515 #line 7516 "configure"
7516 #include "confdefs.h"
7518 int main(int c, char **v) {
7519 if (c == 1) return 0;
7520 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1;
7521 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;}
7523 if { (eval echo configure:7524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
7525 ./conftest dummy_arg; png_status=$?;
7526 if test "$png_status" = "0"; then
7530 if test "$png_status" = "1"; then
7531 png_problem="PNG library version and header file don't match!"
7532 elif test "$png_status" = "2"; then
7533 png_problem="PNG library version too old (pre 1.0.2)!"
7536 *** WARNING *** $png_problem
7537 I'm not touching that with a 10-foot pole!
7538 If you really want to use the installed version of libPNG, rerun
7539 configure and add '--with-png=yes', but don't blame me if XEmacs crashes!"
7543 echo "configure: failed program was:" >&5
7544 cat conftest.$ac_ext >&5
7550 echo "$ac_t""$with_png" 1>&6
7552 if test "$with_png" = "yes"; then
7553 { test "$extra_verbose" = "yes" && cat << \EOF
7556 cat >> confdefs.h <<\EOF
7561 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi
7564 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
7565 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
7566 echo "configure:7567: checking for tiffio.h" >&5
7568 cat > conftest.$ac_ext <<EOF
7569 #line 7570 "configure"
7570 #include "confdefs.h"
7573 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7574 { (eval echo configure:7575: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7575 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7576 if test -z "$ac_err"; then
7578 eval "ac_cv_header_$ac_safe=yes"
7581 echo "configure: failed program was:" >&5
7582 cat conftest.$ac_ext >&5
7584 eval "ac_cv_header_$ac_safe=no"
7587 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7588 echo "$ac_t""yes" 1>&6
7591 echo "$ac_t""no" 1>&6
7595 test -z "$with_tiff" && {
7596 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6
7597 echo "configure:7598: checking for TIFFClientOpen in -ltiff" >&5
7598 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'`
7600 xe_check_libs=" -ltiff "
7601 cat > conftest.$ac_ext <<EOF
7602 #line 7603 "configure"
7603 #include "confdefs.h"
7604 /* Override any gcc2 internal prototype to avoid an error. */
7605 /* We use char because int might match the return type of a gcc2
7606 builtin and then its argument prototype would still apply. */
7607 char TIFFClientOpen();
7613 if { (eval echo configure:7614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7615 eval "ac_cv_lib_$ac_lib_var=yes"
7617 echo "configure: failed program was:" >&5
7618 cat conftest.$ac_ext >&5
7620 eval "ac_cv_lib_$ac_lib_var=no"
7625 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7626 echo "$ac_t""yes" 1>&6
7629 echo "$ac_t""no" 1>&6
7634 test -z "$with_tiff" && with_tiff=yes
7635 if test "$with_tiff" = "yes"; then
7636 { test "$extra_verbose" = "yes" && cat << \EOF
7639 cat >> confdefs.h <<\EOF
7644 libs_x="-ltiff $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltiff\" to \$libs_x"; fi
7649 if test "$with_x11" = "yes"; then
7651 echo "checking for X11 graphics libraries" 1>&6
7652 echo "configure:7653: checking for X11 graphics libraries" >&5
7654 echo "checking for the Athena widgets" 1>&6
7655 echo "configure:7656: checking for the Athena widgets" >&5
7657 case "$with_athena" in
7658 "xaw" | "") athena_variant=Xaw athena_3d=no ;;
7659 "3d") athena_variant=Xaw3d athena_3d=yes ;;
7660 "next") athena_variant=neXtaw athena_3d=yes ;;
7661 "95") athena_variant=Xaw95 athena_3d=yes ;;
7662 "xpm") athena_variant=XawXpm athena_3d=yes ;;
7663 *) { echo "Error:" "Unknown Athena widget set \`$with_athena'. This should not happen." >&2; exit 1; } ;;
7666 if test "$athena_3d" = "no"; then
7668 echo $ac_n "checking for XawScrollbarSetThumb in -l$athena_variant""... $ac_c" 1>&6
7669 echo "configure:7670: checking for XawScrollbarSetThumb in -l$athena_variant" >&5
7670 ac_lib_var=`echo $athena_variant'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
7672 xe_check_libs=" -l$athena_variant "
7673 cat > conftest.$ac_ext <<EOF
7674 #line 7675 "configure"
7675 #include "confdefs.h"
7676 /* Override any gcc2 internal prototype to avoid an error. */
7677 /* We use char because int might match the return type of a gcc2
7678 builtin and then its argument prototype would still apply. */
7679 char XawScrollbarSetThumb();
7682 XawScrollbarSetThumb()
7685 if { (eval echo configure:7686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7687 eval "ac_cv_lib_$ac_lib_var=yes"
7689 echo "configure: failed program was:" >&5
7690 cat conftest.$ac_ext >&5
7692 eval "ac_cv_lib_$ac_lib_var=no"
7697 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7698 echo "$ac_t""yes" 1>&6
7700 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
7701 echo "configure:7702: checking for threeDClassRec in -l$athena_variant" >&5
7702 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
7704 xe_check_libs=" -l$athena_variant "
7705 cat > conftest.$ac_ext <<EOF
7706 #line 7707 "configure"
7707 #include "confdefs.h"
7708 /* Override any gcc2 internal prototype to avoid an error. */
7709 /* We use char because int might match the return type of a gcc2
7710 builtin and then its argument prototype would still apply. */
7711 char threeDClassRec();
7717 if { (eval echo configure:7718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7719 eval "ac_cv_lib_$ac_lib_var=yes"
7721 echo "configure: failed program was:" >&5
7722 cat conftest.$ac_ext >&5
7724 eval "ac_cv_lib_$ac_lib_var=no"
7729 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7730 echo "$ac_t""yes" 1>&6
7731 echo "configure: warning: "Could not find a non-3d Athena widget library."" 1>&2
7733 echo "$ac_t""no" 1>&6
7734 athena_lib=$athena_variant
7740 echo "$ac_t""no" 1>&6
7741 echo "configure: warning: "Could not find an Athena widget library."" 1>&2
7747 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
7748 echo "configure:7749: checking for threeDClassRec in -l$athena_variant" >&5
7749 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
7751 xe_check_libs=" -l$athena_variant "
7752 cat > conftest.$ac_ext <<EOF
7753 #line 7754 "configure"
7754 #include "confdefs.h"
7755 /* Override any gcc2 internal prototype to avoid an error. */
7756 /* We use char because int might match the return type of a gcc2
7757 builtin and then its argument prototype would still apply. */
7758 char threeDClassRec();
7764 if { (eval echo configure:7765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7766 eval "ac_cv_lib_$ac_lib_var=yes"
7768 echo "configure: failed program was:" >&5
7769 cat conftest.$ac_ext >&5
7771 eval "ac_cv_lib_$ac_lib_var=no"
7776 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7777 echo "$ac_t""yes" 1>&6
7778 athena_lib=$athena_variant
7780 echo "$ac_t""no" 1>&6
7781 echo $ac_n "checking for threeDClassRec in -lXaw""... $ac_c" 1>&6
7782 echo "configure:7783: checking for threeDClassRec in -lXaw" >&5
7783 ac_lib_var=`echo Xaw'_'threeDClassRec | sed 'y%./+-%__p_%'`
7785 xe_check_libs=" -lXaw "
7786 cat > conftest.$ac_ext <<EOF
7787 #line 7788 "configure"
7788 #include "confdefs.h"
7789 /* Override any gcc2 internal prototype to avoid an error. */
7790 /* We use char because int might match the return type of a gcc2
7791 builtin and then its argument prototype would still apply. */
7792 char threeDClassRec();
7798 if { (eval echo configure:7799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7800 eval "ac_cv_lib_$ac_lib_var=yes"
7802 echo "configure: failed program was:" >&5
7803 cat conftest.$ac_ext >&5
7805 eval "ac_cv_lib_$ac_lib_var=no"
7810 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7811 echo "$ac_t""yes" 1>&6
7813 echo "configure: warning: "Assuming that libXaw is actually $athena_variant."" 1>&2;
7816 echo "$ac_t""no" 1>&6
7817 echo "configure: warning: "Could not find a 3d Athena widget library that looked like $athena_variant."" 1>&2
7826 if test "$athena_3d" = "no"; then
7827 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
7828 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
7829 echo "configure:7830: checking for X11/Xaw/ThreeD.h" >&5
7831 cat > conftest.$ac_ext <<EOF
7832 #line 7833 "configure"
7833 #include "confdefs.h"
7834 #include <X11/Xaw/ThreeD.h>
7836 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7837 { (eval echo configure:7838: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7838 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7839 if test -z "$ac_err"; then
7841 eval "ac_cv_header_$ac_safe=yes"
7844 echo "configure: failed program was:" >&5
7845 cat conftest.$ac_ext >&5
7847 eval "ac_cv_header_$ac_safe=no"
7850 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7851 echo "$ac_t""yes" 1>&6
7852 echo "configure: warning: "Could not find a non-3d Athena header set."" 1>&2
7854 echo "$ac_t""no" 1>&6
7855 ac_safe=`echo "X11/Xaw/XawInit.h" | sed 'y%./+-%__p_%'`
7856 echo $ac_n "checking for X11/Xaw/XawInit.h""... $ac_c" 1>&6
7857 echo "configure:7858: checking for X11/Xaw/XawInit.h" >&5
7859 cat > conftest.$ac_ext <<EOF
7860 #line 7861 "configure"
7861 #include "confdefs.h"
7862 #include <X11/Xaw/XawInit.h>
7864 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7865 { (eval echo configure:7866: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7866 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7867 if test -z "$ac_err"; then
7869 eval "ac_cv_header_$ac_safe=yes"
7872 echo "configure: failed program was:" >&5
7873 cat conftest.$ac_ext >&5
7875 eval "ac_cv_header_$ac_safe=no"
7878 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7879 echo "$ac_t""yes" 1>&6
7880 athena_h_path=X11/Xaw
7882 echo "$ac_t""no" 1>&6
7883 echo "configure: warning: "Could not find a non-3d Athena header set."" 1>&2
7889 ac_safe=`echo "X11/$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
7890 echo $ac_n "checking for X11/$athena_variant/XawInit.h""... $ac_c" 1>&6
7891 echo "configure:7892: checking for X11/$athena_variant/XawInit.h" >&5
7893 cat > conftest.$ac_ext <<EOF
7894 #line 7895 "configure"
7895 #include "confdefs.h"
7896 #include <X11/$athena_variant/XawInit.h>
7898 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7899 { (eval echo configure:7900: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7900 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7901 if test -z "$ac_err"; then
7903 eval "ac_cv_header_$ac_safe=yes"
7906 echo "configure: failed program was:" >&5
7907 cat conftest.$ac_ext >&5
7909 eval "ac_cv_header_$ac_safe=no"
7912 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7913 echo "$ac_t""yes" 1>&6
7914 ac_safe=`echo "X11/$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
7915 echo $ac_n "checking for X11/$athena_variant/ThreeD.h""... $ac_c" 1>&6
7916 echo "configure:7917: checking for X11/$athena_variant/ThreeD.h" >&5
7918 cat > conftest.$ac_ext <<EOF
7919 #line 7920 "configure"
7920 #include "confdefs.h"
7921 #include <X11/$athena_variant/ThreeD.h>
7923 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7924 { (eval echo configure:7925: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7925 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7926 if test -z "$ac_err"; then
7928 eval "ac_cv_header_$ac_safe=yes"
7931 echo "configure: failed program was:" >&5
7932 cat conftest.$ac_ext >&5
7934 eval "ac_cv_header_$ac_safe=no"
7937 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7938 echo "$ac_t""yes" 1>&6
7939 athena_h_path=X11/$athena_variant
7941 echo "$ac_t""no" 1>&6
7945 echo "$ac_t""no" 1>&6
7949 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
7950 ac_safe=`echo "X11/Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
7951 echo $ac_n "checking for X11/Xaw3d/XawInit.h""... $ac_c" 1>&6
7952 echo "configure:7953: checking for X11/Xaw3d/XawInit.h" >&5
7954 cat > conftest.$ac_ext <<EOF
7955 #line 7956 "configure"
7956 #include "confdefs.h"
7957 #include <X11/Xaw3d/XawInit.h>
7959 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7960 { (eval echo configure:7961: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7961 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7962 if test -z "$ac_err"; then
7964 eval "ac_cv_header_$ac_safe=yes"
7967 echo "configure: failed program was:" >&5
7968 cat conftest.$ac_ext >&5
7970 eval "ac_cv_header_$ac_safe=no"
7973 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7974 echo "$ac_t""yes" 1>&6
7975 ac_safe=`echo "X11/Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
7976 echo $ac_n "checking for X11/Xaw3d/ThreeD.h""... $ac_c" 1>&6
7977 echo "configure:7978: checking for X11/Xaw3d/ThreeD.h" >&5
7979 cat > conftest.$ac_ext <<EOF
7980 #line 7981 "configure"
7981 #include "confdefs.h"
7982 #include <X11/Xaw3d/ThreeD.h>
7984 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7985 { (eval echo configure:7986: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7986 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7987 if test -z "$ac_err"; then
7989 eval "ac_cv_header_$ac_safe=yes"
7992 echo "configure: failed program was:" >&5
7993 cat conftest.$ac_ext >&5
7995 eval "ac_cv_header_$ac_safe=no"
7998 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7999 echo "$ac_t""yes" 1>&6
8001 echo "configure: warning: "Assuming that X11/Xaw3d headers are suitable for $athena_variant."" 1>&2
8002 athena_h_path=X11/Xaw3d
8005 echo "$ac_t""no" 1>&6
8009 echo "$ac_t""no" 1>&6
8014 if test -z "$athena_h_path"; then
8015 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
8016 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
8017 echo "configure:8018: checking for X11/Xaw/ThreeD.h" >&5
8019 cat > conftest.$ac_ext <<EOF
8020 #line 8021 "configure"
8021 #include "confdefs.h"
8022 #include <X11/Xaw/ThreeD.h>
8024 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8025 { (eval echo configure:8026: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8026 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8027 if test -z "$ac_err"; then
8029 eval "ac_cv_header_$ac_safe=yes"
8032 echo "configure: failed program was:" >&5
8033 cat conftest.$ac_ext >&5
8035 eval "ac_cv_header_$ac_safe=no"
8038 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8039 echo "$ac_t""yes" 1>&6
8041 echo "configure: warning: "Assuming that X11/Xaw headers are suitable for $athena_variant."" 1>&2
8042 athena_h_path=X11/Xaw
8045 echo "$ac_t""no" 1>&6
8046 echo "configure: warning: "Could not find a suitable 3d Athena header set."" 1>&2
8052 if test -n "$athena_lib" -a -n "$athena_h_path"; then
8058 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
8059 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
8060 echo "configure:8061: checking for Xm/Xm.h" >&5
8062 cat > conftest.$ac_ext <<EOF
8063 #line 8064 "configure"
8064 #include "confdefs.h"
8067 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8068 { (eval echo configure:8069: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8069 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8070 if test -z "$ac_err"; then
8072 eval "ac_cv_header_$ac_safe=yes"
8075 echo "configure: failed program was:" >&5
8076 cat conftest.$ac_ext >&5
8078 eval "ac_cv_header_$ac_safe=no"
8081 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8082 echo "$ac_t""yes" 1>&6
8084 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
8085 echo "configure:8086: checking for XmStringFree in -lXm" >&5
8086 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
8088 xe_check_libs=" -lXm "
8089 cat > conftest.$ac_ext <<EOF
8090 #line 8091 "configure"
8091 #include "confdefs.h"
8092 /* Override any gcc2 internal prototype to avoid an error. */
8093 /* We use char because int might match the return type of a gcc2
8094 builtin and then its argument prototype would still apply. */
8095 char XmStringFree();
8101 if { (eval echo configure:8102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8103 eval "ac_cv_lib_$ac_lib_var=yes"
8105 echo "configure: failed program was:" >&5
8106 cat conftest.$ac_ext >&5
8108 eval "ac_cv_lib_$ac_lib_var=no"
8113 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8114 echo "$ac_t""yes" 1>&6
8117 echo "$ac_t""no" 1>&6
8123 echo "$ac_t""no" 1>&6
8128 if test "$have_motif" = "yes"; then
8129 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6
8130 echo "configure:8131: checking for Lesstif" >&5
8131 cat > conftest.$ac_ext <<EOF
8132 #line 8133 "configure"
8133 #include "confdefs.h"
8135 #ifdef LESSTIF_VERSION
8140 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8141 egrep "yes" >/dev/null 2>&1; then
8150 echo "$ac_t""$have_lesstif" 1>&6
8155 case "$with_menubars" in "" | "yes" | "athena" )
8156 with_menubars="lucid" ;;
8158 case "$with_dialogs" in "" | "yes" | "lucid" )
8159 if test "$have_motif" = "yes"; then with_dialogs="motif"
8160 elif test "$have_xaw" = "yes"; then with_dialogs="athena"
8161 else with_dialogs=no
8164 case "$with_scrollbars" in "" | "yes" )
8165 with_scrollbars="lucid" ;;
8167 case "$with_widgets" in "" | "yes" | "lucid")
8168 if test "$have_motif" = "yes"; then with_widgets="motif"
8169 elif test "$have_xaw" = "yes"; then with_widgets="athena"
8170 else with_widgets=no
8174 all_widgets="$with_menubars $with_scrollbars $with_dialogs $with_toolbars $with_widgets"
8176 case "$all_widgets" in
8178 if test "$have_xaw" != "yes"; then
8179 { echo "Error:" "Could not find a suitable Athena library to build with." >&2; exit 1; }
8182 lwlib_objs="$lwlib_objs lwlib-Xaw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xaw.o\" to \$lwlib_objs"; fi
8184 libs_x="-l$athena_lib $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$athena_lib\" to \$libs_x"; fi
8186 { test "$extra_verbose" = "yes" && cat << EOF
8187 Defining ATHENA_H_PATH = $athena_h_path
8189 cat >> confdefs.h <<EOF
8190 #define ATHENA_H_PATH $athena_h_path
8195 { test "$extra_verbose" = "yes" && cat << \EOF
8196 Defining LWLIB_USES_ATHENA
8198 cat >> confdefs.h <<\EOF
8199 #define LWLIB_USES_ATHENA 1
8203 { test "$extra_verbose" = "yes" && cat << \EOF
8204 Defining NEED_ATHENA
8206 cat >> confdefs.h <<\EOF
8207 #define NEED_ATHENA 1
8212 if test "$athena_3d" = "yes"; then
8213 { test "$extra_verbose" = "yes" && cat << \EOF
8214 Defining HAVE_ATHENA_3D
8216 cat >> confdefs.h <<\EOF
8217 #define HAVE_ATHENA_3D 1
8225 case "$all_widgets" in *motif* )
8226 { test "$extra_verbose" = "yes" && cat << \EOF
8227 Defining LWLIB_USES_MOTIF
8229 cat >> confdefs.h <<\EOF
8230 #define LWLIB_USES_MOTIF 1
8234 { test "$extra_verbose" = "yes" && cat << \EOF
8237 cat >> confdefs.h <<\EOF
8238 #define NEED_MOTIF 1
8242 lwlib_objs="$lwlib_objs lwlib-Xm.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xm.o\" to \$lwlib_objs"; fi
8246 test "$with_menubars" = "lucid" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
8247 test "$with_menubars" = "motif" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
8248 test "$with_scrollbars" = "lucid" && lwlib_objs="$lwlib_objs xlwscrollbar.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwscrollbar.o\" to \$lwlib_objs"; fi
8249 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
8250 lwlib_objs="$lwlib_objs xlwtabs.o xlwgcs.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwtabs.o xlwgcs.o\" to \$lwlib_objs"; fi
8251 case "$with_widgets" in athena* )
8252 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;;
8254 case "$all_widgets" in *lucid* )
8255 { test "$extra_verbose" = "yes" && cat << \EOF
8258 cat >> confdefs.h <<\EOF
8259 #define NEED_LUCID 1
8263 lwlib_objs="$lwlib_objs lwlib-Xlw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xlw.o\" to \$lwlib_objs"; fi ;;
8268 test "$with_scrollbars" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
8269 Defining LWLIB_SCROLLBARS_ATHENA
8271 cat >> confdefs.h <<\EOF
8272 #define LWLIB_SCROLLBARS_ATHENA 1
8276 test "$with_dialogs" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
8277 Defining LWLIB_DIALOGS_ATHENA
8279 cat >> confdefs.h <<\EOF
8280 #define LWLIB_DIALOGS_ATHENA 1
8285 if test "$athena_3d" = "yes"; then
8286 test "$with_scrollbars" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
8287 Defining LWLIB_SCROLLBARS_ATHENA3D
8289 cat >> confdefs.h <<\EOF
8290 #define LWLIB_SCROLLBARS_ATHENA3D 1
8294 test "$with_dialogs" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
8295 Defining LWLIB_DIALOGS_ATHENA3D
8297 cat >> confdefs.h <<\EOF
8298 #define LWLIB_DIALOGS_ATHENA3D 1
8304 case "$with_widgets" in athena* ) { test "$extra_verbose" = "yes" && cat << \EOF
8305 Defining LWLIB_WIDGETS_ATHENA
8307 cat >> confdefs.h <<\EOF
8308 #define LWLIB_WIDGETS_ATHENA 1
8312 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
8313 { test "$extra_verbose" = "yes" && cat << \EOF
8314 Defining LWLIB_TABS_LUCID
8316 cat >> confdefs.h <<\EOF
8317 #define LWLIB_TABS_LUCID 1
8322 test "$with_menubars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
8323 Defining HAVE_MENUBARS
8325 cat >> confdefs.h <<\EOF
8326 #define HAVE_MENUBARS 1
8330 test "$with_scrollbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
8331 Defining HAVE_SCROLLBARS
8333 cat >> confdefs.h <<\EOF
8334 #define HAVE_SCROLLBARS 1
8338 test "$with_dialogs" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
8339 Defining HAVE_DIALOGS
8341 cat >> confdefs.h <<\EOF
8342 #define HAVE_DIALOGS 1
8346 test "$with_toolbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
8347 Defining HAVE_TOOLBARS
8349 cat >> confdefs.h <<\EOF
8350 #define HAVE_TOOLBARS 1
8354 test "$with_widgets" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
8355 Defining HAVE_WIDGETS
8357 cat >> confdefs.h <<\EOF
8358 #define HAVE_WIDGETS 1
8363 test "$with_menubars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
8364 Defining LWLIB_MENUBARS_LUCID
8366 cat >> confdefs.h <<\EOF
8367 #define LWLIB_MENUBARS_LUCID 1
8371 test "$with_scrollbars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
8372 Defining LWLIB_SCROLLBARS_LUCID
8374 cat >> confdefs.h <<\EOF
8375 #define LWLIB_SCROLLBARS_LUCID 1
8380 test "$with_menubars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
8381 Defining LWLIB_MENUBARS_MOTIF
8383 cat >> confdefs.h <<\EOF
8384 #define LWLIB_MENUBARS_MOTIF 1
8388 test "$with_scrollbars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
8389 Defining LWLIB_SCROLLBARS_MOTIF
8391 cat >> confdefs.h <<\EOF
8392 #define LWLIB_SCROLLBARS_MOTIF 1
8396 test "$with_dialogs" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
8397 Defining LWLIB_DIALOGS_MOTIF
8399 cat >> confdefs.h <<\EOF
8400 #define LWLIB_DIALOGS_MOTIF 1
8404 test "$with_widgets" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
8405 Defining LWLIB_WIDGETS_MOTIF
8407 cat >> confdefs.h <<\EOF
8408 #define LWLIB_WIDGETS_MOTIF 1
8413 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar.o" && if test "$extra_verbose" = "yes"; then
8414 echo " xemacs will be linked with \"menubar.o\""
8416 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar.o" && if test "$extra_verbose" = "yes"; then
8417 echo " xemacs will be linked with \"scrollbar.o\""
8419 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog.o" && if test "$extra_verbose" = "yes"; then
8420 echo " xemacs will be linked with \"dialog.o\""
8422 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar.o" && if test "$extra_verbose" = "yes"; then
8423 echo " xemacs will be linked with \"toolbar.o\""
8426 if test "$with_x11" = "yes"; then
8427 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-x.o" && if test "$extra_verbose" = "yes"; then
8428 echo " xemacs will be linked with \"menubar-x.o\""
8430 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-x.o" && if test "$extra_verbose" = "yes"; then
8431 echo " xemacs will be linked with \"scrollbar-x.o\""
8433 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-x.o" && if test "$extra_verbose" = "yes"; then
8434 echo " xemacs will be linked with \"dialog-x.o\""
8436 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-x.o" && if test "$extra_verbose" = "yes"; then
8437 echo " xemacs will be linked with \"toolbar-x.o\""
8439 test "$all_widgets" != "no no no no no" && extra_objs="$extra_objs gui-x.o" && if test "$extra_verbose" = "yes"; then
8440 echo " xemacs will be linked with \"gui-x.o\""
8445 test -z "$with_mule" && with_mule=no
8446 test -z "$with_file_coding" && with_file_coding=no
8449 if test "$with_file_coding" = "yes" && test "$with_mule" = "no"; then
8450 { test "$extra_verbose" = "yes" && cat << \EOF
8451 Defining FILE_CODING
8453 cat >> confdefs.h <<\EOF
8454 #define FILE_CODING 1
8458 extra_objs="$extra_objs file-coding.o" && if test "$extra_verbose" = "yes"; then
8459 echo " xemacs will be linked with \"file-coding.o\""
8463 if test "$with_mule" = "yes" ; then
8464 echo "checking for Mule-related features" 1>&6
8465 echo "configure:8466: checking for Mule-related features" >&5
8466 { test "$extra_verbose" = "yes" && cat << \EOF
8469 cat >> confdefs.h <<\EOF
8474 { test "$extra_verbose" = "yes" && cat << \EOF
8475 Defining FILE_CODING
8477 cat >> confdefs.h <<\EOF
8478 #define FILE_CODING 1
8482 extra_objs="$extra_objs mule.o mule-ccl.o mule-charset.o file-coding.o" && if test "$extra_verbose" = "yes"; then
8483 echo " xemacs will be linked with \"mule.o mule-ccl.o mule-charset.o file-coding.o\""
8486 for ac_hdr in libintl.h
8488 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8489 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8490 echo "configure:8491: checking for $ac_hdr" >&5
8492 cat > conftest.$ac_ext <<EOF
8493 #line 8494 "configure"
8494 #include "confdefs.h"
8497 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8498 { (eval echo configure:8499: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8499 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8500 if test -z "$ac_err"; then
8502 eval "ac_cv_header_$ac_safe=yes"
8505 echo "configure: failed program was:" >&5
8506 cat conftest.$ac_ext >&5
8508 eval "ac_cv_header_$ac_safe=no"
8511 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8512 echo "$ac_t""yes" 1>&6
8513 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8514 { test "$extra_verbose" = "yes" && cat << EOF
8517 cat >> confdefs.h <<EOF
8518 #define $ac_tr_hdr 1
8523 echo "$ac_t""no" 1>&6
8528 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
8529 echo "configure:8530: checking for strerror in -lintl" >&5
8530 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
8532 xe_check_libs=" -lintl "
8533 cat > conftest.$ac_ext <<EOF
8534 #line 8535 "configure"
8535 #include "confdefs.h"
8536 /* Override any gcc2 internal prototype to avoid an error. */
8537 /* We use char because int might match the return type of a gcc2
8538 builtin and then its argument prototype would still apply. */
8545 if { (eval echo configure:8546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8547 eval "ac_cv_lib_$ac_lib_var=yes"
8549 echo "configure: failed program was:" >&5
8550 cat conftest.$ac_ext >&5
8552 eval "ac_cv_lib_$ac_lib_var=no"
8557 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8558 echo "$ac_t""yes" 1>&6
8559 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8560 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8561 { test "$extra_verbose" = "yes" && cat << EOF
8564 cat >> confdefs.h <<EOF
8565 #define $ac_tr_lib 1
8569 LIBS="-lintl $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lintl\" to \$LIBS"; fi
8572 echo "$ac_t""no" 1>&6
8577 echo "checking for Mule input methods" 1>&6
8578 echo "configure:8579: checking for Mule input methods" >&5
8579 case "$with_xim" in "" | "yes" )
8580 echo "checking for XIM" 1>&6
8581 echo "configure:8582: checking for XIM" >&5
8583 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6
8584 echo "configure:8585: checking for XOpenIM in -lX11" >&5
8585 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'`
8587 xe_check_libs=" -lX11 "
8588 cat > conftest.$ac_ext <<EOF
8589 #line 8590 "configure"
8590 #include "confdefs.h"
8591 /* Override any gcc2 internal prototype to avoid an error. */
8592 /* We use char because int might match the return type of a gcc2
8593 builtin and then its argument prototype would still apply. */
8600 if { (eval echo configure:8601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8602 eval "ac_cv_lib_$ac_lib_var=yes"
8604 echo "configure: failed program was:" >&5
8605 cat conftest.$ac_ext >&5
8607 eval "ac_cv_lib_$ac_lib_var=no"
8612 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8613 echo "$ac_t""yes" 1>&6
8616 echo "$ac_t""no" 1>&6
8621 if test "$have_motif $have_lesstif" = "yes no"; then
8623 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
8624 echo "configure:8625: checking for XmImMbLookupString in -lXm" >&5
8625 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
8627 xe_check_libs=" -lXm "
8628 cat > conftest.$ac_ext <<EOF
8629 #line 8630 "configure"
8630 #include "confdefs.h"
8631 /* Override any gcc2 internal prototype to avoid an error. */
8632 /* We use char because int might match the return type of a gcc2
8633 builtin and then its argument prototype would still apply. */
8634 char XmImMbLookupString();
8637 XmImMbLookupString()
8640 if { (eval echo configure:8641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8642 eval "ac_cv_lib_$ac_lib_var=yes"
8644 echo "configure: failed program was:" >&5
8645 cat conftest.$ac_ext >&5
8647 eval "ac_cv_lib_$ac_lib_var=no"
8652 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8653 echo "$ac_t""yes" 1>&6
8656 echo "$ac_t""no" 1>&6
8662 if test "$with_xim" != "no"; then
8663 { test "$extra_verbose" = "yes" && cat << \EOF
8666 cat >> confdefs.h <<\EOF
8671 if test "$with_xim" = "xlib"; then
8672 { test "$extra_verbose" = "yes" && cat << \EOF
8675 cat >> confdefs.h <<\EOF
8680 extra_objs="$extra_objs input-method-xlib.o" && if test "$extra_verbose" = "yes"; then
8681 echo " xemacs will be linked with \"input-method-xlib.o\""
8684 if test "$with_xim" = "motif"; then
8685 { test "$extra_verbose" = "yes" && cat << \EOF
8688 cat >> confdefs.h <<\EOF
8694 extra_objs="$extra_objs input-method-motif.o" && if test "$extra_verbose" = "yes"; then
8695 echo " xemacs will be linked with \"input-method-motif.o\""
8698 if test "$with_xim" = "motif"; then
8703 if test "$with_xfs" = "yes" ; then
8704 echo "checking for XFontSet" 1>&6
8705 echo "configure:8706: checking for XFontSet" >&5
8707 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6
8708 echo "configure:8709: checking for XmbDrawString in -lX11" >&5
8709 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
8711 xe_check_libs=" -lX11 "
8712 cat > conftest.$ac_ext <<EOF
8713 #line 8714 "configure"
8714 #include "confdefs.h"
8715 /* Override any gcc2 internal prototype to avoid an error. */
8716 /* We use char because int might match the return type of a gcc2
8717 builtin and then its argument prototype would still apply. */
8718 char XmbDrawString();
8724 if { (eval echo configure:8725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8726 eval "ac_cv_lib_$ac_lib_var=yes"
8728 echo "configure: failed program was:" >&5
8729 cat conftest.$ac_ext >&5
8731 eval "ac_cv_lib_$ac_lib_var=no"
8736 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8737 echo "$ac_t""yes" 1>&6
8740 echo "$ac_t""no" 1>&6
8745 if test "$with_xfs" = "yes" && test "$with_menubars" = "lucid"; then
8746 { test "$extra_verbose" = "yes" && cat << \EOF
8747 Defining USE_XFONTSET
8749 cat >> confdefs.h <<\EOF
8750 #define USE_XFONTSET 1
8754 if test "$with_xim" = "no" ; then
8755 extra_objs="$extra_objs input-method-xfs.o" && if test "$extra_verbose" = "yes"; then
8756 echo " xemacs will be linked with \"input-method-xfs.o\""
8761 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
8762 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
8763 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
8764 echo "configure:8765: checking for wnn/jllib.h" >&5
8766 cat > conftest.$ac_ext <<EOF
8767 #line 8768 "configure"
8768 #include "confdefs.h"
8769 #include <wnn/jllib.h>
8771 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8772 { (eval echo configure:8773: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8773 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8774 if test -z "$ac_err"; then
8776 eval "ac_cv_header_$ac_safe=yes"
8779 echo "configure: failed program was:" >&5
8780 cat conftest.$ac_ext >&5
8782 eval "ac_cv_header_$ac_safe=no"
8785 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8786 echo "$ac_t""yes" 1>&6
8789 echo "$ac_t""no" 1>&6
8793 if test "$with_wnn" != "no"; then
8794 for ac_func in crypt
8796 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8797 echo "configure:8798: checking for $ac_func" >&5
8799 cat > conftest.$ac_ext <<EOF
8800 #line 8801 "configure"
8801 #include "confdefs.h"
8802 /* System header to define __stub macros and hopefully few prototypes,
8803 which can conflict with char $ac_func(); below. */
8805 /* Override any gcc2 internal prototype to avoid an error. */
8806 /* We use char because int might match the return type of a gcc2
8807 builtin and then its argument prototype would still apply. */
8812 /* The GNU C library defines this for functions which it implements
8813 to always fail with ENOSYS. Some functions are actually named
8814 something starting with __ and the normal name is an alias. */
8815 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8823 if { (eval echo configure:8824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8825 eval "ac_cv_func_$ac_func=yes"
8827 echo "configure: failed program was:" >&5
8828 cat conftest.$ac_ext >&5
8830 eval "ac_cv_func_$ac_func=no"
8834 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8835 echo "$ac_t""yes" 1>&6
8836 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8837 { test "$extra_verbose" = "yes" && cat << EOF
8838 Defining $ac_tr_func
8840 cat >> confdefs.h <<EOF
8841 #define $ac_tr_func 1
8846 echo "$ac_t""no" 1>&6
8850 test "$ac_cv_func_crypt" != "yes" && {
8851 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
8852 echo "configure:8853: checking for crypt in -lcrypt" >&5
8853 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
8855 xe_check_libs=" -lcrypt "
8856 cat > conftest.$ac_ext <<EOF
8857 #line 8858 "configure"
8858 #include "confdefs.h"
8859 /* Override any gcc2 internal prototype to avoid an error. */
8860 /* We use char because int might match the return type of a gcc2
8861 builtin and then its argument prototype would still apply. */
8868 if { (eval echo configure:8869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8870 eval "ac_cv_lib_$ac_lib_var=yes"
8872 echo "configure: failed program was:" >&5
8873 cat conftest.$ac_ext >&5
8875 eval "ac_cv_lib_$ac_lib_var=no"
8880 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8881 echo "$ac_t""yes" 1>&6
8882 ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8883 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8884 { test "$extra_verbose" = "yes" && cat << EOF
8887 cat >> confdefs.h <<EOF
8888 #define $ac_tr_lib 1
8892 LIBS="-lcrypt $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcrypt\" to \$LIBS"; fi
8895 echo "$ac_t""no" 1>&6
8900 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then
8902 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
8903 echo "configure:8904: checking for jl_dic_list_e in -lwnn" >&5
8904 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
8906 xe_check_libs=" -lwnn "
8907 cat > conftest.$ac_ext <<EOF
8908 #line 8909 "configure"
8909 #include "confdefs.h"
8910 /* Override any gcc2 internal prototype to avoid an error. */
8911 /* We use char because int might match the return type of a gcc2
8912 builtin and then its argument prototype would still apply. */
8913 char jl_dic_list_e();
8919 if { (eval echo configure:8920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8921 eval "ac_cv_lib_$ac_lib_var=yes"
8923 echo "configure: failed program was:" >&5
8924 cat conftest.$ac_ext >&5
8926 eval "ac_cv_lib_$ac_lib_var=no"
8931 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8932 echo "$ac_t""yes" 1>&6
8935 echo "$ac_t""no" 1>&6
8936 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6
8937 echo "configure:8938: checking for jl_dic_list_e in -lwnn4" >&5
8938 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
8940 xe_check_libs=" -lwnn4 "
8941 cat > conftest.$ac_ext <<EOF
8942 #line 8943 "configure"
8943 #include "confdefs.h"
8944 /* Override any gcc2 internal prototype to avoid an error. */
8945 /* We use char because int might match the return type of a gcc2
8946 builtin and then its argument prototype would still apply. */
8947 char jl_dic_list_e();
8953 if { (eval echo configure:8954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8955 eval "ac_cv_lib_$ac_lib_var=yes"
8957 echo "configure: failed program was:" >&5
8958 cat conftest.$ac_ext >&5
8960 eval "ac_cv_lib_$ac_lib_var=no"
8965 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8966 echo "$ac_t""yes" 1>&6
8969 echo "$ac_t""no" 1>&6
8970 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6
8971 echo "configure:8972: checking for jl_dic_list_e in -lwnn6" >&5
8972 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
8974 xe_check_libs=" -lwnn6 "
8975 cat > conftest.$ac_ext <<EOF
8976 #line 8977 "configure"
8977 #include "confdefs.h"
8978 /* Override any gcc2 internal prototype to avoid an error. */
8979 /* We use char because int might match the return type of a gcc2
8980 builtin and then its argument prototype would still apply. */
8981 char jl_dic_list_e();
8987 if { (eval echo configure:8988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8989 eval "ac_cv_lib_$ac_lib_var=yes"
8991 echo "configure: failed program was:" >&5
8992 cat conftest.$ac_ext >&5
8994 eval "ac_cv_lib_$ac_lib_var=no"
8999 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9000 echo "$ac_t""yes" 1>&6
9003 echo "$ac_t""no" 1>&6
9004 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6
9005 echo "configure:9006: checking for dic_list_e in -lwnn6_fromsrc" >&5
9006 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'`
9008 xe_check_libs=" -lwnn6_fromsrc "
9009 cat > conftest.$ac_ext <<EOF
9010 #line 9011 "configure"
9011 #include "confdefs.h"
9012 /* Override any gcc2 internal prototype to avoid an error. */
9013 /* We use char because int might match the return type of a gcc2
9014 builtin and then its argument prototype would still apply. */
9021 if { (eval echo configure:9022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9023 eval "ac_cv_lib_$ac_lib_var=yes"
9025 echo "configure: failed program was:" >&5
9026 cat conftest.$ac_ext >&5
9028 eval "ac_cv_lib_$ac_lib_var=no"
9033 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9034 echo "$ac_t""yes" 1>&6
9037 echo "$ac_t""no" 1>&6
9052 test -z "$with_wnn" && with_wnn=yes
9053 if test "$with_wnn" = "yes"; then
9054 { test "$extra_verbose" = "yes" && cat << \EOF
9057 cat >> confdefs.h <<\EOF
9062 libs_x="-l$libwnn $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$libwnn\" to \$libs_x"; fi
9063 extra_objs="$extra_objs mule-wnnfns.o" && if test "$extra_verbose" = "yes"; then
9064 echo " xemacs will be linked with \"mule-wnnfns.o\""
9066 if test "$with_wnn6" != "no"; then
9068 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6
9069 echo "configure:9070: checking for jl_fi_dic_list in -l$libwnn" >&5
9070 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
9072 xe_check_libs=" -l$libwnn "
9073 cat > conftest.$ac_ext <<EOF
9074 #line 9075 "configure"
9075 #include "confdefs.h"
9076 /* Override any gcc2 internal prototype to avoid an error. */
9077 /* We use char because int might match the return type of a gcc2
9078 builtin and then its argument prototype would still apply. */
9079 char jl_fi_dic_list();
9085 if { (eval echo configure:9086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9087 eval "ac_cv_lib_$ac_lib_var=yes"
9089 echo "configure: failed program was:" >&5
9090 cat conftest.$ac_ext >&5
9092 eval "ac_cv_lib_$ac_lib_var=no"
9097 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9098 echo "$ac_t""yes" 1>&6
9101 echo "$ac_t""no" 1>&6
9105 test "$with_wnn6" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
9108 cat >> confdefs.h <<\EOF
9116 canna_includes_found=no
9117 if test "$with_canna" != "no"; then
9118 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
9119 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
9120 echo "configure:9121: checking for canna/jrkanji.h" >&5
9122 cat > conftest.$ac_ext <<EOF
9123 #line 9124 "configure"
9124 #include "confdefs.h"
9125 #include <canna/jrkanji.h>
9127 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9128 { (eval echo configure:9129: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9129 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9130 if test -z "$ac_err"; then
9132 eval "ac_cv_header_$ac_safe=yes"
9135 echo "configure: failed program was:" >&5
9136 cat conftest.$ac_ext >&5
9138 eval "ac_cv_header_$ac_safe=no"
9141 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9142 echo "$ac_t""yes" 1>&6
9143 canna_includes_found=yes
9145 echo "$ac_t""no" 1>&6
9149 if test "$canna_includes_found" = "no" -a "$with_canna" != "no" -a \
9150 -d "/usr/local/canna/include"; then
9151 save_c_switch_site="$c_switch_site"
9152 c_switch_site="$c_switch_site -I/usr/local/canna/include"
9153 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
9154 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
9155 echo "configure:9156: checking for canna/jrkanji.h" >&5
9157 cat > conftest.$ac_ext <<EOF
9158 #line 9159 "configure"
9159 #include "confdefs.h"
9160 #include <canna/jrkanji.h>
9162 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9163 { (eval echo configure:9164: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9164 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9165 if test -z "$ac_err"; then
9167 eval "ac_cv_header_$ac_safe=yes"
9170 echo "configure: failed program was:" >&5
9171 cat conftest.$ac_ext >&5
9173 eval "ac_cv_header_$ac_safe=no"
9176 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9177 echo "$ac_t""yes" 1>&6
9178 canna_includes_found=yes
9180 echo "$ac_t""no" 1>&6
9183 if test "$canna_includes_found" != "yes"; then
9184 c_switch_site="$save_c_switch_site"
9189 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
9190 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
9191 echo "configure:9192: checking for canna/RK.h" >&5
9193 cat > conftest.$ac_ext <<EOF
9194 #line 9195 "configure"
9195 #include "confdefs.h"
9196 #include <canna/RK.h>
9198 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9199 { (eval echo configure:9200: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9200 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9201 if test -z "$ac_err"; then
9203 eval "ac_cv_header_$ac_safe=yes"
9206 echo "configure: failed program was:" >&5
9207 cat conftest.$ac_ext >&5
9209 eval "ac_cv_header_$ac_safe=no"
9212 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9213 echo "$ac_t""yes" 1>&6
9216 echo "$ac_t""no" 1>&6
9220 test -z "$with_canna" && {
9221 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
9222 echo "configure:9223: checking for RkBgnBun in -lRKC" >&5
9223 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
9225 xe_check_libs=" -lRKC "
9226 cat > conftest.$ac_ext <<EOF
9227 #line 9228 "configure"
9228 #include "confdefs.h"
9229 /* Override any gcc2 internal prototype to avoid an error. */
9230 /* We use char because int might match the return type of a gcc2
9231 builtin and then its argument prototype would still apply. */
9238 if { (eval echo configure:9239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9240 eval "ac_cv_lib_$ac_lib_var=yes"
9242 echo "configure: failed program was:" >&5
9243 cat conftest.$ac_ext >&5
9245 eval "ac_cv_lib_$ac_lib_var=no"
9250 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9251 echo "$ac_t""yes" 1>&6
9254 echo "$ac_t""no" 1>&6
9259 test -z "$with_canna" && {
9260 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
9261 echo "configure:9262: checking for jrKanjiControl in -lcanna" >&5
9262 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
9264 xe_check_libs=" -lcanna "
9265 cat > conftest.$ac_ext <<EOF
9266 #line 9267 "configure"
9267 #include "confdefs.h"
9268 /* Override any gcc2 internal prototype to avoid an error. */
9269 /* We use char because int might match the return type of a gcc2
9270 builtin and then its argument prototype would still apply. */
9271 char jrKanjiControl();
9277 if { (eval echo configure:9278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9279 eval "ac_cv_lib_$ac_lib_var=yes"
9281 echo "configure: failed program was:" >&5
9282 cat conftest.$ac_ext >&5
9284 eval "ac_cv_lib_$ac_lib_var=no"
9289 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9290 echo "$ac_t""yes" 1>&6
9293 echo "$ac_t""no" 1>&6
9298 test -z "$with_canna" && with_canna=yes
9299 if test "$with_canna" = "yes"; then
9300 { test "$extra_verbose" = "yes" && cat << \EOF
9303 cat >> confdefs.h <<\EOF
9304 #define HAVE_CANNA 1
9308 libs_x="-lcanna -lRKC $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcanna -lRKC\" to \$libs_x"; fi
9309 extra_objs="$extra_objs mule-canna.o" && if test "$extra_verbose" = "yes"; then
9310 echo " xemacs will be linked with \"mule-canna.o\""
9314 else for feature in xim canna wnn; do
9315 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
9316 echo "configure: warning: "--with-${feature} ignored: Not valid without Mule support"" 1>&2
9318 eval "with_${feature}=no"
9322 if test "$need_motif" = "yes" ; then
9323 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi
9325 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6
9326 echo "configure:9327: checking for layout_object_getvalue in -li18n" >&5
9327 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'`
9329 xe_check_libs=" -li18n "
9330 cat > conftest.$ac_ext <<EOF
9331 #line 9332 "configure"
9332 #include "confdefs.h"
9333 /* Override any gcc2 internal prototype to avoid an error. */
9334 /* We use char because int might match the return type of a gcc2
9335 builtin and then its argument prototype would still apply. */
9336 char layout_object_getvalue();
9339 layout_object_getvalue()
9342 if { (eval echo configure:9343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9344 eval "ac_cv_lib_$ac_lib_var=yes"
9346 echo "configure: failed program was:" >&5
9347 cat conftest.$ac_ext >&5
9349 eval "ac_cv_lib_$ac_lib_var=no"
9354 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9355 echo "$ac_t""yes" 1>&6
9356 libs_x="-li18n $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-li18n\" to \$libs_x"; fi
9358 echo "$ac_t""no" 1>&6
9363 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
9364 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
9365 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
9367 runpath="" runpath_dirs=""
9368 if test -n "$LD_RUN_PATH"; then
9369 runpath="$LD_RUN_PATH"
9370 elif test "$GCC" = "yes"; then
9371 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
9372 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
9373 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
9374 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
9375 case "$arg" in P,* | -L* | -R* )
9376 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
9378 xe_runpath_dir="$dir"
9379 test "$xe_runpath_dir" != "/lib" -a \
9380 "$xe_runpath_dir" != "/usr/lib" -a \
9381 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
9382 eval "$xe_add_unique_runpath_dir"
9387 ld_switch_run="$ld_switch_run_save"
9390 for arg in $ld_switch_site $ld_switch_x_site; do
9391 case "$arg" in -L*) {
9392 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
9393 test "$xe_runpath_dir" != "/lib" -a \
9394 "$xe_runpath_dir" != "/usr/lib" -a \
9395 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
9396 eval "$xe_add_unique_runpath_dir"
9399 if test "$opsys $need_motif" = "sol2 yes"; then
9400 xe_runpath_dir="/opt/SUNWdt/lib";
9401 eval "$xe_add_unique_runpath_dir";
9404 if test -n "$runpath"; then
9405 ld_switch_run="${dash_r}${runpath}"
9407 if test "$GCC" = "yes"; then
9408 set x $ld_switch_run; shift; ld_switch_run=""
9409 while test -n "$1"; do
9411 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
9412 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
9414 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
9419 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
9425 for ac_func in cbrt closedir dup2 eaccess fmod fpathconf frexp ftime gethostname getpagesize gettimeofday getcwd getpt getwd logb lrand48 matherr mkdir mktime perror poll random rename res_init rint rmdir select setitimer setpgid setlocale setsid sigblock sighold sigprocmask snprintf stpcpy strcasecmp strerror tzset ulimit usleep utimes waitpid vsnprintf fsync ftruncate umask
9427 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9428 echo "configure:9429: checking for $ac_func" >&5
9430 cat > conftest.$ac_ext <<EOF
9431 #line 9432 "configure"
9432 #include "confdefs.h"
9433 /* System header to define __stub macros and hopefully few prototypes,
9434 which can conflict with char $ac_func(); below. */
9436 /* Override any gcc2 internal prototype to avoid an error. */
9437 /* We use char because int might match the return type of a gcc2
9438 builtin and then its argument prototype would still apply. */
9443 /* The GNU C library defines this for functions which it implements
9444 to always fail with ENOSYS. Some functions are actually named
9445 something starting with __ and the normal name is an alias. */
9446 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9454 if { (eval echo configure:9455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9456 eval "ac_cv_func_$ac_func=yes"
9458 echo "configure: failed program was:" >&5
9459 cat conftest.$ac_ext >&5
9461 eval "ac_cv_func_$ac_func=no"
9465 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9466 echo "$ac_t""yes" 1>&6
9467 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9468 { test "$extra_verbose" = "yes" && cat << EOF
9469 Defining $ac_tr_func
9471 cat >> confdefs.h <<EOF
9472 #define $ac_tr_func 1
9477 echo "$ac_t""no" 1>&6
9484 linuxaout* | bsdos3* | freebsd* | decosf4-0* | aix4* ) extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
9485 echo " xemacs will be linked with \"realpath.o\""
9488 case "$canonical" in
9489 *-*-sysv4.2uw2* ) extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
9490 echo " xemacs will be linked with \"realpath.o\""
9492 * ) for ac_func in realpath
9494 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9495 echo "configure:9496: checking for $ac_func" >&5
9497 cat > conftest.$ac_ext <<EOF
9498 #line 9499 "configure"
9499 #include "confdefs.h"
9500 /* System header to define __stub macros and hopefully few prototypes,
9501 which can conflict with char $ac_func(); below. */
9503 /* Override any gcc2 internal prototype to avoid an error. */
9504 /* We use char because int might match the return type of a gcc2
9505 builtin and then its argument prototype would still apply. */
9510 /* The GNU C library defines this for functions which it implements
9511 to always fail with ENOSYS. Some functions are actually named
9512 something starting with __ and the normal name is an alias. */
9513 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9521 if { (eval echo configure:9522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9523 eval "ac_cv_func_$ac_func=yes"
9525 echo "configure: failed program was:" >&5
9526 cat conftest.$ac_ext >&5
9528 eval "ac_cv_func_$ac_func=no"
9532 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9533 echo "$ac_t""yes" 1>&6
9534 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9535 { test "$extra_verbose" = "yes" && cat << EOF
9536 Defining $ac_tr_func
9538 cat >> confdefs.h <<EOF
9539 #define $ac_tr_func 1
9544 echo "$ac_t""no" 1>&6
9548 test "$ac_cv_func_realpath" != "yes" && extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
9549 echo " xemacs will be linked with \"realpath.o\""
9554 for ac_func in getloadavg
9556 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9557 echo "configure:9558: checking for $ac_func" >&5
9559 cat > conftest.$ac_ext <<EOF
9560 #line 9561 "configure"
9561 #include "confdefs.h"
9562 /* System header to define __stub macros and hopefully few prototypes,
9563 which can conflict with char $ac_func(); below. */
9565 /* Override any gcc2 internal prototype to avoid an error. */
9566 /* We use char because int might match the return type of a gcc2
9567 builtin and then its argument prototype would still apply. */
9572 /* The GNU C library defines this for functions which it implements
9573 to always fail with ENOSYS. Some functions are actually named
9574 something starting with __ and the normal name is an alias. */
9575 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9583 if { (eval echo configure:9584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9585 eval "ac_cv_func_$ac_func=yes"
9587 echo "configure: failed program was:" >&5
9588 cat conftest.$ac_ext >&5
9590 eval "ac_cv_func_$ac_func=no"
9594 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9595 echo "$ac_t""yes" 1>&6
9596 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9597 { test "$extra_verbose" = "yes" && cat << EOF
9598 Defining $ac_tr_func
9600 cat >> confdefs.h <<EOF
9601 #define $ac_tr_func 1
9606 echo "$ac_t""no" 1>&6
9611 if test "$ac_cv_func_getloadavg" != "yes"
9613 extra_objs="$extra_objs getloadavg.o" && if test "$extra_verbose" = "yes"; then
9614 echo " xemacs will be linked with \"getloadavg.o\""
9618 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
9619 echo "configure:9620: checking for kstat_open in -lkstat" >&5
9620 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
9622 xe_check_libs=" -lkstat "
9623 cat > conftest.$ac_ext <<EOF
9624 #line 9625 "configure"
9625 #include "confdefs.h"
9626 /* Override any gcc2 internal prototype to avoid an error. */
9627 /* We use char because int might match the return type of a gcc2
9628 builtin and then its argument prototype would still apply. */
9635 if { (eval echo configure:9636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9637 eval "ac_cv_lib_$ac_lib_var=yes"
9639 echo "configure: failed program was:" >&5
9640 cat conftest.$ac_ext >&5
9642 eval "ac_cv_lib_$ac_lib_var=no"
9647 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9648 echo "$ac_t""yes" 1>&6
9649 ac_tr_lib=HAVE_LIB`echo kstat | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9650 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9651 { test "$extra_verbose" = "yes" && cat << EOF
9654 cat >> confdefs.h <<EOF
9655 #define $ac_tr_lib 1
9659 LIBS="-lkstat $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkstat\" to \$LIBS"; fi
9662 echo "$ac_t""no" 1>&6
9668 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
9669 echo "configure:9670: checking for kvm_read in -lkvm" >&5
9670 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
9672 xe_check_libs=" -lkvm "
9673 cat > conftest.$ac_ext <<EOF
9674 #line 9675 "configure"
9675 #include "confdefs.h"
9676 /* Override any gcc2 internal prototype to avoid an error. */
9677 /* We use char because int might match the return type of a gcc2
9678 builtin and then its argument prototype would still apply. */
9685 if { (eval echo configure:9686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9687 eval "ac_cv_lib_$ac_lib_var=yes"
9689 echo "configure: failed program was:" >&5
9690 cat conftest.$ac_ext >&5
9692 eval "ac_cv_lib_$ac_lib_var=no"
9697 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9698 echo "$ac_t""yes" 1>&6
9699 ac_tr_lib=HAVE_LIB`echo kvm | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9700 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9701 { test "$extra_verbose" = "yes" && cat << EOF
9704 cat >> confdefs.h <<EOF
9705 #define $ac_tr_lib 1
9709 LIBS="-lkvm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkvm\" to \$LIBS"; fi
9712 echo "$ac_t""no" 1>&6
9718 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
9719 echo "configure:9720: checking whether netdb declares h_errno" >&5
9720 cat > conftest.$ac_ext <<EOF
9721 #line 9722 "configure"
9722 #include "confdefs.h"
9728 if { (eval echo configure:9729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9730 echo "$ac_t""yes" 1>&6
9731 { test "$extra_verbose" = "yes" && cat << \EOF
9732 Defining HAVE_H_ERRNO
9734 cat >> confdefs.h <<\EOF
9735 #define HAVE_H_ERRNO 1
9740 echo "configure: failed program was:" >&5
9741 cat conftest.$ac_ext >&5
9743 echo "$ac_t""no" 1>&6
9747 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
9748 echo "configure:9749: checking for sigsetjmp" >&5
9749 cat > conftest.$ac_ext <<EOF
9750 #line 9751 "configure"
9751 #include "confdefs.h"
9754 sigjmp_buf bar; sigsetjmp (bar, 0);
9757 if { (eval echo configure:9758: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9759 echo "$ac_t""yes" 1>&6
9760 { test "$extra_verbose" = "yes" && cat << \EOF
9761 Defining HAVE_SIGSETJMP
9763 cat >> confdefs.h <<\EOF
9764 #define HAVE_SIGSETJMP 1
9769 echo "configure: failed program was:" >&5
9770 cat conftest.$ac_ext >&5
9772 echo "$ac_t""no" 1>&6
9776 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
9777 echo "configure:9778: checking whether localtime caches TZ" >&5
9779 if test "$ac_cv_func_tzset" = "yes"; then
9780 cat > conftest.$ac_ext <<EOF
9781 #line 9782 "configure"
9782 #include "confdefs.h"
9785 # include <stdlib.h>
9787 extern char **environ;
9791 for (to = from = environ; (*to = *from); from++)
9792 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
9795 char TZ_GMT0[] = "TZ=GMT0";
9796 char TZ_PST8[] = "TZ=PST8";
9799 time_t now = time ((time_t *) 0);
9800 int hour_GMT0, hour_unset;
9801 if (putenv (TZ_GMT0) != 0)
9803 hour_GMT0 = localtime (&now)->tm_hour;
9805 hour_unset = localtime (&now)->tm_hour;
9806 if (putenv (TZ_PST8) != 0)
9808 if (localtime (&now)->tm_hour == hour_GMT0)
9811 if (localtime (&now)->tm_hour != hour_unset)
9816 if { (eval echo configure:9817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9818 emacs_cv_localtime_cache=no
9821 echo "configure: failed program was:" >&5
9822 cat conftest.$ac_ext >&5
9824 emacs_cv_localtime_cache=yes
9828 # If we lack tzset, report that localtime does not cache TZ,
9829 # since we can't invalidate the cache if we don't have tzset.
9830 emacs_cv_localtime_cache=no
9832 echo "$ac_t""$emacs_cv_localtime_cache" 1>&6
9833 if test $emacs_cv_localtime_cache = yes; then
9834 { test "$extra_verbose" = "yes" && cat << \EOF
9835 Defining LOCALTIME_CACHE
9837 cat >> confdefs.h <<\EOF
9838 #define LOCALTIME_CACHE 1
9844 if test "$HAVE_TIMEVAL" = "yes"; then
9845 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6
9846 echo "configure:9847: checking whether gettimeofday accepts one or two arguments" >&5
9847 cat > conftest.$ac_ext <<EOF
9848 #line 9849 "configure"
9849 #include "confdefs.h"
9851 #ifdef TIME_WITH_SYS_TIME
9852 #include <sys/time.h>
9855 #ifdef HAVE_SYS_TIME_H
9856 #include <sys/time.h>
9864 struct timeval time;
9865 struct timezone dummy;
9866 gettimeofday (&time, &dummy);
9870 if { (eval echo configure:9871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9872 echo "$ac_t""two" 1>&6
9874 echo "configure: failed program was:" >&5
9875 cat conftest.$ac_ext >&5
9877 echo "$ac_t""one" 1>&6
9878 { test "$extra_verbose" = "yes" && cat << \EOF
9879 Defining GETTIMEOFDAY_ONE_ARGUMENT
9881 cat >> confdefs.h <<\EOF
9882 #define GETTIMEOFDAY_ONE_ARGUMENT 1
9891 echo $ac_n "checking for inline""... $ac_c" 1>&6
9892 echo "configure:9893: checking for inline" >&5
9895 for ac_kw in inline __inline__ __inline; do
9896 cat > conftest.$ac_ext <<EOF
9897 #line 9898 "configure"
9898 #include "confdefs.h"
9904 if { (eval echo configure:9905: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9906 ac_cv_c_inline=$ac_kw; break
9908 echo "configure: failed program was:" >&5
9909 cat conftest.$ac_ext >&5
9915 echo "$ac_t""$ac_cv_c_inline" 1>&6
9916 case "$ac_cv_c_inline" in
9918 no) { test "$extra_verbose" = "yes" && cat << \EOF
9921 cat >> confdefs.h <<\EOF
9926 *) { test "$extra_verbose" = "yes" && cat << EOF
9927 Defining inline = $ac_cv_c_inline
9929 cat >> confdefs.h <<EOF
9930 #define inline $ac_cv_c_inline
9936 if test "$ac_cv_c_inline" != "no"; then
9937 { test "$extra_verbose" = "yes" && cat << \EOF
9938 Defining HAVE_INLINE
9940 cat >> confdefs.h <<\EOF
9941 #define HAVE_INLINE 1
9945 test "$GCC" = "yes" && extra_objs="$extra_objs inline.o" && if test "$extra_verbose" = "yes"; then
9946 echo " xemacs will be linked with \"inline.o\""
9951 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9952 # for constant arguments. Useless!
9953 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
9954 echo "configure:9955: checking for working alloca.h" >&5
9956 cat > conftest.$ac_ext <<EOF
9957 #line 9958 "configure"
9958 #include "confdefs.h"
9961 char *p = alloca(2 * sizeof(int));
9964 if { (eval echo configure:9965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9966 ac_cv_header_alloca_h=yes
9968 echo "configure: failed program was:" >&5
9969 cat conftest.$ac_ext >&5
9971 ac_cv_header_alloca_h=no
9975 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
9976 if test $ac_cv_header_alloca_h = yes; then
9977 { test "$extra_verbose" = "yes" && cat << \EOF
9978 Defining HAVE_ALLOCA_H
9980 cat >> confdefs.h <<\EOF
9981 #define HAVE_ALLOCA_H 1
9987 echo $ac_n "checking for alloca""... $ac_c" 1>&6
9988 echo "configure:9989: checking for alloca" >&5
9990 cat > conftest.$ac_ext <<EOF
9991 #line 9992 "configure"
9992 #include "confdefs.h"
9995 # define alloca __builtin_alloca
9998 # include <malloc.h>
9999 # define alloca _alloca
10002 # include <alloca.h>
10007 # ifndef alloca /* predefined by HP cc +Olibcalls */
10016 char *p = (char *) alloca(1);
10019 if { (eval echo configure:10020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10021 ac_cv_func_alloca_works=yes
10023 echo "configure: failed program was:" >&5
10024 cat conftest.$ac_ext >&5
10026 ac_cv_func_alloca_works=no
10030 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
10031 if test $ac_cv_func_alloca_works = yes; then
10032 { test "$extra_verbose" = "yes" && cat << \EOF
10033 Defining HAVE_ALLOCA
10035 cat >> confdefs.h <<\EOF
10036 #define HAVE_ALLOCA 1
10042 if test $ac_cv_func_alloca_works = no; then
10043 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10044 # that cause trouble. Some versions do not even contain alloca or
10045 # contain a buggy version. If you still want to use their alloca,
10046 # use ar to extract alloca.o from them instead of compiling alloca.c.
10047 ALLOCA=alloca.${ac_objext}
10048 { test "$extra_verbose" = "yes" && cat << \EOF
10051 cat >> confdefs.h <<\EOF
10057 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
10058 echo "configure:10059: checking whether alloca needs Cray hooks" >&5
10060 cat > conftest.$ac_ext <<EOF
10061 #line 10062 "configure"
10062 #include "confdefs.h"
10063 #if defined(CRAY) && ! defined(CRAY2)
10070 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10071 egrep "webecray" >/dev/null 2>&1; then
10081 echo "$ac_t""$ac_cv_os_cray" 1>&6
10082 if test $ac_cv_os_cray = yes; then
10083 for ac_func in _getb67 GETB67 getb67; do
10084 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10085 echo "configure:10086: checking for $ac_func" >&5
10087 cat > conftest.$ac_ext <<EOF
10088 #line 10089 "configure"
10089 #include "confdefs.h"
10090 /* System header to define __stub macros and hopefully few prototypes,
10091 which can conflict with char $ac_func(); below. */
10092 #include <assert.h>
10093 /* Override any gcc2 internal prototype to avoid an error. */
10094 /* We use char because int might match the return type of a gcc2
10095 builtin and then its argument prototype would still apply. */
10100 /* The GNU C library defines this for functions which it implements
10101 to always fail with ENOSYS. Some functions are actually named
10102 something starting with __ and the normal name is an alias. */
10103 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
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_func_$ac_func=yes"
10115 echo "configure: failed program was:" >&5
10116 cat conftest.$ac_ext >&5
10118 eval "ac_cv_func_$ac_func=no"
10122 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10123 echo "$ac_t""yes" 1>&6
10124 { test "$extra_verbose" = "yes" && cat << EOF
10125 Defining CRAY_STACKSEG_END = $ac_func
10127 cat >> confdefs.h <<EOF
10128 #define CRAY_STACKSEG_END $ac_func
10134 echo "$ac_t""no" 1>&6
10140 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
10141 echo "configure:10142: checking stack direction for C alloca" >&5
10143 cat > conftest.$ac_ext <<EOF
10144 #line 10145 "configure"
10145 #include "confdefs.h"
10146 find_stack_direction ()
10148 static char *addr = 0;
10153 return find_stack_direction ();
10156 return (&dummy > addr) ? 1 : -1;
10160 exit (find_stack_direction() < 0);
10163 if { (eval echo configure:10164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
10165 ac_cv_c_stack_direction=1
10168 echo "configure: failed program was:" >&5
10169 cat conftest.$ac_ext >&5
10171 ac_cv_c_stack_direction=-1
10175 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
10176 { test "$extra_verbose" = "yes" && cat << EOF
10177 Defining STACK_DIRECTION = $ac_cv_c_stack_direction
10179 cat >> confdefs.h <<EOF
10180 #define STACK_DIRECTION $ac_cv_c_stack_direction
10186 test -n "$ALLOCA" && extra_objs="$extra_objs $ALLOCA" && if test "$extra_verbose" = "yes"; then
10187 echo " xemacs will be linked with \"$ALLOCA\""
10190 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
10191 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
10192 echo "configure:10193: checking for vfork.h" >&5
10194 cat > conftest.$ac_ext <<EOF
10195 #line 10196 "configure"
10196 #include "confdefs.h"
10199 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10200 { (eval echo configure:10201: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10201 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10202 if test -z "$ac_err"; then
10204 eval "ac_cv_header_$ac_safe=yes"
10207 echo "configure: failed program was:" >&5
10208 cat conftest.$ac_ext >&5
10210 eval "ac_cv_header_$ac_safe=no"
10213 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10214 echo "$ac_t""yes" 1>&6
10215 { test "$extra_verbose" = "yes" && cat << \EOF
10216 Defining HAVE_VFORK_H
10218 cat >> confdefs.h <<\EOF
10219 #define HAVE_VFORK_H 1
10224 echo "$ac_t""no" 1>&6
10227 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
10228 echo "configure:10229: checking for working vfork" >&5
10230 cat > conftest.$ac_ext <<EOF
10231 #line 10232 "configure"
10232 #include "confdefs.h"
10233 /* Thanks to Paul Eggert for this test. */
10235 #include <sys/types.h>
10236 #include <sys/stat.h>
10237 #ifdef HAVE_UNISTD_H
10238 #include <unistd.h>
10240 #ifdef HAVE_VFORK_H
10243 /* On some sparc systems, changes by the child to local and incoming
10244 argument registers are propagated back to the parent.
10245 The compiler is told about this with #include <vfork.h>,
10246 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
10247 Test for this by using a static variable whose address
10248 is put into a register that is clobbered by the vfork. */
10251 sparc_address_test (int arg)
10253 sparc_address_test (arg) int arg;
10256 static pid_t child;
10271 pid_t parent = getpid ();
10274 sparc_address_test ();
10279 /* Here is another test for sparc vfork register problems.
10280 This test uses lots of local variables, at least
10281 as many local variables as main has allocated so far
10282 including compiler temporaries. 4 locals are enough for
10283 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
10284 A buggy compiler should reuse the register of parent
10285 for one of the local variables, since it will think that
10286 parent can't possibly be used any more in this routine.
10287 Assigning to the local variable will thus munge parent
10288 in the parent process. */
10290 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10291 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10292 /* Convince the compiler that p..p7 are live; otherwise, it might
10293 use the same hardware register for all 8 local variables. */
10294 if (p != p1 || p != p2 || p != p3 || p != p4
10295 || p != p5 || p != p6 || p != p7)
10298 /* On some systems (e.g. IRIX 3.3),
10299 vfork doesn't separate parent from child file descriptors.
10300 If the child closes a descriptor before it execs or exits,
10301 this munges the parent's descriptor as well.
10302 Test for this by closing stdout in the child. */
10303 _exit(close(fileno(stdout)) != 0);
10308 while (wait(&status) != child)
10311 /* Was there some problem with vforking? */
10314 /* Did the child fail? (This shouldn't happen.) */
10317 /* Did the vfork/compiler bug occur? */
10318 || parent != getpid()
10320 /* Did the file descriptor bug occur? */
10321 || fstat(fileno(stdout), &st) != 0
10326 if { (eval echo configure:10327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
10328 ac_cv_func_vfork_works=yes
10331 echo "configure: failed program was:" >&5
10332 cat conftest.$ac_ext >&5
10334 ac_cv_func_vfork_works=no
10338 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
10339 if test $ac_cv_func_vfork_works = no; then
10340 { test "$extra_verbose" = "yes" && cat << \EOF
10341 Defining vfork = fork
10343 cat >> confdefs.h <<\EOF
10351 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
10352 echo "configure:10353: checking for working strcoll" >&5
10354 cat > conftest.$ac_ext <<EOF
10355 #line 10356 "configure"
10356 #include "confdefs.h"
10357 #include <string.h>
10360 exit (strcoll ("abc", "def") >= 0 ||
10361 strcoll ("ABC", "DEF") >= 0 ||
10362 strcoll ("123", "456") >= 0);
10365 if { (eval echo configure:10366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
10367 ac_cv_func_strcoll_works=yes
10370 echo "configure: failed program was:" >&5
10371 cat conftest.$ac_ext >&5
10373 ac_cv_func_strcoll_works=no
10377 echo "$ac_t""$ac_cv_func_strcoll_works" 1>&6
10378 if test $ac_cv_func_strcoll_works = yes; then
10379 { test "$extra_verbose" = "yes" && cat << \EOF
10380 Defining HAVE_STRCOLL
10382 cat >> confdefs.h <<\EOF
10383 #define HAVE_STRCOLL 1
10390 for ac_func in getpgrp
10392 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10393 echo "configure:10394: checking for $ac_func" >&5
10395 cat > conftest.$ac_ext <<EOF
10396 #line 10397 "configure"
10397 #include "confdefs.h"
10398 /* System header to define __stub macros and hopefully few prototypes,
10399 which can conflict with char $ac_func(); below. */
10400 #include <assert.h>
10401 /* Override any gcc2 internal prototype to avoid an error. */
10402 /* We use char because int might match the return type of a gcc2
10403 builtin and then its argument prototype would still apply. */
10408 /* The GNU C library defines this for functions which it implements
10409 to always fail with ENOSYS. Some functions are actually named
10410 something starting with __ and the normal name is an alias. */
10411 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10419 if { (eval echo configure:10420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10421 eval "ac_cv_func_$ac_func=yes"
10423 echo "configure: failed program was:" >&5
10424 cat conftest.$ac_ext >&5
10426 eval "ac_cv_func_$ac_func=no"
10430 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10431 echo "$ac_t""yes" 1>&6
10432 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10433 { test "$extra_verbose" = "yes" && cat << EOF
10434 Defining $ac_tr_func
10436 cat >> confdefs.h <<EOF
10437 #define $ac_tr_func 1
10442 echo "$ac_t""no" 1>&6
10446 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
10447 echo "configure:10448: checking whether getpgrp takes no argument" >&5
10449 cat > conftest.$ac_ext <<EOF
10450 #line 10451 "configure"
10451 #include "confdefs.h"
10454 * If this system has a BSD-style getpgrp(),
10455 * which takes a pid argument, exit unsuccessfully.
10457 * Snarfed from Chet Ramey's bash pgrp.c test program
10460 #include <sys/types.h>
10463 int pg1, pg2, pg3, pg4;
10464 int ng, np, s, child;
10471 pg3 = getpgrp(pid);
10475 * If all of these values are the same, it's pretty sure that
10476 * we're on a system that ignores getpgrp's first argument.
10478 if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3)
10484 else if (child == 0) {
10487 * If this is Sys V, this will not work; pgrp will be
10488 * set to np because setpgrp just changes a pgrp to be
10489 * the same as the pid.
10492 ng = getpgrp(0); /* Same result for Sys V and BSD */
10505 if { (eval echo configure:10506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
10507 ac_cv_func_getpgrp_void=yes
10510 echo "configure: failed program was:" >&5
10511 cat conftest.$ac_ext >&5
10513 ac_cv_func_getpgrp_void=no
10518 echo "$ac_t""$ac_cv_func_getpgrp_void" 1>&6
10519 if test $ac_cv_func_getpgrp_void = yes; then
10520 { test "$extra_verbose" = "yes" && cat << \EOF
10521 Defining GETPGRP_VOID
10523 cat >> confdefs.h <<\EOF
10524 #define GETPGRP_VOID 1
10531 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
10532 echo "configure:10533: checking for working mmap" >&5
10533 case "$opsys" in ultrix* ) have_mmap=no ;; *)
10534 cat > conftest.$ac_ext <<EOF
10535 #line 10536 "configure"
10536 #include "confdefs.h"
10538 #include <unistd.h>
10540 #include <sys/mman.h>
10542 #ifndef MAP_VARIABLE
10543 #define MAP_VARIABLE 0
10547 #define MAP_FAILED -1
10550 int main (int argc, char *argv[])
10554 #ifndef MAP_ANONYMOUS
10555 fd = open ("/dev/zero", O_RDWR);
10558 #define MAP_ANONYMOUS 0
10560 if (mmap(0, 1024, PROT_READ | PROT_WRITE,
10561 MAP_PRIVATE | MAP_VARIABLE | MAP_ANONYMOUS,
10562 fd, 0) != (void *) MAP_FAILED)
10564 perror ("conftest: mmap failed");
10568 if { (eval echo configure:10569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
10573 echo "configure: failed program was:" >&5
10574 cat conftest.$ac_ext >&5
10578 rm -fr conftest* ;;
10580 echo "$ac_t""$have_mmap" 1>&6
10581 test "$have_mmap" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
10584 cat >> confdefs.h <<\EOF
10585 #define HAVE_MMAP 1
10590 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no
10591 test "$rel_alloc" = "default" -a "$have_mmap" = "yes" && rel_alloc=yes
10592 test "$rel_alloc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
10595 cat >> confdefs.h <<\EOF
10596 #define REL_ALLOC 1
10601 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
10602 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
10603 echo "configure:10604: checking for termios.h" >&5
10605 cat > conftest.$ac_ext <<EOF
10606 #line 10607 "configure"
10607 #include "confdefs.h"
10608 #include <termios.h>
10610 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10611 { (eval echo configure:10612: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10612 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10613 if test -z "$ac_err"; then
10615 eval "ac_cv_header_$ac_safe=yes"
10618 echo "configure: failed program was:" >&5
10619 cat conftest.$ac_ext >&5
10621 eval "ac_cv_header_$ac_safe=no"
10624 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10625 echo "$ac_t""yes" 1>&6
10626 { test "$extra_verbose" = "yes" && cat << \EOF
10627 Defining HAVE_TERMIOS
10629 cat >> confdefs.h <<\EOF
10630 #define HAVE_TERMIOS 1
10634 { test "$extra_verbose" = "yes" && cat << \EOF
10635 Defining SIGNALS_VIA_CHARACTERS
10637 cat >> confdefs.h <<\EOF
10638 #define SIGNALS_VIA_CHARACTERS 1
10642 { test "$extra_verbose" = "yes" && cat << \EOF
10645 cat >> confdefs.h <<\EOF
10646 #define NO_TERMIO 1
10651 echo "$ac_t""no" 1>&6
10652 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
10653 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
10654 echo "configure:10655: checking for termio.h" >&5
10656 cat > conftest.$ac_ext <<EOF
10657 #line 10658 "configure"
10658 #include "confdefs.h"
10659 #include <termio.h>
10661 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10662 { (eval echo configure:10663: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10663 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10664 if test -z "$ac_err"; then
10666 eval "ac_cv_header_$ac_safe=yes"
10669 echo "configure: failed program was:" >&5
10670 cat conftest.$ac_ext >&5
10672 eval "ac_cv_header_$ac_safe=no"
10675 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10676 echo "$ac_t""yes" 1>&6
10677 { test "$extra_verbose" = "yes" && cat << \EOF
10678 Defining HAVE_TERMIO
10680 cat >> confdefs.h <<\EOF
10681 #define HAVE_TERMIO 1
10686 echo "$ac_t""no" 1>&6
10693 echo $ac_n "checking for socket""... $ac_c" 1>&6
10694 echo "configure:10695: checking for socket" >&5
10696 cat > conftest.$ac_ext <<EOF
10697 #line 10698 "configure"
10698 #include "confdefs.h"
10699 /* System header to define __stub macros and hopefully few prototypes,
10700 which can conflict with char socket(); below. */
10701 #include <assert.h>
10702 /* Override any gcc2 internal prototype to avoid an error. */
10703 /* We use char because int might match the return type of a gcc2
10704 builtin and then its argument prototype would still apply. */
10709 /* The GNU C library defines this for functions which it implements
10710 to always fail with ENOSYS. Some functions are actually named
10711 something starting with __ and the normal name is an alias. */
10712 #if defined (__stub_socket) || defined (__stub___socket)
10720 if { (eval echo configure:10721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10722 eval "ac_cv_func_socket=yes"
10724 echo "configure: failed program was:" >&5
10725 cat conftest.$ac_ext >&5
10727 eval "ac_cv_func_socket=no"
10731 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
10732 echo "$ac_t""yes" 1>&6
10733 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
10734 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
10735 echo "configure:10736: checking for netinet/in.h" >&5
10737 cat > conftest.$ac_ext <<EOF
10738 #line 10739 "configure"
10739 #include "confdefs.h"
10740 #include <netinet/in.h>
10742 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10743 { (eval echo configure:10744: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10744 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10745 if test -z "$ac_err"; then
10747 eval "ac_cv_header_$ac_safe=yes"
10750 echo "configure: failed program was:" >&5
10751 cat conftest.$ac_ext >&5
10753 eval "ac_cv_header_$ac_safe=no"
10756 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10757 echo "$ac_t""yes" 1>&6
10758 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
10759 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
10760 echo "configure:10761: checking for arpa/inet.h" >&5
10762 cat > conftest.$ac_ext <<EOF
10763 #line 10764 "configure"
10764 #include "confdefs.h"
10765 #include <arpa/inet.h>
10767 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10768 { (eval echo configure:10769: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10769 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10770 if test -z "$ac_err"; then
10772 eval "ac_cv_header_$ac_safe=yes"
10775 echo "configure: failed program was:" >&5
10776 cat conftest.$ac_ext >&5
10778 eval "ac_cv_header_$ac_safe=no"
10781 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10782 echo "$ac_t""yes" 1>&6
10784 { test "$extra_verbose" = "yes" && cat << \EOF
10785 Defining HAVE_SOCKETS
10787 cat >> confdefs.h <<\EOF
10788 #define HAVE_SOCKETS 1
10792 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
10793 echo "configure:10794: checking "for sun_len member in struct sockaddr_un"" >&5
10794 cat > conftest.$ac_ext <<EOF
10795 #line 10796 "configure"
10796 #include "confdefs.h"
10798 #include <sys/types.h>
10799 #include <sys/socket.h>
10800 #include <sys/un.h>
10803 static struct sockaddr_un x; x.sun_len = 1;
10806 if { (eval echo configure:10807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10808 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
10809 Defining HAVE_SOCKADDR_SUN_LEN
10811 cat >> confdefs.h <<\EOF
10812 #define HAVE_SOCKADDR_SUN_LEN 1
10817 echo "configure: failed program was:" >&5
10818 cat conftest.$ac_ext >&5
10820 echo "$ac_t""no" 1>&6
10823 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6
10824 echo "configure:10825: checking "for ip_mreq struct in netinet/in.h"" >&5
10825 cat > conftest.$ac_ext <<EOF
10826 #line 10827 "configure"
10827 #include "confdefs.h"
10829 #include <sys/types.h>
10830 #include <netinet/in.h>
10833 static struct ip_mreq x;
10836 if { (eval echo configure:10837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10838 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
10839 Defining HAVE_MULTICAST
10841 cat >> confdefs.h <<\EOF
10842 #define HAVE_MULTICAST 1
10847 echo "configure: failed program was:" >&5
10848 cat conftest.$ac_ext >&5
10850 echo "$ac_t""no" 1>&6
10854 echo "$ac_t""no" 1>&6
10858 echo "$ac_t""no" 1>&6
10862 echo "$ac_t""no" 1>&6
10866 echo $ac_n "checking for msgget""... $ac_c" 1>&6
10867 echo "configure:10868: checking for msgget" >&5
10869 cat > conftest.$ac_ext <<EOF
10870 #line 10871 "configure"
10871 #include "confdefs.h"
10872 /* System header to define __stub macros and hopefully few prototypes,
10873 which can conflict with char msgget(); below. */
10874 #include <assert.h>
10875 /* Override any gcc2 internal prototype to avoid an error. */
10876 /* We use char because int might match the return type of a gcc2
10877 builtin and then its argument prototype would still apply. */
10882 /* The GNU C library defines this for functions which it implements
10883 to always fail with ENOSYS. Some functions are actually named
10884 something starting with __ and the normal name is an alias. */
10885 #if defined (__stub_msgget) || defined (__stub___msgget)
10893 if { (eval echo configure:10894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10895 eval "ac_cv_func_msgget=yes"
10897 echo "configure: failed program was:" >&5
10898 cat conftest.$ac_ext >&5
10900 eval "ac_cv_func_msgget=no"
10904 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
10905 echo "$ac_t""yes" 1>&6
10906 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
10907 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
10908 echo "configure:10909: checking for sys/ipc.h" >&5
10910 cat > conftest.$ac_ext <<EOF
10911 #line 10912 "configure"
10912 #include "confdefs.h"
10913 #include <sys/ipc.h>
10915 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10916 { (eval echo configure:10917: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10917 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10918 if test -z "$ac_err"; then
10920 eval "ac_cv_header_$ac_safe=yes"
10923 echo "configure: failed program was:" >&5
10924 cat conftest.$ac_ext >&5
10926 eval "ac_cv_header_$ac_safe=no"
10929 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10930 echo "$ac_t""yes" 1>&6
10931 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
10932 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
10933 echo "configure:10934: checking for sys/msg.h" >&5
10935 cat > conftest.$ac_ext <<EOF
10936 #line 10937 "configure"
10937 #include "confdefs.h"
10938 #include <sys/msg.h>
10940 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10941 { (eval echo configure:10942: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10942 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10943 if test -z "$ac_err"; then
10945 eval "ac_cv_header_$ac_safe=yes"
10948 echo "configure: failed program was:" >&5
10949 cat conftest.$ac_ext >&5
10951 eval "ac_cv_header_$ac_safe=no"
10954 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10955 echo "$ac_t""yes" 1>&6
10956 { test "$extra_verbose" = "yes" && cat << \EOF
10957 Defining HAVE_SYSVIPC
10959 cat >> confdefs.h <<\EOF
10960 #define HAVE_SYSVIPC 1
10965 echo "$ac_t""no" 1>&6
10969 echo "$ac_t""no" 1>&6
10973 echo "$ac_t""no" 1>&6
10977 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
10978 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
10979 echo "configure:10980: checking for dirent.h" >&5
10981 cat > conftest.$ac_ext <<EOF
10982 #line 10983 "configure"
10983 #include "confdefs.h"
10984 #include <dirent.h>
10986 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10987 { (eval echo configure:10988: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10988 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10989 if test -z "$ac_err"; then
10991 eval "ac_cv_header_$ac_safe=yes"
10994 echo "configure: failed program was:" >&5
10995 cat conftest.$ac_ext >&5
10997 eval "ac_cv_header_$ac_safe=no"
11000 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11001 echo "$ac_t""yes" 1>&6
11002 { test "$extra_verbose" = "yes" && cat << \EOF
11003 Defining SYSV_SYSTEM_DIR
11005 cat >> confdefs.h <<\EOF
11006 #define SYSV_SYSTEM_DIR 1
11011 echo "$ac_t""no" 1>&6
11012 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
11013 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
11014 echo "configure:11015: checking for sys/dir.h" >&5
11016 cat > conftest.$ac_ext <<EOF
11017 #line 11018 "configure"
11018 #include "confdefs.h"
11019 #include <sys/dir.h>
11021 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11022 { (eval echo configure:11023: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11023 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11024 if test -z "$ac_err"; then
11026 eval "ac_cv_header_$ac_safe=yes"
11029 echo "configure: failed program was:" >&5
11030 cat conftest.$ac_ext >&5
11032 eval "ac_cv_header_$ac_safe=no"
11035 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11036 echo "$ac_t""yes" 1>&6
11039 echo "$ac_t""no" 1>&6
11040 { test "$extra_verbose" = "yes" && cat << \EOF
11041 Defining NONSYSTEM_DIR_LIBRARY
11043 cat >> confdefs.h <<\EOF
11044 #define NONSYSTEM_DIR_LIBRARY 1
11053 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
11054 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
11055 echo "configure:11056: checking for nlist.h" >&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 { test "$extra_verbose" = "yes" && cat << \EOF
11079 Defining NLIST_STRUCT
11081 cat >> confdefs.h <<\EOF
11082 #define NLIST_STRUCT 1
11087 echo "$ac_t""no" 1>&6
11092 echo "checking "for sound support"" 1>&6
11093 echo "configure:11094: checking "for sound support"" >&5
11094 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
11096 if test "$with_native_sound" != "no"; then
11097 if test -n "$native_sound_lib"; then
11098 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
11099 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
11100 echo "configure:11101: checking for multimedia/audio_device.h" >&5
11102 cat > conftest.$ac_ext <<EOF
11103 #line 11104 "configure"
11104 #include "confdefs.h"
11105 #include <multimedia/audio_device.h>
11107 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11108 { (eval echo configure:11109: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11109 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11110 if test -z "$ac_err"; then
11112 eval "ac_cv_header_$ac_safe=yes"
11115 echo "configure: failed program was:" >&5
11116 cat conftest.$ac_ext >&5
11118 eval "ac_cv_header_$ac_safe=no"
11121 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11122 echo "$ac_t""yes" 1>&6
11123 sound_found=yes sound_cflags=""
11124 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
11125 echo " xemacs will be linked with \"sunplay.o\""
11128 echo "$ac_t""no" 1>&6
11133 if test -z "$sound_found" -a -d "/usr/demo/SOUND"; then
11135 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
11136 echo " xemacs will be linked with \"sunplay.o\""
11138 if test -d "/usr/demo/SOUND/include"
11139 then sound_cflags="-I/usr/demo/SOUND/include"
11140 else sound_cflags="-I/usr/demo/SOUND"
11142 if test -z "$native_sound_lib" ; then
11143 if test -r "/usr/demo/SOUND/lib/libaudio.a"
11144 then native_sound_lib="/usr/demo/SOUND/lib/libaudio.a"
11145 else native_sound_lib="/usr/demo/SOUND/libaudio.a"
11150 if test -z "$sound_found"; then
11151 case "$canonical" in
11153 if test -z "$native_sound_lib"; then
11155 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
11156 echo "configure:11157: checking for ALopenport in -laudio" >&5
11157 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
11159 xe_check_libs=" -laudio "
11160 cat > conftest.$ac_ext <<EOF
11161 #line 11162 "configure"
11162 #include "confdefs.h"
11163 /* Override any gcc2 internal prototype to avoid an error. */
11164 /* We use char because int might match the return type of a gcc2
11165 builtin and then its argument prototype would still apply. */
11172 if { (eval echo configure:11173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11174 eval "ac_cv_lib_$ac_lib_var=yes"
11176 echo "configure: failed program was:" >&5
11177 cat conftest.$ac_ext >&5
11179 eval "ac_cv_lib_$ac_lib_var=no"
11184 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11185 echo "$ac_t""yes" 1>&6
11186 native_sound_lib="-laudio"
11188 echo "$ac_t""no" 1>&6
11193 if test -n "$native_sound_lib"; then
11194 sound_found=yes sound_cflags=""
11195 extra_objs="$extra_objs sgiplay.o" && if test "$extra_verbose" = "yes"; then
11196 echo " xemacs will be linked with \"sgiplay.o\""
11200 if test -z "$native_sound_lib"; then
11202 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
11203 echo "configure:11204: checking for AOpenAudio in -lAlib" >&5
11204 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
11206 xe_check_libs=" -lAlib "
11207 cat > conftest.$ac_ext <<EOF
11208 #line 11209 "configure"
11209 #include "confdefs.h"
11210 /* Override any gcc2 internal prototype to avoid an error. */
11211 /* We use char because int might match the return type of a gcc2
11212 builtin and then its argument prototype would still apply. */
11219 if { (eval echo configure:11220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11221 eval "ac_cv_lib_$ac_lib_var=yes"
11223 echo "configure: failed program was:" >&5
11224 cat conftest.$ac_ext >&5
11226 eval "ac_cv_lib_$ac_lib_var=no"
11231 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11232 echo "$ac_t""yes" 1>&6
11233 native_sound_lib="-lAlib"
11235 echo "$ac_t""no" 1>&6
11240 if test -n "$native_sound_lib"; then
11242 extra_objs="$extra_objs hpplay.o" && if test "$extra_verbose" = "yes"; then
11243 echo " xemacs will be linked with \"hpplay.o\""
11245 if test "$GCC" = "yes" # Kludge city
11246 then sound_cflags="-Dconst= -Dvolatile= -I/usr/audio/examples"
11247 else sound_cflags="+e -I/usr/audio/examples"
11253 if test -z "$sound_found"; then
11254 for dir in "machine" "sys" "linux"; do
11255 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
11256 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
11257 echo "configure:11258: checking for ${dir}/soundcard.h" >&5
11259 cat > conftest.$ac_ext <<EOF
11260 #line 11261 "configure"
11261 #include "confdefs.h"
11262 #include <${dir}/soundcard.h>
11264 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11265 { (eval echo configure:11266: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11266 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11267 if test -z "$ac_err"; then
11269 eval "ac_cv_header_$ac_safe=yes"
11272 echo "configure: failed program was:" >&5
11273 cat conftest.$ac_ext >&5
11275 eval "ac_cv_header_$ac_safe=no"
11278 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11279 echo "$ac_t""yes" 1>&6
11282 extra_objs="$extra_objs linuxplay.o" && if test "$extra_verbose" = "yes"; then
11283 echo " xemacs will be linked with \"linuxplay.o\""
11285 { test "$extra_verbose" = "yes" && cat << EOF
11286 Defining SOUNDCARD_H_PATH = "${dir}/soundcard.h"
11288 cat >> confdefs.h <<EOF
11289 #define SOUNDCARD_H_PATH "${dir}/soundcard.h"
11295 echo "$ac_t""no" 1>&6
11301 test "$sound_found" = "yes" && with_native_sound=yes
11304 if test "$with_native_sound" = "yes"; then
11305 { test "$extra_verbose" = "yes" && cat << \EOF
11306 Defining HAVE_NATIVE_SOUND
11308 cat >> confdefs.h <<\EOF
11309 #define HAVE_NATIVE_SOUND 1
11313 test -n "$native_sound_lib" && LIBS="$native_sound_lib $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$native_sound_lib\" to \$LIBS"; fi
11316 if test "$with_nas_sound" != "no"; then
11317 ac_safe=`echo "audio/audiolib.h" | sed 'y%./+-%__p_%'`
11318 echo $ac_n "checking for audio/audiolib.h""... $ac_c" 1>&6
11319 echo "configure:11320: checking for audio/audiolib.h" >&5
11321 cat > conftest.$ac_ext <<EOF
11322 #line 11323 "configure"
11323 #include "confdefs.h"
11324 #include <audio/audiolib.h>
11326 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11327 { (eval echo configure:11328: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11328 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11329 if test -z "$ac_err"; then
11331 eval "ac_cv_header_$ac_safe=yes"
11334 echo "configure: failed program was:" >&5
11335 cat conftest.$ac_ext >&5
11337 eval "ac_cv_header_$ac_safe=no"
11340 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11341 echo "$ac_t""yes" 1>&6
11344 echo $ac_n "checking for AuOpenServer in -laudio""... $ac_c" 1>&6
11345 echo "configure:11346: checking for AuOpenServer in -laudio" >&5
11346 ac_lib_var=`echo audio'_'AuOpenServer | sed 'y%./+-%__p_%'`
11348 xe_check_libs=" -laudio "
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. */
11355 char AuOpenServer();
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
11377 echo "$ac_t""no" 1>&6
11382 echo "$ac_t""no" 1>&6
11385 if test "$have_nas_sound" = "yes"; then
11387 { test "$extra_verbose" = "yes" && cat << \EOF
11388 Defining HAVE_NAS_SOUND
11390 cat >> confdefs.h <<\EOF
11391 #define HAVE_NAS_SOUND 1
11395 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
11396 echo " xemacs will be linked with \"nas.o\""
11398 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi
11399 cat > conftest.$ac_ext <<EOF
11400 #line 11401 "configure"
11401 #include "confdefs.h"
11402 #include <audio/Xtutil.h>
11404 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11405 egrep "AuXtErrorJump" >/dev/null 2>&1; then
11409 old_nas=yes; { test "$extra_verbose" = "yes" && cat << \EOF
11410 Defining NAS_NO_ERROR_JUMP
11412 cat >> confdefs.h <<\EOF
11413 #define NAS_NO_ERROR_JUMP 1
11421 test "$with_nas_sound" = "yes" && \
11422 { echo "Error:" "Required NAS sound support cannot be provided." >&2; exit 1; }
11427 if test "$with_esd_sound" != "no"; then
11428 # Extract the first word of "esd-config", so it can be a program name with args.
11429 set dummy esd-config; ac_word=$2
11430 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
11431 echo "configure:11432: checking for $ac_word" >&5
11433 if test -n "$have_esd_config"; then
11434 ac_cv_prog_have_esd_config="$have_esd_config" # Let the user override the test.
11436 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
11438 for ac_dir in $ac_dummy; do
11439 test -z "$ac_dir" && ac_dir=.
11440 if test -f $ac_dir/$ac_word; then
11441 ac_cv_prog_have_esd_config="yes"
11446 test -z "$ac_cv_prog_have_esd_config" && ac_cv_prog_have_esd_config="no"
11448 have_esd_config="$ac_cv_prog_have_esd_config"
11449 if test -n "$have_esd_config"; then
11450 echo "$ac_t""$have_esd_config" 1>&6
11452 echo "$ac_t""no" 1>&6
11455 if test "$have_esd_config" = "yes"; then
11456 save_c_switch_site="$c_switch_site" save_LIBS="$LIBS"
11457 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
11458 LIBS="`esd-config --libs` $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"`esd-config --libs`\" to \$LIBS"; fi
11459 echo $ac_n "checking for esd_play_stream""... $ac_c" 1>&6
11460 echo "configure:11461: checking for esd_play_stream" >&5
11462 cat > conftest.$ac_ext <<EOF
11463 #line 11464 "configure"
11464 #include "confdefs.h"
11465 /* System header to define __stub macros and hopefully few prototypes,
11466 which can conflict with char esd_play_stream(); below. */
11467 #include <assert.h>
11468 /* Override any gcc2 internal prototype to avoid an error. */
11469 /* We use char because int might match the return type of a gcc2
11470 builtin and then its argument prototype would still apply. */
11471 char esd_play_stream();
11475 /* The GNU C library defines this for functions which it implements
11476 to always fail with ENOSYS. Some functions are actually named
11477 something starting with __ and the normal name is an alias. */
11478 #if defined (__stub_esd_play_stream) || defined (__stub___esd_play_stream)
11486 if { (eval echo configure:11487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11488 eval "ac_cv_func_esd_play_stream=yes"
11490 echo "configure: failed program was:" >&5
11491 cat conftest.$ac_ext >&5
11493 eval "ac_cv_func_esd_play_stream=no"
11497 if eval "test \"`echo '$ac_cv_func_'esd_play_stream`\" = yes"; then
11498 echo "$ac_t""yes" 1>&6
11501 echo "$ac_t""no" 1>&6
11502 c_switch_site="$save_c_switch_site" LIBS="$save_LIBS"
11507 if test "$have_esd_sound" = "yes"; then
11510 extra_objs="$extra_objs esd.o" && if test "$extra_verbose" = "yes"; then
11511 echo " xemacs will be linked with \"esd.o\""
11513 { test "$extra_verbose" = "yes" && cat << \EOF
11514 Defining HAVE_ESD_SOUND
11516 cat >> confdefs.h <<\EOF
11517 #define HAVE_ESD_SOUND 1
11522 test "$with_esd_sound" = "yes" && \
11523 { echo "Error:" "Required ESD sound support cannot be provided." >&2; exit 1; }
11528 test "$need_miscplay" = "yes" && extra_objs="$extra_objs miscplay.o" && if test "$extra_verbose" = "yes"; then
11529 echo " xemacs will be linked with \"miscplay.o\""
11533 test -z "$with_tty" && with_tty=yes
11535 if test "$with_tty" = "yes" ; then
11536 echo "checking for TTY-related features" 1>&6
11537 echo "configure:11538: checking for TTY-related features" >&5
11538 { test "$extra_verbose" = "yes" && cat << \EOF
11541 cat >> confdefs.h <<\EOF
11546 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
11547 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\""
11550 if test -z "$with_ncurses"; then
11552 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
11553 echo "configure:11554: checking for tgetent in -lncurses" >&5
11554 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
11556 xe_check_libs=" -lncurses "
11557 cat > conftest.$ac_ext <<EOF
11558 #line 11559 "configure"
11559 #include "confdefs.h"
11560 /* Override any gcc2 internal prototype to avoid an error. */
11561 /* We use char because int might match the return type of a gcc2
11562 builtin and then its argument prototype would still apply. */
11569 if { (eval echo configure:11570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11571 eval "ac_cv_lib_$ac_lib_var=yes"
11573 echo "configure: failed program was:" >&5
11574 cat conftest.$ac_ext >&5
11576 eval "ac_cv_lib_$ac_lib_var=no"
11581 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11582 echo "$ac_t""yes" 1>&6
11585 echo "$ac_t""no" 1>&6
11591 if test "$with_ncurses" = "yes"; then
11592 { test "$extra_verbose" = "yes" && cat << \EOF
11593 Defining HAVE_NCURSES
11595 cat >> confdefs.h <<\EOF
11596 #define HAVE_NCURSES 1
11600 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
11601 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
11602 echo "configure:11603: checking for ncurses/curses.h" >&5
11604 cat > conftest.$ac_ext <<EOF
11605 #line 11606 "configure"
11606 #include "confdefs.h"
11607 #include <ncurses/curses.h>
11609 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11610 { (eval echo configure:11611: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11611 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11612 if test -z "$ac_err"; then
11614 eval "ac_cv_header_$ac_safe=yes"
11617 echo "configure: failed program was:" >&5
11618 cat conftest.$ac_ext >&5
11620 eval "ac_cv_header_$ac_safe=no"
11623 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11624 echo "$ac_t""yes" 1>&6
11625 curses_h_path=ncurses/curses.h
11627 echo "$ac_t""no" 1>&6
11630 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
11631 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
11632 echo "configure:11633: checking for ncurses/term.h" >&5
11634 cat > conftest.$ac_ext <<EOF
11635 #line 11636 "configure"
11636 #include "confdefs.h"
11637 #include <ncurses/term.h>
11639 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11640 { (eval echo configure:11641: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11641 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11642 if test -z "$ac_err"; then
11644 eval "ac_cv_header_$ac_safe=yes"
11647 echo "configure: failed program was:" >&5
11648 cat conftest.$ac_ext >&5
11650 eval "ac_cv_header_$ac_safe=no"
11653 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11654 echo "$ac_t""yes" 1>&6
11655 term_h_path=ncurses/term.h
11657 echo "$ac_t""no" 1>&6
11660 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
11661 echo " xemacs will be linked with \"terminfo.o\""
11663 LIBS="-lncurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lncurses\" to \$LIBS"; fi
11665 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
11666 save_c_switch_site="$c_switch_site"
11667 c_switch_site="$c_switch_site -I/usr/include/ncurses"
11668 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
11669 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
11670 echo "configure:11671: checking for ncurses/curses.h" >&5
11672 cat > conftest.$ac_ext <<EOF
11673 #line 11674 "configure"
11674 #include "confdefs.h"
11675 #include <ncurses/curses.h>
11677 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11678 { (eval echo configure:11679: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11679 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11680 if test -z "$ac_err"; then
11682 eval "ac_cv_header_$ac_safe=yes"
11685 echo "configure: failed program was:" >&5
11686 cat conftest.$ac_ext >&5
11688 eval "ac_cv_header_$ac_safe=no"
11691 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11692 echo "$ac_t""yes" 1>&6
11693 curses_h_path=ncurses/curses.h
11695 echo "$ac_t""no" 1>&6
11698 if test "$ac_cv_header_ncurses_curses_h" = "yes"
11699 then echo "configure: warning: "Your system has the bogus ncurses include bug."" 1>&2
11700 else c_switch_site="$save_c_switch_site"
11703 else if test "$have_terminfo" = "yes"; then
11704 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
11705 echo " xemacs will be linked with \"terminfo.o\""
11707 if test -n "$libs_termcap"; then
11708 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
11710 for lib in curses termlib termcap; do
11712 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
11713 echo "configure:11714: checking for tgetent in -l$lib" >&5
11714 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
11716 xe_check_libs=" -l$lib "
11717 cat > conftest.$ac_ext <<EOF
11718 #line 11719 "configure"
11719 #include "confdefs.h"
11720 /* Override any gcc2 internal prototype to avoid an error. */
11721 /* We use char because int might match the return type of a gcc2
11722 builtin and then its argument prototype would still apply. */
11729 if { (eval echo configure:11730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11731 eval "ac_cv_lib_$ac_lib_var=yes"
11733 echo "configure: failed program was:" >&5
11734 cat conftest.$ac_ext >&5
11736 eval "ac_cv_lib_$ac_lib_var=no"
11741 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11742 echo "$ac_t""yes" 1>&6
11743 LIBS="-l${lib} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${lib}\" to \$LIBS"; fi; break
11745 echo "$ac_t""no" 1>&6
11751 else extra_objs="$extra_objs tparam.o" && if test "$extra_verbose" = "yes"; then
11752 echo " xemacs will be linked with \"tparam.o\""
11754 case "$opsys" in *-hp-hpux* ) libs_termcap="-ltermcap" ;; esac
11755 if test -n "$libs_termcap"; then
11756 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
11759 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
11760 echo "configure:11761: checking for tgetent in -lcurses" >&5
11761 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
11763 xe_check_libs=" -lcurses "
11764 cat > conftest.$ac_ext <<EOF
11765 #line 11766 "configure"
11766 #include "confdefs.h"
11767 /* Override any gcc2 internal prototype to avoid an error. */
11768 /* We use char because int might match the return type of a gcc2
11769 builtin and then its argument prototype would still apply. */
11776 if { (eval echo configure:11777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11778 eval "ac_cv_lib_$ac_lib_var=yes"
11780 echo "configure: failed program was:" >&5
11781 cat conftest.$ac_ext >&5
11783 eval "ac_cv_lib_$ac_lib_var=no"
11788 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11789 echo "$ac_t""yes" 1>&6
11790 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
11792 echo "$ac_t""no" 1>&6
11793 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
11794 echo "configure:11795: checking for tgetent in -ltermcap" >&5
11795 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
11797 xe_check_libs=" -ltermcap "
11798 cat > conftest.$ac_ext <<EOF
11799 #line 11800 "configure"
11800 #include "confdefs.h"
11801 /* Override any gcc2 internal prototype to avoid an error. */
11802 /* We use char because int might match the return type of a gcc2
11803 builtin and then its argument prototype would still apply. */
11810 if { (eval echo configure:11811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11812 eval "ac_cv_lib_$ac_lib_var=yes"
11814 echo "configure: failed program was:" >&5
11815 cat conftest.$ac_ext >&5
11817 eval "ac_cv_lib_$ac_lib_var=no"
11822 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11823 echo "$ac_t""yes" 1>&6
11824 LIBS="-ltermcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltermcap\" to \$LIBS"; fi
11826 echo "$ac_t""no" 1>&6
11827 extra_objs="$extra_objs termcap.o" && if test "$extra_verbose" = "yes"; then
11828 echo " xemacs will be linked with \"termcap.o\""
11839 { test "$extra_verbose" = "yes" && cat << EOF
11840 Defining CURSES_H_PATH = "${curses_h_path-curses.h}"
11842 cat >> confdefs.h <<EOF
11843 #define CURSES_H_PATH "${curses_h_path-curses.h}"
11847 { test "$extra_verbose" = "yes" && cat << EOF
11848 Defining TERM_H_PATH = "${term_h_path-term.h}"
11850 cat >> confdefs.h <<EOF
11851 #define TERM_H_PATH "${term_h_path-term.h}"
11856 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
11857 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
11858 echo "configure:11859: checking for gpm.h" >&5
11860 cat > conftest.$ac_ext <<EOF
11861 #line 11862 "configure"
11862 #include "confdefs.h"
11865 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11866 { (eval echo configure:11867: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11867 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11868 if test -z "$ac_err"; then
11870 eval "ac_cv_header_$ac_safe=yes"
11873 echo "configure: failed program was:" >&5
11874 cat conftest.$ac_ext >&5
11876 eval "ac_cv_header_$ac_safe=no"
11879 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11880 echo "$ac_t""yes" 1>&6
11883 echo "$ac_t""no" 1>&6
11887 test -z "$with_gpm" && {
11888 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
11889 echo "configure:11890: checking for Gpm_Open in -lgpm" >&5
11890 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
11892 xe_check_libs=" -lgpm "
11893 cat > conftest.$ac_ext <<EOF
11894 #line 11895 "configure"
11895 #include "confdefs.h"
11896 /* Override any gcc2 internal prototype to avoid an error. */
11897 /* We use char because int might match the return type of a gcc2
11898 builtin and then its argument prototype would still apply. */
11905 if { (eval echo configure:11906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11907 eval "ac_cv_lib_$ac_lib_var=yes"
11909 echo "configure: failed program was:" >&5
11910 cat conftest.$ac_ext >&5
11912 eval "ac_cv_lib_$ac_lib_var=no"
11917 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11918 echo "$ac_t""yes" 1>&6
11921 echo "$ac_t""no" 1>&6
11926 if test "$with_gpm" = "yes"; then
11927 { test "$extra_verbose" = "yes" && cat << \EOF
11930 cat >> confdefs.h <<\EOF
11935 extra_objs="$extra_objs gpmevent.o" && if test "$extra_verbose" = "yes"; then
11936 echo " xemacs will be linked with \"gpmevent.o\""
11938 LIBS="-lgpm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgpm\" to \$LIBS"; fi
11941 else for feature in ncurses gpm; do
11942 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
11943 echo "configure: warning: "--with-${feature} ignored: Not valid without TTY support"" 1>&2
11945 eval "with_${feature}=no"
11948 test "$with_x11" = "yes" -o "$with_tty" = "yes" && extra_objs="$extra_objs event-unixoid.o" && if test "$extra_verbose" = "yes"; then
11949 echo " xemacs will be linked with \"event-unixoid.o\""
11953 test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
11954 != "no no no" && echo "checking for database support" 1>&6
11955 echo "configure:11956: checking for database support" >&5
11957 if test "$with_database_gdbm $with_database_dbm" != "no no"; then
11958 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'`
11959 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6
11960 echo "configure:11961: checking for ndbm.h" >&5
11962 cat > conftest.$ac_ext <<EOF
11963 #line 11964 "configure"
11964 #include "confdefs.h"
11967 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11968 { (eval echo configure:11969: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11969 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11970 if test -z "$ac_err"; then
11972 eval "ac_cv_header_$ac_safe=yes"
11975 echo "configure: failed program was:" >&5
11976 cat conftest.$ac_ext >&5
11978 eval "ac_cv_header_$ac_safe=no"
11981 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11982 echo "$ac_t""yes" 1>&6
11985 echo "$ac_t""no" 1>&6
11987 test "$with_database_gdbm" = "yes" -o \
11988 "$with_database_dbm" = "yes" && \
11989 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
11990 with_database_gdbm=no with_database_dbm=no
11995 if test "$with_database_gdbm" != "no"; then
11997 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
11998 echo "configure:11999: checking for dbm_open in -lgdbm" >&5
11999 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
12001 xe_check_libs=" -lgdbm "
12002 cat > conftest.$ac_ext <<EOF
12003 #line 12004 "configure"
12004 #include "confdefs.h"
12005 /* Override any gcc2 internal prototype to avoid an error. */
12006 /* We use char because int might match the return type of a gcc2
12007 builtin and then its argument prototype would still apply. */
12014 if { (eval echo configure:12015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12016 eval "ac_cv_lib_$ac_lib_var=yes"
12018 echo "configure: failed program was:" >&5
12019 cat conftest.$ac_ext >&5
12021 eval "ac_cv_lib_$ac_lib_var=no"
12026 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12027 echo "$ac_t""yes" 1>&6
12028 with_database_gdbm=yes with_database_dbm=no libdbm=-lgdbm
12030 echo "$ac_t""no" 1>&6
12031 if test "$with_database_gdbm" = "yes"; then
12032 { echo "Error:" "Required GNU DBM support cannot be provided." >&2; exit 1; }
12034 with_database_gdbm=no
12040 if test "$with_database_dbm" != "no"; then
12041 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
12042 echo "configure:12043: checking for dbm_open" >&5
12044 cat > conftest.$ac_ext <<EOF
12045 #line 12046 "configure"
12046 #include "confdefs.h"
12047 /* System header to define __stub macros and hopefully few prototypes,
12048 which can conflict with char dbm_open(); below. */
12049 #include <assert.h>
12050 /* Override any gcc2 internal prototype to avoid an error. */
12051 /* We use char because int might match the return type of a gcc2
12052 builtin and then its argument prototype would still apply. */
12057 /* The GNU C library defines this for functions which it implements
12058 to always fail with ENOSYS. Some functions are actually named
12059 something starting with __ and the normal name is an alias. */
12060 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
12068 if { (eval echo configure:12069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12070 eval "ac_cv_func_dbm_open=yes"
12072 echo "configure: failed program was:" >&5
12073 cat conftest.$ac_ext >&5
12075 eval "ac_cv_func_dbm_open=no"
12079 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
12080 echo "$ac_t""yes" 1>&6
12081 with_database_dbm=yes libdbm=
12083 echo "$ac_t""no" 1>&6
12086 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
12087 echo "configure:12088: checking for dbm_open in -ldbm" >&5
12088 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
12090 xe_check_libs=" -ldbm "
12091 cat > conftest.$ac_ext <<EOF
12092 #line 12093 "configure"
12093 #include "confdefs.h"
12094 /* Override any gcc2 internal prototype to avoid an error. */
12095 /* We use char because int might match the return type of a gcc2
12096 builtin and then its argument prototype would still apply. */
12103 if { (eval echo configure:12104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12105 eval "ac_cv_lib_$ac_lib_var=yes"
12107 echo "configure: failed program was:" >&5
12108 cat conftest.$ac_ext >&5
12110 eval "ac_cv_lib_$ac_lib_var=no"
12115 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12116 echo "$ac_t""yes" 1>&6
12117 with_database_dbm=yes libdbm=-ldbm
12119 echo "$ac_t""no" 1>&6
12120 test "$with_database_dbm" = "yes" && \
12121 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
12122 with_database_dbm=no
12130 test -n "$libdbm" && LIBS=""$libdbm" $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libdbm"\" to \$LIBS"; fi
12131 test "$with_database_gdbm" = "yes" -o \
12132 "$with_database_dbm" = "yes" && \
12133 { test "$extra_verbose" = "yes" && cat << \EOF
12136 cat >> confdefs.h <<\EOF
12142 if test "$with_database_berkdb" != "no"; then
12143 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6
12144 echo "configure:12145: checking for Berkeley db.h" >&5
12145 for path in "db/db.h" "db.h"; do
12146 cat > conftest.$ac_ext <<EOF
12147 #line 12148 "configure"
12148 #include "confdefs.h"
12149 #ifdef HAVE_INTTYPES_H
12150 #define __BIT_TYPES_DEFINED__
12151 #include <inttypes.h>
12152 typedef uint8_t u_int8_t;
12153 typedef uint16_t u_int16_t;
12154 typedef uint32_t u_int32_t;
12155 #ifdef WE_DONT_NEED_QUADS
12156 typedef uint64_t u_int64_t;
12165 if { (eval echo configure:12166: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12167 db_h_path="$path"; break
12169 echo "configure: failed program was:" >&5
12170 cat conftest.$ac_ext >&5
12174 if test -z "$db_h_path"
12175 then echo "$ac_t""no" 1>&6; with_database_berkdb=no
12176 else echo "$ac_t""$db_h_path" 1>&6
12179 if test "$with_database_berkdb" != "no"; then
12180 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6
12181 echo "configure:12182: checking for Berkeley DB version" >&5
12182 cat > conftest.$ac_ext <<EOF
12183 #line 12184 "configure"
12184 #include "confdefs.h"
12185 #include <$db_h_path>
12186 #if DB_VERSION_MAJOR > 1
12191 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12192 egrep "yes" >/dev/null 2>&1; then
12194 echo "$ac_t""2" 1>&6; dbfunc=db_open
12197 echo "$ac_t""1" 1>&6; dbfunc=dbopen
12201 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6
12202 echo "configure:12203: checking for $dbfunc" >&5
12204 cat > conftest.$ac_ext <<EOF
12205 #line 12206 "configure"
12206 #include "confdefs.h"
12207 /* System header to define __stub macros and hopefully few prototypes,
12208 which can conflict with char $dbfunc(); below. */
12209 #include <assert.h>
12210 /* Override any gcc2 internal prototype to avoid an error. */
12211 /* We use char because int might match the return type of a gcc2
12212 builtin and then its argument prototype would still apply. */
12217 /* The GNU C library defines this for functions which it implements
12218 to always fail with ENOSYS. Some functions are actually named
12219 something starting with __ and the normal name is an alias. */
12220 #if defined (__stub_$dbfunc) || defined (__stub___$dbfunc)
12228 if { (eval echo configure:12229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12230 eval "ac_cv_func_$dbfunc=yes"
12232 echo "configure: failed program was:" >&5
12233 cat conftest.$ac_ext >&5
12235 eval "ac_cv_func_$dbfunc=no"
12239 if eval "test \"`echo '$ac_cv_func_'$dbfunc`\" = yes"; then
12240 echo "$ac_t""yes" 1>&6
12241 with_database_berkdb=yes need_libdb=no
12243 echo "$ac_t""no" 1>&6
12246 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6
12247 echo "configure:12248: checking for $dbfunc in -ldb" >&5
12248 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'`
12250 xe_check_libs=" -ldb "
12251 cat > conftest.$ac_ext <<EOF
12252 #line 12253 "configure"
12253 #include "confdefs.h"
12254 /* Override any gcc2 internal prototype to avoid an error. */
12255 /* We use char because int might match the return type of a gcc2
12256 builtin and then its argument prototype would still apply. */
12263 if { (eval echo configure:12264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12265 eval "ac_cv_lib_$ac_lib_var=yes"
12267 echo "configure: failed program was:" >&5
12268 cat conftest.$ac_ext >&5
12270 eval "ac_cv_lib_$ac_lib_var=no"
12275 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12276 echo "$ac_t""yes" 1>&6
12277 with_database_berkdb=yes need_libdb=yes
12279 echo "$ac_t""no" 1>&6
12287 if test "$with_database_berkdb" = "yes"; then
12288 { test "$extra_verbose" = "yes" && cat << EOF
12289 Defining DB_H_PATH = "$db_h_path"
12291 cat >> confdefs.h <<EOF
12292 #define DB_H_PATH "$db_h_path"
12296 { test "$extra_verbose" = "yes" && cat << \EOF
12297 Defining HAVE_BERKELEY_DB
12299 cat >> confdefs.h <<\EOF
12300 #define HAVE_BERKELEY_DB 1
12304 test "$need_libdb" = "yes" && LIBS="-ldb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldb\" to \$LIBS"; fi
12305 else with_database_berkdb=no
12309 if test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
12310 != "no no no"; then
12311 { test "$extra_verbose" = "yes" && cat << \EOF
12312 Defining HAVE_DATABASE
12314 cat >> confdefs.h <<\EOF
12315 #define HAVE_DATABASE 1
12319 extra_objs="$extra_objs database.o" && if test "$extra_verbose" = "yes"; then
12320 echo " xemacs will be linked with \"database.o\""
12324 if test "$with_socks" = "yes"; then
12326 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
12327 echo "configure:12328: checking for SOCKSinit in -lsocks" >&5
12328 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
12330 xe_check_libs=" -lsocks "
12331 cat > conftest.$ac_ext <<EOF
12332 #line 12333 "configure"
12333 #include "confdefs.h"
12334 /* Override any gcc2 internal prototype to avoid an error. */
12335 /* We use char because int might match the return type of a gcc2
12336 builtin and then its argument prototype would still apply. */
12343 if { (eval echo configure:12344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12345 eval "ac_cv_lib_$ac_lib_var=yes"
12347 echo "configure: failed program was:" >&5
12348 cat conftest.$ac_ext >&5
12350 eval "ac_cv_lib_$ac_lib_var=no"
12355 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12356 echo "$ac_t""yes" 1>&6
12357 ac_tr_lib=HAVE_LIB`echo socks | sed -e 's/[^a-zA-Z0-9_]/_/g' \
12358 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
12359 { test "$extra_verbose" = "yes" && cat << EOF
12360 Defining $ac_tr_lib
12362 cat >> confdefs.h <<EOF
12363 #define $ac_tr_lib 1
12367 LIBS="-lsocks $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lsocks\" to \$LIBS"; fi
12370 echo "$ac_t""no" 1>&6
12374 test -n "$ac_cv_lib_socks_SOCKSinit" && { test "$extra_verbose" = "yes" && cat << \EOF
12375 Defining HAVE_SOCKS
12377 cat >> confdefs.h <<\EOF
12378 #define HAVE_SOCKS 1
12384 if test "$usage_tracking" = "yes"; then
12385 { test "$extra_verbose" = "yes" && cat << \EOF
12386 Defining USAGE_TRACKING
12388 cat >> confdefs.h <<\EOF
12389 #define USAGE_TRACKING 1
12393 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi
12396 if test "$with_modules" != "no"; then
12397 echo "checking for module support" 1>&6
12398 echo "configure:12399: checking for module support" >&5
12400 ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'`
12401 echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6
12402 echo "configure:12403: checking for dlfcn.h" >&5
12404 cat > conftest.$ac_ext <<EOF
12405 #line 12406 "configure"
12406 #include "confdefs.h"
12409 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12410 { (eval echo configure:12411: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12411 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12412 if test -z "$ac_err"; then
12414 eval "ac_cv_header_$ac_safe=yes"
12417 echo "configure: failed program was:" >&5
12418 cat conftest.$ac_ext >&5
12420 eval "ac_cv_header_$ac_safe=no"
12423 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12424 echo "$ac_t""yes" 1>&6
12427 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
12428 echo "configure:12429: checking for dlopen in -ldl" >&5
12429 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
12431 xe_check_libs=" -ldl "
12432 cat > conftest.$ac_ext <<EOF
12433 #line 12434 "configure"
12434 #include "confdefs.h"
12435 /* Override any gcc2 internal prototype to avoid an error. */
12436 /* We use char because int might match the return type of a gcc2
12437 builtin and then its argument prototype would still apply. */
12444 if { (eval echo configure:12445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12446 eval "ac_cv_lib_$ac_lib_var=yes"
12448 echo "configure: failed program was:" >&5
12449 cat conftest.$ac_ext >&5
12451 eval "ac_cv_lib_$ac_lib_var=no"
12456 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12457 echo "$ac_t""yes" 1>&6
12458 have_dl=yes libdl=dl
12460 echo "$ac_t""no" 1>&6
12462 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6
12463 echo "configure:12464: checking for dlopen in -lc" >&5
12464 ac_lib_var=`echo c'_'dlopen | sed 'y%./+-%__p_%'`
12466 xe_check_libs=" -lc "
12467 cat > conftest.$ac_ext <<EOF
12468 #line 12469 "configure"
12469 #include "confdefs.h"
12470 /* Override any gcc2 internal prototype to avoid an error. */
12471 /* We use char because int might match the return type of a gcc2
12472 builtin and then its argument prototype would still apply. */
12479 if { (eval echo configure:12480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12481 eval "ac_cv_lib_$ac_lib_var=yes"
12483 echo "configure: failed program was:" >&5
12484 cat conftest.$ac_ext >&5
12486 eval "ac_cv_lib_$ac_lib_var=no"
12491 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12492 echo "$ac_t""yes" 1>&6
12495 echo "$ac_t""no" 1>&6
12503 echo "$ac_t""no" 1>&6
12506 if test -n "$have_dl"; then
12507 { test "$extra_verbose" = "yes" && cat << \EOF
12508 Defining HAVE_DLOPEN
12510 cat >> confdefs.h <<\EOF
12511 #define HAVE_DLOPEN 1
12517 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
12518 echo "configure:12519: checking for shl_load in -ldld" >&5
12519 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
12521 xe_check_libs=" -ldld "
12522 cat > conftest.$ac_ext <<EOF
12523 #line 12524 "configure"
12524 #include "confdefs.h"
12525 /* Override any gcc2 internal prototype to avoid an error. */
12526 /* We use char because int might match the return type of a gcc2
12527 builtin and then its argument prototype would still apply. */
12534 if { (eval echo configure:12535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12536 eval "ac_cv_lib_$ac_lib_var=yes"
12538 echo "configure: failed program was:" >&5
12539 cat conftest.$ac_ext >&5
12541 eval "ac_cv_lib_$ac_lib_var=no"
12546 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12547 echo "$ac_t""yes" 1>&6
12548 libdl=dld have_dl=yes;
12549 { test "$extra_verbose" = "yes" && cat << \EOF
12550 Defining HAVE_SHL_LOAD
12552 cat >> confdefs.h <<\EOF
12553 #define HAVE_SHL_LOAD 1
12558 echo "$ac_t""no" 1>&6
12560 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6
12561 echo "configure:12562: checking for dld_init in -ldld" >&5
12562 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'`
12564 xe_check_libs=" -ldld "
12565 cat > conftest.$ac_ext <<EOF
12566 #line 12567 "configure"
12567 #include "confdefs.h"
12568 /* Override any gcc2 internal prototype to avoid an error. */
12569 /* We use char because int might match the return type of a gcc2
12570 builtin and then its argument prototype would still apply. */
12577 if { (eval echo configure:12578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12579 eval "ac_cv_lib_$ac_lib_var=yes"
12581 echo "configure: failed program was:" >&5
12582 cat conftest.$ac_ext >&5
12584 eval "ac_cv_lib_$ac_lib_var=no"
12589 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12590 echo "$ac_t""yes" 1>&6
12591 libdl=dld have_dl=yes;
12592 { test "$extra_verbose" = "yes" && cat << \EOF
12593 Defining HAVE_DLD_INIT
12595 cat >> confdefs.h <<\EOF
12596 #define HAVE_DLD_INIT 1
12601 echo "$ac_t""no" 1>&6
12610 if test -n "$have_dl"; then
12617 ld_dynamic_link_flags=
12619 xealias=$internal_configuration
12621 echo "checking how to build dynamic libraries for ${xehost}" 1>&6
12622 echo "configure:12623: checking how to build dynamic libraries for ${xehost}" >&5
12623 # Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts.
12626 *-*-linux*) xehost=`echo $xehost | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
12629 xehost_cpu=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
12630 xehost_vendor=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
12631 xehost_os=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
12633 case "$xehost_os" in
12635 # AIX sometimes has problems with the GCC collect2 program. For some
12636 # reason, if we set the COLLECT_NAMES environment variable, the problems
12637 # vanish in a puff of smoke.
12638 if test "${COLLECT_NAMES+set}" != set; then
12640 export COLLECT_NAMES
12645 # Now see if the compiler is really GCC.
12646 if test "$GCC" = "yes"; then
12649 echo $ac_n "checking checking whether we are using GNU C""... $ac_c" 1>&6
12650 echo "configure:12651: checking checking whether we are using GNU C" >&5
12651 cat > conftest.$ac_ext <<EOF
12652 #line 12653 "configure"
12653 #include "confdefs.h"
12660 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12661 egrep "yes" >/dev/null 2>&1; then
12670 echo "$ac_t""${XEGCC}" 1>&6
12673 echo $ac_n "checking how to produce PIC code""... $ac_c" 1>&6
12674 echo "configure:12675: checking how to produce PIC code" >&5
12677 can_build_shared=yes
12678 if test "$XEGCC" = yes; then
12681 case "$xehost_os" in
12682 aix3* | aix4* | irix5* | irix6* | osf3* | osf4*)
12683 # PIC is the default for these OSes.
12687 # We can build DLLs from non-PIC.
12690 # FIXME: we need at least 68020 code to build shared libraries, but
12691 # adding the `-m68020' flag to GCC prevents building anything better,
12693 dll_cflags='-m68020 -resident32 -malways-restore-a4'
12700 # PORTME Check for PIC flags for the system compiler.
12701 case "$xehost_os" in
12702 hpux9* | hpux1[0-9]*)
12703 # Is there a better link_static_flag that works with the bundled CC?
12710 # PIC (with -KPIC) is the default.
12714 # We can build DLLs from non-PIC.
12718 # All OSF/1 code is PIC.
12723 dll_cflags='-belf -Kpic'
12757 can_build_shared=no
12762 if test -n "$dll_cflags"; then
12763 echo "$ac_t""${dll_cflags}" 1>&6
12765 # Check to make sure the dll_cflags actually works.
12766 echo $ac_n "checking if PIC flag ${dll_cflags} really works""... $ac_c" 1>&6
12767 echo "configure:12768: checking if PIC flag ${dll_cflags} really works" >&5
12768 save_CFLAGS="$CFLAGS"
12769 CFLAGS="$CFLAGS $dll_cflags -DPIC"
12770 cat > conftest.$ac_ext <<EOF
12771 #line 12772 "configure"
12772 #include "confdefs.h"
12778 if { (eval echo configure:12779: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12781 # On HP-UX, the stripped-down bundled CC doesn't accept +Z, but also
12782 # reports no error. So, we need to grep stderr for (Bundled).
12783 if grep '(Bundled)' config.log >/dev/null; then
12784 echo "$ac_t""no" 1>&6
12785 can_build_shared=no
12788 echo "$ac_t""yes" 1>&6
12791 echo "configure: failed program was:" >&5
12792 cat conftest.$ac_ext >&5
12794 echo "$ac_t""no" 1>&6
12795 can_build_shared=no
12799 CFLAGS="$save_CFLAGS"
12801 echo "$ac_t""none" 1>&6
12804 if test "$can_build_shared" = "yes"; then
12808 echo $ac_n "checking if C compiler can produce shared libraries""... $ac_c" 1>&6
12809 echo "configure:12810: checking if C compiler can produce shared libraries" >&5
12810 if test "$XEGCC" = yes; then
12813 else # Not using GCC
12814 case "$xehost_os" in
12816 xldf="-bE:ELLSONAME.exp -H512 -T512 -bhalt:4 -bM:SRE -bnoentry -lc"
12817 xcldf="${wl}-bE:ELLSONAME.exp ${wl}-H512 ${wl}-T512 ${wl}-bhalt:4 ${wl}-bM:SRE ${wl}-bnoentry ${wl}-lc"
12820 freebsd2* | netbsd* | openbsd*)
12822 xcldf="${wl}-Bshareable"
12831 xcldf="${wl}-b ${wl}+s"
12834 irix5* | irix6* | osf3* | osf4*)
12835 xcldf="${wl}-shared"
12839 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7* | uts4*)
12845 xcldf="${wl}-assert ${wl}pure-text ${wl}-Bstatic"
12846 xldf="-assert pure-text -Bstatic"
12849 fi # End if if we are using gcc
12851 if test -n "$xcldf"; then
12852 save_LDFLAGS=$LDFLAGS
12854 save_xe_libs=$xe_libs
12855 LDFLAGS="$xcldf $LDFLAGS"
12858 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
12859 cat > conftest.$ac_ext <<EOF
12860 #line 12861 "configure"
12861 #include "confdefs.h"
12867 if { (eval echo configure:12868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12871 echo "configure: failed program was:" >&5
12872 cat conftest.$ac_ext >&5
12877 LDFLAGS=$save_LDFLAGS
12879 xe_libs=$save_xe_libs
12880 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
12884 echo "$ac_t""${cc_produces_so}" 1>&6
12887 if test -z "$LTLD"; then
12889 if test "$XEGCC" = yes; then
12890 # Check if gcc -print-prog-name=ld gives a path.
12891 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
12892 echo "configure:12893: checking for ld used by GCC" >&5
12893 ac_prog=`($CC -print-prog-name=ld) 2>&5`
12895 # Accept absolute paths.
12897 if test -z "$LTLD"; then
12899 *gcc-lib*) LTLD="$CC"
12907 # If it fails, then pretend we aren't using GCC.
12911 # If it is relative, then search for the first ld in PATH.
12912 with_gnu_ld=unknown
12916 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
12917 echo "configure:12918: checking for GNU ld" >&5
12920 if test -z "$LTLD"; then
12921 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
12922 for ac_dir in $PATH; do
12923 test -z "$ac_dir" && ac_dir=.
12924 if test -f "$ac_dir/$ac_prog"; then
12925 LTLD="$ac_dir/$ac_prog"
12926 # Check to see if the program is GNU ld. I'd rather use --version,
12927 # but apparently some GNU ld's only accept -v.
12928 # Break only if it was the GNU/non-GNU ld that we prefer.
12929 if "$LTLD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
12939 if test -n "$LTLD"; then
12940 echo "$ac_t""${LTLD}" 1>&6
12942 echo "$ac_t""no" 1>&6
12945 if test -z "$LTLD" -a "$cc_produces_so" = no; then
12946 { echo "configure: error: no acceptable linker found in \$PATH" 1>&2; exit 1; }
12951 ld_dynamic_link_flags=
12953 # Check to see if it really is or isn't GNU ld.
12954 echo $ac_n "checking if the linker is GNU ld""... $ac_c" 1>&6
12955 echo "configure:12956: checking if the linker is GNU ld" >&5
12956 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
12957 if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
12962 echo "$ac_t""${xe_gnu_ld}" 1>&6
12964 case "$xehost_os" in
12965 amigaos* | sunos4*)
12966 # On these operating systems, we should treat GNU ld like the system ld.
12967 gnu_ld_acts_native=yes
12970 gnu_ld_acts_native=no
12974 if test "$cc_produces_so" = "yes"; then
12977 can_build_shared=yes
12979 # OK - only NOW do we futz about with ld.
12980 # See if the linker supports building shared libraries.
12981 echo $ac_n "checking whether the linker supports shared libraries""... $ac_c" 1>&6
12982 echo "configure:12983: checking whether the linker supports shared libraries" >&5
12984 dll_ldflags=$LDFLAGS
12986 can_build_shared=yes
12987 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then
12988 # See if GNU ld supports shared libraries.
12989 if $LTLD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
12991 dll_ldflags="-shared"
12997 # PORTME fill in a description of your system's linker (not GNU ld)
12998 case "$xehost_os" in
13008 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13009 # support. Future versions do this automatically, but an explicit c++rt0.o
13010 # doesn't break anything, and helps significantly (at the cost of a little
13015 dll_post="/usr/lib/c++rt0.o"
13018 # Unfortunately, older versions of FreeBSD 2 don't have this feature.
13021 dll_ldflags="-Bshareable"
13024 # FreeBSD 3, at last, uses gcc -shared to do shared libraries.
13026 dll_ldflags="-shared"
13040 # Tested with NetBSD 1.2 ld
13055 # For both SCO and Solaris we MAY want to have LDFLAGS include -z text
13056 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7*)
13059 *gcc*) dll_ldflags="-shared"
13062 *) dll_ldflags="-G"
13068 if test "$XEGCC" = yes; then
13088 can_build_shared=no
13092 echo "$ac_t""${ld_shlibs}" 1>&6
13093 if test "$ld_shlibs" = "no"; then
13094 can_build_shared=no
13096 fi # End of if cc_produces_so = no
13099 if test "$xe_gnu_ld" = yes; then
13100 if test "$ld_shlibs" = yes; then
13101 ld_dynamic_link_flags="${wl}-export-dynamic"
13105 if test -z "$ld_dynamic_link_flags"; then
13106 case "$xehost_os" in
13108 ld_dynamic_link_flags=
13112 ld_dynamic_link_flags=
13116 ld_dynamic_link_flags=
13120 ld_dynamic_link_flags=
13124 ld_dynamic_link_flags=
13128 ld_dynamic_link_flags="${wl}-E"
13132 ld_dynamic_link_flags=
13136 ld_dynamic_link_flags=
13140 ld_dynamic_link_flags=
13144 ld_dynamic_link_flags=
13147 solaris2* | solaris7*)
13148 ld_dynamic_link_flags=
13151 sco3.2v5* | unixware* | sysv5* | sysv4*)
13152 ld_dynamic_link_flags="${wl}-Bexport"
13156 ld_dynamic_link_flags=
13160 ld_dynamic_link_flags=
13164 ld_dynamic_link_flags=
13168 fi # End of if -z ld_dynamic_link_flags
13169 fi # End of if test "$can_build_shared" = "yes"
13180 if test "$can_build_shared" = "yes"; then
13181 { test "$extra_verbose" = "yes" && cat << \EOF
13182 Defining HAVE_SHLIB
13184 cat >> confdefs.h <<\EOF
13185 #define HAVE_SHLIB 1
13189 extra_objs="$extra_objs sysdll.o emodules.o" && if test "$extra_verbose" = "yes"; then
13190 echo " xemacs will be linked with \"sysdll.o emodules.o\""
13192 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
13193 test -n "$libdl" && LIBS="-l${libdl} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${libdl}\" to \$LIBS"; fi
13194 for ac_func in dlerror _dlerror
13196 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13197 echo "configure:13198: checking for $ac_func" >&5
13199 cat > conftest.$ac_ext <<EOF
13200 #line 13201 "configure"
13201 #include "confdefs.h"
13202 /* System header to define __stub macros and hopefully few prototypes,
13203 which can conflict with char $ac_func(); below. */
13204 #include <assert.h>
13205 /* Override any gcc2 internal prototype to avoid an error. */
13206 /* We use char because int might match the return type of a gcc2
13207 builtin and then its argument prototype would still apply. */
13212 /* The GNU C library defines this for functions which it implements
13213 to always fail with ENOSYS. Some functions are actually named
13214 something starting with __ and the normal name is an alias. */
13215 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13223 if { (eval echo configure:13224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13225 eval "ac_cv_func_$ac_func=yes"
13227 echo "configure: failed program was:" >&5
13228 cat conftest.$ac_ext >&5
13230 eval "ac_cv_func_$ac_func=no"
13234 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13235 echo "$ac_t""yes" 1>&6
13236 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13237 { test "$extra_verbose" = "yes" && cat << EOF
13238 Defining $ac_tr_func
13240 cat >> confdefs.h <<EOF
13241 #define $ac_tr_func 1
13246 echo "$ac_t""no" 1>&6
13252 if test "$with_modules" = "yes"; then
13253 { echo "Error:" "Required module support cannot be provided." >&2; exit 1; }
13255 echo "configure: warning: "Module support cannot be provided."" 1>&2
13261 cat > conftest.$ac_ext <<EOF
13262 #line 13263 "configure"
13263 #include "confdefs.h"
13264 int main(int c,char *v[]){return 0;}
13266 if { (eval echo configure:13267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
13271 echo "configure: failed program was:" >&5
13272 cat conftest.$ac_ext >&5
13276 echo "*** PANIC *** The C compiler can no longer build working executables."
13277 echo "*** PANIC *** Please examine the tail of config.log for runtime errors."
13278 echo "*** PANIC *** The most likely reason for this problem is that configure"
13279 echo "*** PANIC *** links with shared libraries, but those libraries cannot be"
13280 echo "*** PANIC *** found at run time."
13281 echo "*** PANIC ***"
13282 echo "*** PANIC *** On a Linux system, edit /etc/ld.so.conf and re-run ldconfig."
13283 echo "*** PANIC *** On other systems, try telling configure where to find the"
13284 echo "*** PANIC *** shared libraries using the --site-runtime-libraries option"
13285 echo "*** PANIC ***"
13286 echo "*** PANIC *** Another way to shoot yourself in the foot is to specify"
13287 echo "*** PANIC *** --with-FEATURE when FEATURE is not actually installed"
13288 echo "*** PANIC *** on your system. Don't do that."
13293 if test "$win32_processes" = "yes"; then
13294 extra_objs="$extra_objs process-nt.o" && if test "$extra_verbose" = "yes"; then
13295 echo " xemacs will be linked with \"process-nt.o\""
13298 { test "$extra_verbose" = "yes" && cat << \EOF
13299 Defining HAVE_UNIX_PROCESSES
13301 cat >> confdefs.h <<\EOF
13302 #define HAVE_UNIX_PROCESSES 1
13306 extra_objs="$extra_objs process-unix.o" && if test "$extra_verbose" = "yes"; then
13307 echo " xemacs will be linked with \"process-unix.o\""
13314 for W in $CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
13319 for W in $extra_objs; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
13324 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
13325 c_switch_general="$T"
13329 for W in $c_switch_x_site $X_CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
13330 c_switch_window_system="$T"
13334 for W in $c_switch_general $c_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
13339 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
13340 ld_switch_general="$T"
13344 for W in $ld_switch_x_site; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
13345 ld_switch_window_system="$T"
13349 for W in $ld_switch_general $ld_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
13354 for W in $LIBS $libs_machine $libs_system $libs_standard; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
13355 ld_libs_general="$T"
13359 for W in $X_EXTRA_LIBS $libs_x $X_PRE_LIBS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
13360 ld_libs_window_system="$T"
13364 for W in $ld_libs_window_system $ld_libs_general; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
13369 MAKE_SUBDIR="$MAKE_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$MAKE_SUBDIR"; fi
13370 internal_makefile_list="Makefile.in"
13371 SUBDIR_MAKEFILES=''
13372 test -d lock || mkdir lock
13373 for dir in $MAKE_SUBDIR; do
13374 case "$dir" in */* ) ( for d in `echo $dir | sed 's:/: :g'` ; do
13375 test -d "$d" || mkdir "$d"; cd "$d"
13377 * ) test -d "$dir" || mkdir "$dir" ;;
13381 for W in $SUBDIR_MAKEFILES $dir/Makefile $dir/GNUmakefile; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
13382 SUBDIR_MAKEFILES="$T"
13386 for W in $internal_makefile_list $dir/Makefile.in; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
13387 internal_makefile_list="$T"
13394 for dir in src/s src/m; do
13395 if test ! -d "$dir" ; then
13396 echo Making symbolic link to "$srcdir/$dir"
13397 ${LN_S} "$srcdir/$dir" "$dir"
13401 if test "$extra_verbose" = "yes"; then
13403 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
13408 if test -f "$srcdir/src/.gdbinit" -a ! -f "src/.gdbinit"; then
13409 test "$extra_verbose" = "yes" && echo "creating src/.gdbinit"
13410 echo "source $srcdir/src/.gdbinit" > "src/.gdbinit"
13413 if test -f "$srcdir/src/.dbxrc" -a ! -f "src/.dbxrc"; then
13414 test "$extra_verbose" = "yes" && echo "creating src/.dbxrc"
13415 echo ". $srcdir/src/.dbxrc" > "src/.dbxrc"
13418 if test -f "$srcdir/TAGS" -a ! -f "TAGS"; then
13419 test "$extra_verbose" = "yes" && echo "creating TAGS"
13421 $srcdir/TAGS,include" > "TAGS"
13424 if test "$__SUNPRO_C" = "yes"; then
13425 test "$extra_verbose" = "yes" && echo "creating .sbinit"
13426 ( echo "# For use with Sun WorkShop's Source browser."
13427 echo "# See sbquery(1) and sbinit(4) for more information"
13428 for dir in $MAKE_SUBDIR; do echo "import $dir"; done
13455 *\$* ) eval "PREFIX=$PREFIX" ;;
13463 EXEC_PREFIX=$exec_prefix
13465 case "$EXEC_PREFIX" in
13466 *\$* ) eval "EXEC_PREFIX=$EXEC_PREFIX" ;;
13477 *\$* ) eval "INFODIR=$INFODIR" ;;
13487 case "$INFOPATH" in
13488 *\$* ) eval "INFOPATH=$INFOPATH" ;;
13496 PACKAGE_PATH=$package_path
13498 case "$PACKAGE_PATH" in
13499 *\$* ) eval "PACKAGE_PATH=$PACKAGE_PATH" ;;
13510 *\$* ) eval "LISPDIR=$LISPDIR" ;;
13518 MODULEDIR=$moduledir
13520 case "$MODULEDIR" in
13521 *\$* ) eval "MODULEDIR=$MODULEDIR" ;;
13529 SITELISPDIR=$sitelispdir
13531 case "$SITELISPDIR" in
13532 *\$* ) eval "SITELISPDIR=$SITELISPDIR" ;;
13540 SITEMODULEDIR=$sitemoduledir
13542 case "$SITEMODULEDIR" in
13543 *\$* ) eval "SITEMODULEDIR=$SITEMODULEDIR" ;;
13554 *\$* ) eval "ETCDIR=$ETCDIR" ;;
13565 *\$* ) eval "LOCKDIR=$LOCKDIR" ;;
13576 *\$* ) eval "DOCDIR=$DOCDIR" ;;
13584 ARCHLIBDIR=$archlibdir
13586 case "$ARCHLIBDIR" in
13587 *\$* ) eval "ARCHLIBDIR=$ARCHLIBDIR" ;;
13611 RECURSIVE_MAKE="\$(MAKE) \$(MFLAGS) CC='\$(CC)' CFLAGS='\$(CFLAGS)' LDFLAGS='\$(LDFLAGS)' CPPFLAGS='\$(CPPFLAGS)'"
13619 : ${XEMACS_CC:=$CC}
13622 if test "$with_prefix" = "yes"; then
13623 { test "$extra_verbose" = "yes" && cat << \EOF
13624 Defining PREFIX_USER_DEFINED
13626 cat >> confdefs.h <<\EOF
13627 #define PREFIX_USER_DEFINED 1
13633 if test "$with_site_lisp" = "no"; then
13634 { test "$extra_verbose" = "yes" && cat << \EOF
13635 Defining INHIBIT_SITE_LISP
13637 cat >> confdefs.h <<\EOF
13638 #define INHIBIT_SITE_LISP 1
13643 if test "$with_site_modules" = "no"; then
13644 { test "$extra_verbose" = "yes" && cat << \EOF
13645 Defining INHIBIT_SITE_MODULES
13647 cat >> confdefs.h <<\EOF
13648 #define INHIBIT_SITE_MODULES 1
13656 for W in $ac_configure_args; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
13657 ac_configure_args="$T"
13659 { test "$extra_verbose" = "yes" && cat << EOF
13660 Defining EMACS_CONFIGURATION = "$configuration"
13662 cat >> confdefs.h <<EOF
13663 #define EMACS_CONFIGURATION "$configuration"
13667 { test "$extra_verbose" = "yes" && cat << EOF
13668 Defining EMACS_CONFIG_OPTIONS = "$ac_configure_args"
13670 cat >> confdefs.h <<EOF
13671 #define EMACS_CONFIG_OPTIONS "$ac_configure_args"
13675 { test "$extra_verbose" = "yes" && cat << EOF
13676 Defining config_machfile = "$machfile"
13678 cat >> confdefs.h <<EOF
13679 #define config_machfile "$machfile"
13683 { test "$extra_verbose" = "yes" && cat << EOF
13684 Defining config_opsysfile = "$opsysfile"
13686 cat >> confdefs.h <<EOF
13687 #define config_opsysfile "$opsysfile"
13694 { test "$extra_verbose" = "yes" && cat << EOF
13695 Defining LD_SWITCH_X_SITE = $null_string
13697 cat >> confdefs.h <<EOF
13698 #define LD_SWITCH_X_SITE $null_string
13702 { test "$extra_verbose" = "yes" && cat << EOF
13703 Defining LD_SWITCH_X_SITE_AUX = $null_string
13705 cat >> confdefs.h <<EOF
13706 #define LD_SWITCH_X_SITE_AUX $null_string
13710 { test "$extra_verbose" = "yes" && cat << EOF
13711 Defining C_SWITCH_X_SITE = $null_string
13713 cat >> confdefs.h <<EOF
13714 #define C_SWITCH_X_SITE $null_string
13718 { test "$extra_verbose" = "yes" && cat << EOF
13719 Defining LD_SWITCH_SITE = $null_string
13721 cat >> confdefs.h <<EOF
13722 #define LD_SWITCH_SITE $null_string
13726 { test "$extra_verbose" = "yes" && cat << EOF
13727 Defining C_SWITCH_SITE = $null_string
13729 cat >> confdefs.h <<EOF
13730 #define C_SWITCH_SITE $null_string
13736 if test "$GNU_MALLOC" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
13737 Defining GNU_MALLOC
13739 cat >> confdefs.h <<\EOF
13740 #define GNU_MALLOC 1
13744 elif test "$with_system_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
13745 Defining USE_SYSTEM_MALLOC
13747 cat >> confdefs.h <<\EOF
13748 #define USE_SYSTEM_MALLOC 1
13752 elif test "$with_debug_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
13753 Defining USE_DEBUG_MALLOC
13755 cat >> confdefs.h <<\EOF
13756 #define USE_DEBUG_MALLOC 1
13760 { test "$extra_verbose" = "yes" && cat << \EOF
13761 Defining USE_SYSTEM_MALLOC
13763 cat >> confdefs.h <<\EOF
13764 #define USE_SYSTEM_MALLOC 1
13769 test "$with_i18n3" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13772 cat >> confdefs.h <<\EOF
13777 test "$GCC" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13780 cat >> confdefs.h <<\EOF
13785 test "$external_widget" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13786 Defining EXTERNAL_WIDGET
13788 cat >> confdefs.h <<\EOF
13789 #define EXTERNAL_WIDGET 1
13793 test "$no_doc_file" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13794 Defining NO_DOC_FILE
13796 cat >> confdefs.h <<\EOF
13797 #define NO_DOC_FILE 1
13801 test "$with_purify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13804 cat >> confdefs.h <<\EOF
13809 test "$with_quantify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13812 cat >> confdefs.h <<\EOF
13817 test "$with_pop" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13818 Defining MAIL_USE_POP
13820 cat >> confdefs.h <<\EOF
13821 #define MAIL_USE_POP 1
13825 test "$with_kerberos" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13828 cat >> confdefs.h <<\EOF
13833 test "$with_hesiod" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13836 cat >> confdefs.h <<\EOF
13841 test "$use_union_type" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13842 Defining USE_UNION_TYPE
13844 cat >> confdefs.h <<\EOF
13845 #define USE_UNION_TYPE 1
13849 test "$pdump" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13852 cat >> confdefs.h <<\EOF
13860 if test -f /etc/osversion; then echo "osversion: `cat /etc/osversion`"
13862 echo "uname -a: `uname -a`"
13865 echo "$0 $quoted_arguments"
13868 if test ! -z ${emacs_beta_version} ; then
13869 if test -z "${emacs_is_beta}" ; then
13870 xemacs_betaname=".${emacs_beta_version}"
13872 xemacs_betaname="-b${emacs_beta_version}"
13881 XEmacs ${emacs_major_version}.${emacs_minor_version}${xemacs_betaname} \"$xemacs_codename\" configured for \`$canonical'.
13883 Where should the build process find the source code? $srcdir
13884 What installation prefix should install use? $prefix
13885 What operating system and machine description files should XEmacs use?
13886 \`$opsysfile' and \`$machfile'
13887 What compiler should XEmacs be built with? $CC $CFLAGS
13888 Should XEmacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
13889 Should XEmacs use the relocating allocator for buffers? $rel_alloc
13890 What window system should XEmacs use? ${window_system}"
13891 if test "$with_x11" = "yes"; then
13892 echo " Where do we find X Windows header files? $x_includes"
13893 echo " Where do we find X Windows libraries? $x_libraries"
13895 if test -n "$site_includes"; then
13896 echo " Additional header files: $site_includes"
13898 if test -n "$site_libraries"; then
13899 echo " Additional libraries: $site_libraries"
13901 if test -n "$site_prefixes"; then
13902 echo " Additional prefixes: $site_prefixes"
13904 if test -n "$runpath"; then
13905 echo " Runtime library search path: $runpath"
13907 if test "$have_xaw" = "yes"; then
13908 echo " Athena library to link: $athena_lib"
13909 echo " Athena header include path: $athena_h_path"
13911 test "$with_dnet" = yes && echo " Compiling in support for DNET."
13912 test "$with_socks" = yes && echo " Compiling in support for SOCKS."
13913 test "$with_xauth" = yes && echo " Compiling in support for XAUTH."
13914 if test "$with_xmu" != yes -a "$with_x11" = yes; then
13915 echo " No Xmu; substituting equivalent routines."
13918 if test "$with_xpm" = yes; then
13919 echo " Compiling in support for XPM images."
13920 elif test "$with_x11" = yes; then
13921 echo " --------------------------------------------------------------------"
13922 echo " WARNING: Compiling without XPM support."
13923 if test "$xpm_problem" != ""; then
13924 echo " Reason: $xpm_problem"
13926 echo " WARNING: You should strongly consider installing XPM."
13927 echo " WARNING: Otherwise toolbars and other graphics will look suboptimal."
13928 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
13929 echo " --------------------------------------------------------------------"
13931 if test "$with_png" = yes; then
13932 echo " Compiling in support for PNG image handling."
13933 elif test "$window_system" != "none"; then
13934 echo " --------------------------------------------------------------------"
13935 echo " WARNING: Compiling without PNG image support."
13936 if test "$png_problem" != ""; then
13937 echo " Reason: $png_problem"
13939 echo " WARNING: You should strongly consider installing the PNG libraries."
13940 echo " WARNING: Otherwise certain images and glyphs may not display."
13941 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
13942 echo " --------------------------------------------------------------------"
13944 test "$with_gif" = yes && echo " Compiling in support for (builtin) GIF image handling."
13945 test "$with_jpeg" = yes && echo " Compiling in support for JPEG image handling."
13946 test "$with_tiff" = yes && echo " Compiling in support for TIFF image handling."
13947 test "$with_xface" = yes && echo " Compiling in support for X-Face message headers."
13949 test "$with_native_sound" = yes && echo " Compiling in native sound support."
13950 test "$with_nas_sound" = yes && echo " Compiling in network sound (NAS) support."
13951 test "$old_nas" = yes && echo " nas library lacks error trapping, will play synchronously."
13952 test "$with_esd_sound" = yes && echo " Compiling in support for Enlightened Sound Daemon (ESD)."
13954 test "$with_database_berkdb" = yes && echo " Compiling in support for Berkeley DB."
13955 test "$with_database_dbm" = yes && echo " Compiling in support for DBM."
13956 test "$with_database_gdbm" = yes && echo " Compiling in support for GNU DBM."
13958 test "$with_ldap" = yes && echo " Compiling in support for LDAP."
13960 test "$with_ncurses" = yes && echo " Compiling in support for ncurses."
13961 test "$with_gpm" = yes && echo " Compiling in support for GPM (General Purpose Mouse)."
13963 test "$with_mule" = yes && echo " Compiling in Mule (multi-lingual) support."
13964 test "$with_file_coding" = yes && echo " Compiling in File coding support."
13965 test "$with_xim" != no && echo " Compiling in XIM (X11R5+ I18N input method) support."
13966 test "$with_xim" = motif && echo " Using Motif to provide XIM support."
13967 test "$with_xim" = xlib && echo " Using raw Xlib to provide XIM support."
13968 test "$with_xfs" = yes && echo " Using XFontSet to provide bilingual menubar."
13969 test "$with_canna" = yes && echo " Compiling in support for Canna on Mule."
13970 if test "$with_wnn" = yes; then
13971 echo " Compiling in support for the WNN input method on Mule."
13972 test "$with_wnn6" = yes && echo " Using WNN version 6."
13974 test "$with_i18n3" = yes && echo " Compiling in I18N support, level 3 (doesn't currently work)."
13976 test "$with_cde" = yes && echo " Compiling in support for CDE."
13977 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk."
13978 test "$with_offix" = yes && echo " Compiling in support for OffiX."
13979 test "$with_dragndrop" = yes && echo " Compiling in EXPERIMENTAL support for Drag'n'Drop ($dragndrop_proto )."
13980 test "$with_workshop" = yes && echo " Compiling in support for Sun WorkShop."
13981 test "$with_wmcommand" != no && echo " Compiling in support for proper WM_COMMAND handling."
13982 case "$with_menubars" in
13983 lucid ) echo " Using Lucid menubars." ;;
13984 motif ) echo " Using Motif menubars."
13985 echo " *WARNING* The Motif menubar implementation is currently buggy."
13986 echo " We recommend using the Lucid menubar instead."
13987 echo " Re-run configure with --with-menubars='lucid'." ;;
13988 msw ) echo " Using MS-Windows menubars." ;;
13990 case "$with_scrollbars" in
13991 lucid ) echo " Using Lucid scrollbars." ;;
13992 motif ) echo " Using Motif scrollbars." ;;
13993 athena ) echo " Using Athena scrollbars." ;;
13994 msw ) echo " Using MS-Windows scrollbars." ;;
13996 case "$with_widgets" in
13997 motif ) echo " Using Motif native widgets." ;;
13998 athena ) echo " Using Athena native widgets." ;;
13999 msw ) echo " Using MS-Windows native widgets." ;;
14001 case "$with_dialogs" in
14003 echo " Using Motif dialog boxes."
14004 if test "$unexec" = "unexaix.o"; then if test "`uname -v`" = 4 -a "`uname -r`" -ge 3; then
14005 echo " *WARNING* The Motif dialog boxes cause problems on AIX 4.3 and higher."
14006 echo " We recommend using the Athena dialog boxes instead."
14007 echo " Install libXaw and re-run configure with --with-dialogs='athena'."
14008 echo " Read the PROBLEMS file for more information."
14011 athena ) echo " Using Athena dialog boxes." ;;
14012 msw ) echo " Using MS-Windows dialog boxes." ;;
14014 test "$with_modules" = "yes" && echo " Compiling in dynamic shared object module support."
14015 test "$with_clash_detection" = yes && \
14016 echo " Clash detection will use \"$lockdir\" for locking files."
14017 echo " movemail will use \"$mail_locking\" for locking mail spool files."
14018 test "$with_pop" = yes && echo " Using POP for mail access."
14019 test "$with_kerberos" = yes && echo " Using Kerberos for POP authentication."
14020 test "$with_hesiod" = yes && echo " Using Hesiod to get POP server host."
14021 test "$use_union_type" = yes && echo " Using the union type for Lisp_Objects."
14022 test "$pdump" = yes && echo " Using the new portable dumper (wishful thinking)."
14023 test "$debug" = yes && echo " Compiling in extra code for debugging."
14024 test "$usage_tracking" = yes && echo " Compiling with usage tracking active (Sun internal)."
14025 if test "$error_check_extents $error_check_typecheck $error_check_bufpos $error_check_gc $error_check_malloc" \
14026 != "no no no no no"; then
14027 echo " WARNING: ---------------------------------------------------------"
14028 echo " WARNING: Compiling in support for runtime error checking."
14029 echo " WARNING: XEmacs will run noticeably more slowly as a result."
14030 echo " WARNING: Error checking is on by default for XEmacs beta releases."
14031 echo " WARNING: ---------------------------------------------------------"
14034 ) | tee -a Installation
14038 # Remove any trailing slashes in these variables.
14039 test -n "$prefix" &&
14040 prefix=`echo '' "$prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
14041 test -n "$exec_prefix" &&
14042 exec_prefix=`echo '' "$exec_prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
14045 for file in $internal_makefile_list; do
14046 test "$file" = src/Makefile.in && \
14047 file="src/Makefile.in:src/Makefile.in.in:src/depend"
14048 ac_output_files="$ac_output_files $file" && if test "$extra_verbose" = "yes"; then echo " Appending \"$file\" to \$ac_output_files"; fi
14050 ac_output_files="$ac_output_files src/paths.h lib-src/config.values"
14051 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
14055 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
14057 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14058 # Let make expand exec_prefix.
14059 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14061 # Any assignment to VPATH causes Sun make to only execute
14062 # the first set of double-colon rules, so remove it if not needed.
14063 # If there is a colon in the path, we need to keep it.
14064 if test "x$srcdir" = x.; then
14065 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
14068 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
14070 DEFS=-DHAVE_CONFIG_H
14072 # Without the "./", some shells look in PATH for config.status.
14073 : ${CONFIG_STATUS=./config.status}
14075 echo creating $CONFIG_STATUS
14076 rm -f $CONFIG_STATUS
14077 cat > $CONFIG_STATUS <<EOF
14079 # Generated automatically by configure.
14080 # Run this file to recreate the current configuration.
14081 # This directory was configured as follows,
14082 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14084 # $0 $ac_configure_args
14086 # Compiler output produced by configure, useful for debugging
14087 # configure, is in ./config.log if it exists.
14089 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
14092 case "\$ac_option" in
14093 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14094 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
14095 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
14096 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
14097 echo "$CONFIG_STATUS generated by autoconf version 2.13"
14099 -help | --help | --hel | --he | --h)
14100 echo "\$ac_cs_usage"; exit 0 ;;
14101 *) echo "\$ac_cs_usage"; exit 1 ;;
14105 ac_given_srcdir=$srcdir
14106 ac_given_INSTALL="$INSTALL"
14108 trap 'rm -fr `echo "$ac_output_files src/config.h lwlib/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
14110 cat >> $CONFIG_STATUS <<EOF
14112 # Protect against being on the right side of a sed subst in config.status.
14113 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
14114 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
14118 s%@CFLAGS@%$CFLAGS%g
14119 s%@CPPFLAGS@%$CPPFLAGS%g
14120 s%@CXXFLAGS@%$CXXFLAGS%g
14121 s%@FFLAGS@%$FFLAGS%g
14123 s%@LDFLAGS@%$LDFLAGS%g
14125 s%@exec_prefix@%$exec_prefix%g
14126 s%@prefix@%$prefix%g
14127 s%@program_transform_name@%$program_transform_name%g
14128 s%@bindir@%$bindir%g
14129 s%@sbindir@%$sbindir%g
14130 s%@libexecdir@%$libexecdir%g
14131 s%@datadir@%$datadir%g
14132 s%@sysconfdir@%$sysconfdir%g
14133 s%@sharedstatedir@%$sharedstatedir%g
14134 s%@localstatedir@%$localstatedir%g
14135 s%@libdir@%$libdir%g
14136 s%@includedir@%$includedir%g
14137 s%@oldincludedir@%$oldincludedir%g
14138 s%@infodir@%$infodir%g
14139 s%@mandir@%$mandir%g
14141 s%@blddir@%$blddir%g
14144 s%@start_flags@%$start_flags%g
14145 s%@ld_switch_shared@%$ld_switch_shared%g
14146 s%@start_files@%$start_files%g
14148 s%@lib_gcc@%$lib_gcc%g
14149 s%@RANLIB@%$RANLIB%g
14150 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
14151 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
14152 s%@INSTALL_DATA@%$INSTALL_DATA%g
14154 s%@SET_MAKE@%$SET_MAKE%g
14155 s%@X_CFLAGS@%$X_CFLAGS%g
14156 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
14157 s%@X_LIBS@%$X_LIBS%g
14158 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
14159 s%@install_pp@%$install_pp%g
14160 s%@libs_xauth@%$libs_xauth%g
14161 s%@dnd_objs@%$dnd_objs%g
14162 s%@lwlib_objs@%$lwlib_objs%g
14163 s%@ALLOCA@%$ALLOCA%g
14164 s%@have_esd_config@%$have_esd_config%g
14165 s%@dll_ld@%$dll_ld%g
14166 s%@dll_cflags@%$dll_cflags%g
14167 s%@dll_ldflags@%$dll_ldflags%g
14168 s%@dll_post@%$dll_post%g
14169 s%@dll_ldo@%$dll_ldo%g
14170 s%@ld_dynamic_link_flags@%$ld_dynamic_link_flags%g
14171 s%@SRC_SUBDIR_DEPS@%$SRC_SUBDIR_DEPS%g
14172 s%@INSTALL_ARCH_DEP_SUBDIR@%$INSTALL_ARCH_DEP_SUBDIR%g
14173 s%@MAKE_SUBDIR@%$MAKE_SUBDIR%g
14174 s%@SUBDIR_MAKEFILES@%$SUBDIR_MAKEFILES%g
14175 s%@PROGNAME@%$PROGNAME%g
14176 s%@version@%$version%g
14177 s%@configuration@%$configuration%g
14178 s%@canonical@%$canonical%g
14179 s%@inststaticdir@%$inststaticdir%g
14180 s%@instvardir@%$instvardir%g
14181 s%@srcdir@%$srcdir%g
14182 s%@pkgdir@%$pkgdir%g
14183 s%@statedir@%$statedir%g
14184 s%@PREFIX_USER_DEFINED@%$PREFIX_USER_DEFINED%g
14185 s%@PREFIX@%$PREFIX%g
14186 s%@EXEC_PREFIX_USER_DEFINED@%$EXEC_PREFIX_USER_DEFINED%g
14187 s%@EXEC_PREFIX@%$EXEC_PREFIX%g
14188 s%@INFODIR_USER_DEFINED@%$INFODIR_USER_DEFINED%g
14189 s%@INFODIR@%$INFODIR%g
14190 s%@infopath@%$infopath%g
14191 s%@INFOPATH_USER_DEFINED@%$INFOPATH_USER_DEFINED%g
14192 s%@INFOPATH@%$INFOPATH%g
14193 s%@package_path@%$package_path%g
14194 s%@PACKAGE_PATH_USER_DEFINED@%$PACKAGE_PATH_USER_DEFINED%g
14195 s%@PACKAGE_PATH@%$PACKAGE_PATH%g
14196 s%@lispdir@%$lispdir%g
14197 s%@LISPDIR_USER_DEFINED@%$LISPDIR_USER_DEFINED%g
14198 s%@LISPDIR@%$LISPDIR%g
14199 s%@moduledir@%$moduledir%g
14200 s%@MODULEDIR_USER_DEFINED@%$MODULEDIR_USER_DEFINED%g
14201 s%@MODULEDIR@%$MODULEDIR%g
14202 s%@sitelispdir@%$sitelispdir%g
14203 s%@SITELISPDIR_USER_DEFINED@%$SITELISPDIR_USER_DEFINED%g
14204 s%@SITELISPDIR@%$SITELISPDIR%g
14205 s%@sitemoduledir@%$sitemoduledir%g
14206 s%@SITEMODULEDIR_USER_DEFINED@%$SITEMODULEDIR_USER_DEFINED%g
14207 s%@SITEMODULEDIR@%$SITEMODULEDIR%g
14208 s%@etcdir@%$etcdir%g
14209 s%@ETCDIR_USER_DEFINED@%$ETCDIR_USER_DEFINED%g
14210 s%@ETCDIR@%$ETCDIR%g
14211 s%@lockdir@%$lockdir%g
14212 s%@LOCKDIR_USER_DEFINED@%$LOCKDIR_USER_DEFINED%g
14213 s%@LOCKDIR@%$LOCKDIR%g
14214 s%@docdir@%$docdir%g
14215 s%@DOCDIR_USER_DEFINED@%$DOCDIR_USER_DEFINED%g
14216 s%@DOCDIR@%$DOCDIR%g
14217 s%@archlibdir@%$archlibdir%g
14218 s%@ARCHLIBDIR_USER_DEFINED@%$ARCHLIBDIR_USER_DEFINED%g
14219 s%@ARCHLIBDIR@%$ARCHLIBDIR%g
14220 s%@bitmapdir@%$bitmapdir%g
14221 s%@extra_objs@%$extra_objs%g
14222 s%@machfile@%$machfile%g
14223 s%@opsysfile@%$opsysfile%g
14224 s%@c_switch_general@%$c_switch_general%g
14225 s%@c_switch_window_system@%$c_switch_window_system%g
14226 s%@c_switch_all@%$c_switch_all%g
14227 s%@ld_switch_general@%$ld_switch_general%g
14228 s%@ld_switch_window_system@%$ld_switch_window_system%g
14229 s%@ld_switch_all@%$ld_switch_all%g
14230 s%@ld_libs_general@%$ld_libs_general%g
14231 s%@ld_libs_window_system@%$ld_libs_window_system%g
14232 s%@ld_libs_all@%$ld_libs_all%g
14233 s%@RECURSIVE_MAKE@%$RECURSIVE_MAKE%g
14234 s%@native_sound_lib@%$native_sound_lib%g
14235 s%@sound_cflags@%$sound_cflags%g
14236 s%@dynodump_arch@%$dynodump_arch%g
14237 s%@XEMACS_CC@%$XEMACS_CC%g
14238 s%@internal_makefile_list@%$internal_makefile_list%g
14243 cat >> $CONFIG_STATUS <<\EOF
14245 # Split the substitutions into bite-sized pieces for seds with
14246 # small command number limits, like on Digital OSF/1 and HP-UX.
14247 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
14248 ac_file=1 # Number of current file.
14249 ac_beg=1 # First line for current file.
14250 ac_end=$ac_max_sed_cmds # Line after last line for current file.
14253 while $ac_more_lines; do
14254 if test $ac_beg -gt 1; then
14255 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
14257 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
14259 if test ! -s conftest.s$ac_file; then
14260 ac_more_lines=false
14261 rm -f conftest.s$ac_file
14263 if test -z "$ac_sed_cmds"; then
14264 ac_sed_cmds="sed -f conftest.s$ac_file"
14266 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
14268 ac_file=`expr $ac_file + 1`
14270 ac_end=`expr $ac_end + $ac_max_sed_cmds`
14273 if test -z "$ac_sed_cmds"; then
14278 cat >> $CONFIG_STATUS <<EOF
14280 CONFIG_FILES=\${CONFIG_FILES-"$ac_output_files"}
14282 cat >> $CONFIG_STATUS <<\EOF
14283 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
14284 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14286 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
14287 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14288 *) ac_file_in="${ac_file}.in" ;;
14291 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
14293 # Remove last slash and all that follows it. Not all systems have dirname.
14294 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
14295 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
14296 # The file is in a subdirectory.
14297 test ! -d "$ac_dir" && mkdir "$ac_dir"
14298 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
14299 # A "../" for each directory in $ac_dir_suffix.
14300 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
14302 ac_dir_suffix= ac_dots=
14305 case "$ac_given_srcdir" in
14307 if test -z "$ac_dots"; then top_srcdir=.
14308 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
14309 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
14310 *) # Relative path.
14311 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
14312 top_srcdir="$ac_dots$ac_given_srcdir" ;;
14315 case "$ac_given_INSTALL" in
14316 [/$]*) INSTALL="$ac_given_INSTALL" ;;
14317 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
14320 echo creating "$ac_file"
14322 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
14324 *Makefile*) ac_comsub="1i\\
14325 # $configure_input" ;;
14329 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
14331 s%@configure_input@%$configure_input%g
14332 s%@srcdir@%$srcdir%g
14333 s%@top_srcdir@%$top_srcdir%g
14334 s%@INSTALL@%$INSTALL%g
14335 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
14339 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14340 # NAME is the cpp macro being defined and VALUE is the value it is being given.
14342 # ac_d sets the value in "#define NAME VALUE" lines.
14343 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14344 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
14347 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
14348 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14349 ac_uB='\([ ]\)%\1#\2define\3'
14352 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14353 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14354 ac_eB='$%\1#\2define\3'
14358 if test "${CONFIG_HEADERS+set}" != set; then
14360 cat >> $CONFIG_STATUS <<EOF
14361 CONFIG_HEADERS="src/config.h lwlib/config.h"
14363 cat >> $CONFIG_STATUS <<\EOF
14365 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
14366 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14368 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
14369 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14370 *) ac_file_in="${ac_file}.in" ;;
14373 echo creating $ac_file
14375 rm -f conftest.frag conftest.in conftest.out
14376 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
14377 cat $ac_file_inputs > conftest.in
14381 # Transform confdefs.h into a sed script conftest.vals that substitutes
14382 # the proper values into config.h.in to produce config.h. And first:
14383 # Protect against being on the right side of a sed subst in config.status.
14384 # Protect against being in an unquoted here document in config.status.
14385 rm -f conftest.vals
14386 cat > conftest.hdr <<\EOF
14389 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
14393 sed -n -f conftest.hdr confdefs.h > conftest.vals
14396 # This sed command replaces #undef with comments. This is necessary, for
14397 # example, in the case of _POSIX_SOURCE, which is predefined and required
14398 # on some systems where configure will not decide to define it.
14399 cat >> conftest.vals <<\EOF
14400 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
14403 # Break up conftest.vals because some shells have a limit on
14404 # the size of here documents, and old seds have small limits too.
14406 rm -f conftest.tail
14409 ac_lines=`grep -c . conftest.vals`
14410 # grep -c gives empty output for an empty file on some AIX systems.
14411 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
14412 # Write a limited-size here document to conftest.frag.
14413 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
14414 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
14416 sed -f conftest.frag conftest.in > conftest.out
14418 mv conftest.out conftest.in
14419 ' >> $CONFIG_STATUS
14420 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
14421 rm -f conftest.vals
14422 mv conftest.tail conftest.vals
14424 rm -f conftest.vals
14426 cat >> $CONFIG_STATUS <<\EOF
14427 rm -f conftest.frag conftest.h
14428 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
14429 cat conftest.in >> conftest.h
14431 if cmp -s $ac_file conftest.h 2>/dev/null; then
14432 echo "$ac_file is unchanged"
14435 # Remove last slash and all that follows it. Not all systems have dirname.
14436 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
14437 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
14438 # The file is in a subdirectory.
14439 test ! -d "$ac_dir" && mkdir "$ac_dir"
14442 mv conftest.h $ac_file
14447 cat >> $CONFIG_STATUS <<EOF
14449 top_srcdir="$srcdir"
14450 MAKE_SUBDIR="$MAKE_SUBDIR"
14453 cat >> $CONFIG_STATUS <<\EOF
14454 for dir in . $MAKE_SUBDIR; do
14459 sed -e '/^# Generated/d' \
14460 -e 's%/\*\*/#.*%%' \
14475 echo creating $dir/Makefile
14476 $CPP -I. -I${top_srcdir}/src junk.c \
14477 | sed -e 's/^\#.*//' \
14478 -e 's/^[ ][ ]*$//'\
14480 | sed -n -e '/^..*$/p' \
14486 chmod 444 Makefile.new
14487 mv -f Makefile.new Makefile
14489 echo creating $dir/GNUmakefile
14490 $CPP -I. -I${top_srcdir}/src -DUSE_GNU_MAKE junk.c \
14491 | sed -e 's/^\#.*//' \
14492 -e 's/^[ ][ ]*$//'\
14494 | sed -n -e '/^..*$/p' \
14500 chmod 444 Makefile.new
14501 mv -f Makefile.new GNUmakefile
14507 sed < config.status >> lib-src/config.values \
14508 -e '/{ac_dA}.*{ac_dB}.*{ac_dC}.*{ac_dD}$/!d' \
14509 -e 's/\${ac_dA}\(.*\)\${ac_dB}.*\${ac_dC}\(.*\)\${ac_dD}/\1 \2/' \
14510 -e 's/^\([^ ]*\) $/\1 ""/' \
14516 chmod +x $CONFIG_STATUS
14517 rm -fr confdefs* $ac_clean_files
14518 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1