3 #### Configuration script for XEmacs. Largely divergent from FSF.
4 #### Guess values for system-dependent variables and create Makefiles.
5 #### Generated automatically using autoconf version 2.13
6 #### Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
7 #### Copyright (C) 1993-1995 Board of Trustees, University of Illinois.
8 #### Copyright (C) 1996, 1997 Sun Microsystems, Inc.
9 #### Copyright (C) 1995, 1996 Ben Wing.
10 #### Copyright (C) 2000, 2001 Martin Buchholz.
11 #### Copyright (C) 1998, 1999 J. Kean Johnston.
13 ### Don't edit this script!
14 ### This script was automatically generated by the `autoconf' program
15 ### from the file `./configure.in'.
16 ### To rebuild it, execute the command
18 ### in the this directory. You must have autoconf version 2.13 or later.
19 ### Note: this script has not yet been ported to autoconf version 2.5x.
21 ### This file is part of XEmacs.
23 ### XEmacs is free software; you can redistribute it and/or modify it
24 ### under the terms of the GNU General Public License as published by
25 ### the Free Software Foundation; either version 2, or (at your
26 ### option) any later version.
28 ### XEmacs is distributed in the hope that it will be useful, but
29 ### WITHOUT ANY WARRANTY; without even the implied warranty of
30 ### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
31 ### General Public License for more details.
33 ### You should have received a copy of the GNU General Public License
34 ### along with XEmacs; see the file COPYING. If not, write to the Free
35 ### Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
38 ### For usage, run `./configure --help'
39 ### For more detailed information on building and installing XEmacs,
40 ### read the file `INSTALL'.
42 ### If configure succeeds, it leaves its status in config.status.
43 ### A log of configuration tests can be found in config.log.
44 ### If configure fails after disturbing the status quo,
45 ### config.status is removed.
48 --with-x use the X Window System"
52 if test -n "$ZSH_VERSION"; then
53 setopt NO_BAD_PATTERN NO_BANG_HIST NO_BG_NICE NO_EQUALS NO_FUNCTION_ARGZERO
54 setopt GLOB_SUBST NO_HUP INTERACTIVE_COMMENTS KSH_ARRAYS NO_MULTIOS NO_NOMATCH
55 setopt RM_STAR_SILENT POSIX_BUILTINS SH_FILE_EXPANSION SH_GLOB SH_OPTION_LETTERS
56 setopt SH_WORD_SPLIT BSD_ECHO IGNORE_BRACES
57 if test -n "$CDPATH"; then CDPATH="."; export CDPATH; fi
58 elif test -n "$BASH_VERSION"; then
62 if test -n "$CDPATH"; then CDPATH="."; export CDPATH; fi
73 program_transform_name=s,x,x,
84 SHELL=${CONFIG_SHELL-/bin/sh}
87 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
89 # File descriptor usage:
92 # 2 errors and warnings
93 # 3 some systems may open it to /dev/tty
94 # 4 used on the Kubota Titan
95 # 6 checking for... messages and results
96 # 5 compiler messages saved in config.log
97 if test "$silent" = yes; then
105 This file contains any messages produced by compilers while
106 running configure, to aid debugging if configure makes a mistake.
109 # Strip out --no-create and --no-recursion so they do not pile up.
110 # Also quote any args containing shell metacharacters.
115 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
116 | --no-cr | --no-c) ;;
117 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
118 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
119 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
120 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
121 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
126 # Only set these to C if already set. These must not be set unconditionally
127 # because not all systems understand e.g. LANG=C (notably SCO).
128 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
129 # Non-C LC_CTYPE values break the ctype check.
130 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
131 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
132 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
133 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
135 # confdefs.h avoids OS command line length limits that DEFS can exceed.
136 rm -rf conftest* confdefs.h
137 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
140 # A filename unique to this package, relative to the directory that
141 # configure is in, which we can look for to find out if srcdir is correct.
142 ac_unique_file=src/lisp.h
144 # Find the source files, if location was not specified.
145 if test -z "$srcdir"; then
146 ac_srcdir_defaulted=yes
147 # Try the directory containing this script, then its parent.
149 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
150 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
152 if test ! -r $srcdir/$ac_unique_file; then
156 ac_srcdir_defaulted=no
158 if test ! -r $srcdir/$ac_unique_file; then
159 if test "$ac_srcdir_defaulted" = yes; then
160 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
162 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
165 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
167 # Prefer explicitly selected file to automatically selected ones.
168 if test -z "$CONFIG_SITE"; then
169 if test "x$prefix" != xNONE; then
170 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
172 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
175 for ac_site_file in $CONFIG_SITE; do
176 if test -r "$ac_site_file"; then
177 echo "loading site script $ac_site_file"
184 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
185 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
186 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
187 ac_cpp='$CPP '"$xe_cppflags"
188 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
189 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
194 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
195 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
196 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
203 ac_n= ac_c='\c' ac_t=
207 progname="`echo $0 | sed 's:^\./\./:\./:'`"
210 MAKE_SUBDIR="$MAKE_SUBDIR lib-src" && if test "$extra_verbose" = "yes"; then echo " Appending \"lib-src\" to \$MAKE_SUBDIR"; fi
211 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR lib-src" && if test "$extra_verbose" = "yes"; then echo " Appending \"lib-src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
214 exec_prefix='${prefix}'
215 bindir='${exec_prefix}/bin'
216 datadir='${prefix}/lib'
217 statedir='${prefix}/lib'
218 libdir='${exec_prefix}/lib'
219 mandir='${prefix}/man/man1'
220 inststaticdir='${PROGNAME}'
221 instvardir='${PROGNAME}-${version}'
222 infodir='${datadir}/${instvardir}/info'
225 lispdir='${datadir}/${instvardir}/lisp'
226 moduledir='${libdir}/${instvardir}/${configuration}/modules'
227 sitelispdir='${datadir}/${inststaticdir}/site-lisp'
228 sitemoduledir='${libdir}/${inststaticdir}/site-modules'
229 pkgdir='${datadir}/${instvardir}/lisp'
231 etcdir='${datadir}/${instvardir}/etc'
232 archlibdir='${libdir}/${instvardir}/${configuration}'
233 docdir='${archlibdir}'
237 with_site_modules='yes'
243 cpp='' cppflags='' libs='' ldflags=''
249 with_system_malloc='default'
250 with_dlmalloc='default'
269 quoted_sed_magic=s/"'"/"'"'"'"'"'"'"'"/g
273 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
274 | --no-cr | --no-c) ;;
275 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
276 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
278 quoted_i="`echo '' $i | sed -e 's:^ ::' -e $quoted_sed_magic`"
279 quoted_arguments="$quoted_arguments '$quoted_i'" ;;
283 while test $# != 0; do
286 --no-create|--no-recursion) ;;
290 opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\([^=]*\)=.*$:\1:'`
291 val=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*[^=]*=\(.*\)$:\1:'`
295 opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\(.*\)$:\1:'`
296 val="yes" valomitted=yes
301 opt="`echo '' $opt | sed -e 's:^ ::' | tr - _`"
303 case "${valomitted}-${opt}" in yes-without_* )
304 opt=`echo $opt | sed 's/without/with/'`
305 valomitted="no" val="no" ;;
312 with_site_modules | \
366 memory_usage_stats | \
367 with_clash_detection | \
371 y | ye | yes ) val=yes ;;
373 * ) (echo "$progname: Usage error:"
374 echo " " "The \`--$optname' option requires a boolean value: \`yes' or \`no'."
375 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
377 eval "$opt=\"$val\"" ;;
395 site_runtime_libraries )
396 if test "$valomitted" = "yes" ; then
397 if test "$#" = 0 ; then
398 (echo "$progname: Usage error:"
399 echo " " "The \`--$optname' option requires a value."
400 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
409 with_debug_malloc | use_debug_malloc | \
410 with_system_malloc | use_system_malloc )
412 y | ye | yes ) val=yes ;;
414 d | de | def | defa | defau | defaul | default ) val=default ;;
415 * ) (echo "$progname: Usage error:"
416 echo " " "The \`--$optname' option requires one of these values:
417 \`yes', \`no', or \`default'."
418 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
420 case "$opt" in use_* ) opt="`echo $opt | sed s/use/with/`" ;; esac
425 with_database_berkdb=no
427 with_database_gdbm=no
428 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
431 b | be | ber | berk | berkd | berkdb ) with_database_berkdb=yes ;;
432 d | db | dbm ) with_database_dbm=yes ;;
433 g | gn | gnu | gnud | gnudb | gnudbm | gdbm) with_database_gdbm=yes ;;
434 * ) (echo "$progname: Usage error:"
435 echo " " "The \`--$optname' option value
436 must be either \`no' or a comma-separated list
437 of one or more of \`berkdb' and either \`dbm' or \`gnudbm'."
438 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
441 if test "$with_database_dbm" = "yes" -a \
442 "$with_database_gdbm" = "yes"; then
443 (echo "$progname: Usage error:"
444 echo " " "Only one of \`dbm' and \`gnudbm' may be specified
445 with the \`--$optname' option."
446 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
451 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
453 n | no | non | none ) new_sdefault=no ;;
454 a | al | all | both ) new_sdefault=yes ;;
456 native ) with_native_sound=yes ;;
457 nonative ) with_native_sound=no ;;
459 nas ) with_nas_sound=yes ;;
460 nonas ) with_nas_sound=no ;;
462 esd ) with_esd_sound=yes ;;
463 noesd ) with_esd_sound=no ;;
465 * ) bogus_sound=yes ;;
467 if test "$bogus_sound" -o \
468 \( -n "$new_sdefault" -a -n "$sound_notfirst" \) ; then
469 types="\`all', \`none', \`(no)native', \`no(nas)', \`(no)esd'."
470 (echo "$progname: Usage error:"
471 echo " " "Valid types for the \`--$optname' option are:
473 Option \`all' or \`none' must be first in the list.
474 The default is to autodetect native and NAS sound support."
475 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
476 elif test -n "$new_sdefault" ; then
477 with_native_sound=$new_sdefault
478 with_nas_sound=$new_sdefault
479 with_esd_sound=$new_sdefault
480 new_sdefault= # reset this
488 xa | xaw ) val=xaw ;;
489 3 | 3d | xaw3d ) val=3d ;;
490 ne | nex | next | naxtaw) val=next ;;
491 9 | 95 | xaw95 ) val=95 ;;
492 xp | xpm | xawxpm ) val=xpm ;;
493 * ) (echo "$progname: Usage error:"
494 echo " " "The \`--$optname' option must have one of these values:
495 \`xaw', \`3d', \`next', \`95', or \`xpm'."
496 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
503 y | ye | yes ) val=yes ;;
504 n | no | non | none ) val=no ;;
505 x | xl | xli | xlib ) val=xlib ;;
506 m | mo | mot | moti | motif ) val=motif ;;
507 * ) (echo "$progname: Usage error:"
508 echo " " "The \`--$optname' option must have one of these values:
509 \`motif', \`xlib', \`yes', or \`no'."
510 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
519 file | dot ) val=file ;;
520 locking ) val=locking ;;
521 * ) (echo "$progname: Usage error:"
522 echo " " "The \`--$optname' option must have one of these values:
523 \`lockf', \`flock', \`file', \`locking', or \`mmdf'."
524 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
531 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
533 n | no | non | none ) new_default=no ;;
534 a | al | all ) new_default=yes ;;
536 extents ) error_check_extents=yes ;;
537 noextents ) error_check_extents=no ;;
539 typecheck ) error_check_typecheck=yes ;;
540 notypecheck ) error_check_typecheck=no ;;
542 bufpos ) error_check_bufpos=yes ;;
543 nobufpos ) error_check_bufpos=no ;;
545 gc ) error_check_gc=yes ;;
546 nogc ) error_check_gc=no ;;
548 malloc ) error_check_malloc=yes ;;
549 nomalloc ) error_check_malloc=no ;;
551 byte_code ) error_check_byte_code=yes ;;
552 nobyte_code ) error_check_byte_code=no ;;
554 glyphs ) error_check_glyphs=yes ;;
555 noglyphs ) error_check_glyphs=no ;;
557 * ) bogus_error_check=yes ;;
559 if test "$bogus_error_check" -o \
560 \( -n "$new_default" -a -n "$echeck_notfirst" \) ; then
561 if test "$error_check_default" = yes ; then
562 types="\`all' (default), \`none', \`noextents', \`notypecheck', \`nobufpos', \`nogc', \`nomalloc', \`noglyphs' and \`nobyte-code'."
564 types="\`all', \`none' (default), \`extents', \`typecheck', \`bufpos', \`gc', \`malloc', \`glyphs' and \`byte-code'."
566 (echo "$progname: Usage error:"
567 echo " " "Valid types for the \`--$optname' option are:
569 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
570 elif test -n "$new_default" ; then
571 error_check_extents=$new_default
572 error_check_typecheck=$new_default
573 error_check_bufpos=$new_default
574 error_check_gc=$new_default
575 error_check_malloc=$new_default
576 error_check_byte_code=$new_default
577 error_check_glyphs=$new_default
578 new_default= # reset this
585 prefix | exec_prefix | bindir | datadir | statedir | libdir | \
586 mandir | infodir | infopath | lispdir | etcdir | pkgdir | \
587 archlibdir | docdir | package_path )
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" ;;
4981 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6
4982 echo "configure:4983: checking whether the -xildoff compiler flag is required" >&5
4983 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
4984 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ;
4985 then echo "$ac_t""no" 1>&6;
4986 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
4988 else echo "$ac_t""no" 1>&6
4991 if test "$opsys" = "sol2"; then
4992 if test "$os_release" -ge 56; then
4993 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6
4994 echo "configure:4995: checking for \"-z ignore\" linker flag" >&5
4995 case "`ld -h 2>&1`" in
4996 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6
4997 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;;
4998 *) echo "$ac_t""no" 1>&6 ;;
5003 if test "$pdump" != "yes"; then
5004 echo $ac_n "checking for \"-z nocombreloc\" linker flag""... $ac_c" 1>&6
5005 echo "configure:5006: checking for \"-z nocombreloc\" linker flag" >&5
5006 case "`ld --help 2>&1`" in
5007 *-z\ nocombreloc* ) echo "$ac_t""yes" 1>&6
5008 ld_switch_site="-z nocombreloc $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z nocombreloc\" to \$ld_switch_site"; fi ;;
5009 *) echo "$ac_t""no" 1>&6 ;;
5014 echo "checking "for specified window system"" 1>&6
5015 echo "configure:5016: checking "for specified window system"" >&5
5021 if test "$with_gnome" != "no"; then
5022 echo $ac_n "checking for GNOME configuration script""... $ac_c" 1>&6
5023 echo "configure:5024: checking for GNOME configuration script" >&5
5024 for possible in gnome-config
5026 possible_version=`${possible} --version 2> /dev/null`
5027 if test "x${possible_version}" != "x"; then
5028 GNOME_CONFIG="${possible}"
5034 echo "$ac_t""${GNOME_CONFIG}" 1>&6
5037 if test "${GNOME_CONFIG}" != "no"; then
5038 GNOME_LIBS=`${GNOME_CONFIG} --libs gnomeui`
5039 GNOME_CFLAGS=`${GNOME_CONFIG} --cflags gnomeui`
5040 { test "$extra_verbose" = "yes" && cat << \EOF
5043 cat >> confdefs.h <<\EOF
5044 #define HAVE_GNOME 1
5048 libs_gtk="$libs_gtk ${GNOME_LIBS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GNOME_LIBS}\" to \$libs_gtk"; fi
5049 c_switch_gtk="$c_switch_gtk ${GNOME_CFLAGS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GNOME_CFLAGS}\" to \$c_switch_gtk"; fi
5052 if test "$with_gtk" != "no";then
5053 echo $ac_n "checking for GTK configuration script""... $ac_c" 1>&6
5054 echo "configure:5055: checking for GTK configuration script" >&5
5055 for possible in gtk12-config gtk14-config gtk-config
5057 possible_version=`${possible} --version 2> /dev/null`
5058 if test "x${possible_version}" != "x"; then
5059 GTK_CONFIG="${possible}"
5061 case "${possible_version}" in
5062 1.0.*) echo "configure: warning: GTK 1.2 is required, please upgrade your version of GTK." 1>&2; with_gtk=no;;
5063 1.3.*) echo "configure: warning: GTK 1.3 is not supported right now" 1>&2; with_gtk=no;;
5068 *) echo "configure: warning: Found unsupported version of GTK: $possible_version" 1>&2;;
5071 echo "$ac_t""${GTK_CONFIG}" 1>&6
5074 if test "${GTK_CONFIG}" != "no"; then
5075 echo $ac_n "checking gtk version""... $ac_c" 1>&6
5076 echo "configure:5077: checking gtk version" >&5
5077 GTK_VERSION=`${GTK_CONFIG} --version`
5078 echo "$ac_t""${GTK_VERSION}" 1>&6
5080 echo $ac_n "checking gtk libs""... $ac_c" 1>&6
5081 echo "configure:5082: checking gtk libs" >&5
5082 GTK_LIBS=`${GTK_CONFIG} --libs`
5083 libs_gtk="$libs_gtk ${GTK_LIBS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GTK_LIBS}\" to \$libs_gtk"; fi
5084 echo "$ac_t""${GTK_LIBS}" 1>&6
5086 echo $ac_n "checking gtk cflags""... $ac_c" 1>&6
5087 echo "configure:5088: checking gtk cflags" >&5
5088 GTK_CFLAGS=`${GTK_CONFIG} --cflags`
5089 c_switch_gtk="$c_switch_gtk ${GTK_CFLAGS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GTK_CFLAGS}\" to \$c_switch_gtk"; fi
5090 echo "$ac_t""${GTK_CFLAGS}" 1>&6
5093 echo $ac_n "checking for main in -lgdk_imlib""... $ac_c" 1>&6
5094 echo "configure:5095: checking for main in -lgdk_imlib" >&5
5095 ac_lib_var=`echo gdk_imlib'_'main | sed 'y%./+-%__p_%'`
5097 xe_check_libs=" -lgdk_imlib "
5098 cat > conftest.$ac_ext <<EOF
5099 #line 5100 "configure"
5100 #include "confdefs.h"
5106 if { (eval echo configure:5107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5108 eval "ac_cv_lib_$ac_lib_var=yes"
5110 echo "configure: failed program was:" >&5
5111 cat conftest.$ac_ext >&5
5113 eval "ac_cv_lib_$ac_lib_var=no"
5118 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5119 echo "$ac_t""yes" 1>&6
5120 libs_gtk="-lgdk_imlib $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgdk_imlib\" to \$libs_gtk"; fi
5122 echo "$ac_t""no" 1>&6
5127 echo $ac_n "checking for Imlib_init in -lImlib""... $ac_c" 1>&6
5128 echo "configure:5129: checking for Imlib_init in -lImlib" >&5
5129 ac_lib_var=`echo Imlib'_'Imlib_init | sed 'y%./+-%__p_%'`
5131 xe_check_libs=" -lImlib "
5132 cat > conftest.$ac_ext <<EOF
5133 #line 5134 "configure"
5134 #include "confdefs.h"
5135 /* Override any gcc2 internal prototype to avoid an error. */
5136 /* We use char because int might match the return type of a gcc2
5137 builtin and then its argument prototype would still apply. */
5144 if { (eval echo configure:5145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5146 eval "ac_cv_lib_$ac_lib_var=yes"
5148 echo "configure: failed program was:" >&5
5149 cat conftest.$ac_ext >&5
5151 eval "ac_cv_lib_$ac_lib_var=no"
5156 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5157 echo "$ac_t""yes" 1>&6
5158 libs_gtk="$libs_gtk -lImlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lImlib\" to \$libs_gtk"; fi
5160 echo "$ac_t""no" 1>&6
5164 for ac_func in gdk_imlib_init
5166 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5167 echo "configure:5168: checking for $ac_func" >&5
5169 cat > conftest.$ac_ext <<EOF
5170 #line 5171 "configure"
5171 #include "confdefs.h"
5172 /* System header to define __stub macros and hopefully few prototypes,
5173 which can conflict with char $ac_func(); below. */
5175 /* Override any gcc2 internal prototype to avoid an error. */
5176 /* We use char because int might match the return type of a gcc2
5177 builtin and then its argument prototype would still apply. */
5182 /* The GNU C library defines this for functions which it implements
5183 to always fail with ENOSYS. Some functions are actually named
5184 something starting with __ and the normal name is an alias. */
5185 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5193 if { (eval echo configure:5194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5195 eval "ac_cv_func_$ac_func=yes"
5197 echo "configure: failed program was:" >&5
5198 cat conftest.$ac_ext >&5
5200 eval "ac_cv_func_$ac_func=no"
5204 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5205 echo "$ac_t""yes" 1>&6
5206 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5207 { test "$extra_verbose" = "yes" && cat << EOF
5208 Defining $ac_tr_func
5210 cat >> confdefs.h <<EOF
5211 #define $ac_tr_func 1
5216 echo "$ac_t""no" 1>&6
5221 { test "$extra_verbose" = "yes" && cat << \EOF
5224 cat >> confdefs.h <<\EOF
5229 { test "$extra_verbose" = "yes" && cat << \EOF
5232 cat >> confdefs.h <<\EOF
5243 test "${with_scrollbars}" != "no" && with_scrollbars=gtk
5244 test "${with_toolbars}" != no && with_toolbars=gtk
5245 test "${with_menubars}" != "no" && with_menubars=gtk
5246 test "${with_dialogs}" != "no" && with_dialogs=gtk
5247 test "${with_widgets}" != "no" && with_widgets=gtk
5249 extra_objs="$extra_objs console-gtk.o device-gtk.o event-gtk.o frame-gtk.o" && if test "$extra_verbose" = "yes"; then
5250 echo " xemacs will be linked with \"console-gtk.o device-gtk.o event-gtk.o frame-gtk.o\""
5252 extra_objs="$extra_objs objects-gtk.o redisplay-gtk.o glyphs-gtk.o" && if test "$extra_verbose" = "yes"; then
5253 echo " xemacs will be linked with \"objects-gtk.o redisplay-gtk.o glyphs-gtk.o\""
5255 extra_objs="$extra_objs select-gtk.o gccache-gtk.o" && if test "$extra_verbose" = "yes"; then
5256 echo " xemacs will be linked with \"select-gtk.o gccache-gtk.o\""
5258 extra_objs="$extra_objs gtk-xemacs.o ui-gtk.o" && if test "$extra_verbose" = "yes"; then
5259 echo " xemacs will be linked with \"gtk-xemacs.o ui-gtk.o\""
5262 OLD_CFLAGS="${CFLAGS}"
5263 OLD_CPPFLAGS="${CPPFLAGS}"
5264 OLD_LDFLAGS="${LDFLAGS}"
5265 CFLAGS="${GTK_CFLAGS} ${CFLAGS}"
5266 CPPFLAGS="${GTK_CFLAGS} ${CFLAGS}"
5267 LDFLAGS="${LDFLAGS} ${GTK_LIBS}"
5268 for ac_hdr in glade/glade.h glade.h
5270 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5271 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5272 echo "configure:5273: checking for $ac_hdr" >&5
5274 cat > conftest.$ac_ext <<EOF
5275 #line 5276 "configure"
5276 #include "confdefs.h"
5279 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5280 { (eval echo configure:5281: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5281 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5282 if test -z "$ac_err"; then
5284 eval "ac_cv_header_$ac_safe=yes"
5287 echo "configure: failed program was:" >&5
5288 cat conftest.$ac_ext >&5
5290 eval "ac_cv_header_$ac_safe=no"
5293 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5294 echo "$ac_t""yes" 1>&6
5295 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5296 { test "$extra_verbose" = "yes" && cat << EOF
5299 cat >> confdefs.h <<EOF
5300 #define $ac_tr_hdr 1
5305 echo "$ac_t""no" 1>&6
5310 echo $ac_n "checking for main in -lxml""... $ac_c" 1>&6
5311 echo "configure:5312: checking for main in -lxml" >&5
5312 ac_lib_var=`echo xml'_'main | sed 'y%./+-%__p_%'`
5314 xe_check_libs=" -lxml "
5315 cat > conftest.$ac_ext <<EOF
5316 #line 5317 "configure"
5317 #include "confdefs.h"
5323 if { (eval echo configure:5324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5325 eval "ac_cv_lib_$ac_lib_var=yes"
5327 echo "configure: failed program was:" >&5
5328 cat conftest.$ac_ext >&5
5330 eval "ac_cv_lib_$ac_lib_var=no"
5335 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5336 echo "$ac_t""yes" 1>&6
5337 libs_gtk="-lxml $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lxml\" to \$libs_gtk"; fi
5339 echo "$ac_t""no" 1>&6
5344 echo $ac_n "checking for main in -lglade""... $ac_c" 1>&6
5345 echo "configure:5346: checking for main in -lglade" >&5
5346 ac_lib_var=`echo glade'_'main | sed 'y%./+-%__p_%'`
5348 xe_check_libs=" -lglade "
5349 cat > conftest.$ac_ext <<EOF
5350 #line 5351 "configure"
5351 #include "confdefs.h"
5357 if { (eval echo configure:5358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5359 eval "ac_cv_lib_$ac_lib_var=yes"
5361 echo "configure: failed program was:" >&5
5362 cat conftest.$ac_ext >&5
5364 eval "ac_cv_lib_$ac_lib_var=no"
5369 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5370 echo "$ac_t""yes" 1>&6
5371 libs_gtk="-lglade $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lglade\" to \$libs_gtk"; fi
5373 echo "$ac_t""no" 1>&6
5378 echo $ac_n "checking for main in -lglade-gnome""... $ac_c" 1>&6
5379 echo "configure:5380: checking for main in -lglade-gnome" >&5
5380 ac_lib_var=`echo glade-gnome'_'main | sed 'y%./+-%__p_%'`
5382 xe_check_libs=" -lglade-gnome "
5383 cat > conftest.$ac_ext <<EOF
5384 #line 5385 "configure"
5385 #include "confdefs.h"
5391 if { (eval echo configure:5392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5393 eval "ac_cv_lib_$ac_lib_var=yes"
5395 echo "configure: failed program was:" >&5
5396 cat conftest.$ac_ext >&5
5398 eval "ac_cv_lib_$ac_lib_var=no"
5403 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5404 echo "$ac_t""yes" 1>&6
5405 libs_gtk="-lglade-gnome $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lglade-gnome\" to \$libs_gtk"; fi
5407 echo "$ac_t""no" 1>&6
5411 cat > conftest.$ac_ext <<EOF
5412 #line 5413 "configure"
5413 #include "confdefs.h"
5414 #include <glade/glade-xml.h>
5416 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5417 egrep "char \*txtdomain;" >/dev/null 2>&1; then
5419 echo "$ac_t""yes" 1>&6
5420 { test "$extra_verbose" = "yes" && cat << \EOF
5421 Defining LIBGLADE_XML_TXTDOMAIN = 1
5423 cat >> confdefs.h <<\EOF
5424 #define LIBGLADE_XML_TXTDOMAIN 1
5430 echo "$ac_t""no" 1>&6
5434 CFLAGS="${OLD_CFLAGS}"
5435 CPPFLAGS="${OLD_CPPFLAGS}"
5436 LDFLAGS="${OLD_LDFLAGS}"
5440 if test "$with_x11" != "no"; then
5441 test "$x_includes $x_libraries" != "NONE NONE" && \
5442 window_system=x11 with_x11=yes
5445 if test "$x_includes $x_libraries" = "NONE NONE" \
5446 -a -n "$OPENWINHOME" \
5447 -a "$OPENWINHOME" != "/usr/openwin" \
5448 -a -d "$OPENWINHOME"; then
5449 test -d "$OPENWINHOME/lib" && x_libraries="$OPENWINHOME/lib"
5450 test -d "$OPENWINHOME/include" && x_includes="$OPENWINHOME/include"
5451 test -d "$OPENWINHOME/share/include" && x_includes="$OPENWINHOME/share/include"
5454 if test "$x_includes" = "NONE"; then
5455 for dir in "/usr/X11" "/usr/X11R6"; do
5456 if test -d "$dir/include/X11"; then x_includes="$dir/include"; break; fi
5460 if test "$x_libraries" = "NONE"; then
5461 for dir in "/usr/X11/lib" "/usr/X11R6/lib" "/usr/lib/X11R6"; do
5462 if test -r "$dir/libX11.a"; then x_libraries="$dir"; break; fi
5466 # If we find X, set shell vars x_includes and x_libraries to the
5467 # paths, otherwise set no_x=yes.
5468 # Uses ac_ vars as temps to allow command line to override cache and checks.
5469 # --without-x overrides everything else, but does not touch the cache.
5470 echo $ac_n "checking for X""... $ac_c" 1>&6
5471 echo "configure:5472: checking for X" >&5
5473 # Check whether --with-x or --without-x was given.
5474 if test "${with_x+set}" = set; then
5479 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5480 if test "x$with_x" = xno; then
5481 # The user explicitly disabled X.
5484 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
5485 # Both variables are already set.
5489 # One or both of the vars are not set, and there is no cached value.
5490 ac_x_includes=NO ac_x_libraries=NO
5492 if mkdir conftestdir; then
5494 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5495 cat > Imakefile <<'EOF'
5497 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5499 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5500 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5501 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5502 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5503 for ac_extension in a so sl; do
5504 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
5505 test -f $ac_im_libdir/libX11.$ac_extension; then
5506 ac_im_usrlibdir=$ac_im_libdir; break
5509 # Screen out bogus values from the imake configuration. They are
5510 # bogus both because they are the default anyway, and because
5511 # using them would break gcc on systems where it needs fixed includes.
5512 case "$ac_im_incroot" in
5514 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
5516 case "$ac_im_usrlibdir" in
5518 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
5525 if test "$ac_x_includes" = NO; then
5526 # Guess where to find include files, by looking for this one X11 .h file.
5527 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
5529 # First, try using that file with no special directory specified.
5530 cat > conftest.$ac_ext <<EOF
5531 #line 5532 "configure"
5532 #include "confdefs.h"
5533 #include <$x_direct_test_include>
5535 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5536 { (eval echo configure:5537: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5537 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5538 if test -z "$ac_err"; then
5540 # We can compile using X headers with no special include directory.
5544 echo "configure: failed program was:" >&5
5545 cat conftest.$ac_ext >&5
5547 # Look for the header file in a standard set of common directories.
5548 # Check X11 before X11Rn because it is often a symlink to the current release.
5551 /usr/X11R6/include \
5552 /usr/X11R5/include \
5553 /usr/X11R4/include \
5556 /usr/include/X11R6 \
5557 /usr/include/X11R5 \
5558 /usr/include/X11R4 \
5560 /usr/local/X11/include \
5561 /usr/local/X11R6/include \
5562 /usr/local/X11R5/include \
5563 /usr/local/X11R4/include \
5565 /usr/local/include/X11 \
5566 /usr/local/include/X11R6 \
5567 /usr/local/include/X11R5 \
5568 /usr/local/include/X11R4 \
5572 /usr/XFree86/include/X11 \
5575 /usr/local/include \
5576 /usr/unsupported/include \
5577 /usr/athena/include \
5578 /usr/local/x11r5/include \
5579 /usr/lpp/Xamples/include \
5581 /usr/openwin/include \
5582 /usr/openwin/share/include \
5585 if test -r "$ac_dir/$x_direct_test_include"; then
5586 ac_x_includes=$ac_dir
5592 fi # $ac_x_includes = NO
5594 if test "$ac_x_libraries" = NO; then
5595 # Check for the libraries.
5597 test -z "$x_direct_test_library" && x_direct_test_library=Xt
5598 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
5600 # See if we find them without any special options.
5601 # Don't add to $LIBS permanently.
5602 ac_save_LIBS="$LIBS"
5603 LIBS="-l$x_direct_test_library $LIBS"
5604 cat > conftest.$ac_ext <<EOF
5605 #line 5606 "configure"
5606 #include "confdefs.h"
5609 ${x_direct_test_function}()
5612 if { (eval echo configure:5613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5614 LIBS="$ac_save_LIBS"
5615 # We can link X programs with no special library path.
5618 echo "configure: failed program was:" >&5
5619 cat conftest.$ac_ext >&5
5621 LIBS="$ac_save_LIBS"
5622 # First see if replacing the include by lib works.
5623 # Check X11 before X11Rn because it is often a symlink to the current release.
5624 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
5635 /usr/local/X11/lib \
5636 /usr/local/X11R6/lib \
5637 /usr/local/X11R5/lib \
5638 /usr/local/X11R4/lib \
5640 /usr/local/lib/X11 \
5641 /usr/local/lib/X11R6 \
5642 /usr/local/lib/X11R5 \
5643 /usr/local/lib/X11R4 \
5647 /usr/XFree86/lib/X11 \
5651 /usr/unsupported/lib \
5653 /usr/local/x11r5/lib \
5654 /usr/lpp/Xamples/lib \
5658 /usr/openwin/share/lib \
5661 for ac_extension in a so sl; do
5662 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
5663 ac_x_libraries=$ac_dir
5670 fi # $ac_x_libraries = NO
5672 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
5673 # Didn't find X anywhere. Cache the known absence of X.
5674 ac_cv_have_x="have_x=no"
5676 # Record where we found X for the cache.
5677 ac_cv_have_x="have_x=yes \
5678 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5681 eval "$ac_cv_have_x"
5684 if test "$have_x" != yes; then
5685 echo "$ac_t""$have_x" 1>&6
5688 # If each of the values was on the command line, it overrides each guess.
5689 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5690 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5691 # Update the cache value to reflect the command line values.
5692 ac_cv_have_x="have_x=yes \
5693 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5694 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
5697 if test "$no_x" = yes; then
5698 # Not all programs may use this symbol, but it does not hurt to define it.
5699 { test "$extra_verbose" = "yes" && cat << \EOF
5700 Defining X_DISPLAY_MISSING
5702 cat >> confdefs.h <<\EOF
5703 #define X_DISPLAY_MISSING 1
5707 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5709 if test -n "$x_includes"; then
5710 X_CFLAGS="$X_CFLAGS -I$x_includes"
5713 # It would also be nice to do this for all -L options, not just this one.
5714 if test -n "$x_libraries"; then
5715 X_LIBS="$X_LIBS -L$x_libraries"
5716 # For Solaris; some versions of Sun CC require a space after -R and
5717 # others require no space. Words are not sufficient . . . .
5718 case "`(uname -sr) 2>/dev/null`" in
5720 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
5721 echo "configure:5722: checking whether -R must be followed by a space" >&5
5722 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
5723 cat > conftest.$ac_ext <<EOF
5724 #line 5725 "configure"
5725 #include "confdefs.h"
5731 if { (eval echo configure:5732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5735 echo "configure: failed program was:" >&5
5736 cat conftest.$ac_ext >&5
5741 if test $ac_R_nospace = yes; then
5742 echo "$ac_t""no" 1>&6
5743 X_LIBS="$X_LIBS -R$x_libraries"
5745 LIBS="$ac_xsave_LIBS -R $x_libraries"
5746 cat > conftest.$ac_ext <<EOF
5747 #line 5748 "configure"
5748 #include "confdefs.h"
5754 if { (eval echo configure:5755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5758 echo "configure: failed program was:" >&5
5759 cat conftest.$ac_ext >&5
5764 if test $ac_R_space = yes; then
5765 echo "$ac_t""yes" 1>&6
5766 X_LIBS="$X_LIBS -R $x_libraries"
5768 echo "$ac_t""neither works" 1>&6
5771 LIBS="$ac_xsave_LIBS"
5775 # Check for system-dependent libraries X programs must link with.
5776 # Do this before checking for the system-independent R6 libraries
5777 # (-lICE), since we may need -lsocket or whatever for X linking.
5779 if test "$ISC" = yes; then
5780 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5782 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
5783 # libraries were built with DECnet support. And karl@cs.umb.edu says
5784 # the Alpha needs dnet_stub (dnet does not exist).
5785 if test "$with_dnet" = "no" ; then
5786 ac_cv_lib_dnet_dnet_ntoa=no
5789 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
5790 echo "configure:5791: checking for dnet_ntoa in -ldnet" >&5
5791 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5793 xe_check_libs=" -ldnet "
5794 cat > conftest.$ac_ext <<EOF
5795 #line 5796 "configure"
5796 #include "confdefs.h"
5797 /* Override any gcc2 internal prototype to avoid an error. */
5798 /* We use char because int might match the return type of a gcc2
5799 builtin and then its argument prototype would still apply. */
5806 if { (eval echo configure:5807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5808 eval "ac_cv_lib_$ac_lib_var=yes"
5810 echo "configure: failed program was:" >&5
5811 cat conftest.$ac_ext >&5
5813 eval "ac_cv_lib_$ac_lib_var=no"
5818 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5819 echo "$ac_t""yes" 1>&6
5820 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5822 echo "$ac_t""no" 1>&6
5827 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5829 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
5830 echo "configure:5831: checking for dnet_ntoa in -ldnet_stub" >&5
5831 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5833 xe_check_libs=" -ldnet_stub "
5834 cat > conftest.$ac_ext <<EOF
5835 #line 5836 "configure"
5836 #include "confdefs.h"
5837 /* Override any gcc2 internal prototype to avoid an error. */
5838 /* We use char because int might match the return type of a gcc2
5839 builtin and then its argument prototype would still apply. */
5846 if { (eval echo configure:5847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5848 eval "ac_cv_lib_$ac_lib_var=yes"
5850 echo "configure: failed program was:" >&5
5851 cat conftest.$ac_ext >&5
5853 eval "ac_cv_lib_$ac_lib_var=no"
5858 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5859 echo "$ac_t""yes" 1>&6
5860 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5862 echo "$ac_t""no" 1>&6
5868 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5869 # to get the SysV transport functions.
5870 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
5872 # The nsl library prevents programs from opening the X display
5873 # on Irix 5.2, according to dickey@clark.net.
5874 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
5875 echo "configure:5876: checking for gethostbyname" >&5
5877 cat > conftest.$ac_ext <<EOF
5878 #line 5879 "configure"
5879 #include "confdefs.h"
5880 /* System header to define __stub macros and hopefully few prototypes,
5881 which can conflict with char gethostbyname(); below. */
5883 /* Override any gcc2 internal prototype to avoid an error. */
5884 /* We use char because int might match the return type of a gcc2
5885 builtin and then its argument prototype would still apply. */
5886 char gethostbyname();
5890 /* The GNU C library defines this for functions which it implements
5891 to always fail with ENOSYS. Some functions are actually named
5892 something starting with __ and the normal name is an alias. */
5893 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5901 if { (eval echo configure:5902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5903 eval "ac_cv_func_gethostbyname=yes"
5905 echo "configure: failed program was:" >&5
5906 cat conftest.$ac_ext >&5
5908 eval "ac_cv_func_gethostbyname=no"
5912 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
5913 echo "$ac_t""yes" 1>&6
5916 echo "$ac_t""no" 1>&6
5919 if test $ac_cv_func_gethostbyname = no; then
5921 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
5922 echo "configure:5923: checking for gethostbyname in -lnsl" >&5
5923 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
5925 xe_check_libs=" -lnsl "
5926 cat > conftest.$ac_ext <<EOF
5927 #line 5928 "configure"
5928 #include "confdefs.h"
5929 /* Override any gcc2 internal prototype to avoid an error. */
5930 /* We use char because int might match the return type of a gcc2
5931 builtin and then its argument prototype would still apply. */
5932 char gethostbyname();
5938 if { (eval echo configure:5939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5940 eval "ac_cv_lib_$ac_lib_var=yes"
5942 echo "configure: failed program was:" >&5
5943 cat conftest.$ac_ext >&5
5945 eval "ac_cv_lib_$ac_lib_var=no"
5950 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5951 echo "$ac_t""yes" 1>&6
5952 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5954 echo "$ac_t""no" 1>&6
5960 # lieder@skyler.mavd.honeywell.com says without -lsocket,
5961 # socket/setsockopt and other routines are undefined under SCO ODT
5962 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5963 # on later versions), says simon@lia.di.epfl.ch: it contains
5964 # gethostby* variants that don't use the nameserver (or something).
5965 # -lsocket must be given before -lnsl if both are needed.
5966 # We assume that if connect needs -lnsl, so does gethostbyname.
5967 echo $ac_n "checking for connect""... $ac_c" 1>&6
5968 echo "configure:5969: checking for connect" >&5
5970 cat > conftest.$ac_ext <<EOF
5971 #line 5972 "configure"
5972 #include "confdefs.h"
5973 /* System header to define __stub macros and hopefully few prototypes,
5974 which can conflict with char connect(); below. */
5976 /* Override any gcc2 internal prototype to avoid an error. */
5977 /* We use char because int might match the return type of a gcc2
5978 builtin and then its argument prototype would still apply. */
5983 /* The GNU C library defines this for functions which it implements
5984 to always fail with ENOSYS. Some functions are actually named
5985 something starting with __ and the normal name is an alias. */
5986 #if defined (__stub_connect) || defined (__stub___connect)
5994 if { (eval echo configure:5995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5996 eval "ac_cv_func_connect=yes"
5998 echo "configure: failed program was:" >&5
5999 cat conftest.$ac_ext >&5
6001 eval "ac_cv_func_connect=no"
6005 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
6006 echo "$ac_t""yes" 1>&6
6009 echo "$ac_t""no" 1>&6
6012 if test $ac_cv_func_connect = no; then
6014 xe_msg_checking="for connect in -lsocket"
6015 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
6016 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6017 echo "configure:6018: checking "$xe_msg_checking"" >&5
6018 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
6020 xe_check_libs=" -lsocket $X_EXTRA_LIBS"
6021 cat > conftest.$ac_ext <<EOF
6022 #line 6023 "configure"
6023 #include "confdefs.h"
6024 /* Override any gcc2 internal prototype to avoid an error. */
6025 /* We use char because int might match the return type of a gcc2
6026 builtin and then its argument prototype would still apply. */
6033 if { (eval echo configure:6034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6035 eval "ac_cv_lib_$ac_lib_var=yes"
6037 echo "configure: failed program was:" >&5
6038 cat conftest.$ac_ext >&5
6040 eval "ac_cv_lib_$ac_lib_var=no"
6045 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6046 echo "$ac_t""yes" 1>&6
6047 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6049 echo "$ac_t""no" 1>&6
6055 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
6056 echo $ac_n "checking for remove""... $ac_c" 1>&6
6057 echo "configure:6058: checking for remove" >&5
6059 cat > conftest.$ac_ext <<EOF
6060 #line 6061 "configure"
6061 #include "confdefs.h"
6062 /* System header to define __stub macros and hopefully few prototypes,
6063 which can conflict with char remove(); below. */
6065 /* Override any gcc2 internal prototype to avoid an error. */
6066 /* We use char because int might match the return type of a gcc2
6067 builtin and then its argument prototype would still apply. */
6072 /* The GNU C library defines this for functions which it implements
6073 to always fail with ENOSYS. Some functions are actually named
6074 something starting with __ and the normal name is an alias. */
6075 #if defined (__stub_remove) || defined (__stub___remove)
6083 if { (eval echo configure:6084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6085 eval "ac_cv_func_remove=yes"
6087 echo "configure: failed program was:" >&5
6088 cat conftest.$ac_ext >&5
6090 eval "ac_cv_func_remove=no"
6094 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
6095 echo "$ac_t""yes" 1>&6
6098 echo "$ac_t""no" 1>&6
6101 if test $ac_cv_func_remove = no; then
6103 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
6104 echo "configure:6105: checking for remove in -lposix" >&5
6105 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
6107 xe_check_libs=" -lposix "
6108 cat > conftest.$ac_ext <<EOF
6109 #line 6110 "configure"
6110 #include "confdefs.h"
6111 /* Override any gcc2 internal prototype to avoid an error. */
6112 /* We use char because int might match the return type of a gcc2
6113 builtin and then its argument prototype would still apply. */
6120 if { (eval echo configure:6121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6122 eval "ac_cv_lib_$ac_lib_var=yes"
6124 echo "configure: failed program was:" >&5
6125 cat conftest.$ac_ext >&5
6127 eval "ac_cv_lib_$ac_lib_var=no"
6132 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6133 echo "$ac_t""yes" 1>&6
6134 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6136 echo "$ac_t""no" 1>&6
6142 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6143 echo $ac_n "checking for shmat""... $ac_c" 1>&6
6144 echo "configure:6145: checking for shmat" >&5
6146 cat > conftest.$ac_ext <<EOF
6147 #line 6148 "configure"
6148 #include "confdefs.h"
6149 /* System header to define __stub macros and hopefully few prototypes,
6150 which can conflict with char shmat(); below. */
6152 /* Override any gcc2 internal prototype to avoid an error. */
6153 /* We use char because int might match the return type of a gcc2
6154 builtin and then its argument prototype would still apply. */
6159 /* The GNU C library defines this for functions which it implements
6160 to always fail with ENOSYS. Some functions are actually named
6161 something starting with __ and the normal name is an alias. */
6162 #if defined (__stub_shmat) || defined (__stub___shmat)
6170 if { (eval echo configure:6171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6172 eval "ac_cv_func_shmat=yes"
6174 echo "configure: failed program was:" >&5
6175 cat conftest.$ac_ext >&5
6177 eval "ac_cv_func_shmat=no"
6181 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
6182 echo "$ac_t""yes" 1>&6
6185 echo "$ac_t""no" 1>&6
6188 if test $ac_cv_func_shmat = no; then
6190 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
6191 echo "configure:6192: checking for shmat in -lipc" >&5
6192 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
6194 xe_check_libs=" -lipc "
6195 cat > conftest.$ac_ext <<EOF
6196 #line 6197 "configure"
6197 #include "confdefs.h"
6198 /* Override any gcc2 internal prototype to avoid an error. */
6199 /* We use char because int might match the return type of a gcc2
6200 builtin and then its argument prototype would still apply. */
6207 if { (eval echo configure:6208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6209 eval "ac_cv_lib_$ac_lib_var=yes"
6211 echo "configure: failed program was:" >&5
6212 cat conftest.$ac_ext >&5
6214 eval "ac_cv_lib_$ac_lib_var=no"
6219 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6220 echo "$ac_t""yes" 1>&6
6221 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6223 echo "$ac_t""no" 1>&6
6230 # Check for libraries that X11R6 Xt/Xaw programs need.
6231 ac_save_LDFLAGS="$LDFLAGS"
6232 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6233 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6234 # check for ICE first), but we must link in the order -lSM -lICE or
6235 # we get undefined symbols. So assume we have SM if we have ICE.
6236 # These have to be linked with before -lX11, unlike the other
6237 # libraries we check for below, so use a different variable.
6238 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
6240 xe_msg_checking="for IceConnectionNumber in -lICE"
6241 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
6242 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6243 echo "configure:6244: checking "$xe_msg_checking"" >&5
6244 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
6246 xe_check_libs=" -lICE $X_EXTRA_LIBS"
6247 cat > conftest.$ac_ext <<EOF
6248 #line 6249 "configure"
6249 #include "confdefs.h"
6250 /* Override any gcc2 internal prototype to avoid an error. */
6251 /* We use char because int might match the return type of a gcc2
6252 builtin and then its argument prototype would still apply. */
6253 char IceConnectionNumber();
6256 IceConnectionNumber()
6259 if { (eval echo configure:6260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6261 eval "ac_cv_lib_$ac_lib_var=yes"
6263 echo "configure: failed program was:" >&5
6264 cat conftest.$ac_ext >&5
6266 eval "ac_cv_lib_$ac_lib_var=no"
6271 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6272 echo "$ac_t""yes" 1>&6
6273 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6275 echo "$ac_t""no" 1>&6
6279 LDFLAGS="$ac_save_LDFLAGS"
6282 # Autoconf claims to find X library and include dirs for us.
6283 if test "$no_x" = "yes"
6284 then with_x11=no window_system=none HAVE_X_WINDOWS=no
6285 else with_x11=yes window_system=x11 HAVE_X_WINDOWS=yes
6290 if test "$with_x11" = "yes"; then
6291 { test "$extra_verbose" = "yes" && cat << \EOF
6292 Defining HAVE_X_WINDOWS
6294 cat >> confdefs.h <<\EOF
6295 #define HAVE_X_WINDOWS 1
6299 MAKE_SUBDIR="$MAKE_SUBDIR lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$MAKE_SUBDIR"; fi
6300 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$SRC_SUBDIR_DEPS"; fi
6302 for lib_dir in "/usr/dt/lib" "/usr/lib/Motif2.1" "/usr/lib/Motif1.2" "/usr/lib/Motif1.1"; do
6303 inc_dir=`echo $lib_dir | sed -e 's/lib/include/'`
6304 if test -d "$lib_dir" -a -d "$inc_dir"; then
6305 case "$x_libraries" in *"$lib_dir"* ) ;; *)
6306 x_libraries="$lib_dir $x_libraries"
6307 X_LIBS="-L${lib_dir} $X_LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-L${lib_dir}\" to \$X_LIBS"; fi ;;
6309 case "$x_includes" in "$inc_dir"* ) ;; *)
6310 x_includes="$inc_dir $x_includes"
6311 X_CFLAGS="-I${inc_dir} $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-I${inc_dir}\" to \$X_CFLAGS"; fi ;;
6316 for rel in "X11R6" "X11R5" "X11R4"; do
6317 lib_dir="/usr/contrib/$rel/lib" inc_dir="/usr/contrib/$rel/include"
6318 if test -d "$lib_dir" -a -d "$inc_dir"; then
6319 case "$x_libraries" in *"$lib_dir"* ) ;; *)
6320 x_libraries="$x_libraries $lib_dir"
6321 X_LIBS="$X_LIBS -L${lib_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L${lib_dir}\" to \$X_LIBS"; fi
6323 case "$x_includes" in "$inc_dir"* ) ;; *)
6324 x_includes="$x_includes $inc_dir"
6325 X_CFLAGS="$X_CFLAGS -I${inc_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-I${inc_dir}\" to \$X_CFLAGS"; fi
6331 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 ;;
6334 ld_switch_x_site="$X_LIBS"
6337 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
6338 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
6339 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
6341 runpath="" runpath_dirs=""
6342 if test -n "$LD_RUN_PATH"; then
6343 runpath="$LD_RUN_PATH"
6344 elif test "$GCC" = "yes"; then
6345 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
6346 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
6347 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
6348 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
6349 case "$arg" in P,* | -L* | -R* )
6350 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
6352 xe_runpath_dir="$dir"
6353 test "$xe_runpath_dir" != "/lib" -a \
6354 "$xe_runpath_dir" != "/usr/lib" -a \
6355 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
6356 eval "$xe_add_unique_runpath_dir"
6361 ld_switch_run="$ld_switch_run_save"
6364 for arg in $ld_switch_site $ld_switch_x_site; do
6365 case "$arg" in -L*) {
6366 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
6367 test "$xe_runpath_dir" != "/lib" -a \
6368 "$xe_runpath_dir" != "/usr/lib" -a \
6369 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
6370 eval "$xe_add_unique_runpath_dir"
6373 if test "$opsys $need_motif" = "sol2 yes"; then
6374 xe_runpath_dir="/opt/SUNWdt/lib";
6375 eval "$xe_add_unique_runpath_dir";
6378 if test -n "$runpath"; then
6379 ld_switch_run="${dash_r}${runpath}"
6381 if test "$GCC" = "yes"; then
6382 set x $ld_switch_run; shift; ld_switch_run=""
6383 while test -n "$1"; do
6385 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
6386 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
6388 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
6393 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
6398 if test "$extra_verbose" = "yes"; then
6399 echo; echo "X11 compilation variables:"
6400 for var in x_libraries x_includes X_CFLAGS X_LIBS X_PRE_LIBS X_EXTRA_LIBS; do eval "echo \"$var = '\$$var'\""; done
6405 if test "$x_includes" != NONE; then
6406 for i in $x_includes; do
6407 if test -d "$i/bitmaps"; then
6408 bitmapdirs="$i/bitmaps:$bitmapdirs"
6410 if test -d "$i/X11/bitmaps"; then
6411 bitmapdirs="$i/X11/bitmaps:$bitmapdirs"
6414 bitmapdirs=`echo "$bitmapdirs" | sed s/.$//`
6416 test ! -z "$bitmapdirs" && { test "$extra_verbose" = "yes" && cat << EOF
6417 Defining BITMAPDIR = "$bitmapdirs"
6419 cat >> confdefs.h <<EOF
6420 #define BITMAPDIR "$bitmapdirs"
6425 echo "checking for X defines extracted by xmkmf" 1>&6
6426 echo "configure:6427: checking for X defines extracted by xmkmf" >&5
6428 if mkdir conftestdir; then
6430 cat > Imakefile <<'EOF'
6432 @echo ${PROTO_DEFINES} ${STD_DEFINES}
6434 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6435 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6436 xmkmf_defines=`${MAKE-make} xetest 2>/dev/null | grep -v make`
6440 for word in $xmkmf_defines; do
6444 sym=`echo '' $word | sed -e 's:^ *-D::' -e 's:=.*::'`
6446 -D*=* ) val=`echo '' $word | sed -e 's:^.*=::'` ;;
6449 if grep "^#define $sym " confdefs.h >/dev/null; then :; else
6450 if test "$val" = "1"
6451 then { test "$extra_verbose" = "yes" && cat << EOF
6454 cat >> confdefs.h <<EOF
6459 else { test "$extra_verbose" = "yes" && cat << EOF
6460 Defining $sym = $val
6462 cat >> confdefs.h <<EOF
6473 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
6474 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
6475 echo "configure:6476: checking for X11/Intrinsic.h" >&5
6477 cat > conftest.$ac_ext <<EOF
6478 #line 6479 "configure"
6479 #include "confdefs.h"
6480 #include <X11/Intrinsic.h>
6482 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6483 { (eval echo configure:6484: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6484 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6485 if test -z "$ac_err"; then
6487 eval "ac_cv_header_$ac_safe=yes"
6490 echo "configure: failed program was:" >&5
6491 cat conftest.$ac_ext >&5
6493 eval "ac_cv_header_$ac_safe=no"
6496 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6497 echo "$ac_t""yes" 1>&6
6500 echo "$ac_t""no" 1>&6
6501 { echo "configure: error: "Unable to find X11 header files."" 1>&2; exit 1; }
6506 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
6507 echo "configure:6508: checking for XOpenDisplay in -lX11" >&5
6508 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
6510 xe_check_libs=" -lX11 "
6511 cat > conftest.$ac_ext <<EOF
6512 #line 6513 "configure"
6513 #include "confdefs.h"
6514 /* Override any gcc2 internal prototype to avoid an error. */
6515 /* We use char because int might match the return type of a gcc2
6516 builtin and then its argument prototype would still apply. */
6517 char XOpenDisplay();
6523 if { (eval echo configure:6524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6525 eval "ac_cv_lib_$ac_lib_var=yes"
6527 echo "configure: failed program was:" >&5
6528 cat conftest.$ac_ext >&5
6530 eval "ac_cv_lib_$ac_lib_var=no"
6535 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6536 echo "$ac_t""yes" 1>&6
6539 echo "$ac_t""no" 1>&6
6543 if test "$have_lib_x11" != "yes"; then
6545 xe_msg_checking="for XGetFontProperty in -lX11"
6546 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout"
6547 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6548 echo "configure:6549: checking "$xe_msg_checking"" >&5
6549 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
6551 xe_check_libs=" -lX11 -b i486-linuxaout"
6552 cat > conftest.$ac_ext <<EOF
6553 #line 6554 "configure"
6554 #include "confdefs.h"
6555 /* Override any gcc2 internal prototype to avoid an error. */
6556 /* We use char because int might match the return type of a gcc2
6557 builtin and then its argument prototype would still apply. */
6558 char XGetFontProperty();
6564 if { (eval echo configure:6565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6566 eval "ac_cv_lib_$ac_lib_var=yes"
6568 echo "configure: failed program was:" >&5
6569 cat conftest.$ac_ext >&5
6571 eval "ac_cv_lib_$ac_lib_var=no"
6576 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6577 echo "$ac_t""yes" 1>&6
6578 ld_switch_x_site="-b i486-linuxaout $ld_switch_x_site"
6580 echo "$ac_t""no" 1>&6
6581 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
6587 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
6590 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
6591 echo "configure:6592: checking for XShapeSelectInput in -lXext" >&5
6592 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
6594 xe_check_libs=" -lXext "
6595 cat > conftest.$ac_ext <<EOF
6596 #line 6597 "configure"
6597 #include "confdefs.h"
6598 /* Override any gcc2 internal prototype to avoid an error. */
6599 /* We use char because int might match the return type of a gcc2
6600 builtin and then its argument prototype would still apply. */
6601 char XShapeSelectInput();
6607 if { (eval echo configure:6608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6609 eval "ac_cv_lib_$ac_lib_var=yes"
6611 echo "configure: failed program was:" >&5
6612 cat conftest.$ac_ext >&5
6614 eval "ac_cv_lib_$ac_lib_var=no"
6619 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6620 echo "$ac_t""yes" 1>&6
6621 libs_x="-lXext $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXext\" to \$libs_x"; fi
6623 echo "$ac_t""no" 1>&6
6629 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6
6630 echo "configure:6631: checking for XtOpenDisplay in -lXt" >&5
6631 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
6633 xe_check_libs=" -lXt "
6634 cat > conftest.$ac_ext <<EOF
6635 #line 6636 "configure"
6636 #include "confdefs.h"
6637 /* Override any gcc2 internal prototype to avoid an error. */
6638 /* We use char because int might match the return type of a gcc2
6639 builtin and then its argument prototype would still apply. */
6640 char XtOpenDisplay();
6646 if { (eval echo configure:6647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6648 eval "ac_cv_lib_$ac_lib_var=yes"
6650 echo "configure: failed program was:" >&5
6651 cat conftest.$ac_ext >&5
6653 eval "ac_cv_lib_$ac_lib_var=no"
6658 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6659 echo "$ac_t""yes" 1>&6
6660 libs_x="-lXt $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXt\" to \$libs_x"; fi
6662 echo "$ac_t""no" 1>&6
6663 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
6668 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6
6669 echo "configure:6670: checking the version of X11 being used" >&5
6670 cat > conftest.$ac_ext <<EOF
6671 #line 6672 "configure"
6672 #include "confdefs.h"
6673 #include <X11/Intrinsic.h>
6674 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; }
6676 if { (eval echo configure:6677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6678 ./conftest foobar; x11_release=$?
6681 echo "configure: failed program was:" >&5
6682 cat conftest.$ac_ext >&5
6687 echo "$ac_t""R${x11_release}" 1>&6
6688 { test "$extra_verbose" = "yes" && cat << EOF
6689 Defining THIS_IS_X11R${x11_release}
6691 cat >> confdefs.h <<EOF
6692 #define THIS_IS_X11R${x11_release} 1
6697 if test "${x11_release}" = "4"; then
6698 case "$with_widgets" in
6699 "" | "no") with_widgets=no ;;
6700 *) { echo "Error:" "Widget support requires X11R5 or greater" >&2; exit 1; } ;;
6704 for ac_func in XConvertCase
6706 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6707 echo "configure:6708: checking for $ac_func" >&5
6709 cat > conftest.$ac_ext <<EOF
6710 #line 6711 "configure"
6711 #include "confdefs.h"
6712 /* System header to define __stub macros and hopefully few prototypes,
6713 which can conflict with char $ac_func(); below. */
6715 /* Override any gcc2 internal prototype to avoid an error. */
6716 /* We use char because int might match the return type of a gcc2
6717 builtin and then its argument prototype would still apply. */
6722 /* The GNU C library defines this for functions which it implements
6723 to always fail with ENOSYS. Some functions are actually named
6724 something starting with __ and the normal name is an alias. */
6725 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6733 if { (eval echo configure:6734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6735 eval "ac_cv_func_$ac_func=yes"
6737 echo "configure: failed program was:" >&5
6738 cat conftest.$ac_ext >&5
6740 eval "ac_cv_func_$ac_func=no"
6744 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6745 echo "$ac_t""yes" 1>&6
6746 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6747 { test "$extra_verbose" = "yes" && cat << EOF
6748 Defining $ac_tr_func
6750 cat >> confdefs.h <<EOF
6751 #define $ac_tr_func 1
6756 echo "$ac_t""no" 1>&6
6761 for ac_hdr in X11/Xlocale.h
6763 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6764 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6765 echo "configure:6766: checking for $ac_hdr" >&5
6767 cat > conftest.$ac_ext <<EOF
6768 #line 6769 "configure"
6769 #include "confdefs.h"
6772 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6773 { (eval echo configure:6774: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6774 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6775 if test -z "$ac_err"; then
6777 eval "ac_cv_header_$ac_safe=yes"
6780 echo "configure: failed program was:" >&5
6781 cat conftest.$ac_ext >&5
6783 eval "ac_cv_header_$ac_safe=no"
6786 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6787 echo "$ac_t""yes" 1>&6
6788 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6789 { test "$extra_verbose" = "yes" && cat << EOF
6792 cat >> confdefs.h <<EOF
6793 #define $ac_tr_hdr 1
6798 echo "$ac_t""no" 1>&6
6803 for ac_func in XRegisterIMInstantiateCallback
6805 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6806 echo "configure:6807: checking for $ac_func" >&5
6808 cat > conftest.$ac_ext <<EOF
6809 #line 6810 "configure"
6810 #include "confdefs.h"
6811 /* System header to define __stub macros and hopefully few prototypes,
6812 which can conflict with char $ac_func(); below. */
6814 /* Override any gcc2 internal prototype to avoid an error. */
6815 /* We use char because int might match the return type of a gcc2
6816 builtin and then its argument prototype would still apply. */
6821 /* The GNU C library defines this for functions which it implements
6822 to always fail with ENOSYS. Some functions are actually named
6823 something starting with __ and the normal name is an alias. */
6824 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6832 if { (eval echo configure:6833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6834 eval "ac_cv_func_$ac_func=yes"
6836 echo "configure: failed program was:" >&5
6837 cat conftest.$ac_ext >&5
6839 eval "ac_cv_func_$ac_func=no"
6843 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6844 echo "$ac_t""yes" 1>&6
6845 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6846 { test "$extra_verbose" = "yes" && cat << EOF
6847 Defining $ac_tr_func
6849 cat >> confdefs.h <<EOF
6850 #define $ac_tr_func 1
6855 echo "$ac_t""no" 1>&6
6859 echo $ac_n "checking for standard XRegisterIMInstantiateCallback prototype""... $ac_c" 1>&6
6860 echo "configure:6861: checking for standard XRegisterIMInstantiateCallback prototype" >&5
6861 cat > conftest.$ac_ext <<EOF
6862 #line 6863 "configure"
6863 #include "confdefs.h"
6865 #define NeedFunctionPrototypes 1
6866 #include <X11/Xlib.h>
6867 extern Bool XRegisterIMInstantiateCallback(
6868 Display*, struct _XrmHashBucketRec*, char*, char*, XIMProc, XPointer*);
6874 if { (eval echo configure:6875: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6876 echo "$ac_t""yes" 1>&6
6878 echo "configure: failed program was:" >&5
6879 cat conftest.$ac_ext >&5
6881 echo "$ac_t""no" 1>&6
6882 { test "$extra_verbose" = "yes" && cat << \EOF
6883 Defining XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE
6885 cat >> confdefs.h <<\EOF
6886 #define XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE 1
6893 test -z "$with_xmu" && {
6894 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6
6895 echo "configure:6896: checking for XmuReadBitmapDataFromFile in -lXmu" >&5
6896 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'`
6898 xe_check_libs=" -lXmu "
6899 cat > conftest.$ac_ext <<EOF
6900 #line 6901 "configure"
6901 #include "confdefs.h"
6902 /* Override any gcc2 internal prototype to avoid an error. */
6903 /* We use char because int might match the return type of a gcc2
6904 builtin and then its argument prototype would still apply. */
6905 char XmuReadBitmapDataFromFile();
6908 XmuReadBitmapDataFromFile()
6911 if { (eval echo configure:6912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6913 eval "ac_cv_lib_$ac_lib_var=yes"
6915 echo "configure: failed program was:" >&5
6916 cat conftest.$ac_ext >&5
6918 eval "ac_cv_lib_$ac_lib_var=no"
6923 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6924 echo "$ac_t""yes" 1>&6
6927 echo "$ac_t""no" 1>&6
6932 if test "$with_xmu" = "no"; then
6933 extra_objs="$extra_objs xmu.o" && if test "$extra_verbose" = "yes"; then
6934 echo " xemacs will be linked with \"xmu.o\""
6937 libs_x="-lXmu $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXmu\" to \$libs_x"; fi
6938 { test "$extra_verbose" = "yes" && cat << \EOF
6941 cat >> confdefs.h <<\EOF
6949 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
6950 echo "configure:6951: checking for main in -lXbsd" >&5
6951 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
6953 xe_check_libs=" -lXbsd "
6954 cat > conftest.$ac_ext <<EOF
6955 #line 6956 "configure"
6956 #include "confdefs.h"
6962 if { (eval echo configure:6963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6964 eval "ac_cv_lib_$ac_lib_var=yes"
6966 echo "configure: failed program was:" >&5
6967 cat conftest.$ac_ext >&5
6969 eval "ac_cv_lib_$ac_lib_var=no"
6974 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6975 echo "$ac_t""yes" 1>&6
6976 libs_x="-lXbsd $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXbsd\" to \$libs_x"; fi
6978 echo "$ac_t""no" 1>&6
6983 if test "$unexec" = "unexaix.o" -a "$x11_release" = "6"; then
6984 if test "$GCC" = "yes"; then
6985 X_CFLAGS="-mthreads $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$X_CFLAGS"; fi
6986 libs_x="-mthreads $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$libs_x"; fi
6989 "xlc" ) CC="xlc_r" ;;
6990 "xlC" ) CC="xlC_r" ;;
6997 if test "$with_msw" != "no"; then
6998 echo "checking for MS-Windows" 1>&6
6999 echo "configure:7000: checking for MS-Windows" >&5
7001 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6
7002 echo "configure:7003: checking for main in -lgdi32" >&5
7003 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'`
7005 xe_check_libs=" -lgdi32 "
7006 cat > conftest.$ac_ext <<EOF
7007 #line 7008 "configure"
7008 #include "confdefs.h"
7014 if { (eval echo configure:7015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7016 eval "ac_cv_lib_$ac_lib_var=yes"
7018 echo "configure: failed program was:" >&5
7019 cat conftest.$ac_ext >&5
7021 eval "ac_cv_lib_$ac_lib_var=no"
7026 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7027 echo "$ac_t""yes" 1>&6
7030 echo "$ac_t""no" 1>&6
7034 if test "$with_msw" = "yes"; then
7035 { test "$extra_verbose" = "yes" && cat << \EOF
7036 Defining HAVE_MS_WINDOWS
7038 cat >> confdefs.h <<\EOF
7039 #define HAVE_MS_WINDOWS 1
7044 if test "$with_netinstall" = "yes"; then
7045 MAKE_SUBDIR="$MAKE_SUBDIR netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$MAKE_SUBDIR"; fi
7046 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$SRC_SUBDIR_DEPS"; fi
7047 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
7050 install_pp="$blddir/lib-src/installexe.sh"
7051 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
7052 test "$with_dragndrop" != no && dragndrop_proto="$dragndrop_proto msw" && if test "$extra_verbose" = "yes"; then echo " Appending \"msw\" to \$dragndrop_proto"; fi
7053 if test "$window_system" != x11; then
7055 test "$with_scrollbars" != "no" && with_scrollbars=msw \
7056 && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
7057 echo " xemacs will be linked with \"scrollbar-msw.o\""
7059 test "$with_menubars" != "no" && with_menubars=msw \
7060 && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
7061 echo " xemacs will be linked with \"menubar-msw.o\""
7063 test "$with_toolbars" != "no" && with_toolbars=msw \
7064 && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
7065 echo " xemacs will be linked with \"toolbar-msw.o\""
7067 test "$with_dialogs" != "no" && with_dialogs=msw \
7068 && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
7069 echo " xemacs will be linked with \"dialog-msw.o\""
7071 test "$with_widgets" != "no" && with_widgets=msw
7073 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
7074 echo " xemacs will be linked with \"scrollbar-msw.o\""
7076 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
7077 echo " xemacs will be linked with \"menubar-msw.o\""
7079 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
7080 echo " xemacs will be linked with \"toolbar-msw.o\""
7082 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
7083 echo " xemacs will be linked with \"dialog-msw.o\""
7086 cat > conftest.$ac_ext <<EOF
7087 #line 7088 "configure"
7088 #include "confdefs.h"
7090 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; }
7092 if { (eval echo configure:7093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
7094 need_event_unixoid=yes; { test "$extra_verbose" = "yes" && cat << \EOF
7095 Defining HAVE_MSG_SELECT
7097 cat >> confdefs.h <<\EOF
7098 #define HAVE_MSG_SELECT 1
7104 echo "configure: failed program was:" >&5
7105 cat conftest.$ac_ext >&5
7108 with_file_coding=yes
7109 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
7110 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\""
7117 test -z "$window_system" && window_system="none"
7119 if test "$window_system" = "none"; then
7120 for feature in menubars scrollbars toolbars dialogs dragndrop xface
7122 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
7123 echo "configure: warning: --with-$feature ignored: Not valid without window system support" 1>&2
7125 eval "with_${feature}=no"
7128 test -z "$with_toolbars" && with_toolbars=yes
7131 if test "$with_msw" != "yes"; then
7132 for feature in MARTIN_IS_CLUELESS_ABOUT_MSW_FEATURES
7134 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
7135 echo "configure: warning: --with-$feature ignored: Not valid without MS-Windows support" 1>&2
7137 eval "with_${feature}=no"
7143 if test "$with_x11" != "yes"; then
7144 for feature in tooltalk cde offix wmcommand xim xmu nas_sound
7146 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
7147 echo "configure: warning: --with-$feature ignored: Not valid without X support" 1>&2
7149 eval "with_${feature}=no"
7153 if test "$with_x11" = "yes"; then
7154 ac_safe=`echo "X11/extensions/shape.h" | sed 'y%./+-%__p_%'`
7155 echo $ac_n "checking for X11/extensions/shape.h""... $ac_c" 1>&6
7156 echo "configure:7157: checking for X11/extensions/shape.h" >&5
7158 cat > conftest.$ac_ext <<EOF
7159 #line 7160 "configure"
7160 #include "confdefs.h"
7161 #include <X11/extensions/shape.h>
7163 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7164 { (eval echo configure:7165: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7165 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7166 if test -z "$ac_err"; then
7168 eval "ac_cv_header_$ac_safe=yes"
7171 echo "configure: failed program was:" >&5
7172 cat conftest.$ac_ext >&5
7174 eval "ac_cv_header_$ac_safe=no"
7177 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7178 echo "$ac_t""yes" 1>&6
7180 { test "$extra_verbose" = "yes" && cat << \EOF
7181 Defining HAVE_BALLOON_HELP
7183 cat >> confdefs.h <<\EOF
7184 #define HAVE_BALLOON_HELP 1
7188 extra_objs="$extra_objs balloon_help.o balloon-x.o" && if test "$extra_verbose" = "yes"; then
7189 echo " xemacs will be linked with \"balloon_help.o balloon-x.o\""
7192 echo "$ac_t""no" 1>&6
7199 case "$window_system" in
7200 x11 ) HAVE_X_WINDOWS=yes; echo " Using X11." ;;
7201 msw ) HAVE_X_WINDOWS=no ; echo " Using MS-Windows." ;;
7204 test "$with_gnome" = "yes" && echo " Using GNOME."
7205 test "$with_gnome" = "no" && echo " Using GTK."
7207 none ) HAVE_X_WINDOWS=no ; echo " Using no window system." ;;
7210 case "$x_libraries" in *X11R4* )
7211 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h"
7212 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h"
7215 echo "checking for WM_COMMAND option" 1>&6
7216 echo "configure:7217: checking for WM_COMMAND option" >&5;
7217 if test "$with_wmcommand" != "no"; then
7218 { test "$extra_verbose" = "yes" && cat << \EOF
7219 Defining HAVE_WMCOMMAND
7221 cat >> confdefs.h <<\EOF
7222 #define HAVE_WMCOMMAND 1
7228 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
7229 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'`
7230 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
7231 echo "configure:7232: checking for X11/Xauth.h" >&5
7233 cat > conftest.$ac_ext <<EOF
7234 #line 7235 "configure"
7235 #include "confdefs.h"
7236 #include <X11/Xauth.h>
7238 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7239 { (eval echo configure:7240: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7240 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7241 if test -z "$ac_err"; then
7243 eval "ac_cv_header_$ac_safe=yes"
7246 echo "configure: failed program was:" >&5
7247 cat conftest.$ac_ext >&5
7249 eval "ac_cv_header_$ac_safe=no"
7252 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7253 echo "$ac_t""yes" 1>&6
7256 echo "$ac_t""no" 1>&6
7260 test -z "$with_xauth" && {
7261 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
7262 echo "configure:7263: checking for XauGetAuthByAddr in -lXau" >&5
7263 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
7265 xe_check_libs=" -lXau "
7266 cat > conftest.$ac_ext <<EOF
7267 #line 7268 "configure"
7268 #include "confdefs.h"
7269 /* Override any gcc2 internal prototype to avoid an error. */
7270 /* We use char because int might match the return type of a gcc2
7271 builtin and then its argument prototype would still apply. */
7272 char XauGetAuthByAddr();
7278 if { (eval echo configure:7279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7280 eval "ac_cv_lib_$ac_lib_var=yes"
7282 echo "configure: failed program was:" >&5
7283 cat conftest.$ac_ext >&5
7285 eval "ac_cv_lib_$ac_lib_var=no"
7290 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7291 echo "$ac_t""yes" 1>&6
7294 echo "$ac_t""no" 1>&6
7299 test -z "$with_xauth" && with_xauth=yes
7300 if test "$with_xauth" = "yes"; then
7301 { test "$extra_verbose" = "yes" && cat << \EOF
7304 cat >> confdefs.h <<\EOF
7305 #define HAVE_XAUTH 1
7311 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
7319 if test "$with_tooltalk" != "no" ; then
7320 for dir in "" "Tt/" "desktop/" ; do
7321 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
7322 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
7323 echo "configure:7324: checking for ${dir}tt_c.h" >&5
7325 cat > conftest.$ac_ext <<EOF
7326 #line 7327 "configure"
7327 #include "confdefs.h"
7328 #include <${dir}tt_c.h>
7330 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7331 { (eval echo configure:7332: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7332 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7333 if test -z "$ac_err"; then
7335 eval "ac_cv_header_$ac_safe=yes"
7338 echo "configure: failed program was:" >&5
7339 cat conftest.$ac_ext >&5
7341 eval "ac_cv_header_$ac_safe=no"
7344 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7345 echo "$ac_t""yes" 1>&6
7346 tt_c_h_file="${dir}tt_c.h"; break
7348 echo "$ac_t""no" 1>&6
7352 if test -z "$tt_c_h_file"; then
7353 if test "$with_tooltalk" = "yes"; then
7354 (echo "$progname: Usage error:"
7355 echo " " "Unable to find required tooltalk header files."
7356 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
7361 if test "$with_tooltalk" != "no" ; then
7362 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
7364 xe_msg_checking="for tt_message_create in -ltt"
7365 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
7366 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7367 echo "configure:7368: checking "$xe_msg_checking"" >&5
7368 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
7370 xe_check_libs=" -ltt $extra_libs"
7371 cat > conftest.$ac_ext <<EOF
7372 #line 7373 "configure"
7373 #include "confdefs.h"
7374 /* Override any gcc2 internal prototype to avoid an error. */
7375 /* We use char because int might match the return type of a gcc2
7376 builtin and then its argument prototype would still apply. */
7377 char tt_message_create();
7383 if { (eval echo configure:7384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7385 eval "ac_cv_lib_$ac_lib_var=yes"
7387 echo "configure: failed program was:" >&5
7388 cat conftest.$ac_ext >&5
7390 eval "ac_cv_lib_$ac_lib_var=no"
7395 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7396 echo "$ac_t""yes" 1>&6
7397 tt_libs="-ltt $extra_libs"; break
7399 echo "$ac_t""no" 1>&6
7405 if test -z "$tt_libs"; then
7406 if test "$with_tooltalk" = "yes"; then
7407 (echo "$progname: Usage error:"
7408 echo " " "Unable to find required tooltalk libraries."
7409 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
7414 test -z "$with_tooltalk" && with_tooltalk=yes
7415 if test "$with_tooltalk" = "yes"; then
7416 { test "$extra_verbose" = "yes" && cat << \EOF
7419 cat >> confdefs.h <<\EOF
7424 { test "$extra_verbose" = "yes" && cat << EOF
7425 Defining TT_C_H_FILE = "$tt_c_h_file"
7427 cat >> confdefs.h <<EOF
7428 #define TT_C_H_FILE "$tt_c_h_file"
7432 libs_x="$tt_libs $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$tt_libs\" to \$libs_x"; fi
7433 extra_objs="$extra_objs tooltalk.o" && if test "$extra_verbose" = "yes"; then
7434 echo " xemacs will be linked with \"tooltalk.o\""
7438 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'`
7439 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
7440 echo "configure:7441: checking for Dt/Dt.h" >&5
7442 cat > conftest.$ac_ext <<EOF
7443 #line 7444 "configure"
7444 #include "confdefs.h"
7447 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7448 { (eval echo configure:7449: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7449 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7450 if test -z "$ac_err"; then
7452 eval "ac_cv_header_$ac_safe=yes"
7455 echo "configure: failed program was:" >&5
7456 cat conftest.$ac_ext >&5
7458 eval "ac_cv_header_$ac_safe=no"
7461 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7462 echo "$ac_t""yes" 1>&6
7465 echo "$ac_t""no" 1>&6
7469 test -z "$with_cde" && {
7470 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
7471 echo "configure:7472: checking for DtDndDragStart in -lDtSvc" >&5
7472 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
7474 xe_check_libs=" -lDtSvc "
7475 cat > conftest.$ac_ext <<EOF
7476 #line 7477 "configure"
7477 #include "confdefs.h"
7478 /* Override any gcc2 internal prototype to avoid an error. */
7479 /* We use char because int might match the return type of a gcc2
7480 builtin and then its argument prototype would still apply. */
7481 char DtDndDragStart();
7487 if { (eval echo configure:7488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7489 eval "ac_cv_lib_$ac_lib_var=yes"
7491 echo "configure: failed program was:" >&5
7492 cat conftest.$ac_ext >&5
7494 eval "ac_cv_lib_$ac_lib_var=no"
7499 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7500 echo "$ac_t""yes" 1>&6
7503 echo "$ac_t""no" 1>&6
7508 test -z "$with_cde" && with_cde=yes
7509 if test "$with_dragndrop" = no; then
7510 echo "configure: warning: No CDE without generic Drag'n'Drop support" 1>&2
7513 if test "$with_cde" = "yes" ; then
7514 { test "$extra_verbose" = "yes" && cat << \EOF
7517 cat >> confdefs.h <<\EOF
7522 libs_x="-lDtSvc $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lDtSvc\" to \$libs_x"; fi
7523 dragndrop_proto="$dragndrop_proto CDE" && if test "$extra_verbose" = "yes"; then echo " Appending \"CDE\" to \$dragndrop_proto"; fi
7524 with_tooltalk=yes # CDE requires Tooltalk
7525 need_motif=yes # CDE requires Motif
7528 test "$window_system" != "x11" && with_offix=no
7529 if test "$with_xmu" != yes -a "$with_x11" = yes; then
7530 echo "configure: warning: No OffiX without real Xmu support" 1>&2
7533 if test "$with_dragndrop" = no; then
7534 echo "configure: warning: No OffiX without generic Drag'n'Drop support" 1>&2
7537 if test "$with_cde" = yes; then
7538 echo "configure: warning: CDE already found, disabling OffiX support" 1>&2
7541 test -z "$with_offix" && with_offix=no
7542 if test "$with_offix" = "yes"; then
7543 { test "$extra_verbose" = "yes" && cat << \EOF
7544 Defining HAVE_OFFIX_DND
7546 cat >> confdefs.h <<\EOF
7547 #define HAVE_OFFIX_DND 1
7551 dnd_objs="$dnd_objs offix.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"offix.o\" to \$dnd_objs"; fi
7552 dragndrop_proto="$dragndrop_proto OffiX" && if test "$extra_verbose" = "yes"; then echo " Appending \"OffiX\" to \$dragndrop_proto"; fi
7554 if test "$with_gtk" = "yes"; then
7555 dragndrop_proto="$dragndrop_proto GTK" && if test "$extra_verbose" = "yes"; then echo " Appending \"GTK\" to \$dragndrop_proto"; fi
7558 if test "$with_dragndrop" != "no" ; then
7559 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6
7560 echo "configure:7561: checking if drag and drop API is needed" >&5
7561 if test -n "$dragndrop_proto" ; then
7563 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6
7564 { test "$extra_verbose" = "yes" && cat << \EOF
7565 Defining HAVE_DRAGNDROP
7567 cat >> confdefs.h <<\EOF
7568 #define HAVE_DRAGNDROP 1
7572 extra_objs="$extra_objs dragdrop.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"dragdrop.o\" to \$extra_objs"; fi
7575 echo "$ac_t""no" 1>&6
7579 echo "checking for LDAP" 1>&6
7580 echo "configure:7581: checking for LDAP" >&5
7581 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'`
7582 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6
7583 echo "configure:7584: checking for ldap.h" >&5
7585 cat > conftest.$ac_ext <<EOF
7586 #line 7587 "configure"
7587 #include "confdefs.h"
7590 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7591 { (eval echo configure:7592: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7592 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7593 if test -z "$ac_err"; then
7595 eval "ac_cv_header_$ac_safe=yes"
7598 echo "configure: failed program was:" >&5
7599 cat conftest.$ac_ext >&5
7601 eval "ac_cv_header_$ac_safe=no"
7604 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7605 echo "$ac_t""yes" 1>&6
7608 echo "$ac_t""no" 1>&6
7612 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'`
7613 echo $ac_n "checking for lber.h""... $ac_c" 1>&6
7614 echo "configure:7615: checking for lber.h" >&5
7616 cat > conftest.$ac_ext <<EOF
7617 #line 7618 "configure"
7618 #include "confdefs.h"
7621 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7622 { (eval echo configure:7623: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7623 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7624 if test -z "$ac_err"; then
7626 eval "ac_cv_header_$ac_safe=yes"
7629 echo "configure: failed program was:" >&5
7630 cat conftest.$ac_ext >&5
7632 eval "ac_cv_header_$ac_safe=no"
7635 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7636 echo "$ac_t""yes" 1>&6
7639 echo "$ac_t""no" 1>&6
7643 if test "$with_ldap" != "no"; then
7645 echo $ac_n "checking for ldap_search in -lldap""... $ac_c" 1>&6
7646 echo "configure:7647: checking for ldap_search in -lldap" >&5
7647 ac_lib_var=`echo ldap'_'ldap_search | sed 'y%./+-%__p_%'`
7649 xe_check_libs=" -lldap "
7650 cat > conftest.$ac_ext <<EOF
7651 #line 7652 "configure"
7652 #include "confdefs.h"
7653 /* Override any gcc2 internal prototype to avoid an error. */
7654 /* We use char because int might match the return type of a gcc2
7655 builtin and then its argument prototype would still apply. */
7662 if { (eval echo configure:7663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7664 eval "ac_cv_lib_$ac_lib_var=yes"
7666 echo "configure: failed program was:" >&5
7667 cat conftest.$ac_ext >&5
7669 eval "ac_cv_lib_$ac_lib_var=no"
7674 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7675 echo "$ac_t""yes" 1>&6
7676 with_ldap_nolber=yes
7678 echo "$ac_t""no" 1>&6
7683 test "$with_ldap_nolber" = "no" && {
7684 xe_msg_checking="for ldap_open in -lldap"
7685 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber"
7686 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7687 echo "configure:7688: checking "$xe_msg_checking"" >&5
7688 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7690 xe_check_libs=" -lldap -llber"
7691 cat > conftest.$ac_ext <<EOF
7692 #line 7693 "configure"
7693 #include "confdefs.h"
7694 /* Override any gcc2 internal prototype to avoid an error. */
7695 /* We use char because int might match the return type of a gcc2
7696 builtin and then its argument prototype would still apply. */
7703 if { (eval echo configure:7704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7705 eval "ac_cv_lib_$ac_lib_var=yes"
7707 echo "configure: failed program was:" >&5
7708 cat conftest.$ac_ext >&5
7710 eval "ac_cv_lib_$ac_lib_var=no"
7715 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7716 echo "$ac_t""yes" 1>&6
7719 echo "$ac_t""no" 1>&6
7724 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" && {
7725 xe_msg_checking="for ldap_open in -lldap"
7726 test -n "-llber -lkrb" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb"
7727 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7728 echo "configure:7729: checking "$xe_msg_checking"" >&5
7729 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7731 xe_check_libs=" -lldap -llber -lkrb"
7732 cat > conftest.$ac_ext <<EOF
7733 #line 7734 "configure"
7734 #include "confdefs.h"
7735 /* Override any gcc2 internal prototype to avoid an error. */
7736 /* We use char because int might match the return type of a gcc2
7737 builtin and then its argument prototype would still apply. */
7744 if { (eval echo configure:7745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7746 eval "ac_cv_lib_$ac_lib_var=yes"
7748 echo "configure: failed program was:" >&5
7749 cat conftest.$ac_ext >&5
7751 eval "ac_cv_lib_$ac_lib_var=no"
7756 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7757 echo "$ac_t""yes" 1>&6
7760 echo "$ac_t""no" 1>&6
7765 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" -a "$with_ldap_krb" = "no" && {
7766 xe_msg_checking="for ldap_open in -lldap"
7767 test -n "-llber -lkrb -ldes" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb -ldes"
7768 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7769 echo "configure:7770: checking "$xe_msg_checking"" >&5
7770 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7772 xe_check_libs=" -lldap -llber -lkrb -ldes"
7773 cat > conftest.$ac_ext <<EOF
7774 #line 7775 "configure"
7775 #include "confdefs.h"
7776 /* Override any gcc2 internal prototype to avoid an error. */
7777 /* We use char because int might match the return type of a gcc2
7778 builtin and then its argument prototype would still apply. */
7785 if { (eval echo configure:7786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7787 eval "ac_cv_lib_$ac_lib_var=yes"
7789 echo "configure: failed program was:" >&5
7790 cat conftest.$ac_ext >&5
7792 eval "ac_cv_lib_$ac_lib_var=no"
7797 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7798 echo "$ac_t""yes" 1>&6
7799 with_ldap_krbdes=yes
7801 echo "$ac_t""no" 1>&6
7806 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
7808 if test "$with_ldap" = "yes"; then
7809 { test "$extra_verbose" = "yes" && cat << \EOF
7812 cat >> confdefs.h <<\EOF
7817 extra_objs="$extra_objs eldap.o" && if test "$extra_verbose" = "yes"; then
7818 echo " xemacs will be linked with \"eldap.o\""
7820 if test "$with_ldap_nolber" = "yes" ; then
7821 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
7823 if test "$with_ldap_krb" = "yes" ; then
7824 LIBS="-lkrb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$LIBS"; fi
7826 if test "$with_ldap_krbdes" = "yes" ; then
7827 LIBS="-ldes $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldes\" to \$LIBS"; fi
7828 LIBS="-lkrb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$LIBS"; fi
7830 LIBS="-llber $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-llber\" to \$LIBS"; fi
7831 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
7833 for ac_func in ldap_set_option ldap_get_lderrno ldap_result2error ldap_parse_result
7835 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7836 echo "configure:7837: checking for $ac_func" >&5
7838 cat > conftest.$ac_ext <<EOF
7839 #line 7840 "configure"
7840 #include "confdefs.h"
7841 /* System header to define __stub macros and hopefully few prototypes,
7842 which can conflict with char $ac_func(); below. */
7844 /* Override any gcc2 internal prototype to avoid an error. */
7845 /* We use char because int might match the return type of a gcc2
7846 builtin and then its argument prototype would still apply. */
7851 /* The GNU C library defines this for functions which it implements
7852 to always fail with ENOSYS. Some functions are actually named
7853 something starting with __ and the normal name is an alias. */
7854 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7862 if { (eval echo configure:7863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7864 eval "ac_cv_func_$ac_func=yes"
7866 echo "configure: failed program was:" >&5
7867 cat conftest.$ac_ext >&5
7869 eval "ac_cv_func_$ac_func=no"
7873 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7874 echo "$ac_t""yes" 1>&6
7875 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7876 { test "$extra_verbose" = "yes" && cat << EOF
7877 Defining $ac_tr_func
7879 cat >> confdefs.h <<EOF
7880 #define $ac_tr_func 1
7885 echo "$ac_t""no" 1>&6
7891 if test "$with_postgresql" != "no"; then
7892 echo "checking for PostgreSQL" 1>&6
7893 echo "configure:7894: checking for PostgreSQL" >&5
7895 for header_dir in "" "pgsql/" "postgresql/"; do
7896 ac_safe=`echo "${header_dir}libpq-fe.h" | sed 'y%./+-%__p_%'`
7897 echo $ac_n "checking for ${header_dir}libpq-fe.h""... $ac_c" 1>&6
7898 echo "configure:7899: checking for ${header_dir}libpq-fe.h" >&5
7900 cat > conftest.$ac_ext <<EOF
7901 #line 7902 "configure"
7902 #include "confdefs.h"
7903 #include <${header_dir}libpq-fe.h>
7905 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7906 { (eval echo configure:7907: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7907 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7908 if test -z "$ac_err"; then
7910 eval "ac_cv_header_$ac_safe=yes"
7913 echo "configure: failed program was:" >&5
7914 cat conftest.$ac_ext >&5
7916 eval "ac_cv_header_$ac_safe=no"
7919 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7920 echo "$ac_t""yes" 1>&6
7921 libpq_fe_h_file=${header_dir}libpq-fe.h; break
7923 echo "$ac_t""no" 1>&6
7928 test -n "$libpq_fe_h_file" && {
7929 echo $ac_n "checking for PQconnectdb in -lpq""... $ac_c" 1>&6
7930 echo "configure:7931: checking for PQconnectdb in -lpq" >&5
7931 ac_lib_var=`echo pq'_'PQconnectdb | sed 'y%./+-%__p_%'`
7933 xe_check_libs=" -lpq "
7934 cat > conftest.$ac_ext <<EOF
7935 #line 7936 "configure"
7936 #include "confdefs.h"
7937 /* Override any gcc2 internal prototype to avoid an error. */
7938 /* We use char because int might match the return type of a gcc2
7939 builtin and then its argument prototype would still apply. */
7946 if { (eval echo configure:7947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7948 eval "ac_cv_lib_$ac_lib_var=yes"
7950 echo "configure: failed program was:" >&5
7951 cat conftest.$ac_ext >&5
7953 eval "ac_cv_lib_$ac_lib_var=no"
7958 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7959 echo "$ac_t""yes" 1>&6
7962 echo "$ac_t""no" 1>&6
7967 if test -n "$libpq_fe_h_file" -a "$have_libpq" = "yes"; then
7969 { test "$extra_verbose" = "yes" && cat << \EOF
7970 Defining HAVE_POSTGRESQL
7972 cat >> confdefs.h <<\EOF
7973 #define HAVE_POSTGRESQL 1
7978 echo $ac_n "checking for PQconnectStart in -lpq""... $ac_c" 1>&6
7979 echo "configure:7980: checking for PQconnectStart in -lpq" >&5
7980 ac_lib_var=`echo pq'_'PQconnectStart | sed 'y%./+-%__p_%'`
7982 xe_check_libs=" -lpq "
7983 cat > conftest.$ac_ext <<EOF
7984 #line 7985 "configure"
7985 #include "confdefs.h"
7986 /* Override any gcc2 internal prototype to avoid an error. */
7987 /* We use char because int might match the return type of a gcc2
7988 builtin and then its argument prototype would still apply. */
7989 char PQconnectStart();
7995 if { (eval echo configure:7996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7997 eval "ac_cv_lib_$ac_lib_var=yes"
7999 echo "configure: failed program was:" >&5
8000 cat conftest.$ac_ext >&5
8002 eval "ac_cv_lib_$ac_lib_var=no"
8007 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8008 echo "$ac_t""yes" 1>&6
8009 with_postgresqlv7=yes;
8010 { test "$extra_verbose" = "yes" && cat << \EOF
8011 Defining HAVE_POSTGRESQLV7
8013 cat >> confdefs.h <<\EOF
8014 #define HAVE_POSTGRESQLV7 1
8019 echo "$ac_t""no" 1>&6
8023 { test "$extra_verbose" = "yes" && cat << EOF
8024 Defining LIBPQ_FE_H_FILE = "$libpq_fe_h_file"
8026 cat >> confdefs.h <<EOF
8027 #define LIBPQ_FE_H_FILE "$libpq_fe_h_file"
8031 LIBS="-lpq $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpq\" to \$LIBS"; fi
8032 extra_objs="$extra_objs postgresql.o" && if test "$extra_verbose" = "yes"; then
8033 echo " xemacs will be linked with \"postgresql.o\""
8035 elif test "$with_postgresql" = "yes"; then
8036 { echo "Error:" "Required PostgreSQL support cannot be provided. Check --site-prefixes." >&2; exit 1; }
8041 if test "$window_system" != "none"; then
8042 echo "checking for graphics libraries" 1>&6
8043 echo "configure:8044: checking for graphics libraries" >&5
8049 cygwin_top=`eval "gcc -print-file-name=libc.a"` ;
8050 cygwin_top=`eval "dirname ${cygwin_top}"`;
8051 cygwin_top="${cygwin_top}/..";
8052 case "$window_system" in
8054 msw) libpath_xpm="-L${cygwin_top}/lib/noX"
8055 incpath_xpm="-I${cygwin_top}/include/noX"
8065 if test -z "$with_xpm"; then
8066 CFLAGS=""$incpath_xpm" $CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$incpath_xpm"\" to \$CFLAGS"; fi
8067 LDFLAGS=""$libpath_xpm" $LDFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libpath_xpm"\" to \$LDFLAGS"; fi
8068 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6
8069 echo "configure:8070: checking for Xpm - no older than 3.4f" >&5
8071 cat > conftest.$ac_ext <<EOF
8072 #line 8073 "configure"
8073 #include "confdefs.h"
8075 #include <X11/xpm.h>
8076 int main(int c, char **v) {
8078 XpmIncludeVersion != XpmLibraryVersion() ? 1 :
8079 XpmIncludeVersion < 30406 ? 2 : 0 ;}
8081 if { (eval echo configure:8082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
8083 ./conftest dummy_arg; xpm_status=$?;
8084 if test "$xpm_status" = "0"; then
8088 if test "$xpm_status" = "1"; then
8089 xpm_problem="Xpm library version and header file version don't match!"
8090 elif test "$xpm_status" = "2"; then
8091 xpm_problem="Xpm library version is too old!"
8093 xpm_problem="Internal xpm detection logic error!"
8096 *** WARNING *** $xpm_problem
8097 I'm not touching that with a 10-foot pole!
8098 If you really want to use the installed version of Xpm, rerun
8099 configure and add '--with-xpm=yes', but don't blame me if XEmacs crashes!"
8103 echo "configure: failed program was:" >&5
8104 cat conftest.$ac_ext >&5
8110 echo "$ac_t""$with_xpm" 1>&6
8112 if test "$with_xpm" = "yes"; then
8113 { test "$extra_verbose" = "yes" && cat << \EOF
8116 cat >> confdefs.h <<\EOF
8121 LDFLAGS=""$libpath_xpm" $LDFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libpath_xpm"\" to \$LDFLAGS"; fi
8122 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
8123 CFLAGS=""$incpath_xpm" $CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$incpath_xpm"\" to \$CFLAGS"; fi
8124 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6
8125 echo "configure:8126: checking for \"FOR_MSW\" xpm" >&5
8127 cat > conftest.$ac_ext <<EOF
8128 #line 8129 "configure"
8129 #include "confdefs.h"
8132 XpmCreatePixmapFromData()
8135 if { (eval echo configure:8136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8139 echo "configure: failed program was:" >&5
8140 cat conftest.$ac_ext >&5
8146 echo "$ac_t""$xpm_for_msw" 1>&6
8147 if test "$xpm_for_msw" = "yes"; then
8148 { test "$extra_verbose" = "yes" && cat << \EOF
8151 cat >> confdefs.h <<\EOF
8159 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
8160 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
8161 echo "configure:8162: checking for compface.h" >&5
8163 cat > conftest.$ac_ext <<EOF
8164 #line 8165 "configure"
8165 #include "confdefs.h"
8166 #include <compface.h>
8168 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8169 { (eval echo configure:8170: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8170 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8171 if test -z "$ac_err"; then
8173 eval "ac_cv_header_$ac_safe=yes"
8176 echo "configure: failed program was:" >&5
8177 cat conftest.$ac_ext >&5
8179 eval "ac_cv_header_$ac_safe=no"
8182 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8183 echo "$ac_t""yes" 1>&6
8186 echo "$ac_t""no" 1>&6
8190 test -z "$with_xface" && {
8191 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
8192 echo "configure:8193: checking for UnGenFace in -lcompface" >&5
8193 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
8195 xe_check_libs=" -lcompface "
8196 cat > conftest.$ac_ext <<EOF
8197 #line 8198 "configure"
8198 #include "confdefs.h"
8199 /* Override any gcc2 internal prototype to avoid an error. */
8200 /* We use char because int might match the return type of a gcc2
8201 builtin and then its argument prototype would still apply. */
8208 if { (eval echo configure:8209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8210 eval "ac_cv_lib_$ac_lib_var=yes"
8212 echo "configure: failed program was:" >&5
8213 cat conftest.$ac_ext >&5
8215 eval "ac_cv_lib_$ac_lib_var=no"
8220 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8221 echo "$ac_t""yes" 1>&6
8224 echo "$ac_t""no" 1>&6
8229 test -z "$with_xface" && with_xface=yes
8230 if test "$with_xface" = "yes"; then
8231 { test "$extra_verbose" = "yes" && cat << \EOF
8234 cat >> confdefs.h <<\EOF
8235 #define HAVE_XFACE 1
8239 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi
8242 if test "$with_gif" != "no"; then
8244 { test "$extra_verbose" = "yes" && cat << \EOF
8247 cat >> confdefs.h <<\EOF
8252 extra_objs="$extra_objs dgif_lib.o gif_io.o" && if test "$extra_verbose" = "yes"; then
8253 echo " xemacs will be linked with \"dgif_lib.o gif_io.o\""
8257 if test "$with_png $with_tiff" != "no no"; then
8259 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6
8260 echo "configure:8261: checking for inflate in -lc" >&5
8261 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'`
8263 xe_check_libs=" -lc "
8264 cat > conftest.$ac_ext <<EOF
8265 #line 8266 "configure"
8266 #include "confdefs.h"
8267 /* Override any gcc2 internal prototype to avoid an error. */
8268 /* We use char because int might match the return type of a gcc2
8269 builtin and then its argument prototype would still apply. */
8276 if { (eval echo configure:8277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8278 eval "ac_cv_lib_$ac_lib_var=yes"
8280 echo "configure: failed program was:" >&5
8281 cat conftest.$ac_ext >&5
8283 eval "ac_cv_lib_$ac_lib_var=no"
8288 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8289 echo "$ac_t""yes" 1>&6
8292 echo "$ac_t""no" 1>&6
8294 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
8295 echo "configure:8296: checking for inflate in -lz" >&5
8296 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
8298 xe_check_libs=" -lz "
8299 cat > conftest.$ac_ext <<EOF
8300 #line 8301 "configure"
8301 #include "confdefs.h"
8302 /* Override any gcc2 internal prototype to avoid an error. */
8303 /* We use char because int might match the return type of a gcc2
8304 builtin and then its argument prototype would still apply. */
8311 if { (eval echo configure:8312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8313 eval "ac_cv_lib_$ac_lib_var=yes"
8315 echo "configure: failed program was:" >&5
8316 cat conftest.$ac_ext >&5
8318 eval "ac_cv_lib_$ac_lib_var=no"
8323 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8324 echo "$ac_t""yes" 1>&6
8325 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi
8327 echo "$ac_t""no" 1>&6
8329 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6
8330 echo "configure:8331: checking for inflate in -lgz" >&5
8331 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'`
8333 xe_check_libs=" -lgz "
8334 cat > conftest.$ac_ext <<EOF
8335 #line 8336 "configure"
8336 #include "confdefs.h"
8337 /* Override any gcc2 internal prototype to avoid an error. */
8338 /* We use char because int might match the return type of a gcc2
8339 builtin and then its argument prototype would still apply. */
8346 if { (eval echo configure:8347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8348 eval "ac_cv_lib_$ac_lib_var=yes"
8350 echo "configure: failed program was:" >&5
8351 cat conftest.$ac_ext >&5
8353 eval "ac_cv_lib_$ac_lib_var=no"
8358 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8359 echo "$ac_t""yes" 1>&6
8360 libs_x="-lgz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgz\" to \$libs_x"; fi
8362 echo "$ac_t""no" 1>&6
8374 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
8375 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
8376 echo "configure:8377: checking for jpeglib.h" >&5
8378 cat > conftest.$ac_ext <<EOF
8379 #line 8380 "configure"
8380 #include "confdefs.h"
8381 #include <jpeglib.h>
8383 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8384 { (eval echo configure:8385: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8385 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8386 if test -z "$ac_err"; then
8388 eval "ac_cv_header_$ac_safe=yes"
8391 echo "configure: failed program was:" >&5
8392 cat conftest.$ac_ext >&5
8394 eval "ac_cv_header_$ac_safe=no"
8397 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8398 echo "$ac_t""yes" 1>&6
8401 echo "$ac_t""no" 1>&6
8405 test -z "$with_jpeg" && {
8406 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6
8407 echo "configure:8408: checking for jpeg_destroy_decompress in -ljpeg" >&5
8408 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'`
8410 xe_check_libs=" -ljpeg "
8411 cat > conftest.$ac_ext <<EOF
8412 #line 8413 "configure"
8413 #include "confdefs.h"
8414 /* Override any gcc2 internal prototype to avoid an error. */
8415 /* We use char because int might match the return type of a gcc2
8416 builtin and then its argument prototype would still apply. */
8417 char jpeg_destroy_decompress();
8420 jpeg_destroy_decompress()
8423 if { (eval echo configure:8424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8425 eval "ac_cv_lib_$ac_lib_var=yes"
8427 echo "configure: failed program was:" >&5
8428 cat conftest.$ac_ext >&5
8430 eval "ac_cv_lib_$ac_lib_var=no"
8435 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8436 echo "$ac_t""yes" 1>&6
8439 echo "$ac_t""no" 1>&6
8444 test -z "$with_jpeg" && with_jpeg=yes
8445 if test "$with_jpeg" = "yes"; then
8446 { test "$extra_verbose" = "yes" && cat << \EOF
8449 cat >> confdefs.h <<\EOF
8454 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi
8458 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6
8459 echo "configure:8460: checking for pow" >&5
8461 cat > conftest.$ac_ext <<EOF
8462 #line 8463 "configure"
8463 #include "confdefs.h"
8464 /* System header to define __stub macros and hopefully few prototypes,
8465 which can conflict with char pow(); below. */
8467 /* Override any gcc2 internal prototype to avoid an error. */
8468 /* We use char because int might match the return type of a gcc2
8469 builtin and then its argument prototype would still apply. */
8474 /* The GNU C library defines this for functions which it implements
8475 to always fail with ENOSYS. Some functions are actually named
8476 something starting with __ and the normal name is an alias. */
8477 #if defined (__stub_pow) || defined (__stub___pow)
8485 if { (eval echo configure:8486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8487 eval "ac_cv_func_pow=yes"
8489 echo "configure: failed program was:" >&5
8490 cat conftest.$ac_ext >&5
8492 eval "ac_cv_func_pow=no"
8496 if eval "test \"`echo '$ac_cv_func_'pow`\" = yes"; then
8497 echo "$ac_t""yes" 1>&6
8500 echo "$ac_t""no" 1>&6
8504 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
8505 echo $ac_n "checking for png.h""... $ac_c" 1>&6
8506 echo "configure:8507: checking for png.h" >&5
8508 cat > conftest.$ac_ext <<EOF
8509 #line 8510 "configure"
8510 #include "confdefs.h"
8513 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8514 { (eval echo configure:8515: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8515 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8516 if test -z "$ac_err"; then
8518 eval "ac_cv_header_$ac_safe=yes"
8521 echo "configure: failed program was:" >&5
8522 cat conftest.$ac_ext >&5
8524 eval "ac_cv_header_$ac_safe=no"
8527 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8528 echo "$ac_t""yes" 1>&6
8531 echo "$ac_t""no" 1>&6
8535 test -z "$with_png" && {
8536 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6
8537 echo "configure:8538: checking for png_read_image in -lpng" >&5
8538 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
8540 xe_check_libs=" -lpng "
8541 cat > conftest.$ac_ext <<EOF
8542 #line 8543 "configure"
8543 #include "confdefs.h"
8544 /* Override any gcc2 internal prototype to avoid an error. */
8545 /* We use char because int might match the return type of a gcc2
8546 builtin and then its argument prototype would still apply. */
8547 char png_read_image();
8553 if { (eval echo configure:8554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8555 eval "ac_cv_lib_$ac_lib_var=yes"
8557 echo "configure: failed program was:" >&5
8558 cat conftest.$ac_ext >&5
8560 eval "ac_cv_lib_$ac_lib_var=no"
8565 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8566 echo "$ac_t""yes" 1>&6
8569 echo "$ac_t""no" 1>&6
8574 if test -z "$with_png"; then
8575 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6
8576 echo "configure:8577: checking for workable png version information" >&5
8577 xe_check_libs="-lpng -lz"
8578 cat > conftest.$ac_ext <<EOF
8579 #line 8580 "configure"
8580 #include "confdefs.h"
8582 int main(int c, char **v) {
8583 if (c == 1) return 0;
8584 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1;
8585 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;}
8587 if { (eval echo configure:8588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
8589 ./conftest dummy_arg; png_status=$?;
8590 if test "$png_status" = "0"; then
8594 if test "$png_status" = "1"; then
8595 png_problem="PNG library version and header file don't match!"
8596 elif test "$png_status" = "2"; then
8597 png_problem="PNG library version too old (pre 1.0.2)!"
8600 *** WARNING *** $png_problem
8601 I'm not touching that with a 10-foot pole!
8602 If you really want to use the installed version of libPNG, rerun
8603 configure and add '--with-png=yes', but don't blame me if XEmacs crashes!"
8607 echo "configure: failed program was:" >&5
8608 cat conftest.$ac_ext >&5
8614 echo "$ac_t""$with_png" 1>&6
8616 if test "$with_png" = "yes"; then
8617 { test "$extra_verbose" = "yes" && cat << \EOF
8620 cat >> confdefs.h <<\EOF
8625 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi
8628 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
8629 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
8630 echo "configure:8631: checking for tiffio.h" >&5
8632 cat > conftest.$ac_ext <<EOF
8633 #line 8634 "configure"
8634 #include "confdefs.h"
8637 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8638 { (eval echo configure:8639: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8639 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8640 if test -z "$ac_err"; then
8642 eval "ac_cv_header_$ac_safe=yes"
8645 echo "configure: failed program was:" >&5
8646 cat conftest.$ac_ext >&5
8648 eval "ac_cv_header_$ac_safe=no"
8651 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8652 echo "$ac_t""yes" 1>&6
8655 echo "$ac_t""no" 1>&6
8659 test -z "$with_tiff" && {
8660 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6
8661 echo "configure:8662: checking for TIFFClientOpen in -ltiff" >&5
8662 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'`
8664 xe_check_libs=" -ltiff "
8665 cat > conftest.$ac_ext <<EOF
8666 #line 8667 "configure"
8667 #include "confdefs.h"
8668 /* Override any gcc2 internal prototype to avoid an error. */
8669 /* We use char because int might match the return type of a gcc2
8670 builtin and then its argument prototype would still apply. */
8671 char TIFFClientOpen();
8677 if { (eval echo configure:8678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8679 eval "ac_cv_lib_$ac_lib_var=yes"
8681 echo "configure: failed program was:" >&5
8682 cat conftest.$ac_ext >&5
8684 eval "ac_cv_lib_$ac_lib_var=no"
8689 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8690 echo "$ac_t""yes" 1>&6
8693 echo "$ac_t""no" 1>&6
8698 test -z "$with_tiff" && with_tiff=yes
8699 if test "$with_tiff" = "yes"; then
8700 { test "$extra_verbose" = "yes" && cat << \EOF
8703 cat >> confdefs.h <<\EOF
8708 libs_x="-ltiff $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltiff\" to \$libs_x"; fi
8713 if test "$with_gtk" = "yes"; then
8714 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
8715 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
8716 echo "configure:8717: checking for compface.h" >&5
8718 cat > conftest.$ac_ext <<EOF
8719 #line 8720 "configure"
8720 #include "confdefs.h"
8721 #include <compface.h>
8723 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8724 { (eval echo configure:8725: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8725 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8726 if test -z "$ac_err"; then
8728 eval "ac_cv_header_$ac_safe=yes"
8731 echo "configure: failed program was:" >&5
8732 cat conftest.$ac_ext >&5
8734 eval "ac_cv_header_$ac_safe=no"
8737 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8738 echo "$ac_t""yes" 1>&6
8741 echo "$ac_t""no" 1>&6
8745 test -z "$with_xface" && {
8746 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
8747 echo "configure:8748: checking for UnGenFace in -lcompface" >&5
8748 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
8750 xe_check_libs=" -lcompface "
8751 cat > conftest.$ac_ext <<EOF
8752 #line 8753 "configure"
8753 #include "confdefs.h"
8754 /* Override any gcc2 internal prototype to avoid an error. */
8755 /* We use char because int might match the return type of a gcc2
8756 builtin and then its argument prototype would still apply. */
8763 if { (eval echo configure:8764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8765 eval "ac_cv_lib_$ac_lib_var=yes"
8767 echo "configure: failed program was:" >&5
8768 cat conftest.$ac_ext >&5
8770 eval "ac_cv_lib_$ac_lib_var=no"
8775 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8776 echo "$ac_t""yes" 1>&6
8779 echo "$ac_t""no" 1>&6
8784 test -z "$with_xface" && with_xface=yes
8785 if test "$with_xface" = "yes"; then
8786 { test "$extra_verbose" = "yes" && cat << \EOF
8789 cat >> confdefs.h <<\EOF
8790 #define HAVE_XFACE 1
8794 libs_gtk="-lcompface $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_gtk"; fi
8800 if test "$with_x11" = "yes"; then
8801 echo "checking for X11 graphics libraries" 1>&6
8802 echo "configure:8803: checking for X11 graphics libraries" >&5
8805 if test "$with_x11" = "yes" -a "$with_widgets" = "athena"; then
8806 echo "checking for the Athena widgets" 1>&6
8807 echo "configure:8808: checking for the Athena widgets" >&5
8809 case "$with_athena" in
8810 "xaw" | "") athena_variant=Xaw athena_3d=no ;;
8811 "3d") athena_variant=Xaw3d athena_3d=yes ;;
8812 "next") athena_variant=neXtaw athena_3d=yes ;;
8813 "95") athena_variant=Xaw95 athena_3d=yes ;;
8814 "xpm") athena_variant=XawXpm athena_3d=yes ;;
8815 *) { echo "Error:" "Unknown Athena widget set \`$with_athena'. This should not happen." >&2; exit 1; } ;;
8818 if test "$athena_3d" = "no"; then
8820 echo $ac_n "checking for XawScrollbarSetThumb in -l$athena_variant""... $ac_c" 1>&6
8821 echo "configure:8822: checking for XawScrollbarSetThumb in -l$athena_variant" >&5
8822 ac_lib_var=`echo $athena_variant'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
8824 xe_check_libs=" -l$athena_variant "
8825 cat > conftest.$ac_ext <<EOF
8826 #line 8827 "configure"
8827 #include "confdefs.h"
8828 /* Override any gcc2 internal prototype to avoid an error. */
8829 /* We use char because int might match the return type of a gcc2
8830 builtin and then its argument prototype would still apply. */
8831 char XawScrollbarSetThumb();
8834 XawScrollbarSetThumb()
8837 if { (eval echo configure:8838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8839 eval "ac_cv_lib_$ac_lib_var=yes"
8841 echo "configure: failed program was:" >&5
8842 cat conftest.$ac_ext >&5
8844 eval "ac_cv_lib_$ac_lib_var=no"
8849 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8850 echo "$ac_t""yes" 1>&6
8852 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
8853 echo "configure:8854: checking for threeDClassRec in -l$athena_variant" >&5
8854 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
8856 xe_check_libs=" -l$athena_variant "
8857 cat > conftest.$ac_ext <<EOF
8858 #line 8859 "configure"
8859 #include "confdefs.h"
8860 /* Override any gcc2 internal prototype to avoid an error. */
8861 /* We use char because int might match the return type of a gcc2
8862 builtin and then its argument prototype would still apply. */
8863 char threeDClassRec();
8869 if { (eval echo configure:8870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8871 eval "ac_cv_lib_$ac_lib_var=yes"
8873 echo "configure: failed program was:" >&5
8874 cat conftest.$ac_ext >&5
8876 eval "ac_cv_lib_$ac_lib_var=no"
8881 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8882 echo "$ac_t""yes" 1>&6
8883 echo "configure: warning: "Could not find a non-3d Athena widget library."" 1>&2
8885 echo "$ac_t""no" 1>&6
8886 athena_lib=$athena_variant
8892 echo "$ac_t""no" 1>&6
8893 echo "configure: warning: "Could not find an Athena widget library."" 1>&2
8899 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
8900 echo "configure:8901: checking for threeDClassRec in -l$athena_variant" >&5
8901 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
8903 xe_check_libs=" -l$athena_variant "
8904 cat > conftest.$ac_ext <<EOF
8905 #line 8906 "configure"
8906 #include "confdefs.h"
8907 /* Override any gcc2 internal prototype to avoid an error. */
8908 /* We use char because int might match the return type of a gcc2
8909 builtin and then its argument prototype would still apply. */
8910 char threeDClassRec();
8916 if { (eval echo configure:8917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8918 eval "ac_cv_lib_$ac_lib_var=yes"
8920 echo "configure: failed program was:" >&5
8921 cat conftest.$ac_ext >&5
8923 eval "ac_cv_lib_$ac_lib_var=no"
8928 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8929 echo "$ac_t""yes" 1>&6
8930 athena_lib=$athena_variant
8932 echo "$ac_t""no" 1>&6
8933 echo $ac_n "checking for threeDClassRec in -lXaw""... $ac_c" 1>&6
8934 echo "configure:8935: checking for threeDClassRec in -lXaw" >&5
8935 ac_lib_var=`echo Xaw'_'threeDClassRec | sed 'y%./+-%__p_%'`
8937 xe_check_libs=" -lXaw "
8938 cat > conftest.$ac_ext <<EOF
8939 #line 8940 "configure"
8940 #include "confdefs.h"
8941 /* Override any gcc2 internal prototype to avoid an error. */
8942 /* We use char because int might match the return type of a gcc2
8943 builtin and then its argument prototype would still apply. */
8944 char threeDClassRec();
8950 if { (eval echo configure:8951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8952 eval "ac_cv_lib_$ac_lib_var=yes"
8954 echo "configure: failed program was:" >&5
8955 cat conftest.$ac_ext >&5
8957 eval "ac_cv_lib_$ac_lib_var=no"
8962 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8963 echo "$ac_t""yes" 1>&6
8965 echo "configure: warning: "Assuming that libXaw is actually $athena_variant."" 1>&2;
8968 echo "$ac_t""no" 1>&6
8969 echo "configure: warning: "Could not find a 3d Athena widget library that looked like $athena_variant."" 1>&2
8978 if test "$athena_3d" = "no"; then
8979 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
8980 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
8981 echo "configure:8982: checking for X11/Xaw/ThreeD.h" >&5
8983 cat > conftest.$ac_ext <<EOF
8984 #line 8985 "configure"
8985 #include "confdefs.h"
8986 #include <X11/Xaw/ThreeD.h>
8988 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8989 { (eval echo configure:8990: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8990 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8991 if test -z "$ac_err"; then
8993 eval "ac_cv_header_$ac_safe=yes"
8996 echo "configure: failed program was:" >&5
8997 cat conftest.$ac_ext >&5
8999 eval "ac_cv_header_$ac_safe=no"
9002 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9003 echo "$ac_t""yes" 1>&6
9004 echo "configure: warning: "Could not find a non-3d Athena header set."" 1>&2
9006 echo "$ac_t""no" 1>&6
9007 ac_safe=`echo "X11/Xaw/XawInit.h" | sed 'y%./+-%__p_%'`
9008 echo $ac_n "checking for X11/Xaw/XawInit.h""... $ac_c" 1>&6
9009 echo "configure:9010: checking for X11/Xaw/XawInit.h" >&5
9011 cat > conftest.$ac_ext <<EOF
9012 #line 9013 "configure"
9013 #include "confdefs.h"
9014 #include <X11/Xaw/XawInit.h>
9016 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9017 { (eval echo configure:9018: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9018 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9019 if test -z "$ac_err"; then
9021 eval "ac_cv_header_$ac_safe=yes"
9024 echo "configure: failed program was:" >&5
9025 cat conftest.$ac_ext >&5
9027 eval "ac_cv_header_$ac_safe=no"
9030 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9031 echo "$ac_t""yes" 1>&6
9032 athena_h_path=X11/Xaw
9034 echo "$ac_t""no" 1>&6
9035 echo "configure: warning: "Could not find a non-3d Athena header set."" 1>&2
9041 ac_safe=`echo "X11/$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
9042 echo $ac_n "checking for X11/$athena_variant/XawInit.h""... $ac_c" 1>&6
9043 echo "configure:9044: checking for X11/$athena_variant/XawInit.h" >&5
9045 cat > conftest.$ac_ext <<EOF
9046 #line 9047 "configure"
9047 #include "confdefs.h"
9048 #include <X11/$athena_variant/XawInit.h>
9050 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9051 { (eval echo configure:9052: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9052 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9053 if test -z "$ac_err"; then
9055 eval "ac_cv_header_$ac_safe=yes"
9058 echo "configure: failed program was:" >&5
9059 cat conftest.$ac_ext >&5
9061 eval "ac_cv_header_$ac_safe=no"
9064 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9065 echo "$ac_t""yes" 1>&6
9066 ac_safe=`echo "X11/$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
9067 echo $ac_n "checking for X11/$athena_variant/ThreeD.h""... $ac_c" 1>&6
9068 echo "configure:9069: checking for X11/$athena_variant/ThreeD.h" >&5
9070 cat > conftest.$ac_ext <<EOF
9071 #line 9072 "configure"
9072 #include "confdefs.h"
9073 #include <X11/$athena_variant/ThreeD.h>
9075 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9076 { (eval echo configure:9077: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9077 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9078 if test -z "$ac_err"; then
9080 eval "ac_cv_header_$ac_safe=yes"
9083 echo "configure: failed program was:" >&5
9084 cat conftest.$ac_ext >&5
9086 eval "ac_cv_header_$ac_safe=no"
9089 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9090 echo "$ac_t""yes" 1>&6
9091 athena_h_path=X11/$athena_variant
9093 echo "$ac_t""no" 1>&6
9097 echo "$ac_t""no" 1>&6
9101 if test -z "$athena_h_path"; then
9102 ac_safe=`echo "$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
9103 echo $ac_n "checking for $athena_variant/XawInit.h""... $ac_c" 1>&6
9104 echo "configure:9105: checking for $athena_variant/XawInit.h" >&5
9106 cat > conftest.$ac_ext <<EOF
9107 #line 9108 "configure"
9108 #include "confdefs.h"
9109 #include <$athena_variant/XawInit.h>
9111 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9112 { (eval echo configure:9113: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9113 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9114 if test -z "$ac_err"; then
9116 eval "ac_cv_header_$ac_safe=yes"
9119 echo "configure: failed program was:" >&5
9120 cat conftest.$ac_ext >&5
9122 eval "ac_cv_header_$ac_safe=no"
9125 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9126 echo "$ac_t""yes" 1>&6
9127 ac_safe=`echo "$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
9128 echo $ac_n "checking for $athena_variant/ThreeD.h""... $ac_c" 1>&6
9129 echo "configure:9130: checking for $athena_variant/ThreeD.h" >&5
9131 cat > conftest.$ac_ext <<EOF
9132 #line 9133 "configure"
9133 #include "confdefs.h"
9134 #include <$athena_variant/ThreeD.h>
9136 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9137 { (eval echo configure:9138: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9138 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9139 if test -z "$ac_err"; then
9141 eval "ac_cv_header_$ac_safe=yes"
9144 echo "configure: failed program was:" >&5
9145 cat conftest.$ac_ext >&5
9147 eval "ac_cv_header_$ac_safe=no"
9150 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9151 echo "$ac_t""yes" 1>&6
9152 athena_h_path=$athena_variant
9154 echo "$ac_t""no" 1>&6
9158 echo "$ac_t""no" 1>&6
9163 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
9164 ac_safe=`echo "X11/Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
9165 echo $ac_n "checking for X11/Xaw3d/XawInit.h""... $ac_c" 1>&6
9166 echo "configure:9167: checking for X11/Xaw3d/XawInit.h" >&5
9168 cat > conftest.$ac_ext <<EOF
9169 #line 9170 "configure"
9170 #include "confdefs.h"
9171 #include <X11/Xaw3d/XawInit.h>
9173 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9174 { (eval echo configure:9175: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9175 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9176 if test -z "$ac_err"; then
9178 eval "ac_cv_header_$ac_safe=yes"
9181 echo "configure: failed program was:" >&5
9182 cat conftest.$ac_ext >&5
9184 eval "ac_cv_header_$ac_safe=no"
9187 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9188 echo "$ac_t""yes" 1>&6
9189 ac_safe=`echo "X11/Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
9190 echo $ac_n "checking for X11/Xaw3d/ThreeD.h""... $ac_c" 1>&6
9191 echo "configure:9192: checking for X11/Xaw3d/ThreeD.h" >&5
9193 cat > conftest.$ac_ext <<EOF
9194 #line 9195 "configure"
9195 #include "confdefs.h"
9196 #include <X11/Xaw3d/ThreeD.h>
9198 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9199 { (eval echo configure:9200: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9200 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9201 if test -z "$ac_err"; then
9203 eval "ac_cv_header_$ac_safe=yes"
9206 echo "configure: failed program was:" >&5
9207 cat conftest.$ac_ext >&5
9209 eval "ac_cv_header_$ac_safe=no"
9212 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9213 echo "$ac_t""yes" 1>&6
9215 echo "configure: warning: "Assuming that X11/Xaw3d headers are suitable for $athena_variant."" 1>&2
9216 athena_h_path=X11/Xaw3d
9219 echo "$ac_t""no" 1>&6
9223 echo "$ac_t""no" 1>&6
9228 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
9229 ac_safe=`echo "Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
9230 echo $ac_n "checking for Xaw3d/XawInit.h""... $ac_c" 1>&6
9231 echo "configure:9232: checking for Xaw3d/XawInit.h" >&5
9233 cat > conftest.$ac_ext <<EOF
9234 #line 9235 "configure"
9235 #include "confdefs.h"
9236 #include <Xaw3d/XawInit.h>
9238 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9239 { (eval echo configure:9240: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9240 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9241 if test -z "$ac_err"; then
9243 eval "ac_cv_header_$ac_safe=yes"
9246 echo "configure: failed program was:" >&5
9247 cat conftest.$ac_ext >&5
9249 eval "ac_cv_header_$ac_safe=no"
9252 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9253 echo "$ac_t""yes" 1>&6
9254 ac_safe=`echo "Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
9255 echo $ac_n "checking for Xaw3d/ThreeD.h""... $ac_c" 1>&6
9256 echo "configure:9257: checking for Xaw3d/ThreeD.h" >&5
9258 cat > conftest.$ac_ext <<EOF
9259 #line 9260 "configure"
9260 #include "confdefs.h"
9261 #include <Xaw3d/ThreeD.h>
9263 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9264 { (eval echo configure:9265: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9265 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9266 if test -z "$ac_err"; then
9268 eval "ac_cv_header_$ac_safe=yes"
9271 echo "configure: failed program was:" >&5
9272 cat conftest.$ac_ext >&5
9274 eval "ac_cv_header_$ac_safe=no"
9277 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9278 echo "$ac_t""yes" 1>&6
9280 echo "configure: warning: "Assuming that Xaw3d headers are suitable for $athena_variant."" 1>&2
9284 echo "$ac_t""no" 1>&6
9288 echo "$ac_t""no" 1>&6
9293 if test -z "$athena_h_path"; then
9294 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
9295 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
9296 echo "configure:9297: checking for X11/Xaw/ThreeD.h" >&5
9298 cat > conftest.$ac_ext <<EOF
9299 #line 9300 "configure"
9300 #include "confdefs.h"
9301 #include <X11/Xaw/ThreeD.h>
9303 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9304 { (eval echo configure:9305: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9305 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9306 if test -z "$ac_err"; then
9308 eval "ac_cv_header_$ac_safe=yes"
9311 echo "configure: failed program was:" >&5
9312 cat conftest.$ac_ext >&5
9314 eval "ac_cv_header_$ac_safe=no"
9317 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9318 echo "$ac_t""yes" 1>&6
9320 echo "configure: warning: "Assuming that X11/Xaw headers are suitable for $athena_variant."" 1>&2
9321 athena_h_path=X11/Xaw
9324 echo "$ac_t""no" 1>&6
9325 echo "configure: warning: "Could not find a suitable 3d Athena header set."" 1>&2
9331 if test -n "$athena_lib" -a -n "$athena_h_path"; then
9340 if test "$with_x11" = "yes"; then
9341 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
9342 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
9343 echo "configure:9344: checking for Xm/Xm.h" >&5
9345 cat > conftest.$ac_ext <<EOF
9346 #line 9347 "configure"
9347 #include "confdefs.h"
9350 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9351 { (eval echo configure:9352: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9352 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9353 if test -z "$ac_err"; then
9355 eval "ac_cv_header_$ac_safe=yes"
9358 echo "configure: failed program was:" >&5
9359 cat conftest.$ac_ext >&5
9361 eval "ac_cv_header_$ac_safe=no"
9364 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9365 echo "$ac_t""yes" 1>&6
9367 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
9368 echo "configure:9369: checking for XmStringFree in -lXm" >&5
9369 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
9371 xe_check_libs=" -lXm "
9372 cat > conftest.$ac_ext <<EOF
9373 #line 9374 "configure"
9374 #include "confdefs.h"
9375 /* Override any gcc2 internal prototype to avoid an error. */
9376 /* We use char because int might match the return type of a gcc2
9377 builtin and then its argument prototype would still apply. */
9378 char XmStringFree();
9384 if { (eval echo configure:9385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9386 eval "ac_cv_lib_$ac_lib_var=yes"
9388 echo "configure: failed program was:" >&5
9389 cat conftest.$ac_ext >&5
9391 eval "ac_cv_lib_$ac_lib_var=no"
9396 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9397 echo "$ac_t""yes" 1>&6
9400 echo "$ac_t""no" 1>&6
9406 echo "$ac_t""no" 1>&6
9411 if test "$have_motif" = "yes"; then
9412 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6
9413 echo "configure:9414: checking for Lesstif" >&5
9414 cat > conftest.$ac_ext <<EOF
9415 #line 9416 "configure"
9416 #include "confdefs.h"
9418 #ifdef LESSTIF_VERSION
9423 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9424 egrep "yes" >/dev/null 2>&1; then
9433 echo "$ac_t""$have_lesstif" 1>&6
9438 case "$with_menubars" in "" | "yes" | "athena" )
9439 with_menubars="lucid" ;;
9441 case "$with_dialogs" in "" | "yes" | "lucid" )
9442 if test "$have_motif" = "yes"; then with_dialogs="motif"
9443 elif test "$have_xaw" = "yes"; then with_dialogs="athena"
9444 else with_dialogs=no
9447 case "$with_scrollbars" in "" | "yes" )
9448 with_scrollbars="lucid" ;;
9450 case "$with_widgets" in "" | "yes" | "lucid")
9451 if test "$have_motif" = "yes"; then with_widgets="motif"
9452 elif test "$have_xaw" = "yes"; then with_widgets="athena"
9453 else with_widgets=no
9457 all_widgets="$with_menubars $with_scrollbars $with_dialogs $with_toolbars $with_widgets"
9459 case "$all_widgets" in
9461 if test "$have_xaw" != "yes"; then
9462 { echo "Error:" "Could not find a suitable Athena library to build with." >&2; exit 1; }
9465 lwlib_objs="$lwlib_objs lwlib-Xaw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xaw.o\" to \$lwlib_objs"; fi
9467 libs_x="-l$athena_lib $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$athena_lib\" to \$libs_x"; fi
9469 { test "$extra_verbose" = "yes" && cat << EOF
9470 Defining ATHENA_Scrollbar_h_ = "$athena_h_path/Scrollbar.h"
9472 cat >> confdefs.h <<EOF
9473 #define ATHENA_Scrollbar_h_ "$athena_h_path/Scrollbar.h"
9477 { test "$extra_verbose" = "yes" && cat << EOF
9478 Defining ATHENA_Dialog_h_ = "$athena_h_path/Dialog.h"
9480 cat >> confdefs.h <<EOF
9481 #define ATHENA_Dialog_h_ "$athena_h_path/Dialog.h"
9485 { test "$extra_verbose" = "yes" && cat << EOF
9486 Defining ATHENA_Form_h_ = "$athena_h_path/Form.h"
9488 cat >> confdefs.h <<EOF
9489 #define ATHENA_Form_h_ "$athena_h_path/Form.h"
9493 { test "$extra_verbose" = "yes" && cat << EOF
9494 Defining ATHENA_Command_h_ = "$athena_h_path/Command.h"
9496 cat >> confdefs.h <<EOF
9497 #define ATHENA_Command_h_ "$athena_h_path/Command.h"
9501 { test "$extra_verbose" = "yes" && cat << EOF
9502 Defining ATHENA_Label_h_ = "$athena_h_path/Label.h"
9504 cat >> confdefs.h <<EOF
9505 #define ATHENA_Label_h_ "$athena_h_path/Label.h"
9509 { test "$extra_verbose" = "yes" && cat << EOF
9510 Defining ATHENA_LabelP_h_ = "$athena_h_path/LabelP.h"
9512 cat >> confdefs.h <<EOF
9513 #define ATHENA_LabelP_h_ "$athena_h_path/LabelP.h"
9517 { test "$extra_verbose" = "yes" && cat << EOF
9518 Defining ATHENA_Toggle_h_ = "$athena_h_path/Toggle.h"
9520 cat >> confdefs.h <<EOF
9521 #define ATHENA_Toggle_h_ "$athena_h_path/Toggle.h"
9525 { test "$extra_verbose" = "yes" && cat << EOF
9526 Defining ATHENA_ToggleP_h_ = "$athena_h_path/ToggleP.h"
9528 cat >> confdefs.h <<EOF
9529 #define ATHENA_ToggleP_h_ "$athena_h_path/ToggleP.h"
9533 { test "$extra_verbose" = "yes" && cat << EOF
9534 Defining ATHENA_AsciiText_h_ = "$athena_h_path/AsciiText.h"
9536 cat >> confdefs.h <<EOF
9537 #define ATHENA_AsciiText_h_ "$athena_h_path/AsciiText.h"
9541 { test "$extra_verbose" = "yes" && cat << EOF
9542 Defining ATHENA_XawInit_h_ = "$athena_h_path/XawInit.h"
9544 cat >> confdefs.h <<EOF
9545 #define ATHENA_XawInit_h_ "$athena_h_path/XawInit.h"
9550 { test "$extra_verbose" = "yes" && cat << \EOF
9551 Defining LWLIB_USES_ATHENA
9553 cat >> confdefs.h <<\EOF
9554 #define LWLIB_USES_ATHENA 1
9558 { test "$extra_verbose" = "yes" && cat << \EOF
9559 Defining NEED_ATHENA
9561 cat >> confdefs.h <<\EOF
9562 #define NEED_ATHENA 1
9568 if test "$athena_3d" = "yes"; then
9569 { test "$extra_verbose" = "yes" && cat << \EOF
9570 Defining HAVE_ATHENA_3D
9572 cat >> confdefs.h <<\EOF
9573 #define HAVE_ATHENA_3D 1
9581 case "$all_widgets" in *motif* )
9582 { test "$extra_verbose" = "yes" && cat << \EOF
9583 Defining LWLIB_USES_MOTIF
9585 cat >> confdefs.h <<\EOF
9586 #define LWLIB_USES_MOTIF 1
9590 { test "$extra_verbose" = "yes" && cat << \EOF
9593 cat >> confdefs.h <<\EOF
9594 #define NEED_MOTIF 1
9598 lwlib_objs="$lwlib_objs lwlib-Xm.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xm.o\" to \$lwlib_objs"; fi
9602 test "$with_menubars" = "lucid" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
9603 test "$with_menubars" = "motif" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
9604 test "$with_scrollbars" = "lucid" && lwlib_objs="$lwlib_objs xlwscrollbar.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwscrollbar.o\" to \$lwlib_objs"; fi
9605 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
9606 lwlib_objs="$lwlib_objs xlwtabs.o xlwgcs.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwtabs.o xlwgcs.o\" to \$lwlib_objs"; fi
9607 case "$with_widgets" in athena* )
9608 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;;
9610 case "$all_widgets" in *lucid* )
9611 { test "$extra_verbose" = "yes" && cat << \EOF
9614 cat >> confdefs.h <<\EOF
9615 #define NEED_LUCID 1
9619 lwlib_objs="$lwlib_objs lwlib-Xlw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xlw.o\" to \$lwlib_objs"; fi ;;
9624 test "$with_scrollbars" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
9625 Defining LWLIB_SCROLLBARS_ATHENA
9627 cat >> confdefs.h <<\EOF
9628 #define LWLIB_SCROLLBARS_ATHENA 1
9632 test "$with_dialogs" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
9633 Defining LWLIB_DIALOGS_ATHENA
9635 cat >> confdefs.h <<\EOF
9636 #define LWLIB_DIALOGS_ATHENA 1
9641 if test "$athena_3d" = "yes"; then
9642 test "$with_scrollbars" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
9643 Defining LWLIB_SCROLLBARS_ATHENA3D
9645 cat >> confdefs.h <<\EOF
9646 #define LWLIB_SCROLLBARS_ATHENA3D 1
9650 test "$with_dialogs" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
9651 Defining LWLIB_DIALOGS_ATHENA3D
9653 cat >> confdefs.h <<\EOF
9654 #define LWLIB_DIALOGS_ATHENA3D 1
9660 case "$with_widgets" in athena* ) { test "$extra_verbose" = "yes" && cat << \EOF
9661 Defining LWLIB_WIDGETS_ATHENA
9663 cat >> confdefs.h <<\EOF
9664 #define LWLIB_WIDGETS_ATHENA 1
9668 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
9669 { test "$extra_verbose" = "yes" && cat << \EOF
9670 Defining LWLIB_TABS_LUCID
9672 cat >> confdefs.h <<\EOF
9673 #define LWLIB_TABS_LUCID 1
9678 test "$with_menubars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9679 Defining HAVE_MENUBARS
9681 cat >> confdefs.h <<\EOF
9682 #define HAVE_MENUBARS 1
9686 test "$with_scrollbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9687 Defining HAVE_SCROLLBARS
9689 cat >> confdefs.h <<\EOF
9690 #define HAVE_SCROLLBARS 1
9694 test "$with_dialogs" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9695 Defining HAVE_DIALOGS
9697 cat >> confdefs.h <<\EOF
9698 #define HAVE_DIALOGS 1
9702 test "$with_toolbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9703 Defining HAVE_TOOLBARS
9705 cat >> confdefs.h <<\EOF
9706 #define HAVE_TOOLBARS 1
9710 test "$with_widgets" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9711 Defining HAVE_WIDGETS
9713 cat >> confdefs.h <<\EOF
9714 #define HAVE_WIDGETS 1
9719 test "$with_menubars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
9720 Defining LWLIB_MENUBARS_LUCID
9722 cat >> confdefs.h <<\EOF
9723 #define LWLIB_MENUBARS_LUCID 1
9727 test "$with_scrollbars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
9728 Defining LWLIB_SCROLLBARS_LUCID
9730 cat >> confdefs.h <<\EOF
9731 #define LWLIB_SCROLLBARS_LUCID 1
9736 test "$with_menubars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9737 Defining LWLIB_MENUBARS_MOTIF
9739 cat >> confdefs.h <<\EOF
9740 #define LWLIB_MENUBARS_MOTIF 1
9744 test "$with_scrollbars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9745 Defining LWLIB_SCROLLBARS_MOTIF
9747 cat >> confdefs.h <<\EOF
9748 #define LWLIB_SCROLLBARS_MOTIF 1
9752 test "$with_dialogs" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9753 Defining LWLIB_DIALOGS_MOTIF
9755 cat >> confdefs.h <<\EOF
9756 #define LWLIB_DIALOGS_MOTIF 1
9760 test "$with_widgets" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9761 Defining LWLIB_WIDGETS_MOTIF
9763 cat >> confdefs.h <<\EOF
9764 #define LWLIB_WIDGETS_MOTIF 1
9769 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar.o" && if test "$extra_verbose" = "yes"; then
9770 echo " xemacs will be linked with \"menubar.o\""
9772 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar.o" && if test "$extra_verbose" = "yes"; then
9773 echo " xemacs will be linked with \"scrollbar.o\""
9775 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog.o" && if test "$extra_verbose" = "yes"; then
9776 echo " xemacs will be linked with \"dialog.o\""
9778 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar.o" && if test "$extra_verbose" = "yes"; then
9779 echo " xemacs will be linked with \"toolbar.o\""
9782 if test "$with_gtk" = "yes"; then
9783 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-gtk.o" && if test "$extra_verbose" = "yes"; then
9784 echo " xemacs will be linked with \"menubar-gtk.o\""
9786 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-gtk.o" && if test "$extra_verbose" = "yes"; then
9787 echo " xemacs will be linked with \"scrollbar-gtk.o\""
9789 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-gtk.o" && if test "$extra_verbose" = "yes"; then
9790 echo " xemacs will be linked with \"dialog-gtk.o\""
9792 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-gtk.o" && if test "$extra_verbose" = "yes"; then
9793 echo " xemacs will be linked with \"toolbar-gtk.o\""
9795 test "$all_widgets" != "no no no no no" && extra_objs="$extra_objs gui-gtk.o" && if test "$extra_verbose" = "yes"; then
9796 echo " xemacs will be linked with \"gui-gtk.o\""
9800 if test "$with_x11" = "yes"; then
9801 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-x.o" && if test "$extra_verbose" = "yes"; then
9802 echo " xemacs will be linked with \"menubar-x.o\""
9804 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-x.o" && if test "$extra_verbose" = "yes"; then
9805 echo " xemacs will be linked with \"scrollbar-x.o\""
9807 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-x.o" && if test "$extra_verbose" = "yes"; then
9808 echo " xemacs will be linked with \"dialog-x.o\""
9810 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-x.o" && if test "$extra_verbose" = "yes"; then
9811 echo " xemacs will be linked with \"toolbar-x.o\""
9813 test "$all_widgets" != "no no no no no" && extra_objs="$extra_objs gui-x.o" && if test "$extra_verbose" = "yes"; then
9814 echo " xemacs will be linked with \"gui-x.o\""
9819 test -z "$with_mule" && with_mule=no
9820 test -z "$with_file_coding" && with_file_coding=no
9823 if test "$with_file_coding" = "yes" && test "$with_mule" = "no"; then
9824 { test "$extra_verbose" = "yes" && cat << \EOF
9825 Defining FILE_CODING
9827 cat >> confdefs.h <<\EOF
9828 #define FILE_CODING 1
9832 extra_objs="$extra_objs file-coding.o" && if test "$extra_verbose" = "yes"; then
9833 echo " xemacs will be linked with \"file-coding.o\""
9837 if test "$with_mule" = "yes" ; then
9838 echo "checking for Mule-related features" 1>&6
9839 echo "configure:9840: checking for Mule-related features" >&5
9840 { test "$extra_verbose" = "yes" && cat << \EOF
9843 cat >> confdefs.h <<\EOF
9848 { test "$extra_verbose" = "yes" && cat << \EOF
9849 Defining FILE_CODING
9851 cat >> confdefs.h <<\EOF
9852 #define FILE_CODING 1
9856 extra_objs="$extra_objs mule.o mule-ccl.o mule-charset.o file-coding.o" && if test "$extra_verbose" = "yes"; then
9857 echo " xemacs will be linked with \"mule.o mule-ccl.o mule-charset.o file-coding.o\""
9860 for ac_hdr in libintl.h
9862 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9863 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9864 echo "configure:9865: checking for $ac_hdr" >&5
9866 cat > conftest.$ac_ext <<EOF
9867 #line 9868 "configure"
9868 #include "confdefs.h"
9871 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9872 { (eval echo configure:9873: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9873 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9874 if test -z "$ac_err"; then
9876 eval "ac_cv_header_$ac_safe=yes"
9879 echo "configure: failed program was:" >&5
9880 cat conftest.$ac_ext >&5
9882 eval "ac_cv_header_$ac_safe=no"
9885 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9886 echo "$ac_t""yes" 1>&6
9887 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9888 { test "$extra_verbose" = "yes" && cat << EOF
9891 cat >> confdefs.h <<EOF
9892 #define $ac_tr_hdr 1
9897 echo "$ac_t""no" 1>&6
9902 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
9903 echo "configure:9904: checking for strerror in -lintl" >&5
9904 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
9906 xe_check_libs=" -lintl "
9907 cat > conftest.$ac_ext <<EOF
9908 #line 9909 "configure"
9909 #include "confdefs.h"
9910 /* Override any gcc2 internal prototype to avoid an error. */
9911 /* We use char because int might match the return type of a gcc2
9912 builtin and then its argument prototype would still apply. */
9919 if { (eval echo configure:9920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9921 eval "ac_cv_lib_$ac_lib_var=yes"
9923 echo "configure: failed program was:" >&5
9924 cat conftest.$ac_ext >&5
9926 eval "ac_cv_lib_$ac_lib_var=no"
9931 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9932 echo "$ac_t""yes" 1>&6
9933 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9934 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9935 { test "$extra_verbose" = "yes" && cat << EOF
9938 cat >> confdefs.h <<EOF
9939 #define $ac_tr_lib 1
9943 LIBS="-lintl $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lintl\" to \$LIBS"; fi
9946 echo "$ac_t""no" 1>&6
9951 echo "checking for Mule input methods" 1>&6
9952 echo "configure:9953: checking for Mule input methods" >&5
9953 case "$with_xim" in "" | "yes" )
9954 echo "checking for XIM" 1>&6
9955 echo "configure:9956: checking for XIM" >&5
9957 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6
9958 echo "configure:9959: checking for XOpenIM in -lX11" >&5
9959 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'`
9961 xe_check_libs=" -lX11 "
9962 cat > conftest.$ac_ext <<EOF
9963 #line 9964 "configure"
9964 #include "confdefs.h"
9965 /* Override any gcc2 internal prototype to avoid an error. */
9966 /* We use char because int might match the return type of a gcc2
9967 builtin and then its argument prototype would still apply. */
9974 if { (eval echo configure:9975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9976 eval "ac_cv_lib_$ac_lib_var=yes"
9978 echo "configure: failed program was:" >&5
9979 cat conftest.$ac_ext >&5
9981 eval "ac_cv_lib_$ac_lib_var=no"
9986 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9987 echo "$ac_t""yes" 1>&6
9990 echo "$ac_t""no" 1>&6
9995 if test "$have_motif $have_lesstif" = "yes no"; then
9997 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
9998 echo "configure:9999: checking for XmImMbLookupString in -lXm" >&5
9999 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
10001 xe_check_libs=" -lXm "
10002 cat > conftest.$ac_ext <<EOF
10003 #line 10004 "configure"
10004 #include "confdefs.h"
10005 /* Override any gcc2 internal prototype to avoid an error. */
10006 /* We use char because int might match the return type of a gcc2
10007 builtin and then its argument prototype would still apply. */
10008 char XmImMbLookupString();
10011 XmImMbLookupString()
10014 if { (eval echo configure:10015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10016 eval "ac_cv_lib_$ac_lib_var=yes"
10018 echo "configure: failed program was:" >&5
10019 cat conftest.$ac_ext >&5
10021 eval "ac_cv_lib_$ac_lib_var=no"
10026 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10027 echo "$ac_t""yes" 1>&6
10030 echo "$ac_t""no" 1>&6
10036 if test "$with_xim" != "no"; then
10037 { test "$extra_verbose" = "yes" && cat << \EOF
10040 cat >> confdefs.h <<\EOF
10045 if test "$with_xim" = "xlib"; then
10046 { test "$extra_verbose" = "yes" && cat << \EOF
10049 cat >> confdefs.h <<\EOF
10054 extra_objs="$extra_objs input-method-xlib.o" && if test "$extra_verbose" = "yes"; then
10055 echo " xemacs will be linked with \"input-method-xlib.o\""
10058 if test "$with_xim" = "motif"; then
10059 { test "$extra_verbose" = "yes" && cat << \EOF
10062 cat >> confdefs.h <<\EOF
10063 #define XIM_MOTIF 1
10068 extra_objs="$extra_objs input-method-motif.o" && if test "$extra_verbose" = "yes"; then
10069 echo " xemacs will be linked with \"input-method-motif.o\""
10072 if test "$with_xim" = "motif"; then
10077 if test "$with_xfs" = "yes" ; then
10078 echo "checking for XFontSet" 1>&6
10079 echo "configure:10080: checking for XFontSet" >&5
10081 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6
10082 echo "configure:10083: checking for XmbDrawString in -lX11" >&5
10083 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
10085 xe_check_libs=" -lX11 "
10086 cat > conftest.$ac_ext <<EOF
10087 #line 10088 "configure"
10088 #include "confdefs.h"
10089 /* Override any gcc2 internal prototype to avoid an error. */
10090 /* We use char because int might match the return type of a gcc2
10091 builtin and then its argument prototype would still apply. */
10092 char XmbDrawString();
10098 if { (eval echo configure:10099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10100 eval "ac_cv_lib_$ac_lib_var=yes"
10102 echo "configure: failed program was:" >&5
10103 cat conftest.$ac_ext >&5
10105 eval "ac_cv_lib_$ac_lib_var=no"
10110 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10111 echo "$ac_t""yes" 1>&6
10114 echo "$ac_t""no" 1>&6
10119 if test "$with_xfs" = "yes" && test "$with_menubars" = "lucid"; then
10120 { test "$extra_verbose" = "yes" && cat << \EOF
10121 Defining USE_XFONTSET
10123 cat >> confdefs.h <<\EOF
10124 #define USE_XFONTSET 1
10128 if test "$with_xim" = "no" ; then
10129 extra_objs="$extra_objs input-method-xlib.o" && if test "$extra_verbose" = "yes"; then
10130 echo " xemacs will be linked with \"input-method-xlib.o\""
10135 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
10136 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
10137 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
10138 echo "configure:10139: checking for wnn/jllib.h" >&5
10140 cat > conftest.$ac_ext <<EOF
10141 #line 10142 "configure"
10142 #include "confdefs.h"
10143 #include <wnn/jllib.h>
10145 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10146 { (eval echo configure:10147: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10147 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10148 if test -z "$ac_err"; then
10150 eval "ac_cv_header_$ac_safe=yes"
10153 echo "configure: failed program was:" >&5
10154 cat conftest.$ac_ext >&5
10156 eval "ac_cv_header_$ac_safe=no"
10159 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10160 echo "$ac_t""yes" 1>&6
10163 echo "$ac_t""no" 1>&6
10167 test -z "$with_wnn" && { ac_safe=`echo "wnn/commonhd.h" | sed 'y%./+-%__p_%'`
10168 echo $ac_n "checking for wnn/commonhd.h""... $ac_c" 1>&6
10169 echo "configure:10170: checking for wnn/commonhd.h" >&5
10171 cat > conftest.$ac_ext <<EOF
10172 #line 10173 "configure"
10173 #include "confdefs.h"
10174 #include <wnn/commonhd.h>
10176 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10177 { (eval echo configure:10178: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10178 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10179 if test -z "$ac_err"; then
10181 eval "ac_cv_header_$ac_safe=yes"
10184 echo "configure: failed program was:" >&5
10185 cat conftest.$ac_ext >&5
10187 eval "ac_cv_header_$ac_safe=no"
10190 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10191 echo "$ac_t""yes" 1>&6
10194 echo "$ac_t""no" 1>&6
10198 if test "$with_wnn" != "no"; then
10199 for ac_func in crypt
10201 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10202 echo "configure:10203: checking for $ac_func" >&5
10204 cat > conftest.$ac_ext <<EOF
10205 #line 10206 "configure"
10206 #include "confdefs.h"
10207 /* System header to define __stub macros and hopefully few prototypes,
10208 which can conflict with char $ac_func(); below. */
10209 #include <assert.h>
10210 /* Override any gcc2 internal prototype to avoid an error. */
10211 /* We use char because int might match the return type of a gcc2
10212 builtin and then its argument prototype would still apply. */
10217 /* The GNU C library defines this for functions which it implements
10218 to always fail with ENOSYS. Some functions are actually named
10219 something starting with __ and the normal name is an alias. */
10220 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10228 if { (eval echo configure:10229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10230 eval "ac_cv_func_$ac_func=yes"
10232 echo "configure: failed program was:" >&5
10233 cat conftest.$ac_ext >&5
10235 eval "ac_cv_func_$ac_func=no"
10239 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10240 echo "$ac_t""yes" 1>&6
10241 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10242 { test "$extra_verbose" = "yes" && cat << EOF
10243 Defining $ac_tr_func
10245 cat >> confdefs.h <<EOF
10246 #define $ac_tr_func 1
10251 echo "$ac_t""no" 1>&6
10255 test "$ac_cv_func_crypt" != "yes" && {
10256 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
10257 echo "configure:10258: checking for crypt in -lcrypt" >&5
10258 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
10260 xe_check_libs=" -lcrypt "
10261 cat > conftest.$ac_ext <<EOF
10262 #line 10263 "configure"
10263 #include "confdefs.h"
10264 /* Override any gcc2 internal prototype to avoid an error. */
10265 /* We use char because int might match the return type of a gcc2
10266 builtin and then its argument prototype would still apply. */
10273 if { (eval echo configure:10274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10275 eval "ac_cv_lib_$ac_lib_var=yes"
10277 echo "configure: failed program was:" >&5
10278 cat conftest.$ac_ext >&5
10280 eval "ac_cv_lib_$ac_lib_var=no"
10285 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10286 echo "$ac_t""yes" 1>&6
10287 ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10288 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10289 { test "$extra_verbose" = "yes" && cat << EOF
10290 Defining $ac_tr_lib
10292 cat >> confdefs.h <<EOF
10293 #define $ac_tr_lib 1
10297 LIBS="-lcrypt $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcrypt\" to \$LIBS"; fi
10300 echo "$ac_t""no" 1>&6
10305 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then
10307 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
10308 echo "configure:10309: checking for jl_dic_list_e in -lwnn" >&5
10309 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
10311 xe_check_libs=" -lwnn "
10312 cat > conftest.$ac_ext <<EOF
10313 #line 10314 "configure"
10314 #include "confdefs.h"
10315 /* Override any gcc2 internal prototype to avoid an error. */
10316 /* We use char because int might match the return type of a gcc2
10317 builtin and then its argument prototype would still apply. */
10318 char jl_dic_list_e();
10324 if { (eval echo configure:10325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10326 eval "ac_cv_lib_$ac_lib_var=yes"
10328 echo "configure: failed program was:" >&5
10329 cat conftest.$ac_ext >&5
10331 eval "ac_cv_lib_$ac_lib_var=no"
10336 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10337 echo "$ac_t""yes" 1>&6
10340 echo "$ac_t""no" 1>&6
10341 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6
10342 echo "configure:10343: checking for jl_dic_list_e in -lwnn4" >&5
10343 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
10345 xe_check_libs=" -lwnn4 "
10346 cat > conftest.$ac_ext <<EOF
10347 #line 10348 "configure"
10348 #include "confdefs.h"
10349 /* Override any gcc2 internal prototype to avoid an error. */
10350 /* We use char because int might match the return type of a gcc2
10351 builtin and then its argument prototype would still apply. */
10352 char jl_dic_list_e();
10358 if { (eval echo configure:10359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10360 eval "ac_cv_lib_$ac_lib_var=yes"
10362 echo "configure: failed program was:" >&5
10363 cat conftest.$ac_ext >&5
10365 eval "ac_cv_lib_$ac_lib_var=no"
10370 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10371 echo "$ac_t""yes" 1>&6
10374 echo "$ac_t""no" 1>&6
10375 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6
10376 echo "configure:10377: checking for jl_dic_list_e in -lwnn6" >&5
10377 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
10379 xe_check_libs=" -lwnn6 "
10380 cat > conftest.$ac_ext <<EOF
10381 #line 10382 "configure"
10382 #include "confdefs.h"
10383 /* Override any gcc2 internal prototype to avoid an error. */
10384 /* We use char because int might match the return type of a gcc2
10385 builtin and then its argument prototype would still apply. */
10386 char jl_dic_list_e();
10392 if { (eval echo configure:10393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10394 eval "ac_cv_lib_$ac_lib_var=yes"
10396 echo "configure: failed program was:" >&5
10397 cat conftest.$ac_ext >&5
10399 eval "ac_cv_lib_$ac_lib_var=no"
10404 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10405 echo "$ac_t""yes" 1>&6
10408 echo "$ac_t""no" 1>&6
10409 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6
10410 echo "configure:10411: checking for dic_list_e in -lwnn6_fromsrc" >&5
10411 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'`
10413 xe_check_libs=" -lwnn6_fromsrc "
10414 cat > conftest.$ac_ext <<EOF
10415 #line 10416 "configure"
10416 #include "confdefs.h"
10417 /* Override any gcc2 internal prototype to avoid an error. */
10418 /* We use char because int might match the return type of a gcc2
10419 builtin and then its argument prototype would still apply. */
10426 if { (eval echo configure:10427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10428 eval "ac_cv_lib_$ac_lib_var=yes"
10430 echo "configure: failed program was:" >&5
10431 cat conftest.$ac_ext >&5
10433 eval "ac_cv_lib_$ac_lib_var=no"
10438 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10439 echo "$ac_t""yes" 1>&6
10440 libwnn=wnn6_fromsrc
10442 echo "$ac_t""no" 1>&6
10457 test -z "$with_wnn" && with_wnn=yes
10458 if test "$with_wnn" = "yes"; then
10459 { test "$extra_verbose" = "yes" && cat << \EOF
10462 cat >> confdefs.h <<\EOF
10467 libs_x="-l$libwnn $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$libwnn\" to \$libs_x"; fi
10468 extra_objs="$extra_objs mule-wnnfns.o" && if test "$extra_verbose" = "yes"; then
10469 echo " xemacs will be linked with \"mule-wnnfns.o\""
10471 if test "$with_wnn6" != "no"; then
10473 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6
10474 echo "configure:10475: checking for jl_fi_dic_list in -l$libwnn" >&5
10475 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
10477 xe_check_libs=" -l$libwnn "
10478 cat > conftest.$ac_ext <<EOF
10479 #line 10480 "configure"
10480 #include "confdefs.h"
10481 /* Override any gcc2 internal prototype to avoid an error. */
10482 /* We use char because int might match the return type of a gcc2
10483 builtin and then its argument prototype would still apply. */
10484 char jl_fi_dic_list();
10490 if { (eval echo configure:10491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10492 eval "ac_cv_lib_$ac_lib_var=yes"
10494 echo "configure: failed program was:" >&5
10495 cat conftest.$ac_ext >&5
10497 eval "ac_cv_lib_$ac_lib_var=no"
10502 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10503 echo "$ac_t""yes" 1>&6
10506 echo "$ac_t""no" 1>&6
10510 test "$with_wnn6" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
10513 cat >> confdefs.h <<\EOF
10521 canna_includes_found=no
10522 if test "$with_canna" != "no"; then
10523 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
10524 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
10525 echo "configure:10526: checking for canna/jrkanji.h" >&5
10527 cat > conftest.$ac_ext <<EOF
10528 #line 10529 "configure"
10529 #include "confdefs.h"
10530 #include <canna/jrkanji.h>
10532 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10533 { (eval echo configure:10534: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10534 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10535 if test -z "$ac_err"; then
10537 eval "ac_cv_header_$ac_safe=yes"
10540 echo "configure: failed program was:" >&5
10541 cat conftest.$ac_ext >&5
10543 eval "ac_cv_header_$ac_safe=no"
10546 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10547 echo "$ac_t""yes" 1>&6
10548 canna_includes_found=yes
10550 echo "$ac_t""no" 1>&6
10554 if test "$canna_includes_found" = "no" -a "$with_canna" != "no" -a \
10555 -d "/usr/local/canna/include"; then
10556 save_c_switch_site="$c_switch_site"
10557 c_switch_site="$c_switch_site -I/usr/local/canna/include"
10558 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
10559 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
10560 echo "configure:10561: checking for canna/jrkanji.h" >&5
10562 cat > conftest.$ac_ext <<EOF
10563 #line 10564 "configure"
10564 #include "confdefs.h"
10565 #include <canna/jrkanji.h>
10567 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10568 { (eval echo configure:10569: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10569 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10570 if test -z "$ac_err"; then
10572 eval "ac_cv_header_$ac_safe=yes"
10575 echo "configure: failed program was:" >&5
10576 cat conftest.$ac_ext >&5
10578 eval "ac_cv_header_$ac_safe=no"
10581 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10582 echo "$ac_t""yes" 1>&6
10583 canna_includes_found=yes
10585 echo "$ac_t""no" 1>&6
10588 if test "$canna_includes_found" != "yes"; then
10589 c_switch_site="$save_c_switch_site"
10594 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
10595 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
10596 echo "configure:10597: checking for canna/RK.h" >&5
10598 cat > conftest.$ac_ext <<EOF
10599 #line 10600 "configure"
10600 #include "confdefs.h"
10601 #include <canna/RK.h>
10603 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10604 { (eval echo configure:10605: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10605 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10606 if test -z "$ac_err"; then
10608 eval "ac_cv_header_$ac_safe=yes"
10611 echo "configure: failed program was:" >&5
10612 cat conftest.$ac_ext >&5
10614 eval "ac_cv_header_$ac_safe=no"
10617 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10618 echo "$ac_t""yes" 1>&6
10621 echo "$ac_t""no" 1>&6
10625 test -z "$with_canna" && {
10626 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
10627 echo "configure:10628: checking for RkBgnBun in -lRKC" >&5
10628 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
10630 xe_check_libs=" -lRKC "
10631 cat > conftest.$ac_ext <<EOF
10632 #line 10633 "configure"
10633 #include "confdefs.h"
10634 /* Override any gcc2 internal prototype to avoid an error. */
10635 /* We use char because int might match the return type of a gcc2
10636 builtin and then its argument prototype would still apply. */
10643 if { (eval echo configure:10644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10645 eval "ac_cv_lib_$ac_lib_var=yes"
10647 echo "configure: failed program was:" >&5
10648 cat conftest.$ac_ext >&5
10650 eval "ac_cv_lib_$ac_lib_var=no"
10655 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10656 echo "$ac_t""yes" 1>&6
10659 echo "$ac_t""no" 1>&6
10664 test -z "$with_canna" && {
10665 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
10666 echo "configure:10667: checking for jrKanjiControl in -lcanna" >&5
10667 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
10669 xe_check_libs=" -lcanna "
10670 cat > conftest.$ac_ext <<EOF
10671 #line 10672 "configure"
10672 #include "confdefs.h"
10673 /* Override any gcc2 internal prototype to avoid an error. */
10674 /* We use char because int might match the return type of a gcc2
10675 builtin and then its argument prototype would still apply. */
10676 char jrKanjiControl();
10682 if { (eval echo configure:10683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10684 eval "ac_cv_lib_$ac_lib_var=yes"
10686 echo "configure: failed program was:" >&5
10687 cat conftest.$ac_ext >&5
10689 eval "ac_cv_lib_$ac_lib_var=no"
10694 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10695 echo "$ac_t""yes" 1>&6
10698 echo "$ac_t""no" 1>&6
10703 test -z "$with_canna" && with_canna=yes
10704 if test "$with_canna" = "yes"; then
10705 { test "$extra_verbose" = "yes" && cat << \EOF
10706 Defining HAVE_CANNA
10708 cat >> confdefs.h <<\EOF
10709 #define HAVE_CANNA 1
10713 libs_x="-lcanna -lRKC $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcanna -lRKC\" to \$libs_x"; fi
10714 extra_objs="$extra_objs mule-canna.o" && if test "$extra_verbose" = "yes"; then
10715 echo " xemacs will be linked with \"mule-canna.o\""
10719 else for feature in xim canna wnn; do
10720 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
10721 echo "configure: warning: "--with-${feature} ignored: Not valid without Mule support"" 1>&2
10723 eval "with_${feature}=no"
10727 if test "$need_motif" = "yes" ; then
10728 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi
10730 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6
10731 echo "configure:10732: checking for layout_object_getvalue in -li18n" >&5
10732 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'`
10734 xe_check_libs=" -li18n "
10735 cat > conftest.$ac_ext <<EOF
10736 #line 10737 "configure"
10737 #include "confdefs.h"
10738 /* Override any gcc2 internal prototype to avoid an error. */
10739 /* We use char because int might match the return type of a gcc2
10740 builtin and then its argument prototype would still apply. */
10741 char layout_object_getvalue();
10744 layout_object_getvalue()
10747 if { (eval echo configure:10748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10749 eval "ac_cv_lib_$ac_lib_var=yes"
10751 echo "configure: failed program was:" >&5
10752 cat conftest.$ac_ext >&5
10754 eval "ac_cv_lib_$ac_lib_var=no"
10759 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10760 echo "$ac_t""yes" 1>&6
10761 libs_x="-li18n $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-li18n\" to \$libs_x"; fi
10763 echo "$ac_t""no" 1>&6
10768 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
10769 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
10770 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
10772 runpath="" runpath_dirs=""
10773 if test -n "$LD_RUN_PATH"; then
10774 runpath="$LD_RUN_PATH"
10775 elif test "$GCC" = "yes"; then
10776 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
10777 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
10778 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
10779 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
10780 case "$arg" in P,* | -L* | -R* )
10781 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
10783 xe_runpath_dir="$dir"
10784 test "$xe_runpath_dir" != "/lib" -a \
10785 "$xe_runpath_dir" != "/usr/lib" -a \
10786 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
10787 eval "$xe_add_unique_runpath_dir"
10792 ld_switch_run="$ld_switch_run_save"
10795 for arg in $ld_switch_site $ld_switch_x_site; do
10796 case "$arg" in -L*) {
10797 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
10798 test "$xe_runpath_dir" != "/lib" -a \
10799 "$xe_runpath_dir" != "/usr/lib" -a \
10800 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
10801 eval "$xe_add_unique_runpath_dir"
10804 if test "$opsys $need_motif" = "sol2 yes"; then
10805 xe_runpath_dir="/opt/SUNWdt/lib";
10806 eval "$xe_add_unique_runpath_dir";
10809 if test -n "$runpath"; then
10810 ld_switch_run="${dash_r}${runpath}"
10812 if test "$GCC" = "yes"; then
10813 set x $ld_switch_run; shift; ld_switch_run=""
10814 while test -n "$1"; do
10816 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
10817 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
10819 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
10824 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
10830 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
10832 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10833 echo "configure:10834: checking for $ac_func" >&5
10835 cat > conftest.$ac_ext <<EOF
10836 #line 10837 "configure"
10837 #include "confdefs.h"
10838 /* System header to define __stub macros and hopefully few prototypes,
10839 which can conflict with char $ac_func(); below. */
10840 #include <assert.h>
10841 /* Override any gcc2 internal prototype to avoid an error. */
10842 /* We use char because int might match the return type of a gcc2
10843 builtin and then its argument prototype would still apply. */
10848 /* The GNU C library defines this for functions which it implements
10849 to always fail with ENOSYS. Some functions are actually named
10850 something starting with __ and the normal name is an alias. */
10851 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10859 if { (eval echo configure:10860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10861 eval "ac_cv_func_$ac_func=yes"
10863 echo "configure: failed program was:" >&5
10864 cat conftest.$ac_ext >&5
10866 eval "ac_cv_func_$ac_func=no"
10870 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10871 echo "$ac_t""yes" 1>&6
10872 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10873 { test "$extra_verbose" = "yes" && cat << EOF
10874 Defining $ac_tr_func
10876 cat >> confdefs.h <<EOF
10877 #define $ac_tr_func 1
10882 echo "$ac_t""no" 1>&6
10888 for ac_func in getpt _getpty grantpt unlockpt ptsname killpg tcgetpgrp
10890 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10891 echo "configure:10892: checking for $ac_func" >&5
10893 cat > conftest.$ac_ext <<EOF
10894 #line 10895 "configure"
10895 #include "confdefs.h"
10896 /* System header to define __stub macros and hopefully few prototypes,
10897 which can conflict with char $ac_func(); below. */
10898 #include <assert.h>
10899 /* Override any gcc2 internal prototype to avoid an error. */
10900 /* We use char because int might match the return type of a gcc2
10901 builtin and then its argument prototype would still apply. */
10906 /* The GNU C library defines this for functions which it implements
10907 to always fail with ENOSYS. Some functions are actually named
10908 something starting with __ and the normal name is an alias. */
10909 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10917 if { (eval echo configure:10918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10919 eval "ac_cv_func_$ac_func=yes"
10921 echo "configure: failed program was:" >&5
10922 cat conftest.$ac_ext >&5
10924 eval "ac_cv_func_$ac_func=no"
10928 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10929 echo "$ac_t""yes" 1>&6
10930 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10931 { test "$extra_verbose" = "yes" && cat << EOF
10932 Defining $ac_tr_func
10934 cat >> confdefs.h <<EOF
10935 #define $ac_tr_func 1
10940 echo "$ac_t""no" 1>&6
10945 echo $ac_n "checking for openpty""... $ac_c" 1>&6
10946 echo "configure:10947: checking for openpty" >&5
10948 cat > conftest.$ac_ext <<EOF
10949 #line 10950 "configure"
10950 #include "confdefs.h"
10951 /* System header to define __stub macros and hopefully few prototypes,
10952 which can conflict with char openpty(); below. */
10953 #include <assert.h>
10954 /* Override any gcc2 internal prototype to avoid an error. */
10955 /* We use char because int might match the return type of a gcc2
10956 builtin and then its argument prototype would still apply. */
10961 /* The GNU C library defines this for functions which it implements
10962 to always fail with ENOSYS. Some functions are actually named
10963 something starting with __ and the normal name is an alias. */
10964 #if defined (__stub_openpty) || defined (__stub___openpty)
10972 if { (eval echo configure:10973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10974 eval "ac_cv_func_openpty=yes"
10976 echo "configure: failed program was:" >&5
10977 cat conftest.$ac_ext >&5
10979 eval "ac_cv_func_openpty=no"
10983 if eval "test \"`echo '$ac_cv_func_'openpty`\" = yes"; then
10984 echo "$ac_t""yes" 1>&6
10987 echo "$ac_t""no" 1>&6
10990 echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6
10991 echo "configure:10992: checking for openpty in -lutil" >&5
10992 ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'`
10994 xe_check_libs=" -lutil "
10995 cat > conftest.$ac_ext <<EOF
10996 #line 10997 "configure"
10997 #include "confdefs.h"
10998 /* Override any gcc2 internal prototype to avoid an error. */
10999 /* We use char because int might match the return type of a gcc2
11000 builtin and then its argument prototype would still apply. */
11007 if { (eval echo configure:11008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11009 eval "ac_cv_lib_$ac_lib_var=yes"
11011 echo "configure: failed program was:" >&5
11012 cat conftest.$ac_ext >&5
11014 eval "ac_cv_lib_$ac_lib_var=no"
11019 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11020 echo "$ac_t""yes" 1>&6
11021 have_openpty=yes need_libutil=yes
11023 echo "$ac_t""no" 1>&6
11029 if test "$have_openpty" = "yes"; then
11030 { test "$extra_verbose" = "yes" && cat << \EOF
11031 Defining HAVE_OPENPTY
11033 cat >> confdefs.h <<\EOF
11034 #define HAVE_OPENPTY 1
11038 for ac_hdr in pty.h libutil.h util.h
11040 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11041 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11042 echo "configure:11043: checking for $ac_hdr" >&5
11044 cat > conftest.$ac_ext <<EOF
11045 #line 11046 "configure"
11046 #include "confdefs.h"
11049 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11050 { (eval echo configure:11051: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11051 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11052 if test -z "$ac_err"; then
11054 eval "ac_cv_header_$ac_safe=yes"
11057 echo "configure: failed program was:" >&5
11058 cat conftest.$ac_ext >&5
11060 eval "ac_cv_header_$ac_safe=no"
11063 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11064 echo "$ac_t""yes" 1>&6
11065 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11066 { test "$extra_verbose" = "yes" && cat << EOF
11067 Defining $ac_tr_hdr
11069 cat >> confdefs.h <<EOF
11070 #define $ac_tr_hdr 1
11075 echo "$ac_t""no" 1>&6
11079 test "$need_libutil" = "yes" && libs_system="$libs_system -lutil" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lutil\" to \$libs_system"; fi
11082 for ac_hdr in stropts.h
11084 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11085 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11086 echo "configure:11087: checking for $ac_hdr" >&5
11088 cat > conftest.$ac_ext <<EOF
11089 #line 11090 "configure"
11090 #include "confdefs.h"
11093 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11094 { (eval echo configure:11095: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11095 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11096 if test -z "$ac_err"; then
11098 eval "ac_cv_header_$ac_safe=yes"
11101 echo "configure: failed program was:" >&5
11102 cat conftest.$ac_ext >&5
11104 eval "ac_cv_header_$ac_safe=no"
11107 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11108 echo "$ac_t""yes" 1>&6
11109 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11110 { test "$extra_verbose" = "yes" && cat << EOF
11111 Defining $ac_tr_hdr
11113 cat >> confdefs.h <<EOF
11114 #define $ac_tr_hdr 1
11119 echo "$ac_t""no" 1>&6
11123 if test "$ac_cv_header_stropts_h" = "yes"; then
11124 for ac_func in isastream
11126 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11127 echo "configure:11128: checking for $ac_func" >&5
11129 cat > conftest.$ac_ext <<EOF
11130 #line 11131 "configure"
11131 #include "confdefs.h"
11132 /* System header to define __stub macros and hopefully few prototypes,
11133 which can conflict with char $ac_func(); below. */
11134 #include <assert.h>
11135 /* Override any gcc2 internal prototype to avoid an error. */
11136 /* We use char because int might match the return type of a gcc2
11137 builtin and then its argument prototype would still apply. */
11142 /* The GNU C library defines this for functions which it implements
11143 to always fail with ENOSYS. Some functions are actually named
11144 something starting with __ and the normal name is an alias. */
11145 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11153 if { (eval echo configure:11154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11155 eval "ac_cv_func_$ac_func=yes"
11157 echo "configure: failed program was:" >&5
11158 cat conftest.$ac_ext >&5
11160 eval "ac_cv_func_$ac_func=no"
11164 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11165 echo "$ac_t""yes" 1>&6
11166 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11167 { test "$extra_verbose" = "yes" && cat << EOF
11168 Defining $ac_tr_func
11170 cat >> confdefs.h <<EOF
11171 #define $ac_tr_func 1
11176 echo "$ac_t""no" 1>&6
11180 for ac_hdr in strtio.h
11182 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11183 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11184 echo "configure:11185: checking for $ac_hdr" >&5
11186 cat > conftest.$ac_ext <<EOF
11187 #line 11188 "configure"
11188 #include "confdefs.h"
11191 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11192 { (eval echo configure:11193: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11193 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11194 if test -z "$ac_err"; then
11196 eval "ac_cv_header_$ac_safe=yes"
11199 echo "configure: failed program was:" >&5
11200 cat conftest.$ac_ext >&5
11202 eval "ac_cv_header_$ac_safe=no"
11205 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11206 echo "$ac_t""yes" 1>&6
11207 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11208 { test "$extra_verbose" = "yes" && cat << EOF
11209 Defining $ac_tr_hdr
11211 cat >> confdefs.h <<EOF
11212 #define $ac_tr_hdr 1
11217 echo "$ac_t""no" 1>&6
11222 extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
11223 echo " xemacs will be linked with \"realpath.o\""
11226 for ac_func in getloadavg
11228 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11229 echo "configure:11230: checking for $ac_func" >&5
11231 cat > conftest.$ac_ext <<EOF
11232 #line 11233 "configure"
11233 #include "confdefs.h"
11234 /* System header to define __stub macros and hopefully few prototypes,
11235 which can conflict with char $ac_func(); below. */
11236 #include <assert.h>
11237 /* Override any gcc2 internal prototype to avoid an error. */
11238 /* We use char because int might match the return type of a gcc2
11239 builtin and then its argument prototype would still apply. */
11244 /* The GNU C library defines this for functions which it implements
11245 to always fail with ENOSYS. Some functions are actually named
11246 something starting with __ and the normal name is an alias. */
11247 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11255 if { (eval echo configure:11256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11257 eval "ac_cv_func_$ac_func=yes"
11259 echo "configure: failed program was:" >&5
11260 cat conftest.$ac_ext >&5
11262 eval "ac_cv_func_$ac_func=no"
11266 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11267 echo "$ac_t""yes" 1>&6
11268 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11269 { test "$extra_verbose" = "yes" && cat << EOF
11270 Defining $ac_tr_func
11272 cat >> confdefs.h <<EOF
11273 #define $ac_tr_func 1
11278 echo "$ac_t""no" 1>&6
11283 if test "$ac_cv_func_getloadavg" = "yes"; then
11284 for ac_hdr in sys/loadavg.h
11286 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11287 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11288 echo "configure:11289: checking for $ac_hdr" >&5
11290 cat > conftest.$ac_ext <<EOF
11291 #line 11292 "configure"
11292 #include "confdefs.h"
11295 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11296 { (eval echo configure:11297: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11297 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11298 if test -z "$ac_err"; then
11300 eval "ac_cv_header_$ac_safe=yes"
11303 echo "configure: failed program was:" >&5
11304 cat conftest.$ac_ext >&5
11306 eval "ac_cv_header_$ac_safe=no"
11309 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11310 echo "$ac_t""yes" 1>&6
11311 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11312 { test "$extra_verbose" = "yes" && cat << EOF
11313 Defining $ac_tr_hdr
11315 cat >> confdefs.h <<EOF
11316 #define $ac_tr_hdr 1
11321 echo "$ac_t""no" 1>&6
11326 extra_objs="$extra_objs getloadavg.o" && if test "$extra_verbose" = "yes"; then
11327 echo " xemacs will be linked with \"getloadavg.o\""
11331 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
11332 echo "configure:11333: checking for kstat_open in -lkstat" >&5
11333 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
11335 xe_check_libs=" -lkstat "
11336 cat > conftest.$ac_ext <<EOF
11337 #line 11338 "configure"
11338 #include "confdefs.h"
11339 /* Override any gcc2 internal prototype to avoid an error. */
11340 /* We use char because int might match the return type of a gcc2
11341 builtin and then its argument prototype would still apply. */
11348 if { (eval echo configure:11349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11350 eval "ac_cv_lib_$ac_lib_var=yes"
11352 echo "configure: failed program was:" >&5
11353 cat conftest.$ac_ext >&5
11355 eval "ac_cv_lib_$ac_lib_var=no"
11360 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11361 echo "$ac_t""yes" 1>&6
11362 ac_tr_lib=HAVE_LIB`echo kstat | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11363 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11364 { test "$extra_verbose" = "yes" && cat << EOF
11365 Defining $ac_tr_lib
11367 cat >> confdefs.h <<EOF
11368 #define $ac_tr_lib 1
11372 LIBS="-lkstat $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkstat\" to \$LIBS"; fi
11375 echo "$ac_t""no" 1>&6
11379 for ac_hdr in kstat.h
11381 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11382 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11383 echo "configure:11384: checking for $ac_hdr" >&5
11385 cat > conftest.$ac_ext <<EOF
11386 #line 11387 "configure"
11387 #include "confdefs.h"
11390 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11391 { (eval echo configure:11392: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11392 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11393 if test -z "$ac_err"; then
11395 eval "ac_cv_header_$ac_safe=yes"
11398 echo "configure: failed program was:" >&5
11399 cat conftest.$ac_ext >&5
11401 eval "ac_cv_header_$ac_safe=no"
11404 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11405 echo "$ac_t""yes" 1>&6
11406 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11407 { test "$extra_verbose" = "yes" && cat << EOF
11408 Defining $ac_tr_hdr
11410 cat >> confdefs.h <<EOF
11411 #define $ac_tr_hdr 1
11416 echo "$ac_t""no" 1>&6
11422 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
11423 echo "configure:11424: checking for kvm_read in -lkvm" >&5
11424 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
11426 xe_check_libs=" -lkvm "
11427 cat > conftest.$ac_ext <<EOF
11428 #line 11429 "configure"
11429 #include "confdefs.h"
11430 /* Override any gcc2 internal prototype to avoid an error. */
11431 /* We use char because int might match the return type of a gcc2
11432 builtin and then its argument prototype would still apply. */
11439 if { (eval echo configure:11440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11441 eval "ac_cv_lib_$ac_lib_var=yes"
11443 echo "configure: failed program was:" >&5
11444 cat conftest.$ac_ext >&5
11446 eval "ac_cv_lib_$ac_lib_var=no"
11451 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11452 echo "$ac_t""yes" 1>&6
11453 ac_tr_lib=HAVE_LIB`echo kvm | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11454 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11455 { test "$extra_verbose" = "yes" && cat << EOF
11456 Defining $ac_tr_lib
11458 cat >> confdefs.h <<EOF
11459 #define $ac_tr_lib 1
11463 LIBS="-lkvm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkvm\" to \$LIBS"; fi
11466 echo "$ac_t""no" 1>&6
11472 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
11473 echo "configure:11474: checking whether netdb declares h_errno" >&5
11474 cat > conftest.$ac_ext <<EOF
11475 #line 11476 "configure"
11476 #include "confdefs.h"
11482 if { (eval echo configure:11483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11484 echo "$ac_t""yes" 1>&6
11485 { test "$extra_verbose" = "yes" && cat << \EOF
11486 Defining HAVE_H_ERRNO
11488 cat >> confdefs.h <<\EOF
11489 #define HAVE_H_ERRNO 1
11494 echo "configure: failed program was:" >&5
11495 cat conftest.$ac_ext >&5
11497 echo "$ac_t""no" 1>&6
11501 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
11502 echo "configure:11503: checking for sigsetjmp" >&5
11503 cat > conftest.$ac_ext <<EOF
11504 #line 11505 "configure"
11505 #include "confdefs.h"
11506 #include <setjmp.h>
11508 sigjmp_buf bar; sigsetjmp (bar, 0);
11511 if { (eval echo configure:11512: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11513 echo "$ac_t""yes" 1>&6
11514 { test "$extra_verbose" = "yes" && cat << \EOF
11515 Defining HAVE_SIGSETJMP
11517 cat >> confdefs.h <<\EOF
11518 #define HAVE_SIGSETJMP 1
11523 echo "configure: failed program was:" >&5
11524 cat conftest.$ac_ext >&5
11526 echo "$ac_t""no" 1>&6
11530 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
11531 echo "configure:11532: checking whether localtime caches TZ" >&5
11533 if test "$ac_cv_func_tzset" = "yes"; then
11534 cat > conftest.$ac_ext <<EOF
11535 #line 11536 "configure"
11536 #include "confdefs.h"
11539 # include <stdlib.h>
11541 extern char **environ;
11545 for (to = from = environ; (*to = *from); from++)
11546 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
11549 char TZ_GMT0[] = "TZ=GMT0";
11550 char TZ_PST8[] = "TZ=PST8";
11553 time_t now = time ((time_t *) 0);
11554 int hour_GMT0, hour_unset;
11555 if (putenv (TZ_GMT0) != 0)
11557 hour_GMT0 = localtime (&now)->tm_hour;
11559 hour_unset = localtime (&now)->tm_hour;
11560 if (putenv (TZ_PST8) != 0)
11562 if (localtime (&now)->tm_hour == hour_GMT0)
11565 if (localtime (&now)->tm_hour != hour_unset)
11570 if { (eval echo configure:11571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11572 emacs_cv_localtime_cache=no
11575 echo "configure: failed program was:" >&5
11576 cat conftest.$ac_ext >&5
11578 emacs_cv_localtime_cache=yes
11582 # If we lack tzset, report that localtime does not cache TZ,
11583 # since we can't invalidate the cache if we don't have tzset.
11584 emacs_cv_localtime_cache=no
11586 echo "$ac_t""$emacs_cv_localtime_cache" 1>&6
11587 if test $emacs_cv_localtime_cache = yes; then
11588 { test "$extra_verbose" = "yes" && cat << \EOF
11589 Defining LOCALTIME_CACHE
11591 cat >> confdefs.h <<\EOF
11592 #define LOCALTIME_CACHE 1
11598 if test "$HAVE_TIMEVAL" = "yes"; then
11599 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6
11600 echo "configure:11601: checking whether gettimeofday accepts one or two arguments" >&5
11601 cat > conftest.$ac_ext <<EOF
11602 #line 11603 "configure"
11603 #include "confdefs.h"
11605 #ifdef TIME_WITH_SYS_TIME
11606 #include <sys/time.h>
11609 #ifdef HAVE_SYS_TIME_H
11610 #include <sys/time.h>
11618 struct timeval time;
11619 gettimeofday (&time, 0);
11623 if { (eval echo configure:11624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11625 echo "$ac_t""two" 1>&6
11627 echo "configure: failed program was:" >&5
11628 cat conftest.$ac_ext >&5
11630 echo "$ac_t""one" 1>&6
11631 { test "$extra_verbose" = "yes" && cat << \EOF
11632 Defining GETTIMEOFDAY_ONE_ARGUMENT
11634 cat >> confdefs.h <<\EOF
11635 #define GETTIMEOFDAY_ONE_ARGUMENT 1
11644 echo $ac_n "checking for inline""... $ac_c" 1>&6
11645 echo "configure:11646: checking for inline" >&5
11648 for ac_kw in inline __inline__ __inline; do
11649 cat > conftest.$ac_ext <<EOF
11650 #line 11651 "configure"
11651 #include "confdefs.h"
11657 if { (eval echo configure:11658: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11659 ac_cv_c_inline=$ac_kw; break
11661 echo "configure: failed program was:" >&5
11662 cat conftest.$ac_ext >&5
11668 echo "$ac_t""$ac_cv_c_inline" 1>&6
11669 case "$ac_cv_c_inline" in
11671 no) { test "$extra_verbose" = "yes" && cat << \EOF
11674 cat >> confdefs.h <<\EOF
11679 *) { test "$extra_verbose" = "yes" && cat << EOF
11680 Defining inline = $ac_cv_c_inline
11682 cat >> confdefs.h <<EOF
11683 #define inline $ac_cv_c_inline
11689 test "$ac_cv_c_inline" != "no" -a "$GCC" = "yes" && extra_objs="$extra_objs inline.o" && if test "$extra_verbose" = "yes"; then
11690 echo " xemacs will be linked with \"inline.o\""
11694 if test "$__DECC" != "yes"; then
11695 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11696 # for constant arguments. Useless!
11697 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
11698 echo "configure:11699: checking for working alloca.h" >&5
11700 cat > conftest.$ac_ext <<EOF
11701 #line 11702 "configure"
11702 #include "confdefs.h"
11703 #include <alloca.h>
11705 char *p = alloca(2 * sizeof(int));
11708 if { (eval echo configure:11709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11710 ac_cv_header_alloca_h=yes
11712 echo "configure: failed program was:" >&5
11713 cat conftest.$ac_ext >&5
11715 ac_cv_header_alloca_h=no
11719 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
11720 if test $ac_cv_header_alloca_h = yes; then
11721 { test "$extra_verbose" = "yes" && cat << \EOF
11722 Defining HAVE_ALLOCA_H
11724 cat >> confdefs.h <<\EOF
11725 #define HAVE_ALLOCA_H 1
11731 echo $ac_n "checking for alloca""... $ac_c" 1>&6
11732 echo "configure:11733: checking for alloca" >&5
11734 cat > conftest.$ac_ext <<EOF
11735 #line 11736 "configure"
11736 #include "confdefs.h"
11739 # define alloca __builtin_alloca
11742 # include <malloc.h>
11743 # define alloca _alloca
11746 # include <alloca.h>
11751 # ifndef alloca /* predefined by HP cc +Olibcalls */
11760 char *p = (char *) alloca(1);
11763 if { (eval echo configure:11764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11765 ac_cv_func_alloca_works=yes
11767 echo "configure: failed program was:" >&5
11768 cat conftest.$ac_ext >&5
11770 ac_cv_func_alloca_works=no
11774 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
11775 if test $ac_cv_func_alloca_works = yes; then
11776 { test "$extra_verbose" = "yes" && cat << \EOF
11777 Defining HAVE_ALLOCA
11779 cat >> confdefs.h <<\EOF
11780 #define HAVE_ALLOCA 1
11786 if test $ac_cv_func_alloca_works = no; then
11787 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11788 # that cause trouble. Some versions do not even contain alloca or
11789 # contain a buggy version. If you still want to use their alloca,
11790 # use ar to extract alloca.o from them instead of compiling alloca.c.
11791 ALLOCA=alloca.${ac_objext}
11792 { test "$extra_verbose" = "yes" && cat << \EOF
11795 cat >> confdefs.h <<\EOF
11801 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
11802 echo "configure:11803: checking whether alloca needs Cray hooks" >&5
11804 cat > conftest.$ac_ext <<EOF
11805 #line 11806 "configure"
11806 #include "confdefs.h"
11807 #if defined(CRAY) && ! defined(CRAY2)
11814 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11815 egrep "webecray" >/dev/null 2>&1; then
11825 echo "$ac_t""$ac_cv_os_cray" 1>&6
11826 if test $ac_cv_os_cray = yes; then
11827 for ac_func in _getb67 GETB67 getb67; do
11828 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11829 echo "configure:11830: checking for $ac_func" >&5
11831 cat > conftest.$ac_ext <<EOF
11832 #line 11833 "configure"
11833 #include "confdefs.h"
11834 /* System header to define __stub macros and hopefully few prototypes,
11835 which can conflict with char $ac_func(); below. */
11836 #include <assert.h>
11837 /* Override any gcc2 internal prototype to avoid an error. */
11838 /* We use char because int might match the return type of a gcc2
11839 builtin and then its argument prototype would still apply. */
11844 /* The GNU C library defines this for functions which it implements
11845 to always fail with ENOSYS. Some functions are actually named
11846 something starting with __ and the normal name is an alias. */
11847 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11855 if { (eval echo configure:11856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11857 eval "ac_cv_func_$ac_func=yes"
11859 echo "configure: failed program was:" >&5
11860 cat conftest.$ac_ext >&5
11862 eval "ac_cv_func_$ac_func=no"
11866 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11867 echo "$ac_t""yes" 1>&6
11868 { test "$extra_verbose" = "yes" && cat << EOF
11869 Defining CRAY_STACKSEG_END = $ac_func
11871 cat >> confdefs.h <<EOF
11872 #define CRAY_STACKSEG_END $ac_func
11878 echo "$ac_t""no" 1>&6
11884 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
11885 echo "configure:11886: checking stack direction for C alloca" >&5
11887 cat > conftest.$ac_ext <<EOF
11888 #line 11889 "configure"
11889 #include "confdefs.h"
11890 find_stack_direction ()
11892 static char *addr = 0;
11897 return find_stack_direction ();
11900 return (&dummy > addr) ? 1 : -1;
11904 exit (find_stack_direction() < 0);
11907 if { (eval echo configure:11908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11909 ac_cv_c_stack_direction=1
11912 echo "configure: failed program was:" >&5
11913 cat conftest.$ac_ext >&5
11915 ac_cv_c_stack_direction=-1
11919 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
11920 { test "$extra_verbose" = "yes" && cat << EOF
11921 Defining STACK_DIRECTION = $ac_cv_c_stack_direction
11923 cat >> confdefs.h <<EOF
11924 #define STACK_DIRECTION $ac_cv_c_stack_direction
11930 test -n "$ALLOCA" && extra_objs="$extra_objs $ALLOCA" && if test "$extra_verbose" = "yes"; then
11931 echo " xemacs will be linked with \"$ALLOCA\""
11935 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
11936 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
11937 echo "configure:11938: checking for vfork.h" >&5
11939 cat > conftest.$ac_ext <<EOF
11940 #line 11941 "configure"
11941 #include "confdefs.h"
11944 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11945 { (eval echo configure:11946: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11946 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11947 if test -z "$ac_err"; then
11949 eval "ac_cv_header_$ac_safe=yes"
11952 echo "configure: failed program was:" >&5
11953 cat conftest.$ac_ext >&5
11955 eval "ac_cv_header_$ac_safe=no"
11958 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11959 echo "$ac_t""yes" 1>&6
11960 { test "$extra_verbose" = "yes" && cat << \EOF
11961 Defining HAVE_VFORK_H
11963 cat >> confdefs.h <<\EOF
11964 #define HAVE_VFORK_H 1
11969 echo "$ac_t""no" 1>&6
11972 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
11973 echo "configure:11974: checking for working vfork" >&5
11975 cat > conftest.$ac_ext <<EOF
11976 #line 11977 "configure"
11977 #include "confdefs.h"
11978 /* Thanks to Paul Eggert for this test. */
11980 #include <sys/types.h>
11981 #include <sys/stat.h>
11982 #ifdef HAVE_UNISTD_H
11983 #include <unistd.h>
11985 #ifdef HAVE_VFORK_H
11988 /* On some sparc systems, changes by the child to local and incoming
11989 argument registers are propagated back to the parent.
11990 The compiler is told about this with #include <vfork.h>,
11991 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
11992 Test for this by using a static variable whose address
11993 is put into a register that is clobbered by the vfork. */
11996 sparc_address_test (int arg)
11998 sparc_address_test (arg) int arg;
12001 static pid_t child;
12016 pid_t parent = getpid ();
12019 sparc_address_test ();
12024 /* Here is another test for sparc vfork register problems.
12025 This test uses lots of local variables, at least
12026 as many local variables as main has allocated so far
12027 including compiler temporaries. 4 locals are enough for
12028 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
12029 A buggy compiler should reuse the register of parent
12030 for one of the local variables, since it will think that
12031 parent can't possibly be used any more in this routine.
12032 Assigning to the local variable will thus munge parent
12033 in the parent process. */
12035 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12036 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12037 /* Convince the compiler that p..p7 are live; otherwise, it might
12038 use the same hardware register for all 8 local variables. */
12039 if (p != p1 || p != p2 || p != p3 || p != p4
12040 || p != p5 || p != p6 || p != p7)
12043 /* On some systems (e.g. IRIX 3.3),
12044 vfork doesn't separate parent from child file descriptors.
12045 If the child closes a descriptor before it execs or exits,
12046 this munges the parent's descriptor as well.
12047 Test for this by closing stdout in the child. */
12048 _exit(close(fileno(stdout)) != 0);
12053 while (wait(&status) != child)
12056 /* Was there some problem with vforking? */
12059 /* Did the child fail? (This shouldn't happen.) */
12062 /* Did the vfork/compiler bug occur? */
12063 || parent != getpid()
12065 /* Did the file descriptor bug occur? */
12066 || fstat(fileno(stdout), &st) != 0
12071 if { (eval echo configure:12072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12073 ac_cv_func_vfork_works=yes
12076 echo "configure: failed program was:" >&5
12077 cat conftest.$ac_ext >&5
12079 ac_cv_func_vfork_works=no
12083 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
12084 if test $ac_cv_func_vfork_works = no; then
12085 { test "$extra_verbose" = "yes" && cat << \EOF
12086 Defining vfork = fork
12088 cat >> confdefs.h <<\EOF
12096 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
12097 echo "configure:12098: checking for working strcoll" >&5
12099 cat > conftest.$ac_ext <<EOF
12100 #line 12101 "configure"
12101 #include "confdefs.h"
12102 #include <string.h>
12105 exit (strcoll ("abc", "def") >= 0 ||
12106 strcoll ("ABC", "DEF") >= 0 ||
12107 strcoll ("123", "456") >= 0);
12110 if { (eval echo configure:12111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12112 ac_cv_func_strcoll_works=yes
12115 echo "configure: failed program was:" >&5
12116 cat conftest.$ac_ext >&5
12118 ac_cv_func_strcoll_works=no
12122 echo "$ac_t""$ac_cv_func_strcoll_works" 1>&6
12123 if test $ac_cv_func_strcoll_works = yes; then
12124 { test "$extra_verbose" = "yes" && cat << \EOF
12125 Defining HAVE_STRCOLL
12127 cat >> confdefs.h <<\EOF
12128 #define HAVE_STRCOLL 1
12135 for ac_func in getpgrp
12137 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12138 echo "configure:12139: checking for $ac_func" >&5
12140 cat > conftest.$ac_ext <<EOF
12141 #line 12142 "configure"
12142 #include "confdefs.h"
12143 /* System header to define __stub macros and hopefully few prototypes,
12144 which can conflict with char $ac_func(); below. */
12145 #include <assert.h>
12146 /* Override any gcc2 internal prototype to avoid an error. */
12147 /* We use char because int might match the return type of a gcc2
12148 builtin and then its argument prototype would still apply. */
12153 /* The GNU C library defines this for functions which it implements
12154 to always fail with ENOSYS. Some functions are actually named
12155 something starting with __ and the normal name is an alias. */
12156 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12164 if { (eval echo configure:12165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12166 eval "ac_cv_func_$ac_func=yes"
12168 echo "configure: failed program was:" >&5
12169 cat conftest.$ac_ext >&5
12171 eval "ac_cv_func_$ac_func=no"
12175 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12176 echo "$ac_t""yes" 1>&6
12177 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12178 { test "$extra_verbose" = "yes" && cat << EOF
12179 Defining $ac_tr_func
12181 cat >> confdefs.h <<EOF
12182 #define $ac_tr_func 1
12187 echo "$ac_t""no" 1>&6
12191 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
12192 echo "configure:12193: checking whether getpgrp takes no argument" >&5
12194 cat > conftest.$ac_ext <<EOF
12195 #line 12196 "configure"
12196 #include "confdefs.h"
12199 * If this system has a BSD-style getpgrp(),
12200 * which takes a pid argument, exit unsuccessfully.
12202 * Snarfed from Chet Ramey's bash pgrp.c test program
12205 #include <sys/types.h>
12208 int pg1, pg2, pg3, pg4;
12209 int ng, np, s, child;
12216 pg3 = getpgrp(pid);
12220 * If all of these values are the same, it's pretty sure that
12221 * we're on a system that ignores getpgrp's first argument.
12223 if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3)
12229 else if (child == 0) {
12232 * If this is Sys V, this will not work; pgrp will be
12233 * set to np because setpgrp just changes a pgrp to be
12234 * the same as the pid.
12237 ng = getpgrp(0); /* Same result for Sys V and BSD */
12250 if { (eval echo configure:12251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12252 ac_cv_func_getpgrp_void=yes
12255 echo "configure: failed program was:" >&5
12256 cat conftest.$ac_ext >&5
12258 ac_cv_func_getpgrp_void=no
12263 echo "$ac_t""$ac_cv_func_getpgrp_void" 1>&6
12264 if test $ac_cv_func_getpgrp_void = yes; then
12265 { test "$extra_verbose" = "yes" && cat << \EOF
12266 Defining GETPGRP_VOID
12268 cat >> confdefs.h <<\EOF
12269 #define GETPGRP_VOID 1
12276 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
12277 echo "configure:12278: checking for working mmap" >&5
12278 case "$opsys" in ultrix* ) have_mmap=no ;; *)
12279 cat > conftest.$ac_ext <<EOF
12280 #line 12281 "configure"
12281 #include "confdefs.h"
12283 #include <unistd.h>
12285 #include <sys/mman.h>
12287 #ifndef MAP_VARIABLE
12288 #define MAP_VARIABLE 0
12292 #define MAP_FAILED -1
12295 int main (int argc, char *argv[])
12299 #ifndef MAP_ANONYMOUS
12300 fd = open ("/dev/zero", O_RDWR);
12303 #define MAP_ANONYMOUS 0
12305 if (mmap(0, 1024, PROT_READ | PROT_WRITE,
12306 MAP_PRIVATE | MAP_VARIABLE | MAP_ANONYMOUS,
12307 fd, 0) != (void *) MAP_FAILED)
12309 perror ("conftest: mmap failed");
12313 if { (eval echo configure:12314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12318 echo "configure: failed program was:" >&5
12319 cat conftest.$ac_ext >&5
12323 rm -fr conftest* ;;
12325 echo "$ac_t""$have_mmap" 1>&6
12326 test "$have_mmap" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
12329 cat >> confdefs.h <<\EOF
12330 #define HAVE_MMAP 1
12335 case "$opsys" in cygwin*)
12336 test "$rel_alloc" = "default" && rel_alloc=no ;;
12338 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no
12339 if test "$rel_alloc $have_mmap" = "default yes"; then
12340 if test "$doug_lea_malloc" = "yes"; then
12341 echo $ac_n "checking for M_MMAP_THRESHOLD""... $ac_c" 1>&6
12342 echo "configure:12343: checking for M_MMAP_THRESHOLD" >&5
12343 cat > conftest.$ac_ext <<EOF
12344 #line 12345 "configure"
12345 #include "confdefs.h"
12346 #include <malloc.h>
12349 #ifndef M_MMAP_THRESHOLD
12350 #error No M_MMAP_THRESHOLD :-(
12351 !@+$%^&*_)(_ - unlikely to compile...
12356 if { (eval echo configure:12357: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12358 rel_alloc=no; echo "$ac_t""yes" 1>&6;
12360 echo "configure: failed program was:" >&5
12361 cat conftest.$ac_ext >&5
12363 rel_alloc=yes; echo "$ac_t""no" 1>&6;
12370 test "$rel_alloc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
12373 cat >> confdefs.h <<\EOF
12374 #define REL_ALLOC 1
12379 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
12380 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
12381 echo "configure:12382: checking for termios.h" >&5
12383 cat > conftest.$ac_ext <<EOF
12384 #line 12385 "configure"
12385 #include "confdefs.h"
12386 #include <termios.h>
12388 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12389 { (eval echo configure:12390: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12390 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12391 if test -z "$ac_err"; then
12393 eval "ac_cv_header_$ac_safe=yes"
12396 echo "configure: failed program was:" >&5
12397 cat conftest.$ac_ext >&5
12399 eval "ac_cv_header_$ac_safe=no"
12402 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12403 echo "$ac_t""yes" 1>&6
12404 { test "$extra_verbose" = "yes" && cat << \EOF
12405 Defining HAVE_TERMIOS
12407 cat >> confdefs.h <<\EOF
12408 #define HAVE_TERMIOS 1
12412 { test "$extra_verbose" = "yes" && cat << \EOF
12413 Defining SIGNALS_VIA_CHARACTERS
12415 cat >> confdefs.h <<\EOF
12416 #define SIGNALS_VIA_CHARACTERS 1
12420 { test "$extra_verbose" = "yes" && cat << \EOF
12423 cat >> confdefs.h <<\EOF
12424 #define NO_TERMIO 1
12429 echo "$ac_t""no" 1>&6
12430 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
12431 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
12432 echo "configure:12433: checking for termio.h" >&5
12434 cat > conftest.$ac_ext <<EOF
12435 #line 12436 "configure"
12436 #include "confdefs.h"
12437 #include <termio.h>
12439 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12440 { (eval echo configure:12441: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12441 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12442 if test -z "$ac_err"; then
12444 eval "ac_cv_header_$ac_safe=yes"
12447 echo "configure: failed program was:" >&5
12448 cat conftest.$ac_ext >&5
12450 eval "ac_cv_header_$ac_safe=no"
12453 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12454 echo "$ac_t""yes" 1>&6
12455 { test "$extra_verbose" = "yes" && cat << \EOF
12456 Defining HAVE_TERMIO
12458 cat >> confdefs.h <<\EOF
12459 #define HAVE_TERMIO 1
12464 echo "$ac_t""no" 1>&6
12471 echo $ac_n "checking for socket""... $ac_c" 1>&6
12472 echo "configure:12473: checking for socket" >&5
12474 cat > conftest.$ac_ext <<EOF
12475 #line 12476 "configure"
12476 #include "confdefs.h"
12477 /* System header to define __stub macros and hopefully few prototypes,
12478 which can conflict with char socket(); below. */
12479 #include <assert.h>
12480 /* Override any gcc2 internal prototype to avoid an error. */
12481 /* We use char because int might match the return type of a gcc2
12482 builtin and then its argument prototype would still apply. */
12487 /* The GNU C library defines this for functions which it implements
12488 to always fail with ENOSYS. Some functions are actually named
12489 something starting with __ and the normal name is an alias. */
12490 #if defined (__stub_socket) || defined (__stub___socket)
12498 if { (eval echo configure:12499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12500 eval "ac_cv_func_socket=yes"
12502 echo "configure: failed program was:" >&5
12503 cat conftest.$ac_ext >&5
12505 eval "ac_cv_func_socket=no"
12509 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
12510 echo "$ac_t""yes" 1>&6
12511 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
12512 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
12513 echo "configure:12514: checking for netinet/in.h" >&5
12515 cat > conftest.$ac_ext <<EOF
12516 #line 12517 "configure"
12517 #include "confdefs.h"
12518 #include <netinet/in.h>
12520 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12521 { (eval echo configure:12522: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12522 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12523 if test -z "$ac_err"; then
12525 eval "ac_cv_header_$ac_safe=yes"
12528 echo "configure: failed program was:" >&5
12529 cat conftest.$ac_ext >&5
12531 eval "ac_cv_header_$ac_safe=no"
12534 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12535 echo "$ac_t""yes" 1>&6
12536 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
12537 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
12538 echo "configure:12539: checking for arpa/inet.h" >&5
12540 cat > conftest.$ac_ext <<EOF
12541 #line 12542 "configure"
12542 #include "confdefs.h"
12543 #include <arpa/inet.h>
12545 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12546 { (eval echo configure:12547: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12547 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12548 if test -z "$ac_err"; then
12550 eval "ac_cv_header_$ac_safe=yes"
12553 echo "configure: failed program was:" >&5
12554 cat conftest.$ac_ext >&5
12556 eval "ac_cv_header_$ac_safe=no"
12559 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12560 echo "$ac_t""yes" 1>&6
12562 { test "$extra_verbose" = "yes" && cat << \EOF
12563 Defining HAVE_SOCKETS
12565 cat >> confdefs.h <<\EOF
12566 #define HAVE_SOCKETS 1
12570 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
12571 echo "configure:12572: checking "for sun_len member in struct sockaddr_un"" >&5
12572 cat > conftest.$ac_ext <<EOF
12573 #line 12574 "configure"
12574 #include "confdefs.h"
12576 #include <sys/types.h>
12577 #include <sys/socket.h>
12578 #include <sys/un.h>
12581 static struct sockaddr_un x; x.sun_len = 1;
12584 if { (eval echo configure:12585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12586 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
12587 Defining HAVE_SOCKADDR_SUN_LEN
12589 cat >> confdefs.h <<\EOF
12590 #define HAVE_SOCKADDR_SUN_LEN 1
12595 echo "configure: failed program was:" >&5
12596 cat conftest.$ac_ext >&5
12598 echo "$ac_t""no" 1>&6
12601 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6
12602 echo "configure:12603: checking "for ip_mreq struct in netinet/in.h"" >&5
12603 cat > conftest.$ac_ext <<EOF
12604 #line 12605 "configure"
12605 #include "confdefs.h"
12607 #include <sys/types.h>
12608 #include <netinet/in.h>
12611 static struct ip_mreq x;
12614 if { (eval echo configure:12615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12616 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
12617 Defining HAVE_MULTICAST
12619 cat >> confdefs.h <<\EOF
12620 #define HAVE_MULTICAST 1
12625 echo "configure: failed program was:" >&5
12626 cat conftest.$ac_ext >&5
12628 echo "$ac_t""no" 1>&6
12632 echo "$ac_t""no" 1>&6
12636 echo "$ac_t""no" 1>&6
12640 echo "$ac_t""no" 1>&6
12644 echo $ac_n "checking for msgget""... $ac_c" 1>&6
12645 echo "configure:12646: checking for msgget" >&5
12647 cat > conftest.$ac_ext <<EOF
12648 #line 12649 "configure"
12649 #include "confdefs.h"
12650 /* System header to define __stub macros and hopefully few prototypes,
12651 which can conflict with char msgget(); below. */
12652 #include <assert.h>
12653 /* Override any gcc2 internal prototype to avoid an error. */
12654 /* We use char because int might match the return type of a gcc2
12655 builtin and then its argument prototype would still apply. */
12660 /* The GNU C library defines this for functions which it implements
12661 to always fail with ENOSYS. Some functions are actually named
12662 something starting with __ and the normal name is an alias. */
12663 #if defined (__stub_msgget) || defined (__stub___msgget)
12671 if { (eval echo configure:12672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12673 eval "ac_cv_func_msgget=yes"
12675 echo "configure: failed program was:" >&5
12676 cat conftest.$ac_ext >&5
12678 eval "ac_cv_func_msgget=no"
12682 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
12683 echo "$ac_t""yes" 1>&6
12684 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
12685 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
12686 echo "configure:12687: checking for sys/ipc.h" >&5
12688 cat > conftest.$ac_ext <<EOF
12689 #line 12690 "configure"
12690 #include "confdefs.h"
12691 #include <sys/ipc.h>
12693 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12694 { (eval echo configure:12695: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12695 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12696 if test -z "$ac_err"; then
12698 eval "ac_cv_header_$ac_safe=yes"
12701 echo "configure: failed program was:" >&5
12702 cat conftest.$ac_ext >&5
12704 eval "ac_cv_header_$ac_safe=no"
12707 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12708 echo "$ac_t""yes" 1>&6
12709 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
12710 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
12711 echo "configure:12712: checking for sys/msg.h" >&5
12713 cat > conftest.$ac_ext <<EOF
12714 #line 12715 "configure"
12715 #include "confdefs.h"
12716 #include <sys/msg.h>
12718 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12719 { (eval echo configure:12720: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12720 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12721 if test -z "$ac_err"; then
12723 eval "ac_cv_header_$ac_safe=yes"
12726 echo "configure: failed program was:" >&5
12727 cat conftest.$ac_ext >&5
12729 eval "ac_cv_header_$ac_safe=no"
12732 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12733 echo "$ac_t""yes" 1>&6
12734 { test "$extra_verbose" = "yes" && cat << \EOF
12735 Defining HAVE_SYSVIPC
12737 cat >> confdefs.h <<\EOF
12738 #define HAVE_SYSVIPC 1
12743 echo "$ac_t""no" 1>&6
12747 echo "$ac_t""no" 1>&6
12751 echo "$ac_t""no" 1>&6
12755 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
12756 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
12757 echo "configure:12758: checking for dirent.h" >&5
12759 cat > conftest.$ac_ext <<EOF
12760 #line 12761 "configure"
12761 #include "confdefs.h"
12762 #include <dirent.h>
12764 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12765 { (eval echo configure:12766: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12766 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12767 if test -z "$ac_err"; then
12769 eval "ac_cv_header_$ac_safe=yes"
12772 echo "configure: failed program was:" >&5
12773 cat conftest.$ac_ext >&5
12775 eval "ac_cv_header_$ac_safe=no"
12778 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12779 echo "$ac_t""yes" 1>&6
12780 { test "$extra_verbose" = "yes" && cat << \EOF
12781 Defining SYSV_SYSTEM_DIR
12783 cat >> confdefs.h <<\EOF
12784 #define SYSV_SYSTEM_DIR 1
12789 echo "$ac_t""no" 1>&6
12790 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
12791 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
12792 echo "configure:12793: checking for sys/dir.h" >&5
12794 cat > conftest.$ac_ext <<EOF
12795 #line 12796 "configure"
12796 #include "confdefs.h"
12797 #include <sys/dir.h>
12799 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12800 { (eval echo configure:12801: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12801 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12802 if test -z "$ac_err"; then
12804 eval "ac_cv_header_$ac_safe=yes"
12807 echo "configure: failed program was:" >&5
12808 cat conftest.$ac_ext >&5
12810 eval "ac_cv_header_$ac_safe=no"
12813 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12814 echo "$ac_t""yes" 1>&6
12817 echo "$ac_t""no" 1>&6
12818 { test "$extra_verbose" = "yes" && cat << \EOF
12819 Defining NONSYSTEM_DIR_LIBRARY
12821 cat >> confdefs.h <<\EOF
12822 #define NONSYSTEM_DIR_LIBRARY 1
12831 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
12832 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
12833 echo "configure:12834: checking for nlist.h" >&5
12835 cat > conftest.$ac_ext <<EOF
12836 #line 12837 "configure"
12837 #include "confdefs.h"
12840 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12841 { (eval echo configure:12842: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12842 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12843 if test -z "$ac_err"; then
12845 eval "ac_cv_header_$ac_safe=yes"
12848 echo "configure: failed program was:" >&5
12849 cat conftest.$ac_ext >&5
12851 eval "ac_cv_header_$ac_safe=no"
12854 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12855 echo "$ac_t""yes" 1>&6
12856 { test "$extra_verbose" = "yes" && cat << \EOF
12857 Defining NLIST_STRUCT
12859 cat >> confdefs.h <<\EOF
12860 #define NLIST_STRUCT 1
12865 echo "$ac_t""no" 1>&6
12870 echo "checking "for sound support"" 1>&6
12871 echo "configure:12872: checking "for sound support"" >&5
12872 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
12874 if test "$with_native_sound" != "no"; then
12875 if test -n "$native_sound_lib"; then
12876 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
12877 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
12878 echo "configure:12879: checking for multimedia/audio_device.h" >&5
12880 cat > conftest.$ac_ext <<EOF
12881 #line 12882 "configure"
12882 #include "confdefs.h"
12883 #include <multimedia/audio_device.h>
12885 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12886 { (eval echo configure:12887: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12887 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12888 if test -z "$ac_err"; then
12890 eval "ac_cv_header_$ac_safe=yes"
12893 echo "configure: failed program was:" >&5
12894 cat conftest.$ac_ext >&5
12896 eval "ac_cv_header_$ac_safe=no"
12899 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12900 echo "$ac_t""yes" 1>&6
12901 sound_found=yes sound_cflags=""
12902 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
12903 echo " xemacs will be linked with \"sunplay.o\""
12906 echo "$ac_t""no" 1>&6
12911 if test -z "$sound_found" -a -d "/usr/demo/SOUND"; then
12913 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
12914 echo " xemacs will be linked with \"sunplay.o\""
12916 if test -d "/usr/demo/SOUND/include"
12917 then sound_cflags="-I/usr/demo/SOUND/include"
12918 else sound_cflags="-I/usr/demo/SOUND"
12920 if test -z "$native_sound_lib" ; then
12921 if test -r "/usr/demo/SOUND/lib/libaudio.a"
12922 then native_sound_lib="/usr/demo/SOUND/lib/libaudio.a"
12923 else native_sound_lib="/usr/demo/SOUND/libaudio.a"
12928 if test -z "$sound_found"; then
12929 case "$canonical" in
12931 if test -z "$native_sound_lib"; then
12933 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
12934 echo "configure:12935: checking for ALopenport in -laudio" >&5
12935 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
12937 xe_check_libs=" -laudio "
12938 cat > conftest.$ac_ext <<EOF
12939 #line 12940 "configure"
12940 #include "confdefs.h"
12941 /* Override any gcc2 internal prototype to avoid an error. */
12942 /* We use char because int might match the return type of a gcc2
12943 builtin and then its argument prototype would still apply. */
12950 if { (eval echo configure:12951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12952 eval "ac_cv_lib_$ac_lib_var=yes"
12954 echo "configure: failed program was:" >&5
12955 cat conftest.$ac_ext >&5
12957 eval "ac_cv_lib_$ac_lib_var=no"
12962 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12963 echo "$ac_t""yes" 1>&6
12964 native_sound_lib="-laudio"
12966 echo "$ac_t""no" 1>&6
12971 if test -n "$native_sound_lib"; then
12972 sound_found=yes sound_cflags=""
12973 extra_objs="$extra_objs sgiplay.o" && if test "$extra_verbose" = "yes"; then
12974 echo " xemacs will be linked with \"sgiplay.o\""
12978 if test -z "$native_sound_lib"; then
12980 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
12981 echo "configure:12982: checking for AOpenAudio in -lAlib" >&5
12982 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
12984 xe_check_libs=" -lAlib "
12985 cat > conftest.$ac_ext <<EOF
12986 #line 12987 "configure"
12987 #include "confdefs.h"
12988 /* Override any gcc2 internal prototype to avoid an error. */
12989 /* We use char because int might match the return type of a gcc2
12990 builtin and then its argument prototype would still apply. */
12997 if { (eval echo configure:12998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12999 eval "ac_cv_lib_$ac_lib_var=yes"
13001 echo "configure: failed program was:" >&5
13002 cat conftest.$ac_ext >&5
13004 eval "ac_cv_lib_$ac_lib_var=no"
13009 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13010 echo "$ac_t""yes" 1>&6
13011 native_sound_lib="-lAlib"
13013 echo "$ac_t""no" 1>&6
13018 if test -n "$native_sound_lib"; then
13020 extra_objs="$extra_objs hpplay.o" && if test "$extra_verbose" = "yes"; then
13021 echo " xemacs will be linked with \"hpplay.o\""
13023 if test "$GCC" = "yes" # Kludge city
13024 then sound_cflags="-Dconst= -Dvolatile= -I/usr/audio/examples"
13025 else sound_cflags="+e -I/usr/audio/examples"
13031 if test -z "$sound_found"; then
13032 if test "$with_msw" = "yes"; then
13038 if test -z "$sound_found"; then
13039 for dir in "machine" "sys" "linux"; do
13040 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
13041 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
13042 echo "configure:13043: checking for ${dir}/soundcard.h" >&5
13044 cat > conftest.$ac_ext <<EOF
13045 #line 13046 "configure"
13046 #include "confdefs.h"
13047 #include <${dir}/soundcard.h>
13049 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13050 { (eval echo configure:13051: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13051 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13052 if test -z "$ac_err"; then
13054 eval "ac_cv_header_$ac_safe=yes"
13057 echo "configure: failed program was:" >&5
13058 cat conftest.$ac_ext >&5
13060 eval "ac_cv_header_$ac_safe=no"
13063 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13064 echo "$ac_t""yes" 1>&6
13067 extra_objs="$extra_objs linuxplay.o" && if test "$extra_verbose" = "yes"; then
13068 echo " xemacs will be linked with \"linuxplay.o\""
13070 { test "$extra_verbose" = "yes" && cat << EOF
13071 Defining SOUNDCARD_H_FILE = "${dir}/soundcard.h"
13073 cat >> confdefs.h <<EOF
13074 #define SOUNDCARD_H_FILE "${dir}/soundcard.h"
13080 echo "$ac_t""no" 1>&6
13086 test "$sound_found" = "yes" && with_native_sound=yes
13089 if test "$with_native_sound" = "yes"; then
13090 { test "$extra_verbose" = "yes" && cat << \EOF
13091 Defining HAVE_NATIVE_SOUND
13093 cat >> confdefs.h <<\EOF
13094 #define HAVE_NATIVE_SOUND 1
13098 test -n "$native_sound_lib" && LIBS="$native_sound_lib $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$native_sound_lib\" to \$LIBS"; fi
13101 if test "$with_nas_sound" != "no"; then
13102 ac_safe=`echo "audio/audiolib.h" | sed 'y%./+-%__p_%'`
13103 echo $ac_n "checking for audio/audiolib.h""... $ac_c" 1>&6
13104 echo "configure:13105: checking for audio/audiolib.h" >&5
13106 cat > conftest.$ac_ext <<EOF
13107 #line 13108 "configure"
13108 #include "confdefs.h"
13109 #include <audio/audiolib.h>
13111 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13112 { (eval echo configure:13113: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13113 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13114 if test -z "$ac_err"; then
13116 eval "ac_cv_header_$ac_safe=yes"
13119 echo "configure: failed program was:" >&5
13120 cat conftest.$ac_ext >&5
13122 eval "ac_cv_header_$ac_safe=no"
13125 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13126 echo "$ac_t""yes" 1>&6
13129 echo $ac_n "checking for AuOpenServer in -laudio""... $ac_c" 1>&6
13130 echo "configure:13131: checking for AuOpenServer in -laudio" >&5
13131 ac_lib_var=`echo audio'_'AuOpenServer | sed 'y%./+-%__p_%'`
13133 xe_check_libs=" -laudio "
13134 cat > conftest.$ac_ext <<EOF
13135 #line 13136 "configure"
13136 #include "confdefs.h"
13137 /* Override any gcc2 internal prototype to avoid an error. */
13138 /* We use char because int might match the return type of a gcc2
13139 builtin and then its argument prototype would still apply. */
13140 char AuOpenServer();
13146 if { (eval echo configure:13147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13148 eval "ac_cv_lib_$ac_lib_var=yes"
13150 echo "configure: failed program was:" >&5
13151 cat conftest.$ac_ext >&5
13153 eval "ac_cv_lib_$ac_lib_var=no"
13158 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13159 echo "$ac_t""yes" 1>&6
13162 echo "$ac_t""no" 1>&6
13167 echo "$ac_t""no" 1>&6
13170 if test "$have_nas_sound" = "yes"; then
13172 { test "$extra_verbose" = "yes" && cat << \EOF
13173 Defining HAVE_NAS_SOUND
13175 cat >> confdefs.h <<\EOF
13176 #define HAVE_NAS_SOUND 1
13180 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
13181 echo " xemacs will be linked with \"nas.o\""
13183 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi
13184 cat > conftest.$ac_ext <<EOF
13185 #line 13186 "configure"
13186 #include "confdefs.h"
13187 #include <audio/Xtutil.h>
13189 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13190 egrep "AuXtErrorJump" >/dev/null 2>&1; then
13194 old_nas=yes; { test "$extra_verbose" = "yes" && cat << \EOF
13195 Defining NAS_NO_ERROR_JUMP
13197 cat >> confdefs.h <<\EOF
13198 #define NAS_NO_ERROR_JUMP 1
13206 test "$with_nas_sound" = "yes" && \
13207 { echo "Error:" "Required NAS sound support cannot be provided." >&2; exit 1; }
13212 if test "$with_esd_sound" != "no"; then
13213 # Extract the first word of "esd-config", so it can be a program name with args.
13214 set dummy esd-config; ac_word=$2
13215 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
13216 echo "configure:13217: checking for $ac_word" >&5
13218 if test -n "$have_esd_config"; then
13219 ac_cv_prog_have_esd_config="$have_esd_config" # Let the user override the test.
13221 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
13223 for ac_dir in $ac_dummy; do
13224 test -z "$ac_dir" && ac_dir=.
13225 if test -f $ac_dir/$ac_word; then
13226 ac_cv_prog_have_esd_config="yes"
13231 test -z "$ac_cv_prog_have_esd_config" && ac_cv_prog_have_esd_config="no"
13233 have_esd_config="$ac_cv_prog_have_esd_config"
13234 if test -n "$have_esd_config"; then
13235 echo "$ac_t""$have_esd_config" 1>&6
13237 echo "$ac_t""no" 1>&6
13240 if test "$have_esd_config" = "yes"; then
13241 save_c_switch_site="$c_switch_site" save_LIBS="$LIBS"
13242 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
13243 LIBS="`esd-config --libs` $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"`esd-config --libs`\" to \$LIBS"; fi
13244 echo $ac_n "checking for esd_play_stream""... $ac_c" 1>&6
13245 echo "configure:13246: checking for esd_play_stream" >&5
13247 cat > conftest.$ac_ext <<EOF
13248 #line 13249 "configure"
13249 #include "confdefs.h"
13250 /* System header to define __stub macros and hopefully few prototypes,
13251 which can conflict with char esd_play_stream(); below. */
13252 #include <assert.h>
13253 /* Override any gcc2 internal prototype to avoid an error. */
13254 /* We use char because int might match the return type of a gcc2
13255 builtin and then its argument prototype would still apply. */
13256 char esd_play_stream();
13260 /* The GNU C library defines this for functions which it implements
13261 to always fail with ENOSYS. Some functions are actually named
13262 something starting with __ and the normal name is an alias. */
13263 #if defined (__stub_esd_play_stream) || defined (__stub___esd_play_stream)
13271 if { (eval echo configure:13272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13273 eval "ac_cv_func_esd_play_stream=yes"
13275 echo "configure: failed program was:" >&5
13276 cat conftest.$ac_ext >&5
13278 eval "ac_cv_func_esd_play_stream=no"
13282 if eval "test \"`echo '$ac_cv_func_'esd_play_stream`\" = yes"; then
13283 echo "$ac_t""yes" 1>&6
13286 echo "$ac_t""no" 1>&6
13287 c_switch_site="$save_c_switch_site" LIBS="$save_LIBS"
13292 if test "$have_esd_sound" = "yes"; then
13295 extra_objs="$extra_objs esd.o" && if test "$extra_verbose" = "yes"; then
13296 echo " xemacs will be linked with \"esd.o\""
13298 { test "$extra_verbose" = "yes" && cat << \EOF
13299 Defining HAVE_ESD_SOUND
13301 cat >> confdefs.h <<\EOF
13302 #define HAVE_ESD_SOUND 1
13307 test "$with_esd_sound" = "yes" && \
13308 { echo "Error:" "Required ESD sound support cannot be provided." >&2; exit 1; }
13313 test "$need_miscplay" = "yes" && extra_objs="$extra_objs miscplay.o" && if test "$extra_verbose" = "yes"; then
13314 echo " xemacs will be linked with \"miscplay.o\""
13318 test -z "$with_tty" && with_tty=yes
13320 if test "$with_tty" = "yes" ; then
13321 echo "checking for TTY-related features" 1>&6
13322 echo "configure:13323: checking for TTY-related features" >&5
13323 { test "$extra_verbose" = "yes" && cat << \EOF
13326 cat >> confdefs.h <<\EOF
13331 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
13332 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\""
13335 if test -z "$with_ncurses"; then
13337 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
13338 echo "configure:13339: checking for tgetent in -lncurses" >&5
13339 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
13341 xe_check_libs=" -lncurses "
13342 cat > conftest.$ac_ext <<EOF
13343 #line 13344 "configure"
13344 #include "confdefs.h"
13345 /* Override any gcc2 internal prototype to avoid an error. */
13346 /* We use char because int might match the return type of a gcc2
13347 builtin and then its argument prototype would still apply. */
13354 if { (eval echo configure:13355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13356 eval "ac_cv_lib_$ac_lib_var=yes"
13358 echo "configure: failed program was:" >&5
13359 cat conftest.$ac_ext >&5
13361 eval "ac_cv_lib_$ac_lib_var=no"
13366 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13367 echo "$ac_t""yes" 1>&6
13370 echo "$ac_t""no" 1>&6
13376 if test "$with_ncurses" = "yes"; then
13377 { test "$extra_verbose" = "yes" && cat << \EOF
13378 Defining HAVE_NCURSES
13380 cat >> confdefs.h <<\EOF
13381 #define HAVE_NCURSES 1
13385 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
13386 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
13387 echo "configure:13388: checking for ncurses/curses.h" >&5
13389 cat > conftest.$ac_ext <<EOF
13390 #line 13391 "configure"
13391 #include "confdefs.h"
13392 #include <ncurses/curses.h>
13394 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13395 { (eval echo configure:13396: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13396 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13397 if test -z "$ac_err"; then
13399 eval "ac_cv_header_$ac_safe=yes"
13402 echo "configure: failed program was:" >&5
13403 cat conftest.$ac_ext >&5
13405 eval "ac_cv_header_$ac_safe=no"
13408 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13409 echo "$ac_t""yes" 1>&6
13410 curses_h_file=ncurses/curses.h
13412 echo "$ac_t""no" 1>&6
13415 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
13416 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
13417 echo "configure:13418: checking for ncurses/term.h" >&5
13419 cat > conftest.$ac_ext <<EOF
13420 #line 13421 "configure"
13421 #include "confdefs.h"
13422 #include <ncurses/term.h>
13424 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13425 { (eval echo configure:13426: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13426 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13427 if test -z "$ac_err"; then
13429 eval "ac_cv_header_$ac_safe=yes"
13432 echo "configure: failed program was:" >&5
13433 cat conftest.$ac_ext >&5
13435 eval "ac_cv_header_$ac_safe=no"
13438 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13439 echo "$ac_t""yes" 1>&6
13440 term_h_file=ncurses/term.h
13442 echo "$ac_t""no" 1>&6
13445 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
13446 echo " xemacs will be linked with \"terminfo.o\""
13448 LIBS="-lncurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lncurses\" to \$LIBS"; fi
13450 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
13451 save_c_switch_site="$c_switch_site"
13452 c_switch_site="$c_switch_site -I/usr/include/ncurses"
13453 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
13454 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
13455 echo "configure:13456: checking for ncurses/curses.h" >&5
13457 cat > conftest.$ac_ext <<EOF
13458 #line 13459 "configure"
13459 #include "confdefs.h"
13460 #include <ncurses/curses.h>
13462 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13463 { (eval echo configure:13464: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13464 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13465 if test -z "$ac_err"; then
13467 eval "ac_cv_header_$ac_safe=yes"
13470 echo "configure: failed program was:" >&5
13471 cat conftest.$ac_ext >&5
13473 eval "ac_cv_header_$ac_safe=no"
13476 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13477 echo "$ac_t""yes" 1>&6
13478 curses_h_file=ncurses/curses.h
13480 echo "$ac_t""no" 1>&6
13483 if test "$ac_cv_header_ncurses_curses_h" = "yes"
13484 then echo "configure: warning: "Your system has the bogus ncurses include bug."" 1>&2
13485 else c_switch_site="$save_c_switch_site"
13488 else if test "$have_terminfo" = "yes"; then
13489 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
13490 echo " xemacs will be linked with \"terminfo.o\""
13492 if test -n "$libs_termcap"; then
13493 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
13495 for lib in curses termlib termcap; do
13497 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
13498 echo "configure:13499: checking for tgetent in -l$lib" >&5
13499 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
13501 xe_check_libs=" -l$lib "
13502 cat > conftest.$ac_ext <<EOF
13503 #line 13504 "configure"
13504 #include "confdefs.h"
13505 /* Override any gcc2 internal prototype to avoid an error. */
13506 /* We use char because int might match the return type of a gcc2
13507 builtin and then its argument prototype would still apply. */
13514 if { (eval echo configure:13515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13516 eval "ac_cv_lib_$ac_lib_var=yes"
13518 echo "configure: failed program was:" >&5
13519 cat conftest.$ac_ext >&5
13521 eval "ac_cv_lib_$ac_lib_var=no"
13526 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13527 echo "$ac_t""yes" 1>&6
13528 LIBS="-l${lib} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${lib}\" to \$LIBS"; fi; break
13530 echo "$ac_t""no" 1>&6
13536 else extra_objs="$extra_objs tparam.o" && if test "$extra_verbose" = "yes"; then
13537 echo " xemacs will be linked with \"tparam.o\""
13539 case "$opsys" in *-hp-hpux* ) libs_termcap="-ltermcap" ;; esac
13540 if test -n "$libs_termcap"; then
13541 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
13544 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
13545 echo "configure:13546: checking for tgetent in -lcurses" >&5
13546 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
13548 xe_check_libs=" -lcurses "
13549 cat > conftest.$ac_ext <<EOF
13550 #line 13551 "configure"
13551 #include "confdefs.h"
13552 /* Override any gcc2 internal prototype to avoid an error. */
13553 /* We use char because int might match the return type of a gcc2
13554 builtin and then its argument prototype would still apply. */
13561 if { (eval echo configure:13562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13563 eval "ac_cv_lib_$ac_lib_var=yes"
13565 echo "configure: failed program was:" >&5
13566 cat conftest.$ac_ext >&5
13568 eval "ac_cv_lib_$ac_lib_var=no"
13573 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13574 echo "$ac_t""yes" 1>&6
13575 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
13577 echo "$ac_t""no" 1>&6
13578 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
13579 echo "configure:13580: checking for tgetent in -ltermcap" >&5
13580 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
13582 xe_check_libs=" -ltermcap "
13583 cat > conftest.$ac_ext <<EOF
13584 #line 13585 "configure"
13585 #include "confdefs.h"
13586 /* Override any gcc2 internal prototype to avoid an error. */
13587 /* We use char because int might match the return type of a gcc2
13588 builtin and then its argument prototype would still apply. */
13595 if { (eval echo configure:13596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13597 eval "ac_cv_lib_$ac_lib_var=yes"
13599 echo "configure: failed program was:" >&5
13600 cat conftest.$ac_ext >&5
13602 eval "ac_cv_lib_$ac_lib_var=no"
13607 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13608 echo "$ac_t""yes" 1>&6
13609 LIBS="-ltermcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltermcap\" to \$LIBS"; fi
13611 echo "$ac_t""no" 1>&6
13612 extra_objs="$extra_objs termcap.o" && if test "$extra_verbose" = "yes"; then
13613 echo " xemacs will be linked with \"termcap.o\""
13624 { test "$extra_verbose" = "yes" && cat << EOF
13625 Defining CURSES_H_FILE = "${curses_h_file-curses.h}"
13627 cat >> confdefs.h <<EOF
13628 #define CURSES_H_FILE "${curses_h_file-curses.h}"
13632 { test "$extra_verbose" = "yes" && cat << EOF
13633 Defining TERM_H_FILE = "${term_h_file-term.h}"
13635 cat >> confdefs.h <<EOF
13636 #define TERM_H_FILE "${term_h_file-term.h}"
13641 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
13642 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
13643 echo "configure:13644: checking for gpm.h" >&5
13645 cat > conftest.$ac_ext <<EOF
13646 #line 13647 "configure"
13647 #include "confdefs.h"
13650 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13651 { (eval echo configure:13652: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13652 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13653 if test -z "$ac_err"; then
13655 eval "ac_cv_header_$ac_safe=yes"
13658 echo "configure: failed program was:" >&5
13659 cat conftest.$ac_ext >&5
13661 eval "ac_cv_header_$ac_safe=no"
13664 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13665 echo "$ac_t""yes" 1>&6
13668 echo "$ac_t""no" 1>&6
13672 test -z "$with_gpm" && {
13673 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
13674 echo "configure:13675: checking for Gpm_Open in -lgpm" >&5
13675 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
13677 xe_check_libs=" -lgpm "
13678 cat > conftest.$ac_ext <<EOF
13679 #line 13680 "configure"
13680 #include "confdefs.h"
13681 /* Override any gcc2 internal prototype to avoid an error. */
13682 /* We use char because int might match the return type of a gcc2
13683 builtin and then its argument prototype would still apply. */
13690 if { (eval echo configure:13691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13692 eval "ac_cv_lib_$ac_lib_var=yes"
13694 echo "configure: failed program was:" >&5
13695 cat conftest.$ac_ext >&5
13697 eval "ac_cv_lib_$ac_lib_var=no"
13702 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13703 echo "$ac_t""yes" 1>&6
13706 echo "$ac_t""no" 1>&6
13711 if test "$with_gpm" = "yes"; then
13712 { test "$extra_verbose" = "yes" && cat << \EOF
13715 cat >> confdefs.h <<\EOF
13720 extra_objs="$extra_objs gpmevent.o" && if test "$extra_verbose" = "yes"; then
13721 echo " xemacs will be linked with \"gpmevent.o\""
13723 LIBS="-lgpm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgpm\" to \$LIBS"; fi
13726 else for feature in ncurses gpm; do
13727 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
13728 echo "configure: warning: "--with-${feature} ignored: Not valid without TTY support"" 1>&2
13730 eval "with_${feature}=no"
13733 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
13734 echo " xemacs will be linked with \"event-unixoid.o\""
13738 test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
13739 != "no no no" && echo "checking for database support" 1>&6
13740 echo "configure:13741: checking for database support" >&5
13742 if test "$with_database_gdbm $with_database_dbm" != "no no"; then
13743 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'`
13744 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6
13745 echo "configure:13746: checking for ndbm.h" >&5
13747 cat > conftest.$ac_ext <<EOF
13748 #line 13749 "configure"
13749 #include "confdefs.h"
13752 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13753 { (eval echo configure:13754: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13754 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13755 if test -z "$ac_err"; then
13757 eval "ac_cv_header_$ac_safe=yes"
13760 echo "configure: failed program was:" >&5
13761 cat conftest.$ac_ext >&5
13763 eval "ac_cv_header_$ac_safe=no"
13766 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13767 echo "$ac_t""yes" 1>&6
13770 echo "$ac_t""no" 1>&6
13772 test "$with_database_gdbm" = "yes" -o \
13773 "$with_database_dbm" = "yes" && \
13774 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
13775 with_database_gdbm=no with_database_dbm=no
13780 if test "$with_database_gdbm" != "no"; then
13782 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
13783 echo "configure:13784: checking for dbm_open in -lgdbm" >&5
13784 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
13786 xe_check_libs=" -lgdbm "
13787 cat > conftest.$ac_ext <<EOF
13788 #line 13789 "configure"
13789 #include "confdefs.h"
13790 /* Override any gcc2 internal prototype to avoid an error. */
13791 /* We use char because int might match the return type of a gcc2
13792 builtin and then its argument prototype would still apply. */
13799 if { (eval echo configure:13800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13801 eval "ac_cv_lib_$ac_lib_var=yes"
13803 echo "configure: failed program was:" >&5
13804 cat conftest.$ac_ext >&5
13806 eval "ac_cv_lib_$ac_lib_var=no"
13811 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13812 echo "$ac_t""yes" 1>&6
13813 with_database_gdbm=yes with_database_dbm=no libdbm=-lgdbm
13815 echo "$ac_t""no" 1>&6
13816 if test "$with_database_gdbm" = "yes"; then
13817 { echo "Error:" "Required GNU DBM support cannot be provided." >&2; exit 1; }
13819 with_database_gdbm=no
13825 if test "$with_database_dbm" != "no"; then
13826 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
13827 echo "configure:13828: checking for dbm_open" >&5
13829 cat > conftest.$ac_ext <<EOF
13830 #line 13831 "configure"
13831 #include "confdefs.h"
13832 /* System header to define __stub macros and hopefully few prototypes,
13833 which can conflict with char dbm_open(); below. */
13834 #include <assert.h>
13835 /* Override any gcc2 internal prototype to avoid an error. */
13836 /* We use char because int might match the return type of a gcc2
13837 builtin and then its argument prototype would still apply. */
13842 /* The GNU C library defines this for functions which it implements
13843 to always fail with ENOSYS. Some functions are actually named
13844 something starting with __ and the normal name is an alias. */
13845 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
13853 if { (eval echo configure:13854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13855 eval "ac_cv_func_dbm_open=yes"
13857 echo "configure: failed program was:" >&5
13858 cat conftest.$ac_ext >&5
13860 eval "ac_cv_func_dbm_open=no"
13864 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
13865 echo "$ac_t""yes" 1>&6
13866 with_database_dbm=yes libdbm=
13868 echo "$ac_t""no" 1>&6
13871 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
13872 echo "configure:13873: checking for dbm_open in -ldbm" >&5
13873 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
13875 xe_check_libs=" -ldbm "
13876 cat > conftest.$ac_ext <<EOF
13877 #line 13878 "configure"
13878 #include "confdefs.h"
13879 /* Override any gcc2 internal prototype to avoid an error. */
13880 /* We use char because int might match the return type of a gcc2
13881 builtin and then its argument prototype would still apply. */
13888 if { (eval echo configure:13889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13890 eval "ac_cv_lib_$ac_lib_var=yes"
13892 echo "configure: failed program was:" >&5
13893 cat conftest.$ac_ext >&5
13895 eval "ac_cv_lib_$ac_lib_var=no"
13900 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13901 echo "$ac_t""yes" 1>&6
13902 with_database_dbm=yes libdbm=-ldbm
13904 echo "$ac_t""no" 1>&6
13905 test "$with_database_dbm" = "yes" && \
13906 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
13907 with_database_dbm=no
13915 test -n "$libdbm" && LIBS=""$libdbm" $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libdbm"\" to \$LIBS"; fi
13916 test "$with_database_gdbm" = "yes" -o \
13917 "$with_database_dbm" = "yes" && \
13918 { test "$extra_verbose" = "yes" && cat << \EOF
13921 cat >> confdefs.h <<\EOF
13927 if test "$with_database_berkdb" != "no"; then
13928 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6
13929 echo "configure:13930: checking for Berkeley db.h" >&5
13930 for header in "db/db.h" "db.h"; do
13931 cat > conftest.$ac_ext <<EOF
13932 #line 13933 "configure"
13933 #include "confdefs.h"
13935 #include <stdlib.h>
13936 #if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1)
13937 #ifdef HAVE_INTTYPES_H
13938 #define __BIT_TYPES_DEFINED__
13939 #include <inttypes.h>
13940 typedef uint8_t u_int8_t;
13941 typedef uint16_t u_int16_t;
13942 typedef uint32_t u_int32_t;
13943 #ifdef WE_DONT_NEED_QUADS
13944 typedef uint64_t u_int64_t;
13954 if { (eval echo configure:13955: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13956 db_h_file="$header"; break
13958 echo "configure: failed program was:" >&5
13959 cat conftest.$ac_ext >&5
13963 if test -z "$db_h_file"
13964 then echo "$ac_t""no" 1>&6; with_database_berkdb=no
13965 else echo "$ac_t""$db_h_file" 1>&6
13968 if test "$with_database_berkdb" != "no"; then
13969 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6
13970 echo "configure:13971: checking for Berkeley DB version" >&5
13971 cat > conftest.$ac_ext <<EOF
13972 #line 13973 "configure"
13973 #include "confdefs.h"
13974 #include <$db_h_file>
13975 #if DB_VERSION_MAJOR > 1
13980 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13981 egrep "yes" >/dev/null 2>&1; then
13983 cat > conftest.$ac_ext <<EOF
13984 #line 13985 "configure"
13985 #include "confdefs.h"
13986 #include <$db_h_file>
13987 #if DB_VERSION_MAJOR > 2
13992 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13993 egrep "yes" >/dev/null 2>&1; then
13995 echo "$ac_t""3" 1>&6; dbfunc=db_create
13999 echo "$ac_t""2" 1>&6; dbfunc=db_open
14006 echo "$ac_t""1" 1>&6; dbfunc=dbopen
14010 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6
14011 echo "configure:14012: checking for $dbfunc" >&5
14013 cat > conftest.$ac_ext <<EOF
14014 #line 14015 "configure"
14015 #include "confdefs.h"
14016 /* System header to define __stub macros and hopefully few prototypes,
14017 which can conflict with char $dbfunc(); below. */
14018 #include <assert.h>
14019 /* Override any gcc2 internal prototype to avoid an error. */
14020 /* We use char because int might match the return type of a gcc2
14021 builtin and then its argument prototype would still apply. */
14026 /* The GNU C library defines this for functions which it implements
14027 to always fail with ENOSYS. Some functions are actually named
14028 something starting with __ and the normal name is an alias. */
14029 #if defined (__stub_$dbfunc) || defined (__stub___$dbfunc)
14037 if { (eval echo configure:14038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14039 eval "ac_cv_func_$dbfunc=yes"
14041 echo "configure: failed program was:" >&5
14042 cat conftest.$ac_ext >&5
14044 eval "ac_cv_func_$dbfunc=no"
14048 if eval "test \"`echo '$ac_cv_func_'$dbfunc`\" = yes"; then
14049 echo "$ac_t""yes" 1>&6
14050 with_database_berkdb=yes need_libdb=no
14052 echo "$ac_t""no" 1>&6
14055 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6
14056 echo "configure:14057: checking for $dbfunc in -ldb" >&5
14057 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'`
14059 xe_check_libs=" -ldb "
14060 cat > conftest.$ac_ext <<EOF
14061 #line 14062 "configure"
14062 #include "confdefs.h"
14063 /* Override any gcc2 internal prototype to avoid an error. */
14064 /* We use char because int might match the return type of a gcc2
14065 builtin and then its argument prototype would still apply. */
14072 if { (eval echo configure:14073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14074 eval "ac_cv_lib_$ac_lib_var=yes"
14076 echo "configure: failed program was:" >&5
14077 cat conftest.$ac_ext >&5
14079 eval "ac_cv_lib_$ac_lib_var=no"
14084 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
14085 echo "$ac_t""yes" 1>&6
14086 with_database_berkdb=yes need_libdb=yes
14088 echo "$ac_t""no" 1>&6
14096 if test "$with_database_berkdb" = "yes"; then
14097 { test "$extra_verbose" = "yes" && cat << EOF
14098 Defining DB_H_FILE = "$db_h_file"
14100 cat >> confdefs.h <<EOF
14101 #define DB_H_FILE "$db_h_file"
14105 { test "$extra_verbose" = "yes" && cat << \EOF
14106 Defining HAVE_BERKELEY_DB
14108 cat >> confdefs.h <<\EOF
14109 #define HAVE_BERKELEY_DB 1
14113 test "$need_libdb" = "yes" && LIBS="-ldb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldb\" to \$LIBS"; fi
14114 else with_database_berkdb=no
14118 if test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
14119 != "no no no"; then
14120 { test "$extra_verbose" = "yes" && cat << \EOF
14121 Defining HAVE_DATABASE
14123 cat >> confdefs.h <<\EOF
14124 #define HAVE_DATABASE 1
14128 extra_objs="$extra_objs database.o" && if test "$extra_verbose" = "yes"; then
14129 echo " xemacs will be linked with \"database.o\""
14133 if test "$with_socks" = "yes"; then
14135 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
14136 echo "configure:14137: checking for SOCKSinit in -lsocks" >&5
14137 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
14139 xe_check_libs=" -lsocks "
14140 cat > conftest.$ac_ext <<EOF
14141 #line 14142 "configure"
14142 #include "confdefs.h"
14143 /* Override any gcc2 internal prototype to avoid an error. */
14144 /* We use char because int might match the return type of a gcc2
14145 builtin and then its argument prototype would still apply. */
14152 if { (eval echo configure:14153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14154 eval "ac_cv_lib_$ac_lib_var=yes"
14156 echo "configure: failed program was:" >&5
14157 cat conftest.$ac_ext >&5
14159 eval "ac_cv_lib_$ac_lib_var=no"
14164 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
14165 echo "$ac_t""yes" 1>&6
14166 ac_tr_lib=HAVE_LIB`echo socks | sed -e 's/[^a-zA-Z0-9_]/_/g' \
14167 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
14168 { test "$extra_verbose" = "yes" && cat << EOF
14169 Defining $ac_tr_lib
14171 cat >> confdefs.h <<EOF
14172 #define $ac_tr_lib 1
14176 LIBS="-lsocks $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lsocks\" to \$LIBS"; fi
14179 echo "$ac_t""no" 1>&6
14183 test -n "$ac_cv_lib_socks_SOCKSinit" && { test "$extra_verbose" = "yes" && cat << \EOF
14184 Defining HAVE_SOCKS
14186 cat >> confdefs.h <<\EOF
14187 #define HAVE_SOCKS 1
14193 if test "$usage_tracking" = "yes"; then
14194 { test "$extra_verbose" = "yes" && cat << \EOF
14195 Defining USAGE_TRACKING
14197 cat >> confdefs.h <<\EOF
14198 #define USAGE_TRACKING 1
14202 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi
14205 if test "$with_modules" != "no"; then
14206 echo "checking for module support" 1>&6
14207 echo "configure:14208: checking for module support" >&5
14209 if test "$with_msw" = "yes"; then
14212 ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'`
14213 echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6
14214 echo "configure:14215: checking for dlfcn.h" >&5
14216 cat > conftest.$ac_ext <<EOF
14217 #line 14218 "configure"
14218 #include "confdefs.h"
14221 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14222 { (eval echo configure:14223: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14223 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14224 if test -z "$ac_err"; then
14226 eval "ac_cv_header_$ac_safe=yes"
14229 echo "configure: failed program was:" >&5
14230 cat conftest.$ac_ext >&5
14232 eval "ac_cv_header_$ac_safe=no"
14235 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14236 echo "$ac_t""yes" 1>&6
14238 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6
14239 echo "configure:14240: checking for dlopen in -lc" >&5
14240 cat > conftest.$ac_ext <<EOF
14241 #line 14242 "configure"
14242 #include "confdefs.h"
14248 if { (eval echo configure:14249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14252 echo "configure: failed program was:" >&5
14253 cat conftest.$ac_ext >&5
14256 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
14257 echo "configure:14258: checking for dlopen in -ldl" >&5
14258 ac_save_LIBS="$LIBS"
14260 cat > conftest.$ac_ext <<EOF
14261 #line 14262 "configure"
14262 #include "confdefs.h"
14268 if { (eval echo configure:14269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14272 echo "configure: failed program was:" >&5
14273 cat conftest.$ac_ext >&5
14275 LIBS="$ac_save_LIBS"
14282 echo "$ac_t""no" 1>&6
14285 if test -n "$have_dl"; then
14286 { test "$extra_verbose" = "yes" && cat << \EOF
14287 Defining HAVE_DLOPEN
14289 cat >> confdefs.h <<\EOF
14290 #define HAVE_DLOPEN 1
14296 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
14297 echo "configure:14298: checking for shl_load in -ldld" >&5
14298 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
14300 xe_check_libs=" -ldld "
14301 cat > conftest.$ac_ext <<EOF
14302 #line 14303 "configure"
14303 #include "confdefs.h"
14304 /* Override any gcc2 internal prototype to avoid an error. */
14305 /* We use char because int might match the return type of a gcc2
14306 builtin and then its argument prototype would still apply. */
14313 if { (eval echo configure:14314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14315 eval "ac_cv_lib_$ac_lib_var=yes"
14317 echo "configure: failed program was:" >&5
14318 cat conftest.$ac_ext >&5
14320 eval "ac_cv_lib_$ac_lib_var=no"
14325 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
14326 echo "$ac_t""yes" 1>&6
14327 libdl=dld have_dl=yes;
14328 { test "$extra_verbose" = "yes" && cat << \EOF
14329 Defining HAVE_SHL_LOAD
14331 cat >> confdefs.h <<\EOF
14332 #define HAVE_SHL_LOAD 1
14337 echo "$ac_t""no" 1>&6
14339 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6
14340 echo "configure:14341: checking for dld_init in -ldld" >&5
14341 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'`
14343 xe_check_libs=" -ldld "
14344 cat > conftest.$ac_ext <<EOF
14345 #line 14346 "configure"
14346 #include "confdefs.h"
14347 /* Override any gcc2 internal prototype to avoid an error. */
14348 /* We use char because int might match the return type of a gcc2
14349 builtin and then its argument prototype would still apply. */
14356 if { (eval echo configure:14357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14358 eval "ac_cv_lib_$ac_lib_var=yes"
14360 echo "configure: failed program was:" >&5
14361 cat conftest.$ac_ext >&5
14363 eval "ac_cv_lib_$ac_lib_var=no"
14368 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
14369 echo "$ac_t""yes" 1>&6
14370 libdl=dld have_dl=yes;
14371 { test "$extra_verbose" = "yes" && cat << \EOF
14372 Defining HAVE_DLD_INIT
14374 cat >> confdefs.h <<\EOF
14375 #define HAVE_DLD_INIT 1
14380 echo "$ac_t""no" 1>&6
14389 if test -n "$have_dl"; then
14396 ld_dynamic_link_flags=
14398 xealias=$internal_configuration
14400 echo "checking how to build dynamic libraries for ${xehost}" 1>&6
14401 echo "configure:14402: checking how to build dynamic libraries for ${xehost}" >&5
14402 # Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts.
14405 *-*-linux*) xehost=`echo $xehost | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
14408 xehost_cpu=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
14409 xehost_vendor=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
14410 xehost_os=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
14412 case "$xehost_os" in
14414 # AIX sometimes has problems with the GCC collect2 program. For some
14415 # reason, if we set the COLLECT_NAMES environment variable, the problems
14416 # vanish in a puff of smoke.
14417 if test "${COLLECT_NAMES+set}" != set; then
14419 export COLLECT_NAMES
14424 # Now see if the compiler is really GCC.
14425 if test "$GCC" = "yes"; then
14428 echo $ac_n "checking checking whether we are using GNU C""... $ac_c" 1>&6
14429 echo "configure:14430: checking checking whether we are using GNU C" >&5
14430 cat > conftest.$ac_ext <<EOF
14431 #line 14432 "configure"
14432 #include "confdefs.h"
14439 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14440 egrep "yes" >/dev/null 2>&1; then
14449 echo "$ac_t""${XEGCC}" 1>&6
14452 echo $ac_n "checking how to produce PIC code""... $ac_c" 1>&6
14453 echo "configure:14454: checking how to produce PIC code" >&5
14456 can_build_shared=yes
14457 if test "$XEGCC" = yes; then
14460 case "$xehost_os" in
14461 aix[3-9]* | irix[5-9]* | osf[3-9])
14462 # PIC is the default for these OSes.
14466 # We can build DLLs from non-PIC.
14469 # FIXME: we need at least 68020 code to build shared libraries, but
14470 # adding the `-m68020' flag to GCC prevents building anything better,
14472 dll_cflags='-m68020 -resident32 -malways-restore-a4'
14474 *cygwin* | *mingw* )
14475 # PIC is the default
14482 # PORTME Check for PIC flags for the system compiler.
14483 case "$xehost_os" in
14484 hpux9* | hpux1[0-9]*)
14485 # Is there a better link_static_flag that works with the bundled CC?
14492 # PIC (with -KPIC) is the default.
14496 # We can build DLLs from non-PIC.
14500 # All OSF/1 code is PIC.
14505 # All AIX code is PIC.
14510 dll_cflags='-belf -Kpic'
14544 can_build_shared=no
14549 if test -n "$dll_cflags"; then
14550 echo "$ac_t""${dll_cflags}" 1>&6
14552 # Check to make sure the dll_cflags actually works.
14553 echo $ac_n "checking if PIC flag ${dll_cflags} really works""... $ac_c" 1>&6
14554 echo "configure:14555: checking if PIC flag ${dll_cflags} really works" >&5
14555 save_CFLAGS="$CFLAGS"
14556 CFLAGS="$CFLAGS $dll_cflags -DPIC"
14557 cat > conftest.$ac_ext <<EOF
14558 #line 14559 "configure"
14559 #include "confdefs.h"
14565 if { (eval echo configure:14566: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14568 # On HP-UX, the stripped-down bundled CC doesn't accept +Z, but also
14569 # reports no error. So, we need to grep stderr for (Bundled).
14570 if grep '(Bundled)' config.log >/dev/null; then
14571 echo "$ac_t""no" 1>&6
14572 can_build_shared=no
14575 echo "$ac_t""yes" 1>&6
14578 echo "configure: failed program was:" >&5
14579 cat conftest.$ac_ext >&5
14581 echo "$ac_t""no" 1>&6
14582 can_build_shared=no
14586 CFLAGS="$save_CFLAGS"
14588 echo "$ac_t""none" 1>&6
14591 if test "$can_build_shared" = "yes"; then
14595 echo $ac_n "checking if C compiler can produce shared libraries""... $ac_c" 1>&6
14596 echo "configure:14597: checking if C compiler can produce shared libraries" >&5
14597 if test "$XEGCC" = yes; then
14600 else # Not using GCC
14601 case "$xehost_os" in
14603 xldf="-bE:ELLSONAME.exp -H512 -T512 -bhalt:4 -bM:SRE -bnoentry -lc"
14604 xcldf="${wl}-bE:ELLSONAME.exp ${wl}-H512 ${wl}-T512 ${wl}-bhalt:4 ${wl}-bM:SRE ${wl}-bnoentry ${wl}-lc"
14607 freebsd2* | netbsd* | openbsd*)
14609 xcldf="${wl}-Bshareable"
14618 xcldf="${wl}-b ${wl}+s"
14621 irix[5-9]* | osf[3-9]*)
14622 xcldf="${wl}-shared"
14626 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7* | uts4*)
14632 xcldf="${wl}-assert ${wl}pure-text ${wl}-Bstatic"
14633 xldf="-assert pure-text -Bstatic"
14636 fi # End if if we are using gcc
14638 if test -n "$xcldf"; then
14639 save_LDFLAGS=$LDFLAGS
14641 save_xe_libs=$xe_libs
14642 LDFLAGS="$xcldf $LDFLAGS"
14645 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
14646 cat > conftest.$ac_ext <<EOF
14647 #line 14648 "configure"
14648 #include "confdefs.h"
14654 if { (eval echo configure:14655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14658 echo "configure: failed program was:" >&5
14659 cat conftest.$ac_ext >&5
14664 LDFLAGS=$save_LDFLAGS
14666 xe_libs=$save_xe_libs
14667 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
14671 echo "$ac_t""${cc_produces_so}" 1>&6
14674 if test -z "$LTLD"; then
14676 if test "$XEGCC" = yes; then
14677 # Check if gcc -print-prog-name=ld gives a path.
14678 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
14679 echo "configure:14680: checking for ld used by GCC" >&5
14680 ac_prog=`($CC -print-prog-name=ld) 2>&5`
14682 # Accept absolute paths.
14684 if test -z "$LTLD"; then
14685 # case "$ac_prog" in
14686 # *gcc-lib*) LTLD="$CC"
14695 # If it fails, then pretend we aren't using GCC.
14699 # If it is relative, then search for the first ld in PATH.
14700 with_gnu_ld=unknown
14704 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
14705 echo "configure:14706: checking for GNU ld" >&5
14708 if test -z "$LTLD"; then
14709 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
14710 for ac_dir in $PATH; do
14711 test -z "$ac_dir" && ac_dir=.
14712 if test -f "$ac_dir/$ac_prog"; then
14713 LTLD="$ac_dir/$ac_prog"
14714 # Check to see if the program is GNU ld. I'd rather use --version,
14715 # but apparently some GNU ld's only accept -v.
14716 # Break only if it was the GNU/non-GNU ld that we prefer.
14717 if "$LTLD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
14727 if test -n "$LTLD"; then
14728 echo "$ac_t""${LTLD}" 1>&6
14730 echo "$ac_t""no" 1>&6
14733 if test -z "$LTLD" -a "$cc_produces_so" = no; then
14734 { echo "configure: error: no acceptable linker found in \$PATH" 1>&2; exit 1; }
14739 ld_dynamic_link_flags=
14741 # Check to see if it really is or isn't GNU ld.
14742 echo $ac_n "checking if the linker is GNU ld""... $ac_c" 1>&6
14743 echo "configure:14744: checking if the linker is GNU ld" >&5
14744 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
14745 if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
14750 echo "$ac_t""${xe_gnu_ld}" 1>&6
14752 case "$xehost_os" in
14753 amigaos* | sunos4*)
14754 # On these operating systems, we should treat GNU ld like the system ld.
14755 gnu_ld_acts_native=yes
14758 gnu_ld_acts_native=no
14762 if test "$cc_produces_so" = "yes"; then
14765 can_build_shared=yes
14768 # OK - only NOW do we futz about with ld.
14769 # See if the linker supports building shared libraries.
14770 echo $ac_n "checking whether the linker supports shared libraries""... $ac_c" 1>&6
14771 echo "configure:14772: checking whether the linker supports shared libraries" >&5
14773 dll_ldflags=$LDFLAGS
14775 can_build_shared=yes
14776 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then
14777 # See if GNU ld supports shared libraries.
14778 if $LTLD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
14780 dll_ldflags="-shared"
14786 # PORTME fill in a description of your system's linker (not GNU ld)
14787 case "$xehost_os" in
14797 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14798 # support. Future versions do this automatically, but an explicit c++rt0.o
14799 # doesn't break anything, and helps significantly (at the cost of a little
14804 dll_post="/usr/lib/c++rt0.o"
14807 # Unfortunately, older versions of FreeBSD 2 don't have this feature.
14810 dll_ldflags="-Bshareable"
14813 # FreeBSD 3, at last, uses gcc -shared to do shared libraries.
14815 dll_ldflags="-shared"
14829 # Tested with NetBSD 1.2 ld
14844 # For both SCO and Solaris we MAY want to have LDFLAGS include -z text
14845 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7*)
14848 *gcc*) dll_ldflags="-shared"
14851 *) dll_ldflags="-G"
14857 if test "$XEGCC" = yes; then
14877 can_build_shared=no
14881 echo "$ac_t""${ld_shlibs}" 1>&6
14882 if test "$ld_shlibs" = "no"; then
14883 can_build_shared=no
14885 fi # End of if cc_produces_so = no
14888 if test "$xe_gnu_ld" = yes; then
14889 if test "$ld_shlibs" = yes; then
14890 ld_dynamic_link_flags="${wl}-export-dynamic"
14894 if test -z "$ld_dynamic_link_flags"; then
14895 case "$xehost_os" in
14897 ld_dynamic_link_flags=
14901 ld_dynamic_link_flags=
14905 ld_dynamic_link_flags=
14909 ld_dynamic_link_flags=
14913 ld_dynamic_link_flags="${wl}-E"
14917 ld_dynamic_link_flags=
14921 ld_dynamic_link_flags=
14925 ld_dynamic_link_flags=
14929 ld_dynamic_link_flags=
14932 solaris2* | solaris7*)
14933 ld_dynamic_link_flags=
14936 sco3.2v5* | unixware* | sysv5* | sysv4*)
14937 ld_dynamic_link_flags="${wl}-Bexport"
14941 ld_dynamic_link_flags=
14945 ld_dynamic_link_flags=
14949 ld_dynamic_link_flags=
14953 fi # End of if -z ld_dynamic_link_flags
14954 fi # End of if test "$can_build_shared" = "yes"
14965 if test "$can_build_shared" = "yes"; then
14966 { test "$extra_verbose" = "yes" && cat << \EOF
14967 Defining HAVE_SHLIB
14969 cat >> confdefs.h <<\EOF
14970 #define HAVE_SHLIB 1
14974 extra_objs="$extra_objs sysdll.o emodules.o" && if test "$extra_verbose" = "yes"; then
14975 echo " xemacs will be linked with \"sysdll.o emodules.o\""
14977 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
14978 test -n "$libdl" && LIBS="-l${libdl} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${libdl}\" to \$LIBS"; fi
14979 for ac_func in dlerror _dlerror
14981 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14982 echo "configure:14983: checking for $ac_func" >&5
14984 cat > conftest.$ac_ext <<EOF
14985 #line 14986 "configure"
14986 #include "confdefs.h"
14987 /* System header to define __stub macros and hopefully few prototypes,
14988 which can conflict with char $ac_func(); below. */
14989 #include <assert.h>
14990 /* Override any gcc2 internal prototype to avoid an error. */
14991 /* We use char because int might match the return type of a gcc2
14992 builtin and then its argument prototype would still apply. */
14997 /* The GNU C library defines this for functions which it implements
14998 to always fail with ENOSYS. Some functions are actually named
14999 something starting with __ and the normal name is an alias. */
15000 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15008 if { (eval echo configure:15009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15010 eval "ac_cv_func_$ac_func=yes"
15012 echo "configure: failed program was:" >&5
15013 cat conftest.$ac_ext >&5
15015 eval "ac_cv_func_$ac_func=no"
15019 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15020 echo "$ac_t""yes" 1>&6
15021 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15022 { test "$extra_verbose" = "yes" && cat << EOF
15023 Defining $ac_tr_func
15025 cat >> confdefs.h <<EOF
15026 #define $ac_tr_func 1
15031 echo "$ac_t""no" 1>&6
15037 if test "$with_modules" = "yes"; then
15038 { echo "Error:" "Required module support cannot be provided." >&2; exit 1; }
15040 echo "configure: warning: "Module support cannot be provided."" 1>&2
15046 cat > conftest.$ac_ext <<EOF
15047 #line 15048 "configure"
15048 #include "confdefs.h"
15049 int main(int c,char *v[]){return 0;}
15051 if { (eval echo configure:15052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
15056 echo "configure: failed program was:" >&5
15057 cat conftest.$ac_ext >&5
15061 echo "*** PANIC *** The C compiler can no longer build working executables."
15062 echo "*** PANIC *** Please examine the tail of config.log for runtime errors."
15063 echo "*** PANIC *** The most likely reason for this problem is that configure"
15064 echo "*** PANIC *** links with shared libraries, but those libraries cannot be"
15065 echo "*** PANIC *** found at run time."
15066 echo "*** PANIC ***"
15067 echo "*** PANIC *** On a Linux system, edit /etc/ld.so.conf and re-run ldconfig."
15068 echo "*** PANIC *** On other systems, try telling configure where to find the"
15069 echo "*** PANIC *** shared libraries using the --site-runtime-libraries option"
15070 echo "*** PANIC ***"
15071 echo "*** PANIC *** Another way to shoot yourself in the foot is to specify"
15072 echo "*** PANIC *** --with-FEATURE when FEATURE is not actually installed"
15073 echo "*** PANIC *** on your system. Don't do that."
15078 if test "$win32_processes" = "yes"; then
15079 extra_objs="$extra_objs process-nt.o" && if test "$extra_verbose" = "yes"; then
15080 echo " xemacs will be linked with \"process-nt.o\""
15083 { test "$extra_verbose" = "yes" && cat << \EOF
15084 Defining HAVE_UNIX_PROCESSES
15086 cat >> confdefs.h <<\EOF
15087 #define HAVE_UNIX_PROCESSES 1
15091 extra_objs="$extra_objs process-unix.o" && if test "$extra_verbose" = "yes"; then
15092 echo " xemacs will be linked with \"process-unix.o\""
15099 for W in $CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15104 for W in $extra_objs; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15109 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
15110 c_switch_general="$T"
15114 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
15115 c_switch_window_system="$T"
15119 for W in $c_switch_general $c_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15124 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
15125 ld_switch_general="$T"
15129 for W in $ld_switch_x_site; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15130 ld_switch_window_system="$T"
15134 for W in $ld_switch_general $ld_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15139 for W in $LIBS $libs_machine $libs_system $libs_standard; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15140 ld_libs_general="$T"
15144 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
15145 ld_libs_window_system="$T"
15149 for W in $ld_libs_window_system $ld_libs_general; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15154 MAKE_SUBDIR="$MAKE_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$MAKE_SUBDIR"; fi
15155 internal_makefile_list="Makefile.in"
15156 SUBDIR_MAKEFILES=''
15157 test -d lock || mkdir lock
15158 for dir in $MAKE_SUBDIR; do
15159 case "$dir" in */* ) ( for d in `echo $dir | sed 's:/: :g'` ; do
15160 test -d "$d" || mkdir "$d"; cd "$d"
15162 * ) test -d "$dir" || mkdir "$dir" ;;
15166 for W in $SUBDIR_MAKEFILES $dir/Makefile $dir/GNUmakefile; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15167 SUBDIR_MAKEFILES="$T"
15171 for W in $internal_makefile_list $dir/Makefile.in; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15172 internal_makefile_list="$T"
15179 for dir in src/s src/m; do
15180 if test ! -d "$dir" ; then
15181 echo Making symbolic link to "$srcdir/$dir"
15182 ${LN_S} "$srcdir/$dir" "$dir"
15186 if test "$extra_verbose" = "yes"; then
15188 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
15193 if test -f "$srcdir/src/.gdbinit" -a ! -f "src/.gdbinit"; then
15194 test "$extra_verbose" = "yes" && echo "creating src/.gdbinit"
15195 echo "source $srcdir/src/.gdbinit" > "src/.gdbinit"
15198 if test -f "$srcdir/src/.dbxrc" -a ! -f "src/.dbxrc"; then
15199 test "$extra_verbose" = "yes" && echo "creating src/.dbxrc"
15200 echo ". $srcdir/src/.dbxrc" > "src/.dbxrc"
15203 if test -f "$srcdir/TAGS" -a ! -f "TAGS"; then
15204 test "$extra_verbose" = "yes" && echo "creating TAGS"
15206 $srcdir/TAGS,include" > "TAGS"
15209 if test "$__SUNPRO_C" = "yes"; then
15210 test "$extra_verbose" = "yes" && echo "creating .sbinit"
15211 ( echo "# For use with Sun WorkShop's Source browser."
15212 echo "# See sbquery(1) and sbinit(4) for more information"
15213 for dir in $MAKE_SUBDIR; do echo "import $dir"; done
15241 *\$* ) eval "PREFIX=$PREFIX" ;;
15249 EXEC_PREFIX=$exec_prefix
15251 case "$EXEC_PREFIX" in
15252 *\$* ) eval "EXEC_PREFIX=$EXEC_PREFIX" ;;
15263 *\$* ) eval "INFODIR=$INFODIR" ;;
15273 case "$INFOPATH" in
15274 *\$* ) eval "INFOPATH=$INFOPATH" ;;
15282 PACKAGE_PATH=$package_path
15284 case "$PACKAGE_PATH" in
15285 *\$* ) eval "PACKAGE_PATH=$PACKAGE_PATH" ;;
15296 *\$* ) eval "LISPDIR=$LISPDIR" ;;
15304 MODULEDIR=$moduledir
15306 case "$MODULEDIR" in
15307 *\$* ) eval "MODULEDIR=$MODULEDIR" ;;
15315 SITELISPDIR=$sitelispdir
15317 case "$SITELISPDIR" in
15318 *\$* ) eval "SITELISPDIR=$SITELISPDIR" ;;
15326 SITEMODULEDIR=$sitemoduledir
15328 case "$SITEMODULEDIR" in
15329 *\$* ) eval "SITEMODULEDIR=$SITEMODULEDIR" ;;
15340 *\$* ) eval "ETCDIR=$ETCDIR" ;;
15351 *\$* ) eval "DOCDIR=$DOCDIR" ;;
15359 ARCHLIBDIR=$archlibdir
15361 case "$ARCHLIBDIR" in
15362 *\$* ) eval "ARCHLIBDIR=$ARCHLIBDIR" ;;
15386 RECURSIVE_MAKE="\$(MAKE) \$(MFLAGS) CC='\$(CC)' CFLAGS='\$(CFLAGS)' LDFLAGS='\$(LDFLAGS)' CPPFLAGS='\$(CPPFLAGS)'"
15394 : ${XEMACS_CC:=$CC}
15397 if test "$with_prefix" = "yes"; then
15398 { test "$extra_verbose" = "yes" && cat << \EOF
15399 Defining PREFIX_USER_DEFINED
15401 cat >> confdefs.h <<\EOF
15402 #define PREFIX_USER_DEFINED 1
15408 if test "$with_site_lisp" = "no"; then
15409 { test "$extra_verbose" = "yes" && cat << \EOF
15410 Defining INHIBIT_SITE_LISP
15412 cat >> confdefs.h <<\EOF
15413 #define INHIBIT_SITE_LISP 1
15418 if test "$with_site_modules" = "no"; then
15419 { test "$extra_verbose" = "yes" && cat << \EOF
15420 Defining INHIBIT_SITE_MODULES
15422 cat >> confdefs.h <<\EOF
15423 #define INHIBIT_SITE_MODULES 1
15431 for W in $ac_configure_args; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15432 ac_configure_args="$T"
15434 { test "$extra_verbose" = "yes" && cat << EOF
15435 Defining EMACS_CONFIGURATION = "$configuration"
15437 cat >> confdefs.h <<EOF
15438 #define EMACS_CONFIGURATION "$configuration"
15442 { test "$extra_verbose" = "yes" && cat << EOF
15443 Defining EMACS_CONFIG_OPTIONS = "$ac_configure_args"
15445 cat >> confdefs.h <<EOF
15446 #define EMACS_CONFIG_OPTIONS "$ac_configure_args"
15453 { test "$extra_verbose" = "yes" && cat << EOF
15454 Defining LD_SWITCH_X_SITE = $null_string
15456 cat >> confdefs.h <<EOF
15457 #define LD_SWITCH_X_SITE $null_string
15461 { test "$extra_verbose" = "yes" && cat << EOF
15462 Defining LD_SWITCH_X_SITE_AUX = $null_string
15464 cat >> confdefs.h <<EOF
15465 #define LD_SWITCH_X_SITE_AUX $null_string
15469 { test "$extra_verbose" = "yes" && cat << EOF
15470 Defining C_SWITCH_X_SITE = $null_string
15472 cat >> confdefs.h <<EOF
15473 #define C_SWITCH_X_SITE $null_string
15477 { test "$extra_verbose" = "yes" && cat << EOF
15478 Defining LD_SWITCH_SITE = $null_string
15480 cat >> confdefs.h <<EOF
15481 #define LD_SWITCH_SITE $null_string
15485 { test "$extra_verbose" = "yes" && cat << EOF
15486 Defining C_SWITCH_SITE = $null_string
15488 cat >> confdefs.h <<EOF
15489 #define C_SWITCH_SITE $null_string
15495 if test "$GNU_MALLOC" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
15496 Defining GNU_MALLOC
15498 cat >> confdefs.h <<\EOF
15499 #define GNU_MALLOC 1
15503 elif test "$with_system_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
15504 Defining USE_SYSTEM_MALLOC
15506 cat >> confdefs.h <<\EOF
15507 #define USE_SYSTEM_MALLOC 1
15511 elif test "$with_debug_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
15512 Defining USE_DEBUG_MALLOC
15514 cat >> confdefs.h <<\EOF
15515 #define USE_DEBUG_MALLOC 1
15519 { test "$extra_verbose" = "yes" && cat << \EOF
15520 Defining USE_SYSTEM_MALLOC
15522 cat >> confdefs.h <<\EOF
15523 #define USE_SYSTEM_MALLOC 1
15528 test "$with_i18n3" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15531 cat >> confdefs.h <<\EOF
15536 test "$GCC" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15539 cat >> confdefs.h <<\EOF
15544 test "$external_widget" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15545 Defining EXTERNAL_WIDGET
15547 cat >> confdefs.h <<\EOF
15548 #define EXTERNAL_WIDGET 1
15552 test "$quick_build" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15553 Defining QUICK_BUILD
15555 cat >> confdefs.h <<\EOF
15556 #define QUICK_BUILD 1
15560 test "$with_purify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15563 cat >> confdefs.h <<\EOF
15568 test "$with_quantify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15571 cat >> confdefs.h <<\EOF
15576 test "$with_pop" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15577 Defining MAIL_USE_POP
15579 cat >> confdefs.h <<\EOF
15580 #define MAIL_USE_POP 1
15584 test "$with_kerberos" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15587 cat >> confdefs.h <<\EOF
15592 test "$with_hesiod" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15595 cat >> confdefs.h <<\EOF
15600 test "$use_union_type" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15601 Defining USE_UNION_TYPE
15603 cat >> confdefs.h <<\EOF
15604 #define USE_UNION_TYPE 1
15608 test "$pdump" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15611 cat >> confdefs.h <<\EOF
15616 test "$with_ipv6_cname" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15617 Defining IPV6_CANONICALIZE
15619 cat >> confdefs.h <<\EOF
15620 #define IPV6_CANONICALIZE 1
15627 if test -f /etc/osversion; then echo "osversion: `cat /etc/osversion`"
15629 echo "uname -a: `uname -a`"
15632 echo "$0 $quoted_arguments"
15635 if test ! -z ${emacs_beta_version} ; then
15636 if test -z "${emacs_is_beta}" ; then
15637 xemacs_betaname=".${emacs_beta_version}"
15639 xemacs_betaname="-b${emacs_beta_version}"
15648 XEmacs ${emacs_major_version}.${emacs_minor_version}${xemacs_betaname} \"$xemacs_codename\" configured for \`$canonical'.
15651 Compilation / Installation:"
15652 echo " Source code location: $srcdir"
15653 echo " Installation prefix: $prefix"
15654 if test -n "$site_includes"; then
15655 echo " Additional header files: $site_includes"
15657 if test -n "$site_libraries"; then
15658 echo " Additional libraries: $site_libraries"
15660 if test -n "$site_prefixes"; then
15661 echo " Additional prefixes: $site_prefixes"
15663 if test -n "$runpath"; then
15664 echo " Runtime library search path: $runpath"
15667 if test -n "$opsysfile"
15668 then echo " Operating system description file: \`$opsysfile'"
15669 else echo " Not using any operating system description file"
15671 if test -n "$machfile"
15672 then echo " Machine description file: \`$machfile'"
15673 else echo " Not using any machine description file"
15676 echo " Compiler: $CC $CFLAGS"
15677 echo " Relocating allocator for buffers: $rel_alloc"
15678 echo " GNU version of malloc: ${GNU_MALLOC}${GNU_MALLOC_reason}"
15679 case "$ld_switch_site" in
15680 *nocombreloc*) echo " Linking with \`-z nocombreloc'.
15681 - Consider configuring with --pdump." ;;
15686 if test "$with_msw" = "yes"; then
15687 echo " Compiling in support for the Microsoft window system."
15689 if test "$with_x11" = "yes"; then
15690 echo " Compiling in support for the X window system:"
15691 echo " - X Windows headers location: $x_includes"
15692 echo " - X Windows libraries location: $x_libraries"
15693 if test "$with_xauth" != yes; then
15694 echo " - Xau (X authority) not available."
15696 if test "$with_xmu" != yes; then
15697 echo " - Xmu library not available; substituting equivalent routines."
15699 if test "$with_wmcommand" != no; then
15700 echo " - Handling WM_COMMAND properly."
15703 if test "$need_athena" = "yes"; then
15704 echo " Compiling in support for the Athena widget set:"
15705 echo " - Athena headers location: $athena_h_path"
15706 echo " - Athena library to link: $athena_lib"
15708 case "$with_menubars" in
15709 gtk ) echo " Using GTK menubars." ;;
15710 lucid ) echo " Using Lucid menubars." ;;
15711 motif ) echo " Using Motif menubars."
15712 echo " *WARNING* The Motif menubar implementation is currently buggy."
15713 echo " We recommend using the Lucid menubar instead."
15714 echo " Re-run configure with --with-menubars='lucid'." ;;
15715 msw ) echo " Using MS-Windows menubars." ;;
15717 case "$with_scrollbars" in
15718 gtk ) echo " Using GTK scrollbars." ;;
15719 lucid ) echo " Using Lucid scrollbars." ;;
15720 motif ) echo " Using Motif scrollbars." ;;
15721 athena ) echo " Using Athena scrollbars." ;;
15722 msw ) echo " Using MS-Windows scrollbars." ;;
15724 case "$with_dialogs" in
15725 gtk ) echo " Using GTK dialog boxes." ;;
15726 motif ) echo " Using Motif dialog boxes."
15727 if test "$unexec" = "unexaix.o"; then if test "`uname -v`" = 4 -a "`uname -r`" -ge 3; then
15728 echo " *WARNING* The Motif dialog boxes cause problems on AIX 4.3 and higher."
15729 echo " We recommend using the Athena dialog boxes instead."
15730 echo " Install libXaw and re-run configure with --with-dialogs='athena'."
15731 echo " Read the PROBLEMS file for more information."
15733 athena ) echo " Using Athena dialog boxes." ;;
15734 msw ) echo " Using MS-Windows dialog boxes." ;;
15736 case "$with_widgets" in
15737 gtk ) echo " Using GTK native widgets." ;;
15738 motif ) echo " Using Motif native widgets." ;;
15739 athena ) echo " Using Athena native widgets." ;;
15740 msw ) echo " Using MS-Windows native widgets." ;;
15742 if test "$with_dragndrop" = yes; then
15743 echo " Compiling in support for Drag'n'Drop (EXPERIMENTAL)."
15744 echo " - Drag'n'Drop prototype: $dragndrop_proto."
15749 test "$with_ncurses" = yes && echo " Compiling in support for ncurses."
15750 test "$with_gpm" = yes && echo " Compiling in support for GPM (General Purpose Mouse)."
15754 test "$with_gif" = yes && echo " Compiling in support for GIF images (builtin)."
15755 if test "$with_xpm" = yes; then
15756 echo " Compiling in support for XPM images."
15757 elif test "$with_x11" = yes; then
15758 echo " WARNING: -----------------------------------------------------------"
15759 echo " WARNING: Compiling without XPM image support."
15760 if test "$xpm_problem" != ""; then
15761 echo " Reason: $xpm_problem"
15763 echo " WARNING: You should strongly consider installing XPM."
15764 echo " WARNING: Otherwise toolbars and other graphics will look suboptimal."
15765 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
15766 echo " WARNING: -----------------------------------------------------------"
15768 if test "$with_png" = yes; then
15769 echo " Compiling in support for PNG images."
15770 elif test "$window_system" != "none"; then
15771 echo " WARNING: -----------------------------------------------------------"
15772 echo " WARNING: Compiling without PNG image support."
15773 if test "$png_problem" != ""; then
15774 echo " Reason: $png_problem"
15776 echo " WARNING: You should strongly consider installing the PNG libraries."
15777 echo " WARNING: Otherwise certain images and glyphs may not display."
15778 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
15779 echo " WARNING: -----------------------------------------------------------"
15781 test "$with_jpeg" = yes && echo " Compiling in support for JPEG images."
15782 test "$with_tiff" = yes && echo " Compiling in support for TIFF images."
15783 test "$with_xface" = yes && echo " Compiling in support for X-Face message headers."
15787 test "$with_native_sound" = yes && echo " Compiling in support for sound (native)."
15788 test "$with_nas_sound" = yes && echo " Compiling in support for NAS (network audio system)."
15789 test "$old_nas" = yes && echo " - NAS library lacks error trapping; will play synchronously."
15790 test "$with_esd_sound" = yes && echo " Compiling in support for ESD (Enlightened Sound Daemon)."
15794 test "$with_database_berkdb" = yes && echo " Compiling in support for Berkeley database."
15795 test "$with_database_dbm" = yes && echo " Compiling in support for DBM."
15796 test "$with_database_gdbm" = yes && echo " Compiling in support for GNU DBM."
15797 test "$with_ldap" = yes && echo " Compiling in support for LDAP."
15798 if test "$with_postgresql" = yes; then
15799 echo " Compiling in support for PostgreSQL."
15800 echo " - Using PostgreSQL header file: $libpq_fe_h_file"
15801 test "$with_postgresqlv7" = yes && echo " - Using PostgreSQL V7 bindings."
15805 Internationalization:"
15806 test "$with_mule" = yes && echo " Compiling in support for Mule (multi-lingual Emacs)."
15807 test "$with_file_coding" = yes && echo " Compiling in support for file coding."
15808 test "$with_xim" != no && echo " Compiling in support for XIM (X11R5+ I18N input method)."
15809 test "$with_xim" = motif && echo " - Using Motif to provide XIM support."
15810 test "$with_xim" = xlib && echo " - Using raw Xlib to provide XIM support."
15811 test "$with_xfs" = yes && echo " - Using XFontSet to provide bilingual menubar."
15812 test "$with_canna" = yes && echo " Compiling in support for Canna on Mule."
15813 if test "$with_wnn" = yes; then
15814 echo " Compiling in support for the WNN input method on Mule."
15815 test "$with_wnn6" = yes && echo " - Using WNN version 6."
15817 test "$with_i18n3" = yes && echo " Compiling in support for I18N level 3 (doesn't currently work)."
15821 test "$with_pop" = yes && echo " Compiling in support for POP mail retrieval."
15822 test "$with_kerberos" = yes && echo " Compiling in support for Kerberos POP authentication."
15823 test "$with_hesiod" = yes && echo " Compiling in support for Hesiod POP server access."
15824 test -n "$mail_locking" && echo " Compiling in support for \"$mail_locking\" mail spool file locking method."
15828 test "$with_ipv6_cname" = no && echo " Inhibiting IPv6 canonicalization at startup."
15829 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk."
15830 test "$with_workshop" = yes && echo " Compiling in support for Sun WorkShop."
15831 test "$with_socks" = yes && echo " Compiling in support for SOCKS."
15832 test "$with_dnet" = yes && echo " Compiling in support for DNET."
15833 test "$with_modules" = "yes" && echo " Compiling in support for dynamic shared object modules."
15834 test "$use_union_type" = yes && echo " Using the union type for Lisp_Objects."
15835 test "$pdump" = yes && echo " Using the new portable dumper."
15836 test "$debug" = yes && echo " Compiling in support for extra debugging code."
15837 test "$usage_tracking" = yes && echo " Compiling in support for active usage tracking (Sun internal)."
15838 if test "$error_check_extents $error_check_typecheck $error_check_bufpos $error_check_gc $error_check_malloc $error_check_glyphs" \
15839 != "no no no no no no"; then
15840 echo " WARNING: ---------------------------------------------------------"
15841 echo " WARNING: Compiling in support for runtime error checking."
15842 echo " WARNING: XEmacs will run noticeably more slowly as a result."
15843 echo " WARNING: Error checking is on by default for XEmacs beta releases."
15844 echo " WARNING: ---------------------------------------------------------"
15847 ) | tee -a Installation
15851 # Remove any trailing slashes in these variables.
15852 test -n "$prefix" &&
15853 prefix=`echo '' "$prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
15854 test -n "$exec_prefix" &&
15855 exec_prefix=`echo '' "$exec_prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
15858 for file in $internal_makefile_list; do
15859 test "$file" = src/Makefile.in && \
15860 file="src/Makefile.in:src/Makefile.in.in:src/depend"
15861 ac_output_files="$ac_output_files $file" && if test "$extra_verbose" = "yes"; then echo " Appending \"$file\" to \$ac_output_files"; fi
15863 ac_output_files="$ac_output_files src/paths.h lib-src/config.values"
15864 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
15868 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
15870 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15871 # Let make expand exec_prefix.
15872 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15874 # Any assignment to VPATH causes Sun make to only execute
15875 # the first set of double-colon rules, so remove it if not needed.
15876 # If there is a colon in the path, we need to keep it.
15877 if test "x$srcdir" = x.; then
15878 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
15881 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
15883 DEFS=-DHAVE_CONFIG_H
15885 # Without the "./", some shells look in PATH for config.status.
15886 : ${CONFIG_STATUS=./config.status}
15888 echo creating $CONFIG_STATUS
15889 rm -f $CONFIG_STATUS
15890 cat > $CONFIG_STATUS <<EOF
15892 # Generated automatically by configure.
15893 # Run this file to recreate the current configuration.
15894 # This directory was configured as follows,
15895 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15897 # $0 $ac_configure_args
15899 # Compiler output produced by configure, useful for debugging
15900 # configure, is in ./config.log if it exists.
15902 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
15905 case "\$ac_option" in
15906 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15907 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
15908 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
15909 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
15910 echo "$CONFIG_STATUS generated by autoconf version 2.13"
15912 -help | --help | --hel | --he | --h)
15913 echo "\$ac_cs_usage"; exit 0 ;;
15914 *) echo "\$ac_cs_usage"; exit 1 ;;
15918 ac_given_srcdir=$srcdir
15919 ac_given_INSTALL="$INSTALL"
15921 trap 'rm -fr `echo "$ac_output_files src/config.h lwlib/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
15923 cat >> $CONFIG_STATUS <<EOF
15925 # Protect against being on the right side of a sed subst in config.status.
15926 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
15927 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
15931 s%@CFLAGS@%$CFLAGS%g
15932 s%@CPPFLAGS@%$CPPFLAGS%g
15933 s%@CXXFLAGS@%$CXXFLAGS%g
15934 s%@FFLAGS@%$FFLAGS%g
15936 s%@LDFLAGS@%$LDFLAGS%g
15938 s%@exec_prefix@%$exec_prefix%g
15939 s%@prefix@%$prefix%g
15940 s%@program_transform_name@%$program_transform_name%g
15941 s%@bindir@%$bindir%g
15942 s%@sbindir@%$sbindir%g
15943 s%@libexecdir@%$libexecdir%g
15944 s%@datadir@%$datadir%g
15945 s%@sysconfdir@%$sysconfdir%g
15946 s%@sharedstatedir@%$sharedstatedir%g
15947 s%@localstatedir@%$localstatedir%g
15948 s%@libdir@%$libdir%g
15949 s%@includedir@%$includedir%g
15950 s%@oldincludedir@%$oldincludedir%g
15951 s%@infodir@%$infodir%g
15952 s%@mandir@%$mandir%g
15954 s%@blddir@%$blddir%g
15957 s%@start_flags@%$start_flags%g
15958 s%@ld_switch_shared@%$ld_switch_shared%g
15959 s%@start_files@%$start_files%g
15961 s%@lib_gcc@%$lib_gcc%g
15962 s%@RANLIB@%$RANLIB%g
15963 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
15964 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
15965 s%@INSTALL_DATA@%$INSTALL_DATA%g
15967 s%@SET_MAKE@%$SET_MAKE%g
15968 s%@GTK_CONFIG@%$GTK_CONFIG%g
15969 s%@X_CFLAGS@%$X_CFLAGS%g
15970 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
15971 s%@X_LIBS@%$X_LIBS%g
15972 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
15973 s%@install_pp@%$install_pp%g
15974 s%@libs_xauth@%$libs_xauth%g
15975 s%@dnd_objs@%$dnd_objs%g
15976 s%@lwlib_objs@%$lwlib_objs%g
15977 s%@ALLOCA@%$ALLOCA%g
15978 s%@have_esd_config@%$have_esd_config%g
15979 s%@dll_ld@%$dll_ld%g
15980 s%@dll_cflags@%$dll_cflags%g
15981 s%@dll_ldflags@%$dll_ldflags%g
15982 s%@dll_post@%$dll_post%g
15983 s%@dll_ldo@%$dll_ldo%g
15984 s%@ld_dynamic_link_flags@%$ld_dynamic_link_flags%g
15985 s%@SRC_SUBDIR_DEPS@%$SRC_SUBDIR_DEPS%g
15986 s%@INSTALL_ARCH_DEP_SUBDIR@%$INSTALL_ARCH_DEP_SUBDIR%g
15987 s%@MAKE_SUBDIR@%$MAKE_SUBDIR%g
15988 s%@SUBDIR_MAKEFILES@%$SUBDIR_MAKEFILES%g
15989 s%@PROGNAME@%$PROGNAME%g
15990 s%@version@%$version%g
15991 s%@configuration@%$configuration%g
15992 s%@canonical@%$canonical%g
15993 s%@inststaticdir@%$inststaticdir%g
15994 s%@instvardir@%$instvardir%g
15995 s%@srcdir@%$srcdir%g
15996 s%@pkgdir@%$pkgdir%g
15997 s%@statedir@%$statedir%g
15998 s%@extra_includes@%$extra_includes%g
15999 s%@PREFIX_USER_DEFINED@%$PREFIX_USER_DEFINED%g
16000 s%@PREFIX@%$PREFIX%g
16001 s%@EXEC_PREFIX_USER_DEFINED@%$EXEC_PREFIX_USER_DEFINED%g
16002 s%@EXEC_PREFIX@%$EXEC_PREFIX%g
16003 s%@INFODIR_USER_DEFINED@%$INFODIR_USER_DEFINED%g
16004 s%@INFODIR@%$INFODIR%g
16005 s%@infopath@%$infopath%g
16006 s%@INFOPATH_USER_DEFINED@%$INFOPATH_USER_DEFINED%g
16007 s%@INFOPATH@%$INFOPATH%g
16008 s%@package_path@%$package_path%g
16009 s%@PACKAGE_PATH_USER_DEFINED@%$PACKAGE_PATH_USER_DEFINED%g
16010 s%@PACKAGE_PATH@%$PACKAGE_PATH%g
16011 s%@lispdir@%$lispdir%g
16012 s%@LISPDIR_USER_DEFINED@%$LISPDIR_USER_DEFINED%g
16013 s%@LISPDIR@%$LISPDIR%g
16014 s%@moduledir@%$moduledir%g
16015 s%@MODULEDIR_USER_DEFINED@%$MODULEDIR_USER_DEFINED%g
16016 s%@MODULEDIR@%$MODULEDIR%g
16017 s%@sitelispdir@%$sitelispdir%g
16018 s%@SITELISPDIR_USER_DEFINED@%$SITELISPDIR_USER_DEFINED%g
16019 s%@SITELISPDIR@%$SITELISPDIR%g
16020 s%@sitemoduledir@%$sitemoduledir%g
16021 s%@SITEMODULEDIR_USER_DEFINED@%$SITEMODULEDIR_USER_DEFINED%g
16022 s%@SITEMODULEDIR@%$SITEMODULEDIR%g
16023 s%@etcdir@%$etcdir%g
16024 s%@ETCDIR_USER_DEFINED@%$ETCDIR_USER_DEFINED%g
16025 s%@ETCDIR@%$ETCDIR%g
16026 s%@docdir@%$docdir%g
16027 s%@DOCDIR_USER_DEFINED@%$DOCDIR_USER_DEFINED%g
16028 s%@DOCDIR@%$DOCDIR%g
16029 s%@archlibdir@%$archlibdir%g
16030 s%@ARCHLIBDIR_USER_DEFINED@%$ARCHLIBDIR_USER_DEFINED%g
16031 s%@ARCHLIBDIR@%$ARCHLIBDIR%g
16032 s%@bitmapdir@%$bitmapdir%g
16033 s%@extra_objs@%$extra_objs%g
16034 s%@machfile@%$machfile%g
16035 s%@opsysfile@%$opsysfile%g
16036 s%@c_switch_general@%$c_switch_general%g
16037 s%@c_switch_window_system@%$c_switch_window_system%g
16038 s%@c_switch_all@%$c_switch_all%g
16039 s%@ld_switch_general@%$ld_switch_general%g
16040 s%@ld_switch_window_system@%$ld_switch_window_system%g
16041 s%@ld_switch_all@%$ld_switch_all%g
16042 s%@ld_libs_general@%$ld_libs_general%g
16043 s%@ld_libs_window_system@%$ld_libs_window_system%g
16044 s%@ld_libs_all@%$ld_libs_all%g
16045 s%@RECURSIVE_MAKE@%$RECURSIVE_MAKE%g
16046 s%@native_sound_lib@%$native_sound_lib%g
16047 s%@sound_cflags@%$sound_cflags%g
16048 s%@dynodump_arch@%$dynodump_arch%g
16049 s%@XEMACS_CC@%$XEMACS_CC%g
16050 s%@internal_makefile_list@%$internal_makefile_list%g
16055 cat >> $CONFIG_STATUS <<\EOF
16057 # Split the substitutions into bite-sized pieces for seds with
16058 # small command number limits, like on Digital OSF/1 and HP-UX.
16059 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
16060 ac_file=1 # Number of current file.
16061 ac_beg=1 # First line for current file.
16062 ac_end=$ac_max_sed_cmds # Line after last line for current file.
16065 while $ac_more_lines; do
16066 if test $ac_beg -gt 1; then
16067 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
16069 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
16071 if test ! -s conftest.s$ac_file; then
16072 ac_more_lines=false
16073 rm -f conftest.s$ac_file
16075 if test -z "$ac_sed_cmds"; then
16076 ac_sed_cmds="sed -f conftest.s$ac_file"
16078 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
16080 ac_file=`expr $ac_file + 1`
16082 ac_end=`expr $ac_end + $ac_max_sed_cmds`
16085 if test -z "$ac_sed_cmds"; then
16090 cat >> $CONFIG_STATUS <<EOF
16092 CONFIG_FILES=\${CONFIG_FILES-"$ac_output_files"}
16094 cat >> $CONFIG_STATUS <<\EOF
16095 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
16096 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16098 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16099 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16100 *) ac_file_in="${ac_file}.in" ;;
16103 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
16105 # Remove last slash and all that follows it. Not all systems have dirname.
16106 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16107 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16108 # The file is in a subdirectory.
16109 test ! -d "$ac_dir" && mkdir "$ac_dir"
16110 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
16111 # A "../" for each directory in $ac_dir_suffix.
16112 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
16114 ac_dir_suffix= ac_dots=
16117 case "$ac_given_srcdir" in
16119 if test -z "$ac_dots"; then top_srcdir=.
16120 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
16121 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
16122 *) # Relative path.
16123 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
16124 top_srcdir="$ac_dots$ac_given_srcdir" ;;
16127 case "$ac_given_INSTALL" in
16128 [/$]*) INSTALL="$ac_given_INSTALL" ;;
16129 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
16132 echo creating "$ac_file"
16134 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
16136 *Makefile*) ac_comsub="1i\\
16137 # $configure_input" ;;
16141 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16143 s%@configure_input@%$configure_input%g
16144 s%@srcdir@%$srcdir%g
16145 s%@top_srcdir@%$top_srcdir%g
16146 s%@INSTALL@%$INSTALL%g
16147 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
16151 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16152 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16154 # ac_d sets the value in "#define NAME VALUE" lines.
16155 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16156 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
16159 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
16160 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16161 ac_uB='\([ ]\)%\1#\2define\3'
16164 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16165 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16166 ac_eB='$%\1#\2define\3'
16170 if test "${CONFIG_HEADERS+set}" != set; then
16172 cat >> $CONFIG_STATUS <<EOF
16173 CONFIG_HEADERS="src/config.h lwlib/config.h"
16175 cat >> $CONFIG_STATUS <<\EOF
16177 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
16178 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16180 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16181 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16182 *) ac_file_in="${ac_file}.in" ;;
16185 echo creating $ac_file
16187 rm -f conftest.frag conftest.in conftest.out
16188 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16189 cat $ac_file_inputs > conftest.in
16193 # Transform confdefs.h into a sed script conftest.vals that substitutes
16194 # the proper values into config.h.in to produce config.h. And first:
16195 # Protect against being on the right side of a sed subst in config.status.
16196 # Protect against being in an unquoted here document in config.status.
16197 rm -f conftest.vals
16198 cat > conftest.hdr <<\EOF
16201 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
16205 sed -n -f conftest.hdr confdefs.h > conftest.vals
16208 # This sed command replaces #undef with comments. This is necessary, for
16209 # example, in the case of _POSIX_SOURCE, which is predefined and required
16210 # on some systems where configure will not decide to define it.
16211 cat >> conftest.vals <<\EOF
16212 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
16215 # Break up conftest.vals because some shells have a limit on
16216 # the size of here documents, and old seds have small limits too.
16218 rm -f conftest.tail
16221 ac_lines=`grep -c . conftest.vals`
16222 # grep -c gives empty output for an empty file on some AIX systems.
16223 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
16224 # Write a limited-size here document to conftest.frag.
16225 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
16226 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
16228 sed -f conftest.frag conftest.in > conftest.out
16230 mv conftest.out conftest.in
16231 ' >> $CONFIG_STATUS
16232 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
16233 rm -f conftest.vals
16234 mv conftest.tail conftest.vals
16236 rm -f conftest.vals
16238 cat >> $CONFIG_STATUS <<\EOF
16239 rm -f conftest.frag conftest.h
16240 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
16241 cat conftest.in >> conftest.h
16243 if cmp -s $ac_file conftest.h 2>/dev/null; then
16244 echo "$ac_file is unchanged"
16247 # Remove last slash and all that follows it. Not all systems have dirname.
16248 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16249 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16250 # The file is in a subdirectory.
16251 test ! -d "$ac_dir" && mkdir "$ac_dir"
16254 mv conftest.h $ac_file
16259 cat >> $CONFIG_STATUS <<EOF
16261 top_srcdir="$srcdir"
16262 MAKE_SUBDIR="$MAKE_SUBDIR"
16265 cat >> $CONFIG_STATUS <<\EOF
16266 for dir in . $MAKE_SUBDIR; do
16271 sed -e '/^# Generated/d' \
16272 -e 's%/\*\*/#.*%%' \
16287 echo creating $dir/Makefile
16288 $CPP -I. -I${top_srcdir}/src junk.c \
16289 | sed -e 's/^\#.*//' \
16290 -e 's/^[ ][ ]*$//'\
16298 chmod 444 Makefile.new
16299 mv -f Makefile.new Makefile
16301 echo creating $dir/GNUmakefile
16302 $CPP -I. -I${top_srcdir}/src -DUSE_GNU_MAKE junk.c \
16303 | sed -e 's/^\#.*//' \
16304 -e 's/^[ ][ ]*$//'\
16312 chmod 444 Makefile.new
16313 mv -f Makefile.new GNUmakefile
16319 sed < config.status >> lib-src/config.values \
16320 -e '/{ac_dA}.*{ac_dB}.*{ac_dC}.*{ac_dD}$/!d' \
16321 -e 's/\${ac_dA}\(.*\)\${ac_dB}.*\${ac_dC}\(.*\)\${ac_dD}/\1 \2/' \
16322 -e 's/^\([^ ]*\) $/\1 ""/' \
16328 chmod +x $CONFIG_STATUS
16329 rm -fr confdefs* $ac_clean_files
16330 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1