3 #### Configuration script for XEmacs. Largely divergent from FSF.
4 #### Guess values for system-dependent variables and create Makefiles.
5 #### Generated automatically using autoconf version 2.13
6 #### Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
7 #### Copyright (C) 1993-1995 Board of Trustees, University of Illinois.
8 #### Copyright (C) 1996, 1997 Sun Microsystems, Inc.
9 #### Copyright (C) 1995, 1996 Ben Wing.
10 #### Copyright (C) 2000, 2001 Martin Buchholz.
11 #### Copyright (C) 1998, 1999 J. Kean Johnston.
13 ### Don't edit this script!
14 ### This script was automatically generated by the `autoconf' program
15 ### from the file `./configure.in'.
16 ### To rebuild it, execute the command
18 ### in the this directory. You must have autoconf version 2.13 or later.
19 ### Note: this script has not yet been ported to autoconf version 2.5x.
21 ### This file is part of XEmacs.
23 ### XEmacs is free software; you can redistribute it and/or modify it
24 ### under the terms of the GNU General Public License as published by
25 ### the Free Software Foundation; either version 2, or (at your
26 ### option) any later version.
28 ### XEmacs is distributed in the hope that it will be useful, but
29 ### WITHOUT ANY WARRANTY; without even the implied warranty of
30 ### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
31 ### General Public License for more details.
33 ### You should have received a copy of the GNU General Public License
34 ### along with XEmacs; see the file COPYING. If not, write to the Free
35 ### Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
38 ### For usage, run `./configure --help'
39 ### For more detailed information on building and installing XEmacs,
40 ### read the file `INSTALL'.
42 ### If configure succeeds, it leaves its status in config.status.
43 ### A log of configuration tests can be found in config.log.
44 ### If configure fails after disturbing the status quo,
45 ### config.status is removed.
48 --with-x use the X Window System"
52 if test -n "$ZSH_VERSION"; then
53 setopt NO_BAD_PATTERN NO_BANG_HIST NO_BG_NICE NO_EQUALS NO_FUNCTION_ARGZERO
54 setopt GLOB_SUBST NO_HUP INTERACTIVE_COMMENTS KSH_ARRAYS NO_MULTIOS NO_NOMATCH
55 setopt RM_STAR_SILENT POSIX_BUILTINS SH_FILE_EXPANSION SH_GLOB SH_OPTION_LETTERS
56 setopt SH_WORD_SPLIT BSD_ECHO IGNORE_BRACES
57 if test -n "$CDPATH"; then CDPATH="."; export CDPATH; fi
58 elif test -n "$BASH_VERSION"; then
62 if test -n "$CDPATH"; then CDPATH="."; export CDPATH; fi
73 program_transform_name=s,x,x,
84 SHELL=${CONFIG_SHELL-/bin/sh}
87 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
89 # File descriptor usage:
92 # 2 errors and warnings
93 # 3 some systems may open it to /dev/tty
94 # 4 used on the Kubota Titan
95 # 6 checking for... messages and results
96 # 5 compiler messages saved in config.log
97 if test "$silent" = yes; then
105 This file contains any messages produced by compilers while
106 running configure, to aid debugging if configure makes a mistake.
109 # Strip out --no-create and --no-recursion so they do not pile up.
110 # Also quote any args containing shell metacharacters.
115 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
116 | --no-cr | --no-c) ;;
117 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
118 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
119 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
120 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
121 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
126 # Only set these to C if already set. These must not be set unconditionally
127 # because not all systems understand e.g. LANG=C (notably SCO).
128 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
129 # Non-C LC_CTYPE values break the ctype check.
130 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
131 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
132 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
133 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
135 # confdefs.h avoids OS command line length limits that DEFS can exceed.
136 rm -rf conftest* confdefs.h
137 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
140 # A filename unique to this package, relative to the directory that
141 # configure is in, which we can look for to find out if srcdir is correct.
142 ac_unique_file=src/lisp.h
144 # Find the source files, if location was not specified.
145 if test -z "$srcdir"; then
146 ac_srcdir_defaulted=yes
147 # Try the directory containing this script, then its parent.
149 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
150 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
152 if test ! -r $srcdir/$ac_unique_file; then
156 ac_srcdir_defaulted=no
158 if test ! -r $srcdir/$ac_unique_file; then
159 if test "$ac_srcdir_defaulted" = yes; then
160 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
162 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
165 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
167 # Prefer explicitly selected file to automatically selected ones.
168 if test -z "$CONFIG_SITE"; then
169 if test "x$prefix" != xNONE; then
170 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
172 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
175 for ac_site_file in $CONFIG_SITE; do
176 if test -r "$ac_site_file"; then
177 echo "loading site script $ac_site_file"
184 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
185 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
186 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
187 ac_cpp='$CPP '"$xe_cppflags"
188 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
189 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
194 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
195 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
196 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
203 ac_n= ac_c='\c' ac_t=
207 progname="`echo $0 | sed 's:^\./\./:\./:'`"
210 MAKE_SUBDIR="$MAKE_SUBDIR lib-src" && if test "$extra_verbose" = "yes"; then echo " Appending \"lib-src\" to \$MAKE_SUBDIR"; fi
211 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR lib-src" && if test "$extra_verbose" = "yes"; then echo " Appending \"lib-src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
214 exec_prefix='${prefix}'
215 bindir='${exec_prefix}/bin'
216 datadir='${prefix}/lib'
217 statedir='${prefix}/lib'
218 libdir='${exec_prefix}/lib'
219 mandir='${prefix}/man/man1'
220 inststaticdir='${PROGNAME}'
221 instvardir='${PROGNAME}-${version}'
222 infodir='${datadir}/${instvardir}/info'
225 lispdir='${datadir}/${instvardir}/lisp'
226 moduledir='${libdir}/${instvardir}/${configuration}/modules'
227 sitelispdir='${datadir}/${inststaticdir}/site-lisp'
228 sitemoduledir='${libdir}/${inststaticdir}/site-modules'
229 pkgdir='${datadir}/${instvardir}/lisp'
231 etcdir='${datadir}/${instvardir}/etc'
232 archlibdir='${libdir}/${instvardir}/${configuration}'
233 docdir='${archlibdir}'
237 with_site_modules='yes'
243 cpp='' cppflags='' libs='' ldflags=''
249 with_system_malloc='default'
250 with_dlmalloc='default'
262 with_ipv6_cname="yes"
269 quoted_sed_magic=s/"'"/"'"'"'"'"'"'"'"/g
273 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
274 | --no-cr | --no-c) ;;
275 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
276 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
278 quoted_i="`echo '' $i | sed -e 's:^ ::' -e $quoted_sed_magic`"
279 quoted_arguments="$quoted_arguments '$quoted_i'" ;;
283 while test $# != 0; do
286 --no-create|--no-recursion) ;;
290 opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\([^=]*\)=.*$:\1:'`
291 val=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*[^=]*=\(.*\)$:\1:'`
295 opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\(.*\)$:\1:'`
296 val="yes" valomitted=yes
301 opt="`echo '' $opt | sed -e 's:^ ::' | tr - _`"
303 case "${valomitted}-${opt}" in yes-without_* )
304 opt=`echo $opt | sed 's/without/with/'`
305 valomitted="no" val="no" ;;
312 with_site_modules | \
366 memory_usage_stats | \
367 with_clash_detection | \
371 y | ye | yes ) val=yes ;;
373 * ) (echo "$progname: Usage error:"
374 echo " " "The \`--$optname' option requires a boolean value: \`yes' or \`no'."
375 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
377 eval "$opt=\"$val\"" ;;
395 site_runtime_libraries )
396 if test "$valomitted" = "yes" ; then
397 if test "$#" = 0 ; then
398 (echo "$progname: Usage error:"
399 echo " " "The \`--$optname' option requires a value."
400 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
409 with_debug_malloc | use_debug_malloc | \
410 with_system_malloc | use_system_malloc )
412 y | ye | yes ) val=yes ;;
414 d | de | def | defa | defau | defaul | default ) val=default ;;
415 * ) (echo "$progname: Usage error:"
416 echo " " "The \`--$optname' option requires one of these values:
417 \`yes', \`no', or \`default'."
418 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
420 case "$opt" in use_* ) opt="`echo $opt | sed s/use/with/`" ;; esac
425 with_database_berkdb=no
427 with_database_gdbm=no
428 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
431 b | be | ber | berk | berkd | berkdb ) with_database_berkdb=yes ;;
432 d | db | dbm ) with_database_dbm=yes ;;
433 g | gn | gnu | gnud | gnudb | gnudbm | gdbm) with_database_gdbm=yes ;;
434 * ) (echo "$progname: Usage error:"
435 echo " " "The \`--$optname' option value
436 must be either \`no' or a comma-separated list
437 of one or more of \`berkdb' and either \`dbm' or \`gnudbm'."
438 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
441 if test "$with_database_dbm" = "yes" -a \
442 "$with_database_gdbm" = "yes"; then
443 (echo "$progname: Usage error:"
444 echo " " "Only one of \`dbm' and \`gnudbm' may be specified
445 with the \`--$optname' option."
446 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
451 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
453 n | no | non | none ) new_sdefault=no ;;
454 a | al | all | both ) new_sdefault=yes ;;
456 native ) with_native_sound=yes ;;
457 nonative ) with_native_sound=no ;;
459 nas ) with_nas_sound=yes ;;
460 nonas ) with_nas_sound=no ;;
462 esd ) with_esd_sound=yes ;;
463 noesd ) with_esd_sound=no ;;
465 * ) bogus_sound=yes ;;
467 if test "$bogus_sound" -o \
468 \( -n "$new_sdefault" -a -n "$sound_notfirst" \) ; then
469 types="\`all', \`none', \`(no)native', \`no(nas)', \`(no)esd'."
470 (echo "$progname: Usage error:"
471 echo " " "Valid types for the \`--$optname' option are:
473 Option \`all' or \`none' must be first in the list.
474 The default is to autodetect native and NAS sound support."
475 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
476 elif test -n "$new_sdefault" ; then
477 with_native_sound=$new_sdefault
478 with_nas_sound=$new_sdefault
479 with_esd_sound=$new_sdefault
480 new_sdefault= # reset this
488 xa | xaw ) val=xaw ;;
489 3 | 3d | xaw3d ) val=3d ;;
490 ne | nex | next | naxtaw) val=next ;;
491 9 | 95 | xaw95 ) val=95 ;;
492 xp | xpm | xawxpm ) val=xpm ;;
493 * ) (echo "$progname: Usage error:"
494 echo " " "The \`--$optname' option must have one of these values:
495 \`xaw', \`3d', \`next', \`95', or \`xpm'."
496 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
503 y | ye | yes ) val=yes ;;
504 n | no | non | none ) val=no ;;
505 x | xl | xli | xlib ) val=xlib ;;
506 m | mo | mot | moti | motif ) val=motif ;;
507 * ) (echo "$progname: Usage error:"
508 echo " " "The \`--$optname' option must have one of these values:
509 \`motif', \`xlib', \`yes', or \`no'."
510 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
519 file | dot ) val=file ;;
520 locking ) val=locking ;;
521 * ) (echo "$progname: Usage error:"
522 echo " " "The \`--$optname' option must have one of these values:
523 \`lockf', \`flock', \`file', \`locking', or \`mmdf'."
524 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
531 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
533 n | no | non | none ) new_default=no ;;
534 a | al | all ) new_default=yes ;;
536 extents ) error_check_extents=yes ;;
537 noextents ) error_check_extents=no ;;
539 typecheck ) error_check_typecheck=yes ;;
540 notypecheck ) error_check_typecheck=no ;;
542 bufpos ) error_check_bufpos=yes ;;
543 nobufpos ) error_check_bufpos=no ;;
545 gc ) error_check_gc=yes ;;
546 nogc ) error_check_gc=no ;;
548 malloc ) error_check_malloc=yes ;;
549 nomalloc ) error_check_malloc=no ;;
551 byte_code ) error_check_byte_code=yes ;;
552 nobyte_code ) error_check_byte_code=no ;;
554 glyphs ) error_check_glyphs=yes ;;
555 noglyphs ) error_check_glyphs=no ;;
557 * ) bogus_error_check=yes ;;
559 if test "$bogus_error_check" -o \
560 \( -n "$new_default" -a -n "$echeck_notfirst" \) ; then
561 if test "$error_check_default" = yes ; then
562 types="\`all' (default), \`none', \`noextents', \`notypecheck', \`nobufpos', \`nogc', \`nomalloc', \`noglyphs' and \`nobyte-code'."
564 types="\`all', \`none' (default), \`extents', \`typecheck', \`bufpos', \`gc', \`malloc', \`glyphs' and \`byte-code'."
566 (echo "$progname: Usage error:"
567 echo " " "Valid types for the \`--$optname' option are:
569 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
570 elif test -n "$new_default" ; then
571 error_check_extents=$new_default
572 error_check_typecheck=$new_default
573 error_check_bufpos=$new_default
574 error_check_gc=$new_default
575 error_check_malloc=$new_default
576 error_check_byte_code=$new_default
577 error_check_glyphs=$new_default
578 new_default= # reset this
585 prefix | exec_prefix | bindir | datadir | statedir | libdir | \
586 mandir | infodir | infopath | lispdir | etcdir | pkgdir | \
587 archlibdir | docdir | package_path )
588 if test "$valomitted" = "yes"; then
589 if test "$#" = 0; then
590 (echo "$progname: Usage error:"
591 echo " " "The \`--$optname' option requires a value."
592 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
599 exec_prefix ) { test "$extra_verbose" = "yes" && cat << \EOF
600 Defining EXEC_PREFIX_USER_DEFINED
602 cat >> confdefs.h <<\EOF
603 #define EXEC_PREFIX_USER_DEFINED 1
607 lispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
608 Defining LISPDIR_USER_DEFINED
610 cat >> confdefs.h <<\EOF
611 #define LISPDIR_USER_DEFINED 1
615 sitelispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
616 Defining SITELISPDIR_USER_DEFINED
618 cat >> confdefs.h <<\EOF
619 #define SITELISPDIR_USER_DEFINED 1
623 moduledir ) { test "$extra_verbose" = "yes" && cat << \EOF
624 Defining MODULEDIR_USER_DEFINED
626 cat >> confdefs.h <<\EOF
627 #define MODULEDIR_USER_DEFINED 1
631 etcdir ) { test "$extra_verbose" = "yes" && cat << \EOF
632 Defining ETCDIR_USER_DEFINED
634 cat >> confdefs.h <<\EOF
635 #define ETCDIR_USER_DEFINED 1
639 infodir ) { test "$extra_verbose" = "yes" && cat << \EOF
640 Defining INFODIR_USER_DEFINED
642 cat >> confdefs.h <<\EOF
643 #define INFODIR_USER_DEFINED 1
647 infopath ) { test "$extra_verbose" = "yes" && cat << \EOF
648 Defining INFOPATH_USER_DEFINED
650 cat >> confdefs.h <<\EOF
651 #define INFOPATH_USER_DEFINED 1
655 package_path ) { test "$extra_verbose" = "yes" && cat << \EOF
656 Defining PACKAGE_PATH_USER_DEFINED
658 cat >> confdefs.h <<\EOF
659 #define PACKAGE_PATH_USER_DEFINED 1
664 { test "$extra_verbose" = "yes" && cat << \EOF
665 Defining INFODIR_USER_DEFINED
667 cat >> confdefs.h <<\EOF
668 #define INFODIR_USER_DEFINED 1
672 { test "$extra_verbose" = "yes" && cat << \EOF
673 Defining LISPDIR_USER_DEFINED
675 cat >> confdefs.h <<\EOF
676 #define LISPDIR_USER_DEFINED 1
680 { test "$extra_verbose" = "yes" && cat << \EOF
681 Defining MODULEDIR_USER_DEFINED
683 cat >> confdefs.h <<\EOF
684 #define MODULEDIR_USER_DEFINED 1
688 { test "$extra_verbose" = "yes" && cat << \EOF
689 Defining ETCDIR_USER_DEFINED
691 cat >> confdefs.h <<\EOF
692 #define ETCDIR_USER_DEFINED 1
696 { test "$extra_verbose" = "yes" && cat << \EOF
697 Defining DOCDIR_USER_DEFINED
699 cat >> confdefs.h <<\EOF
700 #define DOCDIR_USER_DEFINED 1
704 { test "$extra_verbose" = "yes" && cat << \EOF
705 Defining ARCHLIBDIR_USER_DEFINED
707 cat >> confdefs.h <<\EOF
708 #define ARCHLIBDIR_USER_DEFINED 1
712 docdir ) { test "$extra_verbose" = "yes" && cat << \EOF
713 Defining DOCDIR_USER_DEFINED
715 cat >> confdefs.h <<\EOF
716 #define DOCDIR_USER_DEFINED 1
720 exec_prefix | libdir | archlibdir ) { test "$extra_verbose" = "yes" && cat << \EOF
721 Defining ARCHLIBDIR_USER_DEFINED
723 cat >> confdefs.h <<\EOF
724 #define ARCHLIBDIR_USER_DEFINED 1
733 "usage" | "help" ) ${PAGER-more} ${srcdir}/configure.usage; exit 0 ;;
736 "with_scrollbars" | \
740 l | lu | luc | luci | lucid ) val=lucid ;;
741 mo | mot | moti | motif ) val=motif ;;
742 a | at | ath | athe | athen | athena ) val=athena ;;
743 n | no | non | none ) val=no ;;
744 y | ye | yes ) val=yes ;;
745 g | gt | gtk ) val=gtk ;;
746 ms | msw ) val=msw ;;
747 * ) (echo "$progname: Usage error:"
748 echo " " "The \`--$optname' option must have one of these values:
749 \`gtk', \`lucid', \`motif', \`athena', \`yes', or \`no'."
750 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
755 "use_minimal_tagbits" | \
756 "use_indexed_lrecord_implementation" | \
758 "const_is_losing" | \
760 echo "configure: warning: Obsolete option \`--$optname' ignored." 1>&2
763 * ) (echo "$progname: Usage error:"
764 echo " " "Unrecognized option: $arg"
765 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
770 *-*-*) configuration="$arg" ;;
772 *) (echo "$progname: Usage error:"
773 echo " " "Unrecognized argument: $arg"
774 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
780 test -n "$cpp" && CPP="$cpp"
781 test -n "$cppflags" && CPPFLAGS="$cppflags"
782 test -n "$libs" && LIBS="$libs"
783 test -n "$ldflags" && LDFLAGS="$ldflags"
785 eval set x "$quoted_arguments"; shift
787 test "$extra_verbose" = "yes" && verbose=yes
789 test -n "$with_x" && with_x11="$with_x"
791 if test "$with_purify" = "yes" -o "$with_quantify" = "yes"; then
792 test "$with_system_malloc" = "default" && with_system_malloc=yes
797 if test "$with_cde $with_tooltalk" = "yes no"; then
798 (echo "$progname: Usage error:"
799 echo " " "--with-cde requires --with-tooltalk"
800 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
801 elif test "$with_tooltalk" = "no" ; then with_cde=no
802 elif test "$with_cde" = "yes"; then with_tooltalk=yes
809 for dir in "`echo $0 | sed 's|//|/|' | sed 's|/[^/]*$||'`" "." ".." ; do
810 if test -f "$dir/src/lisp.h" -a \
811 -f "$dir/lisp/version.el" ; then
816 if test -z "$srcdir" ; then
817 (echo "$progname: Usage error:"
818 echo " " "Neither the current directory nor its parent seem to
819 contain the XEmacs sources. If you do not want to build XEmacs in its
820 source tree, you should run \`$progname' in the directory in which
821 you wish to build XEmacs, using the \`--srcdir' option to say where the
822 sources may be found."
823 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
828 if test ! -f "$srcdir/src/lisp.h" -o \
829 ! -f "$srcdir/lisp/version.el" ; then
830 (echo "$progname: Usage error:"
831 echo " " "The directory specified with the \`--srcdir' option,
832 \`$srcdir', doesn't seem to contain the XEmacs sources. You should
833 either run the \`$progname' script at the top of the XEmacs source
834 tree, or use the \`--srcdir' option to specify the XEmacs source directory."
835 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
840 if test -z "$configuration"; then
841 configuration=`${CONFIG_SHELL-/bin/sh} $srcdir/config.guess`
842 if test -z "$configuration"; then
843 (echo "$progname: Usage error:"
844 echo " " "XEmacs has not been ported to this host type.
845 Try explicitly specifying the CONFIGURATION when rerunning configure."
846 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
850 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
851 echo "configure:852: checking whether ln -s works" >&5
854 if ln -s X conftestdata 2>/dev/null
857 ac_cv_prog_LN_S="ln -s"
861 LN_S="$ac_cv_prog_LN_S"
862 if test "$ac_cv_prog_LN_S" = "ln -s"; then
863 echo "$ac_t""yes" 1>&6
865 echo "$ac_t""no" 1>&6
869 for dir in lisp etc man info tests; do
870 if test ! -d "$dir" ; then
871 echo Making symbolic link to "$srcdir/$dir"
872 ${LN_S} "$srcdir/$dir" "$dir"
877 absolute_pwd="`pwd`";
878 if test -n "$PWD" -a "`cd $PWD && pwd`" = "$absolute_pwd"
880 else blddir="$absolute_pwd"; if test -d "/net"; then
881 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi
882 blddir=`echo "$blddir" | \
883 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
890 . ) srcdir="$blddir" ;;
891 * ) srcdir="`cd $srcdir && pwd`"; if test -d "/net"; then
892 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi
893 srcdir=`echo "$srcdir" | \
894 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
898 if test `pwd` != `sh -c cd $srcdir && pwd` \
899 && test -f "$srcdir/src/config.h"; then
900 (echo "$progname: WARNING: The directory tree \`$srcdir' is being used"
901 echo " as a build directory right now; it has been configured in its own"
902 echo " right. To configure in another directory as well, you MUST"
903 echo " use GNU make. If you do not have GNU make, then you must"
904 echo " now do \`make distclean' in $srcdir,"
905 echo " and then run $progname again.") >&2
906 extrasub='/^VPATH[ ]*=/c\
912 vpath %.in $(srcdir)'
915 . "$srcdir/version.sh" || exit 1;
916 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
917 : "${extra_verbose=$beta}"
918 version="${emacs_major_version}.${emacs_minor_version}"
919 { test "$extra_verbose" = "yes" && cat << EOF
920 Defining EMACS_MAJOR_VERSION = $emacs_major_version
922 cat >> confdefs.h <<EOF
923 #define EMACS_MAJOR_VERSION $emacs_major_version
927 { test "$extra_verbose" = "yes" && cat << EOF
928 Defining EMACS_MINOR_VERSION = $emacs_minor_version
930 cat >> confdefs.h <<EOF
931 #define EMACS_MINOR_VERSION $emacs_minor_version
935 if test -n "$emacs_beta_version" ; then
936 if test "$beta" = "yes"; then
937 version="${version}-b${emacs_beta_version}"
938 { test "$extra_verbose" = "yes" && cat << EOF
939 Defining EMACS_BETA_VERSION = $emacs_beta_version
941 cat >> confdefs.h <<EOF
942 #define EMACS_BETA_VERSION $emacs_beta_version
947 version="${version}.${emacs_beta_version}"
948 { test "$extra_verbose" = "yes" && cat << EOF
949 Defining EMACS_PATCH_LEVEL = $emacs_beta_version
951 cat >> confdefs.h <<EOF
952 #define EMACS_PATCH_LEVEL $emacs_beta_version
958 { test "$extra_verbose" = "yes" && cat << EOF
959 Defining XEMACS_CODENAME = "$xemacs_codename"
961 cat >> confdefs.h <<EOF
962 #define XEMACS_CODENAME "$xemacs_codename"
966 { test "$extra_verbose" = "yes" && cat << EOF
967 Defining EMACS_VERSION = "$version"
969 cat >> confdefs.h <<EOF
970 #define EMACS_VERSION "$version"
975 if test "$with_infodock" = "yes"; then
976 if test ! -f ../../ID-INSTALL; then
977 echo "Cannot build InfoDock without InfoDock sources"
982 if test "$with_infodock" = "yes"; then
983 { test "$extra_verbose" = "yes" && cat << EOF
984 Defining INFODOCK_MAJOR_VERSION = $infodock_major_version
986 cat >> confdefs.h <<EOF
987 #define INFODOCK_MAJOR_VERSION $infodock_major_version
991 { test "$extra_verbose" = "yes" && cat << EOF
992 Defining INFODOCK_MINOR_VERSION = $infodock_minor_version
994 cat >> confdefs.h <<EOF
995 #define INFODOCK_MINOR_VERSION $infodock_minor_version
999 { test "$extra_verbose" = "yes" && cat << EOF
1000 Defining INFODOCK_BUILD_VERSION = $infodock_build_version
1002 cat >> confdefs.h <<EOF
1003 #define INFODOCK_BUILD_VERSION $infodock_build_version
1007 version=${infodock_major_version}.${infodock_minor_version}.${infodock_build_version}
1009 CPPFLAGS="$CPPFLAGS -DINFODOCK"
1014 { test "$extra_verbose" = "yes" && cat << EOF
1015 Defining EMACS_PROGNAME = "$PROGNAME"
1017 cat >> confdefs.h <<EOF
1018 #define EMACS_PROGNAME "$PROGNAME"
1023 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
1024 test "${error_check_extents=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1025 Defining ERROR_CHECK_EXTENTS
1027 cat >> confdefs.h <<\EOF
1028 #define ERROR_CHECK_EXTENTS 1
1032 test "${error_check_typecheck=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1033 Defining ERROR_CHECK_TYPECHECK
1035 cat >> confdefs.h <<\EOF
1036 #define ERROR_CHECK_TYPECHECK 1
1040 test "${error_check_bufpos=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1041 Defining ERROR_CHECK_BUFPOS
1043 cat >> confdefs.h <<\EOF
1044 #define ERROR_CHECK_BUFPOS 1
1048 test "${error_check_gc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1049 Defining ERROR_CHECK_GC
1051 cat >> confdefs.h <<\EOF
1052 #define ERROR_CHECK_GC 1
1056 test "${error_check_malloc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1057 Defining ERROR_CHECK_MALLOC
1059 cat >> confdefs.h <<\EOF
1060 #define ERROR_CHECK_MALLOC 1
1064 test "${error_check_byte_code=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1065 Defining ERROR_CHECK_BYTE_CODE
1067 cat >> confdefs.h <<\EOF
1068 #define ERROR_CHECK_BYTE_CODE 1
1072 test "${error_check_glyphs=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1073 Defining ERROR_CHECK_GLYPHS
1075 cat >> confdefs.h <<\EOF
1076 #define ERROR_CHECK_GLYPHS 1
1080 if test "${debug:=$beta}" = "yes"; then
1081 use_assertions=yes memory_usage_stats=yes
1082 extra_objs="$extra_objs debug.o" && if test "$extra_verbose" = "yes"; then
1083 echo " xemacs will be linked with \"debug.o\""
1085 extra_objs="$extra_objs tests.o" && if test "$extra_verbose" = "yes"; then
1086 echo " xemacs will be linked with \"tests.o\""
1088 { test "$extra_verbose" = "yes" && cat << \EOF
1089 Defining DEBUG_XEMACS
1091 cat >> confdefs.h <<\EOF
1092 #define DEBUG_XEMACS 1
1097 test "$use_assertions" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
1098 Defining USE_ASSERTIONS
1100 cat >> confdefs.h <<\EOF
1101 #define USE_ASSERTIONS 1
1105 test "$memory_usage_stats" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
1106 Defining MEMORY_USAGE_STATS
1108 cat >> confdefs.h <<\EOF
1109 #define MEMORY_USAGE_STATS 1
1115 echo $ac_n "checking "host system type"""... $ac_c" 1>&6
1116 echo "configure:1117: checking "host system type"" >&5
1117 internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'`
1118 canonical=`${CONFIG_SHELL-/bin/sh} $srcdir/config.sub "$internal_configuration"`
1119 configuration=`echo "$configuration" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
1120 canonical=`echo "$canonical" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
1121 echo "$ac_t""$configuration" 1>&6
1129 case "$canonical" in
1130 sparc-*-* ) machine=sparc ;;
1131 alpha*-*-* ) machine=alpha ;;
1132 vax-*-* ) machine=vax ;;
1133 mips-dec-* ) machine=pmax ;;
1134 mips-sgi-irix6* ) machine=iris6d ;;
1135 mips-sgi-* ) machine=iris4d ;;
1136 mips*-linux ) machine=mips ;;
1137 romp-ibm-* ) machine=ibmrt ;;
1138 rs6000-ibm-aix* ) machine=ibmrs6000 ;;
1139 powerpc-ibm-aix* ) machine=ibmrs6000 ;;
1140 powerpc*-* ) machine=powerpc ;;
1141 hppa-*-* ) machine=hp800 ;;
1142 m88k-dg-* ) machine=aviion ;;
1143 m68*-sony-* ) machine=news ;;
1144 mips-sony-* ) machine=news-risc ;;
1145 clipper-* ) machine=clipper ;;
1146 arm* ) machine=arm ;;
1147 ns32k-* ) machine=ns32000 ;;
1150 case "$canonical" in
1151 *-*-linux* ) opsys=linux ;;
1152 *-*-netbsd* ) opsys=netbsd ;;
1153 *-*-openbsd* ) opsys=openbsd ;;
1154 *-*-nextstep* ) opsys=nextstep ;;
1155 *-*-vms ) opsys=vms ;;
1157 *-dec-osf1.3 | *-dec-osf2* ) opsys=decosf1-3 ;;
1158 *-dec-osf1.2 | *-dec-osf1* ) opsys=decosf1-2 ;;
1159 *-dec-osf3.[2-9] ) opsys=decosf3-2 ;;
1160 *-dec-osf3* ) opsys=decosf3-1 ;;
1161 *-dec-osf[4-9]* ) opsys=decosf4-0 ;;
1163 *-*-ultrix[0-3].* | *-*-ultrix4.0* ) opsys=bsd4-2 ;;
1164 *-*-ultrix4.[12]* ) opsys=bsd4-3 ;;
1165 *-*-ultrix* ) opsys=ultrix4-3 ;;
1167 *-*-aix3.1* ) opsys=aix3-1 ;;
1168 *-*-aix3.2.5 ) opsys=aix3-2-5 ;;
1169 *-*-aix3* ) opsys=aix3-2 ;;
1170 *-*-aix4.0* ) opsys=aix4 ;;
1171 *-*-aix4.1* ) opsys=aix4-1 ;;
1172 *-*-aix4* ) opsys=aix4-2 ;;
1174 *-gnu* ) opsys=gnu ;;
1175 *-*-bsd4.[01] ) opsys=bsd4-1 ;;
1176 *-*-bsd4.2 ) opsys=bsd4-2 ;;
1177 *-*-bsd4.3 ) opsys=bsd4-3 ;;
1178 *-*-aos4.2 ) opsys=bsd4-2 ;;
1179 *-*-aos* ) opsys=bsd4-3 ;;
1180 *-*-sysv0 | *-*-sysvr0 ) opsys=usg5-0 ;;
1181 *-*-sysv2 | *-*-sysvr2 ) opsys=usg5-2 ;;
1182 *-*-sysv2.2 | *-*-sysvr2.2 ) opsys=usg5-2-2 ;;
1183 *-*-sysv3* | *-*-sysvr3* ) opsys=usg5-3 ;;
1184 *-*-sysv4.1* | *-*-sysvr4.1* )opsys=usg5-4 NON_GNU_CPP=/usr/lib/cpp ;;
1185 *-*-sysv4.[2-9]* | *-sysvr4.[2-9]* )
1186 if test -z "$NON_GNU_CPP" ; then
1187 for prog in "/usr/ccs/lib/cpp" "/lib/cpp"; do
1188 if test -f "$prog"; then NON_GNU_CPP="$prog"; break; fi
1192 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
1193 *-*-mach_bsd4.3* ) opsys=mach-bsd4-3 ;;
1196 case "$canonical" in
1199 case "$canonical" in
1200 i[3-9]86-*-netbsd*) machine=intel386 ;;
1201 hp300-*-netbsd* | amiga-*-netbsd* | sun3-*-netbsd* | mac68k-*-netbsd* | da30-*-netbsd* | m68k-*-netbsd* )
1202 machine=hp9000s300 ;;
1203 pc532-*-netbsd* | ns32k-*-netbsd* ) machine=ns32000 ;;
1204 pmax-*-netbsd* | mips-*-netbsd* ) machine=pmax ;;
1209 case "${canonical}" in
1210 i386-*-openbsd*) machine=intel386 ;;
1211 m68k-*-openbsd*) machine=hp9000s300 ;;
1212 mipsel-*-openbsd*) machine=pmax ;;
1216 arm-acorn-riscix1.1* ) machine=acorn opsys=riscix1-1 ;;
1217 arm-acorn-riscix1.2* | arm-acorn-riscix ) machine=acorn opsys=riscix1-2 ;;
1219 fx80-alliant-* ) machine=alliant4 opsys=bsd4-2 ;;
1220 i860-alliant-* ) machine=alliant-2800 opsys=bsd4-3 ;;
1222 m68*-altos-sysv* ) machine=altos opsys=usg5-2 ;;
1224 580-amdahl-sysv* ) machine=amdahl opsys=usg5-2-2 ;;
1226 m68*-apollo-* ) machine=apollo opsys=bsd4-3 ;;
1228 we32k-att-sysv* ) machine=att3b opsys=usg5-2-2 ;;
1230 m68*-att-sysv* ) machine=7300 opsys=usg5-2-2 ;;
1232 rs6000-bull-bosx* ) machine=ibmrs6000 opsys=aix3-2 ;; # dpx20
1233 m68*-bull-sysv3* ) machine=dpx2 opsys=usg5-3 ;; # dpx2
1234 m68*-bull-sysv2* ) machine=sps7 opsys=usg5-2 ;; # sps7
1237 celerity-celerity-bsd* ) machine=celerity opsys=bsd4-2 ;;
1239 *-convex-bsd* | *-convex-convexos* )
1240 machine=convex opsys=bsd4-3
1241 NON_GNU_CPP="cc -E -P"
1244 i[3-9]86-cubix-sysv* ) machine=intel386 opsys=usg5-3 ;;
1246 i586-dg-dgux*R4* | i586-dg-dgux5.4.4* ) machine=aviion opsys=dgux5-4r4 ;;
1247 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) opsys=dgux5-4r3 ;;
1248 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) opsys=dgux5-4r2 ;;
1249 m88k-dg-dgux* ) opsys=dgux ;;
1251 m68k-motorola-sysv* | m68000-motorola-sysv* ) machine=delta opsys=usg5-3 ;;
1252 m88k-motorola-sysv4* )
1253 machine=delta88k opsys=usg5-4-2
1255 m88k-motorola-sysv* | m88k-motorola-m88kbcs* ) machine=delta88k opsys=usg5-3 ;;
1257 m68*-dual-sysv* ) machine=dual opsys=usg5-2 ;;
1258 m68*-dual-uniplus* ) machine=dual opsys=unipl5-2 ;;
1260 ns16k-encore-bsd* ) machine=ns16000 opsys=umax ;;
1262 pn-gould-bsd4.2* ) machine=gould opsys=bsd4-2 ;;
1263 pn-gould-bsd4.3* ) machine=gould opsys=bsd4-3 ;;
1264 np1-gould-bsd* ) machine=gould-np1 opsys=bsd4-3 ;;
1267 case "`uname -r`" in
1268 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
1269 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
1271 NON_GNU_CPP="/lib/cpp"
1273 m68k-harris-cxux* ) machine=nh3000 opsys=cxux ;;
1274 powerpc-harris-powerunix ) machine=nh6000 opsys=powerunix NON_GNU_CPP="cc -Xo -E -P" ;;
1276 xps*-honeywell-sysv* ) machine=xps100 opsys=usg5-2 ;;
1278 m68*-hp-bsd* ) machine=hp9000s300 opsys=bsd4-3 ;;
1281 case "$canonical" in
1282 m68* ) machine=hp9000s300 ;;
1283 hppa* ) machine=hp800 ;;
1286 case "$canonical" in
1287 *-hp-hpux7* ) opsys=hpux ;;
1288 *-hp-hpux8* ) opsys=hpux8 ;;
1289 *-hp-hpux9* ) opsys=hpux9 ;;
1290 *-hp-hpux10* ) opsys=hpux10 ;;
1291 *-hp-hpux11* ) opsys=hpux11 ;;
1295 case "$opsys" in hpux9 | hpux10 ) extra_objs="$extra_objs strcat.o" && if test "$extra_verbose" = "yes"; then
1296 echo " xemacs will be linked with \"strcat.o\""
1299 if test "$opsys" = "hpux10" -o "$opsys" = "hpux11"; then \
1300 ansi_flag="-Ae"; else ansi_flag="-Aa"; fi
1301 NON_GNU_CC="cc $ansi_flag" NON_GNU_CPP="cc $ansi_flag -E"
1303 case "$canonical" in *-hp-hpux*shr* ) opsys="${opsys}-shr" ;; esac
1306 orion-orion-bsd* ) machine=orion opsys=bsd4-2 ;;
1307 clipper-orion-bsd* ) machine=orion105 opsys=bsd4-2 ;;
1309 i[3-9]86-ibm-aix1.1* ) machine=ibmps2-aix opsys=usg5-2-2 ;;
1310 i[3-9]86-ibm-aix1.[23]* | i[3-9]86-ibm-aix* ) machine=ibmps2-aix opsys=usg5-3 ;;
1311 i370-ibm-aix*) machine=ibm370aix opsys=usg5-3 ;;
1312 romp-ibm-aos* ) opsys=bsd4-3 ;;
1313 romp-ibm-bsd* ) opsys=bsd4-3 ;;
1314 romp-ibm-mach* ) opsys=mach-bsd4-3 ;;
1316 m68*-isi-bsd4.2* ) machine=isi-ov opsys=bsd4-2 ;;
1317 m68*-isi-bsd4.3* ) machine=isi-ov opsys=bsd4-3 ;;
1319 i[3-9]86-intsys-sysv* ) machine=is386 opsys=usg5-2-2 ;;
1321 i[3-9]86-prime-sysv* ) machine=i386 opsys=usg5-3 ;;
1323 i[3-9]86-sequent-bsd* ) machine=symmetry opsys=bsd4-3 ;;
1325 i[3-9]86-sequent-ptx* ) machine=sequent-ptx opsys=ptx NON_GNU_CPP="/lib/cpp" ;;
1327 i[3-9]86-ncr-sysv* ) machine=ncr386 opsys=usg5-4-2 ;;
1329 i860-intel-osf1* ) machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp ;;
1331 i860-*-sysv4* ) machine=i860 opsys=usg5-4 NON_GNU_CC="/bin/cc" NON_GNU_CPP="/usr/ccs/lib/cpp" ;;
1333 m68*-masscomp-rtu* ) machine=masscomp opsys=rtu ;;
1335 m68*-megatest-bsd* ) machine=mega68 opsys=bsd4-2 ;;
1337 mips-mips-usg* ) machine=mips4 ;;
1340 NON_GNU_CC="cc -systype bsd43"
1341 NON_GNU_CPP="cc -systype bsd43 -E"
1342 case "$canonical" in
1343 mips-mips-riscos4* ) opsys=bsd4-3 ;;
1344 mips-mips-riscos5* ) opsys=riscos5 ;;
1347 mips-mips-bsd* ) machine=mips opsys=bsd4-3 ;;
1348 mips-mips-* ) machine=mips opsys=usg5-2-2 ;;
1350 m68*-next-* | m68k-*-nextstep* ) machine=m68k opsys=nextstep ;;
1352 ns32k-ns-genix* ) machine=ns32000 opsys=usg5-2 ;;
1354 m68*-ncr-sysv2* | m68*-ncr-sysvr2* ) machine=tower32 opsys=usg5-2-2 ;;
1355 m68*-ncr-sysv3* | m68*-ncr-sysvr3* ) machine=tower32v3 opsys=usg5-3 ;;
1357 m68*-nixdorf-sysv* ) machine=targon31 opsys=usg5-2-2 ;;
1359 m68*-nu-sysv* ) machine=nu opsys=usg5-2 ;;
1361 m68*-plexus-sysv* ) machine=plexus opsys=usg5-2 ;;
1363 pyramid-pyramid-bsd* ) machine=pyramid opsys=bsd4-2 ;;
1365 ns32k-sequent-bsd4.2* ) machine=sequent opsys=bsd4-2 ;;
1366 ns32k-sequent-bsd4.3* ) machine=sequent opsys=bsd4-3 ;;
1368 mips-siemens-sysv* | mips-sni-sysv*)
1369 machine=mips-siemens opsys=usg5-4
1370 NON_GNU_CC=/usr/ccs/bin/cc
1371 NON_GNU_CPP=/usr/ccs/lib/cpp
1376 NON_GNU_CC=/usr/ccs/bin/cc
1377 NON_GNU_CPP=/usr/ccs/lib/cpp
1380 m68*-sgi-iris3.5* ) machine=irist opsys=iris3-5 ;;
1381 m68*-sgi-iris3.6* | m68*-sgi-iris*) machine=irist opsys=iris3-6 ;;
1382 mips-sgi-irix3.* ) opsys=irix3-3 ;;
1383 mips-sgi-irix4.* ) opsys=irix4-0 ;;
1384 mips-sgi-irix6* ) opsys=irix6-0 ;;
1385 mips-sgi-irix5.1* ) opsys=irix5-1 ;;
1386 mips-sgi-irix5.2* ) opsys=irix5-2 ;;
1387 mips-sgi-irix5.* ) opsys=irix5-3 ;;
1388 mips-sgi-irix* ) opsys=irix5-0 ;;
1390 *-sony-newsos[34]* | *-sony-news[34]* ) opsys=bsd4-3 ;;
1391 *-sony-news* ) opsys=newsos5 ;;
1393 m68*-stride-sysv* ) machine=stride opsys=usg5-2 ;;
1395 *-*-solaris* | *-*-sunos* | *-sun-mach* | *-sun-bsd* )
1396 case "$canonical" in
1397 m68*-sunos1* ) machine=sun1 ;;
1398 m68*-sunos2* ) machine=sun2 ;;
1399 m68* ) machine=sun3 ;;
1400 i*86*-sun-sunos[34]* ) machine=sun386 ;;
1401 i*86-*-* ) machine=intel386 ;;
1402 rs6000* ) machine=rs6000 ;;
1405 case "$canonical" in *-sunos5*)
1406 canonical=`echo $canonical | sed -e s/sunos5/solaris2/`;;
1409 case "$canonical" in
1411 #test -f /usr/lib/cpp && NON_GNU_CPP=/usr/lib/cpp ;;
1414 #test -f /usr/ccs/lib/cpp && NON_GNU_CPP=/usr/ccs/lib/cpp
1418 case "$canonical" in
1421 os_release=`uname -r | sed -e 's/^\([0-9]\)\.\([0-9]\).*/\1\2/'`
1422 { test "$extra_verbose" = "yes" && cat << EOF
1423 Defining OS_RELEASE = $os_release
1425 cat >> confdefs.h <<EOF
1426 #define OS_RELEASE $os_release
1431 i*86-*-sunos4* ) opsys=sunos4-0 ;;
1432 *-sunos4.0* ) opsys=sunos4-0 ;;
1433 *-sunos4.1.2* ) opsys=sunos4-1-2 ;;
1434 *-sunos4.1.3* ) opsys=sunos4-1-3 ;;
1435 *-sunos4.1.[4-9]* ) opsys=sunos4-1-4 ;;
1436 *-sunos4* | *-sunos ) opsys=sunos4-1 ;;
1437 *-mach* ) opsys=mach-bsd4-3 ;;
1441 case "$canonical" in *-sunos4*shr* ) opsys="${opsys}-shr" ;; esac
1443 test "$opsys $CC" = "sol2 /usr/ucb/cc" && CC=""
1446 m68*-tadpole-sysv* ) machine=tad68k opsys=usg5-3 ;;
1448 tahoe-tahoe-bsd4.2* ) machine=tahoe opsys=bsd4-2 ;;
1449 tahoe-tahoe-bsd4.3* ) machine=tahoe opsys=bsd4-3 ;;
1451 mips-tandem-sysv* ) machine=tandem-s2 opsys=usg5-3 ;;
1453 m88k-tektronix-sysv3* ) machine=tekxd88 opsys=usg5-3 ;;
1455 ns16k-tektronix-bsd* ) machine=ns16000 opsys=bsd4-2 ;;
1456 m68*-tektronix-bsd* ) machine=tek4300 opsys=bsd4-3 ;;
1458 titan-titan-sysv* ) machine=titan opsys=usg5-3 ;;
1460 m68*-unisys-uniplus* ) machine=ustation opsystem=unipl5-2 ;;
1463 case "$canonical" in
1464 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
1465 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
1466 *-mach* ) opsys=mach-bsd4-3 ;;
1470 ns16k-whitechapel-* ) machine=mg1 ;;
1472 m68*-wicat-sysv* ) machine=wicat opsys=usg5-2 ;;
1476 case "$canonical" in
1477 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
1478 *-isc2.2* ) opsys=isc2-2 ;;
1479 *-isc4.0* ) opsys=isc4-0 ;;
1480 *-isc4.* ) opsys=isc4-1
1481 GCC_TEST_OPTIONS=-posix
1482 NON_GCC_TEST_OPTIONS=-Xp
1484 *-isc* ) opsys=isc3-0 ;;
1485 *-esix5* ) opsys=esix5r4 NON_GNU_CPP=/usr/lib/cpp ;;
1486 *-esix* ) opsys=esix ;;
1487 *-mach* ) opsys=mach-bsd4-3 ;;
1488 *-xenix* ) opsys=xenix ;;
1489 *-sco3.2v4* ) opsys=sco4 NON_GNU_CPP=/lib/cpp ;;
1490 *-bsd386* | *-bsdi1* ) opsys=bsd386 ;;
1491 *-bsdi4* ) opsys=bsdos4 ;;
1492 *-bsdi3* ) opsys=bsdos3 ;;
1493 *-bsdi2.1* ) opsys=bsdos2-1 ;;
1494 *-bsdi2* ) opsys=bsdos2 ;;
1495 *-sco3.2v5* ) opsys=sco5 ;;
1496 *-sysv5* ) opsys=sco7 ;;
1497 *-386bsd* ) opsys=386bsd ;;
1498 *-freebsd* ) opsys=freebsd ;;
1499 *-nextstep* ) opsys=nextstep ;;
1500 *-pc-cygwin* ) opsys=cygwin32 ;;
1501 *-pc-mingw* ) opsys=mingw32 ;
1502 test -z "$with_tty" && with_tty="no";;
1506 m68k-*-linux* ) machine=m68k opsys=linux ;;
1510 test -z "$machine" && machine=`echo $canonical | sed 's/-.*$//'`
1512 test -z "$opsys" && opsys=`uname -s | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
1514 if test -r "${srcdir}/src/m/${machine}.h"; then
1515 machfile="m/${machine}.h"
1516 { test "$extra_verbose" = "yes" && cat << EOF
1517 Defining config_machfile = "$machfile"
1519 cat >> confdefs.h <<EOF
1520 #define config_machfile "$machfile"
1525 echo "XEmacs has no builtin knowledge of \`$machine' machines."
1526 echo "Using configure-time autodetection only."
1529 if test -r "${srcdir}/src/s/${opsys}.h"; then
1530 opsysfile="s/${opsys}.h"
1531 { test "$extra_verbose" = "yes" && cat << EOF
1532 Defining config_opsysfile = "$opsysfile"
1534 cat >> confdefs.h <<EOF
1535 #define config_opsysfile "$opsysfile"
1540 echo "XEmacs has no builtin knowledge of \`$opsys' operating systems."
1541 echo "Using configure-time autodetection only."
1545 if test -z "$dynamic"; then
1547 hpux* | sunos4* ) dynamic=no ;;
1551 if test "$dynamic" = "yes"; then
1553 hpux* | sunos4* | sco5 ) opsys="${opsys}-shr" ;;
1554 decosf* ) ld_call_shared="-call_shared" ;;
1556 else case "$opsys" in
1558 echo "Static linking is not supported on Solaris 2."
1559 echo "Rerun configure without specifying --dynamic=no."
1561 linux ) ld_call_shared="-Bstatic" ;;
1562 decosf* ) ld_call_shared="-non_shared" ;;
1566 case "$opsys" in aix*) NON_GNU_CC=xlc ;; esac
1568 stack_trace_eye_catcher=`echo ${PROGNAME}_${version}_${canonical} | sed 'y/.-/__/'`
1569 { test "$extra_verbose" = "yes" && cat << EOF
1570 Defining STACK_TRACE_EYE_CATCHER = $stack_trace_eye_catcher
1572 cat >> confdefs.h <<EOF
1573 #define STACK_TRACE_EYE_CATCHER $stack_trace_eye_catcher
1579 test "$with_sparcworks" = "yes" && with_workshop=yes # compatibility alias
1580 if test "$with_workshop $with_tooltalk" = "yes no"; then
1581 (echo "$progname: Usage error:"
1582 echo " " "--with-workshop requires --with-tooltalk"
1583 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
1584 elif test "$with_tooltalk" = "no" ; then with_workshop=no
1585 elif test "$with_workshop" = "yes"; then with_tooltalk=yes
1588 if test "$with_workshop" = "yes"; then
1589 { test "$extra_verbose" = "yes" && cat << \EOF
1592 cat >> confdefs.h <<\EOF
1597 extra_objs="$extra_objs sunpro.o" && if test "$extra_verbose" = "yes"; then
1598 echo " xemacs will be linked with \"sunpro.o\""
1602 if test "$with_clash_detection" != "no"; then
1603 { test "$extra_verbose" = "yes" && cat << \EOF
1604 Defining CLASH_DETECTION
1606 cat >> confdefs.h <<\EOF
1607 #define CLASH_DETECTION 1
1611 extra_objs="$extra_objs filelock.o" && if test "$extra_verbose" = "yes"; then
1612 echo " xemacs will be linked with \"filelock.o\""
1616 test -n "$compiler" && CC="$compiler"
1617 if test "$with_gcc" = "no"; then case "$CC" in "" | *gcc* ) CC="${NON_GNU_CC-cc}" ;; esac
1620 test "${cflags-unset}" != unset && CFLAGS="$cflags"
1621 if test "${CFLAGS-unset}" != unset
1622 then cflags_specified=yes;
1623 else cflags_specified=no;
1626 xe_save_CFLAGS="$CFLAGS"
1628 # Extract the first word of "gcc", so it can be a program name with args.
1629 set dummy gcc; ac_word=$2
1630 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1631 echo "configure:1632: checking for $ac_word" >&5
1633 if test -n "$CC"; then
1634 ac_cv_prog_CC="$CC" # Let the user override the test.
1636 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1638 for ac_dir in $ac_dummy; do
1639 test -z "$ac_dir" && ac_dir=.
1640 if test -f $ac_dir/$ac_word; then
1648 if test -n "$CC"; then
1649 echo "$ac_t""$CC" 1>&6
1651 echo "$ac_t""no" 1>&6
1654 if test -z "$CC"; then
1655 # Extract the first word of "cc", so it can be a program name with args.
1656 set dummy cc; ac_word=$2
1657 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1658 echo "configure:1659: checking for $ac_word" >&5
1660 if test -n "$CC"; then
1661 ac_cv_prog_CC="$CC" # Let the user override the test.
1663 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1666 for ac_dir in $ac_dummy; do
1667 test -z "$ac_dir" && ac_dir=.
1668 if test -f $ac_dir/$ac_word; then
1669 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1670 ac_prog_rejected=yes
1678 if test $ac_prog_rejected = yes; then
1679 # We found a bogon in the path, so make sure we never use it.
1680 set dummy $ac_cv_prog_CC
1682 if test $# -gt 0; then
1683 # We chose a different compiler from the bogus one.
1684 # However, it has the same basename, so the bogon will be chosen
1685 # first if we set CC to just the basename; use the full file name.
1687 set dummy "$ac_dir/$ac_word" "$@"
1694 if test -n "$CC"; then
1695 echo "$ac_t""$CC" 1>&6
1697 echo "$ac_t""no" 1>&6
1700 if test -z "$CC"; then
1701 case "`uname -s`" in
1703 # Extract the first word of "cl", so it can be a program name with args.
1704 set dummy cl; ac_word=$2
1705 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1706 echo "configure:1707: checking for $ac_word" >&5
1708 if test -n "$CC"; then
1709 ac_cv_prog_CC="$CC" # Let the user override the test.
1711 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1713 for ac_dir in $ac_dummy; do
1714 test -z "$ac_dir" && ac_dir=.
1715 if test -f $ac_dir/$ac_word; then
1723 if test -n "$CC"; then
1724 echo "$ac_t""$CC" 1>&6
1726 echo "$ac_t""no" 1>&6
1731 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1734 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1735 echo "configure:1736: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1738 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1739 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1740 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1741 ac_cpp='$CPP '"$xe_cppflags"
1742 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1743 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1746 cat > conftest.$ac_ext << EOF
1748 #line 1749 "configure"
1749 #include "confdefs.h"
1753 if { (eval echo configure:1754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1754 ac_cv_prog_cc_works=yes
1755 # If we can't run a trivial program, we are probably using a cross compiler.
1756 if (./conftest; exit) 2>/dev/null; then
1757 ac_cv_prog_cc_cross=no
1759 ac_cv_prog_cc_cross=yes
1762 echo "configure: failed program was:" >&5
1763 cat conftest.$ac_ext >&5
1764 ac_cv_prog_cc_works=no
1768 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1769 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1770 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1771 ac_cpp='$CPP '"$xe_cppflags"
1772 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1773 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1776 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1777 if test $ac_cv_prog_cc_works = no; then
1778 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1780 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1781 echo "configure:1782: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1782 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1783 cross_compiling=$ac_cv_prog_cc_cross
1785 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1786 echo "configure:1787: checking whether we are using GNU C" >&5
1788 cat > conftest.c <<EOF
1793 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1794: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1799 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1801 if test $ac_cv_prog_gcc = yes; then
1807 ac_test_CFLAGS="${CFLAGS+set}"
1808 ac_save_CFLAGS="$CFLAGS"
1810 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1811 echo "configure:1812: checking whether ${CC-cc} accepts -g" >&5
1813 echo 'void f(){}' > conftest.c
1814 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1822 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1823 if test "$ac_test_CFLAGS" = set; then
1824 CFLAGS="$ac_save_CFLAGS"
1825 elif test $ac_cv_prog_cc_g = yes; then
1826 if test "$GCC" = yes; then
1832 if test "$GCC" = yes; then
1839 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then
1841 # Extract the first word of "gcc", so it can be a program name with args.
1842 set dummy gcc; ac_word=$2
1843 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1844 echo "configure:1845: checking for $ac_word" >&5
1846 if test -n "$CC"; then
1847 ac_cv_prog_CC="$CC" # Let the user override the test.
1849 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1851 for ac_dir in $ac_dummy; do
1852 test -z "$ac_dir" && ac_dir=.
1853 if test -f $ac_dir/$ac_word; then
1861 if test -n "$CC"; then
1862 echo "$ac_t""$CC" 1>&6
1864 echo "$ac_t""no" 1>&6
1867 if test -z "$CC"; then
1868 # Extract the first word of "cc", so it can be a program name with args.
1869 set dummy cc; ac_word=$2
1870 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1871 echo "configure:1872: checking for $ac_word" >&5
1873 if test -n "$CC"; then
1874 ac_cv_prog_CC="$CC" # Let the user override the test.
1876 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1879 for ac_dir in $ac_dummy; do
1880 test -z "$ac_dir" && ac_dir=.
1881 if test -f $ac_dir/$ac_word; then
1882 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1883 ac_prog_rejected=yes
1891 if test $ac_prog_rejected = yes; then
1892 # We found a bogon in the path, so make sure we never use it.
1893 set dummy $ac_cv_prog_CC
1895 if test $# -gt 0; then
1896 # We chose a different compiler from the bogus one.
1897 # However, it has the same basename, so the bogon will be chosen
1898 # first if we set CC to just the basename; use the full file name.
1900 set dummy "$ac_dir/$ac_word" "$@"
1907 if test -n "$CC"; then
1908 echo "$ac_t""$CC" 1>&6
1910 echo "$ac_t""no" 1>&6
1913 if test -z "$CC"; then
1914 case "`uname -s`" in
1916 # Extract the first word of "cl", so it can be a program name with args.
1917 set dummy cl; ac_word=$2
1918 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1919 echo "configure:1920: checking for $ac_word" >&5
1921 if test -n "$CC"; then
1922 ac_cv_prog_CC="$CC" # Let the user override the test.
1924 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1926 for ac_dir in $ac_dummy; do
1927 test -z "$ac_dir" && ac_dir=.
1928 if test -f $ac_dir/$ac_word; then
1936 if test -n "$CC"; then
1937 echo "$ac_t""$CC" 1>&6
1939 echo "$ac_t""no" 1>&6
1944 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1947 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1948 echo "configure:1949: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1951 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1952 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1953 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1954 ac_cpp='$CPP '"$xe_cppflags"
1955 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1956 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1959 cat > conftest.$ac_ext << EOF
1961 #line 1962 "configure"
1962 #include "confdefs.h"
1966 if { (eval echo configure:1967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1967 ac_cv_prog_cc_works=yes
1968 # If we can't run a trivial program, we are probably using a cross compiler.
1969 if (./conftest; exit) 2>/dev/null; then
1970 ac_cv_prog_cc_cross=no
1972 ac_cv_prog_cc_cross=yes
1975 echo "configure: failed program was:" >&5
1976 cat conftest.$ac_ext >&5
1977 ac_cv_prog_cc_works=no
1981 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1982 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1983 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1984 ac_cpp='$CPP '"$xe_cppflags"
1985 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1986 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1989 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1990 if test $ac_cv_prog_cc_works = no; then
1991 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1993 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1994 echo "configure:1995: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1995 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1996 cross_compiling=$ac_cv_prog_cc_cross
1998 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1999 echo "configure:2000: checking whether we are using GNU C" >&5
2001 cat > conftest.c <<EOF
2006 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2007: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2012 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2014 if test $ac_cv_prog_gcc = yes; then
2020 ac_test_CFLAGS="${CFLAGS+set}"
2021 ac_save_CFLAGS="$CFLAGS"
2023 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2024 echo "configure:2025: checking whether ${CC-cc} accepts -g" >&5
2026 echo 'void f(){}' > conftest.c
2027 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2035 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2036 if test "$ac_test_CFLAGS" = set; then
2037 CFLAGS="$ac_save_CFLAGS"
2038 elif test $ac_cv_prog_cc_g = yes; then
2039 if test "$GCC" = yes; then
2045 if test "$GCC" = yes; then
2052 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then
2054 # Extract the first word of "gcc", so it can be a program name with args.
2055 set dummy gcc; ac_word=$2
2056 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2057 echo "configure:2058: checking for $ac_word" >&5
2059 if test -n "$CC"; then
2060 ac_cv_prog_CC="$CC" # Let the user override the test.
2062 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2064 for ac_dir in $ac_dummy; do
2065 test -z "$ac_dir" && ac_dir=.
2066 if test -f $ac_dir/$ac_word; then
2074 if test -n "$CC"; then
2075 echo "$ac_t""$CC" 1>&6
2077 echo "$ac_t""no" 1>&6
2080 if test -z "$CC"; then
2081 # Extract the first word of "cc", so it can be a program name with args.
2082 set dummy cc; ac_word=$2
2083 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2084 echo "configure:2085: checking for $ac_word" >&5
2086 if test -n "$CC"; then
2087 ac_cv_prog_CC="$CC" # Let the user override the test.
2089 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2092 for ac_dir in $ac_dummy; do
2093 test -z "$ac_dir" && ac_dir=.
2094 if test -f $ac_dir/$ac_word; then
2095 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2096 ac_prog_rejected=yes
2104 if test $ac_prog_rejected = yes; then
2105 # We found a bogon in the path, so make sure we never use it.
2106 set dummy $ac_cv_prog_CC
2108 if test $# -gt 0; then
2109 # We chose a different compiler from the bogus one.
2110 # However, it has the same basename, so the bogon will be chosen
2111 # first if we set CC to just the basename; use the full file name.
2113 set dummy "$ac_dir/$ac_word" "$@"
2120 if test -n "$CC"; then
2121 echo "$ac_t""$CC" 1>&6
2123 echo "$ac_t""no" 1>&6
2126 if test -z "$CC"; then
2127 case "`uname -s`" in
2129 # Extract the first word of "cl", so it can be a program name with args.
2130 set dummy cl; ac_word=$2
2131 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2132 echo "configure:2133: checking for $ac_word" >&5
2134 if test -n "$CC"; then
2135 ac_cv_prog_CC="$CC" # Let the user override the test.
2137 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2139 for ac_dir in $ac_dummy; do
2140 test -z "$ac_dir" && ac_dir=.
2141 if test -f $ac_dir/$ac_word; then
2149 if test -n "$CC"; then
2150 echo "$ac_t""$CC" 1>&6
2152 echo "$ac_t""no" 1>&6
2157 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2160 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2161 echo "configure:2162: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2164 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2165 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2166 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
2167 ac_cpp='$CPP '"$xe_cppflags"
2168 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
2169 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2172 cat > conftest.$ac_ext << EOF
2174 #line 2175 "configure"
2175 #include "confdefs.h"
2179 if { (eval echo configure:2180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2180 ac_cv_prog_cc_works=yes
2181 # If we can't run a trivial program, we are probably using a cross compiler.
2182 if (./conftest; exit) 2>/dev/null; then
2183 ac_cv_prog_cc_cross=no
2185 ac_cv_prog_cc_cross=yes
2188 echo "configure: failed program was:" >&5
2189 cat conftest.$ac_ext >&5
2190 ac_cv_prog_cc_works=no
2194 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2195 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2196 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
2197 ac_cpp='$CPP '"$xe_cppflags"
2198 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
2199 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2202 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2203 if test $ac_cv_prog_cc_works = no; then
2204 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2206 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2207 echo "configure:2208: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2208 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2209 cross_compiling=$ac_cv_prog_cc_cross
2211 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2212 echo "configure:2213: checking whether we are using GNU C" >&5
2214 cat > conftest.c <<EOF
2219 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2220: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2225 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2227 if test $ac_cv_prog_gcc = yes; then
2233 ac_test_CFLAGS="${CFLAGS+set}"
2234 ac_save_CFLAGS="$CFLAGS"
2236 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2237 echo "configure:2238: checking whether ${CC-cc} accepts -g" >&5
2239 echo 'void f(){}' > conftest.c
2240 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2248 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2249 if test "$ac_test_CFLAGS" = set; then
2250 CFLAGS="$ac_save_CFLAGS"
2251 elif test $ac_cv_prog_cc_g = yes; then
2252 if test "$GCC" = yes; then
2258 if test "$GCC" = yes; then
2266 CFLAGS="$xe_save_CFLAGS"
2269 test -n "$CPP" -a -d "$CPP" && CPP=
2271 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP"
2273 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2274 echo "configure:2275: checking how to run the C preprocessor" >&5
2275 # On Suns, sometimes $CPP names a directory.
2276 if test -n "$CPP" && test -d "$CPP"; then
2279 if test -z "$CPP"; then
2281 # This must be in double quotes, not single quotes, because CPP may get
2282 # substituted into the Makefile and "${CC-cc}" will confuse make.
2284 # On the NeXT, cc -E runs the code through the compiler's parser,
2285 # not just through cpp.
2286 cat > conftest.$ac_ext <<EOF
2287 #line 2288 "configure"
2288 #include "confdefs.h"
2292 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2293 { (eval echo configure:2294: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2294 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2295 if test -z "$ac_err"; then
2299 echo "configure: failed program was:" >&5
2300 cat conftest.$ac_ext >&5
2302 CPP="${CC-cc} -E -traditional-cpp"
2303 cat > conftest.$ac_ext <<EOF
2304 #line 2305 "configure"
2305 #include "confdefs.h"
2309 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2310 { (eval echo configure:2311: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2311 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2312 if test -z "$ac_err"; then
2316 echo "configure: failed program was:" >&5
2317 cat conftest.$ac_ext >&5
2319 CPP="${CC-cc} -nologo -E"
2320 cat > conftest.$ac_ext <<EOF
2321 #line 2322 "configure"
2322 #include "confdefs.h"
2326 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2327 { (eval echo configure:2328: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2328 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2329 if test -z "$ac_err"; then
2333 echo "configure: failed program was:" >&5
2334 cat conftest.$ac_ext >&5
2343 ac_cv_prog_CPP="$CPP"
2344 CPP="$ac_cv_prog_CPP"
2346 ac_cv_prog_CPP="$CPP"
2348 echo "$ac_t""$CPP" 1>&6
2352 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2353 echo "configure:2354: checking for AIX" >&5
2354 cat > conftest.$ac_ext <<EOF
2355 #line 2356 "configure"
2356 #include "confdefs.h"
2362 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2363 egrep "yes" >/dev/null 2>&1; then
2365 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
2366 Defining _ALL_SOURCE
2368 cat >> confdefs.h <<\EOF
2369 #define _ALL_SOURCE 1
2375 echo "$ac_t""no" 1>&6
2381 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6
2382 echo "configure:2383: checking for GNU libc" >&5
2383 cat > conftest.$ac_ext <<EOF
2384 #line 2385 "configure"
2385 #include "confdefs.h"
2386 #include <features.h>
2389 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
2390 #error Not a GNU libc system :-(
2391 ******* ======= ******** &&&&&&&&
2396 if { (eval echo configure:2397: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2400 echo "configure: failed program was:" >&5
2401 cat conftest.$ac_ext >&5
2406 echo "$ac_t""$have_glibc" 1>&6
2407 test "$have_glibc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
2408 Defining _GNU_SOURCE
2410 cat >> confdefs.h <<\EOF
2411 #define _GNU_SOURCE 1
2418 { test "$extra_verbose" = "yes" && cat << \EOF
2419 Defining __EXTENSIONS__
2421 cat >> confdefs.h <<\EOF
2422 #define __EXTENSIONS__ 1
2426 if test "$os_release" -ge 55; then
2427 { test "$extra_verbose" = "yes" && cat << \EOF
2428 Defining _XOPEN_SOURCE = 500
2430 cat >> confdefs.h <<\EOF
2431 #define _XOPEN_SOURCE 500
2435 { test "$extra_verbose" = "yes" && cat << \EOF
2436 Defining _XOPEN_SOURCE_EXTENDED
2438 cat >> confdefs.h <<\EOF
2439 #define _XOPEN_SOURCE_EXTENDED 1
2445 { test "$extra_verbose" = "yes" && cat << \EOF
2446 Defining _POSIX_C_SOURCE = 199506L
2448 cat >> confdefs.h <<\EOF
2449 #define _POSIX_C_SOURCE 199506L
2453 { test "$extra_verbose" = "yes" && cat << \EOF
2454 Defining _XOPEN_SOURCE = 500
2456 cat >> confdefs.h <<\EOF
2457 #define _XOPEN_SOURCE 500
2461 { test "$extra_verbose" = "yes" && cat << \EOF
2462 Defining _XOPEN_SOURCE_EXTENDED
2464 cat >> confdefs.h <<\EOF
2465 #define _XOPEN_SOURCE_EXTENDED 1
2472 cat > conftest.$ac_ext <<EOF
2473 #line 2474 "configure"
2474 #include "confdefs.h"
2476 #if defined __SUNPRO_C
2478 #elif defined __DECC
2480 #elif defined __USLC__ && defined __SCO_VERSION__
2487 if { (eval echo configure:2488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
2492 echo "configure: failed program was:" >&5
2493 cat conftest.$ac_ext >&5
2495 case "$conftest_rc" in
2496 11) echo "You appear to be using the SunPro C compiler."; __SUNPRO_C=yes ;;
2497 12) echo "You appear to be using the DEC C compiler." ; __DECC=yes ;;
2498 13) echo "You appear to be using the SCO C compiler." ; __USLC__=yes ;;
2506 echo "Extracting information from the machine- and system-dependent headers..."
2508 tempcname="conftest.c"
2512 cat > $tempcname < confdefs.h
2513 cat >> $tempcname <<EOF
2515 #define C_SWITCH_SITE
2516 #define C_SWITCH_X_SITE
2517 #define LD_SWITCH_SITE
2518 #define LD_SWITCH_X_SITE
2519 #define LD_SWITCH_X_SITE_AUX
2520 #define OS_RELEASE $os_release
2522 #ifdef config_opsysfile
2523 #include "$srcdir/src/$opsysfile"
2526 #ifdef config_machfile
2527 #include "$srcdir/src/$machfile"
2530 #ifndef LIBS_MACHINE
2531 #define LIBS_MACHINE
2533 configure___ libs_machine=LIBS_MACHINE
2538 configure___ libs_system=LIBS_SYSTEM
2540 #ifndef LIBS_TERMCAP
2541 #define LIBS_TERMCAP
2543 configure___ libs_termcap=LIBS_TERMCAP
2545 #ifndef LIB_STANDARD
2546 #define LIB_STANDARD
2548 configure___ libs_standard=LIB_STANDARD
2551 #ifndef OBJECTS_MACHINE
2552 #define OBJECTS_MACHINE
2554 configure___ objects_machine=OBJECTS_MACHINE
2556 #ifndef OBJECTS_SYSTEM
2557 #define OBJECTS_SYSTEM
2559 configure___ objects_system=OBJECTS_SYSTEM
2562 #ifndef C_SWITCH_MACHINE
2563 #define C_SWITCH_MACHINE
2565 configure___ c_switch_machine=C_SWITCH_MACHINE
2567 #ifndef C_SWITCH_SYSTEM
2568 #define C_SWITCH_SYSTEM
2570 configure___ c_switch_system=C_SWITCH_SYSTEM
2573 #ifndef LD_SWITCH_MACHINE
2574 #define LD_SWITCH_MACHINE
2576 configure___ ld_switch_machine=LD_SWITCH_MACHINE
2578 #ifndef LD_SWITCH_SYSTEM
2579 #define LD_SWITCH_SYSTEM
2581 configure___ ld_switch_system=LD_SWITCH_SYSTEM
2585 #define UNEXEC "unexec.o"
2587 configure___ unexec=UNEXEC
2590 #ifndef LD_SWITCH_SHARED
2591 #define LD_SWITCH_SHARED "-c"
2593 configure___ ld_switch_shared=LD_SWITCH_SHARED
2596 #define ORDINARY_LD "\$(CC) \$(CFLAGS)"
2597 configure___ ordinary_ld=ORDINARY_LD
2599 #ifdef ORDINARY_LINK
2600 #define LD ORDINARY_LD
2601 #else /* no ORDINARY LINK */
2602 #ifdef COFF_ENCAPSULATE
2603 #define LD "\$(CC) -nostdlib"
2604 #else /* not COFF_ENCAPSULATE */
2607 #else /* ! defined (LINKER) */
2609 #endif /* ! defined (LINKER) */
2610 #endif /* ! defined (COFF_ENCAPSULATE) */
2611 #endif /* not ORDINARY_LINK */
2617 configure___ lib_gcc=LIB_GCC
2619 #ifndef LD_TEXT_START_ADDR
2620 #define LD_TEXT_START_ADDR
2622 configure___ ld_text_start_addr=LD_TEXT_START_ADDR
2625 #if ! defined (ORDINARY_LINK) && !defined (START_FILES)
2627 #ifdef COFF_ENCAPSULATE
2628 #define START_FILES "pre-crt0.o /usr/local/lib/gcc-crt0.o"
2629 #else /* ! defined (COFF_ENCAPSULATE) */
2630 #define START_FILES "pre-crt0.o /lib/crt0.o"
2631 #endif /* ! defined (COFF_ENCAPSULATE) */
2632 #else /* ! defined (NO_REMAP) */
2633 #define START_FILES "ecrt0.o"
2634 #endif /* ! defined (NO_REMAP) */
2635 #endif /* no ORDINARY_LINK */
2639 configure___ start_files=START_FILES
2641 #ifdef ORDINARY_LINK
2642 configure___ ordinary_link=yes
2644 configure___ ordinary_link=no
2647 #ifdef SYSTEM_MALLOC
2648 configure___ system_malloc=yes
2650 configure___ system_malloc=no
2654 configure___ have_terminfo=yes
2656 configure___ have_terminfo=no
2659 #ifdef MAIL_USE_FLOCK
2660 configure___ mail_use_flock=yes
2662 configure___ mail_use_flock=no
2665 #ifdef MAIL_USE_LOCKF
2666 configure___ mail_use_lockf=yes
2668 configure___ mail_use_lockf=no
2671 #ifdef MAIL_USE_LOCKING
2672 configure___ mail_use_locking=yes
2674 configure___ mail_use_locking=no
2677 #ifdef HAVE_WIN32_PROCESSES
2678 configure___ win32_processes=yes
2680 configure___ win32_processes=no
2685 CPP=`eval "echo $CPP $CPPFLAGS"`
2686 eval `$CPP -Isrc $tempcname \
2687 | sed -n -e "s/[ ]*=[ \"]*/='/" -e "s/[ \"]*\$/'/" -e "s/^configure___//p"`
2691 if test "$pdump" = "yes"; then
2700 test "$extra_verbose" = "yes" && \
2701 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 ""
2703 case "$opsys" in mingw* | cygwin*)
2704 cygwin_include=`eval "gcc -print-file-name=libc.a"` ;
2705 cygwin_include=`eval "dirname $cygwin_include"` ;
2706 cygwin_include="-I$cygwin_include/../include" ;
2707 extra_includes="$cygwin_include/mingw $cygwin_include" ;
2708 case "$opsys" in mingw*)
2709 c_switch_system="$c_switch_system $extra_includes" && if test "$extra_verbose" = "yes"; then echo " Appending \"$extra_includes\" to \$c_switch_system"; fi ;;
2714 test "$ordinary_link" = "no" -a -z "$libs_standard" && libs_standard="-lc"
2717 test "$__DECC" = "yes" && c_switch_site="$c_switch_site -std1" && if test "$extra_verbose" = "yes"; then echo " Appending \"-std1\" to \$c_switch_site"; fi
2719 if test "$__USLC__" = yes; then
2720 echo $ac_n "checking for whether the -Kalloca compiler flag is needed""... $ac_c" 1>&6
2721 echo "configure:2722: checking for whether the -Kalloca compiler flag is needed" >&5
2723 cat > conftest.$ac_ext <<EOF
2724 #line 2725 "configure"
2725 #include "confdefs.h"
2728 void *x = alloca(4);
2731 if { (eval echo configure:2732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2735 echo "configure: failed program was:" >&5
2736 cat conftest.$ac_ext >&5
2739 xe_save_c_switch_system="$c_switch_system"
2740 c_switch_system="$c_switch_system -Kalloca"
2741 cat > conftest.$ac_ext <<EOF
2742 #line 2743 "configure"
2743 #include "confdefs.h"
2746 void *x = alloca(4);
2749 if { (eval echo configure:2750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2753 echo "configure: failed program was:" >&5
2754 cat conftest.$ac_ext >&5
2757 c_switch_system="$xe_save_c_switch_system"
2760 echo "$ac_t""$need_kalloca" 1>&6
2761 test "$need_kalloca" = "yes" && c_switch_system="$c_switch_system -Kalloca" && if test "$extra_verbose" = "yes"; then echo " Appending \"-Kalloca\" to \$c_switch_system"; fi
2764 if test "$cflags_specified" = "no"; then
2765 if test "$GCC" = "yes"; then
2766 CFLAGS="-g -O3 -Wall -Wno-switch -Winline -Wmissing-prototypes"
2767 CFLAGS="$CFLAGS -Wsign-compare"
2768 if test "$xemacs_compiler" != "g++"; then
2769 CFLAGS="$CFLAGS -Wshadow"
2771 test "$have_glibc" != "yes" && CFLAGS="$CFLAGS -Wpointer-arith"
2772 elif test "$__SUNPRO_C" = "yes"; then
2774 sol2 ) CFLAGS="-v -xO4" ;;
2775 sunos4* ) CFLAGS="-xO2";;
2777 elif test "$__DECC" = "yes"; then
2779 elif test "$CC" = "xlc"; then
2780 CFLAGS="-g -O3 -qstrict -qnoansialias -qlibansi -qinfo -qro -qmaxmem=20000"
2785 if test "$GCC" = "yes"; then
2786 echo $ac_n "checking for buggy gcc versions""... $ac_c" 1>&6
2787 echo "configure:2788: checking for buggy gcc versions" >&5
2788 GCC_VERSION=`$CC --version`
2789 case `uname -s`:`uname -m`:$GCC_VERSION in
2790 *:sun4*:2.8.1|*:sun4*:egcs-2.90.*)
2794 *-fno-schedule-insns*) ;;
2796 echo "$ac_t""yes" 1>&6
2797 echo "configure: warning: Don't use -O2 with gcc 2.8.1 and egcs 1.0 under SPARC architectures" 1>&2
2798 echo "configure: warning: without also using -fno-schedule-insns." 1>&2
2799 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2805 Linux:alpha:egcs-2.91.*)
2806 echo "$ac_t""yes" 1>&6
2807 echo "configure: warning: There have been reports of egcs-1.1 not compiling XEmacs correctly on" 1>&2
2808 echo "configure: warning: Alpha Linux. There have also been reports that egcs-1.0.3a is O.K." 1>&2
2809 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2814 case "$GCC_VERSION" in
2817 *-fno-strength-reduce*) ;;
2819 echo "$ac_t""yes" 1>&6
2820 echo "configure: warning: Don't use -O2 with gcc 2.7.2 under Intel/XXX without also using" 1>&2
2821 echo "configure: warning: -fno-strength-reduce." 1>&2
2822 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2828 *-fno-caller-saves*) ;;
2830 echo "$ac_t""yes" 1>&6
2831 echo "configure: warning: Don't use -O2 with gcc 2.7.2 under Intel/XXX without also using" 1>&2
2832 echo "configure: warning: -fno-caller-saves." 1>&2
2833 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2840 echo "$ac_t""no" 1>&6
2844 if test "$GCC" = "yes"; then
2845 set x $ld_switch_system; shift; ld_switch_system=""
2846 while test -n "$1"; do
2848 -L | -l | -u ) ld_switch_system="$ld_switch_system $1 $2"; shift ;;
2849 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_system="$ld_switch_system $1" ;;
2851 * ) ld_switch_system="$ld_switch_system -Xlinker $1" ;;
2857 if test "$GCC" = "yes"; then
2858 set x $ld_switch_machine; shift; ld_switch_machine=""
2859 while test -n "$1"; do
2861 -L | -l | -u ) ld_switch_machine="$ld_switch_machine $1 $2"; shift ;;
2862 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_machine="$ld_switch_machine $1" ;;
2864 * ) ld_switch_machine="$ld_switch_machine -Xlinker $1" ;;
2870 if test "$GCC" = "yes"; then
2871 set x $LDFLAGS; shift; LDFLAGS=""
2872 while test -n "$1"; do
2874 -L | -l | -u ) LDFLAGS="$LDFLAGS $1 $2"; shift ;;
2875 -L* | -l* | -u* | -Wl* | -pg ) LDFLAGS="$LDFLAGS $1" ;;
2877 * ) LDFLAGS="$LDFLAGS -Xlinker $1" ;;
2883 if test "$GCC" = "yes"; then
2884 set x $ld_call_shared; shift; ld_call_shared=""
2885 while test -n "$1"; do
2887 -L | -l | -u ) ld_call_shared="$ld_call_shared $1 $2"; shift ;;
2888 -L* | -l* | -u* | -Wl* | -pg ) ld_call_shared="$ld_call_shared $1" ;;
2890 * ) ld_call_shared="$ld_call_shared -Xlinker $1" ;;
2896 test -n "$objects_machine" && extra_objs="$extra_objs $objects_machine" && if test "$extra_verbose" = "yes"; then
2897 echo " xemacs will be linked with \"$objects_machine\""
2899 test -n "$objects_system" && extra_objs="$extra_objs $objects_system" && if test "$extra_verbose" = "yes"; then
2900 echo " xemacs will be linked with \"$objects_system\""
2902 test -n "$unexec" && test ! "$pdump" = "yes" && extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then
2903 echo " xemacs will be linked with \"$unexec\""
2905 test "$pdump" = "yes" && extra_objs="$extra_objs dumper.o" && if test "$extra_verbose" = "yes"; then
2906 echo " xemacs will be linked with \"dumper.o\""
2909 echo $ac_n "checking for dynodump""... $ac_c" 1>&6
2910 echo "configure:2911: checking for dynodump" >&5
2911 if test "$unexec" != "unexsol2.o"; then
2912 echo "$ac_t""no" 1>&6
2914 echo "$ac_t""yes" 1>&6
2915 { test "$extra_verbose" = "yes" && cat << \EOF
2918 cat >> confdefs.h <<\EOF
2923 MAKE_SUBDIR="$MAKE_SUBDIR dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$MAKE_SUBDIR"; fi
2924 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$SRC_SUBDIR_DEPS"; fi
2926 sparc ) dynodump_arch=sparc ;;
2927 *86* ) dynodump_arch=i386 ;;
2928 powerpc ) dynodump_arch=ppc ;;
2930 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
2934 test "$machine$opsys" = "powerpclinux" && start_flags="-T $srcdir/src/ppc.ldscript"
2936 if test "$unexec" = "unexaix.o"; then
2937 if test "$dynamic" = "no"; then
2938 start_flags="-Wl,-bnso,-bnodelcsect"
2939 test "$GCC" = "yes" && start_flags="-B/bin/ ${start_flags}"
2940 for f in "/lib/syscalls.exp" "/lib/threads.exp"; do
2941 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; fi
2943 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do
2944 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi
2947 echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6
2948 echo "configure:2949: checking for terminateAndUnload in -lC" >&5
2949 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'`
2951 xe_check_libs=" -lC "
2952 cat > conftest.$ac_ext <<EOF
2953 #line 2954 "configure"
2954 #include "confdefs.h"
2955 /* Override any gcc2 internal prototype to avoid an error. */
2956 /* We use char because int might match the return type of a gcc2
2957 builtin and then its argument prototype would still apply. */
2958 char terminateAndUnload();
2961 terminateAndUnload()
2964 if { (eval echo configure:2965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2966 eval "ac_cv_lib_$ac_lib_var=yes"
2968 echo "configure: failed program was:" >&5
2969 cat conftest.$ac_ext >&5
2971 eval "ac_cv_lib_$ac_lib_var=no"
2976 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
2977 echo "$ac_t""yes" 1>&6
2978 libs_system="$libs_system -lC" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lC\" to \$libs_system"; fi
2980 echo "$ac_t""no" 1>&6
2985 elif test -n "$ld_text_start_addr"; then
2986 start_flags="-T $ld_text_start_addr -e __start"
2992 if test "$ordinary_link" = "no" -a "$GCC" = "yes"; then
2993 test -z "$linker" && linker='$(CC) -nostdlib'
2994 test -z "$lib_gcc" && lib_gcc='`$(CC) -print-libgcc-file-name`'
2996 test "$GCC" != "yes" && lib_gcc=
3002 case "$site_libraries" in *:* ) site_libraries="`echo '' $site_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
3003 if test -n "$site_libraries"; then
3004 for arg in $site_libraries; do
3007 * ) test -d "$arg" || \
3008 { echo "Error:" "Invalid site library \`$arg': no such directory" >&2; exit 1; }
3011 ld_switch_site="$ld_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$ld_switch_site"; fi
3015 case "$site_includes" in *:* ) site_includes="`echo '' $site_includes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
3016 if test -n "$site_includes"; then
3017 for arg in $site_includes; do
3020 * ) test -d "$arg" || \
3021 { echo "Error:" "Invalid site include \`$arg': no such directory" >&2; exit 1; }
3024 c_switch_site="$c_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$c_switch_site"; fi
3028 case "$site_prefixes" in *:* ) site_prefixes="`echo '' $site_prefixes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
3029 if test -n "$site_prefixes"; then
3030 for dir in $site_prefixes; do
3031 lib_dir="${dir}/lib"
3032 inc_dir="${dir}/include"
3033 if test ! -d "$dir"; then
3034 { echo "Error:" "Invalid site prefix \`$dir': no such directory" >&2; exit 1; }
3035 elif test ! -d "$lib_dir"; then
3036 { echo "Error:" "Invalid site prefix \`$dir': no such directory \`$lib_dir'" >&2; exit 1; }
3038 if test -d "$inc_dir"; then
3039 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
3041 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
3047 for dir in "/usr/ccs/lib"; do
3048 test -d "$dir" && ld_switch_system="$ld_switch_system -L${dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L${dir}\" to \$ld_switch_system"; fi
3051 case "$site_runtime_libraries" in *:* ) site_runtime_libraries="`echo '' $site_runtime_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
3052 if test -n "$site_runtime_libraries"; then
3053 LD_RUN_PATH="`echo $site_runtime_libraries | sed -e 's/ */:/g'`"
3061 if test -n "$add_runtime_path"; then :;
3062 elif test "$dynamic" = "no"; then add_runtime_path=no
3063 elif test -n "$LD_RUN_PATH"; then add_runtime_path=yes
3064 else case "$opsys" in
3065 sol2 | irix* | *bsd* | decosf* ) add_runtime_path=yes ;;
3066 * ) add_runtime_path=no ;;
3070 if test "$add_runtime_path" = "yes"; then
3071 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6
3072 echo "configure:3073: checking "for runtime libraries flag"" >&5
3074 sol2 ) dash_r="-R" ;;
3075 decosf* | linux* | irix*) dash_r="-rpath " ;;
3078 for try_dash_r in "-R" "-R " "-rpath "; do
3079 xe_check_libs="${try_dash_r}/no/such/file-or-directory"
3081 if test "$GCC" = "yes"; then
3082 set x $xe_check_libs; shift; xe_check_libs=""
3083 while test -n "$1"; do
3085 -L | -l | -u ) xe_check_libs="$xe_check_libs $1 $2"; shift ;;
3086 -L* | -l* | -u* | -Wl* | -pg ) xe_check_libs="$xe_check_libs $1" ;;
3088 * ) xe_check_libs="$xe_check_libs -Xlinker $1" ;;
3093 cat > conftest.$ac_ext <<EOF
3094 #line 3095 "configure"
3095 #include "confdefs.h"
3101 if { (eval echo configure:3102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3103 dash_r="$try_dash_r"
3105 echo "configure: failed program was:" >&5
3106 cat conftest.$ac_ext >&5
3110 test -n "$dash_r" && break
3113 if test -n "$dash_r";
3114 then echo "$ac_t"""\"${dash_r}\""" 1>&6
3115 else echo "$ac_t""NONE" 1>&6
3119 xe_add_unique_runpath_dir='
3121 for xe_dir in $runpath_dirs; do test "$xe_dir" = "$xe_runpath_dir" && xe_add_p=no
3123 if test "$xe_add_p" = "yes"; then
3124 test -n "$runpath" && runpath="${runpath}:"
3125 runpath="${runpath}${xe_runpath_dir}"
3126 runpath_dirs="$runpath_dirs $xe_runpath_dir"
3132 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
3133 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
3134 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
3136 runpath="" runpath_dirs=""
3137 if test -n "$LD_RUN_PATH"; then
3138 runpath="$LD_RUN_PATH"
3139 elif test "$GCC" = "yes"; then
3140 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
3141 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
3142 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
3143 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
3144 case "$arg" in P,* | -L* | -R* )
3145 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
3147 xe_runpath_dir="$dir"
3148 test "$xe_runpath_dir" != "/lib" -a \
3149 "$xe_runpath_dir" != "/usr/lib" -a \
3150 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
3151 eval "$xe_add_unique_runpath_dir"
3156 ld_switch_run="$ld_switch_run_save"
3159 for arg in $ld_switch_site $ld_switch_x_site; do
3160 case "$arg" in -L*) {
3161 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
3162 test "$xe_runpath_dir" != "/lib" -a \
3163 "$xe_runpath_dir" != "/usr/lib" -a \
3164 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
3165 eval "$xe_add_unique_runpath_dir"
3168 if test "$opsys $need_motif" = "sol2 yes"; then
3169 xe_runpath_dir="/opt/SUNWdt/lib";
3170 eval "$xe_add_unique_runpath_dir";
3173 if test -n "$runpath"; then
3174 ld_switch_run="${dash_r}${runpath}"
3176 if test "$GCC" = "yes"; then
3177 set x $ld_switch_run; shift; ld_switch_run=""
3178 while test -n "$1"; do
3180 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
3181 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
3183 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
3188 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
3195 if test "$with_dlmalloc" != "no"; then
3200 after_morecore_hook_exists=yes
3201 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
3202 echo "configure:3203: checking for malloc_set_state" >&5
3204 cat > conftest.$ac_ext <<EOF
3205 #line 3206 "configure"
3206 #include "confdefs.h"
3207 /* System header to define __stub macros and hopefully few prototypes,
3208 which can conflict with char malloc_set_state(); below. */
3210 /* Override any gcc2 internal prototype to avoid an error. */
3211 /* We use char because int might match the return type of a gcc2
3212 builtin and then its argument prototype would still apply. */
3213 char malloc_set_state();
3217 /* The GNU C library defines this for functions which it implements
3218 to always fail with ENOSYS. Some functions are actually named
3219 something starting with __ and the normal name is an alias. */
3220 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
3228 if { (eval echo configure:3229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3230 eval "ac_cv_func_malloc_set_state=yes"
3232 echo "configure: failed program was:" >&5
3233 cat conftest.$ac_ext >&5
3235 eval "ac_cv_func_malloc_set_state=no"
3239 if eval "test \"`echo '$ac_cv_func_'malloc_set_state`\" = yes"; then
3240 echo "$ac_t""yes" 1>&6
3243 echo "$ac_t""no" 1>&6
3247 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
3248 echo "configure:3249: checking whether __after_morecore_hook exists" >&5
3249 cat > conftest.$ac_ext <<EOF
3250 #line 3251 "configure"
3251 #include "confdefs.h"
3252 extern void (* __after_morecore_hook)();
3254 __after_morecore_hook = 0
3257 if { (eval echo configure:3258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3259 echo "$ac_t""yes" 1>&6
3261 echo "configure: failed program was:" >&5
3262 cat conftest.$ac_ext >&5
3264 echo "$ac_t""no" 1>&6
3265 after_morecore_hook_exists=no
3268 if test "$system_malloc" = "yes" ; then
3271 - The GNU allocators don't work with this system configuration."
3272 elif test "$with_system_malloc" = "yes" ; then
3275 - User chose not to use GNU allocators."
3276 elif test "$with_debug_malloc" = "yes" ; then
3279 - User chose to use Debugging Malloc."
3282 if test "$doug_lea_malloc" = "yes" -a "$GNU_MALLOC" = "yes" ; then
3284 - Using Doug Lea's new malloc from the GNU C Library."
3285 { test "$extra_verbose" = "yes" && cat << \EOF
3286 Defining DOUG_LEA_MALLOC
3288 cat >> confdefs.h <<\EOF
3289 #define DOUG_LEA_MALLOC 1
3293 if test "$after_morecore_hook_exists" = "no" ; then
3295 - Using Doug Lea's new malloc from the Linux C Library."
3296 { test "$extra_verbose" = "yes" && cat << \EOF
3297 Defining _NO_MALLOC_WARNING_
3299 cat >> confdefs.h <<\EOF
3300 #define _NO_MALLOC_WARNING_ 1
3310 # Extract the first word of "ranlib", so it can be a program name with args.
3311 set dummy ranlib; ac_word=$2
3312 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3313 echo "configure:3314: checking for $ac_word" >&5
3315 if test -n "$RANLIB"; then
3316 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3318 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3320 for ac_dir in $ac_dummy; do
3321 test -z "$ac_dir" && ac_dir=.
3322 if test -f $ac_dir/$ac_word; then
3323 ac_cv_prog_RANLIB="ranlib"
3328 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
3330 RANLIB="$ac_cv_prog_RANLIB"
3331 if test -n "$RANLIB"; then
3332 echo "$ac_t""$RANLIB" 1>&6
3334 echo "$ac_t""no" 1>&6
3338 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3339 if test -f $ac_dir/install-sh; then
3341 ac_install_sh="$ac_aux_dir/install-sh -c"
3343 elif test -f $ac_dir/install.sh; then
3345 ac_install_sh="$ac_aux_dir/install.sh -c"
3349 if test -z "$ac_aux_dir"; then
3350 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
3352 ac_config_guess=$ac_aux_dir/config.guess
3353 ac_config_sub=$ac_aux_dir/config.sub
3354 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
3356 # Find a good install program. We prefer a C program (faster),
3357 # so one script is as good as another. But avoid the broken or
3358 # incompatible versions:
3359 # SysV /etc/install, /usr/sbin/install
3360 # SunOS /usr/etc/install
3361 # IRIX /sbin/install
3363 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3364 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3365 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3366 # ./install, which can be erroneously created by make from ./install.sh.
3367 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3368 echo "configure:3369: checking for a BSD compatible install" >&5
3369 if test -z "$INSTALL"; then
3371 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3372 for ac_dir in $PATH; do
3373 # Account for people who put trailing slashes in PATH elements.
3375 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3377 # OSF1 and SCO ODT 3.0 have their own names for install.
3378 # Don't use installbsd from OSF since it installs stuff as root
3380 for ac_prog in ginstall scoinst install; do
3381 if test -f $ac_dir/$ac_prog; then
3382 if test $ac_prog = install &&
3383 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3384 # AIX install. It has an incompatible calling convention.
3387 ac_cv_path_install="$ac_dir/$ac_prog -c"
3397 if test "${ac_cv_path_install+set}" = set; then
3398 INSTALL="$ac_cv_path_install"
3400 # As a last resort, use the slow shell script. We don't cache a
3401 # path for INSTALL within a source directory, because that will
3402 # break other packages using the cache if that directory is
3403 # removed, or if the path is relative.
3404 INSTALL="$ac_install_sh"
3407 echo "$ac_t""$INSTALL" 1>&6
3409 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3410 # It thinks the first close brace ends the variable substitution.
3411 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3413 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3415 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3417 for ac_prog in 'bison -y' byacc
3419 # Extract the first word of "$ac_prog", so it can be a program name with args.
3420 set dummy $ac_prog; ac_word=$2
3421 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3422 echo "configure:3423: checking for $ac_word" >&5
3424 if test -n "$YACC"; then
3425 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3427 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3429 for ac_dir in $ac_dummy; do
3430 test -z "$ac_dir" && ac_dir=.
3431 if test -f $ac_dir/$ac_word; then
3432 ac_cv_prog_YACC="$ac_prog"
3438 YACC="$ac_cv_prog_YACC"
3439 if test -n "$YACC"; then
3440 echo "$ac_t""$YACC" 1>&6
3442 echo "$ac_t""no" 1>&6
3445 test -n "$YACC" && break
3447 test -n "$YACC" || YACC="yacc"
3450 for ac_hdr in a.out.h elf.h cygwin/version.h fcntl.h inttypes.h libgen.h locale.h mach/mach.h sys/param.h sys/pstat.h sys/time.h sys/timeb.h sys/un.h ulimit.h unistd.h
3452 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3453 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3454 echo "configure:3455: checking for $ac_hdr" >&5
3456 cat > conftest.$ac_ext <<EOF
3457 #line 3458 "configure"
3458 #include "confdefs.h"
3461 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3462 { (eval echo configure:3463: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3463 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3464 if test -z "$ac_err"; then
3466 eval "ac_cv_header_$ac_safe=yes"
3469 echo "configure: failed program was:" >&5
3470 cat conftest.$ac_ext >&5
3472 eval "ac_cv_header_$ac_safe=no"
3475 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3476 echo "$ac_t""yes" 1>&6
3477 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3478 { test "$extra_verbose" = "yes" && cat << EOF
3481 cat >> confdefs.h <<EOF
3482 #define $ac_tr_hdr 1
3487 echo "$ac_t""no" 1>&6
3491 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
3492 echo "configure:3493: checking for sys/wait.h that is POSIX.1 compatible" >&5
3494 cat > conftest.$ac_ext <<EOF
3495 #line 3496 "configure"
3496 #include "confdefs.h"
3497 #include <sys/types.h>
3498 #include <sys/wait.h>
3500 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3503 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3508 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3511 if { (eval echo configure:3512: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3513 ac_cv_header_sys_wait_h=yes
3515 echo "configure: failed program was:" >&5
3516 cat conftest.$ac_ext >&5
3518 ac_cv_header_sys_wait_h=no
3522 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
3523 if test $ac_cv_header_sys_wait_h = yes; then
3524 { test "$extra_verbose" = "yes" && cat << \EOF
3525 Defining HAVE_SYS_WAIT_H
3527 cat >> confdefs.h <<\EOF
3528 #define HAVE_SYS_WAIT_H 1
3534 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3535 echo "configure:3536: checking for ANSI C header files" >&5
3537 cat > conftest.$ac_ext <<EOF
3538 #line 3539 "configure"
3539 #include "confdefs.h"
3545 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3546 { (eval echo configure:3547: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3547 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3548 if test -z "$ac_err"; then
3550 ac_cv_header_stdc=yes
3553 echo "configure: failed program was:" >&5
3554 cat conftest.$ac_ext >&5
3556 ac_cv_header_stdc=no
3560 if test $ac_cv_header_stdc = yes; then
3561 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3562 cat > conftest.$ac_ext <<EOF
3563 #line 3564 "configure"
3564 #include "confdefs.h"
3567 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3568 egrep "memchr" >/dev/null 2>&1; then
3572 ac_cv_header_stdc=no
3578 if test $ac_cv_header_stdc = yes; then
3579 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3580 cat > conftest.$ac_ext <<EOF
3581 #line 3582 "configure"
3582 #include "confdefs.h"
3585 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3586 egrep "free" >/dev/null 2>&1; then
3590 ac_cv_header_stdc=no
3596 if test $ac_cv_header_stdc = yes; then
3597 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3598 cat > conftest.$ac_ext <<EOF
3599 #line 3600 "configure"
3600 #include "confdefs.h"
3602 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3603 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3604 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3605 int main () { int i; for (i = 0; i < 256; i++)
3606 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3610 if { (eval echo configure:3611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
3615 echo "configure: failed program was:" >&5
3616 cat conftest.$ac_ext >&5
3618 ac_cv_header_stdc=no
3623 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3624 if test $ac_cv_header_stdc = yes; then
3625 { test "$extra_verbose" = "yes" && cat << \EOF
3626 Defining STDC_HEADERS
3628 cat >> confdefs.h <<\EOF
3629 #define STDC_HEADERS 1
3635 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3636 echo "configure:3637: checking whether time.h and sys/time.h may both be included" >&5
3638 cat > conftest.$ac_ext <<EOF
3639 #line 3640 "configure"
3640 #include "confdefs.h"
3641 #include <sys/types.h>
3642 #include <sys/time.h>
3648 if { (eval echo configure:3649: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3650 ac_cv_header_time=yes
3652 echo "configure: failed program was:" >&5
3653 cat conftest.$ac_ext >&5
3655 ac_cv_header_time=no
3659 echo "$ac_t""$ac_cv_header_time" 1>&6
3660 if test $ac_cv_header_time = yes; then
3661 { test "$extra_verbose" = "yes" && cat << \EOF
3662 Defining TIME_WITH_SYS_TIME
3664 cat >> confdefs.h <<\EOF
3665 #define TIME_WITH_SYS_TIME 1
3671 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
3672 echo "configure:3673: checking for sys_siglist declaration in signal.h or unistd.h" >&5
3674 cat > conftest.$ac_ext <<EOF
3675 #line 3676 "configure"
3676 #include "confdefs.h"
3677 #include <sys/types.h>
3679 /* NetBSD declares sys_siglist in unistd.h. */
3680 #ifdef HAVE_UNISTD_H
3684 char *msg = *(sys_siglist + 1);
3687 if { (eval echo configure:3688: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3689 ac_cv_decl_sys_siglist=yes
3691 echo "configure: failed program was:" >&5
3692 cat conftest.$ac_ext >&5
3694 ac_cv_decl_sys_siglist=no
3698 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
3699 if test $ac_cv_decl_sys_siglist = yes; then
3700 { test "$extra_verbose" = "yes" && cat << \EOF
3701 Defining SYS_SIGLIST_DECLARED
3703 cat >> confdefs.h <<\EOF
3704 #define SYS_SIGLIST_DECLARED 1
3712 echo $ac_n "checking for utime""... $ac_c" 1>&6
3713 echo "configure:3714: checking for utime" >&5
3714 cat > conftest.$ac_ext <<EOF
3715 #line 3716 "configure"
3716 #include "confdefs.h"
3717 #include <sys/types.h>
3720 struct utimbuf x; x.actime = x.modtime = 0; utime ("/", &x);
3723 if { (eval echo configure:3724: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3725 echo "$ac_t""yes" 1>&6
3726 { test "$extra_verbose" = "yes" && cat << \EOF
3729 cat >> confdefs.h <<\EOF
3730 #define HAVE_UTIME 1
3735 echo "configure: failed program was:" >&5
3736 cat conftest.$ac_ext >&5
3738 echo "$ac_t""no" 1>&6
3739 for ac_func in utimes
3741 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3742 echo "configure:3743: checking for $ac_func" >&5
3744 cat > conftest.$ac_ext <<EOF
3745 #line 3746 "configure"
3746 #include "confdefs.h"
3747 /* System header to define __stub macros and hopefully few prototypes,
3748 which can conflict with char $ac_func(); below. */
3750 /* Override any gcc2 internal prototype to avoid an error. */
3751 /* We use char because int might match the return type of a gcc2
3752 builtin and then its argument prototype would still apply. */
3757 /* The GNU C library defines this for functions which it implements
3758 to always fail with ENOSYS. Some functions are actually named
3759 something starting with __ and the normal name is an alias. */
3760 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3768 if { (eval echo configure:3769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3770 eval "ac_cv_func_$ac_func=yes"
3772 echo "configure: failed program was:" >&5
3773 cat conftest.$ac_ext >&5
3775 eval "ac_cv_func_$ac_func=no"
3779 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3780 echo "$ac_t""yes" 1>&6
3781 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3782 { test "$extra_verbose" = "yes" && cat << EOF
3783 Defining $ac_tr_func
3785 cat >> confdefs.h <<EOF
3786 #define $ac_tr_func 1
3791 echo "$ac_t""no" 1>&6
3799 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3800 echo "configure:3801: checking return type of signal handlers" >&5
3802 cat > conftest.$ac_ext <<EOF
3803 #line 3804 "configure"
3804 #include "confdefs.h"
3805 #include <sys/types.h>
3811 extern "C" void (*signal (int, void (*)(int)))(int);
3813 void (*signal ()) ();
3820 if { (eval echo configure:3821: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3822 ac_cv_type_signal=void
3824 echo "configure: failed program was:" >&5
3825 cat conftest.$ac_ext >&5
3827 ac_cv_type_signal=int
3831 echo "$ac_t""$ac_cv_type_signal" 1>&6
3832 { test "$extra_verbose" = "yes" && cat << EOF
3833 Defining RETSIGTYPE = $ac_cv_type_signal
3835 cat >> confdefs.h <<EOF
3836 #define RETSIGTYPE $ac_cv_type_signal
3841 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3842 echo "configure:3843: checking for size_t" >&5
3844 cat > conftest.$ac_ext <<EOF
3845 #line 3846 "configure"
3846 #include "confdefs.h"
3847 #include <sys/types.h>
3853 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3854 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3856 ac_cv_type_size_t=yes
3859 ac_cv_type_size_t=no
3863 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3864 if test $ac_cv_type_size_t = no; then
3865 { test "$extra_verbose" = "yes" && cat << \EOF
3866 Defining size_t = unsigned
3868 cat >> confdefs.h <<\EOF
3869 #define size_t unsigned
3875 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3876 echo "configure:3877: checking for pid_t" >&5
3878 cat > conftest.$ac_ext <<EOF
3879 #line 3880 "configure"
3880 #include "confdefs.h"
3881 #include <sys/types.h>
3887 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3888 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3890 ac_cv_type_pid_t=yes
3897 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3898 if test $ac_cv_type_pid_t = no; then
3899 { test "$extra_verbose" = "yes" && cat << \EOF
3900 Defining pid_t = int
3902 cat >> confdefs.h <<\EOF
3909 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3910 echo "configure:3911: checking for uid_t in sys/types.h" >&5
3912 cat > conftest.$ac_ext <<EOF
3913 #line 3914 "configure"
3914 #include "confdefs.h"
3915 #include <sys/types.h>
3917 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3918 egrep "uid_t" >/dev/null 2>&1; then
3920 ac_cv_type_uid_t=yes
3928 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3929 if test $ac_cv_type_uid_t = no; then
3930 { test "$extra_verbose" = "yes" && cat << \EOF
3931 Defining uid_t = int
3933 cat >> confdefs.h <<\EOF
3938 { test "$extra_verbose" = "yes" && cat << \EOF
3939 Defining gid_t = int
3941 cat >> confdefs.h <<\EOF
3948 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3949 echo "configure:3950: checking for mode_t" >&5
3951 cat > conftest.$ac_ext <<EOF
3952 #line 3953 "configure"
3953 #include "confdefs.h"
3954 #include <sys/types.h>
3960 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3961 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3963 ac_cv_type_mode_t=yes
3966 ac_cv_type_mode_t=no
3970 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3971 if test $ac_cv_type_mode_t = no; then
3972 { test "$extra_verbose" = "yes" && cat << \EOF
3973 Defining mode_t = int
3975 cat >> confdefs.h <<\EOF
3982 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3983 echo "configure:3984: checking for off_t" >&5
3985 cat > conftest.$ac_ext <<EOF
3986 #line 3987 "configure"
3987 #include "confdefs.h"
3988 #include <sys/types.h>
3994 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3995 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3997 ac_cv_type_off_t=yes
4004 echo "$ac_t""$ac_cv_type_off_t" 1>&6
4005 if test $ac_cv_type_off_t = no; then
4006 { test "$extra_verbose" = "yes" && cat << \EOF
4007 Defining off_t = long
4009 cat >> confdefs.h <<\EOF
4016 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
4017 echo "configure:4018: checking for ssize_t" >&5
4019 cat > conftest.$ac_ext <<EOF
4020 #line 4021 "configure"
4021 #include "confdefs.h"
4022 #include <sys/types.h>
4028 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4029 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4031 ac_cv_type_ssize_t=yes
4034 ac_cv_type_ssize_t=no
4038 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
4039 if test $ac_cv_type_ssize_t = no; then
4040 { test "$extra_verbose" = "yes" && cat << \EOF
4041 Defining ssize_t = int
4043 cat >> confdefs.h <<\EOF
4051 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
4052 echo "configure:4053: checking for socklen_t" >&5
4053 cat > conftest.$ac_ext <<EOF
4054 #line 4055 "configure"
4055 #include "confdefs.h"
4056 #include <sys/socket.h>
4063 if { (eval echo configure:4064: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4065 echo "$ac_t""yes" 1>&6
4067 echo "configure: failed program was:" >&5
4068 cat conftest.$ac_ext >&5
4071 cat > conftest.$ac_ext <<EOF
4072 #line 4073 "configure"
4073 #include "confdefs.h"
4074 #include <sys/socket.h>
4075 int accept (int, struct sockaddr *, size_t *);
4081 if { (eval echo configure:4082: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4084 echo "$ac_t""size_t" 1>&6
4085 { test "$extra_verbose" = "yes" && cat << \EOF
4086 Defining socklen_t = size_t
4088 cat >> confdefs.h <<\EOF
4089 #define socklen_t size_t
4094 echo "configure: failed program was:" >&5
4095 cat conftest.$ac_ext >&5
4098 echo "$ac_t""int" 1>&6
4099 { test "$extra_verbose" = "yes" && cat << \EOF
4100 Defining socklen_t = int
4102 cat >> confdefs.h <<\EOF
4103 #define socklen_t int
4112 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
4113 echo "configure:4114: checking for struct timeval" >&5
4114 cat > conftest.$ac_ext <<EOF
4115 #line 4116 "configure"
4116 #include "confdefs.h"
4117 #ifdef TIME_WITH_SYS_TIME
4118 #include <sys/time.h>
4121 #ifdef HAVE_SYS_TIME_H
4122 #include <sys/time.h>
4128 static struct timeval x; x.tv_sec = x.tv_usec;
4131 if { (eval echo configure:4132: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4133 echo "$ac_t""yes" 1>&6
4135 { test "$extra_verbose" = "yes" && cat << \EOF
4136 Defining HAVE_TIMEVAL
4138 cat >> confdefs.h <<\EOF
4139 #define HAVE_TIMEVAL 1
4144 echo "configure: failed program was:" >&5
4145 cat conftest.$ac_ext >&5
4147 echo "$ac_t""no" 1>&6
4152 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
4153 echo "configure:4154: checking whether struct tm is in sys/time.h or time.h" >&5
4155 cat > conftest.$ac_ext <<EOF
4156 #line 4157 "configure"
4157 #include "confdefs.h"
4158 #include <sys/types.h>
4161 struct tm *tp; tp->tm_sec;
4164 if { (eval echo configure:4165: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4166 ac_cv_struct_tm=time.h
4168 echo "configure: failed program was:" >&5
4169 cat conftest.$ac_ext >&5
4171 ac_cv_struct_tm=sys/time.h
4175 echo "$ac_t""$ac_cv_struct_tm" 1>&6
4176 if test $ac_cv_struct_tm = sys/time.h; then
4177 { test "$extra_verbose" = "yes" && cat << \EOF
4178 Defining TM_IN_SYS_TIME
4180 cat >> confdefs.h <<\EOF
4181 #define TM_IN_SYS_TIME 1
4187 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
4188 echo "configure:4189: checking for tm_zone in struct tm" >&5
4190 cat > conftest.$ac_ext <<EOF
4191 #line 4192 "configure"
4192 #include "confdefs.h"
4193 #include <sys/types.h>
4194 #include <$ac_cv_struct_tm>
4196 struct tm tm; tm.tm_zone;
4199 if { (eval echo configure:4200: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4201 ac_cv_struct_tm_zone=yes
4203 echo "configure: failed program was:" >&5
4204 cat conftest.$ac_ext >&5
4206 ac_cv_struct_tm_zone=no
4210 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
4211 if test "$ac_cv_struct_tm_zone" = yes; then
4212 { test "$extra_verbose" = "yes" && cat << \EOF
4213 Defining HAVE_TM_ZONE
4215 cat >> confdefs.h <<\EOF
4216 #define HAVE_TM_ZONE 1
4221 echo $ac_n "checking for tzname""... $ac_c" 1>&6
4222 echo "configure:4223: checking for tzname" >&5
4224 cat > conftest.$ac_ext <<EOF
4225 #line 4226 "configure"
4226 #include "confdefs.h"
4228 #ifndef tzname /* For SGI. */
4229 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4235 if { (eval echo configure:4236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4237 ac_cv_var_tzname=yes
4239 echo "configure: failed program was:" >&5
4240 cat conftest.$ac_ext >&5
4246 echo "$ac_t""$ac_cv_var_tzname" 1>&6
4247 if test $ac_cv_var_tzname = yes; then
4248 { test "$extra_verbose" = "yes" && cat << \EOF
4249 Defining HAVE_TZNAME
4251 cat >> confdefs.h <<\EOF
4252 #define HAVE_TZNAME 1
4260 echo $ac_n "checking for working const""... $ac_c" 1>&6
4261 echo "configure:4262: checking for working const" >&5
4263 cat > conftest.$ac_ext <<EOF
4264 #line 4265 "configure"
4265 #include "confdefs.h"
4269 /* Ultrix mips cc rejects this. */
4270 typedef int charset[2]; const charset x;
4271 /* SunOS 4.1.1 cc rejects this. */
4272 char const *const *ccp;
4274 /* NEC SVR4.0.2 mips cc rejects this. */
4275 struct point {int x, y;};
4276 static struct point const zero = {0,0};
4277 /* AIX XL C 1.02.0.0 rejects this.
4278 It does not let you subtract one const X* pointer from another in an arm
4279 of an if-expression whose if-part is not a constant expression */
4280 const char *g = "string";
4281 ccp = &g + (g ? g-g : 0);
4282 /* HPUX 7.0 cc rejects these. */
4285 ccp = (char const *const *) p;
4286 { /* SCO 3.2v4 cc rejects this. */
4288 char const *s = 0 ? (char *) 0 : (char const *) 0;
4292 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4294 const int *foo = &x[0];
4297 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4298 typedef const int *iptr;
4302 { /* AIX XL C 1.02.0.0 rejects this saying
4303 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4304 struct s { int j; const int *ap[3]; };
4305 struct s *b; b->j = 5;
4307 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4313 if { (eval echo configure:4314: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4317 echo "configure: failed program was:" >&5
4318 cat conftest.$ac_ext >&5
4324 echo "$ac_t""$ac_cv_c_const" 1>&6
4325 if test $ac_cv_c_const = no; then
4326 { test "$extra_verbose" = "yes" && cat << \EOF
4329 cat >> confdefs.h <<\EOF
4337 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
4338 echo "configure:4339: checking whether ${MAKE-make} sets \${MAKE}" >&5
4339 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
4341 cat > conftestmake <<\EOF
4343 @echo 'ac_maketemp="${MAKE}"'
4345 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4346 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
4347 if test -n "$ac_maketemp"; then
4348 eval ac_cv_prog_make_${ac_make}_set=yes
4350 eval ac_cv_prog_make_${ac_make}_set=no
4353 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4354 echo "$ac_t""yes" 1>&6
4357 echo "$ac_t""no" 1>&6
4358 SET_MAKE="MAKE=${MAKE-make}"
4362 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
4363 echo "configure:4364: checking whether byte ordering is bigendian" >&5
4365 ac_cv_c_bigendian=unknown
4366 # See if sys/param.h defines the BYTE_ORDER macro.
4367 cat > conftest.$ac_ext <<EOF
4368 #line 4369 "configure"
4369 #include "confdefs.h"
4370 #include <sys/types.h>
4371 #include <sys/param.h>
4374 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4379 if { (eval echo configure:4380: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4381 # It does; now see whether it defined to BIG_ENDIAN or not.
4382 cat > conftest.$ac_ext <<EOF
4383 #line 4384 "configure"
4384 #include "confdefs.h"
4385 #include <sys/types.h>
4386 #include <sys/param.h>
4389 #if BYTE_ORDER != BIG_ENDIAN
4394 if { (eval echo configure:4395: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4396 ac_cv_c_bigendian=yes
4398 echo "configure: failed program was:" >&5
4399 cat conftest.$ac_ext >&5
4401 ac_cv_c_bigendian=no
4405 echo "configure: failed program was:" >&5
4406 cat conftest.$ac_ext >&5
4409 if test $ac_cv_c_bigendian = unknown; then
4410 cat > conftest.$ac_ext <<EOF
4411 #line 4412 "configure"
4412 #include "confdefs.h"
4414 /* Are we little or big endian? From Harbison&Steele. */
4418 char c[sizeof (long)];
4421 exit (u.c[sizeof (long) - 1] == 1);
4424 if { (eval echo configure:4425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4426 ac_cv_c_bigendian=no
4429 echo "configure: failed program was:" >&5
4430 cat conftest.$ac_ext >&5
4432 ac_cv_c_bigendian=yes
4437 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
4438 if test $ac_cv_c_bigendian = yes; then
4439 { test "$extra_verbose" = "yes" && cat << \EOF
4440 Defining WORDS_BIGENDIAN
4442 cat >> confdefs.h <<\EOF
4443 #define WORDS_BIGENDIAN 1
4450 echo $ac_n "checking size of short""... $ac_c" 1>&6
4451 echo "configure:4452: checking size of short" >&5
4453 cat > conftest.$ac_ext <<EOF
4454 #line 4455 "configure"
4455 #include "confdefs.h"
4457 #include <sys/types.h>
4460 FILE *f=fopen("conftestval", "w");
4462 fprintf(f, "%d\n", sizeof(short));
4466 if { (eval echo configure:4467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4468 ac_cv_sizeof_short=`cat conftestval`
4471 echo "configure: failed program was:" >&5
4472 cat conftest.$ac_ext >&5
4474 ac_cv_sizeof_short=0
4477 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
4478 { test "$extra_verbose" = "yes" && cat << EOF
4479 Defining SIZEOF_SHORT = $ac_cv_sizeof_short
4481 cat >> confdefs.h <<EOF
4482 #define SIZEOF_SHORT $ac_cv_sizeof_short
4487 if test "$ac_cv_sizeof_short" = 0; then
4489 echo "*** PANIC *** Configure tests are not working - compiler is broken."
4490 echo "*** PANIC *** Please examine config.log for compilation errors."
4493 echo $ac_n "checking size of int""... $ac_c" 1>&6
4494 echo "configure:4495: checking size of int" >&5
4496 cat > conftest.$ac_ext <<EOF
4497 #line 4498 "configure"
4498 #include "confdefs.h"
4500 #include <sys/types.h>
4503 FILE *f=fopen("conftestval", "w");
4505 fprintf(f, "%d\n", sizeof(int));
4509 if { (eval echo configure:4510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4511 ac_cv_sizeof_int=`cat conftestval`
4514 echo "configure: failed program was:" >&5
4515 cat conftest.$ac_ext >&5
4520 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
4521 { test "$extra_verbose" = "yes" && cat << EOF
4522 Defining SIZEOF_INT = $ac_cv_sizeof_int
4524 cat >> confdefs.h <<EOF
4525 #define SIZEOF_INT $ac_cv_sizeof_int
4530 echo $ac_n "checking size of long""... $ac_c" 1>&6
4531 echo "configure:4532: checking size of long" >&5
4533 cat > conftest.$ac_ext <<EOF
4534 #line 4535 "configure"
4535 #include "confdefs.h"
4537 #include <sys/types.h>
4540 FILE *f=fopen("conftestval", "w");
4542 fprintf(f, "%d\n", sizeof(long));
4546 if { (eval echo configure:4547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4548 ac_cv_sizeof_long=`cat conftestval`
4551 echo "configure: failed program was:" >&5
4552 cat conftest.$ac_ext >&5
4557 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
4558 { test "$extra_verbose" = "yes" && cat << EOF
4559 Defining SIZEOF_LONG = $ac_cv_sizeof_long
4561 cat >> confdefs.h <<EOF
4562 #define SIZEOF_LONG $ac_cv_sizeof_long
4567 echo $ac_n "checking size of long long""... $ac_c" 1>&6
4568 echo "configure:4569: checking size of long long" >&5
4570 cat > conftest.$ac_ext <<EOF
4571 #line 4572 "configure"
4572 #include "confdefs.h"
4574 #include <sys/types.h>
4577 FILE *f=fopen("conftestval", "w");
4579 fprintf(f, "%d\n", sizeof(long long));
4583 if { (eval echo configure:4584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4585 ac_cv_sizeof_long_long=`cat conftestval`
4588 echo "configure: failed program was:" >&5
4589 cat conftest.$ac_ext >&5
4591 ac_cv_sizeof_long_long=0
4594 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
4595 { test "$extra_verbose" = "yes" && cat << EOF
4596 Defining SIZEOF_LONG_LONG = $ac_cv_sizeof_long_long
4598 cat >> confdefs.h <<EOF
4599 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4604 echo $ac_n "checking size of void *""... $ac_c" 1>&6
4605 echo "configure:4606: checking size of void *" >&5
4607 cat > conftest.$ac_ext <<EOF
4608 #line 4609 "configure"
4609 #include "confdefs.h"
4611 #include <sys/types.h>
4614 FILE *f=fopen("conftestval", "w");
4616 fprintf(f, "%d\n", sizeof(void *));
4620 if { (eval echo configure:4621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4622 ac_cv_sizeof_void_p=`cat conftestval`
4625 echo "configure: failed program was:" >&5
4626 cat conftest.$ac_ext >&5
4628 ac_cv_sizeof_void_p=0
4631 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
4632 { test "$extra_verbose" = "yes" && cat << EOF
4633 Defining SIZEOF_VOID_P = $ac_cv_sizeof_void_p
4635 cat >> confdefs.h <<EOF
4636 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4642 echo $ac_n "checking for long file names""... $ac_c" 1>&6
4643 echo "configure:4644: checking for long file names" >&5
4645 ac_cv_sys_long_file_names=yes
4646 # Test for long file names in all the places we know might matter:
4647 # . the current directory, where building will happen
4648 # $prefix/lib where we will be installing things
4649 # $exec_prefix/lib likewise
4650 # eval it to expand exec_prefix.
4651 # $TMPDIR if set, where it might want to write temporary files
4652 # if $TMPDIR is not set:
4653 # /tmp where it might want to write temporary files
4656 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
4657 ac_tmpdirs="$TMPDIR"
4659 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
4661 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
4662 test -d $ac_dir || continue
4663 test -w $ac_dir || continue # It is less confusing to not echo anything here.
4664 (echo 1 > $ac_dir/conftest9012345) 2>/dev/null
4665 (echo 2 > $ac_dir/conftest9012346) 2>/dev/null
4666 val=`cat $ac_dir/conftest9012345 2>/dev/null`
4667 if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then
4668 ac_cv_sys_long_file_names=no
4669 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
4672 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
4675 echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
4676 if test $ac_cv_sys_long_file_names = yes; then
4677 { test "$extra_verbose" = "yes" && cat << \EOF
4678 Defining HAVE_LONG_FILE_NAMES
4680 cat >> confdefs.h <<\EOF
4681 #define HAVE_LONG_FILE_NAMES 1
4688 echo $ac_n "checking for sin""... $ac_c" 1>&6
4689 echo "configure:4690: checking for sin" >&5
4691 cat > conftest.$ac_ext <<EOF
4692 #line 4693 "configure"
4693 #include "confdefs.h"
4694 /* System header to define __stub macros and hopefully few prototypes,
4695 which can conflict with char sin(); below. */
4697 /* Override any gcc2 internal prototype to avoid an error. */
4698 /* We use char because int might match the return type of a gcc2
4699 builtin and then its argument prototype would still apply. */
4704 /* The GNU C library defines this for functions which it implements
4705 to always fail with ENOSYS. Some functions are actually named
4706 something starting with __ and the normal name is an alias. */
4707 #if defined (__stub_sin) || defined (__stub___sin)
4715 if { (eval echo configure:4716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4717 eval "ac_cv_func_sin=yes"
4719 echo "configure: failed program was:" >&5
4720 cat conftest.$ac_ext >&5
4722 eval "ac_cv_func_sin=no"
4726 if eval "test \"`echo '$ac_cv_func_'sin`\" = yes"; then
4727 echo "$ac_t""yes" 1>&6
4730 echo "$ac_t""no" 1>&6
4732 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
4733 echo "configure:4734: checking for sin in -lm" >&5
4734 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
4736 xe_check_libs=" -lm "
4737 cat > conftest.$ac_ext <<EOF
4738 #line 4739 "configure"
4739 #include "confdefs.h"
4740 /* Override any gcc2 internal prototype to avoid an error. */
4741 /* We use char because int might match the return type of a gcc2
4742 builtin and then its argument prototype would still apply. */
4749 if { (eval echo configure:4750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4751 eval "ac_cv_lib_$ac_lib_var=yes"
4753 echo "configure: failed program was:" >&5
4754 cat conftest.$ac_ext >&5
4756 eval "ac_cv_lib_$ac_lib_var=no"
4761 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4762 echo "$ac_t""yes" 1>&6
4763 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/^a-zA-Z0-9_/_/g' \
4764 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4765 { test "$extra_verbose" = "yes" && cat << EOF
4768 cat >> confdefs.h <<EOF
4769 #define $ac_tr_lib 1
4773 LIBS="-lm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lm\" to \$LIBS"; fi
4776 echo "$ac_t""no" 1>&6
4783 { test "$extra_verbose" = "yes" && cat << \EOF
4784 Defining LISP_FLOAT_TYPE
4786 cat >> confdefs.h <<\EOF
4787 #define LISP_FLOAT_TYPE 1
4792 cat > conftest.$ac_ext <<EOF
4793 #line 4794 "configure"
4794 #include "confdefs.h"
4797 return atanh(1.0) + asinh(1.0) + acosh(1.0);
4800 if { (eval echo configure:4801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4802 { test "$extra_verbose" = "yes" && cat << \EOF
4803 Defining HAVE_INVERSE_HYPERBOLIC
4805 cat >> confdefs.h <<\EOF
4806 #define HAVE_INVERSE_HYPERBOLIC 1
4811 echo "configure: failed program was:" >&5
4812 cat conftest.$ac_ext >&5
4816 echo "checking type of mail spool file locking" 1>&6
4817 echo "configure:4818: checking type of mail spool file locking" >&5
4818 for ac_func in lockf flock
4820 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4821 echo "configure:4822: checking for $ac_func" >&5
4823 cat > conftest.$ac_ext <<EOF
4824 #line 4825 "configure"
4825 #include "confdefs.h"
4826 /* System header to define __stub macros and hopefully few prototypes,
4827 which can conflict with char $ac_func(); below. */
4829 /* Override any gcc2 internal prototype to avoid an error. */
4830 /* We use char because int might match the return type of a gcc2
4831 builtin and then its argument prototype would still apply. */
4836 /* The GNU C library defines this for functions which it implements
4837 to always fail with ENOSYS. Some functions are actually named
4838 something starting with __ and the normal name is an alias. */
4839 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4847 if { (eval echo configure:4848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4849 eval "ac_cv_func_$ac_func=yes"
4851 echo "configure: failed program was:" >&5
4852 cat conftest.$ac_ext >&5
4854 eval "ac_cv_func_$ac_func=no"
4858 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4859 echo "$ac_t""yes" 1>&6
4860 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4861 { test "$extra_verbose" = "yes" && cat << EOF
4862 Defining $ac_tr_func
4864 cat >> confdefs.h <<EOF
4865 #define $ac_tr_func 1
4870 echo "$ac_t""no" 1>&6
4874 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock
4875 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf
4876 test -z "$mail_locking" -a "$mail_use_locking" = "yes" && mail_locking=locking
4877 if test -z "$mail_locking"; then
4878 case "$opsys" in cygwin* | mingw*)
4883 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF
4884 Defining MAIL_LOCK_LOCKF
4886 cat >> confdefs.h <<\EOF
4887 #define MAIL_LOCK_LOCKF 1
4891 elif test "$mail_locking" = "flock"; then { test "$extra_verbose" = "yes" && cat << \EOF
4892 Defining MAIL_LOCK_FLOCK
4894 cat >> confdefs.h <<\EOF
4895 #define MAIL_LOCK_FLOCK 1
4899 elif test "$mail_locking" = "locking"; then { test "$extra_verbose" = "yes" && cat << \EOF
4900 Defining MAIL_LOCK_LOCKING
4902 cat >> confdefs.h <<\EOF
4903 #define MAIL_LOCK_LOCKING 1
4907 elif test "$mail_locking" = "pop"; then
4910 else mail_locking="dot-locking"; { test "$extra_verbose" = "yes" && cat << \EOF
4911 Defining MAIL_LOCK_DOT
4913 cat >> confdefs.h <<\EOF
4914 #define MAIL_LOCK_DOT 1
4919 test "$mail_locking" = "lockf" -a "$ac_cv_func_lockf" != "yes" && \
4920 { echo "Error:" "lockf mail locking requested but not available." >&2; exit 1; }
4921 test "$mail_locking" = "flock" -a "$ac_cv_func_flock" != "yes" && \
4922 { echo "Error:" "flock mail locking requested but not available." >&2; exit 1; }
4923 test "$mail_locking" = "locking" -a "$ac_cv_func_locking" != "yes" && \
4924 { echo "Error:" "locking mail locking requested but not available." >&2; exit 1; }
4926 case "$opsys" in decosf*)
4928 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
4929 echo "configure:4930: checking for cma_open in -lpthreads" >&5
4930 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
4932 xe_check_libs=" -lpthreads "
4933 cat > conftest.$ac_ext <<EOF
4934 #line 4935 "configure"
4935 #include "confdefs.h"
4936 /* Override any gcc2 internal prototype to avoid an error. */
4937 /* We use char because int might match the return type of a gcc2
4938 builtin and then its argument prototype would still apply. */
4945 if { (eval echo configure:4946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4947 eval "ac_cv_lib_$ac_lib_var=yes"
4949 echo "configure: failed program was:" >&5
4950 cat conftest.$ac_ext >&5
4952 eval "ac_cv_lib_$ac_lib_var=no"
4957 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4958 echo "$ac_t""yes" 1>&6
4959 ac_tr_lib=HAVE_LIB`echo pthreads | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4960 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4961 { test "$extra_verbose" = "yes" && cat << EOF
4964 cat >> confdefs.h <<EOF
4965 #define $ac_tr_lib 1
4969 LIBS="-lpthreads $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpthreads\" to \$LIBS"; fi
4972 echo "$ac_t""no" 1>&6
4976 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \
4977 c_switch_site="$c_switch_site -threads" ;;
4980 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6
4981 echo "configure:4982: checking whether the -xildoff compiler flag is required" >&5
4982 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
4983 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ;
4984 then echo "$ac_t""no" 1>&6;
4985 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
4987 else echo "$ac_t""no" 1>&6
4990 if test "$opsys" = "sol2"; then
4991 if test "$os_release" -ge 56; then
4992 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6
4993 echo "configure:4994: checking for \"-z ignore\" linker flag" >&5
4994 case "`ld -h 2>&1`" in
4995 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6
4996 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;;
4997 *) echo "$ac_t""no" 1>&6 ;;
5003 echo "checking "for specified window system"" 1>&6
5004 echo "configure:5005: checking "for specified window system"" >&5
5010 if test "$with_gnome" != "no"; then
5011 echo $ac_n "checking for GNOME configuration script""... $ac_c" 1>&6
5012 echo "configure:5013: checking for GNOME configuration script" >&5
5013 for possible in gnome-config
5015 possible_version=`${possible} --version 2> /dev/null`
5016 if test "x${possible_version}" != "x"; then
5017 GNOME_CONFIG="${possible}"
5023 echo "$ac_t""${GNOME_CONFIG}" 1>&6
5026 if test "${GNOME_CONFIG}" != "no"; then
5027 GNOME_LIBS=`${GNOME_CONFIG} --libs gnomeui`
5028 GNOME_CFLAGS=`${GNOME_CONFIG} --cflags gnomeui`
5029 { test "$extra_verbose" = "yes" && cat << \EOF
5032 cat >> confdefs.h <<\EOF
5033 #define HAVE_GNOME 1
5037 libs_gtk="$libs_gtk ${GNOME_LIBS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GNOME_LIBS}\" to \$libs_gtk"; fi
5038 c_switch_gtk="$c_switch_gtk ${GNOME_CFLAGS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GNOME_CFLAGS}\" to \$c_switch_gtk"; fi
5041 if test "$with_gtk" != "no";then
5042 echo $ac_n "checking for GTK configuration script""... $ac_c" 1>&6
5043 echo "configure:5044: checking for GTK configuration script" >&5
5044 for possible in gtk12-config gtk14-config gtk-config
5046 possible_version=`${possible} --version 2> /dev/null`
5047 if test "x${possible_version}" != "x"; then
5048 GTK_CONFIG="${possible}"
5050 case "${possible_version}" in
5051 1.0.*) echo "configure: warning: GTK 1.2 is required, please upgrade your version of GTK." 1>&2; with_gtk=no;;
5052 1.3.*) echo "configure: warning: GTK 1.3 is not supported right now" 1>&2; with_gtk=no;;
5057 *) echo "configure: warning: Found unsupported version of GTK: $possible_version" 1>&2;;
5060 echo "$ac_t""${GTK_CONFIG}" 1>&6
5063 if test "${GTK_CONFIG}" != "no"; then
5064 echo $ac_n "checking gtk version""... $ac_c" 1>&6
5065 echo "configure:5066: checking gtk version" >&5
5066 GTK_VERSION=`${GTK_CONFIG} --version`
5067 echo "$ac_t""${GTK_VERSION}" 1>&6
5069 echo $ac_n "checking gtk libs""... $ac_c" 1>&6
5070 echo "configure:5071: checking gtk libs" >&5
5071 GTK_LIBS=`${GTK_CONFIG} --libs`
5072 libs_gtk="$libs_gtk ${GTK_LIBS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GTK_LIBS}\" to \$libs_gtk"; fi
5073 echo "$ac_t""${GTK_LIBS}" 1>&6
5075 echo $ac_n "checking gtk cflags""... $ac_c" 1>&6
5076 echo "configure:5077: checking gtk cflags" >&5
5077 GTK_CFLAGS=`${GTK_CONFIG} --cflags`
5078 c_switch_gtk="$c_switch_gtk ${GTK_CFLAGS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GTK_CFLAGS}\" to \$c_switch_gtk"; fi
5079 echo "$ac_t""${GTK_CFLAGS}" 1>&6
5082 echo $ac_n "checking for main in -lgdk_imlib""... $ac_c" 1>&6
5083 echo "configure:5084: checking for main in -lgdk_imlib" >&5
5084 ac_lib_var=`echo gdk_imlib'_'main | sed 'y%./+-%__p_%'`
5086 xe_check_libs=" -lgdk_imlib "
5087 cat > conftest.$ac_ext <<EOF
5088 #line 5089 "configure"
5089 #include "confdefs.h"
5095 if { (eval echo configure:5096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5097 eval "ac_cv_lib_$ac_lib_var=yes"
5099 echo "configure: failed program was:" >&5
5100 cat conftest.$ac_ext >&5
5102 eval "ac_cv_lib_$ac_lib_var=no"
5107 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5108 echo "$ac_t""yes" 1>&6
5109 libs_gtk="-lgdk_imlib $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgdk_imlib\" to \$libs_gtk"; fi
5111 echo "$ac_t""no" 1>&6
5116 echo $ac_n "checking for Imlib_init in -lImlib""... $ac_c" 1>&6
5117 echo "configure:5118: checking for Imlib_init in -lImlib" >&5
5118 ac_lib_var=`echo Imlib'_'Imlib_init | sed 'y%./+-%__p_%'`
5120 xe_check_libs=" -lImlib "
5121 cat > conftest.$ac_ext <<EOF
5122 #line 5123 "configure"
5123 #include "confdefs.h"
5124 /* Override any gcc2 internal prototype to avoid an error. */
5125 /* We use char because int might match the return type of a gcc2
5126 builtin and then its argument prototype would still apply. */
5133 if { (eval echo configure:5134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5135 eval "ac_cv_lib_$ac_lib_var=yes"
5137 echo "configure: failed program was:" >&5
5138 cat conftest.$ac_ext >&5
5140 eval "ac_cv_lib_$ac_lib_var=no"
5145 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5146 echo "$ac_t""yes" 1>&6
5147 libs_gtk="$libs_gtk -lImlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lImlib\" to \$libs_gtk"; fi
5149 echo "$ac_t""no" 1>&6
5153 for ac_func in gdk_imlib_init
5155 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5156 echo "configure:5157: checking for $ac_func" >&5
5158 cat > conftest.$ac_ext <<EOF
5159 #line 5160 "configure"
5160 #include "confdefs.h"
5161 /* System header to define __stub macros and hopefully few prototypes,
5162 which can conflict with char $ac_func(); below. */
5164 /* Override any gcc2 internal prototype to avoid an error. */
5165 /* We use char because int might match the return type of a gcc2
5166 builtin and then its argument prototype would still apply. */
5171 /* The GNU C library defines this for functions which it implements
5172 to always fail with ENOSYS. Some functions are actually named
5173 something starting with __ and the normal name is an alias. */
5174 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5182 if { (eval echo configure:5183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5184 eval "ac_cv_func_$ac_func=yes"
5186 echo "configure: failed program was:" >&5
5187 cat conftest.$ac_ext >&5
5189 eval "ac_cv_func_$ac_func=no"
5193 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5194 echo "$ac_t""yes" 1>&6
5195 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5196 { test "$extra_verbose" = "yes" && cat << EOF
5197 Defining $ac_tr_func
5199 cat >> confdefs.h <<EOF
5200 #define $ac_tr_func 1
5205 echo "$ac_t""no" 1>&6
5210 { test "$extra_verbose" = "yes" && cat << \EOF
5213 cat >> confdefs.h <<\EOF
5218 { test "$extra_verbose" = "yes" && cat << \EOF
5221 cat >> confdefs.h <<\EOF
5232 test "${with_scrollbars}" != "no" && with_scrollbars=gtk
5233 test "${with_toolbars}" != no && with_toolbars=gtk
5234 test "${with_menubars}" != "no" && with_menubars=gtk
5235 test "${with_dialogs}" != "no" && with_dialogs=gtk
5236 test "${with_widgets}" != "no" && with_widgets=gtk
5238 extra_objs="$extra_objs console-gtk.o device-gtk.o event-gtk.o frame-gtk.o" && if test "$extra_verbose" = "yes"; then
5239 echo " xemacs will be linked with \"console-gtk.o device-gtk.o event-gtk.o frame-gtk.o\""
5241 extra_objs="$extra_objs objects-gtk.o redisplay-gtk.o glyphs-gtk.o" && if test "$extra_verbose" = "yes"; then
5242 echo " xemacs will be linked with \"objects-gtk.o redisplay-gtk.o glyphs-gtk.o\""
5244 extra_objs="$extra_objs select-gtk.o gccache-gtk.o" && if test "$extra_verbose" = "yes"; then
5245 echo " xemacs will be linked with \"select-gtk.o gccache-gtk.o\""
5247 extra_objs="$extra_objs gtk-xemacs.o ui-gtk.o" && if test "$extra_verbose" = "yes"; then
5248 echo " xemacs will be linked with \"gtk-xemacs.o ui-gtk.o\""
5251 OLD_CFLAGS="${CFLAGS}"
5252 OLD_CPPFLAGS="${CPPFLAGS}"
5253 OLD_LDFLAGS="${LDFLAGS}"
5254 CFLAGS="${GTK_CFLAGS} ${CFLAGS}"
5255 CPPFLAGS="${GTK_CFLAGS} ${CFLAGS}"
5256 LDFLAGS="${LDFLAGS} ${GTK_LIBS}"
5257 for ac_hdr in glade/glade.h glade.h
5259 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5260 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5261 echo "configure:5262: checking for $ac_hdr" >&5
5263 cat > conftest.$ac_ext <<EOF
5264 #line 5265 "configure"
5265 #include "confdefs.h"
5268 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5269 { (eval echo configure:5270: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5270 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5271 if test -z "$ac_err"; then
5273 eval "ac_cv_header_$ac_safe=yes"
5276 echo "configure: failed program was:" >&5
5277 cat conftest.$ac_ext >&5
5279 eval "ac_cv_header_$ac_safe=no"
5282 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5283 echo "$ac_t""yes" 1>&6
5284 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5285 { test "$extra_verbose" = "yes" && cat << EOF
5288 cat >> confdefs.h <<EOF
5289 #define $ac_tr_hdr 1
5294 echo "$ac_t""no" 1>&6
5299 echo $ac_n "checking for main in -lxml""... $ac_c" 1>&6
5300 echo "configure:5301: checking for main in -lxml" >&5
5301 ac_lib_var=`echo xml'_'main | sed 'y%./+-%__p_%'`
5303 xe_check_libs=" -lxml "
5304 cat > conftest.$ac_ext <<EOF
5305 #line 5306 "configure"
5306 #include "confdefs.h"
5312 if { (eval echo configure:5313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5314 eval "ac_cv_lib_$ac_lib_var=yes"
5316 echo "configure: failed program was:" >&5
5317 cat conftest.$ac_ext >&5
5319 eval "ac_cv_lib_$ac_lib_var=no"
5324 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5325 echo "$ac_t""yes" 1>&6
5326 libs_gtk="-lxml $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lxml\" to \$libs_gtk"; fi
5328 echo "$ac_t""no" 1>&6
5333 echo $ac_n "checking for main in -lglade""... $ac_c" 1>&6
5334 echo "configure:5335: checking for main in -lglade" >&5
5335 ac_lib_var=`echo glade'_'main | sed 'y%./+-%__p_%'`
5337 xe_check_libs=" -lglade "
5338 cat > conftest.$ac_ext <<EOF
5339 #line 5340 "configure"
5340 #include "confdefs.h"
5346 if { (eval echo configure:5347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5348 eval "ac_cv_lib_$ac_lib_var=yes"
5350 echo "configure: failed program was:" >&5
5351 cat conftest.$ac_ext >&5
5353 eval "ac_cv_lib_$ac_lib_var=no"
5358 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5359 echo "$ac_t""yes" 1>&6
5360 libs_gtk="-lglade $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lglade\" to \$libs_gtk"; fi
5362 echo "$ac_t""no" 1>&6
5367 echo $ac_n "checking for main in -lglade-gnome""... $ac_c" 1>&6
5368 echo "configure:5369: checking for main in -lglade-gnome" >&5
5369 ac_lib_var=`echo glade-gnome'_'main | sed 'y%./+-%__p_%'`
5371 xe_check_libs=" -lglade-gnome "
5372 cat > conftest.$ac_ext <<EOF
5373 #line 5374 "configure"
5374 #include "confdefs.h"
5380 if { (eval echo configure:5381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5382 eval "ac_cv_lib_$ac_lib_var=yes"
5384 echo "configure: failed program was:" >&5
5385 cat conftest.$ac_ext >&5
5387 eval "ac_cv_lib_$ac_lib_var=no"
5392 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5393 echo "$ac_t""yes" 1>&6
5394 libs_gtk="-lglade-gnome $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lglade-gnome\" to \$libs_gtk"; fi
5396 echo "$ac_t""no" 1>&6
5400 cat > conftest.$ac_ext <<EOF
5401 #line 5402 "configure"
5402 #include "confdefs.h"
5403 #include <glade/glade-xml.h>
5405 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5406 egrep "char \*txtdomain;" >/dev/null 2>&1; then
5408 echo "$ac_t""yes" 1>&6
5409 { test "$extra_verbose" = "yes" && cat << \EOF
5410 Defining LIBGLADE_XML_TXTDOMAIN = 1
5412 cat >> confdefs.h <<\EOF
5413 #define LIBGLADE_XML_TXTDOMAIN 1
5419 echo "$ac_t""no" 1>&6
5423 CFLAGS="${OLD_CFLAGS}"
5424 CPPFLAGS="${OLD_CPPFLAGS}"
5425 LDFLAGS="${OLD_LDFLAGS}"
5429 if test "$with_x11" != "no"; then
5430 test "$x_includes $x_libraries" != "NONE NONE" && \
5431 window_system=x11 with_x11=yes
5434 if test "$x_includes $x_libraries" = "NONE NONE" \
5435 -a -n "$OPENWINHOME" \
5436 -a "$OPENWINHOME" != "/usr/openwin" \
5437 -a -d "$OPENWINHOME"; then
5438 test -d "$OPENWINHOME/lib" && x_libraries="$OPENWINHOME/lib"
5439 test -d "$OPENWINHOME/include" && x_includes="$OPENWINHOME/include"
5440 test -d "$OPENWINHOME/share/include" && x_includes="$OPENWINHOME/share/include"
5443 if test "$x_includes" = "NONE"; then
5444 for dir in "/usr/X11" "/usr/X11R6"; do
5445 if test -d "$dir/include/X11"; then x_includes="$dir/include"; break; fi
5449 if test "$x_libraries" = "NONE"; then
5450 for dir in "/usr/X11/lib" "/usr/X11R6/lib" "/usr/lib/X11R6"; do
5451 if test -r "$dir/libX11.a"; then x_libraries="$dir"; break; fi
5455 # If we find X, set shell vars x_includes and x_libraries to the
5456 # paths, otherwise set no_x=yes.
5457 # Uses ac_ vars as temps to allow command line to override cache and checks.
5458 # --without-x overrides everything else, but does not touch the cache.
5459 echo $ac_n "checking for X""... $ac_c" 1>&6
5460 echo "configure:5461: checking for X" >&5
5462 # Check whether --with-x or --without-x was given.
5463 if test "${with_x+set}" = set; then
5468 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5469 if test "x$with_x" = xno; then
5470 # The user explicitly disabled X.
5473 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
5474 # Both variables are already set.
5478 # One or both of the vars are not set, and there is no cached value.
5479 ac_x_includes=NO ac_x_libraries=NO
5481 if mkdir conftestdir; then
5483 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5484 cat > Imakefile <<'EOF'
5486 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5488 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5489 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5490 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5491 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5492 for ac_extension in a so sl; do
5493 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
5494 test -f $ac_im_libdir/libX11.$ac_extension; then
5495 ac_im_usrlibdir=$ac_im_libdir; break
5498 # Screen out bogus values from the imake configuration. They are
5499 # bogus both because they are the default anyway, and because
5500 # using them would break gcc on systems where it needs fixed includes.
5501 case "$ac_im_incroot" in
5503 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
5505 case "$ac_im_usrlibdir" in
5507 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
5514 if test "$ac_x_includes" = NO; then
5515 # Guess where to find include files, by looking for this one X11 .h file.
5516 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
5518 # First, try using that file with no special directory specified.
5519 cat > conftest.$ac_ext <<EOF
5520 #line 5521 "configure"
5521 #include "confdefs.h"
5522 #include <$x_direct_test_include>
5524 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5525 { (eval echo configure:5526: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5526 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5527 if test -z "$ac_err"; then
5529 # We can compile using X headers with no special include directory.
5533 echo "configure: failed program was:" >&5
5534 cat conftest.$ac_ext >&5
5536 # Look for the header file in a standard set of common directories.
5537 # Check X11 before X11Rn because it is often a symlink to the current release.
5540 /usr/X11R6/include \
5541 /usr/X11R5/include \
5542 /usr/X11R4/include \
5545 /usr/include/X11R6 \
5546 /usr/include/X11R5 \
5547 /usr/include/X11R4 \
5549 /usr/local/X11/include \
5550 /usr/local/X11R6/include \
5551 /usr/local/X11R5/include \
5552 /usr/local/X11R4/include \
5554 /usr/local/include/X11 \
5555 /usr/local/include/X11R6 \
5556 /usr/local/include/X11R5 \
5557 /usr/local/include/X11R4 \
5561 /usr/XFree86/include/X11 \
5564 /usr/local/include \
5565 /usr/unsupported/include \
5566 /usr/athena/include \
5567 /usr/local/x11r5/include \
5568 /usr/lpp/Xamples/include \
5570 /usr/openwin/include \
5571 /usr/openwin/share/include \
5574 if test -r "$ac_dir/$x_direct_test_include"; then
5575 ac_x_includes=$ac_dir
5581 fi # $ac_x_includes = NO
5583 if test "$ac_x_libraries" = NO; then
5584 # Check for the libraries.
5586 test -z "$x_direct_test_library" && x_direct_test_library=Xt
5587 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
5589 # See if we find them without any special options.
5590 # Don't add to $LIBS permanently.
5591 ac_save_LIBS="$LIBS"
5592 LIBS="-l$x_direct_test_library $LIBS"
5593 cat > conftest.$ac_ext <<EOF
5594 #line 5595 "configure"
5595 #include "confdefs.h"
5598 ${x_direct_test_function}()
5601 if { (eval echo configure:5602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5603 LIBS="$ac_save_LIBS"
5604 # We can link X programs with no special library path.
5607 echo "configure: failed program was:" >&5
5608 cat conftest.$ac_ext >&5
5610 LIBS="$ac_save_LIBS"
5611 # First see if replacing the include by lib works.
5612 # Check X11 before X11Rn because it is often a symlink to the current release.
5613 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
5624 /usr/local/X11/lib \
5625 /usr/local/X11R6/lib \
5626 /usr/local/X11R5/lib \
5627 /usr/local/X11R4/lib \
5629 /usr/local/lib/X11 \
5630 /usr/local/lib/X11R6 \
5631 /usr/local/lib/X11R5 \
5632 /usr/local/lib/X11R4 \
5636 /usr/XFree86/lib/X11 \
5640 /usr/unsupported/lib \
5642 /usr/local/x11r5/lib \
5643 /usr/lpp/Xamples/lib \
5647 /usr/openwin/share/lib \
5650 for ac_extension in a so sl; do
5651 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
5652 ac_x_libraries=$ac_dir
5659 fi # $ac_x_libraries = NO
5661 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
5662 # Didn't find X anywhere. Cache the known absence of X.
5663 ac_cv_have_x="have_x=no"
5665 # Record where we found X for the cache.
5666 ac_cv_have_x="have_x=yes \
5667 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5670 eval "$ac_cv_have_x"
5673 if test "$have_x" != yes; then
5674 echo "$ac_t""$have_x" 1>&6
5677 # If each of the values was on the command line, it overrides each guess.
5678 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5679 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5680 # Update the cache value to reflect the command line values.
5681 ac_cv_have_x="have_x=yes \
5682 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5683 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
5686 if test "$no_x" = yes; then
5687 # Not all programs may use this symbol, but it does not hurt to define it.
5688 { test "$extra_verbose" = "yes" && cat << \EOF
5689 Defining X_DISPLAY_MISSING
5691 cat >> confdefs.h <<\EOF
5692 #define X_DISPLAY_MISSING 1
5696 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5698 if test -n "$x_includes"; then
5699 X_CFLAGS="$X_CFLAGS -I$x_includes"
5702 # It would also be nice to do this for all -L options, not just this one.
5703 if test -n "$x_libraries"; then
5704 X_LIBS="$X_LIBS -L$x_libraries"
5705 # For Solaris; some versions of Sun CC require a space after -R and
5706 # others require no space. Words are not sufficient . . . .
5707 case "`(uname -sr) 2>/dev/null`" in
5709 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
5710 echo "configure:5711: checking whether -R must be followed by a space" >&5
5711 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
5712 cat > conftest.$ac_ext <<EOF
5713 #line 5714 "configure"
5714 #include "confdefs.h"
5720 if { (eval echo configure:5721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5724 echo "configure: failed program was:" >&5
5725 cat conftest.$ac_ext >&5
5730 if test $ac_R_nospace = yes; then
5731 echo "$ac_t""no" 1>&6
5732 X_LIBS="$X_LIBS -R$x_libraries"
5734 LIBS="$ac_xsave_LIBS -R $x_libraries"
5735 cat > conftest.$ac_ext <<EOF
5736 #line 5737 "configure"
5737 #include "confdefs.h"
5743 if { (eval echo configure:5744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5747 echo "configure: failed program was:" >&5
5748 cat conftest.$ac_ext >&5
5753 if test $ac_R_space = yes; then
5754 echo "$ac_t""yes" 1>&6
5755 X_LIBS="$X_LIBS -R $x_libraries"
5757 echo "$ac_t""neither works" 1>&6
5760 LIBS="$ac_xsave_LIBS"
5764 # Check for system-dependent libraries X programs must link with.
5765 # Do this before checking for the system-independent R6 libraries
5766 # (-lICE), since we may need -lsocket or whatever for X linking.
5768 if test "$ISC" = yes; then
5769 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5771 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
5772 # libraries were built with DECnet support. And karl@cs.umb.edu says
5773 # the Alpha needs dnet_stub (dnet does not exist).
5774 if test "$with_dnet" = "no" ; then
5775 ac_cv_lib_dnet_dnet_ntoa=no
5778 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
5779 echo "configure:5780: checking for dnet_ntoa in -ldnet" >&5
5780 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5782 xe_check_libs=" -ldnet "
5783 cat > conftest.$ac_ext <<EOF
5784 #line 5785 "configure"
5785 #include "confdefs.h"
5786 /* Override any gcc2 internal prototype to avoid an error. */
5787 /* We use char because int might match the return type of a gcc2
5788 builtin and then its argument prototype would still apply. */
5795 if { (eval echo configure:5796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5797 eval "ac_cv_lib_$ac_lib_var=yes"
5799 echo "configure: failed program was:" >&5
5800 cat conftest.$ac_ext >&5
5802 eval "ac_cv_lib_$ac_lib_var=no"
5807 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5808 echo "$ac_t""yes" 1>&6
5809 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5811 echo "$ac_t""no" 1>&6
5816 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5818 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
5819 echo "configure:5820: checking for dnet_ntoa in -ldnet_stub" >&5
5820 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5822 xe_check_libs=" -ldnet_stub "
5823 cat > conftest.$ac_ext <<EOF
5824 #line 5825 "configure"
5825 #include "confdefs.h"
5826 /* Override any gcc2 internal prototype to avoid an error. */
5827 /* We use char because int might match the return type of a gcc2
5828 builtin and then its argument prototype would still apply. */
5835 if { (eval echo configure:5836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5837 eval "ac_cv_lib_$ac_lib_var=yes"
5839 echo "configure: failed program was:" >&5
5840 cat conftest.$ac_ext >&5
5842 eval "ac_cv_lib_$ac_lib_var=no"
5847 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5848 echo "$ac_t""yes" 1>&6
5849 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5851 echo "$ac_t""no" 1>&6
5857 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5858 # to get the SysV transport functions.
5859 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
5861 # The nsl library prevents programs from opening the X display
5862 # on Irix 5.2, according to dickey@clark.net.
5863 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
5864 echo "configure:5865: checking for gethostbyname" >&5
5866 cat > conftest.$ac_ext <<EOF
5867 #line 5868 "configure"
5868 #include "confdefs.h"
5869 /* System header to define __stub macros and hopefully few prototypes,
5870 which can conflict with char gethostbyname(); below. */
5872 /* Override any gcc2 internal prototype to avoid an error. */
5873 /* We use char because int might match the return type of a gcc2
5874 builtin and then its argument prototype would still apply. */
5875 char gethostbyname();
5879 /* The GNU C library defines this for functions which it implements
5880 to always fail with ENOSYS. Some functions are actually named
5881 something starting with __ and the normal name is an alias. */
5882 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5890 if { (eval echo configure:5891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5892 eval "ac_cv_func_gethostbyname=yes"
5894 echo "configure: failed program was:" >&5
5895 cat conftest.$ac_ext >&5
5897 eval "ac_cv_func_gethostbyname=no"
5901 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
5902 echo "$ac_t""yes" 1>&6
5905 echo "$ac_t""no" 1>&6
5908 if test $ac_cv_func_gethostbyname = no; then
5910 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
5911 echo "configure:5912: checking for gethostbyname in -lnsl" >&5
5912 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
5914 xe_check_libs=" -lnsl "
5915 cat > conftest.$ac_ext <<EOF
5916 #line 5917 "configure"
5917 #include "confdefs.h"
5918 /* Override any gcc2 internal prototype to avoid an error. */
5919 /* We use char because int might match the return type of a gcc2
5920 builtin and then its argument prototype would still apply. */
5921 char gethostbyname();
5927 if { (eval echo configure:5928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5929 eval "ac_cv_lib_$ac_lib_var=yes"
5931 echo "configure: failed program was:" >&5
5932 cat conftest.$ac_ext >&5
5934 eval "ac_cv_lib_$ac_lib_var=no"
5939 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5940 echo "$ac_t""yes" 1>&6
5941 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5943 echo "$ac_t""no" 1>&6
5949 # lieder@skyler.mavd.honeywell.com says without -lsocket,
5950 # socket/setsockopt and other routines are undefined under SCO ODT
5951 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5952 # on later versions), says simon@lia.di.epfl.ch: it contains
5953 # gethostby* variants that don't use the nameserver (or something).
5954 # -lsocket must be given before -lnsl if both are needed.
5955 # We assume that if connect needs -lnsl, so does gethostbyname.
5956 echo $ac_n "checking for connect""... $ac_c" 1>&6
5957 echo "configure:5958: checking for connect" >&5
5959 cat > conftest.$ac_ext <<EOF
5960 #line 5961 "configure"
5961 #include "confdefs.h"
5962 /* System header to define __stub macros and hopefully few prototypes,
5963 which can conflict with char connect(); below. */
5965 /* Override any gcc2 internal prototype to avoid an error. */
5966 /* We use char because int might match the return type of a gcc2
5967 builtin and then its argument prototype would still apply. */
5972 /* The GNU C library defines this for functions which it implements
5973 to always fail with ENOSYS. Some functions are actually named
5974 something starting with __ and the normal name is an alias. */
5975 #if defined (__stub_connect) || defined (__stub___connect)
5983 if { (eval echo configure:5984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5985 eval "ac_cv_func_connect=yes"
5987 echo "configure: failed program was:" >&5
5988 cat conftest.$ac_ext >&5
5990 eval "ac_cv_func_connect=no"
5994 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
5995 echo "$ac_t""yes" 1>&6
5998 echo "$ac_t""no" 1>&6
6001 if test $ac_cv_func_connect = no; then
6003 xe_msg_checking="for connect in -lsocket"
6004 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
6005 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6006 echo "configure:6007: checking "$xe_msg_checking"" >&5
6007 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
6009 xe_check_libs=" -lsocket $X_EXTRA_LIBS"
6010 cat > conftest.$ac_ext <<EOF
6011 #line 6012 "configure"
6012 #include "confdefs.h"
6013 /* Override any gcc2 internal prototype to avoid an error. */
6014 /* We use char because int might match the return type of a gcc2
6015 builtin and then its argument prototype would still apply. */
6022 if { (eval echo configure:6023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6024 eval "ac_cv_lib_$ac_lib_var=yes"
6026 echo "configure: failed program was:" >&5
6027 cat conftest.$ac_ext >&5
6029 eval "ac_cv_lib_$ac_lib_var=no"
6034 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6035 echo "$ac_t""yes" 1>&6
6036 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6038 echo "$ac_t""no" 1>&6
6044 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
6045 echo $ac_n "checking for remove""... $ac_c" 1>&6
6046 echo "configure:6047: checking for remove" >&5
6048 cat > conftest.$ac_ext <<EOF
6049 #line 6050 "configure"
6050 #include "confdefs.h"
6051 /* System header to define __stub macros and hopefully few prototypes,
6052 which can conflict with char remove(); below. */
6054 /* Override any gcc2 internal prototype to avoid an error. */
6055 /* We use char because int might match the return type of a gcc2
6056 builtin and then its argument prototype would still apply. */
6061 /* The GNU C library defines this for functions which it implements
6062 to always fail with ENOSYS. Some functions are actually named
6063 something starting with __ and the normal name is an alias. */
6064 #if defined (__stub_remove) || defined (__stub___remove)
6072 if { (eval echo configure:6073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6074 eval "ac_cv_func_remove=yes"
6076 echo "configure: failed program was:" >&5
6077 cat conftest.$ac_ext >&5
6079 eval "ac_cv_func_remove=no"
6083 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
6084 echo "$ac_t""yes" 1>&6
6087 echo "$ac_t""no" 1>&6
6090 if test $ac_cv_func_remove = no; then
6092 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
6093 echo "configure:6094: checking for remove in -lposix" >&5
6094 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
6096 xe_check_libs=" -lposix "
6097 cat > conftest.$ac_ext <<EOF
6098 #line 6099 "configure"
6099 #include "confdefs.h"
6100 /* Override any gcc2 internal prototype to avoid an error. */
6101 /* We use char because int might match the return type of a gcc2
6102 builtin and then its argument prototype would still apply. */
6109 if { (eval echo configure:6110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6111 eval "ac_cv_lib_$ac_lib_var=yes"
6113 echo "configure: failed program was:" >&5
6114 cat conftest.$ac_ext >&5
6116 eval "ac_cv_lib_$ac_lib_var=no"
6121 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6122 echo "$ac_t""yes" 1>&6
6123 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6125 echo "$ac_t""no" 1>&6
6131 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6132 echo $ac_n "checking for shmat""... $ac_c" 1>&6
6133 echo "configure:6134: checking for shmat" >&5
6135 cat > conftest.$ac_ext <<EOF
6136 #line 6137 "configure"
6137 #include "confdefs.h"
6138 /* System header to define __stub macros and hopefully few prototypes,
6139 which can conflict with char shmat(); below. */
6141 /* Override any gcc2 internal prototype to avoid an error. */
6142 /* We use char because int might match the return type of a gcc2
6143 builtin and then its argument prototype would still apply. */
6148 /* The GNU C library defines this for functions which it implements
6149 to always fail with ENOSYS. Some functions are actually named
6150 something starting with __ and the normal name is an alias. */
6151 #if defined (__stub_shmat) || defined (__stub___shmat)
6159 if { (eval echo configure:6160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6161 eval "ac_cv_func_shmat=yes"
6163 echo "configure: failed program was:" >&5
6164 cat conftest.$ac_ext >&5
6166 eval "ac_cv_func_shmat=no"
6170 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
6171 echo "$ac_t""yes" 1>&6
6174 echo "$ac_t""no" 1>&6
6177 if test $ac_cv_func_shmat = no; then
6179 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
6180 echo "configure:6181: checking for shmat in -lipc" >&5
6181 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
6183 xe_check_libs=" -lipc "
6184 cat > conftest.$ac_ext <<EOF
6185 #line 6186 "configure"
6186 #include "confdefs.h"
6187 /* Override any gcc2 internal prototype to avoid an error. */
6188 /* We use char because int might match the return type of a gcc2
6189 builtin and then its argument prototype would still apply. */
6196 if { (eval echo configure:6197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6198 eval "ac_cv_lib_$ac_lib_var=yes"
6200 echo "configure: failed program was:" >&5
6201 cat conftest.$ac_ext >&5
6203 eval "ac_cv_lib_$ac_lib_var=no"
6208 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6209 echo "$ac_t""yes" 1>&6
6210 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6212 echo "$ac_t""no" 1>&6
6219 # Check for libraries that X11R6 Xt/Xaw programs need.
6220 ac_save_LDFLAGS="$LDFLAGS"
6221 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6222 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6223 # check for ICE first), but we must link in the order -lSM -lICE or
6224 # we get undefined symbols. So assume we have SM if we have ICE.
6225 # These have to be linked with before -lX11, unlike the other
6226 # libraries we check for below, so use a different variable.
6227 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
6229 xe_msg_checking="for IceConnectionNumber in -lICE"
6230 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
6231 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6232 echo "configure:6233: checking "$xe_msg_checking"" >&5
6233 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
6235 xe_check_libs=" -lICE $X_EXTRA_LIBS"
6236 cat > conftest.$ac_ext <<EOF
6237 #line 6238 "configure"
6238 #include "confdefs.h"
6239 /* Override any gcc2 internal prototype to avoid an error. */
6240 /* We use char because int might match the return type of a gcc2
6241 builtin and then its argument prototype would still apply. */
6242 char IceConnectionNumber();
6245 IceConnectionNumber()
6248 if { (eval echo configure:6249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6250 eval "ac_cv_lib_$ac_lib_var=yes"
6252 echo "configure: failed program was:" >&5
6253 cat conftest.$ac_ext >&5
6255 eval "ac_cv_lib_$ac_lib_var=no"
6260 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6261 echo "$ac_t""yes" 1>&6
6262 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6264 echo "$ac_t""no" 1>&6
6268 LDFLAGS="$ac_save_LDFLAGS"
6271 # Autoconf claims to find X library and include dirs for us.
6272 if test "$no_x" = "yes"
6273 then with_x11=no window_system=none HAVE_X_WINDOWS=no
6274 else with_x11=yes window_system=x11 HAVE_X_WINDOWS=yes
6279 if test "$with_x11" = "yes"; then
6280 { test "$extra_verbose" = "yes" && cat << \EOF
6281 Defining HAVE_X_WINDOWS
6283 cat >> confdefs.h <<\EOF
6284 #define HAVE_X_WINDOWS 1
6288 MAKE_SUBDIR="$MAKE_SUBDIR lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$MAKE_SUBDIR"; fi
6289 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$SRC_SUBDIR_DEPS"; fi
6291 for lib_dir in "/usr/dt/lib" "/usr/lib/Motif2.1" "/usr/lib/Motif1.2" "/usr/lib/Motif1.1"; do
6292 inc_dir=`echo $lib_dir | sed -e 's/lib/include/'`
6293 if test -d "$lib_dir" -a -d "$inc_dir"; then
6294 case "$x_libraries" in *"$lib_dir"* ) ;; *)
6295 x_libraries="$lib_dir $x_libraries"
6296 X_LIBS="-L${lib_dir} $X_LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-L${lib_dir}\" to \$X_LIBS"; fi ;;
6298 case "$x_includes" in "$inc_dir"* ) ;; *)
6299 x_includes="$inc_dir $x_includes"
6300 X_CFLAGS="-I${inc_dir} $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-I${inc_dir}\" to \$X_CFLAGS"; fi ;;
6305 for rel in "X11R6" "X11R5" "X11R4"; do
6306 lib_dir="/usr/contrib/$rel/lib" inc_dir="/usr/contrib/$rel/include"
6307 if test -d "$lib_dir" -a -d "$inc_dir"; then
6308 case "$x_libraries" in *"$lib_dir"* ) ;; *)
6309 x_libraries="$x_libraries $lib_dir"
6310 X_LIBS="$X_LIBS -L${lib_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L${lib_dir}\" to \$X_LIBS"; fi
6312 case "$x_includes" in "$inc_dir"* ) ;; *)
6313 x_includes="$x_includes $inc_dir"
6314 X_CFLAGS="$X_CFLAGS -I${inc_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-I${inc_dir}\" to \$X_CFLAGS"; fi
6320 decosf*) if test "$GCC" = yes -a -d /usr/shlib; then X_LIBS="$X_LIBS -L/usr/shlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L/usr/shlib\" to \$X_LIBS"; fi; fi ;;
6323 ld_switch_x_site="$X_LIBS"
6326 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
6327 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
6328 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
6330 runpath="" runpath_dirs=""
6331 if test -n "$LD_RUN_PATH"; then
6332 runpath="$LD_RUN_PATH"
6333 elif test "$GCC" = "yes"; then
6334 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
6335 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
6336 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
6337 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
6338 case "$arg" in P,* | -L* | -R* )
6339 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
6341 xe_runpath_dir="$dir"
6342 test "$xe_runpath_dir" != "/lib" -a \
6343 "$xe_runpath_dir" != "/usr/lib" -a \
6344 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
6345 eval "$xe_add_unique_runpath_dir"
6350 ld_switch_run="$ld_switch_run_save"
6353 for arg in $ld_switch_site $ld_switch_x_site; do
6354 case "$arg" in -L*) {
6355 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
6356 test "$xe_runpath_dir" != "/lib" -a \
6357 "$xe_runpath_dir" != "/usr/lib" -a \
6358 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
6359 eval "$xe_add_unique_runpath_dir"
6362 if test "$opsys $need_motif" = "sol2 yes"; then
6363 xe_runpath_dir="/opt/SUNWdt/lib";
6364 eval "$xe_add_unique_runpath_dir";
6367 if test -n "$runpath"; then
6368 ld_switch_run="${dash_r}${runpath}"
6370 if test "$GCC" = "yes"; then
6371 set x $ld_switch_run; shift; ld_switch_run=""
6372 while test -n "$1"; do
6374 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
6375 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
6377 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
6382 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
6387 if test "$extra_verbose" = "yes"; then
6388 echo; echo "X11 compilation variables:"
6389 for var in x_libraries x_includes X_CFLAGS X_LIBS X_PRE_LIBS X_EXTRA_LIBS; do eval "echo \"$var = '\$$var'\""; done
6394 if test "$x_includes" != NONE; then
6395 for i in $x_includes; do
6396 if test -d "$i/bitmaps"; then
6397 bitmapdirs="$i/bitmaps:$bitmapdirs"
6399 if test -d "$i/X11/bitmaps"; then
6400 bitmapdirs="$i/X11/bitmaps:$bitmapdirs"
6403 bitmapdirs=`echo "$bitmapdirs" | sed s/.$//`
6405 test ! -z "$bitmapdirs" && { test "$extra_verbose" = "yes" && cat << EOF
6406 Defining BITMAPDIR = "$bitmapdirs"
6408 cat >> confdefs.h <<EOF
6409 #define BITMAPDIR "$bitmapdirs"
6414 echo "checking for X defines extracted by xmkmf" 1>&6
6415 echo "configure:6416: checking for X defines extracted by xmkmf" >&5
6417 if mkdir conftestdir; then
6419 cat > Imakefile <<'EOF'
6421 @echo ${PROTO_DEFINES} ${STD_DEFINES}
6423 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6424 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6425 xmkmf_defines=`${MAKE-make} xetest 2>/dev/null | grep -v make`
6429 for word in $xmkmf_defines; do
6433 sym=`echo '' $word | sed -e 's:^ *-D::' -e 's:=.*::'`
6435 -D*=* ) val=`echo '' $word | sed -e 's:^.*=::'` ;;
6438 if grep "^#define $sym " confdefs.h >/dev/null; then :; else
6439 if test "$val" = "1"
6440 then { test "$extra_verbose" = "yes" && cat << EOF
6443 cat >> confdefs.h <<EOF
6448 else { test "$extra_verbose" = "yes" && cat << EOF
6449 Defining $sym = $val
6451 cat >> confdefs.h <<EOF
6462 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
6463 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
6464 echo "configure:6465: checking for X11/Intrinsic.h" >&5
6466 cat > conftest.$ac_ext <<EOF
6467 #line 6468 "configure"
6468 #include "confdefs.h"
6469 #include <X11/Intrinsic.h>
6471 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6472 { (eval echo configure:6473: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6473 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6474 if test -z "$ac_err"; then
6476 eval "ac_cv_header_$ac_safe=yes"
6479 echo "configure: failed program was:" >&5
6480 cat conftest.$ac_ext >&5
6482 eval "ac_cv_header_$ac_safe=no"
6485 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6486 echo "$ac_t""yes" 1>&6
6489 echo "$ac_t""no" 1>&6
6490 { echo "configure: error: "Unable to find X11 header files."" 1>&2; exit 1; }
6495 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
6496 echo "configure:6497: checking for XOpenDisplay in -lX11" >&5
6497 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
6499 xe_check_libs=" -lX11 "
6500 cat > conftest.$ac_ext <<EOF
6501 #line 6502 "configure"
6502 #include "confdefs.h"
6503 /* Override any gcc2 internal prototype to avoid an error. */
6504 /* We use char because int might match the return type of a gcc2
6505 builtin and then its argument prototype would still apply. */
6506 char XOpenDisplay();
6512 if { (eval echo configure:6513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6514 eval "ac_cv_lib_$ac_lib_var=yes"
6516 echo "configure: failed program was:" >&5
6517 cat conftest.$ac_ext >&5
6519 eval "ac_cv_lib_$ac_lib_var=no"
6524 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6525 echo "$ac_t""yes" 1>&6
6528 echo "$ac_t""no" 1>&6
6532 if test "$have_lib_x11" != "yes"; then
6534 xe_msg_checking="for XGetFontProperty in -lX11"
6535 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout"
6536 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6537 echo "configure:6538: checking "$xe_msg_checking"" >&5
6538 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
6540 xe_check_libs=" -lX11 -b i486-linuxaout"
6541 cat > conftest.$ac_ext <<EOF
6542 #line 6543 "configure"
6543 #include "confdefs.h"
6544 /* Override any gcc2 internal prototype to avoid an error. */
6545 /* We use char because int might match the return type of a gcc2
6546 builtin and then its argument prototype would still apply. */
6547 char XGetFontProperty();
6553 if { (eval echo configure:6554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6555 eval "ac_cv_lib_$ac_lib_var=yes"
6557 echo "configure: failed program was:" >&5
6558 cat conftest.$ac_ext >&5
6560 eval "ac_cv_lib_$ac_lib_var=no"
6565 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6566 echo "$ac_t""yes" 1>&6
6567 ld_switch_x_site="-b i486-linuxaout $ld_switch_x_site"
6569 echo "$ac_t""no" 1>&6
6570 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
6576 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
6579 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
6580 echo "configure:6581: checking for XShapeSelectInput in -lXext" >&5
6581 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
6583 xe_check_libs=" -lXext "
6584 cat > conftest.$ac_ext <<EOF
6585 #line 6586 "configure"
6586 #include "confdefs.h"
6587 /* Override any gcc2 internal prototype to avoid an error. */
6588 /* We use char because int might match the return type of a gcc2
6589 builtin and then its argument prototype would still apply. */
6590 char XShapeSelectInput();
6596 if { (eval echo configure:6597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6598 eval "ac_cv_lib_$ac_lib_var=yes"
6600 echo "configure: failed program was:" >&5
6601 cat conftest.$ac_ext >&5
6603 eval "ac_cv_lib_$ac_lib_var=no"
6608 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6609 echo "$ac_t""yes" 1>&6
6610 libs_x="-lXext $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXext\" to \$libs_x"; fi
6612 echo "$ac_t""no" 1>&6
6618 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6
6619 echo "configure:6620: checking for XtOpenDisplay in -lXt" >&5
6620 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
6622 xe_check_libs=" -lXt "
6623 cat > conftest.$ac_ext <<EOF
6624 #line 6625 "configure"
6625 #include "confdefs.h"
6626 /* Override any gcc2 internal prototype to avoid an error. */
6627 /* We use char because int might match the return type of a gcc2
6628 builtin and then its argument prototype would still apply. */
6629 char XtOpenDisplay();
6635 if { (eval echo configure:6636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6637 eval "ac_cv_lib_$ac_lib_var=yes"
6639 echo "configure: failed program was:" >&5
6640 cat conftest.$ac_ext >&5
6642 eval "ac_cv_lib_$ac_lib_var=no"
6647 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6648 echo "$ac_t""yes" 1>&6
6649 libs_x="-lXt $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXt\" to \$libs_x"; fi
6651 echo "$ac_t""no" 1>&6
6652 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
6657 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6
6658 echo "configure:6659: checking the version of X11 being used" >&5
6659 cat > conftest.$ac_ext <<EOF
6660 #line 6661 "configure"
6661 #include "confdefs.h"
6662 #include <X11/Intrinsic.h>
6663 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; }
6665 if { (eval echo configure:6666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6667 ./conftest foobar; x11_release=$?
6670 echo "configure: failed program was:" >&5
6671 cat conftest.$ac_ext >&5
6676 echo "$ac_t""R${x11_release}" 1>&6
6677 { test "$extra_verbose" = "yes" && cat << EOF
6678 Defining THIS_IS_X11R${x11_release}
6680 cat >> confdefs.h <<EOF
6681 #define THIS_IS_X11R${x11_release} 1
6686 if test "${x11_release}" = "4"; then
6687 case "$with_widgets" in
6688 "" | "no") with_widgets=no ;;
6689 *) { echo "Error:" "Widget support requires X11R5 or greater" >&2; exit 1; } ;;
6693 for ac_func in XConvertCase
6695 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6696 echo "configure:6697: checking for $ac_func" >&5
6698 cat > conftest.$ac_ext <<EOF
6699 #line 6700 "configure"
6700 #include "confdefs.h"
6701 /* System header to define __stub macros and hopefully few prototypes,
6702 which can conflict with char $ac_func(); below. */
6704 /* Override any gcc2 internal prototype to avoid an error. */
6705 /* We use char because int might match the return type of a gcc2
6706 builtin and then its argument prototype would still apply. */
6711 /* The GNU C library defines this for functions which it implements
6712 to always fail with ENOSYS. Some functions are actually named
6713 something starting with __ and the normal name is an alias. */
6714 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6722 if { (eval echo configure:6723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6724 eval "ac_cv_func_$ac_func=yes"
6726 echo "configure: failed program was:" >&5
6727 cat conftest.$ac_ext >&5
6729 eval "ac_cv_func_$ac_func=no"
6733 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6734 echo "$ac_t""yes" 1>&6
6735 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6736 { test "$extra_verbose" = "yes" && cat << EOF
6737 Defining $ac_tr_func
6739 cat >> confdefs.h <<EOF
6740 #define $ac_tr_func 1
6745 echo "$ac_t""no" 1>&6
6750 for ac_hdr in X11/Xlocale.h
6752 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6753 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6754 echo "configure:6755: checking for $ac_hdr" >&5
6756 cat > conftest.$ac_ext <<EOF
6757 #line 6758 "configure"
6758 #include "confdefs.h"
6761 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6762 { (eval echo configure:6763: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6763 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6764 if test -z "$ac_err"; then
6766 eval "ac_cv_header_$ac_safe=yes"
6769 echo "configure: failed program was:" >&5
6770 cat conftest.$ac_ext >&5
6772 eval "ac_cv_header_$ac_safe=no"
6775 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6776 echo "$ac_t""yes" 1>&6
6777 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6778 { test "$extra_verbose" = "yes" && cat << EOF
6781 cat >> confdefs.h <<EOF
6782 #define $ac_tr_hdr 1
6787 echo "$ac_t""no" 1>&6
6792 for ac_func in XRegisterIMInstantiateCallback
6794 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6795 echo "configure:6796: checking for $ac_func" >&5
6797 cat > conftest.$ac_ext <<EOF
6798 #line 6799 "configure"
6799 #include "confdefs.h"
6800 /* System header to define __stub macros and hopefully few prototypes,
6801 which can conflict with char $ac_func(); below. */
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. */
6810 /* The GNU C library defines this for functions which it implements
6811 to always fail with ENOSYS. Some functions are actually named
6812 something starting with __ and the normal name is an alias. */
6813 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6821 if { (eval echo configure:6822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6823 eval "ac_cv_func_$ac_func=yes"
6825 echo "configure: failed program was:" >&5
6826 cat conftest.$ac_ext >&5
6828 eval "ac_cv_func_$ac_func=no"
6832 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6833 echo "$ac_t""yes" 1>&6
6834 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6835 { test "$extra_verbose" = "yes" && cat << EOF
6836 Defining $ac_tr_func
6838 cat >> confdefs.h <<EOF
6839 #define $ac_tr_func 1
6844 echo "$ac_t""no" 1>&6
6848 echo $ac_n "checking for standard XRegisterIMInstantiateCallback prototype""... $ac_c" 1>&6
6849 echo "configure:6850: checking for standard XRegisterIMInstantiateCallback prototype" >&5
6850 cat > conftest.$ac_ext <<EOF
6851 #line 6852 "configure"
6852 #include "confdefs.h"
6854 #define NeedFunctionPrototypes 1
6855 #include <X11/Xlib.h>
6856 extern Bool XRegisterIMInstantiateCallback(
6857 Display*, struct _XrmHashBucketRec*, char*, char*, XIMProc, XPointer*);
6863 if { (eval echo configure:6864: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6865 echo "$ac_t""yes" 1>&6
6867 echo "configure: failed program was:" >&5
6868 cat conftest.$ac_ext >&5
6870 echo "$ac_t""no" 1>&6
6871 { test "$extra_verbose" = "yes" && cat << \EOF
6872 Defining XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE
6874 cat >> confdefs.h <<\EOF
6875 #define XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE 1
6882 test -z "$with_xmu" && {
6883 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6
6884 echo "configure:6885: checking for XmuReadBitmapDataFromFile in -lXmu" >&5
6885 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'`
6887 xe_check_libs=" -lXmu "
6888 cat > conftest.$ac_ext <<EOF
6889 #line 6890 "configure"
6890 #include "confdefs.h"
6891 /* Override any gcc2 internal prototype to avoid an error. */
6892 /* We use char because int might match the return type of a gcc2
6893 builtin and then its argument prototype would still apply. */
6894 char XmuReadBitmapDataFromFile();
6897 XmuReadBitmapDataFromFile()
6900 if { (eval echo configure:6901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6902 eval "ac_cv_lib_$ac_lib_var=yes"
6904 echo "configure: failed program was:" >&5
6905 cat conftest.$ac_ext >&5
6907 eval "ac_cv_lib_$ac_lib_var=no"
6912 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6913 echo "$ac_t""yes" 1>&6
6916 echo "$ac_t""no" 1>&6
6921 if test "$with_xmu" = "no"; then
6922 extra_objs="$extra_objs xmu.o" && if test "$extra_verbose" = "yes"; then
6923 echo " xemacs will be linked with \"xmu.o\""
6926 libs_x="-lXmu $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXmu\" to \$libs_x"; fi
6927 { test "$extra_verbose" = "yes" && cat << \EOF
6930 cat >> confdefs.h <<\EOF
6938 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
6939 echo "configure:6940: checking for main in -lXbsd" >&5
6940 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
6942 xe_check_libs=" -lXbsd "
6943 cat > conftest.$ac_ext <<EOF
6944 #line 6945 "configure"
6945 #include "confdefs.h"
6951 if { (eval echo configure:6952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6953 eval "ac_cv_lib_$ac_lib_var=yes"
6955 echo "configure: failed program was:" >&5
6956 cat conftest.$ac_ext >&5
6958 eval "ac_cv_lib_$ac_lib_var=no"
6963 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6964 echo "$ac_t""yes" 1>&6
6965 libs_x="-lXbsd $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXbsd\" to \$libs_x"; fi
6967 echo "$ac_t""no" 1>&6
6972 if test "$unexec" = "unexaix.o" -a "$x11_release" = "6"; then
6973 if test "$GCC" = "yes"; then
6974 X_CFLAGS="-mthreads $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$X_CFLAGS"; fi
6975 libs_x="-mthreads $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$libs_x"; fi
6978 "xlc" ) CC="xlc_r" ;;
6979 "xlC" ) CC="xlC_r" ;;
6986 if test "$with_msw" != "no"; then
6987 echo "checking for MS-Windows" 1>&6
6988 echo "configure:6989: checking for MS-Windows" >&5
6990 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6
6991 echo "configure:6992: checking for main in -lgdi32" >&5
6992 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'`
6994 xe_check_libs=" -lgdi32 "
6995 cat > conftest.$ac_ext <<EOF
6996 #line 6997 "configure"
6997 #include "confdefs.h"
7003 if { (eval echo configure:7004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7005 eval "ac_cv_lib_$ac_lib_var=yes"
7007 echo "configure: failed program was:" >&5
7008 cat conftest.$ac_ext >&5
7010 eval "ac_cv_lib_$ac_lib_var=no"
7015 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7016 echo "$ac_t""yes" 1>&6
7019 echo "$ac_t""no" 1>&6
7023 if test "$with_msw" = "yes"; then
7024 { test "$extra_verbose" = "yes" && cat << \EOF
7025 Defining HAVE_MS_WINDOWS
7027 cat >> confdefs.h <<\EOF
7028 #define HAVE_MS_WINDOWS 1
7033 if test "$with_netinstall" = "yes"; then
7034 MAKE_SUBDIR="$MAKE_SUBDIR netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$MAKE_SUBDIR"; fi
7035 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$SRC_SUBDIR_DEPS"; fi
7036 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
7039 install_pp="$blddir/lib-src/installexe.sh"
7040 libs_system="$libs_system -lshell32 -lgdi32 -luser32 -lcomdlg32 -lcomctl32 -lwinspool" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lshell32 -lgdi32 -luser32 -lcomdlg32 -lcomctl32 -lwinspool\" to \$libs_system"; fi
7041 test "$with_dragndrop" != no && dragndrop_proto="$dragndrop_proto msw" && if test "$extra_verbose" = "yes"; then echo " Appending \"msw\" to \$dragndrop_proto"; fi
7042 if test "$window_system" != x11; then
7044 test "$with_scrollbars" != "no" && with_scrollbars=msw \
7045 && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
7046 echo " xemacs will be linked with \"scrollbar-msw.o\""
7048 test "$with_menubars" != "no" && with_menubars=msw \
7049 && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
7050 echo " xemacs will be linked with \"menubar-msw.o\""
7052 test "$with_toolbars" != "no" && with_toolbars=msw \
7053 && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
7054 echo " xemacs will be linked with \"toolbar-msw.o\""
7056 test "$with_dialogs" != "no" && with_dialogs=msw \
7057 && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
7058 echo " xemacs will be linked with \"dialog-msw.o\""
7060 test "$with_widgets" != "no" && with_widgets=msw
7062 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
7063 echo " xemacs will be linked with \"scrollbar-msw.o\""
7065 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
7066 echo " xemacs will be linked with \"menubar-msw.o\""
7068 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
7069 echo " xemacs will be linked with \"toolbar-msw.o\""
7071 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
7072 echo " xemacs will be linked with \"dialog-msw.o\""
7075 cat > conftest.$ac_ext <<EOF
7076 #line 7077 "configure"
7077 #include "confdefs.h"
7079 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; }
7081 if { (eval echo configure:7082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
7083 need_event_unixoid=yes; { test "$extra_verbose" = "yes" && cat << \EOF
7084 Defining HAVE_MSG_SELECT
7086 cat >> confdefs.h <<\EOF
7087 #define HAVE_MSG_SELECT 1
7093 echo "configure: failed program was:" >&5
7094 cat conftest.$ac_ext >&5
7097 with_file_coding=yes
7098 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
7099 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\""
7106 test -z "$window_system" && window_system="none"
7108 if test "$window_system" = "none"; then
7109 for feature in menubars scrollbars toolbars dialogs dragndrop xface
7111 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
7112 echo "configure: warning: --with-$feature ignored: Not valid without window system support" 1>&2
7114 eval "with_${feature}=no"
7117 test -z "$with_toolbars" && with_toolbars=yes
7120 if test "$with_msw" != "yes"; then
7121 for feature in MARTIN_IS_CLUELESS_ABOUT_MSW_FEATURES
7123 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
7124 echo "configure: warning: --with-$feature ignored: Not valid without MS-Windows support" 1>&2
7126 eval "with_${feature}=no"
7132 if test "$with_x11" != "yes"; then
7133 for feature in tooltalk cde offix wmcommand xim xmu nas_sound
7135 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
7136 echo "configure: warning: --with-$feature ignored: Not valid without X support" 1>&2
7138 eval "with_${feature}=no"
7142 if test "$with_x11" = "yes"; then
7143 ac_safe=`echo "X11/extensions/shape.h" | sed 'y%./+-%__p_%'`
7144 echo $ac_n "checking for X11/extensions/shape.h""... $ac_c" 1>&6
7145 echo "configure:7146: checking for X11/extensions/shape.h" >&5
7147 cat > conftest.$ac_ext <<EOF
7148 #line 7149 "configure"
7149 #include "confdefs.h"
7150 #include <X11/extensions/shape.h>
7152 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7153 { (eval echo configure:7154: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7154 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7155 if test -z "$ac_err"; then
7157 eval "ac_cv_header_$ac_safe=yes"
7160 echo "configure: failed program was:" >&5
7161 cat conftest.$ac_ext >&5
7163 eval "ac_cv_header_$ac_safe=no"
7166 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7167 echo "$ac_t""yes" 1>&6
7169 { test "$extra_verbose" = "yes" && cat << \EOF
7170 Defining HAVE_BALLOON_HELP
7172 cat >> confdefs.h <<\EOF
7173 #define HAVE_BALLOON_HELP 1
7177 extra_objs="$extra_objs balloon_help.o balloon-x.o" && if test "$extra_verbose" = "yes"; then
7178 echo " xemacs will be linked with \"balloon_help.o balloon-x.o\""
7181 echo "$ac_t""no" 1>&6
7188 case "$window_system" in
7189 x11 ) HAVE_X_WINDOWS=yes; echo " Using X11." ;;
7190 msw ) HAVE_X_WINDOWS=no ; echo " Using MS-Windows." ;;
7193 test "$with_gnome" = "yes" && echo " Using GNOME."
7194 test "$with_gnome" = "no" && echo " Using GTK."
7196 none ) HAVE_X_WINDOWS=no ; echo " Using no window system." ;;
7199 case "$x_libraries" in *X11R4* )
7200 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h"
7201 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h"
7204 echo "checking for WM_COMMAND option" 1>&6
7205 echo "configure:7206: checking for WM_COMMAND option" >&5;
7206 if test "$with_wmcommand" != "no"; then
7207 { test "$extra_verbose" = "yes" && cat << \EOF
7208 Defining HAVE_WMCOMMAND
7210 cat >> confdefs.h <<\EOF
7211 #define HAVE_WMCOMMAND 1
7217 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
7218 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'`
7219 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
7220 echo "configure:7221: checking for X11/Xauth.h" >&5
7222 cat > conftest.$ac_ext <<EOF
7223 #line 7224 "configure"
7224 #include "confdefs.h"
7225 #include <X11/Xauth.h>
7227 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7228 { (eval echo configure:7229: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7229 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7230 if test -z "$ac_err"; then
7232 eval "ac_cv_header_$ac_safe=yes"
7235 echo "configure: failed program was:" >&5
7236 cat conftest.$ac_ext >&5
7238 eval "ac_cv_header_$ac_safe=no"
7241 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7242 echo "$ac_t""yes" 1>&6
7245 echo "$ac_t""no" 1>&6
7249 test -z "$with_xauth" && {
7250 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
7251 echo "configure:7252: checking for XauGetAuthByAddr in -lXau" >&5
7252 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
7254 xe_check_libs=" -lXau "
7255 cat > conftest.$ac_ext <<EOF
7256 #line 7257 "configure"
7257 #include "confdefs.h"
7258 /* Override any gcc2 internal prototype to avoid an error. */
7259 /* We use char because int might match the return type of a gcc2
7260 builtin and then its argument prototype would still apply. */
7261 char XauGetAuthByAddr();
7267 if { (eval echo configure:7268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7269 eval "ac_cv_lib_$ac_lib_var=yes"
7271 echo "configure: failed program was:" >&5
7272 cat conftest.$ac_ext >&5
7274 eval "ac_cv_lib_$ac_lib_var=no"
7279 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7280 echo "$ac_t""yes" 1>&6
7283 echo "$ac_t""no" 1>&6
7288 test -z "$with_xauth" && with_xauth=yes
7289 if test "$with_xauth" = "yes"; then
7290 { test "$extra_verbose" = "yes" && cat << \EOF
7293 cat >> confdefs.h <<\EOF
7294 #define HAVE_XAUTH 1
7300 for W in $GTK_LIBS $X_EXTRA_LIBS -lXau $libs_x $X_PRE_LIBS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
7308 if test "$with_tooltalk" != "no" ; then
7309 for dir in "" "Tt/" "desktop/" ; do
7310 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
7311 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
7312 echo "configure:7313: checking for ${dir}tt_c.h" >&5
7314 cat > conftest.$ac_ext <<EOF
7315 #line 7316 "configure"
7316 #include "confdefs.h"
7317 #include <${dir}tt_c.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
7335 tt_c_h_file="${dir}tt_c.h"; break
7337 echo "$ac_t""no" 1>&6
7341 if test -z "$tt_c_h_file"; then
7342 if test "$with_tooltalk" = "yes"; then
7343 (echo "$progname: Usage error:"
7344 echo " " "Unable to find required tooltalk header files."
7345 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
7350 if test "$with_tooltalk" != "no" ; then
7351 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
7353 xe_msg_checking="for tt_message_create in -ltt"
7354 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
7355 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7356 echo "configure:7357: checking "$xe_msg_checking"" >&5
7357 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
7359 xe_check_libs=" -ltt $extra_libs"
7360 cat > conftest.$ac_ext <<EOF
7361 #line 7362 "configure"
7362 #include "confdefs.h"
7363 /* Override any gcc2 internal prototype to avoid an error. */
7364 /* We use char because int might match the return type of a gcc2
7365 builtin and then its argument prototype would still apply. */
7366 char tt_message_create();
7372 if { (eval echo configure:7373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7374 eval "ac_cv_lib_$ac_lib_var=yes"
7376 echo "configure: failed program was:" >&5
7377 cat conftest.$ac_ext >&5
7379 eval "ac_cv_lib_$ac_lib_var=no"
7384 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7385 echo "$ac_t""yes" 1>&6
7386 tt_libs="-ltt $extra_libs"; break
7388 echo "$ac_t""no" 1>&6
7394 if test -z "$tt_libs"; then
7395 if test "$with_tooltalk" = "yes"; then
7396 (echo "$progname: Usage error:"
7397 echo " " "Unable to find required tooltalk libraries."
7398 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
7403 test -z "$with_tooltalk" && with_tooltalk=yes
7404 if test "$with_tooltalk" = "yes"; then
7405 { test "$extra_verbose" = "yes" && cat << \EOF
7408 cat >> confdefs.h <<\EOF
7413 { test "$extra_verbose" = "yes" && cat << EOF
7414 Defining TT_C_H_FILE = "$tt_c_h_file"
7416 cat >> confdefs.h <<EOF
7417 #define TT_C_H_FILE "$tt_c_h_file"
7421 libs_x="$tt_libs $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$tt_libs\" to \$libs_x"; fi
7422 extra_objs="$extra_objs tooltalk.o" && if test "$extra_verbose" = "yes"; then
7423 echo " xemacs will be linked with \"tooltalk.o\""
7427 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'`
7428 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
7429 echo "configure:7430: checking for Dt/Dt.h" >&5
7431 cat > conftest.$ac_ext <<EOF
7432 #line 7433 "configure"
7433 #include "confdefs.h"
7436 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7437 { (eval echo configure:7438: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7438 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7439 if test -z "$ac_err"; then
7441 eval "ac_cv_header_$ac_safe=yes"
7444 echo "configure: failed program was:" >&5
7445 cat conftest.$ac_ext >&5
7447 eval "ac_cv_header_$ac_safe=no"
7450 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7451 echo "$ac_t""yes" 1>&6
7454 echo "$ac_t""no" 1>&6
7458 test -z "$with_cde" && {
7459 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
7460 echo "configure:7461: checking for DtDndDragStart in -lDtSvc" >&5
7461 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
7463 xe_check_libs=" -lDtSvc "
7464 cat > conftest.$ac_ext <<EOF
7465 #line 7466 "configure"
7466 #include "confdefs.h"
7467 /* Override any gcc2 internal prototype to avoid an error. */
7468 /* We use char because int might match the return type of a gcc2
7469 builtin and then its argument prototype would still apply. */
7470 char DtDndDragStart();
7476 if { (eval echo configure:7477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7478 eval "ac_cv_lib_$ac_lib_var=yes"
7480 echo "configure: failed program was:" >&5
7481 cat conftest.$ac_ext >&5
7483 eval "ac_cv_lib_$ac_lib_var=no"
7488 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7489 echo "$ac_t""yes" 1>&6
7492 echo "$ac_t""no" 1>&6
7497 test -z "$with_cde" && with_cde=yes
7498 if test "$with_dragndrop" = no; then
7499 echo "configure: warning: No CDE without generic Drag'n'Drop support" 1>&2
7502 if test "$with_cde" = "yes" ; then
7503 { test "$extra_verbose" = "yes" && cat << \EOF
7506 cat >> confdefs.h <<\EOF
7511 libs_x="-lDtSvc $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lDtSvc\" to \$libs_x"; fi
7512 dragndrop_proto="$dragndrop_proto CDE" && if test "$extra_verbose" = "yes"; then echo " Appending \"CDE\" to \$dragndrop_proto"; fi
7513 with_tooltalk=yes # CDE requires Tooltalk
7514 need_motif=yes # CDE requires Motif
7517 test "$window_system" != "x11" && with_offix=no
7518 if test "$with_xmu" != yes -a "$with_x11" = yes; then
7519 echo "configure: warning: No OffiX without real Xmu support" 1>&2
7522 if test "$with_dragndrop" = no; then
7523 echo "configure: warning: No OffiX without generic Drag'n'Drop support" 1>&2
7526 if test "$with_cde" = yes; then
7527 echo "configure: warning: CDE already found, disabling OffiX support" 1>&2
7530 test -z "$with_offix" && with_offix=no
7531 if test "$with_offix" = "yes"; then
7532 { test "$extra_verbose" = "yes" && cat << \EOF
7533 Defining HAVE_OFFIX_DND
7535 cat >> confdefs.h <<\EOF
7536 #define HAVE_OFFIX_DND 1
7540 dnd_objs="$dnd_objs offix.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"offix.o\" to \$dnd_objs"; fi
7541 dragndrop_proto="$dragndrop_proto OffiX" && if test "$extra_verbose" = "yes"; then echo " Appending \"OffiX\" to \$dragndrop_proto"; fi
7543 if test "$with_gtk" = "yes"; then
7544 dragndrop_proto="$dragndrop_proto GTK" && if test "$extra_verbose" = "yes"; then echo " Appending \"GTK\" to \$dragndrop_proto"; fi
7547 if test "$with_dragndrop" != "no" ; then
7548 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6
7549 echo "configure:7550: checking if drag and drop API is needed" >&5
7550 if test -n "$dragndrop_proto" ; then
7552 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6
7553 { test "$extra_verbose" = "yes" && cat << \EOF
7554 Defining HAVE_DRAGNDROP
7556 cat >> confdefs.h <<\EOF
7557 #define HAVE_DRAGNDROP 1
7561 extra_objs="$extra_objs dragdrop.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"dragdrop.o\" to \$extra_objs"; fi
7564 echo "$ac_t""no" 1>&6
7568 echo "checking for LDAP" 1>&6
7569 echo "configure:7570: checking for LDAP" >&5
7570 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'`
7571 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6
7572 echo "configure:7573: checking for ldap.h" >&5
7574 cat > conftest.$ac_ext <<EOF
7575 #line 7576 "configure"
7576 #include "confdefs.h"
7579 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7580 { (eval echo configure:7581: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7581 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7582 if test -z "$ac_err"; then
7584 eval "ac_cv_header_$ac_safe=yes"
7587 echo "configure: failed program was:" >&5
7588 cat conftest.$ac_ext >&5
7590 eval "ac_cv_header_$ac_safe=no"
7593 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7594 echo "$ac_t""yes" 1>&6
7597 echo "$ac_t""no" 1>&6
7601 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'`
7602 echo $ac_n "checking for lber.h""... $ac_c" 1>&6
7603 echo "configure:7604: checking for lber.h" >&5
7605 cat > conftest.$ac_ext <<EOF
7606 #line 7607 "configure"
7607 #include "confdefs.h"
7610 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7611 { (eval echo configure:7612: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7612 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7613 if test -z "$ac_err"; then
7615 eval "ac_cv_header_$ac_safe=yes"
7618 echo "configure: failed program was:" >&5
7619 cat conftest.$ac_ext >&5
7621 eval "ac_cv_header_$ac_safe=no"
7624 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7625 echo "$ac_t""yes" 1>&6
7628 echo "$ac_t""no" 1>&6
7632 if test "$with_ldap" != "no"; then
7634 echo $ac_n "checking for ldap_search in -lldap""... $ac_c" 1>&6
7635 echo "configure:7636: checking for ldap_search in -lldap" >&5
7636 ac_lib_var=`echo ldap'_'ldap_search | sed 'y%./+-%__p_%'`
7638 xe_check_libs=" -lldap "
7639 cat > conftest.$ac_ext <<EOF
7640 #line 7641 "configure"
7641 #include "confdefs.h"
7642 /* Override any gcc2 internal prototype to avoid an error. */
7643 /* We use char because int might match the return type of a gcc2
7644 builtin and then its argument prototype would still apply. */
7651 if { (eval echo configure:7652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7653 eval "ac_cv_lib_$ac_lib_var=yes"
7655 echo "configure: failed program was:" >&5
7656 cat conftest.$ac_ext >&5
7658 eval "ac_cv_lib_$ac_lib_var=no"
7663 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7664 echo "$ac_t""yes" 1>&6
7665 with_ldap_nolber=yes
7667 echo "$ac_t""no" 1>&6
7672 test "$with_ldap_nolber" = "no" && {
7673 xe_msg_checking="for ldap_open in -lldap"
7674 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber"
7675 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7676 echo "configure:7677: checking "$xe_msg_checking"" >&5
7677 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7679 xe_check_libs=" -lldap -llber"
7680 cat > conftest.$ac_ext <<EOF
7681 #line 7682 "configure"
7682 #include "confdefs.h"
7683 /* Override any gcc2 internal prototype to avoid an error. */
7684 /* We use char because int might match the return type of a gcc2
7685 builtin and then its argument prototype would still apply. */
7692 if { (eval echo configure:7693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7694 eval "ac_cv_lib_$ac_lib_var=yes"
7696 echo "configure: failed program was:" >&5
7697 cat conftest.$ac_ext >&5
7699 eval "ac_cv_lib_$ac_lib_var=no"
7704 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7705 echo "$ac_t""yes" 1>&6
7708 echo "$ac_t""no" 1>&6
7713 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" && {
7714 xe_msg_checking="for ldap_open in -lldap"
7715 test -n "-llber -lkrb" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb"
7716 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7717 echo "configure:7718: checking "$xe_msg_checking"" >&5
7718 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7720 xe_check_libs=" -lldap -llber -lkrb"
7721 cat > conftest.$ac_ext <<EOF
7722 #line 7723 "configure"
7723 #include "confdefs.h"
7724 /* Override any gcc2 internal prototype to avoid an error. */
7725 /* We use char because int might match the return type of a gcc2
7726 builtin and then its argument prototype would still apply. */
7733 if { (eval echo configure:7734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7735 eval "ac_cv_lib_$ac_lib_var=yes"
7737 echo "configure: failed program was:" >&5
7738 cat conftest.$ac_ext >&5
7740 eval "ac_cv_lib_$ac_lib_var=no"
7745 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7746 echo "$ac_t""yes" 1>&6
7749 echo "$ac_t""no" 1>&6
7754 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" -a "$with_ldap_krb" = "no" && {
7755 xe_msg_checking="for ldap_open in -lldap"
7756 test -n "-llber -lkrb -ldes" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb -ldes"
7757 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7758 echo "configure:7759: checking "$xe_msg_checking"" >&5
7759 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7761 xe_check_libs=" -lldap -llber -lkrb -ldes"
7762 cat > conftest.$ac_ext <<EOF
7763 #line 7764 "configure"
7764 #include "confdefs.h"
7765 /* Override any gcc2 internal prototype to avoid an error. */
7766 /* We use char because int might match the return type of a gcc2
7767 builtin and then its argument prototype would still apply. */
7774 if { (eval echo configure:7775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7776 eval "ac_cv_lib_$ac_lib_var=yes"
7778 echo "configure: failed program was:" >&5
7779 cat conftest.$ac_ext >&5
7781 eval "ac_cv_lib_$ac_lib_var=no"
7786 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7787 echo "$ac_t""yes" 1>&6
7788 with_ldap_krbdes=yes
7790 echo "$ac_t""no" 1>&6
7795 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
7797 if test "$with_ldap" = "yes"; then
7798 { test "$extra_verbose" = "yes" && cat << \EOF
7801 cat >> confdefs.h <<\EOF
7806 extra_objs="$extra_objs eldap.o" && if test "$extra_verbose" = "yes"; then
7807 echo " xemacs will be linked with \"eldap.o\""
7809 if test "$with_ldap_nolber" = "yes" ; then
7810 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
7812 if test "$with_ldap_krb" = "yes" ; then
7813 LIBS="-lkrb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$LIBS"; fi
7815 if test "$with_ldap_krbdes" = "yes" ; then
7816 LIBS="-ldes $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldes\" to \$LIBS"; fi
7817 LIBS="-lkrb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$LIBS"; fi
7819 LIBS="-llber $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-llber\" to \$LIBS"; fi
7820 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
7822 for ac_func in ldap_set_option ldap_get_lderrno ldap_result2error ldap_parse_result
7824 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7825 echo "configure:7826: checking for $ac_func" >&5
7827 cat > conftest.$ac_ext <<EOF
7828 #line 7829 "configure"
7829 #include "confdefs.h"
7830 /* System header to define __stub macros and hopefully few prototypes,
7831 which can conflict with char $ac_func(); below. */
7833 /* Override any gcc2 internal prototype to avoid an error. */
7834 /* We use char because int might match the return type of a gcc2
7835 builtin and then its argument prototype would still apply. */
7840 /* The GNU C library defines this for functions which it implements
7841 to always fail with ENOSYS. Some functions are actually named
7842 something starting with __ and the normal name is an alias. */
7843 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7851 if { (eval echo configure:7852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7853 eval "ac_cv_func_$ac_func=yes"
7855 echo "configure: failed program was:" >&5
7856 cat conftest.$ac_ext >&5
7858 eval "ac_cv_func_$ac_func=no"
7862 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7863 echo "$ac_t""yes" 1>&6
7864 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7865 { test "$extra_verbose" = "yes" && cat << EOF
7866 Defining $ac_tr_func
7868 cat >> confdefs.h <<EOF
7869 #define $ac_tr_func 1
7874 echo "$ac_t""no" 1>&6
7880 if test "$with_postgresql" != "no"; then
7881 echo "checking for PostgreSQL" 1>&6
7882 echo "configure:7883: checking for PostgreSQL" >&5
7884 for header_dir in "" "pgsql/" "postgresql/"; do
7885 ac_safe=`echo "${header_dir}libpq-fe.h" | sed 'y%./+-%__p_%'`
7886 echo $ac_n "checking for ${header_dir}libpq-fe.h""... $ac_c" 1>&6
7887 echo "configure:7888: checking for ${header_dir}libpq-fe.h" >&5
7889 cat > conftest.$ac_ext <<EOF
7890 #line 7891 "configure"
7891 #include "confdefs.h"
7892 #include <${header_dir}libpq-fe.h>
7894 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7895 { (eval echo configure:7896: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7896 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7897 if test -z "$ac_err"; then
7899 eval "ac_cv_header_$ac_safe=yes"
7902 echo "configure: failed program was:" >&5
7903 cat conftest.$ac_ext >&5
7905 eval "ac_cv_header_$ac_safe=no"
7908 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7909 echo "$ac_t""yes" 1>&6
7910 libpq_fe_h_file=${header_dir}libpq-fe.h; break
7912 echo "$ac_t""no" 1>&6
7917 test -n "$libpq_fe_h_file" && {
7918 echo $ac_n "checking for PQconnectdb in -lpq""... $ac_c" 1>&6
7919 echo "configure:7920: checking for PQconnectdb in -lpq" >&5
7920 ac_lib_var=`echo pq'_'PQconnectdb | sed 'y%./+-%__p_%'`
7922 xe_check_libs=" -lpq "
7923 cat > conftest.$ac_ext <<EOF
7924 #line 7925 "configure"
7925 #include "confdefs.h"
7926 /* Override any gcc2 internal prototype to avoid an error. */
7927 /* We use char because int might match the return type of a gcc2
7928 builtin and then its argument prototype would still apply. */
7935 if { (eval echo configure:7936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7937 eval "ac_cv_lib_$ac_lib_var=yes"
7939 echo "configure: failed program was:" >&5
7940 cat conftest.$ac_ext >&5
7942 eval "ac_cv_lib_$ac_lib_var=no"
7947 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7948 echo "$ac_t""yes" 1>&6
7951 echo "$ac_t""no" 1>&6
7956 if test -n "$libpq_fe_h_file" -a "$have_libpq" = "yes"; then
7958 { test "$extra_verbose" = "yes" && cat << \EOF
7959 Defining HAVE_POSTGRESQL
7961 cat >> confdefs.h <<\EOF
7962 #define HAVE_POSTGRESQL 1
7967 echo $ac_n "checking for PQconnectStart in -lpq""... $ac_c" 1>&6
7968 echo "configure:7969: checking for PQconnectStart in -lpq" >&5
7969 ac_lib_var=`echo pq'_'PQconnectStart | sed 'y%./+-%__p_%'`
7971 xe_check_libs=" -lpq "
7972 cat > conftest.$ac_ext <<EOF
7973 #line 7974 "configure"
7974 #include "confdefs.h"
7975 /* Override any gcc2 internal prototype to avoid an error. */
7976 /* We use char because int might match the return type of a gcc2
7977 builtin and then its argument prototype would still apply. */
7978 char PQconnectStart();
7984 if { (eval echo configure:7985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7986 eval "ac_cv_lib_$ac_lib_var=yes"
7988 echo "configure: failed program was:" >&5
7989 cat conftest.$ac_ext >&5
7991 eval "ac_cv_lib_$ac_lib_var=no"
7996 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7997 echo "$ac_t""yes" 1>&6
7998 with_postgresqlv7=yes;
7999 { test "$extra_verbose" = "yes" && cat << \EOF
8000 Defining HAVE_POSTGRESQLV7
8002 cat >> confdefs.h <<\EOF
8003 #define HAVE_POSTGRESQLV7 1
8008 echo "$ac_t""no" 1>&6
8012 { test "$extra_verbose" = "yes" && cat << EOF
8013 Defining LIBPQ_FE_H_FILE = "$libpq_fe_h_file"
8015 cat >> confdefs.h <<EOF
8016 #define LIBPQ_FE_H_FILE "$libpq_fe_h_file"
8020 LIBS="-lpq $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpq\" to \$LIBS"; fi
8021 extra_objs="$extra_objs postgresql.o" && if test "$extra_verbose" = "yes"; then
8022 echo " xemacs will be linked with \"postgresql.o\""
8024 elif test "$with_postgresql" = "yes"; then
8025 { echo "Error:" "Required PostgreSQL support cannot be provided. Check --site-prefixes." >&2; exit 1; }
8030 if test "$window_system" != "none"; then
8031 echo "checking for graphics libraries" 1>&6
8032 echo "configure:8033: checking for graphics libraries" >&5
8038 cygwin_top=`eval "gcc -print-file-name=libc.a"` ;
8039 cygwin_top=`eval "dirname ${cygwin_top}"`;
8040 cygwin_top="${cygwin_top}/..";
8041 case "$window_system" in
8043 msw) libpath_xpm="-L${cygwin_top}/lib/noX"
8044 incpath_xpm="-I${cygwin_top}/include/noX"
8054 if test -z "$with_xpm"; then
8055 CFLAGS=""$incpath_xpm" $CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$incpath_xpm"\" to \$CFLAGS"; fi
8056 LDFLAGS=""$libpath_xpm" $LDFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libpath_xpm"\" to \$LDFLAGS"; fi
8057 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6
8058 echo "configure:8059: checking for Xpm - no older than 3.4f" >&5
8060 cat > conftest.$ac_ext <<EOF
8061 #line 8062 "configure"
8062 #include "confdefs.h"
8064 #include <X11/xpm.h>
8065 int main(int c, char **v) {
8067 XpmIncludeVersion != XpmLibraryVersion() ? 1 :
8068 XpmIncludeVersion < 30406 ? 2 : 0 ;}
8070 if { (eval echo configure:8071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
8072 ./conftest dummy_arg; xpm_status=$?;
8073 if test "$xpm_status" = "0"; then
8077 if test "$xpm_status" = "1"; then
8078 xpm_problem="Xpm library version and header file version don't match!"
8079 elif test "$xpm_status" = "2"; then
8080 xpm_problem="Xpm library version is too old!"
8082 xpm_problem="Internal xpm detection logic error!"
8085 *** WARNING *** $xpm_problem
8086 I'm not touching that with a 10-foot pole!
8087 If you really want to use the installed version of Xpm, rerun
8088 configure and add '--with-xpm=yes', but don't blame me if XEmacs crashes!"
8092 echo "configure: failed program was:" >&5
8093 cat conftest.$ac_ext >&5
8099 echo "$ac_t""$with_xpm" 1>&6
8101 if test "$with_xpm" = "yes"; then
8102 { test "$extra_verbose" = "yes" && cat << \EOF
8105 cat >> confdefs.h <<\EOF
8110 LDFLAGS=""$libpath_xpm" $LDFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libpath_xpm"\" to \$LDFLAGS"; fi
8111 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
8112 CFLAGS=""$incpath_xpm" $CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$incpath_xpm"\" to \$CFLAGS"; fi
8113 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6
8114 echo "configure:8115: checking for \"FOR_MSW\" xpm" >&5
8116 cat > conftest.$ac_ext <<EOF
8117 #line 8118 "configure"
8118 #include "confdefs.h"
8121 XpmCreatePixmapFromData()
8124 if { (eval echo configure:8125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8128 echo "configure: failed program was:" >&5
8129 cat conftest.$ac_ext >&5
8135 echo "$ac_t""$xpm_for_msw" 1>&6
8136 if test "$xpm_for_msw" = "yes"; then
8137 { test "$extra_verbose" = "yes" && cat << \EOF
8140 cat >> confdefs.h <<\EOF
8148 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
8149 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
8150 echo "configure:8151: checking for compface.h" >&5
8152 cat > conftest.$ac_ext <<EOF
8153 #line 8154 "configure"
8154 #include "confdefs.h"
8155 #include <compface.h>
8157 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8158 { (eval echo configure:8159: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8159 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8160 if test -z "$ac_err"; then
8162 eval "ac_cv_header_$ac_safe=yes"
8165 echo "configure: failed program was:" >&5
8166 cat conftest.$ac_ext >&5
8168 eval "ac_cv_header_$ac_safe=no"
8171 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8172 echo "$ac_t""yes" 1>&6
8175 echo "$ac_t""no" 1>&6
8179 test -z "$with_xface" && {
8180 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
8181 echo "configure:8182: checking for UnGenFace in -lcompface" >&5
8182 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
8184 xe_check_libs=" -lcompface "
8185 cat > conftest.$ac_ext <<EOF
8186 #line 8187 "configure"
8187 #include "confdefs.h"
8188 /* Override any gcc2 internal prototype to avoid an error. */
8189 /* We use char because int might match the return type of a gcc2
8190 builtin and then its argument prototype would still apply. */
8197 if { (eval echo configure:8198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8199 eval "ac_cv_lib_$ac_lib_var=yes"
8201 echo "configure: failed program was:" >&5
8202 cat conftest.$ac_ext >&5
8204 eval "ac_cv_lib_$ac_lib_var=no"
8209 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8210 echo "$ac_t""yes" 1>&6
8213 echo "$ac_t""no" 1>&6
8218 test -z "$with_xface" && with_xface=yes
8219 if test "$with_xface" = "yes"; then
8220 { test "$extra_verbose" = "yes" && cat << \EOF
8223 cat >> confdefs.h <<\EOF
8224 #define HAVE_XFACE 1
8228 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi
8231 if test "$with_gif" != "no"; then
8233 { test "$extra_verbose" = "yes" && cat << \EOF
8236 cat >> confdefs.h <<\EOF
8241 extra_objs="$extra_objs dgif_lib.o gif_io.o" && if test "$extra_verbose" = "yes"; then
8242 echo " xemacs will be linked with \"dgif_lib.o gif_io.o\""
8246 if test "$with_png $with_tiff" != "no no"; then
8248 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6
8249 echo "configure:8250: checking for inflate in -lc" >&5
8250 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'`
8252 xe_check_libs=" -lc "
8253 cat > conftest.$ac_ext <<EOF
8254 #line 8255 "configure"
8255 #include "confdefs.h"
8256 /* Override any gcc2 internal prototype to avoid an error. */
8257 /* We use char because int might match the return type of a gcc2
8258 builtin and then its argument prototype would still apply. */
8265 if { (eval echo configure:8266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8267 eval "ac_cv_lib_$ac_lib_var=yes"
8269 echo "configure: failed program was:" >&5
8270 cat conftest.$ac_ext >&5
8272 eval "ac_cv_lib_$ac_lib_var=no"
8277 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8278 echo "$ac_t""yes" 1>&6
8281 echo "$ac_t""no" 1>&6
8283 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
8284 echo "configure:8285: checking for inflate in -lz" >&5
8285 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
8287 xe_check_libs=" -lz "
8288 cat > conftest.$ac_ext <<EOF
8289 #line 8290 "configure"
8290 #include "confdefs.h"
8291 /* Override any gcc2 internal prototype to avoid an error. */
8292 /* We use char because int might match the return type of a gcc2
8293 builtin and then its argument prototype would still apply. */
8300 if { (eval echo configure:8301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8302 eval "ac_cv_lib_$ac_lib_var=yes"
8304 echo "configure: failed program was:" >&5
8305 cat conftest.$ac_ext >&5
8307 eval "ac_cv_lib_$ac_lib_var=no"
8312 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8313 echo "$ac_t""yes" 1>&6
8314 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi
8316 echo "$ac_t""no" 1>&6
8318 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6
8319 echo "configure:8320: checking for inflate in -lgz" >&5
8320 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'`
8322 xe_check_libs=" -lgz "
8323 cat > conftest.$ac_ext <<EOF
8324 #line 8325 "configure"
8325 #include "confdefs.h"
8326 /* Override any gcc2 internal prototype to avoid an error. */
8327 /* We use char because int might match the return type of a gcc2
8328 builtin and then its argument prototype would still apply. */
8335 if { (eval echo configure:8336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8337 eval "ac_cv_lib_$ac_lib_var=yes"
8339 echo "configure: failed program was:" >&5
8340 cat conftest.$ac_ext >&5
8342 eval "ac_cv_lib_$ac_lib_var=no"
8347 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8348 echo "$ac_t""yes" 1>&6
8349 libs_x="-lgz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgz\" to \$libs_x"; fi
8351 echo "$ac_t""no" 1>&6
8363 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
8364 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
8365 echo "configure:8366: checking for jpeglib.h" >&5
8367 cat > conftest.$ac_ext <<EOF
8368 #line 8369 "configure"
8369 #include "confdefs.h"
8370 #include <jpeglib.h>
8372 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8373 { (eval echo configure:8374: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8374 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8375 if test -z "$ac_err"; then
8377 eval "ac_cv_header_$ac_safe=yes"
8380 echo "configure: failed program was:" >&5
8381 cat conftest.$ac_ext >&5
8383 eval "ac_cv_header_$ac_safe=no"
8386 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8387 echo "$ac_t""yes" 1>&6
8390 echo "$ac_t""no" 1>&6
8394 test -z "$with_jpeg" && {
8395 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6
8396 echo "configure:8397: checking for jpeg_destroy_decompress in -ljpeg" >&5
8397 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'`
8399 xe_check_libs=" -ljpeg "
8400 cat > conftest.$ac_ext <<EOF
8401 #line 8402 "configure"
8402 #include "confdefs.h"
8403 /* Override any gcc2 internal prototype to avoid an error. */
8404 /* We use char because int might match the return type of a gcc2
8405 builtin and then its argument prototype would still apply. */
8406 char jpeg_destroy_decompress();
8409 jpeg_destroy_decompress()
8412 if { (eval echo configure:8413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8414 eval "ac_cv_lib_$ac_lib_var=yes"
8416 echo "configure: failed program was:" >&5
8417 cat conftest.$ac_ext >&5
8419 eval "ac_cv_lib_$ac_lib_var=no"
8424 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8425 echo "$ac_t""yes" 1>&6
8428 echo "$ac_t""no" 1>&6
8433 test -z "$with_jpeg" && with_jpeg=yes
8434 if test "$with_jpeg" = "yes"; then
8435 { test "$extra_verbose" = "yes" && cat << \EOF
8438 cat >> confdefs.h <<\EOF
8443 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi
8447 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6
8448 echo "configure:8449: checking for pow" >&5
8450 cat > conftest.$ac_ext <<EOF
8451 #line 8452 "configure"
8452 #include "confdefs.h"
8453 /* System header to define __stub macros and hopefully few prototypes,
8454 which can conflict with char pow(); below. */
8456 /* Override any gcc2 internal prototype to avoid an error. */
8457 /* We use char because int might match the return type of a gcc2
8458 builtin and then its argument prototype would still apply. */
8463 /* The GNU C library defines this for functions which it implements
8464 to always fail with ENOSYS. Some functions are actually named
8465 something starting with __ and the normal name is an alias. */
8466 #if defined (__stub_pow) || defined (__stub___pow)
8474 if { (eval echo configure:8475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8476 eval "ac_cv_func_pow=yes"
8478 echo "configure: failed program was:" >&5
8479 cat conftest.$ac_ext >&5
8481 eval "ac_cv_func_pow=no"
8485 if eval "test \"`echo '$ac_cv_func_'pow`\" = yes"; then
8486 echo "$ac_t""yes" 1>&6
8489 echo "$ac_t""no" 1>&6
8493 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
8494 echo $ac_n "checking for png.h""... $ac_c" 1>&6
8495 echo "configure:8496: checking for png.h" >&5
8497 cat > conftest.$ac_ext <<EOF
8498 #line 8499 "configure"
8499 #include "confdefs.h"
8502 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8503 { (eval echo configure:8504: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8504 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8505 if test -z "$ac_err"; then
8507 eval "ac_cv_header_$ac_safe=yes"
8510 echo "configure: failed program was:" >&5
8511 cat conftest.$ac_ext >&5
8513 eval "ac_cv_header_$ac_safe=no"
8516 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8517 echo "$ac_t""yes" 1>&6
8520 echo "$ac_t""no" 1>&6
8524 test -z "$with_png" && {
8525 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6
8526 echo "configure:8527: checking for png_read_image in -lpng" >&5
8527 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
8529 xe_check_libs=" -lpng "
8530 cat > conftest.$ac_ext <<EOF
8531 #line 8532 "configure"
8532 #include "confdefs.h"
8533 /* Override any gcc2 internal prototype to avoid an error. */
8534 /* We use char because int might match the return type of a gcc2
8535 builtin and then its argument prototype would still apply. */
8536 char png_read_image();
8542 if { (eval echo configure:8543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8544 eval "ac_cv_lib_$ac_lib_var=yes"
8546 echo "configure: failed program was:" >&5
8547 cat conftest.$ac_ext >&5
8549 eval "ac_cv_lib_$ac_lib_var=no"
8554 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8555 echo "$ac_t""yes" 1>&6
8558 echo "$ac_t""no" 1>&6
8563 if test -z "$with_png"; then
8564 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6
8565 echo "configure:8566: checking for workable png version information" >&5
8566 xe_check_libs="-lpng -lz"
8567 cat > conftest.$ac_ext <<EOF
8568 #line 8569 "configure"
8569 #include "confdefs.h"
8571 int main(int c, char **v) {
8572 if (c == 1) return 0;
8573 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1;
8574 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;}
8576 if { (eval echo configure:8577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
8578 ./conftest dummy_arg; png_status=$?;
8579 if test "$png_status" = "0"; then
8583 if test "$png_status" = "1"; then
8584 png_problem="PNG library version and header file don't match!"
8585 elif test "$png_status" = "2"; then
8586 png_problem="PNG library version too old (pre 1.0.2)!"
8589 *** WARNING *** $png_problem
8590 I'm not touching that with a 10-foot pole!
8591 If you really want to use the installed version of libPNG, rerun
8592 configure and add '--with-png=yes', but don't blame me if XEmacs crashes!"
8596 echo "configure: failed program was:" >&5
8597 cat conftest.$ac_ext >&5
8603 echo "$ac_t""$with_png" 1>&6
8605 if test "$with_png" = "yes"; then
8606 { test "$extra_verbose" = "yes" && cat << \EOF
8609 cat >> confdefs.h <<\EOF
8614 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi
8617 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
8618 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
8619 echo "configure:8620: checking for tiffio.h" >&5
8621 cat > conftest.$ac_ext <<EOF
8622 #line 8623 "configure"
8623 #include "confdefs.h"
8626 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8627 { (eval echo configure:8628: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8628 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8629 if test -z "$ac_err"; then
8631 eval "ac_cv_header_$ac_safe=yes"
8634 echo "configure: failed program was:" >&5
8635 cat conftest.$ac_ext >&5
8637 eval "ac_cv_header_$ac_safe=no"
8640 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8641 echo "$ac_t""yes" 1>&6
8644 echo "$ac_t""no" 1>&6
8648 test -z "$with_tiff" && {
8649 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6
8650 echo "configure:8651: checking for TIFFClientOpen in -ltiff" >&5
8651 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'`
8653 xe_check_libs=" -ltiff "
8654 cat > conftest.$ac_ext <<EOF
8655 #line 8656 "configure"
8656 #include "confdefs.h"
8657 /* Override any gcc2 internal prototype to avoid an error. */
8658 /* We use char because int might match the return type of a gcc2
8659 builtin and then its argument prototype would still apply. */
8660 char TIFFClientOpen();
8666 if { (eval echo configure:8667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8668 eval "ac_cv_lib_$ac_lib_var=yes"
8670 echo "configure: failed program was:" >&5
8671 cat conftest.$ac_ext >&5
8673 eval "ac_cv_lib_$ac_lib_var=no"
8678 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8679 echo "$ac_t""yes" 1>&6
8682 echo "$ac_t""no" 1>&6
8687 test -z "$with_tiff" && with_tiff=yes
8688 if test "$with_tiff" = "yes"; then
8689 { test "$extra_verbose" = "yes" && cat << \EOF
8692 cat >> confdefs.h <<\EOF
8697 libs_x="-ltiff $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltiff\" to \$libs_x"; fi
8702 if test "$with_gtk" = "yes"; then
8703 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
8704 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
8705 echo "configure:8706: checking for compface.h" >&5
8707 cat > conftest.$ac_ext <<EOF
8708 #line 8709 "configure"
8709 #include "confdefs.h"
8710 #include <compface.h>
8712 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8713 { (eval echo configure:8714: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8714 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8715 if test -z "$ac_err"; then
8717 eval "ac_cv_header_$ac_safe=yes"
8720 echo "configure: failed program was:" >&5
8721 cat conftest.$ac_ext >&5
8723 eval "ac_cv_header_$ac_safe=no"
8726 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8727 echo "$ac_t""yes" 1>&6
8730 echo "$ac_t""no" 1>&6
8734 test -z "$with_xface" && {
8735 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
8736 echo "configure:8737: checking for UnGenFace in -lcompface" >&5
8737 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
8739 xe_check_libs=" -lcompface "
8740 cat > conftest.$ac_ext <<EOF
8741 #line 8742 "configure"
8742 #include "confdefs.h"
8743 /* Override any gcc2 internal prototype to avoid an error. */
8744 /* We use char because int might match the return type of a gcc2
8745 builtin and then its argument prototype would still apply. */
8752 if { (eval echo configure:8753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8754 eval "ac_cv_lib_$ac_lib_var=yes"
8756 echo "configure: failed program was:" >&5
8757 cat conftest.$ac_ext >&5
8759 eval "ac_cv_lib_$ac_lib_var=no"
8764 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8765 echo "$ac_t""yes" 1>&6
8768 echo "$ac_t""no" 1>&6
8773 test -z "$with_xface" && with_xface=yes
8774 if test "$with_xface" = "yes"; then
8775 { test "$extra_verbose" = "yes" && cat << \EOF
8778 cat >> confdefs.h <<\EOF
8779 #define HAVE_XFACE 1
8783 libs_gtk="-lcompface $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_gtk"; fi
8789 if test "$with_x11" = "yes"; then
8790 echo "checking for X11 graphics libraries" 1>&6
8791 echo "configure:8792: checking for X11 graphics libraries" >&5
8794 if test "$with_x11" = "yes" -a "$with_widgets" = "athena"; then
8795 echo "checking for the Athena widgets" 1>&6
8796 echo "configure:8797: checking for the Athena widgets" >&5
8798 case "$with_athena" in
8799 "xaw" | "") athena_variant=Xaw athena_3d=no ;;
8800 "3d") athena_variant=Xaw3d athena_3d=yes ;;
8801 "next") athena_variant=neXtaw athena_3d=yes ;;
8802 "95") athena_variant=Xaw95 athena_3d=yes ;;
8803 "xpm") athena_variant=XawXpm athena_3d=yes ;;
8804 *) { echo "Error:" "Unknown Athena widget set \`$with_athena'. This should not happen." >&2; exit 1; } ;;
8807 if test "$athena_3d" = "no"; then
8809 echo $ac_n "checking for XawScrollbarSetThumb in -l$athena_variant""... $ac_c" 1>&6
8810 echo "configure:8811: checking for XawScrollbarSetThumb in -l$athena_variant" >&5
8811 ac_lib_var=`echo $athena_variant'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
8813 xe_check_libs=" -l$athena_variant "
8814 cat > conftest.$ac_ext <<EOF
8815 #line 8816 "configure"
8816 #include "confdefs.h"
8817 /* Override any gcc2 internal prototype to avoid an error. */
8818 /* We use char because int might match the return type of a gcc2
8819 builtin and then its argument prototype would still apply. */
8820 char XawScrollbarSetThumb();
8823 XawScrollbarSetThumb()
8826 if { (eval echo configure:8827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8828 eval "ac_cv_lib_$ac_lib_var=yes"
8830 echo "configure: failed program was:" >&5
8831 cat conftest.$ac_ext >&5
8833 eval "ac_cv_lib_$ac_lib_var=no"
8838 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8839 echo "$ac_t""yes" 1>&6
8841 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
8842 echo "configure:8843: checking for threeDClassRec in -l$athena_variant" >&5
8843 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
8845 xe_check_libs=" -l$athena_variant "
8846 cat > conftest.$ac_ext <<EOF
8847 #line 8848 "configure"
8848 #include "confdefs.h"
8849 /* Override any gcc2 internal prototype to avoid an error. */
8850 /* We use char because int might match the return type of a gcc2
8851 builtin and then its argument prototype would still apply. */
8852 char threeDClassRec();
8858 if { (eval echo configure:8859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8860 eval "ac_cv_lib_$ac_lib_var=yes"
8862 echo "configure: failed program was:" >&5
8863 cat conftest.$ac_ext >&5
8865 eval "ac_cv_lib_$ac_lib_var=no"
8870 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8871 echo "$ac_t""yes" 1>&6
8872 echo "configure: warning: "Could not find a non-3d Athena widget library."" 1>&2
8874 echo "$ac_t""no" 1>&6
8875 athena_lib=$athena_variant
8881 echo "$ac_t""no" 1>&6
8882 echo "configure: warning: "Could not find an Athena widget library."" 1>&2
8888 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
8889 echo "configure:8890: checking for threeDClassRec in -l$athena_variant" >&5
8890 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
8892 xe_check_libs=" -l$athena_variant "
8893 cat > conftest.$ac_ext <<EOF
8894 #line 8895 "configure"
8895 #include "confdefs.h"
8896 /* Override any gcc2 internal prototype to avoid an error. */
8897 /* We use char because int might match the return type of a gcc2
8898 builtin and then its argument prototype would still apply. */
8899 char threeDClassRec();
8905 if { (eval echo configure:8906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8907 eval "ac_cv_lib_$ac_lib_var=yes"
8909 echo "configure: failed program was:" >&5
8910 cat conftest.$ac_ext >&5
8912 eval "ac_cv_lib_$ac_lib_var=no"
8917 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8918 echo "$ac_t""yes" 1>&6
8919 athena_lib=$athena_variant
8921 echo "$ac_t""no" 1>&6
8922 echo $ac_n "checking for threeDClassRec in -lXaw""... $ac_c" 1>&6
8923 echo "configure:8924: checking for threeDClassRec in -lXaw" >&5
8924 ac_lib_var=`echo Xaw'_'threeDClassRec | sed 'y%./+-%__p_%'`
8926 xe_check_libs=" -lXaw "
8927 cat > conftest.$ac_ext <<EOF
8928 #line 8929 "configure"
8929 #include "confdefs.h"
8930 /* Override any gcc2 internal prototype to avoid an error. */
8931 /* We use char because int might match the return type of a gcc2
8932 builtin and then its argument prototype would still apply. */
8933 char threeDClassRec();
8939 if { (eval echo configure:8940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8941 eval "ac_cv_lib_$ac_lib_var=yes"
8943 echo "configure: failed program was:" >&5
8944 cat conftest.$ac_ext >&5
8946 eval "ac_cv_lib_$ac_lib_var=no"
8951 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8952 echo "$ac_t""yes" 1>&6
8954 echo "configure: warning: "Assuming that libXaw is actually $athena_variant."" 1>&2;
8957 echo "$ac_t""no" 1>&6
8958 echo "configure: warning: "Could not find a 3d Athena widget library that looked like $athena_variant."" 1>&2
8967 if test "$athena_3d" = "no"; then
8968 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
8969 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
8970 echo "configure:8971: checking for X11/Xaw/ThreeD.h" >&5
8972 cat > conftest.$ac_ext <<EOF
8973 #line 8974 "configure"
8974 #include "confdefs.h"
8975 #include <X11/Xaw/ThreeD.h>
8977 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8978 { (eval echo configure:8979: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8979 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8980 if test -z "$ac_err"; then
8982 eval "ac_cv_header_$ac_safe=yes"
8985 echo "configure: failed program was:" >&5
8986 cat conftest.$ac_ext >&5
8988 eval "ac_cv_header_$ac_safe=no"
8991 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8992 echo "$ac_t""yes" 1>&6
8993 echo "configure: warning: "Could not find a non-3d Athena header set."" 1>&2
8995 echo "$ac_t""no" 1>&6
8996 ac_safe=`echo "X11/Xaw/XawInit.h" | sed 'y%./+-%__p_%'`
8997 echo $ac_n "checking for X11/Xaw/XawInit.h""... $ac_c" 1>&6
8998 echo "configure:8999: checking for X11/Xaw/XawInit.h" >&5
9000 cat > conftest.$ac_ext <<EOF
9001 #line 9002 "configure"
9002 #include "confdefs.h"
9003 #include <X11/Xaw/XawInit.h>
9005 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9006 { (eval echo configure:9007: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9007 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9008 if test -z "$ac_err"; then
9010 eval "ac_cv_header_$ac_safe=yes"
9013 echo "configure: failed program was:" >&5
9014 cat conftest.$ac_ext >&5
9016 eval "ac_cv_header_$ac_safe=no"
9019 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9020 echo "$ac_t""yes" 1>&6
9021 athena_h_path=X11/Xaw
9023 echo "$ac_t""no" 1>&6
9024 echo "configure: warning: "Could not find a non-3d Athena header set."" 1>&2
9030 ac_safe=`echo "X11/$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
9031 echo $ac_n "checking for X11/$athena_variant/XawInit.h""... $ac_c" 1>&6
9032 echo "configure:9033: checking for X11/$athena_variant/XawInit.h" >&5
9034 cat > conftest.$ac_ext <<EOF
9035 #line 9036 "configure"
9036 #include "confdefs.h"
9037 #include <X11/$athena_variant/XawInit.h>
9039 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9040 { (eval echo configure:9041: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9041 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9042 if test -z "$ac_err"; then
9044 eval "ac_cv_header_$ac_safe=yes"
9047 echo "configure: failed program was:" >&5
9048 cat conftest.$ac_ext >&5
9050 eval "ac_cv_header_$ac_safe=no"
9053 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9054 echo "$ac_t""yes" 1>&6
9055 ac_safe=`echo "X11/$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
9056 echo $ac_n "checking for X11/$athena_variant/ThreeD.h""... $ac_c" 1>&6
9057 echo "configure:9058: checking for X11/$athena_variant/ThreeD.h" >&5
9059 cat > conftest.$ac_ext <<EOF
9060 #line 9061 "configure"
9061 #include "confdefs.h"
9062 #include <X11/$athena_variant/ThreeD.h>
9064 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9065 { (eval echo configure:9066: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9066 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9067 if test -z "$ac_err"; then
9069 eval "ac_cv_header_$ac_safe=yes"
9072 echo "configure: failed program was:" >&5
9073 cat conftest.$ac_ext >&5
9075 eval "ac_cv_header_$ac_safe=no"
9078 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9079 echo "$ac_t""yes" 1>&6
9080 athena_h_path=X11/$athena_variant
9082 echo "$ac_t""no" 1>&6
9086 echo "$ac_t""no" 1>&6
9090 if test -z "$athena_h_path"; then
9091 ac_safe=`echo "$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
9092 echo $ac_n "checking for $athena_variant/XawInit.h""... $ac_c" 1>&6
9093 echo "configure:9094: checking for $athena_variant/XawInit.h" >&5
9095 cat > conftest.$ac_ext <<EOF
9096 #line 9097 "configure"
9097 #include "confdefs.h"
9098 #include <$athena_variant/XawInit.h>
9100 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9101 { (eval echo configure:9102: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9102 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9103 if test -z "$ac_err"; then
9105 eval "ac_cv_header_$ac_safe=yes"
9108 echo "configure: failed program was:" >&5
9109 cat conftest.$ac_ext >&5
9111 eval "ac_cv_header_$ac_safe=no"
9114 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9115 echo "$ac_t""yes" 1>&6
9116 ac_safe=`echo "$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
9117 echo $ac_n "checking for $athena_variant/ThreeD.h""... $ac_c" 1>&6
9118 echo "configure:9119: checking for $athena_variant/ThreeD.h" >&5
9120 cat > conftest.$ac_ext <<EOF
9121 #line 9122 "configure"
9122 #include "confdefs.h"
9123 #include <$athena_variant/ThreeD.h>
9125 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9126 { (eval echo configure:9127: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9127 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9128 if test -z "$ac_err"; then
9130 eval "ac_cv_header_$ac_safe=yes"
9133 echo "configure: failed program was:" >&5
9134 cat conftest.$ac_ext >&5
9136 eval "ac_cv_header_$ac_safe=no"
9139 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9140 echo "$ac_t""yes" 1>&6
9141 athena_h_path=$athena_variant
9143 echo "$ac_t""no" 1>&6
9147 echo "$ac_t""no" 1>&6
9152 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
9153 ac_safe=`echo "X11/Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
9154 echo $ac_n "checking for X11/Xaw3d/XawInit.h""... $ac_c" 1>&6
9155 echo "configure:9156: checking for X11/Xaw3d/XawInit.h" >&5
9157 cat > conftest.$ac_ext <<EOF
9158 #line 9159 "configure"
9159 #include "confdefs.h"
9160 #include <X11/Xaw3d/XawInit.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 ac_safe=`echo "X11/Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
9179 echo $ac_n "checking for X11/Xaw3d/ThreeD.h""... $ac_c" 1>&6
9180 echo "configure:9181: checking for X11/Xaw3d/ThreeD.h" >&5
9182 cat > conftest.$ac_ext <<EOF
9183 #line 9184 "configure"
9184 #include "confdefs.h"
9185 #include <X11/Xaw3d/ThreeD.h>
9187 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9188 { (eval echo configure:9189: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9189 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9190 if test -z "$ac_err"; then
9192 eval "ac_cv_header_$ac_safe=yes"
9195 echo "configure: failed program was:" >&5
9196 cat conftest.$ac_ext >&5
9198 eval "ac_cv_header_$ac_safe=no"
9201 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9202 echo "$ac_t""yes" 1>&6
9204 echo "configure: warning: "Assuming that X11/Xaw3d headers are suitable for $athena_variant."" 1>&2
9205 athena_h_path=X11/Xaw3d
9208 echo "$ac_t""no" 1>&6
9212 echo "$ac_t""no" 1>&6
9217 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
9218 ac_safe=`echo "Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
9219 echo $ac_n "checking for Xaw3d/XawInit.h""... $ac_c" 1>&6
9220 echo "configure:9221: checking for Xaw3d/XawInit.h" >&5
9222 cat > conftest.$ac_ext <<EOF
9223 #line 9224 "configure"
9224 #include "confdefs.h"
9225 #include <Xaw3d/XawInit.h>
9227 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9228 { (eval echo configure:9229: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9229 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9230 if test -z "$ac_err"; then
9232 eval "ac_cv_header_$ac_safe=yes"
9235 echo "configure: failed program was:" >&5
9236 cat conftest.$ac_ext >&5
9238 eval "ac_cv_header_$ac_safe=no"
9241 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9242 echo "$ac_t""yes" 1>&6
9243 ac_safe=`echo "Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
9244 echo $ac_n "checking for Xaw3d/ThreeD.h""... $ac_c" 1>&6
9245 echo "configure:9246: checking for Xaw3d/ThreeD.h" >&5
9247 cat > conftest.$ac_ext <<EOF
9248 #line 9249 "configure"
9249 #include "confdefs.h"
9250 #include <Xaw3d/ThreeD.h>
9252 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9253 { (eval echo configure:9254: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9254 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9255 if test -z "$ac_err"; then
9257 eval "ac_cv_header_$ac_safe=yes"
9260 echo "configure: failed program was:" >&5
9261 cat conftest.$ac_ext >&5
9263 eval "ac_cv_header_$ac_safe=no"
9266 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9267 echo "$ac_t""yes" 1>&6
9269 echo "configure: warning: "Assuming that Xaw3d headers are suitable for $athena_variant."" 1>&2
9273 echo "$ac_t""no" 1>&6
9277 echo "$ac_t""no" 1>&6
9282 if test -z "$athena_h_path"; then
9283 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
9284 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
9285 echo "configure:9286: checking for X11/Xaw/ThreeD.h" >&5
9287 cat > conftest.$ac_ext <<EOF
9288 #line 9289 "configure"
9289 #include "confdefs.h"
9290 #include <X11/Xaw/ThreeD.h>
9292 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9293 { (eval echo configure:9294: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9294 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9295 if test -z "$ac_err"; then
9297 eval "ac_cv_header_$ac_safe=yes"
9300 echo "configure: failed program was:" >&5
9301 cat conftest.$ac_ext >&5
9303 eval "ac_cv_header_$ac_safe=no"
9306 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9307 echo "$ac_t""yes" 1>&6
9309 echo "configure: warning: "Assuming that X11/Xaw headers are suitable for $athena_variant."" 1>&2
9310 athena_h_path=X11/Xaw
9313 echo "$ac_t""no" 1>&6
9314 echo "configure: warning: "Could not find a suitable 3d Athena header set."" 1>&2
9320 if test -n "$athena_lib" -a -n "$athena_h_path"; then
9329 if test "$with_x11" = "yes"; then
9330 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
9331 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
9332 echo "configure:9333: checking for Xm/Xm.h" >&5
9334 cat > conftest.$ac_ext <<EOF
9335 #line 9336 "configure"
9336 #include "confdefs.h"
9339 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9340 { (eval echo configure:9341: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9341 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9342 if test -z "$ac_err"; then
9344 eval "ac_cv_header_$ac_safe=yes"
9347 echo "configure: failed program was:" >&5
9348 cat conftest.$ac_ext >&5
9350 eval "ac_cv_header_$ac_safe=no"
9353 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9354 echo "$ac_t""yes" 1>&6
9356 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
9357 echo "configure:9358: checking for XmStringFree in -lXm" >&5
9358 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
9360 xe_check_libs=" -lXm "
9361 cat > conftest.$ac_ext <<EOF
9362 #line 9363 "configure"
9363 #include "confdefs.h"
9364 /* Override any gcc2 internal prototype to avoid an error. */
9365 /* We use char because int might match the return type of a gcc2
9366 builtin and then its argument prototype would still apply. */
9367 char XmStringFree();
9373 if { (eval echo configure:9374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9375 eval "ac_cv_lib_$ac_lib_var=yes"
9377 echo "configure: failed program was:" >&5
9378 cat conftest.$ac_ext >&5
9380 eval "ac_cv_lib_$ac_lib_var=no"
9385 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9386 echo "$ac_t""yes" 1>&6
9389 echo "$ac_t""no" 1>&6
9395 echo "$ac_t""no" 1>&6
9400 if test "$have_motif" = "yes"; then
9401 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6
9402 echo "configure:9403: checking for Lesstif" >&5
9403 cat > conftest.$ac_ext <<EOF
9404 #line 9405 "configure"
9405 #include "confdefs.h"
9407 #ifdef LESSTIF_VERSION
9412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9413 egrep "yes" >/dev/null 2>&1; then
9422 echo "$ac_t""$have_lesstif" 1>&6
9427 case "$with_menubars" in "" | "yes" | "athena" )
9428 with_menubars="lucid" ;;
9430 case "$with_dialogs" in "" | "yes" | "lucid" )
9431 if test "$have_motif" = "yes"; then with_dialogs="motif"
9432 elif test "$have_xaw" = "yes"; then with_dialogs="athena"
9433 else with_dialogs=no
9436 case "$with_scrollbars" in "" | "yes" )
9437 with_scrollbars="lucid" ;;
9439 case "$with_widgets" in "" | "yes" | "lucid")
9440 if test "$have_motif" = "yes"; then with_widgets="motif"
9441 elif test "$have_xaw" = "yes"; then with_widgets="athena"
9442 else with_widgets=no
9446 all_widgets="$with_menubars $with_scrollbars $with_dialogs $with_toolbars $with_widgets"
9448 case "$all_widgets" in
9450 if test "$have_xaw" != "yes"; then
9451 { echo "Error:" "Could not find a suitable Athena library to build with." >&2; exit 1; }
9454 lwlib_objs="$lwlib_objs lwlib-Xaw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xaw.o\" to \$lwlib_objs"; fi
9456 libs_x="-l$athena_lib $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$athena_lib\" to \$libs_x"; fi
9458 { test "$extra_verbose" = "yes" && cat << EOF
9459 Defining ATHENA_Scrollbar_h_ = "$athena_h_path/Scrollbar.h"
9461 cat >> confdefs.h <<EOF
9462 #define ATHENA_Scrollbar_h_ "$athena_h_path/Scrollbar.h"
9466 { test "$extra_verbose" = "yes" && cat << EOF
9467 Defining ATHENA_Dialog_h_ = "$athena_h_path/Dialog.h"
9469 cat >> confdefs.h <<EOF
9470 #define ATHENA_Dialog_h_ "$athena_h_path/Dialog.h"
9474 { test "$extra_verbose" = "yes" && cat << EOF
9475 Defining ATHENA_Form_h_ = "$athena_h_path/Form.h"
9477 cat >> confdefs.h <<EOF
9478 #define ATHENA_Form_h_ "$athena_h_path/Form.h"
9482 { test "$extra_verbose" = "yes" && cat << EOF
9483 Defining ATHENA_Command_h_ = "$athena_h_path/Command.h"
9485 cat >> confdefs.h <<EOF
9486 #define ATHENA_Command_h_ "$athena_h_path/Command.h"
9490 { test "$extra_verbose" = "yes" && cat << EOF
9491 Defining ATHENA_Label_h_ = "$athena_h_path/Label.h"
9493 cat >> confdefs.h <<EOF
9494 #define ATHENA_Label_h_ "$athena_h_path/Label.h"
9498 { test "$extra_verbose" = "yes" && cat << EOF
9499 Defining ATHENA_LabelP_h_ = "$athena_h_path/LabelP.h"
9501 cat >> confdefs.h <<EOF
9502 #define ATHENA_LabelP_h_ "$athena_h_path/LabelP.h"
9506 { test "$extra_verbose" = "yes" && cat << EOF
9507 Defining ATHENA_Toggle_h_ = "$athena_h_path/Toggle.h"
9509 cat >> confdefs.h <<EOF
9510 #define ATHENA_Toggle_h_ "$athena_h_path/Toggle.h"
9514 { test "$extra_verbose" = "yes" && cat << EOF
9515 Defining ATHENA_ToggleP_h_ = "$athena_h_path/ToggleP.h"
9517 cat >> confdefs.h <<EOF
9518 #define ATHENA_ToggleP_h_ "$athena_h_path/ToggleP.h"
9522 { test "$extra_verbose" = "yes" && cat << EOF
9523 Defining ATHENA_AsciiText_h_ = "$athena_h_path/AsciiText.h"
9525 cat >> confdefs.h <<EOF
9526 #define ATHENA_AsciiText_h_ "$athena_h_path/AsciiText.h"
9530 { test "$extra_verbose" = "yes" && cat << EOF
9531 Defining ATHENA_XawInit_h_ = "$athena_h_path/XawInit.h"
9533 cat >> confdefs.h <<EOF
9534 #define ATHENA_XawInit_h_ "$athena_h_path/XawInit.h"
9539 { test "$extra_verbose" = "yes" && cat << \EOF
9540 Defining LWLIB_USES_ATHENA
9542 cat >> confdefs.h <<\EOF
9543 #define LWLIB_USES_ATHENA 1
9547 { test "$extra_verbose" = "yes" && cat << \EOF
9548 Defining NEED_ATHENA
9550 cat >> confdefs.h <<\EOF
9551 #define NEED_ATHENA 1
9557 if test "$athena_3d" = "yes"; then
9558 { test "$extra_verbose" = "yes" && cat << \EOF
9559 Defining HAVE_ATHENA_3D
9561 cat >> confdefs.h <<\EOF
9562 #define HAVE_ATHENA_3D 1
9570 case "$all_widgets" in *motif* )
9571 { test "$extra_verbose" = "yes" && cat << \EOF
9572 Defining LWLIB_USES_MOTIF
9574 cat >> confdefs.h <<\EOF
9575 #define LWLIB_USES_MOTIF 1
9579 { test "$extra_verbose" = "yes" && cat << \EOF
9582 cat >> confdefs.h <<\EOF
9583 #define NEED_MOTIF 1
9587 lwlib_objs="$lwlib_objs lwlib-Xm.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xm.o\" to \$lwlib_objs"; fi
9591 test "$with_menubars" = "lucid" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
9592 test "$with_menubars" = "motif" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
9593 test "$with_scrollbars" = "lucid" && lwlib_objs="$lwlib_objs xlwscrollbar.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwscrollbar.o\" to \$lwlib_objs"; fi
9594 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
9595 lwlib_objs="$lwlib_objs xlwtabs.o xlwgcs.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwtabs.o xlwgcs.o\" to \$lwlib_objs"; fi
9596 case "$with_widgets" in athena* )
9597 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;;
9599 case "$all_widgets" in *lucid* )
9600 { test "$extra_verbose" = "yes" && cat << \EOF
9603 cat >> confdefs.h <<\EOF
9604 #define NEED_LUCID 1
9608 lwlib_objs="$lwlib_objs lwlib-Xlw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xlw.o\" to \$lwlib_objs"; fi ;;
9613 test "$with_scrollbars" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
9614 Defining LWLIB_SCROLLBARS_ATHENA
9616 cat >> confdefs.h <<\EOF
9617 #define LWLIB_SCROLLBARS_ATHENA 1
9621 test "$with_dialogs" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
9622 Defining LWLIB_DIALOGS_ATHENA
9624 cat >> confdefs.h <<\EOF
9625 #define LWLIB_DIALOGS_ATHENA 1
9630 if test "$athena_3d" = "yes"; then
9631 test "$with_scrollbars" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
9632 Defining LWLIB_SCROLLBARS_ATHENA3D
9634 cat >> confdefs.h <<\EOF
9635 #define LWLIB_SCROLLBARS_ATHENA3D 1
9639 test "$with_dialogs" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
9640 Defining LWLIB_DIALOGS_ATHENA3D
9642 cat >> confdefs.h <<\EOF
9643 #define LWLIB_DIALOGS_ATHENA3D 1
9649 case "$with_widgets" in athena* ) { test "$extra_verbose" = "yes" && cat << \EOF
9650 Defining LWLIB_WIDGETS_ATHENA
9652 cat >> confdefs.h <<\EOF
9653 #define LWLIB_WIDGETS_ATHENA 1
9657 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
9658 { test "$extra_verbose" = "yes" && cat << \EOF
9659 Defining LWLIB_TABS_LUCID
9661 cat >> confdefs.h <<\EOF
9662 #define LWLIB_TABS_LUCID 1
9667 test "$with_menubars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9668 Defining HAVE_MENUBARS
9670 cat >> confdefs.h <<\EOF
9671 #define HAVE_MENUBARS 1
9675 test "$with_scrollbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9676 Defining HAVE_SCROLLBARS
9678 cat >> confdefs.h <<\EOF
9679 #define HAVE_SCROLLBARS 1
9683 test "$with_dialogs" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9684 Defining HAVE_DIALOGS
9686 cat >> confdefs.h <<\EOF
9687 #define HAVE_DIALOGS 1
9691 test "$with_toolbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9692 Defining HAVE_TOOLBARS
9694 cat >> confdefs.h <<\EOF
9695 #define HAVE_TOOLBARS 1
9699 test "$with_widgets" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9700 Defining HAVE_WIDGETS
9702 cat >> confdefs.h <<\EOF
9703 #define HAVE_WIDGETS 1
9708 test "$with_menubars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
9709 Defining LWLIB_MENUBARS_LUCID
9711 cat >> confdefs.h <<\EOF
9712 #define LWLIB_MENUBARS_LUCID 1
9716 test "$with_scrollbars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
9717 Defining LWLIB_SCROLLBARS_LUCID
9719 cat >> confdefs.h <<\EOF
9720 #define LWLIB_SCROLLBARS_LUCID 1
9725 test "$with_menubars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9726 Defining LWLIB_MENUBARS_MOTIF
9728 cat >> confdefs.h <<\EOF
9729 #define LWLIB_MENUBARS_MOTIF 1
9733 test "$with_scrollbars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9734 Defining LWLIB_SCROLLBARS_MOTIF
9736 cat >> confdefs.h <<\EOF
9737 #define LWLIB_SCROLLBARS_MOTIF 1
9741 test "$with_dialogs" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9742 Defining LWLIB_DIALOGS_MOTIF
9744 cat >> confdefs.h <<\EOF
9745 #define LWLIB_DIALOGS_MOTIF 1
9749 test "$with_widgets" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9750 Defining LWLIB_WIDGETS_MOTIF
9752 cat >> confdefs.h <<\EOF
9753 #define LWLIB_WIDGETS_MOTIF 1
9758 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar.o" && if test "$extra_verbose" = "yes"; then
9759 echo " xemacs will be linked with \"menubar.o\""
9761 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar.o" && if test "$extra_verbose" = "yes"; then
9762 echo " xemacs will be linked with \"scrollbar.o\""
9764 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog.o" && if test "$extra_verbose" = "yes"; then
9765 echo " xemacs will be linked with \"dialog.o\""
9767 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar.o" && if test "$extra_verbose" = "yes"; then
9768 echo " xemacs will be linked with \"toolbar.o\""
9771 if test "$with_gtk" = "yes"; then
9772 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-gtk.o" && if test "$extra_verbose" = "yes"; then
9773 echo " xemacs will be linked with \"menubar-gtk.o\""
9775 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-gtk.o" && if test "$extra_verbose" = "yes"; then
9776 echo " xemacs will be linked with \"scrollbar-gtk.o\""
9778 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-gtk.o" && if test "$extra_verbose" = "yes"; then
9779 echo " xemacs will be linked with \"dialog-gtk.o\""
9781 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-gtk.o" && if test "$extra_verbose" = "yes"; then
9782 echo " xemacs will be linked with \"toolbar-gtk.o\""
9784 test "$all_widgets" != "no no no no no" && extra_objs="$extra_objs gui-gtk.o" && if test "$extra_verbose" = "yes"; then
9785 echo " xemacs will be linked with \"gui-gtk.o\""
9789 if test "$with_x11" = "yes"; then
9790 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-x.o" && if test "$extra_verbose" = "yes"; then
9791 echo " xemacs will be linked with \"menubar-x.o\""
9793 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-x.o" && if test "$extra_verbose" = "yes"; then
9794 echo " xemacs will be linked with \"scrollbar-x.o\""
9796 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-x.o" && if test "$extra_verbose" = "yes"; then
9797 echo " xemacs will be linked with \"dialog-x.o\""
9799 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-x.o" && if test "$extra_verbose" = "yes"; then
9800 echo " xemacs will be linked with \"toolbar-x.o\""
9802 test "$all_widgets" != "no no no no no" && extra_objs="$extra_objs gui-x.o" && if test "$extra_verbose" = "yes"; then
9803 echo " xemacs will be linked with \"gui-x.o\""
9808 test -z "$with_mule" && with_mule=no
9809 test -z "$with_file_coding" && with_file_coding=no
9812 if test "$with_file_coding" = "yes" && test "$with_mule" = "no"; then
9813 { test "$extra_verbose" = "yes" && cat << \EOF
9814 Defining FILE_CODING
9816 cat >> confdefs.h <<\EOF
9817 #define FILE_CODING 1
9821 extra_objs="$extra_objs file-coding.o" && if test "$extra_verbose" = "yes"; then
9822 echo " xemacs will be linked with \"file-coding.o\""
9826 if test "$with_mule" = "yes" ; then
9827 echo "checking for Mule-related features" 1>&6
9828 echo "configure:9829: checking for Mule-related features" >&5
9829 { test "$extra_verbose" = "yes" && cat << \EOF
9832 cat >> confdefs.h <<\EOF
9837 { test "$extra_verbose" = "yes" && cat << \EOF
9838 Defining FILE_CODING
9840 cat >> confdefs.h <<\EOF
9841 #define FILE_CODING 1
9845 extra_objs="$extra_objs mule.o mule-ccl.o mule-charset.o file-coding.o" && if test "$extra_verbose" = "yes"; then
9846 echo " xemacs will be linked with \"mule.o mule-ccl.o mule-charset.o file-coding.o\""
9849 for ac_hdr in libintl.h
9851 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9852 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9853 echo "configure:9854: checking for $ac_hdr" >&5
9855 cat > conftest.$ac_ext <<EOF
9856 #line 9857 "configure"
9857 #include "confdefs.h"
9860 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9861 { (eval echo configure:9862: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9862 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9863 if test -z "$ac_err"; then
9865 eval "ac_cv_header_$ac_safe=yes"
9868 echo "configure: failed program was:" >&5
9869 cat conftest.$ac_ext >&5
9871 eval "ac_cv_header_$ac_safe=no"
9874 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9875 echo "$ac_t""yes" 1>&6
9876 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9877 { test "$extra_verbose" = "yes" && cat << EOF
9880 cat >> confdefs.h <<EOF
9881 #define $ac_tr_hdr 1
9886 echo "$ac_t""no" 1>&6
9891 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
9892 echo "configure:9893: checking for strerror in -lintl" >&5
9893 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
9895 xe_check_libs=" -lintl "
9896 cat > conftest.$ac_ext <<EOF
9897 #line 9898 "configure"
9898 #include "confdefs.h"
9899 /* Override any gcc2 internal prototype to avoid an error. */
9900 /* We use char because int might match the return type of a gcc2
9901 builtin and then its argument prototype would still apply. */
9908 if { (eval echo configure:9909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9910 eval "ac_cv_lib_$ac_lib_var=yes"
9912 echo "configure: failed program was:" >&5
9913 cat conftest.$ac_ext >&5
9915 eval "ac_cv_lib_$ac_lib_var=no"
9920 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9921 echo "$ac_t""yes" 1>&6
9922 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9923 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9924 { test "$extra_verbose" = "yes" && cat << EOF
9927 cat >> confdefs.h <<EOF
9928 #define $ac_tr_lib 1
9932 LIBS="-lintl $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lintl\" to \$LIBS"; fi
9935 echo "$ac_t""no" 1>&6
9940 echo "checking for Mule input methods" 1>&6
9941 echo "configure:9942: checking for Mule input methods" >&5
9942 case "$with_xim" in "" | "yes" )
9943 echo "checking for XIM" 1>&6
9944 echo "configure:9945: checking for XIM" >&5
9946 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6
9947 echo "configure:9948: checking for XOpenIM in -lX11" >&5
9948 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'`
9950 xe_check_libs=" -lX11 "
9951 cat > conftest.$ac_ext <<EOF
9952 #line 9953 "configure"
9953 #include "confdefs.h"
9954 /* Override any gcc2 internal prototype to avoid an error. */
9955 /* We use char because int might match the return type of a gcc2
9956 builtin and then its argument prototype would still apply. */
9963 if { (eval echo configure:9964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9965 eval "ac_cv_lib_$ac_lib_var=yes"
9967 echo "configure: failed program was:" >&5
9968 cat conftest.$ac_ext >&5
9970 eval "ac_cv_lib_$ac_lib_var=no"
9975 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9976 echo "$ac_t""yes" 1>&6
9979 echo "$ac_t""no" 1>&6
9984 if test "$have_motif $have_lesstif" = "yes no"; then
9986 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
9987 echo "configure:9988: checking for XmImMbLookupString in -lXm" >&5
9988 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
9990 xe_check_libs=" -lXm "
9991 cat > conftest.$ac_ext <<EOF
9992 #line 9993 "configure"
9993 #include "confdefs.h"
9994 /* Override any gcc2 internal prototype to avoid an error. */
9995 /* We use char because int might match the return type of a gcc2
9996 builtin and then its argument prototype would still apply. */
9997 char XmImMbLookupString();
10000 XmImMbLookupString()
10003 if { (eval echo configure:10004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10005 eval "ac_cv_lib_$ac_lib_var=yes"
10007 echo "configure: failed program was:" >&5
10008 cat conftest.$ac_ext >&5
10010 eval "ac_cv_lib_$ac_lib_var=no"
10015 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10016 echo "$ac_t""yes" 1>&6
10019 echo "$ac_t""no" 1>&6
10025 if test "$with_xim" != "no"; then
10026 { test "$extra_verbose" = "yes" && cat << \EOF
10029 cat >> confdefs.h <<\EOF
10034 if test "$with_xim" = "xlib"; then
10035 { test "$extra_verbose" = "yes" && cat << \EOF
10038 cat >> confdefs.h <<\EOF
10043 extra_objs="$extra_objs input-method-xlib.o" && if test "$extra_verbose" = "yes"; then
10044 echo " xemacs will be linked with \"input-method-xlib.o\""
10047 if test "$with_xim" = "motif"; then
10048 { test "$extra_verbose" = "yes" && cat << \EOF
10051 cat >> confdefs.h <<\EOF
10052 #define XIM_MOTIF 1
10057 extra_objs="$extra_objs input-method-motif.o" && if test "$extra_verbose" = "yes"; then
10058 echo " xemacs will be linked with \"input-method-motif.o\""
10061 if test "$with_xim" = "motif"; then
10066 if test "$with_xfs" = "yes" ; then
10067 echo "checking for XFontSet" 1>&6
10068 echo "configure:10069: checking for XFontSet" >&5
10070 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6
10071 echo "configure:10072: checking for XmbDrawString in -lX11" >&5
10072 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
10074 xe_check_libs=" -lX11 "
10075 cat > conftest.$ac_ext <<EOF
10076 #line 10077 "configure"
10077 #include "confdefs.h"
10078 /* Override any gcc2 internal prototype to avoid an error. */
10079 /* We use char because int might match the return type of a gcc2
10080 builtin and then its argument prototype would still apply. */
10081 char XmbDrawString();
10087 if { (eval echo configure:10088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10089 eval "ac_cv_lib_$ac_lib_var=yes"
10091 echo "configure: failed program was:" >&5
10092 cat conftest.$ac_ext >&5
10094 eval "ac_cv_lib_$ac_lib_var=no"
10099 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10100 echo "$ac_t""yes" 1>&6
10103 echo "$ac_t""no" 1>&6
10108 if test "$with_xfs" = "yes" && test "$with_menubars" = "lucid"; then
10109 { test "$extra_verbose" = "yes" && cat << \EOF
10110 Defining USE_XFONTSET
10112 cat >> confdefs.h <<\EOF
10113 #define USE_XFONTSET 1
10117 if test "$with_xim" = "no" ; then
10118 extra_objs="$extra_objs input-method-xlib.o" && if test "$extra_verbose" = "yes"; then
10119 echo " xemacs will be linked with \"input-method-xlib.o\""
10124 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
10125 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
10126 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
10127 echo "configure:10128: checking for wnn/jllib.h" >&5
10129 cat > conftest.$ac_ext <<EOF
10130 #line 10131 "configure"
10131 #include "confdefs.h"
10132 #include <wnn/jllib.h>
10134 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10135 { (eval echo configure:10136: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10136 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10137 if test -z "$ac_err"; then
10139 eval "ac_cv_header_$ac_safe=yes"
10142 echo "configure: failed program was:" >&5
10143 cat conftest.$ac_ext >&5
10145 eval "ac_cv_header_$ac_safe=no"
10148 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10149 echo "$ac_t""yes" 1>&6
10152 echo "$ac_t""no" 1>&6
10156 test -z "$with_wnn" && { ac_safe=`echo "wnn/commonhd.h" | sed 'y%./+-%__p_%'`
10157 echo $ac_n "checking for wnn/commonhd.h""... $ac_c" 1>&6
10158 echo "configure:10159: checking for wnn/commonhd.h" >&5
10160 cat > conftest.$ac_ext <<EOF
10161 #line 10162 "configure"
10162 #include "confdefs.h"
10163 #include <wnn/commonhd.h>
10165 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10166 { (eval echo configure:10167: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10167 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10168 if test -z "$ac_err"; then
10170 eval "ac_cv_header_$ac_safe=yes"
10173 echo "configure: failed program was:" >&5
10174 cat conftest.$ac_ext >&5
10176 eval "ac_cv_header_$ac_safe=no"
10179 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10180 echo "$ac_t""yes" 1>&6
10183 echo "$ac_t""no" 1>&6
10187 if test "$with_wnn" != "no"; then
10188 for ac_func in crypt
10190 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10191 echo "configure:10192: checking for $ac_func" >&5
10193 cat > conftest.$ac_ext <<EOF
10194 #line 10195 "configure"
10195 #include "confdefs.h"
10196 /* System header to define __stub macros and hopefully few prototypes,
10197 which can conflict with char $ac_func(); below. */
10198 #include <assert.h>
10199 /* Override any gcc2 internal prototype to avoid an error. */
10200 /* We use char because int might match the return type of a gcc2
10201 builtin and then its argument prototype would still apply. */
10206 /* The GNU C library defines this for functions which it implements
10207 to always fail with ENOSYS. Some functions are actually named
10208 something starting with __ and the normal name is an alias. */
10209 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10217 if { (eval echo configure:10218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10219 eval "ac_cv_func_$ac_func=yes"
10221 echo "configure: failed program was:" >&5
10222 cat conftest.$ac_ext >&5
10224 eval "ac_cv_func_$ac_func=no"
10228 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10229 echo "$ac_t""yes" 1>&6
10230 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10231 { test "$extra_verbose" = "yes" && cat << EOF
10232 Defining $ac_tr_func
10234 cat >> confdefs.h <<EOF
10235 #define $ac_tr_func 1
10240 echo "$ac_t""no" 1>&6
10244 test "$ac_cv_func_crypt" != "yes" && {
10245 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
10246 echo "configure:10247: checking for crypt in -lcrypt" >&5
10247 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
10249 xe_check_libs=" -lcrypt "
10250 cat > conftest.$ac_ext <<EOF
10251 #line 10252 "configure"
10252 #include "confdefs.h"
10253 /* Override any gcc2 internal prototype to avoid an error. */
10254 /* We use char because int might match the return type of a gcc2
10255 builtin and then its argument prototype would still apply. */
10262 if { (eval echo configure:10263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10264 eval "ac_cv_lib_$ac_lib_var=yes"
10266 echo "configure: failed program was:" >&5
10267 cat conftest.$ac_ext >&5
10269 eval "ac_cv_lib_$ac_lib_var=no"
10274 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10275 echo "$ac_t""yes" 1>&6
10276 ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10277 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10278 { test "$extra_verbose" = "yes" && cat << EOF
10279 Defining $ac_tr_lib
10281 cat >> confdefs.h <<EOF
10282 #define $ac_tr_lib 1
10286 LIBS="-lcrypt $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcrypt\" to \$LIBS"; fi
10289 echo "$ac_t""no" 1>&6
10294 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then
10296 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
10297 echo "configure:10298: checking for jl_dic_list_e in -lwnn" >&5
10298 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
10300 xe_check_libs=" -lwnn "
10301 cat > conftest.$ac_ext <<EOF
10302 #line 10303 "configure"
10303 #include "confdefs.h"
10304 /* Override any gcc2 internal prototype to avoid an error. */
10305 /* We use char because int might match the return type of a gcc2
10306 builtin and then its argument prototype would still apply. */
10307 char jl_dic_list_e();
10313 if { (eval echo configure:10314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10315 eval "ac_cv_lib_$ac_lib_var=yes"
10317 echo "configure: failed program was:" >&5
10318 cat conftest.$ac_ext >&5
10320 eval "ac_cv_lib_$ac_lib_var=no"
10325 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10326 echo "$ac_t""yes" 1>&6
10329 echo "$ac_t""no" 1>&6
10330 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6
10331 echo "configure:10332: checking for jl_dic_list_e in -lwnn4" >&5
10332 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
10334 xe_check_libs=" -lwnn4 "
10335 cat > conftest.$ac_ext <<EOF
10336 #line 10337 "configure"
10337 #include "confdefs.h"
10338 /* Override any gcc2 internal prototype to avoid an error. */
10339 /* We use char because int might match the return type of a gcc2
10340 builtin and then its argument prototype would still apply. */
10341 char jl_dic_list_e();
10347 if { (eval echo configure:10348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10349 eval "ac_cv_lib_$ac_lib_var=yes"
10351 echo "configure: failed program was:" >&5
10352 cat conftest.$ac_ext >&5
10354 eval "ac_cv_lib_$ac_lib_var=no"
10359 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10360 echo "$ac_t""yes" 1>&6
10363 echo "$ac_t""no" 1>&6
10364 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6
10365 echo "configure:10366: checking for jl_dic_list_e in -lwnn6" >&5
10366 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
10368 xe_check_libs=" -lwnn6 "
10369 cat > conftest.$ac_ext <<EOF
10370 #line 10371 "configure"
10371 #include "confdefs.h"
10372 /* Override any gcc2 internal prototype to avoid an error. */
10373 /* We use char because int might match the return type of a gcc2
10374 builtin and then its argument prototype would still apply. */
10375 char jl_dic_list_e();
10381 if { (eval echo configure:10382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10383 eval "ac_cv_lib_$ac_lib_var=yes"
10385 echo "configure: failed program was:" >&5
10386 cat conftest.$ac_ext >&5
10388 eval "ac_cv_lib_$ac_lib_var=no"
10393 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10394 echo "$ac_t""yes" 1>&6
10397 echo "$ac_t""no" 1>&6
10398 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6
10399 echo "configure:10400: checking for dic_list_e in -lwnn6_fromsrc" >&5
10400 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'`
10402 xe_check_libs=" -lwnn6_fromsrc "
10403 cat > conftest.$ac_ext <<EOF
10404 #line 10405 "configure"
10405 #include "confdefs.h"
10406 /* Override any gcc2 internal prototype to avoid an error. */
10407 /* We use char because int might match the return type of a gcc2
10408 builtin and then its argument prototype would still apply. */
10415 if { (eval echo configure:10416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10417 eval "ac_cv_lib_$ac_lib_var=yes"
10419 echo "configure: failed program was:" >&5
10420 cat conftest.$ac_ext >&5
10422 eval "ac_cv_lib_$ac_lib_var=no"
10427 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10428 echo "$ac_t""yes" 1>&6
10429 libwnn=wnn6_fromsrc
10431 echo "$ac_t""no" 1>&6
10446 test -z "$with_wnn" && with_wnn=yes
10447 if test "$with_wnn" = "yes"; then
10448 { test "$extra_verbose" = "yes" && cat << \EOF
10451 cat >> confdefs.h <<\EOF
10456 libs_x="-l$libwnn $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$libwnn\" to \$libs_x"; fi
10457 extra_objs="$extra_objs mule-wnnfns.o" && if test "$extra_verbose" = "yes"; then
10458 echo " xemacs will be linked with \"mule-wnnfns.o\""
10460 if test "$with_wnn6" != "no"; then
10462 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6
10463 echo "configure:10464: checking for jl_fi_dic_list in -l$libwnn" >&5
10464 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
10466 xe_check_libs=" -l$libwnn "
10467 cat > conftest.$ac_ext <<EOF
10468 #line 10469 "configure"
10469 #include "confdefs.h"
10470 /* Override any gcc2 internal prototype to avoid an error. */
10471 /* We use char because int might match the return type of a gcc2
10472 builtin and then its argument prototype would still apply. */
10473 char jl_fi_dic_list();
10479 if { (eval echo configure:10480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10481 eval "ac_cv_lib_$ac_lib_var=yes"
10483 echo "configure: failed program was:" >&5
10484 cat conftest.$ac_ext >&5
10486 eval "ac_cv_lib_$ac_lib_var=no"
10491 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10492 echo "$ac_t""yes" 1>&6
10495 echo "$ac_t""no" 1>&6
10499 test "$with_wnn6" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
10502 cat >> confdefs.h <<\EOF
10510 canna_includes_found=no
10511 if test "$with_canna" != "no"; then
10512 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
10513 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
10514 echo "configure:10515: checking for canna/jrkanji.h" >&5
10516 cat > conftest.$ac_ext <<EOF
10517 #line 10518 "configure"
10518 #include "confdefs.h"
10519 #include <canna/jrkanji.h>
10521 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10522 { (eval echo configure:10523: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10523 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10524 if test -z "$ac_err"; then
10526 eval "ac_cv_header_$ac_safe=yes"
10529 echo "configure: failed program was:" >&5
10530 cat conftest.$ac_ext >&5
10532 eval "ac_cv_header_$ac_safe=no"
10535 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10536 echo "$ac_t""yes" 1>&6
10537 canna_includes_found=yes
10539 echo "$ac_t""no" 1>&6
10543 if test "$canna_includes_found" = "no" -a "$with_canna" != "no" -a \
10544 -d "/usr/local/canna/include"; then
10545 save_c_switch_site="$c_switch_site"
10546 c_switch_site="$c_switch_site -I/usr/local/canna/include"
10547 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
10548 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
10549 echo "configure:10550: checking for canna/jrkanji.h" >&5
10551 cat > conftest.$ac_ext <<EOF
10552 #line 10553 "configure"
10553 #include "confdefs.h"
10554 #include <canna/jrkanji.h>
10556 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10557 { (eval echo configure:10558: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10558 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10559 if test -z "$ac_err"; then
10561 eval "ac_cv_header_$ac_safe=yes"
10564 echo "configure: failed program was:" >&5
10565 cat conftest.$ac_ext >&5
10567 eval "ac_cv_header_$ac_safe=no"
10570 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10571 echo "$ac_t""yes" 1>&6
10572 canna_includes_found=yes
10574 echo "$ac_t""no" 1>&6
10577 if test "$canna_includes_found" != "yes"; then
10578 c_switch_site="$save_c_switch_site"
10583 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
10584 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
10585 echo "configure:10586: checking for canna/RK.h" >&5
10587 cat > conftest.$ac_ext <<EOF
10588 #line 10589 "configure"
10589 #include "confdefs.h"
10590 #include <canna/RK.h>
10592 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10593 { (eval echo configure:10594: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10594 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10595 if test -z "$ac_err"; then
10597 eval "ac_cv_header_$ac_safe=yes"
10600 echo "configure: failed program was:" >&5
10601 cat conftest.$ac_ext >&5
10603 eval "ac_cv_header_$ac_safe=no"
10606 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10607 echo "$ac_t""yes" 1>&6
10610 echo "$ac_t""no" 1>&6
10614 test -z "$with_canna" && {
10615 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
10616 echo "configure:10617: checking for RkBgnBun in -lRKC" >&5
10617 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
10619 xe_check_libs=" -lRKC "
10620 cat > conftest.$ac_ext <<EOF
10621 #line 10622 "configure"
10622 #include "confdefs.h"
10623 /* Override any gcc2 internal prototype to avoid an error. */
10624 /* We use char because int might match the return type of a gcc2
10625 builtin and then its argument prototype would still apply. */
10632 if { (eval echo configure:10633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10634 eval "ac_cv_lib_$ac_lib_var=yes"
10636 echo "configure: failed program was:" >&5
10637 cat conftest.$ac_ext >&5
10639 eval "ac_cv_lib_$ac_lib_var=no"
10644 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10645 echo "$ac_t""yes" 1>&6
10648 echo "$ac_t""no" 1>&6
10653 test -z "$with_canna" && {
10654 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
10655 echo "configure:10656: checking for jrKanjiControl in -lcanna" >&5
10656 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
10658 xe_check_libs=" -lcanna "
10659 cat > conftest.$ac_ext <<EOF
10660 #line 10661 "configure"
10661 #include "confdefs.h"
10662 /* Override any gcc2 internal prototype to avoid an error. */
10663 /* We use char because int might match the return type of a gcc2
10664 builtin and then its argument prototype would still apply. */
10665 char jrKanjiControl();
10671 if { (eval echo configure:10672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10673 eval "ac_cv_lib_$ac_lib_var=yes"
10675 echo "configure: failed program was:" >&5
10676 cat conftest.$ac_ext >&5
10678 eval "ac_cv_lib_$ac_lib_var=no"
10683 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10684 echo "$ac_t""yes" 1>&6
10687 echo "$ac_t""no" 1>&6
10692 test -z "$with_canna" && with_canna=yes
10693 if test "$with_canna" = "yes"; then
10694 { test "$extra_verbose" = "yes" && cat << \EOF
10695 Defining HAVE_CANNA
10697 cat >> confdefs.h <<\EOF
10698 #define HAVE_CANNA 1
10702 libs_x="-lcanna -lRKC $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcanna -lRKC\" to \$libs_x"; fi
10703 extra_objs="$extra_objs mule-canna.o" && if test "$extra_verbose" = "yes"; then
10704 echo " xemacs will be linked with \"mule-canna.o\""
10708 else for feature in xim canna wnn; do
10709 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
10710 echo "configure: warning: "--with-${feature} ignored: Not valid without Mule support"" 1>&2
10712 eval "with_${feature}=no"
10716 if test "$need_motif" = "yes" ; then
10717 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi
10719 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6
10720 echo "configure:10721: checking for layout_object_getvalue in -li18n" >&5
10721 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'`
10723 xe_check_libs=" -li18n "
10724 cat > conftest.$ac_ext <<EOF
10725 #line 10726 "configure"
10726 #include "confdefs.h"
10727 /* Override any gcc2 internal prototype to avoid an error. */
10728 /* We use char because int might match the return type of a gcc2
10729 builtin and then its argument prototype would still apply. */
10730 char layout_object_getvalue();
10733 layout_object_getvalue()
10736 if { (eval echo configure:10737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10738 eval "ac_cv_lib_$ac_lib_var=yes"
10740 echo "configure: failed program was:" >&5
10741 cat conftest.$ac_ext >&5
10743 eval "ac_cv_lib_$ac_lib_var=no"
10748 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10749 echo "$ac_t""yes" 1>&6
10750 libs_x="-li18n $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-li18n\" to \$libs_x"; fi
10752 echo "$ac_t""no" 1>&6
10757 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
10758 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
10759 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
10761 runpath="" runpath_dirs=""
10762 if test -n "$LD_RUN_PATH"; then
10763 runpath="$LD_RUN_PATH"
10764 elif test "$GCC" = "yes"; then
10765 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
10766 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
10767 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
10768 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
10769 case "$arg" in P,* | -L* | -R* )
10770 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
10772 xe_runpath_dir="$dir"
10773 test "$xe_runpath_dir" != "/lib" -a \
10774 "$xe_runpath_dir" != "/usr/lib" -a \
10775 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
10776 eval "$xe_add_unique_runpath_dir"
10781 ld_switch_run="$ld_switch_run_save"
10784 for arg in $ld_switch_site $ld_switch_x_site; do
10785 case "$arg" in -L*) {
10786 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
10787 test "$xe_runpath_dir" != "/lib" -a \
10788 "$xe_runpath_dir" != "/usr/lib" -a \
10789 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
10790 eval "$xe_add_unique_runpath_dir"
10793 if test "$opsys $need_motif" = "sol2 yes"; then
10794 xe_runpath_dir="/opt/SUNWdt/lib";
10795 eval "$xe_add_unique_runpath_dir";
10798 if test -n "$runpath"; then
10799 ld_switch_run="${dash_r}${runpath}"
10801 if test "$GCC" = "yes"; then
10802 set x $ld_switch_run; shift; ld_switch_run=""
10803 while test -n "$1"; do
10805 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
10806 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
10808 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
10813 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
10819 for ac_func in cbrt closedir dup2 eaccess fmod fpathconf frexp ftime getaddrinfo gethostname getnameinfo getpagesize gettimeofday getcwd getwd logb lrand48 matherr mkdir mktime perror poll random rename res_init rint rmdir select setitimer setpgid setlocale setsid sigblock sighold sigprocmask snprintf stpcpy strerror tzset ulimit usleep waitpid vsnprintf fsync ftruncate umask
10821 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10822 echo "configure:10823: checking for $ac_func" >&5
10824 cat > conftest.$ac_ext <<EOF
10825 #line 10826 "configure"
10826 #include "confdefs.h"
10827 /* System header to define __stub macros and hopefully few prototypes,
10828 which can conflict with char $ac_func(); below. */
10829 #include <assert.h>
10830 /* Override any gcc2 internal prototype to avoid an error. */
10831 /* We use char because int might match the return type of a gcc2
10832 builtin and then its argument prototype would still apply. */
10837 /* The GNU C library defines this for functions which it implements
10838 to always fail with ENOSYS. Some functions are actually named
10839 something starting with __ and the normal name is an alias. */
10840 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10848 if { (eval echo configure:10849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10850 eval "ac_cv_func_$ac_func=yes"
10852 echo "configure: failed program was:" >&5
10853 cat conftest.$ac_ext >&5
10855 eval "ac_cv_func_$ac_func=no"
10859 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10860 echo "$ac_t""yes" 1>&6
10861 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10862 { test "$extra_verbose" = "yes" && cat << EOF
10863 Defining $ac_tr_func
10865 cat >> confdefs.h <<EOF
10866 #define $ac_tr_func 1
10871 echo "$ac_t""no" 1>&6
10877 for ac_func in getpt _getpty grantpt unlockpt ptsname killpg tcgetpgrp
10879 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10880 echo "configure:10881: checking for $ac_func" >&5
10882 cat > conftest.$ac_ext <<EOF
10883 #line 10884 "configure"
10884 #include "confdefs.h"
10885 /* System header to define __stub macros and hopefully few prototypes,
10886 which can conflict with char $ac_func(); below. */
10887 #include <assert.h>
10888 /* Override any gcc2 internal prototype to avoid an error. */
10889 /* We use char because int might match the return type of a gcc2
10890 builtin and then its argument prototype would still apply. */
10895 /* The GNU C library defines this for functions which it implements
10896 to always fail with ENOSYS. Some functions are actually named
10897 something starting with __ and the normal name is an alias. */
10898 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10906 if { (eval echo configure:10907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10908 eval "ac_cv_func_$ac_func=yes"
10910 echo "configure: failed program was:" >&5
10911 cat conftest.$ac_ext >&5
10913 eval "ac_cv_func_$ac_func=no"
10917 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10918 echo "$ac_t""yes" 1>&6
10919 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10920 { test "$extra_verbose" = "yes" && cat << EOF
10921 Defining $ac_tr_func
10923 cat >> confdefs.h <<EOF
10924 #define $ac_tr_func 1
10929 echo "$ac_t""no" 1>&6
10934 echo $ac_n "checking for openpty""... $ac_c" 1>&6
10935 echo "configure:10936: checking for openpty" >&5
10937 cat > conftest.$ac_ext <<EOF
10938 #line 10939 "configure"
10939 #include "confdefs.h"
10940 /* System header to define __stub macros and hopefully few prototypes,
10941 which can conflict with char openpty(); below. */
10942 #include <assert.h>
10943 /* Override any gcc2 internal prototype to avoid an error. */
10944 /* We use char because int might match the return type of a gcc2
10945 builtin and then its argument prototype would still apply. */
10950 /* The GNU C library defines this for functions which it implements
10951 to always fail with ENOSYS. Some functions are actually named
10952 something starting with __ and the normal name is an alias. */
10953 #if defined (__stub_openpty) || defined (__stub___openpty)
10961 if { (eval echo configure:10962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10963 eval "ac_cv_func_openpty=yes"
10965 echo "configure: failed program was:" >&5
10966 cat conftest.$ac_ext >&5
10968 eval "ac_cv_func_openpty=no"
10972 if eval "test \"`echo '$ac_cv_func_'openpty`\" = yes"; then
10973 echo "$ac_t""yes" 1>&6
10976 echo "$ac_t""no" 1>&6
10979 echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6
10980 echo "configure:10981: checking for openpty in -lutil" >&5
10981 ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'`
10983 xe_check_libs=" -lutil "
10984 cat > conftest.$ac_ext <<EOF
10985 #line 10986 "configure"
10986 #include "confdefs.h"
10987 /* Override any gcc2 internal prototype to avoid an error. */
10988 /* We use char because int might match the return type of a gcc2
10989 builtin and then its argument prototype would still apply. */
10996 if { (eval echo configure:10997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10998 eval "ac_cv_lib_$ac_lib_var=yes"
11000 echo "configure: failed program was:" >&5
11001 cat conftest.$ac_ext >&5
11003 eval "ac_cv_lib_$ac_lib_var=no"
11008 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11009 echo "$ac_t""yes" 1>&6
11010 have_openpty=yes need_libutil=yes
11012 echo "$ac_t""no" 1>&6
11018 if test "$have_openpty" = "yes"; then
11019 { test "$extra_verbose" = "yes" && cat << \EOF
11020 Defining HAVE_OPENPTY
11022 cat >> confdefs.h <<\EOF
11023 #define HAVE_OPENPTY 1
11027 for ac_hdr in pty.h libutil.h util.h
11029 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11030 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11031 echo "configure:11032: checking for $ac_hdr" >&5
11033 cat > conftest.$ac_ext <<EOF
11034 #line 11035 "configure"
11035 #include "confdefs.h"
11038 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11039 { (eval echo configure:11040: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11040 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11041 if test -z "$ac_err"; then
11043 eval "ac_cv_header_$ac_safe=yes"
11046 echo "configure: failed program was:" >&5
11047 cat conftest.$ac_ext >&5
11049 eval "ac_cv_header_$ac_safe=no"
11052 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11053 echo "$ac_t""yes" 1>&6
11054 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11055 { test "$extra_verbose" = "yes" && cat << EOF
11056 Defining $ac_tr_hdr
11058 cat >> confdefs.h <<EOF
11059 #define $ac_tr_hdr 1
11064 echo "$ac_t""no" 1>&6
11068 test "$need_libutil" = "yes" && libs_system="$libs_system -lutil" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lutil\" to \$libs_system"; fi
11071 for ac_hdr in stropts.h
11073 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11074 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11075 echo "configure:11076: checking for $ac_hdr" >&5
11077 cat > conftest.$ac_ext <<EOF
11078 #line 11079 "configure"
11079 #include "confdefs.h"
11082 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11083 { (eval echo configure:11084: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11084 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11085 if test -z "$ac_err"; then
11087 eval "ac_cv_header_$ac_safe=yes"
11090 echo "configure: failed program was:" >&5
11091 cat conftest.$ac_ext >&5
11093 eval "ac_cv_header_$ac_safe=no"
11096 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11097 echo "$ac_t""yes" 1>&6
11098 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11099 { test "$extra_verbose" = "yes" && cat << EOF
11100 Defining $ac_tr_hdr
11102 cat >> confdefs.h <<EOF
11103 #define $ac_tr_hdr 1
11108 echo "$ac_t""no" 1>&6
11112 if test "$ac_cv_header_stropts_h" = "yes"; then
11113 for ac_func in isastream
11115 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11116 echo "configure:11117: checking for $ac_func" >&5
11118 cat > conftest.$ac_ext <<EOF
11119 #line 11120 "configure"
11120 #include "confdefs.h"
11121 /* System header to define __stub macros and hopefully few prototypes,
11122 which can conflict with char $ac_func(); below. */
11123 #include <assert.h>
11124 /* Override any gcc2 internal prototype to avoid an error. */
11125 /* We use char because int might match the return type of a gcc2
11126 builtin and then its argument prototype would still apply. */
11131 /* The GNU C library defines this for functions which it implements
11132 to always fail with ENOSYS. Some functions are actually named
11133 something starting with __ and the normal name is an alias. */
11134 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11142 if { (eval echo configure:11143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11144 eval "ac_cv_func_$ac_func=yes"
11146 echo "configure: failed program was:" >&5
11147 cat conftest.$ac_ext >&5
11149 eval "ac_cv_func_$ac_func=no"
11153 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11154 echo "$ac_t""yes" 1>&6
11155 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11156 { test "$extra_verbose" = "yes" && cat << EOF
11157 Defining $ac_tr_func
11159 cat >> confdefs.h <<EOF
11160 #define $ac_tr_func 1
11165 echo "$ac_t""no" 1>&6
11169 for ac_hdr in strtio.h
11171 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11172 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11173 echo "configure:11174: checking for $ac_hdr" >&5
11175 cat > conftest.$ac_ext <<EOF
11176 #line 11177 "configure"
11177 #include "confdefs.h"
11180 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11181 { (eval echo configure:11182: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11182 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11183 if test -z "$ac_err"; then
11185 eval "ac_cv_header_$ac_safe=yes"
11188 echo "configure: failed program was:" >&5
11189 cat conftest.$ac_ext >&5
11191 eval "ac_cv_header_$ac_safe=no"
11194 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11195 echo "$ac_t""yes" 1>&6
11196 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11197 { test "$extra_verbose" = "yes" && cat << EOF
11198 Defining $ac_tr_hdr
11200 cat >> confdefs.h <<EOF
11201 #define $ac_tr_hdr 1
11206 echo "$ac_t""no" 1>&6
11211 extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
11212 echo " xemacs will be linked with \"realpath.o\""
11215 for ac_func in getloadavg
11217 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11218 echo "configure:11219: checking for $ac_func" >&5
11220 cat > conftest.$ac_ext <<EOF
11221 #line 11222 "configure"
11222 #include "confdefs.h"
11223 /* System header to define __stub macros and hopefully few prototypes,
11224 which can conflict with char $ac_func(); below. */
11225 #include <assert.h>
11226 /* Override any gcc2 internal prototype to avoid an error. */
11227 /* We use char because int might match the return type of a gcc2
11228 builtin and then its argument prototype would still apply. */
11233 /* The GNU C library defines this for functions which it implements
11234 to always fail with ENOSYS. Some functions are actually named
11235 something starting with __ and the normal name is an alias. */
11236 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11244 if { (eval echo configure:11245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11246 eval "ac_cv_func_$ac_func=yes"
11248 echo "configure: failed program was:" >&5
11249 cat conftest.$ac_ext >&5
11251 eval "ac_cv_func_$ac_func=no"
11255 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11256 echo "$ac_t""yes" 1>&6
11257 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11258 { test "$extra_verbose" = "yes" && cat << EOF
11259 Defining $ac_tr_func
11261 cat >> confdefs.h <<EOF
11262 #define $ac_tr_func 1
11267 echo "$ac_t""no" 1>&6
11272 if test "$ac_cv_func_getloadavg" = "yes"; then
11273 for ac_hdr in sys/loadavg.h
11275 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11276 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11277 echo "configure:11278: checking for $ac_hdr" >&5
11279 cat > conftest.$ac_ext <<EOF
11280 #line 11281 "configure"
11281 #include "confdefs.h"
11284 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11285 { (eval echo configure:11286: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11286 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11287 if test -z "$ac_err"; then
11289 eval "ac_cv_header_$ac_safe=yes"
11292 echo "configure: failed program was:" >&5
11293 cat conftest.$ac_ext >&5
11295 eval "ac_cv_header_$ac_safe=no"
11298 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11299 echo "$ac_t""yes" 1>&6
11300 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11301 { test "$extra_verbose" = "yes" && cat << EOF
11302 Defining $ac_tr_hdr
11304 cat >> confdefs.h <<EOF
11305 #define $ac_tr_hdr 1
11310 echo "$ac_t""no" 1>&6
11315 extra_objs="$extra_objs getloadavg.o" && if test "$extra_verbose" = "yes"; then
11316 echo " xemacs will be linked with \"getloadavg.o\""
11320 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
11321 echo "configure:11322: checking for kstat_open in -lkstat" >&5
11322 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
11324 xe_check_libs=" -lkstat "
11325 cat > conftest.$ac_ext <<EOF
11326 #line 11327 "configure"
11327 #include "confdefs.h"
11328 /* Override any gcc2 internal prototype to avoid an error. */
11329 /* We use char because int might match the return type of a gcc2
11330 builtin and then its argument prototype would still apply. */
11337 if { (eval echo configure:11338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11339 eval "ac_cv_lib_$ac_lib_var=yes"
11341 echo "configure: failed program was:" >&5
11342 cat conftest.$ac_ext >&5
11344 eval "ac_cv_lib_$ac_lib_var=no"
11349 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11350 echo "$ac_t""yes" 1>&6
11351 ac_tr_lib=HAVE_LIB`echo kstat | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11352 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11353 { test "$extra_verbose" = "yes" && cat << EOF
11354 Defining $ac_tr_lib
11356 cat >> confdefs.h <<EOF
11357 #define $ac_tr_lib 1
11361 LIBS="-lkstat $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkstat\" to \$LIBS"; fi
11364 echo "$ac_t""no" 1>&6
11368 for ac_hdr in kstat.h
11370 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11371 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11372 echo "configure:11373: checking for $ac_hdr" >&5
11374 cat > conftest.$ac_ext <<EOF
11375 #line 11376 "configure"
11376 #include "confdefs.h"
11379 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11380 { (eval echo configure:11381: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11381 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11382 if test -z "$ac_err"; then
11384 eval "ac_cv_header_$ac_safe=yes"
11387 echo "configure: failed program was:" >&5
11388 cat conftest.$ac_ext >&5
11390 eval "ac_cv_header_$ac_safe=no"
11393 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11394 echo "$ac_t""yes" 1>&6
11395 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11396 { test "$extra_verbose" = "yes" && cat << EOF
11397 Defining $ac_tr_hdr
11399 cat >> confdefs.h <<EOF
11400 #define $ac_tr_hdr 1
11405 echo "$ac_t""no" 1>&6
11411 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
11412 echo "configure:11413: checking for kvm_read in -lkvm" >&5
11413 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
11415 xe_check_libs=" -lkvm "
11416 cat > conftest.$ac_ext <<EOF
11417 #line 11418 "configure"
11418 #include "confdefs.h"
11419 /* Override any gcc2 internal prototype to avoid an error. */
11420 /* We use char because int might match the return type of a gcc2
11421 builtin and then its argument prototype would still apply. */
11428 if { (eval echo configure:11429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11430 eval "ac_cv_lib_$ac_lib_var=yes"
11432 echo "configure: failed program was:" >&5
11433 cat conftest.$ac_ext >&5
11435 eval "ac_cv_lib_$ac_lib_var=no"
11440 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11441 echo "$ac_t""yes" 1>&6
11442 ac_tr_lib=HAVE_LIB`echo kvm | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11443 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11444 { test "$extra_verbose" = "yes" && cat << EOF
11445 Defining $ac_tr_lib
11447 cat >> confdefs.h <<EOF
11448 #define $ac_tr_lib 1
11452 LIBS="-lkvm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkvm\" to \$LIBS"; fi
11455 echo "$ac_t""no" 1>&6
11461 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
11462 echo "configure:11463: checking whether netdb declares h_errno" >&5
11463 cat > conftest.$ac_ext <<EOF
11464 #line 11465 "configure"
11465 #include "confdefs.h"
11471 if { (eval echo configure:11472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11473 echo "$ac_t""yes" 1>&6
11474 { test "$extra_verbose" = "yes" && cat << \EOF
11475 Defining HAVE_H_ERRNO
11477 cat >> confdefs.h <<\EOF
11478 #define HAVE_H_ERRNO 1
11483 echo "configure: failed program was:" >&5
11484 cat conftest.$ac_ext >&5
11486 echo "$ac_t""no" 1>&6
11490 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
11491 echo "configure:11492: checking for sigsetjmp" >&5
11492 cat > conftest.$ac_ext <<EOF
11493 #line 11494 "configure"
11494 #include "confdefs.h"
11495 #include <setjmp.h>
11497 sigjmp_buf bar; sigsetjmp (bar, 0);
11500 if { (eval echo configure:11501: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11502 echo "$ac_t""yes" 1>&6
11503 { test "$extra_verbose" = "yes" && cat << \EOF
11504 Defining HAVE_SIGSETJMP
11506 cat >> confdefs.h <<\EOF
11507 #define HAVE_SIGSETJMP 1
11512 echo "configure: failed program was:" >&5
11513 cat conftest.$ac_ext >&5
11515 echo "$ac_t""no" 1>&6
11519 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
11520 echo "configure:11521: checking whether localtime caches TZ" >&5
11522 if test "$ac_cv_func_tzset" = "yes"; then
11523 cat > conftest.$ac_ext <<EOF
11524 #line 11525 "configure"
11525 #include "confdefs.h"
11528 # include <stdlib.h>
11530 extern char **environ;
11534 for (to = from = environ; (*to = *from); from++)
11535 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
11538 char TZ_GMT0[] = "TZ=GMT0";
11539 char TZ_PST8[] = "TZ=PST8";
11542 time_t now = time ((time_t *) 0);
11543 int hour_GMT0, hour_unset;
11544 if (putenv (TZ_GMT0) != 0)
11546 hour_GMT0 = localtime (&now)->tm_hour;
11548 hour_unset = localtime (&now)->tm_hour;
11549 if (putenv (TZ_PST8) != 0)
11551 if (localtime (&now)->tm_hour == hour_GMT0)
11554 if (localtime (&now)->tm_hour != hour_unset)
11559 if { (eval echo configure:11560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11561 emacs_cv_localtime_cache=no
11564 echo "configure: failed program was:" >&5
11565 cat conftest.$ac_ext >&5
11567 emacs_cv_localtime_cache=yes
11571 # If we lack tzset, report that localtime does not cache TZ,
11572 # since we can't invalidate the cache if we don't have tzset.
11573 emacs_cv_localtime_cache=no
11575 echo "$ac_t""$emacs_cv_localtime_cache" 1>&6
11576 if test $emacs_cv_localtime_cache = yes; then
11577 { test "$extra_verbose" = "yes" && cat << \EOF
11578 Defining LOCALTIME_CACHE
11580 cat >> confdefs.h <<\EOF
11581 #define LOCALTIME_CACHE 1
11587 if test "$HAVE_TIMEVAL" = "yes"; then
11588 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6
11589 echo "configure:11590: checking whether gettimeofday accepts one or two arguments" >&5
11590 cat > conftest.$ac_ext <<EOF
11591 #line 11592 "configure"
11592 #include "confdefs.h"
11594 #ifdef TIME_WITH_SYS_TIME
11595 #include <sys/time.h>
11598 #ifdef HAVE_SYS_TIME_H
11599 #include <sys/time.h>
11607 struct timeval time;
11608 gettimeofday (&time, 0);
11612 if { (eval echo configure:11613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11614 echo "$ac_t""two" 1>&6
11616 echo "configure: failed program was:" >&5
11617 cat conftest.$ac_ext >&5
11619 echo "$ac_t""one" 1>&6
11620 { test "$extra_verbose" = "yes" && cat << \EOF
11621 Defining GETTIMEOFDAY_ONE_ARGUMENT
11623 cat >> confdefs.h <<\EOF
11624 #define GETTIMEOFDAY_ONE_ARGUMENT 1
11633 echo $ac_n "checking for inline""... $ac_c" 1>&6
11634 echo "configure:11635: checking for inline" >&5
11637 for ac_kw in inline __inline__ __inline; do
11638 cat > conftest.$ac_ext <<EOF
11639 #line 11640 "configure"
11640 #include "confdefs.h"
11646 if { (eval echo configure:11647: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11648 ac_cv_c_inline=$ac_kw; break
11650 echo "configure: failed program was:" >&5
11651 cat conftest.$ac_ext >&5
11657 echo "$ac_t""$ac_cv_c_inline" 1>&6
11658 case "$ac_cv_c_inline" in
11660 no) { test "$extra_verbose" = "yes" && cat << \EOF
11663 cat >> confdefs.h <<\EOF
11668 *) { test "$extra_verbose" = "yes" && cat << EOF
11669 Defining inline = $ac_cv_c_inline
11671 cat >> confdefs.h <<EOF
11672 #define inline $ac_cv_c_inline
11678 test "$ac_cv_c_inline" != "no" -a "$GCC" = "yes" && extra_objs="$extra_objs inline.o" && if test "$extra_verbose" = "yes"; then
11679 echo " xemacs will be linked with \"inline.o\""
11683 if test "$__DECC" != "yes"; then
11684 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11685 # for constant arguments. Useless!
11686 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
11687 echo "configure:11688: checking for working alloca.h" >&5
11689 cat > conftest.$ac_ext <<EOF
11690 #line 11691 "configure"
11691 #include "confdefs.h"
11692 #include <alloca.h>
11694 char *p = alloca(2 * sizeof(int));
11697 if { (eval echo configure:11698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11699 ac_cv_header_alloca_h=yes
11701 echo "configure: failed program was:" >&5
11702 cat conftest.$ac_ext >&5
11704 ac_cv_header_alloca_h=no
11708 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
11709 if test $ac_cv_header_alloca_h = yes; then
11710 { test "$extra_verbose" = "yes" && cat << \EOF
11711 Defining HAVE_ALLOCA_H
11713 cat >> confdefs.h <<\EOF
11714 #define HAVE_ALLOCA_H 1
11720 echo $ac_n "checking for alloca""... $ac_c" 1>&6
11721 echo "configure:11722: checking for alloca" >&5
11723 cat > conftest.$ac_ext <<EOF
11724 #line 11725 "configure"
11725 #include "confdefs.h"
11728 # define alloca __builtin_alloca
11731 # include <malloc.h>
11732 # define alloca _alloca
11735 # include <alloca.h>
11740 # ifndef alloca /* predefined by HP cc +Olibcalls */
11749 char *p = (char *) alloca(1);
11752 if { (eval echo configure:11753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11754 ac_cv_func_alloca_works=yes
11756 echo "configure: failed program was:" >&5
11757 cat conftest.$ac_ext >&5
11759 ac_cv_func_alloca_works=no
11763 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
11764 if test $ac_cv_func_alloca_works = yes; then
11765 { test "$extra_verbose" = "yes" && cat << \EOF
11766 Defining HAVE_ALLOCA
11768 cat >> confdefs.h <<\EOF
11769 #define HAVE_ALLOCA 1
11775 if test $ac_cv_func_alloca_works = no; then
11776 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11777 # that cause trouble. Some versions do not even contain alloca or
11778 # contain a buggy version. If you still want to use their alloca,
11779 # use ar to extract alloca.o from them instead of compiling alloca.c.
11780 ALLOCA=alloca.${ac_objext}
11781 { test "$extra_verbose" = "yes" && cat << \EOF
11784 cat >> confdefs.h <<\EOF
11790 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
11791 echo "configure:11792: checking whether alloca needs Cray hooks" >&5
11793 cat > conftest.$ac_ext <<EOF
11794 #line 11795 "configure"
11795 #include "confdefs.h"
11796 #if defined(CRAY) && ! defined(CRAY2)
11803 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11804 egrep "webecray" >/dev/null 2>&1; then
11814 echo "$ac_t""$ac_cv_os_cray" 1>&6
11815 if test $ac_cv_os_cray = yes; then
11816 for ac_func in _getb67 GETB67 getb67; do
11817 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11818 echo "configure:11819: checking for $ac_func" >&5
11820 cat > conftest.$ac_ext <<EOF
11821 #line 11822 "configure"
11822 #include "confdefs.h"
11823 /* System header to define __stub macros and hopefully few prototypes,
11824 which can conflict with char $ac_func(); below. */
11825 #include <assert.h>
11826 /* Override any gcc2 internal prototype to avoid an error. */
11827 /* We use char because int might match the return type of a gcc2
11828 builtin and then its argument prototype would still apply. */
11833 /* The GNU C library defines this for functions which it implements
11834 to always fail with ENOSYS. Some functions are actually named
11835 something starting with __ and the normal name is an alias. */
11836 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11844 if { (eval echo configure:11845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11846 eval "ac_cv_func_$ac_func=yes"
11848 echo "configure: failed program was:" >&5
11849 cat conftest.$ac_ext >&5
11851 eval "ac_cv_func_$ac_func=no"
11855 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11856 echo "$ac_t""yes" 1>&6
11857 { test "$extra_verbose" = "yes" && cat << EOF
11858 Defining CRAY_STACKSEG_END = $ac_func
11860 cat >> confdefs.h <<EOF
11861 #define CRAY_STACKSEG_END $ac_func
11867 echo "$ac_t""no" 1>&6
11873 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
11874 echo "configure:11875: checking stack direction for C alloca" >&5
11876 cat > conftest.$ac_ext <<EOF
11877 #line 11878 "configure"
11878 #include "confdefs.h"
11879 find_stack_direction ()
11881 static char *addr = 0;
11886 return find_stack_direction ();
11889 return (&dummy > addr) ? 1 : -1;
11893 exit (find_stack_direction() < 0);
11896 if { (eval echo configure:11897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11898 ac_cv_c_stack_direction=1
11901 echo "configure: failed program was:" >&5
11902 cat conftest.$ac_ext >&5
11904 ac_cv_c_stack_direction=-1
11908 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
11909 { test "$extra_verbose" = "yes" && cat << EOF
11910 Defining STACK_DIRECTION = $ac_cv_c_stack_direction
11912 cat >> confdefs.h <<EOF
11913 #define STACK_DIRECTION $ac_cv_c_stack_direction
11919 test -n "$ALLOCA" && extra_objs="$extra_objs $ALLOCA" && if test "$extra_verbose" = "yes"; then
11920 echo " xemacs will be linked with \"$ALLOCA\""
11924 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
11925 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
11926 echo "configure:11927: checking for vfork.h" >&5
11928 cat > conftest.$ac_ext <<EOF
11929 #line 11930 "configure"
11930 #include "confdefs.h"
11933 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11934 { (eval echo configure:11935: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11935 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11936 if test -z "$ac_err"; then
11938 eval "ac_cv_header_$ac_safe=yes"
11941 echo "configure: failed program was:" >&5
11942 cat conftest.$ac_ext >&5
11944 eval "ac_cv_header_$ac_safe=no"
11947 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11948 echo "$ac_t""yes" 1>&6
11949 { test "$extra_verbose" = "yes" && cat << \EOF
11950 Defining HAVE_VFORK_H
11952 cat >> confdefs.h <<\EOF
11953 #define HAVE_VFORK_H 1
11958 echo "$ac_t""no" 1>&6
11961 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
11962 echo "configure:11963: checking for working vfork" >&5
11964 cat > conftest.$ac_ext <<EOF
11965 #line 11966 "configure"
11966 #include "confdefs.h"
11967 /* Thanks to Paul Eggert for this test. */
11969 #include <sys/types.h>
11970 #include <sys/stat.h>
11971 #ifdef HAVE_UNISTD_H
11972 #include <unistd.h>
11974 #ifdef HAVE_VFORK_H
11977 /* On some sparc systems, changes by the child to local and incoming
11978 argument registers are propagated back to the parent.
11979 The compiler is told about this with #include <vfork.h>,
11980 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
11981 Test for this by using a static variable whose address
11982 is put into a register that is clobbered by the vfork. */
11985 sparc_address_test (int arg)
11987 sparc_address_test (arg) int arg;
11990 static pid_t child;
12005 pid_t parent = getpid ();
12008 sparc_address_test ();
12013 /* Here is another test for sparc vfork register problems.
12014 This test uses lots of local variables, at least
12015 as many local variables as main has allocated so far
12016 including compiler temporaries. 4 locals are enough for
12017 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
12018 A buggy compiler should reuse the register of parent
12019 for one of the local variables, since it will think that
12020 parent can't possibly be used any more in this routine.
12021 Assigning to the local variable will thus munge parent
12022 in the parent process. */
12024 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12025 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12026 /* Convince the compiler that p..p7 are live; otherwise, it might
12027 use the same hardware register for all 8 local variables. */
12028 if (p != p1 || p != p2 || p != p3 || p != p4
12029 || p != p5 || p != p6 || p != p7)
12032 /* On some systems (e.g. IRIX 3.3),
12033 vfork doesn't separate parent from child file descriptors.
12034 If the child closes a descriptor before it execs or exits,
12035 this munges the parent's descriptor as well.
12036 Test for this by closing stdout in the child. */
12037 _exit(close(fileno(stdout)) != 0);
12042 while (wait(&status) != child)
12045 /* Was there some problem with vforking? */
12048 /* Did the child fail? (This shouldn't happen.) */
12051 /* Did the vfork/compiler bug occur? */
12052 || parent != getpid()
12054 /* Did the file descriptor bug occur? */
12055 || fstat(fileno(stdout), &st) != 0
12060 if { (eval echo configure:12061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12062 ac_cv_func_vfork_works=yes
12065 echo "configure: failed program was:" >&5
12066 cat conftest.$ac_ext >&5
12068 ac_cv_func_vfork_works=no
12072 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
12073 if test $ac_cv_func_vfork_works = no; then
12074 { test "$extra_verbose" = "yes" && cat << \EOF
12075 Defining vfork = fork
12077 cat >> confdefs.h <<\EOF
12085 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
12086 echo "configure:12087: checking for working strcoll" >&5
12088 cat > conftest.$ac_ext <<EOF
12089 #line 12090 "configure"
12090 #include "confdefs.h"
12091 #include <string.h>
12094 exit (strcoll ("abc", "def") >= 0 ||
12095 strcoll ("ABC", "DEF") >= 0 ||
12096 strcoll ("123", "456") >= 0);
12099 if { (eval echo configure:12100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12101 ac_cv_func_strcoll_works=yes
12104 echo "configure: failed program was:" >&5
12105 cat conftest.$ac_ext >&5
12107 ac_cv_func_strcoll_works=no
12111 echo "$ac_t""$ac_cv_func_strcoll_works" 1>&6
12112 if test $ac_cv_func_strcoll_works = yes; then
12113 { test "$extra_verbose" = "yes" && cat << \EOF
12114 Defining HAVE_STRCOLL
12116 cat >> confdefs.h <<\EOF
12117 #define HAVE_STRCOLL 1
12124 for ac_func in getpgrp
12126 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12127 echo "configure:12128: checking for $ac_func" >&5
12129 cat > conftest.$ac_ext <<EOF
12130 #line 12131 "configure"
12131 #include "confdefs.h"
12132 /* System header to define __stub macros and hopefully few prototypes,
12133 which can conflict with char $ac_func(); below. */
12134 #include <assert.h>
12135 /* Override any gcc2 internal prototype to avoid an error. */
12136 /* We use char because int might match the return type of a gcc2
12137 builtin and then its argument prototype would still apply. */
12142 /* The GNU C library defines this for functions which it implements
12143 to always fail with ENOSYS. Some functions are actually named
12144 something starting with __ and the normal name is an alias. */
12145 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12153 if { (eval echo configure:12154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12155 eval "ac_cv_func_$ac_func=yes"
12157 echo "configure: failed program was:" >&5
12158 cat conftest.$ac_ext >&5
12160 eval "ac_cv_func_$ac_func=no"
12164 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12165 echo "$ac_t""yes" 1>&6
12166 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12167 { test "$extra_verbose" = "yes" && cat << EOF
12168 Defining $ac_tr_func
12170 cat >> confdefs.h <<EOF
12171 #define $ac_tr_func 1
12176 echo "$ac_t""no" 1>&6
12180 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
12181 echo "configure:12182: checking whether getpgrp takes no argument" >&5
12183 cat > conftest.$ac_ext <<EOF
12184 #line 12185 "configure"
12185 #include "confdefs.h"
12188 * If this system has a BSD-style getpgrp(),
12189 * which takes a pid argument, exit unsuccessfully.
12191 * Snarfed from Chet Ramey's bash pgrp.c test program
12194 #include <sys/types.h>
12197 int pg1, pg2, pg3, pg4;
12198 int ng, np, s, child;
12205 pg3 = getpgrp(pid);
12209 * If all of these values are the same, it's pretty sure that
12210 * we're on a system that ignores getpgrp's first argument.
12212 if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3)
12218 else if (child == 0) {
12221 * If this is Sys V, this will not work; pgrp will be
12222 * set to np because setpgrp just changes a pgrp to be
12223 * the same as the pid.
12226 ng = getpgrp(0); /* Same result for Sys V and BSD */
12239 if { (eval echo configure:12240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12241 ac_cv_func_getpgrp_void=yes
12244 echo "configure: failed program was:" >&5
12245 cat conftest.$ac_ext >&5
12247 ac_cv_func_getpgrp_void=no
12252 echo "$ac_t""$ac_cv_func_getpgrp_void" 1>&6
12253 if test $ac_cv_func_getpgrp_void = yes; then
12254 { test "$extra_verbose" = "yes" && cat << \EOF
12255 Defining GETPGRP_VOID
12257 cat >> confdefs.h <<\EOF
12258 #define GETPGRP_VOID 1
12265 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
12266 echo "configure:12267: checking for working mmap" >&5
12267 case "$opsys" in ultrix* ) have_mmap=no ;; *)
12268 cat > conftest.$ac_ext <<EOF
12269 #line 12270 "configure"
12270 #include "confdefs.h"
12272 #include <unistd.h>
12274 #include <sys/mman.h>
12276 #ifndef MAP_VARIABLE
12277 #define MAP_VARIABLE 0
12281 #define MAP_FAILED -1
12284 int main (int argc, char *argv[])
12288 #ifndef MAP_ANONYMOUS
12289 fd = open ("/dev/zero", O_RDWR);
12292 #define MAP_ANONYMOUS 0
12294 if (mmap(0, 1024, PROT_READ | PROT_WRITE,
12295 MAP_PRIVATE | MAP_VARIABLE | MAP_ANONYMOUS,
12296 fd, 0) != (void *) MAP_FAILED)
12298 perror ("conftest: mmap failed");
12302 if { (eval echo configure:12303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12307 echo "configure: failed program was:" >&5
12308 cat conftest.$ac_ext >&5
12312 rm -fr conftest* ;;
12314 echo "$ac_t""$have_mmap" 1>&6
12315 test "$have_mmap" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
12318 cat >> confdefs.h <<\EOF
12319 #define HAVE_MMAP 1
12324 case "$opsys" in cygwin*)
12325 test "$rel_alloc" = "default" && rel_alloc=no ;;
12327 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no
12328 if test "$rel_alloc $have_mmap" = "default yes"; then
12329 if test "$doug_lea_malloc" = "yes"; then
12330 echo $ac_n "checking for M_MMAP_THRESHOLD""... $ac_c" 1>&6
12331 echo "configure:12332: checking for M_MMAP_THRESHOLD" >&5
12332 cat > conftest.$ac_ext <<EOF
12333 #line 12334 "configure"
12334 #include "confdefs.h"
12335 #include <malloc.h>
12338 #ifndef M_MMAP_THRESHOLD
12339 #error No M_MMAP_THRESHOLD :-(
12340 !@+$%^&*_)(_ - unlikely to compile...
12345 if { (eval echo configure:12346: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12347 rel_alloc=no; echo "$ac_t""yes" 1>&6;
12349 echo "configure: failed program was:" >&5
12350 cat conftest.$ac_ext >&5
12352 rel_alloc=yes; echo "$ac_t""no" 1>&6;
12359 test "$rel_alloc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
12362 cat >> confdefs.h <<\EOF
12363 #define REL_ALLOC 1
12368 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
12369 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
12370 echo "configure:12371: checking for termios.h" >&5
12372 cat > conftest.$ac_ext <<EOF
12373 #line 12374 "configure"
12374 #include "confdefs.h"
12375 #include <termios.h>
12377 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12378 { (eval echo configure:12379: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12379 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12380 if test -z "$ac_err"; then
12382 eval "ac_cv_header_$ac_safe=yes"
12385 echo "configure: failed program was:" >&5
12386 cat conftest.$ac_ext >&5
12388 eval "ac_cv_header_$ac_safe=no"
12391 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12392 echo "$ac_t""yes" 1>&6
12393 { test "$extra_verbose" = "yes" && cat << \EOF
12394 Defining HAVE_TERMIOS
12396 cat >> confdefs.h <<\EOF
12397 #define HAVE_TERMIOS 1
12401 { test "$extra_verbose" = "yes" && cat << \EOF
12402 Defining SIGNALS_VIA_CHARACTERS
12404 cat >> confdefs.h <<\EOF
12405 #define SIGNALS_VIA_CHARACTERS 1
12409 { test "$extra_verbose" = "yes" && cat << \EOF
12412 cat >> confdefs.h <<\EOF
12413 #define NO_TERMIO 1
12418 echo "$ac_t""no" 1>&6
12419 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
12420 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
12421 echo "configure:12422: checking for termio.h" >&5
12423 cat > conftest.$ac_ext <<EOF
12424 #line 12425 "configure"
12425 #include "confdefs.h"
12426 #include <termio.h>
12428 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12429 { (eval echo configure:12430: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12430 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12431 if test -z "$ac_err"; then
12433 eval "ac_cv_header_$ac_safe=yes"
12436 echo "configure: failed program was:" >&5
12437 cat conftest.$ac_ext >&5
12439 eval "ac_cv_header_$ac_safe=no"
12442 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12443 echo "$ac_t""yes" 1>&6
12444 { test "$extra_verbose" = "yes" && cat << \EOF
12445 Defining HAVE_TERMIO
12447 cat >> confdefs.h <<\EOF
12448 #define HAVE_TERMIO 1
12453 echo "$ac_t""no" 1>&6
12460 echo $ac_n "checking for socket""... $ac_c" 1>&6
12461 echo "configure:12462: checking for socket" >&5
12463 cat > conftest.$ac_ext <<EOF
12464 #line 12465 "configure"
12465 #include "confdefs.h"
12466 /* System header to define __stub macros and hopefully few prototypes,
12467 which can conflict with char socket(); below. */
12468 #include <assert.h>
12469 /* Override any gcc2 internal prototype to avoid an error. */
12470 /* We use char because int might match the return type of a gcc2
12471 builtin and then its argument prototype would still apply. */
12476 /* The GNU C library defines this for functions which it implements
12477 to always fail with ENOSYS. Some functions are actually named
12478 something starting with __ and the normal name is an alias. */
12479 #if defined (__stub_socket) || defined (__stub___socket)
12487 if { (eval echo configure:12488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12489 eval "ac_cv_func_socket=yes"
12491 echo "configure: failed program was:" >&5
12492 cat conftest.$ac_ext >&5
12494 eval "ac_cv_func_socket=no"
12498 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
12499 echo "$ac_t""yes" 1>&6
12500 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
12501 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
12502 echo "configure:12503: checking for netinet/in.h" >&5
12504 cat > conftest.$ac_ext <<EOF
12505 #line 12506 "configure"
12506 #include "confdefs.h"
12507 #include <netinet/in.h>
12509 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12510 { (eval echo configure:12511: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12511 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12512 if test -z "$ac_err"; then
12514 eval "ac_cv_header_$ac_safe=yes"
12517 echo "configure: failed program was:" >&5
12518 cat conftest.$ac_ext >&5
12520 eval "ac_cv_header_$ac_safe=no"
12523 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12524 echo "$ac_t""yes" 1>&6
12525 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
12526 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
12527 echo "configure:12528: checking for arpa/inet.h" >&5
12529 cat > conftest.$ac_ext <<EOF
12530 #line 12531 "configure"
12531 #include "confdefs.h"
12532 #include <arpa/inet.h>
12534 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12535 { (eval echo configure:12536: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12536 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12537 if test -z "$ac_err"; then
12539 eval "ac_cv_header_$ac_safe=yes"
12542 echo "configure: failed program was:" >&5
12543 cat conftest.$ac_ext >&5
12545 eval "ac_cv_header_$ac_safe=no"
12548 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12549 echo "$ac_t""yes" 1>&6
12551 { test "$extra_verbose" = "yes" && cat << \EOF
12552 Defining HAVE_SOCKETS
12554 cat >> confdefs.h <<\EOF
12555 #define HAVE_SOCKETS 1
12559 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
12560 echo "configure:12561: checking "for sun_len member in struct sockaddr_un"" >&5
12561 cat > conftest.$ac_ext <<EOF
12562 #line 12563 "configure"
12563 #include "confdefs.h"
12565 #include <sys/types.h>
12566 #include <sys/socket.h>
12567 #include <sys/un.h>
12570 static struct sockaddr_un x; x.sun_len = 1;
12573 if { (eval echo configure:12574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12575 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
12576 Defining HAVE_SOCKADDR_SUN_LEN
12578 cat >> confdefs.h <<\EOF
12579 #define HAVE_SOCKADDR_SUN_LEN 1
12584 echo "configure: failed program was:" >&5
12585 cat conftest.$ac_ext >&5
12587 echo "$ac_t""no" 1>&6
12590 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6
12591 echo "configure:12592: checking "for ip_mreq struct in netinet/in.h"" >&5
12592 cat > conftest.$ac_ext <<EOF
12593 #line 12594 "configure"
12594 #include "confdefs.h"
12596 #include <sys/types.h>
12597 #include <netinet/in.h>
12600 static struct ip_mreq x;
12603 if { (eval echo configure:12604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12605 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
12606 Defining HAVE_MULTICAST
12608 cat >> confdefs.h <<\EOF
12609 #define HAVE_MULTICAST 1
12614 echo "configure: failed program was:" >&5
12615 cat conftest.$ac_ext >&5
12617 echo "$ac_t""no" 1>&6
12621 echo "$ac_t""no" 1>&6
12625 echo "$ac_t""no" 1>&6
12629 echo "$ac_t""no" 1>&6
12633 echo $ac_n "checking for msgget""... $ac_c" 1>&6
12634 echo "configure:12635: checking for msgget" >&5
12636 cat > conftest.$ac_ext <<EOF
12637 #line 12638 "configure"
12638 #include "confdefs.h"
12639 /* System header to define __stub macros and hopefully few prototypes,
12640 which can conflict with char msgget(); below. */
12641 #include <assert.h>
12642 /* Override any gcc2 internal prototype to avoid an error. */
12643 /* We use char because int might match the return type of a gcc2
12644 builtin and then its argument prototype would still apply. */
12649 /* The GNU C library defines this for functions which it implements
12650 to always fail with ENOSYS. Some functions are actually named
12651 something starting with __ and the normal name is an alias. */
12652 #if defined (__stub_msgget) || defined (__stub___msgget)
12660 if { (eval echo configure:12661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12662 eval "ac_cv_func_msgget=yes"
12664 echo "configure: failed program was:" >&5
12665 cat conftest.$ac_ext >&5
12667 eval "ac_cv_func_msgget=no"
12671 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
12672 echo "$ac_t""yes" 1>&6
12673 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
12674 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
12675 echo "configure:12676: checking for sys/ipc.h" >&5
12677 cat > conftest.$ac_ext <<EOF
12678 #line 12679 "configure"
12679 #include "confdefs.h"
12680 #include <sys/ipc.h>
12682 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12683 { (eval echo configure:12684: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12684 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12685 if test -z "$ac_err"; then
12687 eval "ac_cv_header_$ac_safe=yes"
12690 echo "configure: failed program was:" >&5
12691 cat conftest.$ac_ext >&5
12693 eval "ac_cv_header_$ac_safe=no"
12696 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12697 echo "$ac_t""yes" 1>&6
12698 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
12699 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
12700 echo "configure:12701: checking for sys/msg.h" >&5
12702 cat > conftest.$ac_ext <<EOF
12703 #line 12704 "configure"
12704 #include "confdefs.h"
12705 #include <sys/msg.h>
12707 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12708 { (eval echo configure:12709: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12709 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12710 if test -z "$ac_err"; then
12712 eval "ac_cv_header_$ac_safe=yes"
12715 echo "configure: failed program was:" >&5
12716 cat conftest.$ac_ext >&5
12718 eval "ac_cv_header_$ac_safe=no"
12721 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12722 echo "$ac_t""yes" 1>&6
12723 { test "$extra_verbose" = "yes" && cat << \EOF
12724 Defining HAVE_SYSVIPC
12726 cat >> confdefs.h <<\EOF
12727 #define HAVE_SYSVIPC 1
12732 echo "$ac_t""no" 1>&6
12736 echo "$ac_t""no" 1>&6
12740 echo "$ac_t""no" 1>&6
12744 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
12745 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
12746 echo "configure:12747: checking for dirent.h" >&5
12748 cat > conftest.$ac_ext <<EOF
12749 #line 12750 "configure"
12750 #include "confdefs.h"
12751 #include <dirent.h>
12753 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12754 { (eval echo configure:12755: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12755 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12756 if test -z "$ac_err"; then
12758 eval "ac_cv_header_$ac_safe=yes"
12761 echo "configure: failed program was:" >&5
12762 cat conftest.$ac_ext >&5
12764 eval "ac_cv_header_$ac_safe=no"
12767 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12768 echo "$ac_t""yes" 1>&6
12769 { test "$extra_verbose" = "yes" && cat << \EOF
12770 Defining SYSV_SYSTEM_DIR
12772 cat >> confdefs.h <<\EOF
12773 #define SYSV_SYSTEM_DIR 1
12778 echo "$ac_t""no" 1>&6
12779 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
12780 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
12781 echo "configure:12782: checking for sys/dir.h" >&5
12783 cat > conftest.$ac_ext <<EOF
12784 #line 12785 "configure"
12785 #include "confdefs.h"
12786 #include <sys/dir.h>
12788 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12789 { (eval echo configure:12790: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12790 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12791 if test -z "$ac_err"; then
12793 eval "ac_cv_header_$ac_safe=yes"
12796 echo "configure: failed program was:" >&5
12797 cat conftest.$ac_ext >&5
12799 eval "ac_cv_header_$ac_safe=no"
12802 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12803 echo "$ac_t""yes" 1>&6
12806 echo "$ac_t""no" 1>&6
12807 { test "$extra_verbose" = "yes" && cat << \EOF
12808 Defining NONSYSTEM_DIR_LIBRARY
12810 cat >> confdefs.h <<\EOF
12811 #define NONSYSTEM_DIR_LIBRARY 1
12820 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
12821 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
12822 echo "configure:12823: checking for nlist.h" >&5
12824 cat > conftest.$ac_ext <<EOF
12825 #line 12826 "configure"
12826 #include "confdefs.h"
12829 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12830 { (eval echo configure:12831: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12831 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12832 if test -z "$ac_err"; then
12834 eval "ac_cv_header_$ac_safe=yes"
12837 echo "configure: failed program was:" >&5
12838 cat conftest.$ac_ext >&5
12840 eval "ac_cv_header_$ac_safe=no"
12843 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12844 echo "$ac_t""yes" 1>&6
12845 { test "$extra_verbose" = "yes" && cat << \EOF
12846 Defining NLIST_STRUCT
12848 cat >> confdefs.h <<\EOF
12849 #define NLIST_STRUCT 1
12854 echo "$ac_t""no" 1>&6
12859 echo "checking "for sound support"" 1>&6
12860 echo "configure:12861: checking "for sound support"" >&5
12861 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
12863 if test "$with_native_sound" != "no"; then
12864 if test -n "$native_sound_lib"; then
12865 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
12866 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
12867 echo "configure:12868: checking for multimedia/audio_device.h" >&5
12869 cat > conftest.$ac_ext <<EOF
12870 #line 12871 "configure"
12871 #include "confdefs.h"
12872 #include <multimedia/audio_device.h>
12874 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12875 { (eval echo configure:12876: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12876 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12877 if test -z "$ac_err"; then
12879 eval "ac_cv_header_$ac_safe=yes"
12882 echo "configure: failed program was:" >&5
12883 cat conftest.$ac_ext >&5
12885 eval "ac_cv_header_$ac_safe=no"
12888 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12889 echo "$ac_t""yes" 1>&6
12890 sound_found=yes sound_cflags=""
12891 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
12892 echo " xemacs will be linked with \"sunplay.o\""
12895 echo "$ac_t""no" 1>&6
12900 if test -z "$sound_found" -a -d "/usr/demo/SOUND"; then
12902 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
12903 echo " xemacs will be linked with \"sunplay.o\""
12905 if test -d "/usr/demo/SOUND/include"
12906 then sound_cflags="-I/usr/demo/SOUND/include"
12907 else sound_cflags="-I/usr/demo/SOUND"
12909 if test -z "$native_sound_lib" ; then
12910 if test -r "/usr/demo/SOUND/lib/libaudio.a"
12911 then native_sound_lib="/usr/demo/SOUND/lib/libaudio.a"
12912 else native_sound_lib="/usr/demo/SOUND/libaudio.a"
12917 if test -z "$sound_found"; then
12918 case "$canonical" in
12920 if test -z "$native_sound_lib"; then
12922 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
12923 echo "configure:12924: checking for ALopenport in -laudio" >&5
12924 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
12926 xe_check_libs=" -laudio "
12927 cat > conftest.$ac_ext <<EOF
12928 #line 12929 "configure"
12929 #include "confdefs.h"
12930 /* Override any gcc2 internal prototype to avoid an error. */
12931 /* We use char because int might match the return type of a gcc2
12932 builtin and then its argument prototype would still apply. */
12939 if { (eval echo configure:12940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12941 eval "ac_cv_lib_$ac_lib_var=yes"
12943 echo "configure: failed program was:" >&5
12944 cat conftest.$ac_ext >&5
12946 eval "ac_cv_lib_$ac_lib_var=no"
12951 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12952 echo "$ac_t""yes" 1>&6
12953 native_sound_lib="-laudio"
12955 echo "$ac_t""no" 1>&6
12960 if test -n "$native_sound_lib"; then
12961 sound_found=yes sound_cflags=""
12962 extra_objs="$extra_objs sgiplay.o" && if test "$extra_verbose" = "yes"; then
12963 echo " xemacs will be linked with \"sgiplay.o\""
12967 if test -z "$native_sound_lib"; then
12969 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
12970 echo "configure:12971: checking for AOpenAudio in -lAlib" >&5
12971 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
12973 xe_check_libs=" -lAlib "
12974 cat > conftest.$ac_ext <<EOF
12975 #line 12976 "configure"
12976 #include "confdefs.h"
12977 /* Override any gcc2 internal prototype to avoid an error. */
12978 /* We use char because int might match the return type of a gcc2
12979 builtin and then its argument prototype would still apply. */
12986 if { (eval echo configure:12987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12988 eval "ac_cv_lib_$ac_lib_var=yes"
12990 echo "configure: failed program was:" >&5
12991 cat conftest.$ac_ext >&5
12993 eval "ac_cv_lib_$ac_lib_var=no"
12998 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12999 echo "$ac_t""yes" 1>&6
13000 native_sound_lib="-lAlib"
13002 echo "$ac_t""no" 1>&6
13007 if test -n "$native_sound_lib"; then
13009 extra_objs="$extra_objs hpplay.o" && if test "$extra_verbose" = "yes"; then
13010 echo " xemacs will be linked with \"hpplay.o\""
13012 if test "$GCC" = "yes" # Kludge city
13013 then sound_cflags="-Dconst= -Dvolatile= -I/usr/audio/examples"
13014 else sound_cflags="+e -I/usr/audio/examples"
13020 if test -z "$sound_found"; then
13021 if test "$with_msw" = "yes"; then
13027 if test -z "$sound_found"; then
13028 for dir in "machine" "sys" "linux"; do
13029 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
13030 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
13031 echo "configure:13032: checking for ${dir}/soundcard.h" >&5
13033 cat > conftest.$ac_ext <<EOF
13034 #line 13035 "configure"
13035 #include "confdefs.h"
13036 #include <${dir}/soundcard.h>
13038 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13039 { (eval echo configure:13040: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13040 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13041 if test -z "$ac_err"; then
13043 eval "ac_cv_header_$ac_safe=yes"
13046 echo "configure: failed program was:" >&5
13047 cat conftest.$ac_ext >&5
13049 eval "ac_cv_header_$ac_safe=no"
13052 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13053 echo "$ac_t""yes" 1>&6
13056 extra_objs="$extra_objs linuxplay.o" && if test "$extra_verbose" = "yes"; then
13057 echo " xemacs will be linked with \"linuxplay.o\""
13059 { test "$extra_verbose" = "yes" && cat << EOF
13060 Defining SOUNDCARD_H_FILE = "${dir}/soundcard.h"
13062 cat >> confdefs.h <<EOF
13063 #define SOUNDCARD_H_FILE "${dir}/soundcard.h"
13069 echo "$ac_t""no" 1>&6
13075 test "$sound_found" = "yes" && with_native_sound=yes
13078 if test "$with_native_sound" = "yes"; then
13079 { test "$extra_verbose" = "yes" && cat << \EOF
13080 Defining HAVE_NATIVE_SOUND
13082 cat >> confdefs.h <<\EOF
13083 #define HAVE_NATIVE_SOUND 1
13087 test -n "$native_sound_lib" && LIBS="$native_sound_lib $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$native_sound_lib\" to \$LIBS"; fi
13090 if test "$with_nas_sound" != "no"; then
13091 ac_safe=`echo "audio/audiolib.h" | sed 'y%./+-%__p_%'`
13092 echo $ac_n "checking for audio/audiolib.h""... $ac_c" 1>&6
13093 echo "configure:13094: checking for audio/audiolib.h" >&5
13095 cat > conftest.$ac_ext <<EOF
13096 #line 13097 "configure"
13097 #include "confdefs.h"
13098 #include <audio/audiolib.h>
13100 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13101 { (eval echo configure:13102: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13102 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13103 if test -z "$ac_err"; then
13105 eval "ac_cv_header_$ac_safe=yes"
13108 echo "configure: failed program was:" >&5
13109 cat conftest.$ac_ext >&5
13111 eval "ac_cv_header_$ac_safe=no"
13114 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13115 echo "$ac_t""yes" 1>&6
13118 echo $ac_n "checking for AuOpenServer in -laudio""... $ac_c" 1>&6
13119 echo "configure:13120: checking for AuOpenServer in -laudio" >&5
13120 ac_lib_var=`echo audio'_'AuOpenServer | sed 'y%./+-%__p_%'`
13122 xe_check_libs=" -laudio "
13123 cat > conftest.$ac_ext <<EOF
13124 #line 13125 "configure"
13125 #include "confdefs.h"
13126 /* Override any gcc2 internal prototype to avoid an error. */
13127 /* We use char because int might match the return type of a gcc2
13128 builtin and then its argument prototype would still apply. */
13129 char AuOpenServer();
13135 if { (eval echo configure:13136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13137 eval "ac_cv_lib_$ac_lib_var=yes"
13139 echo "configure: failed program was:" >&5
13140 cat conftest.$ac_ext >&5
13142 eval "ac_cv_lib_$ac_lib_var=no"
13147 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13148 echo "$ac_t""yes" 1>&6
13151 echo "$ac_t""no" 1>&6
13156 echo "$ac_t""no" 1>&6
13159 if test "$have_nas_sound" = "yes"; then
13161 { test "$extra_verbose" = "yes" && cat << \EOF
13162 Defining HAVE_NAS_SOUND
13164 cat >> confdefs.h <<\EOF
13165 #define HAVE_NAS_SOUND 1
13169 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
13170 echo " xemacs will be linked with \"nas.o\""
13172 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi
13173 cat > conftest.$ac_ext <<EOF
13174 #line 13175 "configure"
13175 #include "confdefs.h"
13176 #include <audio/Xtutil.h>
13178 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13179 egrep "AuXtErrorJump" >/dev/null 2>&1; then
13183 old_nas=yes; { test "$extra_verbose" = "yes" && cat << \EOF
13184 Defining NAS_NO_ERROR_JUMP
13186 cat >> confdefs.h <<\EOF
13187 #define NAS_NO_ERROR_JUMP 1
13195 test "$with_nas_sound" = "yes" && \
13196 { echo "Error:" "Required NAS sound support cannot be provided." >&2; exit 1; }
13201 if test "$with_esd_sound" != "no"; then
13202 # Extract the first word of "esd-config", so it can be a program name with args.
13203 set dummy esd-config; ac_word=$2
13204 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
13205 echo "configure:13206: checking for $ac_word" >&5
13207 if test -n "$have_esd_config"; then
13208 ac_cv_prog_have_esd_config="$have_esd_config" # Let the user override the test.
13210 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
13212 for ac_dir in $ac_dummy; do
13213 test -z "$ac_dir" && ac_dir=.
13214 if test -f $ac_dir/$ac_word; then
13215 ac_cv_prog_have_esd_config="yes"
13220 test -z "$ac_cv_prog_have_esd_config" && ac_cv_prog_have_esd_config="no"
13222 have_esd_config="$ac_cv_prog_have_esd_config"
13223 if test -n "$have_esd_config"; then
13224 echo "$ac_t""$have_esd_config" 1>&6
13226 echo "$ac_t""no" 1>&6
13229 if test "$have_esd_config" = "yes"; then
13230 save_c_switch_site="$c_switch_site" save_LIBS="$LIBS"
13231 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
13232 LIBS="`esd-config --libs` $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"`esd-config --libs`\" to \$LIBS"; fi
13233 echo $ac_n "checking for esd_play_stream""... $ac_c" 1>&6
13234 echo "configure:13235: checking for esd_play_stream" >&5
13236 cat > conftest.$ac_ext <<EOF
13237 #line 13238 "configure"
13238 #include "confdefs.h"
13239 /* System header to define __stub macros and hopefully few prototypes,
13240 which can conflict with char esd_play_stream(); below. */
13241 #include <assert.h>
13242 /* Override any gcc2 internal prototype to avoid an error. */
13243 /* We use char because int might match the return type of a gcc2
13244 builtin and then its argument prototype would still apply. */
13245 char esd_play_stream();
13249 /* The GNU C library defines this for functions which it implements
13250 to always fail with ENOSYS. Some functions are actually named
13251 something starting with __ and the normal name is an alias. */
13252 #if defined (__stub_esd_play_stream) || defined (__stub___esd_play_stream)
13260 if { (eval echo configure:13261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13262 eval "ac_cv_func_esd_play_stream=yes"
13264 echo "configure: failed program was:" >&5
13265 cat conftest.$ac_ext >&5
13267 eval "ac_cv_func_esd_play_stream=no"
13271 if eval "test \"`echo '$ac_cv_func_'esd_play_stream`\" = yes"; then
13272 echo "$ac_t""yes" 1>&6
13275 echo "$ac_t""no" 1>&6
13276 c_switch_site="$save_c_switch_site" LIBS="$save_LIBS"
13281 if test "$have_esd_sound" = "yes"; then
13284 extra_objs="$extra_objs esd.o" && if test "$extra_verbose" = "yes"; then
13285 echo " xemacs will be linked with \"esd.o\""
13287 { test "$extra_verbose" = "yes" && cat << \EOF
13288 Defining HAVE_ESD_SOUND
13290 cat >> confdefs.h <<\EOF
13291 #define HAVE_ESD_SOUND 1
13296 test "$with_esd_sound" = "yes" && \
13297 { echo "Error:" "Required ESD sound support cannot be provided." >&2; exit 1; }
13302 test "$need_miscplay" = "yes" && extra_objs="$extra_objs miscplay.o" && if test "$extra_verbose" = "yes"; then
13303 echo " xemacs will be linked with \"miscplay.o\""
13307 test -z "$with_tty" && with_tty=yes
13309 if test "$with_tty" = "yes" ; then
13310 echo "checking for TTY-related features" 1>&6
13311 echo "configure:13312: checking for TTY-related features" >&5
13312 { test "$extra_verbose" = "yes" && cat << \EOF
13315 cat >> confdefs.h <<\EOF
13320 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
13321 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\""
13324 if test -z "$with_ncurses"; then
13326 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
13327 echo "configure:13328: checking for tgetent in -lncurses" >&5
13328 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
13330 xe_check_libs=" -lncurses "
13331 cat > conftest.$ac_ext <<EOF
13332 #line 13333 "configure"
13333 #include "confdefs.h"
13334 /* Override any gcc2 internal prototype to avoid an error. */
13335 /* We use char because int might match the return type of a gcc2
13336 builtin and then its argument prototype would still apply. */
13343 if { (eval echo configure:13344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13345 eval "ac_cv_lib_$ac_lib_var=yes"
13347 echo "configure: failed program was:" >&5
13348 cat conftest.$ac_ext >&5
13350 eval "ac_cv_lib_$ac_lib_var=no"
13355 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13356 echo "$ac_t""yes" 1>&6
13359 echo "$ac_t""no" 1>&6
13365 if test "$with_ncurses" = "yes"; then
13366 { test "$extra_verbose" = "yes" && cat << \EOF
13367 Defining HAVE_NCURSES
13369 cat >> confdefs.h <<\EOF
13370 #define HAVE_NCURSES 1
13374 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
13375 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
13376 echo "configure:13377: checking for ncurses/curses.h" >&5
13378 cat > conftest.$ac_ext <<EOF
13379 #line 13380 "configure"
13380 #include "confdefs.h"
13381 #include <ncurses/curses.h>
13383 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13384 { (eval echo configure:13385: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13385 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13386 if test -z "$ac_err"; then
13388 eval "ac_cv_header_$ac_safe=yes"
13391 echo "configure: failed program was:" >&5
13392 cat conftest.$ac_ext >&5
13394 eval "ac_cv_header_$ac_safe=no"
13397 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13398 echo "$ac_t""yes" 1>&6
13399 curses_h_file=ncurses/curses.h
13401 echo "$ac_t""no" 1>&6
13404 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
13405 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
13406 echo "configure:13407: checking for ncurses/term.h" >&5
13408 cat > conftest.$ac_ext <<EOF
13409 #line 13410 "configure"
13410 #include "confdefs.h"
13411 #include <ncurses/term.h>
13413 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13414 { (eval echo configure:13415: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13415 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13416 if test -z "$ac_err"; then
13418 eval "ac_cv_header_$ac_safe=yes"
13421 echo "configure: failed program was:" >&5
13422 cat conftest.$ac_ext >&5
13424 eval "ac_cv_header_$ac_safe=no"
13427 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13428 echo "$ac_t""yes" 1>&6
13429 term_h_file=ncurses/term.h
13431 echo "$ac_t""no" 1>&6
13434 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
13435 echo " xemacs will be linked with \"terminfo.o\""
13437 LIBS="-lncurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lncurses\" to \$LIBS"; fi
13439 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
13440 save_c_switch_site="$c_switch_site"
13441 c_switch_site="$c_switch_site -I/usr/include/ncurses"
13442 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
13443 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
13444 echo "configure:13445: checking for ncurses/curses.h" >&5
13446 cat > conftest.$ac_ext <<EOF
13447 #line 13448 "configure"
13448 #include "confdefs.h"
13449 #include <ncurses/curses.h>
13451 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13452 { (eval echo configure:13453: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13453 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13454 if test -z "$ac_err"; then
13456 eval "ac_cv_header_$ac_safe=yes"
13459 echo "configure: failed program was:" >&5
13460 cat conftest.$ac_ext >&5
13462 eval "ac_cv_header_$ac_safe=no"
13465 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13466 echo "$ac_t""yes" 1>&6
13467 curses_h_file=ncurses/curses.h
13469 echo "$ac_t""no" 1>&6
13472 if test "$ac_cv_header_ncurses_curses_h" = "yes"
13473 then echo "configure: warning: "Your system has the bogus ncurses include bug."" 1>&2
13474 else c_switch_site="$save_c_switch_site"
13477 else if test "$have_terminfo" = "yes"; then
13478 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
13479 echo " xemacs will be linked with \"terminfo.o\""
13481 if test -n "$libs_termcap"; then
13482 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
13484 for lib in curses termlib termcap; do
13486 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
13487 echo "configure:13488: checking for tgetent in -l$lib" >&5
13488 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
13490 xe_check_libs=" -l$lib "
13491 cat > conftest.$ac_ext <<EOF
13492 #line 13493 "configure"
13493 #include "confdefs.h"
13494 /* Override any gcc2 internal prototype to avoid an error. */
13495 /* We use char because int might match the return type of a gcc2
13496 builtin and then its argument prototype would still apply. */
13503 if { (eval echo configure:13504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13505 eval "ac_cv_lib_$ac_lib_var=yes"
13507 echo "configure: failed program was:" >&5
13508 cat conftest.$ac_ext >&5
13510 eval "ac_cv_lib_$ac_lib_var=no"
13515 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13516 echo "$ac_t""yes" 1>&6
13517 LIBS="-l${lib} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${lib}\" to \$LIBS"; fi; break
13519 echo "$ac_t""no" 1>&6
13525 else extra_objs="$extra_objs tparam.o" && if test "$extra_verbose" = "yes"; then
13526 echo " xemacs will be linked with \"tparam.o\""
13528 case "$opsys" in *-hp-hpux* ) libs_termcap="-ltermcap" ;; esac
13529 if test -n "$libs_termcap"; then
13530 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
13533 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
13534 echo "configure:13535: checking for tgetent in -lcurses" >&5
13535 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
13537 xe_check_libs=" -lcurses "
13538 cat > conftest.$ac_ext <<EOF
13539 #line 13540 "configure"
13540 #include "confdefs.h"
13541 /* Override any gcc2 internal prototype to avoid an error. */
13542 /* We use char because int might match the return type of a gcc2
13543 builtin and then its argument prototype would still apply. */
13550 if { (eval echo configure:13551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13552 eval "ac_cv_lib_$ac_lib_var=yes"
13554 echo "configure: failed program was:" >&5
13555 cat conftest.$ac_ext >&5
13557 eval "ac_cv_lib_$ac_lib_var=no"
13562 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13563 echo "$ac_t""yes" 1>&6
13564 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
13566 echo "$ac_t""no" 1>&6
13567 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
13568 echo "configure:13569: checking for tgetent in -ltermcap" >&5
13569 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
13571 xe_check_libs=" -ltermcap "
13572 cat > conftest.$ac_ext <<EOF
13573 #line 13574 "configure"
13574 #include "confdefs.h"
13575 /* Override any gcc2 internal prototype to avoid an error. */
13576 /* We use char because int might match the return type of a gcc2
13577 builtin and then its argument prototype would still apply. */
13584 if { (eval echo configure:13585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13586 eval "ac_cv_lib_$ac_lib_var=yes"
13588 echo "configure: failed program was:" >&5
13589 cat conftest.$ac_ext >&5
13591 eval "ac_cv_lib_$ac_lib_var=no"
13596 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13597 echo "$ac_t""yes" 1>&6
13598 LIBS="-ltermcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltermcap\" to \$LIBS"; fi
13600 echo "$ac_t""no" 1>&6
13601 extra_objs="$extra_objs termcap.o" && if test "$extra_verbose" = "yes"; then
13602 echo " xemacs will be linked with \"termcap.o\""
13613 { test "$extra_verbose" = "yes" && cat << EOF
13614 Defining CURSES_H_FILE = "${curses_h_file-curses.h}"
13616 cat >> confdefs.h <<EOF
13617 #define CURSES_H_FILE "${curses_h_file-curses.h}"
13621 { test "$extra_verbose" = "yes" && cat << EOF
13622 Defining TERM_H_FILE = "${term_h_file-term.h}"
13624 cat >> confdefs.h <<EOF
13625 #define TERM_H_FILE "${term_h_file-term.h}"
13630 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
13631 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
13632 echo "configure:13633: checking for gpm.h" >&5
13634 cat > conftest.$ac_ext <<EOF
13635 #line 13636 "configure"
13636 #include "confdefs.h"
13639 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13640 { (eval echo configure:13641: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13641 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13642 if test -z "$ac_err"; then
13644 eval "ac_cv_header_$ac_safe=yes"
13647 echo "configure: failed program was:" >&5
13648 cat conftest.$ac_ext >&5
13650 eval "ac_cv_header_$ac_safe=no"
13653 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13654 echo "$ac_t""yes" 1>&6
13657 echo "$ac_t""no" 1>&6
13661 test -z "$with_gpm" && {
13662 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
13663 echo "configure:13664: checking for Gpm_Open in -lgpm" >&5
13664 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
13666 xe_check_libs=" -lgpm "
13667 cat > conftest.$ac_ext <<EOF
13668 #line 13669 "configure"
13669 #include "confdefs.h"
13670 /* Override any gcc2 internal prototype to avoid an error. */
13671 /* We use char because int might match the return type of a gcc2
13672 builtin and then its argument prototype would still apply. */
13679 if { (eval echo configure:13680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13681 eval "ac_cv_lib_$ac_lib_var=yes"
13683 echo "configure: failed program was:" >&5
13684 cat conftest.$ac_ext >&5
13686 eval "ac_cv_lib_$ac_lib_var=no"
13691 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13692 echo "$ac_t""yes" 1>&6
13695 echo "$ac_t""no" 1>&6
13700 if test "$with_gpm" = "yes"; then
13701 { test "$extra_verbose" = "yes" && cat << \EOF
13704 cat >> confdefs.h <<\EOF
13709 extra_objs="$extra_objs gpmevent.o" && if test "$extra_verbose" = "yes"; then
13710 echo " xemacs will be linked with \"gpmevent.o\""
13712 LIBS="-lgpm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgpm\" to \$LIBS"; fi
13715 else for feature in ncurses gpm; do
13716 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
13717 echo "configure: warning: "--with-${feature} ignored: Not valid without TTY support"" 1>&2
13719 eval "with_${feature}=no"
13722 test "$with_x11" = "yes" -o "$with_tty" = "yes" -o "$need_event_unixoid" = "yes" && extra_objs="$extra_objs event-unixoid.o" && if test "$extra_verbose" = "yes"; then
13723 echo " xemacs will be linked with \"event-unixoid.o\""
13727 test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
13728 != "no no no" && echo "checking for database support" 1>&6
13729 echo "configure:13730: checking for database support" >&5
13731 if test "$with_database_gdbm $with_database_dbm" != "no no"; then
13732 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'`
13733 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6
13734 echo "configure:13735: checking for ndbm.h" >&5
13736 cat > conftest.$ac_ext <<EOF
13737 #line 13738 "configure"
13738 #include "confdefs.h"
13741 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13742 { (eval echo configure:13743: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13743 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13744 if test -z "$ac_err"; then
13746 eval "ac_cv_header_$ac_safe=yes"
13749 echo "configure: failed program was:" >&5
13750 cat conftest.$ac_ext >&5
13752 eval "ac_cv_header_$ac_safe=no"
13755 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13756 echo "$ac_t""yes" 1>&6
13759 echo "$ac_t""no" 1>&6
13761 test "$with_database_gdbm" = "yes" -o \
13762 "$with_database_dbm" = "yes" && \
13763 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
13764 with_database_gdbm=no with_database_dbm=no
13769 if test "$with_database_gdbm" != "no"; then
13771 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
13772 echo "configure:13773: checking for dbm_open in -lgdbm" >&5
13773 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
13775 xe_check_libs=" -lgdbm "
13776 cat > conftest.$ac_ext <<EOF
13777 #line 13778 "configure"
13778 #include "confdefs.h"
13779 /* Override any gcc2 internal prototype to avoid an error. */
13780 /* We use char because int might match the return type of a gcc2
13781 builtin and then its argument prototype would still apply. */
13788 if { (eval echo configure:13789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13790 eval "ac_cv_lib_$ac_lib_var=yes"
13792 echo "configure: failed program was:" >&5
13793 cat conftest.$ac_ext >&5
13795 eval "ac_cv_lib_$ac_lib_var=no"
13800 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13801 echo "$ac_t""yes" 1>&6
13802 with_database_gdbm=yes with_database_dbm=no libdbm=-lgdbm
13804 echo "$ac_t""no" 1>&6
13805 if test "$with_database_gdbm" = "yes"; then
13806 { echo "Error:" "Required GNU DBM support cannot be provided." >&2; exit 1; }
13808 with_database_gdbm=no
13814 if test "$with_database_dbm" != "no"; then
13815 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
13816 echo "configure:13817: checking for dbm_open" >&5
13818 cat > conftest.$ac_ext <<EOF
13819 #line 13820 "configure"
13820 #include "confdefs.h"
13821 /* System header to define __stub macros and hopefully few prototypes,
13822 which can conflict with char dbm_open(); below. */
13823 #include <assert.h>
13824 /* Override any gcc2 internal prototype to avoid an error. */
13825 /* We use char because int might match the return type of a gcc2
13826 builtin and then its argument prototype would still apply. */
13831 /* The GNU C library defines this for functions which it implements
13832 to always fail with ENOSYS. Some functions are actually named
13833 something starting with __ and the normal name is an alias. */
13834 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
13842 if { (eval echo configure:13843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13844 eval "ac_cv_func_dbm_open=yes"
13846 echo "configure: failed program was:" >&5
13847 cat conftest.$ac_ext >&5
13849 eval "ac_cv_func_dbm_open=no"
13853 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
13854 echo "$ac_t""yes" 1>&6
13855 with_database_dbm=yes libdbm=
13857 echo "$ac_t""no" 1>&6
13860 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
13861 echo "configure:13862: checking for dbm_open in -ldbm" >&5
13862 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
13864 xe_check_libs=" -ldbm "
13865 cat > conftest.$ac_ext <<EOF
13866 #line 13867 "configure"
13867 #include "confdefs.h"
13868 /* Override any gcc2 internal prototype to avoid an error. */
13869 /* We use char because int might match the return type of a gcc2
13870 builtin and then its argument prototype would still apply. */
13877 if { (eval echo configure:13878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13879 eval "ac_cv_lib_$ac_lib_var=yes"
13881 echo "configure: failed program was:" >&5
13882 cat conftest.$ac_ext >&5
13884 eval "ac_cv_lib_$ac_lib_var=no"
13889 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13890 echo "$ac_t""yes" 1>&6
13891 with_database_dbm=yes libdbm=-ldbm
13893 echo "$ac_t""no" 1>&6
13894 test "$with_database_dbm" = "yes" && \
13895 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
13896 with_database_dbm=no
13904 test -n "$libdbm" && LIBS=""$libdbm" $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libdbm"\" to \$LIBS"; fi
13905 test "$with_database_gdbm" = "yes" -o \
13906 "$with_database_dbm" = "yes" && \
13907 { test "$extra_verbose" = "yes" && cat << \EOF
13910 cat >> confdefs.h <<\EOF
13916 if test "$with_database_berkdb" != "no"; then
13917 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6
13918 echo "configure:13919: checking for Berkeley db.h" >&5
13919 for header in "db/db.h" "db.h"; do
13920 cat > conftest.$ac_ext <<EOF
13921 #line 13922 "configure"
13922 #include "confdefs.h"
13924 #include <stdlib.h>
13925 #if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1)
13926 #ifdef HAVE_INTTYPES_H
13927 #define __BIT_TYPES_DEFINED__
13928 #include <inttypes.h>
13929 typedef uint8_t u_int8_t;
13930 typedef uint16_t u_int16_t;
13931 typedef uint32_t u_int32_t;
13932 #ifdef WE_DONT_NEED_QUADS
13933 typedef uint64_t u_int64_t;
13943 if { (eval echo configure:13944: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13945 db_h_file="$header"; break
13947 echo "configure: failed program was:" >&5
13948 cat conftest.$ac_ext >&5
13952 if test -z "$db_h_file"
13953 then echo "$ac_t""no" 1>&6; with_database_berkdb=no
13954 else echo "$ac_t""$db_h_file" 1>&6
13957 if test "$with_database_berkdb" != "no"; then
13958 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6
13959 echo "configure:13960: checking for Berkeley DB version" >&5
13960 cat > conftest.$ac_ext <<EOF
13961 #line 13962 "configure"
13962 #include "confdefs.h"
13963 #include <$db_h_file>
13964 #if DB_VERSION_MAJOR > 1
13969 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13970 egrep "yes" >/dev/null 2>&1; then
13972 cat > conftest.$ac_ext <<EOF
13973 #line 13974 "configure"
13974 #include "confdefs.h"
13975 #include <$db_h_file>
13976 #if DB_VERSION_MAJOR > 2
13981 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13982 egrep "yes" >/dev/null 2>&1; then
13984 echo "$ac_t""3" 1>&6; dbfunc=db_create
13988 echo "$ac_t""2" 1>&6; dbfunc=db_open
13995 echo "$ac_t""1" 1>&6; dbfunc=dbopen
13999 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6
14000 echo "configure:14001: checking for $dbfunc" >&5
14002 cat > conftest.$ac_ext <<EOF
14003 #line 14004 "configure"
14004 #include "confdefs.h"
14005 /* System header to define __stub macros and hopefully few prototypes,
14006 which can conflict with char $dbfunc(); below. */
14007 #include <assert.h>
14008 /* Override any gcc2 internal prototype to avoid an error. */
14009 /* We use char because int might match the return type of a gcc2
14010 builtin and then its argument prototype would still apply. */
14015 /* The GNU C library defines this for functions which it implements
14016 to always fail with ENOSYS. Some functions are actually named
14017 something starting with __ and the normal name is an alias. */
14018 #if defined (__stub_$dbfunc) || defined (__stub___$dbfunc)
14026 if { (eval echo configure:14027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14028 eval "ac_cv_func_$dbfunc=yes"
14030 echo "configure: failed program was:" >&5
14031 cat conftest.$ac_ext >&5
14033 eval "ac_cv_func_$dbfunc=no"
14037 if eval "test \"`echo '$ac_cv_func_'$dbfunc`\" = yes"; then
14038 echo "$ac_t""yes" 1>&6
14039 with_database_berkdb=yes need_libdb=no
14041 echo "$ac_t""no" 1>&6
14044 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6
14045 echo "configure:14046: checking for $dbfunc in -ldb" >&5
14046 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'`
14048 xe_check_libs=" -ldb "
14049 cat > conftest.$ac_ext <<EOF
14050 #line 14051 "configure"
14051 #include "confdefs.h"
14052 /* Override any gcc2 internal prototype to avoid an error. */
14053 /* We use char because int might match the return type of a gcc2
14054 builtin and then its argument prototype would still apply. */
14061 if { (eval echo configure:14062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14063 eval "ac_cv_lib_$ac_lib_var=yes"
14065 echo "configure: failed program was:" >&5
14066 cat conftest.$ac_ext >&5
14068 eval "ac_cv_lib_$ac_lib_var=no"
14073 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
14074 echo "$ac_t""yes" 1>&6
14075 with_database_berkdb=yes need_libdb=yes
14077 echo "$ac_t""no" 1>&6
14085 if test "$with_database_berkdb" = "yes"; then
14086 { test "$extra_verbose" = "yes" && cat << EOF
14087 Defining DB_H_FILE = "$db_h_file"
14089 cat >> confdefs.h <<EOF
14090 #define DB_H_FILE "$db_h_file"
14094 { test "$extra_verbose" = "yes" && cat << \EOF
14095 Defining HAVE_BERKELEY_DB
14097 cat >> confdefs.h <<\EOF
14098 #define HAVE_BERKELEY_DB 1
14102 test "$need_libdb" = "yes" && LIBS="-ldb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldb\" to \$LIBS"; fi
14103 else with_database_berkdb=no
14107 if test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
14108 != "no no no"; then
14109 { test "$extra_verbose" = "yes" && cat << \EOF
14110 Defining HAVE_DATABASE
14112 cat >> confdefs.h <<\EOF
14113 #define HAVE_DATABASE 1
14117 extra_objs="$extra_objs database.o" && if test "$extra_verbose" = "yes"; then
14118 echo " xemacs will be linked with \"database.o\""
14122 if test "$with_socks" = "yes"; then
14124 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
14125 echo "configure:14126: checking for SOCKSinit in -lsocks" >&5
14126 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
14128 xe_check_libs=" -lsocks "
14129 cat > conftest.$ac_ext <<EOF
14130 #line 14131 "configure"
14131 #include "confdefs.h"
14132 /* Override any gcc2 internal prototype to avoid an error. */
14133 /* We use char because int might match the return type of a gcc2
14134 builtin and then its argument prototype would still apply. */
14141 if { (eval echo configure:14142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14143 eval "ac_cv_lib_$ac_lib_var=yes"
14145 echo "configure: failed program was:" >&5
14146 cat conftest.$ac_ext >&5
14148 eval "ac_cv_lib_$ac_lib_var=no"
14153 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
14154 echo "$ac_t""yes" 1>&6
14155 ac_tr_lib=HAVE_LIB`echo socks | sed -e 's/[^a-zA-Z0-9_]/_/g' \
14156 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
14157 { test "$extra_verbose" = "yes" && cat << EOF
14158 Defining $ac_tr_lib
14160 cat >> confdefs.h <<EOF
14161 #define $ac_tr_lib 1
14165 LIBS="-lsocks $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lsocks\" to \$LIBS"; fi
14168 echo "$ac_t""no" 1>&6
14172 test -n "$ac_cv_lib_socks_SOCKSinit" && { test "$extra_verbose" = "yes" && cat << \EOF
14173 Defining HAVE_SOCKS
14175 cat >> confdefs.h <<\EOF
14176 #define HAVE_SOCKS 1
14182 if test "$usage_tracking" = "yes"; then
14183 { test "$extra_verbose" = "yes" && cat << \EOF
14184 Defining USAGE_TRACKING
14186 cat >> confdefs.h <<\EOF
14187 #define USAGE_TRACKING 1
14191 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi
14194 if test "$with_modules" != "no"; then
14195 echo "checking for module support" 1>&6
14196 echo "configure:14197: checking for module support" >&5
14198 if test "$with_msw" = "yes"; then
14201 ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'`
14202 echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6
14203 echo "configure:14204: checking for dlfcn.h" >&5
14205 cat > conftest.$ac_ext <<EOF
14206 #line 14207 "configure"
14207 #include "confdefs.h"
14210 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14211 { (eval echo configure:14212: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14212 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14213 if test -z "$ac_err"; then
14215 eval "ac_cv_header_$ac_safe=yes"
14218 echo "configure: failed program was:" >&5
14219 cat conftest.$ac_ext >&5
14221 eval "ac_cv_header_$ac_safe=no"
14224 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14225 echo "$ac_t""yes" 1>&6
14227 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6
14228 echo "configure:14229: checking for dlopen in -lc" >&5
14229 cat > conftest.$ac_ext <<EOF
14230 #line 14231 "configure"
14231 #include "confdefs.h"
14237 if { (eval echo configure:14238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14241 echo "configure: failed program was:" >&5
14242 cat conftest.$ac_ext >&5
14245 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
14246 echo "configure:14247: checking for dlopen in -ldl" >&5
14247 ac_save_LIBS="$LIBS"
14249 cat > conftest.$ac_ext <<EOF
14250 #line 14251 "configure"
14251 #include "confdefs.h"
14257 if { (eval echo configure:14258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14261 echo "configure: failed program was:" >&5
14262 cat conftest.$ac_ext >&5
14264 LIBS="$ac_save_LIBS"
14271 echo "$ac_t""no" 1>&6
14274 if test -n "$have_dl"; then
14275 { test "$extra_verbose" = "yes" && cat << \EOF
14276 Defining HAVE_DLOPEN
14278 cat >> confdefs.h <<\EOF
14279 #define HAVE_DLOPEN 1
14285 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
14286 echo "configure:14287: checking for shl_load in -ldld" >&5
14287 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
14289 xe_check_libs=" -ldld "
14290 cat > conftest.$ac_ext <<EOF
14291 #line 14292 "configure"
14292 #include "confdefs.h"
14293 /* Override any gcc2 internal prototype to avoid an error. */
14294 /* We use char because int might match the return type of a gcc2
14295 builtin and then its argument prototype would still apply. */
14302 if { (eval echo configure:14303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14304 eval "ac_cv_lib_$ac_lib_var=yes"
14306 echo "configure: failed program was:" >&5
14307 cat conftest.$ac_ext >&5
14309 eval "ac_cv_lib_$ac_lib_var=no"
14314 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
14315 echo "$ac_t""yes" 1>&6
14316 libdl=dld have_dl=yes;
14317 { test "$extra_verbose" = "yes" && cat << \EOF
14318 Defining HAVE_SHL_LOAD
14320 cat >> confdefs.h <<\EOF
14321 #define HAVE_SHL_LOAD 1
14326 echo "$ac_t""no" 1>&6
14328 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6
14329 echo "configure:14330: checking for dld_init in -ldld" >&5
14330 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'`
14332 xe_check_libs=" -ldld "
14333 cat > conftest.$ac_ext <<EOF
14334 #line 14335 "configure"
14335 #include "confdefs.h"
14336 /* Override any gcc2 internal prototype to avoid an error. */
14337 /* We use char because int might match the return type of a gcc2
14338 builtin and then its argument prototype would still apply. */
14345 if { (eval echo configure:14346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14347 eval "ac_cv_lib_$ac_lib_var=yes"
14349 echo "configure: failed program was:" >&5
14350 cat conftest.$ac_ext >&5
14352 eval "ac_cv_lib_$ac_lib_var=no"
14357 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
14358 echo "$ac_t""yes" 1>&6
14359 libdl=dld have_dl=yes;
14360 { test "$extra_verbose" = "yes" && cat << \EOF
14361 Defining HAVE_DLD_INIT
14363 cat >> confdefs.h <<\EOF
14364 #define HAVE_DLD_INIT 1
14369 echo "$ac_t""no" 1>&6
14378 if test -n "$have_dl"; then
14385 ld_dynamic_link_flags=
14387 xealias=$internal_configuration
14389 echo "checking how to build dynamic libraries for ${xehost}" 1>&6
14390 echo "configure:14391: checking how to build dynamic libraries for ${xehost}" >&5
14391 # Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts.
14394 *-*-linux*) xehost=`echo $xehost | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
14397 xehost_cpu=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
14398 xehost_vendor=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
14399 xehost_os=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
14401 case "$xehost_os" in
14403 # AIX sometimes has problems with the GCC collect2 program. For some
14404 # reason, if we set the COLLECT_NAMES environment variable, the problems
14405 # vanish in a puff of smoke.
14406 if test "${COLLECT_NAMES+set}" != set; then
14408 export COLLECT_NAMES
14413 # Now see if the compiler is really GCC.
14414 if test "$GCC" = "yes"; then
14417 echo $ac_n "checking checking whether we are using GNU C""... $ac_c" 1>&6
14418 echo "configure:14419: checking checking whether we are using GNU C" >&5
14419 cat > conftest.$ac_ext <<EOF
14420 #line 14421 "configure"
14421 #include "confdefs.h"
14428 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14429 egrep "yes" >/dev/null 2>&1; then
14438 echo "$ac_t""${XEGCC}" 1>&6
14441 echo $ac_n "checking how to produce PIC code""... $ac_c" 1>&6
14442 echo "configure:14443: checking how to produce PIC code" >&5
14445 can_build_shared=yes
14446 if test "$XEGCC" = yes; then
14449 case "$xehost_os" in
14450 aix[3-9]* | irix[5-9]* | osf[3-9])
14451 # PIC is the default for these OSes.
14455 # We can build DLLs from non-PIC.
14458 # FIXME: we need at least 68020 code to build shared libraries, but
14459 # adding the `-m68020' flag to GCC prevents building anything better,
14461 dll_cflags='-m68020 -resident32 -malways-restore-a4'
14463 *cygwin* | *mingw* )
14464 # PIC is the default
14471 # PORTME Check for PIC flags for the system compiler.
14472 case "$xehost_os" in
14473 hpux9* | hpux1[0-9]*)
14474 # Is there a better link_static_flag that works with the bundled CC?
14481 # PIC (with -KPIC) is the default.
14485 # We can build DLLs from non-PIC.
14489 # All OSF/1 code is PIC.
14494 # All AIX code is PIC.
14499 dll_cflags='-belf -Kpic'
14533 can_build_shared=no
14538 if test -n "$dll_cflags"; then
14539 echo "$ac_t""${dll_cflags}" 1>&6
14541 # Check to make sure the dll_cflags actually works.
14542 echo $ac_n "checking if PIC flag ${dll_cflags} really works""... $ac_c" 1>&6
14543 echo "configure:14544: checking if PIC flag ${dll_cflags} really works" >&5
14544 save_CFLAGS="$CFLAGS"
14545 CFLAGS="$CFLAGS $dll_cflags -DPIC"
14546 cat > conftest.$ac_ext <<EOF
14547 #line 14548 "configure"
14548 #include "confdefs.h"
14554 if { (eval echo configure:14555: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14557 # On HP-UX, the stripped-down bundled CC doesn't accept +Z, but also
14558 # reports no error. So, we need to grep stderr for (Bundled).
14559 if grep '(Bundled)' config.log >/dev/null; then
14560 echo "$ac_t""no" 1>&6
14561 can_build_shared=no
14564 echo "$ac_t""yes" 1>&6
14567 echo "configure: failed program was:" >&5
14568 cat conftest.$ac_ext >&5
14570 echo "$ac_t""no" 1>&6
14571 can_build_shared=no
14575 CFLAGS="$save_CFLAGS"
14577 echo "$ac_t""none" 1>&6
14580 if test "$can_build_shared" = "yes"; then
14584 echo $ac_n "checking if C compiler can produce shared libraries""... $ac_c" 1>&6
14585 echo "configure:14586: checking if C compiler can produce shared libraries" >&5
14586 if test "$XEGCC" = yes; then
14589 else # Not using GCC
14590 case "$xehost_os" in
14592 xldf="-bE:ELLSONAME.exp -H512 -T512 -bhalt:4 -bM:SRE -bnoentry -lc"
14593 xcldf="${wl}-bE:ELLSONAME.exp ${wl}-H512 ${wl}-T512 ${wl}-bhalt:4 ${wl}-bM:SRE ${wl}-bnoentry ${wl}-lc"
14596 freebsd2* | netbsd* | openbsd*)
14598 xcldf="${wl}-Bshareable"
14607 xcldf="${wl}-b ${wl}+s"
14610 irix[5-9]* | osf[3-9]*)
14611 xcldf="${wl}-shared"
14615 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7* | uts4*)
14621 xcldf="${wl}-assert ${wl}pure-text ${wl}-Bstatic"
14622 xldf="-assert pure-text -Bstatic"
14625 fi # End if if we are using gcc
14627 if test -n "$xcldf"; then
14628 save_LDFLAGS=$LDFLAGS
14630 save_xe_libs=$xe_libs
14631 LDFLAGS="$xcldf $LDFLAGS"
14634 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
14635 cat > conftest.$ac_ext <<EOF
14636 #line 14637 "configure"
14637 #include "confdefs.h"
14643 if { (eval echo configure:14644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14647 echo "configure: failed program was:" >&5
14648 cat conftest.$ac_ext >&5
14653 LDFLAGS=$save_LDFLAGS
14655 xe_libs=$save_xe_libs
14656 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
14660 echo "$ac_t""${cc_produces_so}" 1>&6
14663 if test -z "$LTLD"; then
14665 if test "$XEGCC" = yes; then
14666 # Check if gcc -print-prog-name=ld gives a path.
14667 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
14668 echo "configure:14669: checking for ld used by GCC" >&5
14669 ac_prog=`($CC -print-prog-name=ld) 2>&5`
14671 # Accept absolute paths.
14673 if test -z "$LTLD"; then
14674 # case "$ac_prog" in
14675 # *gcc-lib*) LTLD="$CC"
14684 # If it fails, then pretend we aren't using GCC.
14688 # If it is relative, then search for the first ld in PATH.
14689 with_gnu_ld=unknown
14693 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
14694 echo "configure:14695: checking for GNU ld" >&5
14697 if test -z "$LTLD"; then
14698 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
14699 for ac_dir in $PATH; do
14700 test -z "$ac_dir" && ac_dir=.
14701 if test -f "$ac_dir/$ac_prog"; then
14702 LTLD="$ac_dir/$ac_prog"
14703 # Check to see if the program is GNU ld. I'd rather use --version,
14704 # but apparently some GNU ld's only accept -v.
14705 # Break only if it was the GNU/non-GNU ld that we prefer.
14706 if "$LTLD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
14716 if test -n "$LTLD"; then
14717 echo "$ac_t""${LTLD}" 1>&6
14719 echo "$ac_t""no" 1>&6
14722 if test -z "$LTLD" -a "$cc_produces_so" = no; then
14723 { echo "configure: error: no acceptable linker found in \$PATH" 1>&2; exit 1; }
14728 ld_dynamic_link_flags=
14730 # Check to see if it really is or isn't GNU ld.
14731 echo $ac_n "checking if the linker is GNU ld""... $ac_c" 1>&6
14732 echo "configure:14733: checking if the linker is GNU ld" >&5
14733 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
14734 if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
14739 echo "$ac_t""${xe_gnu_ld}" 1>&6
14741 case "$xehost_os" in
14742 amigaos* | sunos4*)
14743 # On these operating systems, we should treat GNU ld like the system ld.
14744 gnu_ld_acts_native=yes
14747 gnu_ld_acts_native=no
14751 if test "$cc_produces_so" = "yes"; then
14754 can_build_shared=yes
14757 # OK - only NOW do we futz about with ld.
14758 # See if the linker supports building shared libraries.
14759 echo $ac_n "checking whether the linker supports shared libraries""... $ac_c" 1>&6
14760 echo "configure:14761: checking whether the linker supports shared libraries" >&5
14762 dll_ldflags=$LDFLAGS
14764 can_build_shared=yes
14765 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then
14766 # See if GNU ld supports shared libraries.
14767 if $LTLD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
14769 dll_ldflags="-shared"
14775 # PORTME fill in a description of your system's linker (not GNU ld)
14776 case "$xehost_os" in
14786 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14787 # support. Future versions do this automatically, but an explicit c++rt0.o
14788 # doesn't break anything, and helps significantly (at the cost of a little
14793 dll_post="/usr/lib/c++rt0.o"
14796 # Unfortunately, older versions of FreeBSD 2 don't have this feature.
14799 dll_ldflags="-Bshareable"
14802 # FreeBSD 3, at last, uses gcc -shared to do shared libraries.
14804 dll_ldflags="-shared"
14818 # Tested with NetBSD 1.2 ld
14833 # For both SCO and Solaris we MAY want to have LDFLAGS include -z text
14834 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7*)
14837 *gcc*) dll_ldflags="-shared"
14840 *) dll_ldflags="-G"
14846 if test "$XEGCC" = yes; then
14866 can_build_shared=no
14870 echo "$ac_t""${ld_shlibs}" 1>&6
14871 if test "$ld_shlibs" = "no"; then
14872 can_build_shared=no
14874 fi # End of if cc_produces_so = no
14877 if test "$xe_gnu_ld" = yes; then
14878 if test "$ld_shlibs" = yes; then
14879 ld_dynamic_link_flags="${wl}-export-dynamic"
14883 if test -z "$ld_dynamic_link_flags"; then
14884 case "$xehost_os" in
14886 ld_dynamic_link_flags=
14890 ld_dynamic_link_flags=
14894 ld_dynamic_link_flags=
14898 ld_dynamic_link_flags=
14902 ld_dynamic_link_flags="${wl}-E"
14906 ld_dynamic_link_flags=
14910 ld_dynamic_link_flags=
14914 ld_dynamic_link_flags=
14918 ld_dynamic_link_flags=
14921 solaris2* | solaris7*)
14922 ld_dynamic_link_flags=
14925 sco3.2v5* | unixware* | sysv5* | sysv4*)
14926 ld_dynamic_link_flags="${wl}-Bexport"
14930 ld_dynamic_link_flags=
14934 ld_dynamic_link_flags=
14938 ld_dynamic_link_flags=
14942 fi # End of if -z ld_dynamic_link_flags
14943 fi # End of if test "$can_build_shared" = "yes"
14954 if test "$can_build_shared" = "yes"; then
14955 { test "$extra_verbose" = "yes" && cat << \EOF
14956 Defining HAVE_SHLIB
14958 cat >> confdefs.h <<\EOF
14959 #define HAVE_SHLIB 1
14963 extra_objs="$extra_objs sysdll.o emodules.o" && if test "$extra_verbose" = "yes"; then
14964 echo " xemacs will be linked with \"sysdll.o emodules.o\""
14966 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
14967 test -n "$libdl" && LIBS="-l${libdl} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${libdl}\" to \$LIBS"; fi
14968 for ac_func in dlerror _dlerror
14970 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14971 echo "configure:14972: checking for $ac_func" >&5
14973 cat > conftest.$ac_ext <<EOF
14974 #line 14975 "configure"
14975 #include "confdefs.h"
14976 /* System header to define __stub macros and hopefully few prototypes,
14977 which can conflict with char $ac_func(); below. */
14978 #include <assert.h>
14979 /* Override any gcc2 internal prototype to avoid an error. */
14980 /* We use char because int might match the return type of a gcc2
14981 builtin and then its argument prototype would still apply. */
14986 /* The GNU C library defines this for functions which it implements
14987 to always fail with ENOSYS. Some functions are actually named
14988 something starting with __ and the normal name is an alias. */
14989 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14997 if { (eval echo configure:14998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14999 eval "ac_cv_func_$ac_func=yes"
15001 echo "configure: failed program was:" >&5
15002 cat conftest.$ac_ext >&5
15004 eval "ac_cv_func_$ac_func=no"
15008 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15009 echo "$ac_t""yes" 1>&6
15010 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15011 { test "$extra_verbose" = "yes" && cat << EOF
15012 Defining $ac_tr_func
15014 cat >> confdefs.h <<EOF
15015 #define $ac_tr_func 1
15020 echo "$ac_t""no" 1>&6
15026 if test "$with_modules" = "yes"; then
15027 { echo "Error:" "Required module support cannot be provided." >&2; exit 1; }
15029 echo "configure: warning: "Module support cannot be provided."" 1>&2
15035 cat > conftest.$ac_ext <<EOF
15036 #line 15037 "configure"
15037 #include "confdefs.h"
15038 int main(int c,char *v[]){return 0;}
15040 if { (eval echo configure:15041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
15045 echo "configure: failed program was:" >&5
15046 cat conftest.$ac_ext >&5
15050 echo "*** PANIC *** The C compiler can no longer build working executables."
15051 echo "*** PANIC *** Please examine the tail of config.log for runtime errors."
15052 echo "*** PANIC *** The most likely reason for this problem is that configure"
15053 echo "*** PANIC *** links with shared libraries, but those libraries cannot be"
15054 echo "*** PANIC *** found at run time."
15055 echo "*** PANIC ***"
15056 echo "*** PANIC *** On a Linux system, edit /etc/ld.so.conf and re-run ldconfig."
15057 echo "*** PANIC *** On other systems, try telling configure where to find the"
15058 echo "*** PANIC *** shared libraries using the --site-runtime-libraries option"
15059 echo "*** PANIC ***"
15060 echo "*** PANIC *** Another way to shoot yourself in the foot is to specify"
15061 echo "*** PANIC *** --with-FEATURE when FEATURE is not actually installed"
15062 echo "*** PANIC *** on your system. Don't do that."
15067 if test "$win32_processes" = "yes"; then
15068 extra_objs="$extra_objs process-nt.o" && if test "$extra_verbose" = "yes"; then
15069 echo " xemacs will be linked with \"process-nt.o\""
15072 { test "$extra_verbose" = "yes" && cat << \EOF
15073 Defining HAVE_UNIX_PROCESSES
15075 cat >> confdefs.h <<\EOF
15076 #define HAVE_UNIX_PROCESSES 1
15080 extra_objs="$extra_objs process-unix.o" && if test "$extra_verbose" = "yes"; then
15081 echo " xemacs will be linked with \"process-unix.o\""
15088 for W in $CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15093 for W in $extra_objs; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15098 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
15099 c_switch_general="$T"
15103 for W in $c_switch_x_site $c_switch_gtk $X_CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15104 c_switch_window_system="$T"
15108 for W in $c_switch_general $c_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15113 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
15114 ld_switch_general="$T"
15118 for W in $ld_switch_x_site; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15119 ld_switch_window_system="$T"
15123 for W in $ld_switch_general $ld_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15128 for W in $LIBS $libs_machine $libs_system $libs_standard; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15129 ld_libs_general="$T"
15133 for W in $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15134 ld_libs_window_system="$T"
15138 for W in $ld_libs_window_system $ld_libs_general; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15143 MAKE_SUBDIR="$MAKE_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$MAKE_SUBDIR"; fi
15144 internal_makefile_list="Makefile.in"
15145 SUBDIR_MAKEFILES=''
15146 test -d lock || mkdir lock
15147 for dir in $MAKE_SUBDIR; do
15148 case "$dir" in */* ) ( for d in `echo $dir | sed 's:/: :g'` ; do
15149 test -d "$d" || mkdir "$d"; cd "$d"
15151 * ) test -d "$dir" || mkdir "$dir" ;;
15155 for W in $SUBDIR_MAKEFILES $dir/Makefile $dir/GNUmakefile; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15156 SUBDIR_MAKEFILES="$T"
15160 for W in $internal_makefile_list $dir/Makefile.in; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15161 internal_makefile_list="$T"
15168 for dir in src/s src/m; do
15169 if test ! -d "$dir" ; then
15170 echo Making symbolic link to "$srcdir/$dir"
15171 ${LN_S} "$srcdir/$dir" "$dir"
15175 if test "$extra_verbose" = "yes"; then
15177 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
15182 if test -f "$srcdir/src/.gdbinit" -a ! -f "src/.gdbinit"; then
15183 test "$extra_verbose" = "yes" && echo "creating src/.gdbinit"
15184 echo "source $srcdir/src/.gdbinit" > "src/.gdbinit"
15187 if test -f "$srcdir/src/.dbxrc" -a ! -f "src/.dbxrc"; then
15188 test "$extra_verbose" = "yes" && echo "creating src/.dbxrc"
15189 echo ". $srcdir/src/.dbxrc" > "src/.dbxrc"
15192 if test -f "$srcdir/TAGS" -a ! -f "TAGS"; then
15193 test "$extra_verbose" = "yes" && echo "creating TAGS"
15195 $srcdir/TAGS,include" > "TAGS"
15198 if test "$__SUNPRO_C" = "yes"; then
15199 test "$extra_verbose" = "yes" && echo "creating .sbinit"
15200 ( echo "# For use with Sun WorkShop's Source browser."
15201 echo "# See sbquery(1) and sbinit(4) for more information"
15202 for dir in $MAKE_SUBDIR; do echo "import $dir"; done
15230 *\$* ) eval "PREFIX=$PREFIX" ;;
15238 EXEC_PREFIX=$exec_prefix
15240 case "$EXEC_PREFIX" in
15241 *\$* ) eval "EXEC_PREFIX=$EXEC_PREFIX" ;;
15252 *\$* ) eval "INFODIR=$INFODIR" ;;
15262 case "$INFOPATH" in
15263 *\$* ) eval "INFOPATH=$INFOPATH" ;;
15271 PACKAGE_PATH=$package_path
15273 case "$PACKAGE_PATH" in
15274 *\$* ) eval "PACKAGE_PATH=$PACKAGE_PATH" ;;
15285 *\$* ) eval "LISPDIR=$LISPDIR" ;;
15293 MODULEDIR=$moduledir
15295 case "$MODULEDIR" in
15296 *\$* ) eval "MODULEDIR=$MODULEDIR" ;;
15304 SITELISPDIR=$sitelispdir
15306 case "$SITELISPDIR" in
15307 *\$* ) eval "SITELISPDIR=$SITELISPDIR" ;;
15315 SITEMODULEDIR=$sitemoduledir
15317 case "$SITEMODULEDIR" in
15318 *\$* ) eval "SITEMODULEDIR=$SITEMODULEDIR" ;;
15329 *\$* ) eval "ETCDIR=$ETCDIR" ;;
15340 *\$* ) eval "DOCDIR=$DOCDIR" ;;
15348 ARCHLIBDIR=$archlibdir
15350 case "$ARCHLIBDIR" in
15351 *\$* ) eval "ARCHLIBDIR=$ARCHLIBDIR" ;;
15375 RECURSIVE_MAKE="\$(MAKE) \$(MFLAGS) CC='\$(CC)' CFLAGS='\$(CFLAGS)' LDFLAGS='\$(LDFLAGS)' CPPFLAGS='\$(CPPFLAGS)'"
15383 : ${XEMACS_CC:=$CC}
15386 if test "$with_prefix" = "yes"; then
15387 { test "$extra_verbose" = "yes" && cat << \EOF
15388 Defining PREFIX_USER_DEFINED
15390 cat >> confdefs.h <<\EOF
15391 #define PREFIX_USER_DEFINED 1
15397 if test "$with_site_lisp" = "no"; then
15398 { test "$extra_verbose" = "yes" && cat << \EOF
15399 Defining INHIBIT_SITE_LISP
15401 cat >> confdefs.h <<\EOF
15402 #define INHIBIT_SITE_LISP 1
15407 if test "$with_site_modules" = "no"; then
15408 { test "$extra_verbose" = "yes" && cat << \EOF
15409 Defining INHIBIT_SITE_MODULES
15411 cat >> confdefs.h <<\EOF
15412 #define INHIBIT_SITE_MODULES 1
15420 for W in $ac_configure_args; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15421 ac_configure_args="$T"
15423 { test "$extra_verbose" = "yes" && cat << EOF
15424 Defining EMACS_CONFIGURATION = "$configuration"
15426 cat >> confdefs.h <<EOF
15427 #define EMACS_CONFIGURATION "$configuration"
15431 { test "$extra_verbose" = "yes" && cat << EOF
15432 Defining EMACS_CONFIG_OPTIONS = "$ac_configure_args"
15434 cat >> confdefs.h <<EOF
15435 #define EMACS_CONFIG_OPTIONS "$ac_configure_args"
15442 { test "$extra_verbose" = "yes" && cat << EOF
15443 Defining LD_SWITCH_X_SITE = $null_string
15445 cat >> confdefs.h <<EOF
15446 #define LD_SWITCH_X_SITE $null_string
15450 { test "$extra_verbose" = "yes" && cat << EOF
15451 Defining LD_SWITCH_X_SITE_AUX = $null_string
15453 cat >> confdefs.h <<EOF
15454 #define LD_SWITCH_X_SITE_AUX $null_string
15458 { test "$extra_verbose" = "yes" && cat << EOF
15459 Defining C_SWITCH_X_SITE = $null_string
15461 cat >> confdefs.h <<EOF
15462 #define C_SWITCH_X_SITE $null_string
15466 { test "$extra_verbose" = "yes" && cat << EOF
15467 Defining LD_SWITCH_SITE = $null_string
15469 cat >> confdefs.h <<EOF
15470 #define LD_SWITCH_SITE $null_string
15474 { test "$extra_verbose" = "yes" && cat << EOF
15475 Defining C_SWITCH_SITE = $null_string
15477 cat >> confdefs.h <<EOF
15478 #define C_SWITCH_SITE $null_string
15484 if test "$GNU_MALLOC" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
15485 Defining GNU_MALLOC
15487 cat >> confdefs.h <<\EOF
15488 #define GNU_MALLOC 1
15492 elif test "$with_system_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
15493 Defining USE_SYSTEM_MALLOC
15495 cat >> confdefs.h <<\EOF
15496 #define USE_SYSTEM_MALLOC 1
15500 elif test "$with_debug_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
15501 Defining USE_DEBUG_MALLOC
15503 cat >> confdefs.h <<\EOF
15504 #define USE_DEBUG_MALLOC 1
15508 { test "$extra_verbose" = "yes" && cat << \EOF
15509 Defining USE_SYSTEM_MALLOC
15511 cat >> confdefs.h <<\EOF
15512 #define USE_SYSTEM_MALLOC 1
15517 test "$with_i18n3" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15520 cat >> confdefs.h <<\EOF
15525 test "$GCC" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15528 cat >> confdefs.h <<\EOF
15533 test "$external_widget" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15534 Defining EXTERNAL_WIDGET
15536 cat >> confdefs.h <<\EOF
15537 #define EXTERNAL_WIDGET 1
15541 test "$quick_build" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15542 Defining QUICK_BUILD
15544 cat >> confdefs.h <<\EOF
15545 #define QUICK_BUILD 1
15549 test "$with_purify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15552 cat >> confdefs.h <<\EOF
15557 test "$with_quantify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15560 cat >> confdefs.h <<\EOF
15565 test "$with_pop" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15566 Defining MAIL_USE_POP
15568 cat >> confdefs.h <<\EOF
15569 #define MAIL_USE_POP 1
15573 test "$with_kerberos" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15576 cat >> confdefs.h <<\EOF
15581 test "$with_hesiod" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15584 cat >> confdefs.h <<\EOF
15589 test "$use_union_type" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15590 Defining USE_UNION_TYPE
15592 cat >> confdefs.h <<\EOF
15593 #define USE_UNION_TYPE 1
15597 test "$pdump" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15600 cat >> confdefs.h <<\EOF
15605 test "$with_ipv6_cname" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15606 Defining IPV6_CANONICALIZE
15608 cat >> confdefs.h <<\EOF
15609 #define IPV6_CANONICALIZE 1
15616 if test -f /etc/osversion; then echo "osversion: `cat /etc/osversion`"
15618 echo "uname -a: `uname -a`"
15621 echo "$0 $quoted_arguments"
15624 if test ! -z ${emacs_beta_version} ; then
15625 if test -z "${emacs_is_beta}" ; then
15626 xemacs_betaname=".${emacs_beta_version}"
15628 xemacs_betaname="-b${emacs_beta_version}"
15637 XEmacs ${emacs_major_version}.${emacs_minor_version}${xemacs_betaname} \"$xemacs_codename\" configured for \`$canonical'.
15640 Compilation / Installation:"
15641 echo " Source code location: $srcdir"
15642 echo " Installation prefix: $prefix"
15643 if test -n "$site_includes"; then
15644 echo " Additional header files: $site_includes"
15646 if test -n "$site_libraries"; then
15647 echo " Additional libraries: $site_libraries"
15649 if test -n "$site_prefixes"; then
15650 echo " Additional prefixes: $site_prefixes"
15652 if test -n "$runpath"; then
15653 echo " Runtime library search path: $runpath"
15656 if test -n "$opsysfile"
15657 then echo " Operating system description file: \`$opsysfile'"
15658 else echo " Not using any operating system description file"
15660 if test -n "$machfile"
15661 then echo " Machine description file: \`$machfile'"
15662 else echo " Not using any machine description file"
15665 echo " Compiler: $CC $CFLAGS"
15666 echo " Relocating allocator for buffers: $rel_alloc"
15667 echo " GNU version of malloc: ${GNU_MALLOC}${GNU_MALLOC_reason}"
15671 if test "$with_msw" = "yes"; then
15672 echo " Compiling in support for the Microsoft window system."
15674 if test "$with_x11" = "yes"; then
15675 echo " Compiling in support for the X window system:"
15676 echo " - X Windows headers location: $x_includes"
15677 echo " - X Windows libraries location: $x_libraries"
15678 if test "$with_xauth" != yes; then
15679 echo " - Xau (X authority) not available."
15681 if test "$with_xmu" != yes; then
15682 echo " - Xmu library not available; substituting equivalent routines."
15684 if test "$with_wmcommand" != no; then
15685 echo " - Handling WM_COMMAND properly."
15688 if test "$need_athena" = "yes"; then
15689 echo " Compiling in support for the Athena widget set:"
15690 echo " - Athena headers location: $athena_h_path"
15691 echo " - Athena library to link: $athena_lib"
15693 case "$with_menubars" in
15694 gtk ) echo " Using GTK menubars." ;;
15695 lucid ) echo " Using Lucid menubars." ;;
15696 motif ) echo " Using Motif menubars."
15697 echo " *WARNING* The Motif menubar implementation is currently buggy."
15698 echo " We recommend using the Lucid menubar instead."
15699 echo " Re-run configure with --with-menubars='lucid'." ;;
15700 msw ) echo " Using MS-Windows menubars." ;;
15702 case "$with_scrollbars" in
15703 gtk ) echo " Using GTK scrollbars." ;;
15704 lucid ) echo " Using Lucid scrollbars." ;;
15705 motif ) echo " Using Motif scrollbars." ;;
15706 athena ) echo " Using Athena scrollbars." ;;
15707 msw ) echo " Using MS-Windows scrollbars." ;;
15709 case "$with_dialogs" in
15710 gtk ) echo " Using GTK dialog boxes." ;;
15711 motif ) echo " Using Motif dialog boxes."
15712 if test "$unexec" = "unexaix.o"; then if test "`uname -v`" = 4 -a "`uname -r`" -ge 3; then
15713 echo " *WARNING* The Motif dialog boxes cause problems on AIX 4.3 and higher."
15714 echo " We recommend using the Athena dialog boxes instead."
15715 echo " Install libXaw and re-run configure with --with-dialogs='athena'."
15716 echo " Read the PROBLEMS file for more information."
15718 athena ) echo " Using Athena dialog boxes." ;;
15719 msw ) echo " Using MS-Windows dialog boxes." ;;
15721 case "$with_widgets" in
15722 gtk ) echo " Using GTK native widgets." ;;
15723 motif ) echo " Using Motif native widgets." ;;
15724 athena ) echo " Using Athena native widgets." ;;
15725 msw ) echo " Using MS-Windows native widgets." ;;
15727 if test "$with_dragndrop" = yes; then
15728 echo " Compiling in support for Drag'n'Drop (EXPERIMENTAL)."
15729 echo " - Drag'n'Drop prototype: $dragndrop_proto."
15734 test "$with_ncurses" = yes && echo " Compiling in support for ncurses."
15735 test "$with_gpm" = yes && echo " Compiling in support for GPM (General Purpose Mouse)."
15739 test "$with_gif" = yes && echo " Compiling in support for GIF images (builtin)."
15740 if test "$with_xpm" = yes; then
15741 echo " Compiling in support for XPM images."
15742 elif test "$with_x11" = yes; then
15743 echo " WARNING: -----------------------------------------------------------"
15744 echo " WARNING: Compiling without XPM image support."
15745 if test "$xpm_problem" != ""; then
15746 echo " Reason: $xpm_problem"
15748 echo " WARNING: You should strongly consider installing XPM."
15749 echo " WARNING: Otherwise toolbars and other graphics will look suboptimal."
15750 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
15751 echo " WARNING: -----------------------------------------------------------"
15753 if test "$with_png" = yes; then
15754 echo " Compiling in support for PNG images."
15755 elif test "$window_system" != "none"; then
15756 echo " WARNING: -----------------------------------------------------------"
15757 echo " WARNING: Compiling without PNG image support."
15758 if test "$png_problem" != ""; then
15759 echo " Reason: $png_problem"
15761 echo " WARNING: You should strongly consider installing the PNG libraries."
15762 echo " WARNING: Otherwise certain images and glyphs may not display."
15763 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
15764 echo " WARNING: -----------------------------------------------------------"
15766 test "$with_jpeg" = yes && echo " Compiling in support for JPEG images."
15767 test "$with_tiff" = yes && echo " Compiling in support for TIFF images."
15768 test "$with_xface" = yes && echo " Compiling in support for X-Face message headers."
15772 test "$with_native_sound" = yes && echo " Compiling in support for sound (native)."
15773 test "$with_nas_sound" = yes && echo " Compiling in support for NAS (network audio system)."
15774 test "$old_nas" = yes && echo " - NAS library lacks error trapping; will play synchronously."
15775 test "$with_esd_sound" = yes && echo " Compiling in support for ESD (Enlightened Sound Daemon)."
15779 test "$with_database_berkdb" = yes && echo " Compiling in support for Berkeley database."
15780 test "$with_database_dbm" = yes && echo " Compiling in support for DBM."
15781 test "$with_database_gdbm" = yes && echo " Compiling in support for GNU DBM."
15782 test "$with_ldap" = yes && echo " Compiling in support for LDAP."
15783 if test "$with_postgresql" = yes; then
15784 echo " Compiling in support for PostgreSQL."
15785 echo " - Using PostgreSQL header file: $libpq_fe_h_file"
15786 test "$with_postgresqlv7" = yes && echo " - Using PostgreSQL V7 bindings."
15790 Internationalization:"
15791 test "$with_mule" = yes && echo " Compiling in support for Mule (multi-lingual Emacs)."
15792 test "$with_file_coding" = yes && echo " Compiling in support for file coding."
15793 test "$with_xim" != no && echo " Compiling in support for XIM (X11R5+ I18N input method)."
15794 test "$with_xim" = motif && echo " - Using Motif to provide XIM support."
15795 test "$with_xim" = xlib && echo " - Using raw Xlib to provide XIM support."
15796 test "$with_xfs" = yes && echo " - Using XFontSet to provide bilingual menubar."
15797 test "$with_canna" = yes && echo " Compiling in support for Canna on Mule."
15798 if test "$with_wnn" = yes; then
15799 echo " Compiling in support for the WNN input method on Mule."
15800 test "$with_wnn6" = yes && echo " - Using WNN version 6."
15802 test "$with_i18n3" = yes && echo " Compiling in support for I18N level 3 (doesn't currently work)."
15806 test "$with_pop" = yes && echo " Compiling in support for POP mail retrieval."
15807 test "$with_kerberos" = yes && echo " Compiling in support for Kerberos POP authentication."
15808 test "$with_hesiod" = yes && echo " Compiling in support for Hesiod POP server access."
15809 test -n "$mail_locking" && echo " Compiling in support for \"$mail_locking\" mail spool file locking method."
15813 test "with_ipv6_cname" = no && echo " Inhibiting IPv6 canonicalization at startup."
15814 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk."
15815 test "$with_workshop" = yes && echo " Compiling in support for Sun WorkShop."
15816 test "$with_socks" = yes && echo " Compiling in support for SOCKS."
15817 test "$with_dnet" = yes && echo " Compiling in support for DNET."
15818 test "$with_modules" = "yes" && echo " Compiling in support for dynamic shared object modules."
15819 test "$use_union_type" = yes && echo " Using the union type for Lisp_Objects."
15820 test "$pdump" = yes && echo " Using the new portable dumper."
15821 test "$debug" = yes && echo " Compiling in support for extra debugging code."
15822 test "$usage_tracking" = yes && echo " Compiling in support for active usage tracking (Sun internal)."
15823 if test "$error_check_extents $error_check_typecheck $error_check_bufpos $error_check_gc $error_check_malloc $error_check_glyphs" \
15824 != "no no no no no no"; then
15825 echo " WARNING: ---------------------------------------------------------"
15826 echo " WARNING: Compiling in support for runtime error checking."
15827 echo " WARNING: XEmacs will run noticeably more slowly as a result."
15828 echo " WARNING: Error checking is on by default for XEmacs beta releases."
15829 echo " WARNING: ---------------------------------------------------------"
15832 ) | tee -a Installation
15836 # Remove any trailing slashes in these variables.
15837 test -n "$prefix" &&
15838 prefix=`echo '' "$prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
15839 test -n "$exec_prefix" &&
15840 exec_prefix=`echo '' "$exec_prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
15843 for file in $internal_makefile_list; do
15844 test "$file" = src/Makefile.in && \
15845 file="src/Makefile.in:src/Makefile.in.in:src/depend"
15846 ac_output_files="$ac_output_files $file" && if test "$extra_verbose" = "yes"; then echo " Appending \"$file\" to \$ac_output_files"; fi
15848 ac_output_files="$ac_output_files src/paths.h lib-src/config.values"
15849 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
15853 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
15855 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15856 # Let make expand exec_prefix.
15857 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15859 # Any assignment to VPATH causes Sun make to only execute
15860 # the first set of double-colon rules, so remove it if not needed.
15861 # If there is a colon in the path, we need to keep it.
15862 if test "x$srcdir" = x.; then
15863 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
15866 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
15868 DEFS=-DHAVE_CONFIG_H
15870 # Without the "./", some shells look in PATH for config.status.
15871 : ${CONFIG_STATUS=./config.status}
15873 echo creating $CONFIG_STATUS
15874 rm -f $CONFIG_STATUS
15875 cat > $CONFIG_STATUS <<EOF
15877 # Generated automatically by configure.
15878 # Run this file to recreate the current configuration.
15879 # This directory was configured as follows,
15880 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15882 # $0 $ac_configure_args
15884 # Compiler output produced by configure, useful for debugging
15885 # configure, is in ./config.log if it exists.
15887 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
15890 case "\$ac_option" in
15891 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15892 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
15893 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
15894 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
15895 echo "$CONFIG_STATUS generated by autoconf version 2.13"
15897 -help | --help | --hel | --he | --h)
15898 echo "\$ac_cs_usage"; exit 0 ;;
15899 *) echo "\$ac_cs_usage"; exit 1 ;;
15903 ac_given_srcdir=$srcdir
15904 ac_given_INSTALL="$INSTALL"
15906 trap 'rm -fr `echo "$ac_output_files src/config.h lwlib/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
15908 cat >> $CONFIG_STATUS <<EOF
15910 # Protect against being on the right side of a sed subst in config.status.
15911 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
15912 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
15916 s%@CFLAGS@%$CFLAGS%g
15917 s%@CPPFLAGS@%$CPPFLAGS%g
15918 s%@CXXFLAGS@%$CXXFLAGS%g
15919 s%@FFLAGS@%$FFLAGS%g
15921 s%@LDFLAGS@%$LDFLAGS%g
15923 s%@exec_prefix@%$exec_prefix%g
15924 s%@prefix@%$prefix%g
15925 s%@program_transform_name@%$program_transform_name%g
15926 s%@bindir@%$bindir%g
15927 s%@sbindir@%$sbindir%g
15928 s%@libexecdir@%$libexecdir%g
15929 s%@datadir@%$datadir%g
15930 s%@sysconfdir@%$sysconfdir%g
15931 s%@sharedstatedir@%$sharedstatedir%g
15932 s%@localstatedir@%$localstatedir%g
15933 s%@libdir@%$libdir%g
15934 s%@includedir@%$includedir%g
15935 s%@oldincludedir@%$oldincludedir%g
15936 s%@infodir@%$infodir%g
15937 s%@mandir@%$mandir%g
15939 s%@blddir@%$blddir%g
15942 s%@start_flags@%$start_flags%g
15943 s%@ld_switch_shared@%$ld_switch_shared%g
15944 s%@start_files@%$start_files%g
15946 s%@lib_gcc@%$lib_gcc%g
15947 s%@RANLIB@%$RANLIB%g
15948 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
15949 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
15950 s%@INSTALL_DATA@%$INSTALL_DATA%g
15952 s%@SET_MAKE@%$SET_MAKE%g
15953 s%@GTK_CONFIG@%$GTK_CONFIG%g
15954 s%@X_CFLAGS@%$X_CFLAGS%g
15955 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
15956 s%@X_LIBS@%$X_LIBS%g
15957 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
15958 s%@install_pp@%$install_pp%g
15959 s%@libs_xauth@%$libs_xauth%g
15960 s%@dnd_objs@%$dnd_objs%g
15961 s%@lwlib_objs@%$lwlib_objs%g
15962 s%@ALLOCA@%$ALLOCA%g
15963 s%@have_esd_config@%$have_esd_config%g
15964 s%@dll_ld@%$dll_ld%g
15965 s%@dll_cflags@%$dll_cflags%g
15966 s%@dll_ldflags@%$dll_ldflags%g
15967 s%@dll_post@%$dll_post%g
15968 s%@dll_ldo@%$dll_ldo%g
15969 s%@ld_dynamic_link_flags@%$ld_dynamic_link_flags%g
15970 s%@SRC_SUBDIR_DEPS@%$SRC_SUBDIR_DEPS%g
15971 s%@INSTALL_ARCH_DEP_SUBDIR@%$INSTALL_ARCH_DEP_SUBDIR%g
15972 s%@MAKE_SUBDIR@%$MAKE_SUBDIR%g
15973 s%@SUBDIR_MAKEFILES@%$SUBDIR_MAKEFILES%g
15974 s%@PROGNAME@%$PROGNAME%g
15975 s%@version@%$version%g
15976 s%@configuration@%$configuration%g
15977 s%@canonical@%$canonical%g
15978 s%@inststaticdir@%$inststaticdir%g
15979 s%@instvardir@%$instvardir%g
15980 s%@srcdir@%$srcdir%g
15981 s%@pkgdir@%$pkgdir%g
15982 s%@statedir@%$statedir%g
15983 s%@extra_includes@%$extra_includes%g
15984 s%@PREFIX_USER_DEFINED@%$PREFIX_USER_DEFINED%g
15985 s%@PREFIX@%$PREFIX%g
15986 s%@EXEC_PREFIX_USER_DEFINED@%$EXEC_PREFIX_USER_DEFINED%g
15987 s%@EXEC_PREFIX@%$EXEC_PREFIX%g
15988 s%@INFODIR_USER_DEFINED@%$INFODIR_USER_DEFINED%g
15989 s%@INFODIR@%$INFODIR%g
15990 s%@infopath@%$infopath%g
15991 s%@INFOPATH_USER_DEFINED@%$INFOPATH_USER_DEFINED%g
15992 s%@INFOPATH@%$INFOPATH%g
15993 s%@package_path@%$package_path%g
15994 s%@PACKAGE_PATH_USER_DEFINED@%$PACKAGE_PATH_USER_DEFINED%g
15995 s%@PACKAGE_PATH@%$PACKAGE_PATH%g
15996 s%@lispdir@%$lispdir%g
15997 s%@LISPDIR_USER_DEFINED@%$LISPDIR_USER_DEFINED%g
15998 s%@LISPDIR@%$LISPDIR%g
15999 s%@moduledir@%$moduledir%g
16000 s%@MODULEDIR_USER_DEFINED@%$MODULEDIR_USER_DEFINED%g
16001 s%@MODULEDIR@%$MODULEDIR%g
16002 s%@sitelispdir@%$sitelispdir%g
16003 s%@SITELISPDIR_USER_DEFINED@%$SITELISPDIR_USER_DEFINED%g
16004 s%@SITELISPDIR@%$SITELISPDIR%g
16005 s%@sitemoduledir@%$sitemoduledir%g
16006 s%@SITEMODULEDIR_USER_DEFINED@%$SITEMODULEDIR_USER_DEFINED%g
16007 s%@SITEMODULEDIR@%$SITEMODULEDIR%g
16008 s%@etcdir@%$etcdir%g
16009 s%@ETCDIR_USER_DEFINED@%$ETCDIR_USER_DEFINED%g
16010 s%@ETCDIR@%$ETCDIR%g
16011 s%@docdir@%$docdir%g
16012 s%@DOCDIR_USER_DEFINED@%$DOCDIR_USER_DEFINED%g
16013 s%@DOCDIR@%$DOCDIR%g
16014 s%@archlibdir@%$archlibdir%g
16015 s%@ARCHLIBDIR_USER_DEFINED@%$ARCHLIBDIR_USER_DEFINED%g
16016 s%@ARCHLIBDIR@%$ARCHLIBDIR%g
16017 s%@bitmapdir@%$bitmapdir%g
16018 s%@extra_objs@%$extra_objs%g
16019 s%@machfile@%$machfile%g
16020 s%@opsysfile@%$opsysfile%g
16021 s%@c_switch_general@%$c_switch_general%g
16022 s%@c_switch_window_system@%$c_switch_window_system%g
16023 s%@c_switch_all@%$c_switch_all%g
16024 s%@ld_switch_general@%$ld_switch_general%g
16025 s%@ld_switch_window_system@%$ld_switch_window_system%g
16026 s%@ld_switch_all@%$ld_switch_all%g
16027 s%@ld_libs_general@%$ld_libs_general%g
16028 s%@ld_libs_window_system@%$ld_libs_window_system%g
16029 s%@ld_libs_all@%$ld_libs_all%g
16030 s%@RECURSIVE_MAKE@%$RECURSIVE_MAKE%g
16031 s%@native_sound_lib@%$native_sound_lib%g
16032 s%@sound_cflags@%$sound_cflags%g
16033 s%@dynodump_arch@%$dynodump_arch%g
16034 s%@XEMACS_CC@%$XEMACS_CC%g
16035 s%@internal_makefile_list@%$internal_makefile_list%g
16040 cat >> $CONFIG_STATUS <<\EOF
16042 # Split the substitutions into bite-sized pieces for seds with
16043 # small command number limits, like on Digital OSF/1 and HP-UX.
16044 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
16045 ac_file=1 # Number of current file.
16046 ac_beg=1 # First line for current file.
16047 ac_end=$ac_max_sed_cmds # Line after last line for current file.
16050 while $ac_more_lines; do
16051 if test $ac_beg -gt 1; then
16052 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
16054 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
16056 if test ! -s conftest.s$ac_file; then
16057 ac_more_lines=false
16058 rm -f conftest.s$ac_file
16060 if test -z "$ac_sed_cmds"; then
16061 ac_sed_cmds="sed -f conftest.s$ac_file"
16063 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
16065 ac_file=`expr $ac_file + 1`
16067 ac_end=`expr $ac_end + $ac_max_sed_cmds`
16070 if test -z "$ac_sed_cmds"; then
16075 cat >> $CONFIG_STATUS <<EOF
16077 CONFIG_FILES=\${CONFIG_FILES-"$ac_output_files"}
16079 cat >> $CONFIG_STATUS <<\EOF
16080 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
16081 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16083 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16084 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16085 *) ac_file_in="${ac_file}.in" ;;
16088 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
16090 # Remove last slash and all that follows it. Not all systems have dirname.
16091 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16092 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16093 # The file is in a subdirectory.
16094 test ! -d "$ac_dir" && mkdir "$ac_dir"
16095 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
16096 # A "../" for each directory in $ac_dir_suffix.
16097 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
16099 ac_dir_suffix= ac_dots=
16102 case "$ac_given_srcdir" in
16104 if test -z "$ac_dots"; then top_srcdir=.
16105 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
16106 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
16107 *) # Relative path.
16108 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
16109 top_srcdir="$ac_dots$ac_given_srcdir" ;;
16112 case "$ac_given_INSTALL" in
16113 [/$]*) INSTALL="$ac_given_INSTALL" ;;
16114 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
16117 echo creating "$ac_file"
16119 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
16121 *Makefile*) ac_comsub="1i\\
16122 # $configure_input" ;;
16126 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16128 s%@configure_input@%$configure_input%g
16129 s%@srcdir@%$srcdir%g
16130 s%@top_srcdir@%$top_srcdir%g
16131 s%@INSTALL@%$INSTALL%g
16132 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
16136 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16137 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16139 # ac_d sets the value in "#define NAME VALUE" lines.
16140 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16141 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
16144 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
16145 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16146 ac_uB='\([ ]\)%\1#\2define\3'
16149 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16150 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16151 ac_eB='$%\1#\2define\3'
16155 if test "${CONFIG_HEADERS+set}" != set; then
16157 cat >> $CONFIG_STATUS <<EOF
16158 CONFIG_HEADERS="src/config.h lwlib/config.h"
16160 cat >> $CONFIG_STATUS <<\EOF
16162 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
16163 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16165 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16166 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16167 *) ac_file_in="${ac_file}.in" ;;
16170 echo creating $ac_file
16172 rm -f conftest.frag conftest.in conftest.out
16173 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16174 cat $ac_file_inputs > conftest.in
16178 # Transform confdefs.h into a sed script conftest.vals that substitutes
16179 # the proper values into config.h.in to produce config.h. And first:
16180 # Protect against being on the right side of a sed subst in config.status.
16181 # Protect against being in an unquoted here document in config.status.
16182 rm -f conftest.vals
16183 cat > conftest.hdr <<\EOF
16186 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
16190 sed -n -f conftest.hdr confdefs.h > conftest.vals
16193 # This sed command replaces #undef with comments. This is necessary, for
16194 # example, in the case of _POSIX_SOURCE, which is predefined and required
16195 # on some systems where configure will not decide to define it.
16196 cat >> conftest.vals <<\EOF
16197 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
16200 # Break up conftest.vals because some shells have a limit on
16201 # the size of here documents, and old seds have small limits too.
16203 rm -f conftest.tail
16206 ac_lines=`grep -c . conftest.vals`
16207 # grep -c gives empty output for an empty file on some AIX systems.
16208 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
16209 # Write a limited-size here document to conftest.frag.
16210 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
16211 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
16213 sed -f conftest.frag conftest.in > conftest.out
16215 mv conftest.out conftest.in
16216 ' >> $CONFIG_STATUS
16217 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
16218 rm -f conftest.vals
16219 mv conftest.tail conftest.vals
16221 rm -f conftest.vals
16223 cat >> $CONFIG_STATUS <<\EOF
16224 rm -f conftest.frag conftest.h
16225 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
16226 cat conftest.in >> conftest.h
16228 if cmp -s $ac_file conftest.h 2>/dev/null; then
16229 echo "$ac_file is unchanged"
16232 # Remove last slash and all that follows it. Not all systems have dirname.
16233 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16234 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16235 # The file is in a subdirectory.
16236 test ! -d "$ac_dir" && mkdir "$ac_dir"
16239 mv conftest.h $ac_file
16244 cat >> $CONFIG_STATUS <<EOF
16246 top_srcdir="$srcdir"
16247 MAKE_SUBDIR="$MAKE_SUBDIR"
16250 cat >> $CONFIG_STATUS <<\EOF
16251 for dir in . $MAKE_SUBDIR; do
16256 sed -e '/^# Generated/d' \
16257 -e 's%/\*\*/#.*%%' \
16272 echo creating $dir/Makefile
16273 $CPP -I. -I${top_srcdir}/src junk.c \
16274 | sed -e 's/^\#.*//' \
16275 -e 's/^[ ][ ]*$//'\
16283 chmod 444 Makefile.new
16284 mv -f Makefile.new Makefile
16286 echo creating $dir/GNUmakefile
16287 $CPP -I. -I${top_srcdir}/src -DUSE_GNU_MAKE junk.c \
16288 | sed -e 's/^\#.*//' \
16289 -e 's/^[ ][ ]*$//'\
16297 chmod 444 Makefile.new
16298 mv -f Makefile.new GNUmakefile
16304 sed < config.status >> lib-src/config.values \
16305 -e '/{ac_dA}.*{ac_dB}.*{ac_dC}.*{ac_dD}$/!d' \
16306 -e 's/\${ac_dA}\(.*\)\${ac_dB}.*\${ac_dC}\(.*\)\${ac_dD}/\1 \2/' \
16307 -e 's/^\([^ ]*\) $/\1 ""/' \
16313 chmod +x $CONFIG_STATUS
16314 rm -fr confdefs* $ac_clean_files
16315 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1