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.
20 ### This file is part of XEmacs.
22 ### XEmacs is free software; you can redistribute it and/or modify it
23 ### under the terms of the GNU General Public License as published by
24 ### the Free Software Foundation; either version 2, or (at your
25 ### option) any later version.
27 ### XEmacs is distributed in the hope that it will be useful, but
28 ### WITHOUT ANY WARRANTY; without even the implied warranty of
29 ### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
30 ### General Public License for more details.
32 ### You should have received a copy of the GNU General Public License
33 ### along with XEmacs; see the file COPYING. If not, write to the Free
34 ### Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
37 ### For usage, run `./configure --help'
38 ### For more detailed information on building and installing XEmacs,
39 ### read the file `INSTALL'.
41 ### If configure succeeds, it leaves its status in config.status.
42 ### A log of configuration tests can be found in config.log.
43 ### If configure fails after disturbing the status quo,
44 ### config.status is removed.
47 --with-x use the X Window System"
51 if test -n "$ZSH_VERSION"; then
52 setopt NO_BAD_PATTERN NO_BANG_HIST NO_BG_NICE NO_EQUALS NO_FUNCTION_ARGZERO
53 setopt GLOB_SUBST NO_HUP INTERACTIVE_COMMENTS KSH_ARRAYS NO_MULTIOS NO_NOMATCH
54 setopt RM_STAR_SILENT POSIX_BUILTINS SH_FILE_EXPANSION SH_GLOB SH_OPTION_LETTERS
55 setopt SH_WORD_SPLIT BSD_ECHO IGNORE_BRACES
56 if test -n "$CDPATH"; then CDPATH="."; export CDPATH; fi
57 elif test -n "$BASH_VERSION"; then
61 if test -n "$CDPATH"; then CDPATH="."; export CDPATH; fi
72 program_transform_name=s,x,x,
83 SHELL=${CONFIG_SHELL-/bin/sh}
86 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
88 # File descriptor usage:
91 # 2 errors and warnings
92 # 3 some systems may open it to /dev/tty
93 # 4 used on the Kubota Titan
94 # 6 checking for... messages and results
95 # 5 compiler messages saved in config.log
96 if test "$silent" = yes; then
104 This file contains any messages produced by compilers while
105 running configure, to aid debugging if configure makes a mistake.
108 # Strip out --no-create and --no-recursion so they do not pile up.
109 # Also quote any args containing shell metacharacters.
114 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
115 | --no-cr | --no-c) ;;
116 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
117 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
118 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
119 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
120 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
125 # Only set these to C if already set. These must not be set unconditionally
126 # because not all systems understand e.g. LANG=C (notably SCO).
127 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
128 # Non-C LC_CTYPE values break the ctype check.
129 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
130 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
131 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
132 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
134 # confdefs.h avoids OS command line length limits that DEFS can exceed.
135 rm -rf conftest* confdefs.h
136 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
139 # A filename unique to this package, relative to the directory that
140 # configure is in, which we can look for to find out if srcdir is correct.
141 ac_unique_file=src/lisp.h
143 # Find the source files, if location was not specified.
144 if test -z "$srcdir"; then
145 ac_srcdir_defaulted=yes
146 # Try the directory containing this script, then its parent.
148 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
149 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
151 if test ! -r $srcdir/$ac_unique_file; then
155 ac_srcdir_defaulted=no
157 if test ! -r $srcdir/$ac_unique_file; then
158 if test "$ac_srcdir_defaulted" = yes; then
159 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
161 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
164 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
166 # Prefer explicitly selected file to automatically selected ones.
167 if test -z "$CONFIG_SITE"; then
168 if test "x$prefix" != xNONE; then
169 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
171 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
174 for ac_site_file in $CONFIG_SITE; do
175 if test -r "$ac_site_file"; then
176 echo "loading site script $ac_site_file"
183 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
184 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
185 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'
186 ac_cpp='$CPP '"$xe_cppflags"
187 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
188 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
193 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
194 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
195 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
202 ac_n= ac_c='\c' ac_t=
206 progname="`echo $0 | sed 's:^\./\./:\./:'`"
209 MAKE_SUBDIR="$MAKE_SUBDIR lib-src" && if test "$extra_verbose" = "yes"; then echo " Appending \"lib-src\" to \$MAKE_SUBDIR"; fi
210 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
213 exec_prefix='${prefix}'
214 bindir='${exec_prefix}/bin'
215 datadir='${prefix}/lib'
216 statedir='${prefix}/lib'
217 libdir='${exec_prefix}/lib'
218 mandir='${prefix}/man/man1'
219 inststaticdir='${PROGNAME}'
220 instvardir='${PROGNAME}-${version}'
221 infodir='${datadir}/${instvardir}/info'
224 lispdir='${datadir}/${instvardir}/lisp'
225 moduledir='${datadir}/${instvardir}/${configuration}/modules'
226 sitelispdir='${datadir}/${inststaticdir}/site-lisp'
227 sitemoduledir='${datadir}/${inststaticdir}/site-modules'
228 pkgdir='${datadir}/${instvardir}/lisp'
230 etcdir='${datadir}/${instvardir}/etc'
231 archlibdir='${datadir}/${instvardir}/${configuration}'
232 docdir='${archlibdir}'
236 with_site_modules='yes'
242 cpp='' cppflags='' libs='' ldflags=''
248 with_system_malloc='default'
249 with_dlmalloc='default'
266 quoted_sed_magic=s/"'"/"'"'"'"'"'"'"'"/g
270 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
271 | --no-cr | --no-c) ;;
272 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
273 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
275 quoted_i="`echo '' $i | sed -e 's:^ ::' -e $quoted_sed_magic`"
276 quoted_arguments="$quoted_arguments '$quoted_i'" ;;
280 while test $# != 0; do
283 --no-create|--no-recursion) ;;
287 opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\([^=]*\)=.*$:\1:'`
288 val=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*[^=]*=\(.*\)$:\1:'`
292 opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\(.*\)$:\1:'`
293 val="yes" valomitted=yes
298 opt="`echo '' $opt | sed -e 's:^ ::' | tr - _`"
300 case "${valomitted}-${opt}" in yes-without_* )
301 opt=`echo $opt | sed 's/without/with/'`
302 valomitted="no" val="no" ;;
309 with_site_modules | \
362 memory_usage_stats | \
363 with_clash_detection | \
367 y | ye | yes ) val=yes ;;
369 * ) (echo "$progname: Usage error:"
370 echo " " "The \`--$optname' option requires a boolean value: \`yes' or \`no'."
371 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
373 eval "$opt=\"$val\"" ;;
391 site_runtime_libraries )
392 if test "$valomitted" = "yes" ; then
393 if test "$#" = 0 ; then
394 (echo "$progname: Usage error:"
395 echo " " "The \`--$optname' option requires a value."
396 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
405 with_debug_malloc | use_debug_malloc | \
406 with_system_malloc | use_system_malloc )
408 y | ye | yes ) val=yes ;;
410 d | de | def | defa | defau | defaul | default ) val=default ;;
411 * ) (echo "$progname: Usage error:"
412 echo " " "The \`--$optname' option requires one of these values:
413 \`yes', \`no', or \`default'."
414 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
416 case "$opt" in use_* ) opt="`echo $opt | sed s/use/with/`" ;; esac
421 with_database_berkdb=no
423 with_database_gdbm=no
424 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
427 b | be | ber | berk | berkd | berkdb ) with_database_berkdb=yes ;;
428 d | db | dbm ) with_database_dbm=yes ;;
429 g | gn | gnu | gnud | gnudb | gnudbm | gdbm) with_database_gdbm=yes ;;
430 * ) (echo "$progname: Usage error:"
431 echo " " "The \`--$optname' option value
432 must be either \`no' or a comma-separated list
433 of one or more of \`berkdb' and either \`dbm' or \`gnudbm'."
434 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
437 if test "$with_database_dbm" = "yes" -a \
438 "$with_database_gdbm" = "yes"; then
439 (echo "$progname: Usage error:"
440 echo " " "Only one of \`dbm' and \`gnudbm' may be specified
441 with the \`--$optname' option."
442 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
447 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
449 n | no | non | none ) new_sdefault=no ;;
450 a | al | all | both ) new_sdefault=yes ;;
452 native ) with_native_sound=yes ;;
453 nonative ) with_native_sound=no ;;
455 nas ) with_nas_sound=yes ;;
456 nonas ) with_nas_sound=no ;;
458 esd ) with_esd_sound=yes ;;
459 noesd ) with_esd_sound=no ;;
461 * ) bogus_sound=yes ;;
463 if test "$bogus_sound" -o \
464 \( -n "$new_sdefault" -a -n "$sound_notfirst" \) ; then
465 types="\`all', \`none', \`(no)native', \`no(nas)', \`(no)esd'."
466 (echo "$progname: Usage error:"
467 echo " " "Valid types for the \`--$optname' option are:
469 The default is to autodetect all sound support."
470 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
471 elif test -n "$new_sdefault" ; then
472 with_native_sound=$new_sdefault
473 with_nas_sound=$new_sdefault
474 with_esd_sound=$new_sdefault
475 new_sdefault= # reset this
483 xa | xaw ) val=xaw ;;
484 3 | 3d | xaw3d ) val=3d ;;
485 ne | nex | next | naxtaw) val=next ;;
486 9 | 95 | xaw95 ) val=95 ;;
487 xp | xpm | xawxpm ) val=xpm ;;
488 * ) (echo "$progname: Usage error:"
489 echo " " "The \`--$optname' option must have one of these values:
490 \`xaw', \`3d', \`next', \`95', or \`xpm'."
491 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
498 y | ye | yes ) val=yes ;;
499 n | no | non | none ) val=no ;;
500 x | xl | xli | xlib ) val=xlib ;;
501 m | mo | mot | moti | motif ) val=motif ;;
502 * ) (echo "$progname: Usage error:"
503 echo " " "The \`--$optname' option must have one of these values:
504 \`motif', \`xlib', \`yes', or \`no'."
505 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
514 file | dot ) val=file ;;
515 locking ) val=locking ;;
516 * ) (echo "$progname: Usage error:"
517 echo " " "The \`--$optname' option must have one of these values:
518 \`lockf', \`flock', \`file', \`locking', or \`mmdf'."
519 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
526 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
528 n | no | non | none ) new_default=no ;;
529 a | al | all ) new_default=yes ;;
531 extents ) error_check_extents=yes ;;
532 noextents ) error_check_extents=no ;;
534 typecheck ) error_check_typecheck=yes ;;
535 notypecheck ) error_check_typecheck=no ;;
537 bufpos ) error_check_bufpos=yes ;;
538 nobufpos ) error_check_bufpos=no ;;
540 gc ) error_check_gc=yes ;;
541 nogc ) error_check_gc=no ;;
543 malloc ) error_check_malloc=yes ;;
544 nomalloc ) error_check_malloc=no ;;
546 byte_code ) error_check_byte_code=yes ;;
547 nobyte_code ) error_check_byte_code=no ;;
549 glyphs ) error_check_glyphs=yes ;;
550 noglyphs ) error_check_glyphs=no ;;
552 * ) bogus_error_check=yes ;;
554 if test "$bogus_error_check" -o \
555 \( -n "$new_default" -a -n "$echeck_notfirst" \) ; then
556 if test "$error_check_default" = yes ; then
557 types="\`all' (default), \`none', \`noextents', \`notypecheck', \`nobufpos', \`nogc', \`nomalloc', \`noglyphs' and \`nobyte-code'."
559 types="\`all', \`none' (default), \`extents', \`typecheck', \`bufpos', \`gc', \`malloc', \`glyphs' and \`byte-code'."
561 (echo "$progname: Usage error:"
562 echo " " "Valid types for the \`--$optname' option are:
564 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
565 elif test -n "$new_default" ; then
566 error_check_extents=$new_default
567 error_check_typecheck=$new_default
568 error_check_bufpos=$new_default
569 error_check_gc=$new_default
570 error_check_malloc=$new_default
571 error_check_byte_code=$new_default
572 error_check_glyphs=$new_default
573 new_default= # reset this
580 prefix | exec_prefix | bindir | datadir | statedir | libdir | \
581 mandir | infodir | infopath | lispdir | etcdir | pkgdir | \
582 archlibdir | docdir | package_path )
583 if test "$valomitted" = "yes"; then
584 if test "$#" = 0; then
585 (echo "$progname: Usage error:"
586 echo " " "The \`--$optname' option requires a value."
587 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
594 exec_prefix ) { test "$extra_verbose" = "yes" && cat << \EOF
595 Defining EXEC_PREFIX_USER_DEFINED
597 cat >> confdefs.h <<\EOF
598 #define EXEC_PREFIX_USER_DEFINED 1
602 lispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
603 Defining LISPDIR_USER_DEFINED
605 cat >> confdefs.h <<\EOF
606 #define LISPDIR_USER_DEFINED 1
610 sitelispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
611 Defining SITELISPDIR_USER_DEFINED
613 cat >> confdefs.h <<\EOF
614 #define SITELISPDIR_USER_DEFINED 1
618 moduledir ) { test "$extra_verbose" = "yes" && cat << \EOF
619 Defining MODULEDIR_USER_DEFINED
621 cat >> confdefs.h <<\EOF
622 #define MODULEDIR_USER_DEFINED 1
626 etcdir ) { test "$extra_verbose" = "yes" && cat << \EOF
627 Defining ETCDIR_USER_DEFINED
629 cat >> confdefs.h <<\EOF
630 #define ETCDIR_USER_DEFINED 1
634 infodir ) { test "$extra_verbose" = "yes" && cat << \EOF
635 Defining INFODIR_USER_DEFINED
637 cat >> confdefs.h <<\EOF
638 #define INFODIR_USER_DEFINED 1
642 infopath ) { test "$extra_verbose" = "yes" && cat << \EOF
643 Defining INFOPATH_USER_DEFINED
645 cat >> confdefs.h <<\EOF
646 #define INFOPATH_USER_DEFINED 1
650 package_path ) { test "$extra_verbose" = "yes" && cat << \EOF
651 Defining PACKAGE_PATH_USER_DEFINED
653 cat >> confdefs.h <<\EOF
654 #define PACKAGE_PATH_USER_DEFINED 1
659 { test "$extra_verbose" = "yes" && cat << \EOF
660 Defining INFODIR_USER_DEFINED
662 cat >> confdefs.h <<\EOF
663 #define INFODIR_USER_DEFINED 1
667 { test "$extra_verbose" = "yes" && cat << \EOF
668 Defining LISPDIR_USER_DEFINED
670 cat >> confdefs.h <<\EOF
671 #define LISPDIR_USER_DEFINED 1
675 { test "$extra_verbose" = "yes" && cat << \EOF
676 Defining MODULEDIR_USER_DEFINED
678 cat >> confdefs.h <<\EOF
679 #define MODULEDIR_USER_DEFINED 1
683 { test "$extra_verbose" = "yes" && cat << \EOF
684 Defining ETCDIR_USER_DEFINED
686 cat >> confdefs.h <<\EOF
687 #define ETCDIR_USER_DEFINED 1
691 { test "$extra_verbose" = "yes" && cat << \EOF
692 Defining DOCDIR_USER_DEFINED
694 cat >> confdefs.h <<\EOF
695 #define DOCDIR_USER_DEFINED 1
699 { test "$extra_verbose" = "yes" && cat << \EOF
700 Defining ARCHLIBDIR_USER_DEFINED
702 cat >> confdefs.h <<\EOF
703 #define ARCHLIBDIR_USER_DEFINED 1
707 docdir ) { test "$extra_verbose" = "yes" && cat << \EOF
708 Defining DOCDIR_USER_DEFINED
710 cat >> confdefs.h <<\EOF
711 #define DOCDIR_USER_DEFINED 1
715 exec_prefix | libdir | archlibdir ) { test "$extra_verbose" = "yes" && cat << \EOF
716 Defining ARCHLIBDIR_USER_DEFINED
718 cat >> confdefs.h <<\EOF
719 #define ARCHLIBDIR_USER_DEFINED 1
728 "usage" | "help" ) ${PAGER-more} ${srcdir}/configure.usage; exit 0 ;;
731 "with_scrollbars" | \
735 l | lu | luc | luci | lucid ) val=lucid ;;
736 m | mo | mot | moti | motif ) val=motif ;;
737 a | at | ath | athe | athen | athena ) val=athena ;;
738 n | no | non | none ) val=no ;;
739 y | ye | yes ) val=yes ;;
740 g | gt | gtk ) val=gtk ;;
741 m | ms | msw ) val=msw ;;
742 * ) (echo "$progname: Usage error:"
743 echo " " "The \`--$optname' option must have one of these values:
744 \`gtk\', \`lucid', \`motif', \`athena', \`yes', or \`no'."
745 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
750 "use_minimal_tagbits" | \
751 "use_indexed_lrecord_implementation" | \
753 "const_is_losing" | \
755 echo "configure: warning: Obsolete option \`--$optname' ignored." 1>&2
758 * ) (echo "$progname: Usage error:"
759 echo " " "Unrecognized option: $arg"
760 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
765 *-*-*) configuration="$arg" ;;
767 *) (echo "$progname: Usage error:"
768 echo " " "Unrecognized argument: $arg"
769 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
775 test -n "$cpp" && CPP="$cpp"
776 test -n "$cppflags" && CPPFLAGS="$cppflags"
777 test -n "$libs" && LIBS="$libs"
778 test -n "$ldflags" && LDFLAGS="$ldflags"
780 eval set x "$quoted_arguments"; shift
782 test "$extra_verbose" = "yes" && verbose=yes
784 test -n "$with_x" && with_x11="$with_x"
786 if test "$with_purify" = "yes" -o "$with_quantify" = "yes"; then
787 test "$with_system_malloc" = "default" && with_system_malloc=yes
792 if test "$with_cde $with_tooltalk" = "yes no"; then
793 (echo "$progname: Usage error:"
794 echo " " "--with-cde requires --with-tooltalk"
795 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
796 elif test "$with_tooltalk" = "no" ; then with_cde=no
797 elif test "$with_cde" = "yes"; then with_tooltalk=yes
804 for dir in "`echo $0 | sed 's|//|/|' | sed 's|/[^/]*$||'`" "." ".." ; do
805 if test -f "$dir/src/lisp.h" -a \
806 -f "$dir/lisp/version.el" ; then
811 if test -z "$srcdir" ; then
812 (echo "$progname: Usage error:"
813 echo " " "Neither the current directory nor its parent seem to
814 contain the XEmacs sources. If you do not want to build XEmacs in its
815 source tree, you should run \`$progname' in the directory in which
816 you wish to build XEmacs, using the \`--srcdir' option to say where the
817 sources may be found."
818 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
823 if test ! -f "$srcdir/src/lisp.h" -o \
824 ! -f "$srcdir/lisp/version.el" ; then
825 (echo "$progname: Usage error:"
826 echo " " "The directory specified with the \`--srcdir' option,
827 \`$srcdir', doesn't seem to contain the XEmacs sources. You should
828 either run the \`$progname' script at the top of the XEmacs source
829 tree, or use the \`--srcdir' option to specify the XEmacs source directory."
830 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
835 if test -z "$configuration"; then
836 configuration=`${CONFIG_SHELL-/bin/sh} $srcdir/config.guess`
837 if test -z "$configuration"; then
838 (echo "$progname: Usage error:"
839 echo " " "XEmacs has not been ported to this host type.
840 Try explicitly specifying the CONFIGURATION when rerunning configure."
841 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
845 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
846 echo "configure:847: checking whether ln -s works" >&5
849 if ln -s X conftestdata 2>/dev/null
852 ac_cv_prog_LN_S="ln -s"
856 LN_S="$ac_cv_prog_LN_S"
857 if test "$ac_cv_prog_LN_S" = "ln -s"; then
858 echo "$ac_t""yes" 1>&6
860 echo "$ac_t""no" 1>&6
864 for dir in lisp etc man info tests; do
865 if test ! -d "$dir" ; then
866 echo Making symbolic link to "$srcdir/$dir"
867 ${LN_S} "$srcdir/$dir" "$dir"
872 absolute_pwd="`pwd`";
873 if test -n "$PWD" -a "`cd $PWD && pwd`" = "$absolute_pwd"
875 else blddir="$absolute_pwd"; if test -d "/net"; then
876 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi
877 blddir=`echo "$blddir" | \
878 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
885 . ) srcdir="$blddir" ;;
886 * ) srcdir="`cd $srcdir && pwd`"; if test -d "/net"; then
887 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi
888 srcdir=`echo "$srcdir" | \
889 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
893 if test `pwd` != `sh -c cd $srcdir && pwd` \
894 && test -f "$srcdir/src/config.h"; then
895 (echo "$progname: WARNING: The directory tree \`$srcdir' is being used"
896 echo " as a build directory right now; it has been configured in its own"
897 echo " right. To configure in another directory as well, you MUST"
898 echo " use GNU make. If you do not have GNU make, then you must"
899 echo " now do \`make distclean' in $srcdir,"
900 echo " and then run $progname again.") >&2
901 extrasub='/^VPATH[ ]*=/c\
907 vpath %.in $(srcdir)'
910 . "$srcdir/version.sh" || exit 1;
911 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
912 : "${extra_verbose=$beta}"
913 version="${emacs_major_version}.${emacs_minor_version}"
914 { test "$extra_verbose" = "yes" && cat << EOF
915 Defining EMACS_MAJOR_VERSION = $emacs_major_version
917 cat >> confdefs.h <<EOF
918 #define EMACS_MAJOR_VERSION $emacs_major_version
922 { test "$extra_verbose" = "yes" && cat << EOF
923 Defining EMACS_MINOR_VERSION = $emacs_minor_version
925 cat >> confdefs.h <<EOF
926 #define EMACS_MINOR_VERSION $emacs_minor_version
930 if test -n "$emacs_beta_version" ; then
931 if test "$beta" = "yes"; then
932 version="${version}-b${emacs_beta_version}"
933 { test "$extra_verbose" = "yes" && cat << EOF
934 Defining EMACS_BETA_VERSION = $emacs_beta_version
936 cat >> confdefs.h <<EOF
937 #define EMACS_BETA_VERSION $emacs_beta_version
942 version="${version}.${emacs_beta_version}"
943 { test "$extra_verbose" = "yes" && cat << EOF
944 Defining EMACS_PATCH_LEVEL = $emacs_beta_version
946 cat >> confdefs.h <<EOF
947 #define EMACS_PATCH_LEVEL $emacs_beta_version
953 { test "$extra_verbose" = "yes" && cat << EOF
954 Defining XEMACS_CODENAME = "$xemacs_codename"
956 cat >> confdefs.h <<EOF
957 #define XEMACS_CODENAME "$xemacs_codename"
961 { test "$extra_verbose" = "yes" && cat << EOF
962 Defining EMACS_VERSION = "$version"
964 cat >> confdefs.h <<EOF
965 #define EMACS_VERSION "$version"
970 if test "$with_infodock" = "yes"; then
971 if test ! -f ../../ID-INSTALL; then
972 echo "Cannot build InfoDock without InfoDock sources"
977 if test "$with_infodock" = "yes"; then
978 { test "$extra_verbose" = "yes" && cat << EOF
979 Defining INFODOCK_MAJOR_VERSION = $infodock_major_version
981 cat >> confdefs.h <<EOF
982 #define INFODOCK_MAJOR_VERSION $infodock_major_version
986 { test "$extra_verbose" = "yes" && cat << EOF
987 Defining INFODOCK_MINOR_VERSION = $infodock_minor_version
989 cat >> confdefs.h <<EOF
990 #define INFODOCK_MINOR_VERSION $infodock_minor_version
994 { test "$extra_verbose" = "yes" && cat << EOF
995 Defining INFODOCK_BUILD_VERSION = $infodock_build_version
997 cat >> confdefs.h <<EOF
998 #define INFODOCK_BUILD_VERSION $infodock_build_version
1002 version=${infodock_major_version}.${infodock_minor_version}.${infodock_build_version}
1004 CPPFLAGS="$CPPFLAGS -DINFODOCK"
1009 { test "$extra_verbose" = "yes" && cat << EOF
1010 Defining EMACS_PROGNAME = "$PROGNAME"
1012 cat >> confdefs.h <<EOF
1013 #define EMACS_PROGNAME "$PROGNAME"
1018 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
1019 test "${error_check_extents=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1020 Defining ERROR_CHECK_EXTENTS
1022 cat >> confdefs.h <<\EOF
1023 #define ERROR_CHECK_EXTENTS 1
1027 test "${error_check_typecheck=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1028 Defining ERROR_CHECK_TYPECHECK
1030 cat >> confdefs.h <<\EOF
1031 #define ERROR_CHECK_TYPECHECK 1
1035 test "${error_check_bufpos=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1036 Defining ERROR_CHECK_BUFPOS
1038 cat >> confdefs.h <<\EOF
1039 #define ERROR_CHECK_BUFPOS 1
1043 test "${error_check_gc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1044 Defining ERROR_CHECK_GC
1046 cat >> confdefs.h <<\EOF
1047 #define ERROR_CHECK_GC 1
1051 test "${error_check_malloc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1052 Defining ERROR_CHECK_MALLOC
1054 cat >> confdefs.h <<\EOF
1055 #define ERROR_CHECK_MALLOC 1
1059 test "${error_check_byte_code=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1060 Defining ERROR_CHECK_BYTE_CODE
1062 cat >> confdefs.h <<\EOF
1063 #define ERROR_CHECK_BYTE_CODE 1
1067 test "${error_check_glyphs=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1068 Defining ERROR_CHECK_GLYPHS
1070 cat >> confdefs.h <<\EOF
1071 #define ERROR_CHECK_GLYPHS 1
1075 if test "${debug:=$beta}" = "yes"; then
1076 use_assertions=yes memory_usage_stats=yes
1077 extra_objs="$extra_objs debug.o" && if test "$extra_verbose" = "yes"; then
1078 echo " xemacs will be linked with \"debug.o\""
1080 extra_objs="$extra_objs tests.o" && if test "$extra_verbose" = "yes"; then
1081 echo " xemacs will be linked with \"tests.o\""
1083 { test "$extra_verbose" = "yes" && cat << \EOF
1084 Defining DEBUG_XEMACS
1086 cat >> confdefs.h <<\EOF
1087 #define DEBUG_XEMACS 1
1092 test "$use_assertions" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
1093 Defining USE_ASSERTIONS
1095 cat >> confdefs.h <<\EOF
1096 #define USE_ASSERTIONS 1
1100 test "$memory_usage_stats" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
1101 Defining MEMORY_USAGE_STATS
1103 cat >> confdefs.h <<\EOF
1104 #define MEMORY_USAGE_STATS 1
1110 echo $ac_n "checking "host system type"""... $ac_c" 1>&6
1111 echo "configure:1112: checking "host system type"" >&5
1112 internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'`
1113 canonical=`${CONFIG_SHELL-/bin/sh} $srcdir/config.sub "$internal_configuration"`
1114 configuration=`echo "$configuration" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
1115 canonical=`echo "$canonical" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
1116 echo "$ac_t""$configuration" 1>&6
1124 case "$canonical" in
1125 sparc-*-* ) machine=sparc ;;
1126 alpha*-*-* ) machine=alpha ;;
1127 vax-*-* ) machine=vax ;;
1128 mips-dec-* ) machine=pmax ;;
1129 mips-sgi-irix6* ) machine=iris6d ;;
1130 mips-sgi-* ) machine=iris4d ;;
1131 mips*-linux ) machine=mips ;;
1132 romp-ibm-* ) machine=ibmrt ;;
1133 rs6000-ibm-aix* ) machine=ibmrs6000 ;;
1134 powerpc-ibm-aix* ) machine=ibmrs6000 ;;
1135 powerpc*-* ) machine=powerpc ;;
1136 hppa-*-* ) machine=hp800 ;;
1137 m88k-dg-* ) machine=aviion ;;
1138 m68*-sony-* ) machine=news ;;
1139 mips-sony-* ) machine=news-risc ;;
1140 clipper-* ) machine=clipper ;;
1141 arm* ) machine=arm ;;
1142 ns32k-* ) machine=ns32000 ;;
1145 case "$canonical" in
1146 *-*-linux* ) opsys=linux ;;
1147 *-*-netbsd* ) opsys=netbsd ;;
1148 *-*-openbsd* ) opsys=openbsd ;;
1149 *-*-nextstep* ) opsys=nextstep ;;
1150 *-*-vms ) opsys=vms ;;
1152 *-dec-osf1.3 | *-dec-osf2* ) opsys=decosf1-3 ;;
1153 *-dec-osf1.2 | *-dec-osf1* ) opsys=decosf1-2 ;;
1154 *-dec-osf3.[2-9] ) opsys=decosf3-2 ;;
1155 *-dec-osf3* ) opsys=decosf3-1 ;;
1156 *-dec-osf[4-9]* ) opsys=decosf4-0 ;;
1158 *-*-ultrix[0-3].* | *-*-ultrix4.0* ) opsys=bsd4-2 ;;
1159 *-*-ultrix4.[12]* ) opsys=bsd4-3 ;;
1160 *-*-ultrix* ) opsys=ultrix4-3 ;;
1162 *-*-aix3.1* ) opsys=aix3-1 ;;
1163 *-*-aix3.2.5 ) opsys=aix3-2-5 ;;
1164 *-*-aix3* ) opsys=aix3-2 ;;
1165 *-*-aix4.0* ) opsys=aix4 ;;
1166 *-*-aix4.1* ) opsys=aix4-1 ;;
1167 *-*-aix4* ) opsys=aix4-2 ;;
1169 *-gnu* ) opsys=gnu ;;
1170 *-*-bsd4.[01] ) opsys=bsd4-1 ;;
1171 *-*-bsd4.2 ) opsys=bsd4-2 ;;
1172 *-*-bsd4.3 ) opsys=bsd4-3 ;;
1173 *-*-aos4.2 ) opsys=bsd4-2 ;;
1174 *-*-aos* ) opsys=bsd4-3 ;;
1175 *-*-sysv0 | *-*-sysvr0 ) opsys=usg5-0 ;;
1176 *-*-sysv2 | *-*-sysvr2 ) opsys=usg5-2 ;;
1177 *-*-sysv2.2 | *-*-sysvr2.2 ) opsys=usg5-2-2 ;;
1178 *-*-sysv3* | *-*-sysvr3* ) opsys=usg5-3 ;;
1179 *-*-sysv4.1* | *-*-sysvr4.1* )opsys=usg5-4 NON_GNU_CPP=/usr/lib/cpp ;;
1180 *-*-sysv4.[2-9]* | *-sysvr4.[2-9]* )
1181 if test -z "$NON_GNU_CPP" ; then
1182 for prog in "/usr/ccs/lib/cpp" "/lib/cpp"; do
1183 if test -f "$prog"; then NON_GNU_CPP="$prog"; break; fi
1187 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
1188 *-*-mach_bsd4.3* ) opsys=mach-bsd4-3 ;;
1191 case "$canonical" in
1194 case "$canonical" in
1195 i[3-9]86-*-netbsd*) machine=intel386 ;;
1196 hp300-*-netbsd* | amiga-*-netbsd* | sun3-*-netbsd* | mac68k-*-netbsd* | da30-*-netbsd* | m68k-*-netbsd* )
1197 machine=hp9000s300 ;;
1198 pc532-*-netbsd* | ns32k-*-netbsd* ) machine=ns32000 ;;
1199 pmax-*-netbsd* | mips-*-netbsd* ) machine=pmax ;;
1204 case "${canonical}" in
1205 i386-*-openbsd*) machine=intel386 ;;
1206 m68k-*-openbsd*) machine=hp9000s300 ;;
1207 mipsel-*-openbsd*) machine=pmax ;;
1211 arm-acorn-riscix1.1* ) machine=acorn opsys=riscix1-1 ;;
1212 arm-acorn-riscix1.2* | arm-acorn-riscix ) machine=acorn opsys=riscix1-2 ;;
1214 fx80-alliant-* ) machine=alliant4 opsys=bsd4-2 ;;
1215 i860-alliant-* ) machine=alliant-2800 opsys=bsd4-3 ;;
1217 m68*-altos-sysv* ) machine=altos opsys=usg5-2 ;;
1219 580-amdahl-sysv* ) machine=amdahl opsys=usg5-2-2 ;;
1221 m68*-apollo-* ) machine=apollo opsys=bsd4-3 ;;
1223 we32k-att-sysv* ) machine=att3b opsys=usg5-2-2 ;;
1225 m68*-att-sysv* ) machine=7300 opsys=usg5-2-2 ;;
1227 rs6000-bull-bosx* ) machine=ibmrs6000 opsys=aix3-2 ;; # dpx20
1228 m68*-bull-sysv3* ) machine=dpx2 opsys=usg5-3 ;; # dpx2
1229 m68*-bull-sysv2* ) machine=sps7 opsys=usg5-2 ;; # sps7
1232 celerity-celerity-bsd* ) machine=celerity opsys=bsd4-2 ;;
1234 *-convex-bsd* | *-convex-convexos* )
1235 machine=convex opsys=bsd4-3
1236 NON_GNU_CPP="cc -E -P"
1239 i[3-9]86-cubix-sysv* ) machine=intel386 opsys=usg5-3 ;;
1241 i586-dg-dgux*R4* | i586-dg-dgux5.4.4* ) machine=aviion opsys=dgux5-4r4 ;;
1242 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) opsys=dgux5-4r3 ;;
1243 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) opsys=dgux5-4r2 ;;
1244 m88k-dg-dgux* ) opsys=dgux ;;
1246 m68k-motorola-sysv* | m68000-motorola-sysv* ) machine=delta opsys=usg5-3 ;;
1247 m88k-motorola-sysv4* )
1248 machine=delta88k opsys=usg5-4-2
1250 m88k-motorola-sysv* | m88k-motorola-m88kbcs* ) machine=delta88k opsys=usg5-3 ;;
1252 m68*-dual-sysv* ) machine=dual opsys=usg5-2 ;;
1253 m68*-dual-uniplus* ) machine=dual opsys=unipl5-2 ;;
1255 ns16k-encore-bsd* ) machine=ns16000 opsys=umax ;;
1257 pn-gould-bsd4.2* ) machine=gould opsys=bsd4-2 ;;
1258 pn-gould-bsd4.3* ) machine=gould opsys=bsd4-3 ;;
1259 np1-gould-bsd* ) machine=gould-np1 opsys=bsd4-3 ;;
1262 case "`uname -r`" in
1263 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
1264 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
1266 NON_GNU_CPP="/lib/cpp"
1268 m68k-harris-cxux* ) machine=nh3000 opsys=cxux ;;
1269 powerpc-harris-powerunix ) machine=nh6000 opsys=powerunix NON_GNU_CPP="cc -Xo -E -P" ;;
1271 xps*-honeywell-sysv* ) machine=xps100 opsys=usg5-2 ;;
1273 m68*-hp-bsd* ) machine=hp9000s300 opsys=bsd4-3 ;;
1276 case "$canonical" in
1277 m68* ) machine=hp9000s300 ;;
1278 hppa* ) machine=hp800 ;;
1281 case "$canonical" in
1282 *-hp-hpux7* ) opsys=hpux ;;
1283 *-hp-hpux8* ) opsys=hpux8 ;;
1284 *-hp-hpux9* ) opsys=hpux9 ;;
1285 *-hp-hpux10* ) opsys=hpux10 ;;
1286 *-hp-hpux11* ) opsys=hpux11 ;;
1290 case "$opsys" in hpux9 | hpux10 ) extra_objs="$extra_objs strcat.o" && if test "$extra_verbose" = "yes"; then
1291 echo " xemacs will be linked with \"strcat.o\""
1294 if test "$opsys" = "hpux10" -o "$opsys" = "hpux11"; then \
1295 ansi_flag="-Ae"; else ansi_flag="-Aa"; fi
1296 NON_GNU_CC="cc $ansi_flag" NON_GNU_CPP="cc $ansi_flag -E"
1298 case "$canonical" in *-hp-hpux*shr* ) opsys="${opsys}-shr" ;; esac
1301 orion-orion-bsd* ) machine=orion opsys=bsd4-2 ;;
1302 clipper-orion-bsd* ) machine=orion105 opsys=bsd4-2 ;;
1304 i[3-9]86-ibm-aix1.1* ) machine=ibmps2-aix opsys=usg5-2-2 ;;
1305 i[3-9]86-ibm-aix1.[23]* | i[3-9]86-ibm-aix* ) machine=ibmps2-aix opsys=usg5-3 ;;
1306 i370-ibm-aix*) machine=ibm370aix opsys=usg5-3 ;;
1307 romp-ibm-aos* ) opsys=bsd4-3 ;;
1308 romp-ibm-bsd* ) opsys=bsd4-3 ;;
1309 romp-ibm-mach* ) opsys=mach-bsd4-3 ;;
1311 m68*-isi-bsd4.2* ) machine=isi-ov opsys=bsd4-2 ;;
1312 m68*-isi-bsd4.3* ) machine=isi-ov opsys=bsd4-3 ;;
1314 i[3-9]86-intsys-sysv* ) machine=is386 opsys=usg5-2-2 ;;
1316 i[3-9]86-prime-sysv* ) machine=i386 opsys=usg5-3 ;;
1318 i[3-9]86-sequent-bsd* ) machine=symmetry opsys=bsd4-3 ;;
1320 i[3-9]86-sequent-ptx* ) machine=sequent-ptx opsys=ptx NON_GNU_CPP="/lib/cpp" ;;
1322 i[3-9]86-ncr-sysv* ) machine=ncr386 opsys=usg5-4-2 ;;
1324 i860-intel-osf1* ) machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp ;;
1326 i860-*-sysv4* ) machine=i860 opsys=usg5-4 NON_GNU_CC="/bin/cc" NON_GNU_CPP="/usr/ccs/lib/cpp" ;;
1328 m68*-masscomp-rtu* ) machine=masscomp opsys=rtu ;;
1330 m68*-megatest-bsd* ) machine=mega68 opsys=bsd4-2 ;;
1332 mips-mips-usg* ) machine=mips4 ;;
1335 NON_GNU_CC="cc -systype bsd43"
1336 NON_GNU_CPP="cc -systype bsd43 -E"
1337 case "$canonical" in
1338 mips-mips-riscos4* ) opsys=bsd4-3 ;;
1339 mips-mips-riscos5* ) opsys=riscos5 ;;
1342 mips-mips-bsd* ) machine=mips opsys=bsd4-3 ;;
1343 mips-mips-* ) machine=mips opsys=usg5-2-2 ;;
1345 m68*-next-* | m68k-*-nextstep* ) machine=m68k opsys=nextstep ;;
1347 ns32k-ns-genix* ) machine=ns32000 opsys=usg5-2 ;;
1349 m68*-ncr-sysv2* | m68*-ncr-sysvr2* ) machine=tower32 opsys=usg5-2-2 ;;
1350 m68*-ncr-sysv3* | m68*-ncr-sysvr3* ) machine=tower32v3 opsys=usg5-3 ;;
1352 m68*-nixdorf-sysv* ) machine=targon31 opsys=usg5-2-2 ;;
1354 m68*-nu-sysv* ) machine=nu opsys=usg5-2 ;;
1356 m68*-plexus-sysv* ) machine=plexus opsys=usg5-2 ;;
1358 pyramid-pyramid-bsd* ) machine=pyramid opsys=bsd4-2 ;;
1360 ns32k-sequent-bsd4.2* ) machine=sequent opsys=bsd4-2 ;;
1361 ns32k-sequent-bsd4.3* ) machine=sequent opsys=bsd4-3 ;;
1363 mips-siemens-sysv* | mips-sni-sysv*)
1364 machine=mips-siemens opsys=usg5-4
1365 NON_GNU_CC=/usr/ccs/bin/cc
1366 NON_GNU_CPP=/usr/ccs/lib/cpp
1371 NON_GNU_CC=/usr/ccs/bin/cc
1372 NON_GNU_CPP=/usr/ccs/lib/cpp
1375 m68*-sgi-iris3.5* ) machine=irist opsys=iris3-5 ;;
1376 m68*-sgi-iris3.6* | m68*-sgi-iris*) machine=irist opsys=iris3-6 ;;
1377 mips-sgi-irix3.* ) opsys=irix3-3 ;;
1378 mips-sgi-irix4.* ) opsys=irix4-0 ;;
1379 mips-sgi-irix6* ) opsys=irix6-0 ;;
1380 mips-sgi-irix5.1* ) opsys=irix5-1 ;;
1381 mips-sgi-irix5.2* ) opsys=irix5-2 ;;
1382 mips-sgi-irix5.* ) opsys=irix5-3 ;;
1383 mips-sgi-irix* ) opsys=irix5-0 ;;
1385 *-sony-newsos[34]* | *-sony-news[34]* ) opsys=bsd4-3 ;;
1386 *-sony-news* ) opsys=newsos5 ;;
1388 m68*-stride-sysv* ) machine=stride opsys=usg5-2 ;;
1390 *-*-solaris* | *-*-sunos* | *-sun-mach* | *-sun-bsd* )
1391 case "$canonical" in
1392 m68*-sunos1* ) machine=sun1 ;;
1393 m68*-sunos2* ) machine=sun2 ;;
1394 m68* ) machine=sun3 ;;
1395 i*86*-sun-sunos[34]* ) machine=sun386 ;;
1396 i*86-*-* ) machine=intel386 ;;
1397 rs6000* ) machine=rs6000 ;;
1400 case "$canonical" in *-sunos5*)
1401 canonical=`echo $canonical | sed -e s/sunos5/solaris2/`;;
1404 case "$canonical" in
1406 #test -f /usr/lib/cpp && NON_GNU_CPP=/usr/lib/cpp ;;
1409 #test -f /usr/ccs/lib/cpp && NON_GNU_CPP=/usr/ccs/lib/cpp
1413 case "$canonical" in
1416 os_release=`uname -r | sed -e 's/^\([0-9]\)\.\([0-9]\).*/\1\2/'`
1417 { test "$extra_verbose" = "yes" && cat << EOF
1418 Defining OS_RELEASE = $os_release
1420 cat >> confdefs.h <<EOF
1421 #define OS_RELEASE $os_release
1426 i*86-*-sunos4* ) opsys=sunos4-0 ;;
1427 *-sunos4.0* ) opsys=sunos4-0 ;;
1428 *-sunos4.1.2* ) opsys=sunos4-1-2 ;;
1429 *-sunos4.1.3* ) opsys=sunos4-1-3 ;;
1430 *-sunos4.1.[4-9]* ) opsys=sunos4-1-4 ;;
1431 *-sunos4* | *-sunos ) opsys=sunos4-1 ;;
1432 *-mach* ) opsys=mach-bsd4-3 ;;
1436 case "$canonical" in *-sunos4*shr* ) opsys="${opsys}-shr" ;; esac
1438 test "$opsys $CC" = "sol2 /usr/ucb/cc" && CC=""
1441 m68*-tadpole-sysv* ) machine=tad68k opsys=usg5-3 ;;
1443 tahoe-tahoe-bsd4.2* ) machine=tahoe opsys=bsd4-2 ;;
1444 tahoe-tahoe-bsd4.3* ) machine=tahoe opsys=bsd4-3 ;;
1446 mips-tandem-sysv* ) machine=tandem-s2 opsys=usg5-3 ;;
1448 m88k-tektronix-sysv3* ) machine=tekxd88 opsys=usg5-3 ;;
1450 ns16k-tektronix-bsd* ) machine=ns16000 opsys=bsd4-2 ;;
1451 m68*-tektronix-bsd* ) machine=tek4300 opsys=bsd4-3 ;;
1453 titan-titan-sysv* ) machine=titan opsys=usg5-3 ;;
1455 m68*-unisys-uniplus* ) machine=ustation opsystem=unipl5-2 ;;
1458 case "$canonical" in
1459 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
1460 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
1461 *-mach* ) opsys=mach-bsd4-3 ;;
1465 ns16k-whitechapel-* ) machine=mg1 ;;
1467 m68*-wicat-sysv* ) machine=wicat opsys=usg5-2 ;;
1471 case "$canonical" in
1472 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
1473 *-isc2.2* ) opsys=isc2-2 ;;
1474 *-isc4.0* ) opsys=isc4-0 ;;
1475 *-isc4.* ) opsys=isc4-1
1476 GCC_TEST_OPTIONS=-posix
1477 NON_GCC_TEST_OPTIONS=-Xp
1479 *-isc* ) opsys=isc3-0 ;;
1480 *-esix5* ) opsys=esix5r4 NON_GNU_CPP=/usr/lib/cpp ;;
1481 *-esix* ) opsys=esix ;;
1482 *-mach* ) opsys=mach-bsd4-3 ;;
1483 *-xenix* ) opsys=xenix ;;
1484 *-sco3.2v4* ) opsys=sco4 NON_GNU_CPP=/lib/cpp ;;
1485 *-bsd386* | *-bsdi1* ) opsys=bsd386 ;;
1486 *-bsdi4* ) opsys=bsdos4 ;;
1487 *-bsdi3* ) opsys=bsdos3 ;;
1488 *-bsdi2.1* ) opsys=bsdos2-1 ;;
1489 *-bsdi2* ) opsys=bsdos2 ;;
1490 *-sco3.2v5* ) opsys=sco5 ;;
1491 *-sysv5* ) opsys=sco7 ;;
1492 *-386bsd* ) opsys=386bsd ;;
1493 *-freebsd* ) opsys=freebsd ;;
1494 *-nextstep* ) opsys=nextstep ;;
1495 *-pc-cygwin* ) opsys=cygwin32 ;;
1496 *-pc-mingw* ) opsys=mingw32 ;
1497 test -z "$with_tty" && with_tty="no";;
1501 m68k-*-linux* ) machine=m68k opsys=linux ;;
1505 test -z "$machine" && machine=`echo $canonical | sed 's/-.*$//'`
1506 test -z "$opsys" && opsys=`echo $canonical | sed 's/^^-*-^-*-//'`
1508 if test -r "${srcdir}/src/m/${machine}.h"; then
1509 machfile="m/${machine}.h"
1510 { test "$extra_verbose" = "yes" && cat << EOF
1511 Defining config_machfile = "$machfile"
1513 cat >> confdefs.h <<EOF
1514 #define config_machfile "$machfile"
1519 echo "XEmacs has no builtin knowledge of \`$machine' machines."
1520 echo "Using configure-time autodetection only."
1523 if test -r "${srcdir}/src/s/${opsys}.h"; then
1524 opsysfile="s/${opsys}.h"
1525 { test "$extra_verbose" = "yes" && cat << EOF
1526 Defining config_opsysfile = "$opsysfile"
1528 cat >> confdefs.h <<EOF
1529 #define config_opsysfile "$opsysfile"
1534 echo "XEmacs has no builtin knowledge of \`$opsys' operating systems."
1535 echo "Using configure-time autodetection only."
1539 if test -z "$dynamic"; then
1541 hpux* | sunos4* ) dynamic=no ;;
1545 if test "$dynamic" = "yes"; then
1547 hpux* | sunos4* | sco5 ) opsys="${opsys}-shr" ;;
1548 decosf* ) ld_call_shared="-call_shared" ;;
1550 else case "$opsys" in
1552 echo "Static linking is not supported on Solaris 2."
1553 echo "Rerun configure without specifying --dynamic=no."
1555 linux ) ld_call_shared="-Bstatic" ;;
1556 decosf* ) ld_call_shared="-non_shared" ;;
1560 case "$opsys" in aix*) NON_GNU_CC=xlc ;; esac
1562 stack_trace_eye_catcher=`echo ${PROGNAME}_${version}_${canonical} | sed 'y/.-/__/'`
1563 { test "$extra_verbose" = "yes" && cat << EOF
1564 Defining STACK_TRACE_EYE_CATCHER = $stack_trace_eye_catcher
1566 cat >> confdefs.h <<EOF
1567 #define STACK_TRACE_EYE_CATCHER $stack_trace_eye_catcher
1573 test "$with_sparcworks" = "yes" && with_workshop=yes # compatibility alias
1574 if test "$with_workshop $with_tooltalk" = "yes no"; then
1575 (echo "$progname: Usage error:"
1576 echo " " "--with-workshop requires --with-tooltalk"
1577 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
1578 elif test "$with_tooltalk" = "no" ; then with_workshop=no
1579 elif test "$with_workshop" = "yes"; then with_tooltalk=yes
1582 if test "$with_workshop" = "yes"; then
1583 { test "$extra_verbose" = "yes" && cat << \EOF
1586 cat >> confdefs.h <<\EOF
1591 extra_objs="$extra_objs sunpro.o" && if test "$extra_verbose" = "yes"; then
1592 echo " xemacs will be linked with \"sunpro.o\""
1596 if test "$with_clash_detection" != "no"; then
1597 { test "$extra_verbose" = "yes" && cat << \EOF
1598 Defining CLASH_DETECTION
1600 cat >> confdefs.h <<\EOF
1601 #define CLASH_DETECTION 1
1605 extra_objs="$extra_objs filelock.o" && if test "$extra_verbose" = "yes"; then
1606 echo " xemacs will be linked with \"filelock.o\""
1610 test -n "$compiler" && CC="$compiler"
1611 if test "$with_gcc" = "no"; then case "$CC" in "" | *gcc* ) CC="${NON_GNU_CC-cc}" ;; esac
1614 test "${cflags-unset}" != unset && CFLAGS="$cflags"
1615 if test "${CFLAGS-unset}" != unset
1616 then cflags_specified=yes;
1617 else cflags_specified=no;
1620 xe_save_CFLAGS="$CFLAGS"
1622 # Extract the first word of "gcc", so it can be a program name with args.
1623 set dummy gcc; ac_word=$2
1624 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1625 echo "configure:1626: checking for $ac_word" >&5
1627 if test -n "$CC"; then
1628 ac_cv_prog_CC="$CC" # Let the user override the test.
1630 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1632 for ac_dir in $ac_dummy; do
1633 test -z "$ac_dir" && ac_dir=.
1634 if test -f $ac_dir/$ac_word; then
1642 if test -n "$CC"; then
1643 echo "$ac_t""$CC" 1>&6
1645 echo "$ac_t""no" 1>&6
1648 if test -z "$CC"; then
1649 # Extract the first word of "cc", so it can be a program name with args.
1650 set dummy cc; ac_word=$2
1651 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1652 echo "configure:1653: checking for $ac_word" >&5
1654 if test -n "$CC"; then
1655 ac_cv_prog_CC="$CC" # Let the user override the test.
1657 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1660 for ac_dir in $ac_dummy; do
1661 test -z "$ac_dir" && ac_dir=.
1662 if test -f $ac_dir/$ac_word; then
1663 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1664 ac_prog_rejected=yes
1672 if test $ac_prog_rejected = yes; then
1673 # We found a bogon in the path, so make sure we never use it.
1674 set dummy $ac_cv_prog_CC
1676 if test $# -gt 0; then
1677 # We chose a different compiler from the bogus one.
1678 # However, it has the same basename, so the bogon will be chosen
1679 # first if we set CC to just the basename; use the full file name.
1681 set dummy "$ac_dir/$ac_word" "$@"
1688 if test -n "$CC"; then
1689 echo "$ac_t""$CC" 1>&6
1691 echo "$ac_t""no" 1>&6
1694 if test -z "$CC"; then
1695 case "`uname -s`" in
1697 # Extract the first word of "cl", so it can be a program name with args.
1698 set dummy cl; ac_word=$2
1699 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1700 echo "configure:1701: checking for $ac_word" >&5
1702 if test -n "$CC"; then
1703 ac_cv_prog_CC="$CC" # Let the user override the test.
1705 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1707 for ac_dir in $ac_dummy; do
1708 test -z "$ac_dir" && ac_dir=.
1709 if test -f $ac_dir/$ac_word; then
1717 if test -n "$CC"; then
1718 echo "$ac_t""$CC" 1>&6
1720 echo "$ac_t""no" 1>&6
1725 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1728 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1729 echo "configure:1730: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1732 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1733 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1734 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'
1735 ac_cpp='$CPP '"$xe_cppflags"
1736 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1737 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1740 cat > conftest.$ac_ext << EOF
1742 #line 1743 "configure"
1743 #include "confdefs.h"
1747 if { (eval echo configure:1748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1748 ac_cv_prog_cc_works=yes
1749 # If we can't run a trivial program, we are probably using a cross compiler.
1750 if (./conftest; exit) 2>/dev/null; then
1751 ac_cv_prog_cc_cross=no
1753 ac_cv_prog_cc_cross=yes
1756 echo "configure: failed program was:" >&5
1757 cat conftest.$ac_ext >&5
1758 ac_cv_prog_cc_works=no
1762 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1763 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1764 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'
1765 ac_cpp='$CPP '"$xe_cppflags"
1766 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1767 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1770 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1771 if test $ac_cv_prog_cc_works = no; then
1772 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1774 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1775 echo "configure:1776: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1776 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1777 cross_compiling=$ac_cv_prog_cc_cross
1779 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1780 echo "configure:1781: checking whether we are using GNU C" >&5
1782 cat > conftest.c <<EOF
1787 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1788: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1793 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1795 if test $ac_cv_prog_gcc = yes; then
1801 ac_test_CFLAGS="${CFLAGS+set}"
1802 ac_save_CFLAGS="$CFLAGS"
1804 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1805 echo "configure:1806: checking whether ${CC-cc} accepts -g" >&5
1807 echo 'void f(){}' > conftest.c
1808 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1816 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1817 if test "$ac_test_CFLAGS" = set; then
1818 CFLAGS="$ac_save_CFLAGS"
1819 elif test $ac_cv_prog_cc_g = yes; then
1820 if test "$GCC" = yes; then
1826 if test "$GCC" = yes; then
1833 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then
1835 # Extract the first word of "gcc", so it can be a program name with args.
1836 set dummy gcc; ac_word=$2
1837 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1838 echo "configure:1839: checking for $ac_word" >&5
1840 if test -n "$CC"; then
1841 ac_cv_prog_CC="$CC" # Let the user override the test.
1843 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1845 for ac_dir in $ac_dummy; do
1846 test -z "$ac_dir" && ac_dir=.
1847 if test -f $ac_dir/$ac_word; then
1855 if test -n "$CC"; then
1856 echo "$ac_t""$CC" 1>&6
1858 echo "$ac_t""no" 1>&6
1861 if test -z "$CC"; then
1862 # Extract the first word of "cc", so it can be a program name with args.
1863 set dummy cc; ac_word=$2
1864 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1865 echo "configure:1866: checking for $ac_word" >&5
1867 if test -n "$CC"; then
1868 ac_cv_prog_CC="$CC" # Let the user override the test.
1870 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1873 for ac_dir in $ac_dummy; do
1874 test -z "$ac_dir" && ac_dir=.
1875 if test -f $ac_dir/$ac_word; then
1876 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1877 ac_prog_rejected=yes
1885 if test $ac_prog_rejected = yes; then
1886 # We found a bogon in the path, so make sure we never use it.
1887 set dummy $ac_cv_prog_CC
1889 if test $# -gt 0; then
1890 # We chose a different compiler from the bogus one.
1891 # However, it has the same basename, so the bogon will be chosen
1892 # first if we set CC to just the basename; use the full file name.
1894 set dummy "$ac_dir/$ac_word" "$@"
1901 if test -n "$CC"; then
1902 echo "$ac_t""$CC" 1>&6
1904 echo "$ac_t""no" 1>&6
1907 if test -z "$CC"; then
1908 case "`uname -s`" in
1910 # Extract the first word of "cl", so it can be a program name with args.
1911 set dummy cl; ac_word=$2
1912 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1913 echo "configure:1914: checking for $ac_word" >&5
1915 if test -n "$CC"; then
1916 ac_cv_prog_CC="$CC" # Let the user override the test.
1918 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1920 for ac_dir in $ac_dummy; do
1921 test -z "$ac_dir" && ac_dir=.
1922 if test -f $ac_dir/$ac_word; then
1930 if test -n "$CC"; then
1931 echo "$ac_t""$CC" 1>&6
1933 echo "$ac_t""no" 1>&6
1938 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1941 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1942 echo "configure:1943: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1945 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1946 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1947 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'
1948 ac_cpp='$CPP '"$xe_cppflags"
1949 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1950 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1953 cat > conftest.$ac_ext << EOF
1955 #line 1956 "configure"
1956 #include "confdefs.h"
1960 if { (eval echo configure:1961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1961 ac_cv_prog_cc_works=yes
1962 # If we can't run a trivial program, we are probably using a cross compiler.
1963 if (./conftest; exit) 2>/dev/null; then
1964 ac_cv_prog_cc_cross=no
1966 ac_cv_prog_cc_cross=yes
1969 echo "configure: failed program was:" >&5
1970 cat conftest.$ac_ext >&5
1971 ac_cv_prog_cc_works=no
1975 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1976 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1977 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'
1978 ac_cpp='$CPP '"$xe_cppflags"
1979 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1980 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1983 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1984 if test $ac_cv_prog_cc_works = no; then
1985 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1987 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1988 echo "configure:1989: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1989 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1990 cross_compiling=$ac_cv_prog_cc_cross
1992 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1993 echo "configure:1994: checking whether we are using GNU C" >&5
1995 cat > conftest.c <<EOF
2000 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2001: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2006 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2008 if test $ac_cv_prog_gcc = yes; then
2014 ac_test_CFLAGS="${CFLAGS+set}"
2015 ac_save_CFLAGS="$CFLAGS"
2017 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2018 echo "configure:2019: checking whether ${CC-cc} accepts -g" >&5
2020 echo 'void f(){}' > conftest.c
2021 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2029 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2030 if test "$ac_test_CFLAGS" = set; then
2031 CFLAGS="$ac_save_CFLAGS"
2032 elif test $ac_cv_prog_cc_g = yes; then
2033 if test "$GCC" = yes; then
2039 if test "$GCC" = yes; then
2046 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then
2048 # Extract the first word of "gcc", so it can be a program name with args.
2049 set dummy gcc; ac_word=$2
2050 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2051 echo "configure:2052: checking for $ac_word" >&5
2053 if test -n "$CC"; then
2054 ac_cv_prog_CC="$CC" # Let the user override the test.
2056 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2058 for ac_dir in $ac_dummy; do
2059 test -z "$ac_dir" && ac_dir=.
2060 if test -f $ac_dir/$ac_word; then
2068 if test -n "$CC"; then
2069 echo "$ac_t""$CC" 1>&6
2071 echo "$ac_t""no" 1>&6
2074 if test -z "$CC"; then
2075 # Extract the first word of "cc", so it can be a program name with args.
2076 set dummy cc; ac_word=$2
2077 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2078 echo "configure:2079: checking for $ac_word" >&5
2080 if test -n "$CC"; then
2081 ac_cv_prog_CC="$CC" # Let the user override the test.
2083 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2086 for ac_dir in $ac_dummy; do
2087 test -z "$ac_dir" && ac_dir=.
2088 if test -f $ac_dir/$ac_word; then
2089 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2090 ac_prog_rejected=yes
2098 if test $ac_prog_rejected = yes; then
2099 # We found a bogon in the path, so make sure we never use it.
2100 set dummy $ac_cv_prog_CC
2102 if test $# -gt 0; then
2103 # We chose a different compiler from the bogus one.
2104 # However, it has the same basename, so the bogon will be chosen
2105 # first if we set CC to just the basename; use the full file name.
2107 set dummy "$ac_dir/$ac_word" "$@"
2114 if test -n "$CC"; then
2115 echo "$ac_t""$CC" 1>&6
2117 echo "$ac_t""no" 1>&6
2120 if test -z "$CC"; then
2121 case "`uname -s`" in
2123 # Extract the first word of "cl", so it can be a program name with args.
2124 set dummy cl; ac_word=$2
2125 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2126 echo "configure:2127: checking for $ac_word" >&5
2128 if test -n "$CC"; then
2129 ac_cv_prog_CC="$CC" # Let the user override the test.
2131 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2133 for ac_dir in $ac_dummy; do
2134 test -z "$ac_dir" && ac_dir=.
2135 if test -f $ac_dir/$ac_word; then
2143 if test -n "$CC"; then
2144 echo "$ac_t""$CC" 1>&6
2146 echo "$ac_t""no" 1>&6
2151 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2154 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2155 echo "configure:2156: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2158 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2159 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2160 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'
2161 ac_cpp='$CPP '"$xe_cppflags"
2162 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
2163 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2166 cat > conftest.$ac_ext << EOF
2168 #line 2169 "configure"
2169 #include "confdefs.h"
2173 if { (eval echo configure:2174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2174 ac_cv_prog_cc_works=yes
2175 # If we can't run a trivial program, we are probably using a cross compiler.
2176 if (./conftest; exit) 2>/dev/null; then
2177 ac_cv_prog_cc_cross=no
2179 ac_cv_prog_cc_cross=yes
2182 echo "configure: failed program was:" >&5
2183 cat conftest.$ac_ext >&5
2184 ac_cv_prog_cc_works=no
2188 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2189 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2190 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'
2191 ac_cpp='$CPP '"$xe_cppflags"
2192 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
2193 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2196 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2197 if test $ac_cv_prog_cc_works = no; then
2198 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2200 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2201 echo "configure:2202: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2202 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2203 cross_compiling=$ac_cv_prog_cc_cross
2205 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2206 echo "configure:2207: checking whether we are using GNU C" >&5
2208 cat > conftest.c <<EOF
2213 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2214: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2219 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2221 if test $ac_cv_prog_gcc = yes; then
2227 ac_test_CFLAGS="${CFLAGS+set}"
2228 ac_save_CFLAGS="$CFLAGS"
2230 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2231 echo "configure:2232: checking whether ${CC-cc} accepts -g" >&5
2233 echo 'void f(){}' > conftest.c
2234 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2242 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2243 if test "$ac_test_CFLAGS" = set; then
2244 CFLAGS="$ac_save_CFLAGS"
2245 elif test $ac_cv_prog_cc_g = yes; then
2246 if test "$GCC" = yes; then
2252 if test "$GCC" = yes; then
2260 CFLAGS="$xe_save_CFLAGS"
2263 test -n "$CPP" -a -d "$CPP" && CPP=
2265 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP"
2267 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2268 echo "configure:2269: checking how to run the C preprocessor" >&5
2269 # On Suns, sometimes $CPP names a directory.
2270 if test -n "$CPP" && test -d "$CPP"; then
2273 if test -z "$CPP"; then
2275 # This must be in double quotes, not single quotes, because CPP may get
2276 # substituted into the Makefile and "${CC-cc}" will confuse make.
2278 # On the NeXT, cc -E runs the code through the compiler's parser,
2279 # not just through cpp.
2280 cat > conftest.$ac_ext <<EOF
2281 #line 2282 "configure"
2282 #include "confdefs.h"
2286 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2287 { (eval echo configure:2288: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2288 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2289 if test -z "$ac_err"; then
2293 echo "configure: failed program was:" >&5
2294 cat conftest.$ac_ext >&5
2296 CPP="${CC-cc} -E -traditional-cpp"
2297 cat > conftest.$ac_ext <<EOF
2298 #line 2299 "configure"
2299 #include "confdefs.h"
2303 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2304 { (eval echo configure:2305: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2305 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2306 if test -z "$ac_err"; then
2310 echo "configure: failed program was:" >&5
2311 cat conftest.$ac_ext >&5
2313 CPP="${CC-cc} -nologo -E"
2314 cat > conftest.$ac_ext <<EOF
2315 #line 2316 "configure"
2316 #include "confdefs.h"
2320 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2321 { (eval echo configure:2322: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2322 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2323 if test -z "$ac_err"; then
2327 echo "configure: failed program was:" >&5
2328 cat conftest.$ac_ext >&5
2337 ac_cv_prog_CPP="$CPP"
2338 CPP="$ac_cv_prog_CPP"
2340 ac_cv_prog_CPP="$CPP"
2342 echo "$ac_t""$CPP" 1>&6
2346 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2347 echo "configure:2348: checking for AIX" >&5
2348 cat > conftest.$ac_ext <<EOF
2349 #line 2350 "configure"
2350 #include "confdefs.h"
2356 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2357 egrep "yes" >/dev/null 2>&1; then
2359 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
2360 Defining _ALL_SOURCE
2362 cat >> confdefs.h <<\EOF
2363 #define _ALL_SOURCE 1
2369 echo "$ac_t""no" 1>&6
2375 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6
2376 echo "configure:2377: checking for GNU libc" >&5
2377 cat > conftest.$ac_ext <<EOF
2378 #line 2379 "configure"
2379 #include "confdefs.h"
2380 #include <features.h>
2383 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
2384 #error Not a GNU libc system :-(
2385 ******* ======= ******** &&&&&&&&
2390 if { (eval echo configure:2391: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2394 echo "configure: failed program was:" >&5
2395 cat conftest.$ac_ext >&5
2400 echo "$ac_t""$have_glibc" 1>&6
2401 test "$have_glibc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
2402 Defining _GNU_SOURCE
2404 cat >> confdefs.h <<\EOF
2405 #define _GNU_SOURCE 1
2412 { test "$extra_verbose" = "yes" && cat << \EOF
2413 Defining __EXTENSIONS__
2415 cat >> confdefs.h <<\EOF
2416 #define __EXTENSIONS__ 1
2420 if test "$os_release" -ge 55; then
2421 { test "$extra_verbose" = "yes" && cat << \EOF
2422 Defining _XOPEN_SOURCE = 500
2424 cat >> confdefs.h <<\EOF
2425 #define _XOPEN_SOURCE 500
2429 { test "$extra_verbose" = "yes" && cat << \EOF
2430 Defining _XOPEN_SOURCE_EXTENDED
2432 cat >> confdefs.h <<\EOF
2433 #define _XOPEN_SOURCE_EXTENDED 1
2439 { test "$extra_verbose" = "yes" && cat << \EOF
2440 Defining _POSIX_C_SOURCE = 199506L
2442 cat >> confdefs.h <<\EOF
2443 #define _POSIX_C_SOURCE 199506L
2447 { test "$extra_verbose" = "yes" && cat << \EOF
2448 Defining _XOPEN_SOURCE = 500
2450 cat >> confdefs.h <<\EOF
2451 #define _XOPEN_SOURCE 500
2455 { test "$extra_verbose" = "yes" && cat << \EOF
2456 Defining _XOPEN_SOURCE_EXTENDED
2458 cat >> confdefs.h <<\EOF
2459 #define _XOPEN_SOURCE_EXTENDED 1
2466 cat > conftest.$ac_ext <<EOF
2467 #line 2468 "configure"
2468 #include "confdefs.h"
2470 #if defined __SUNPRO_C
2472 #elif defined __DECC
2474 #elif defined __USLC__ && defined __SCO_VERSION__
2481 if { (eval echo configure:2482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
2486 echo "configure: failed program was:" >&5
2487 cat conftest.$ac_ext >&5
2489 case "$conftest_rc" in
2490 11) echo "You appear to be using the SunPro C compiler."; __SUNPRO_C=yes ;;
2491 12) echo "You appear to be using the DEC C compiler." ; __DECC=yes ;;
2492 13) echo "You appear to be using the SCO C compiler." ; __USLC__=yes ;;
2500 echo "Extracting information from the machine- and system-dependent headers..."
2502 tempcname="conftest.c"
2506 cat > $tempcname < confdefs.h
2507 cat >> $tempcname <<EOF
2509 #define C_SWITCH_SITE
2510 #define C_SWITCH_X_SITE
2511 #define LD_SWITCH_SITE
2512 #define LD_SWITCH_X_SITE
2513 #define LD_SWITCH_X_SITE_AUX
2514 #define OS_RELEASE $os_release
2516 #ifdef config_opsysfile
2517 #include "$srcdir/src/$opsysfile"
2520 #ifdef config_machfile
2521 #include "$srcdir/src/$machfile"
2524 #ifndef LIBS_MACHINE
2525 #define LIBS_MACHINE
2527 configure___ libs_machine=LIBS_MACHINE
2532 configure___ libs_system=LIBS_SYSTEM
2534 #ifndef LIBS_TERMCAP
2535 #define LIBS_TERMCAP
2537 configure___ libs_termcap=LIBS_TERMCAP
2539 #ifndef LIB_STANDARD
2540 #define LIB_STANDARD
2542 configure___ libs_standard=LIB_STANDARD
2545 #ifndef OBJECTS_MACHINE
2546 #define OBJECTS_MACHINE
2548 configure___ objects_machine=OBJECTS_MACHINE
2550 #ifndef OBJECTS_SYSTEM
2551 #define OBJECTS_SYSTEM
2553 configure___ objects_system=OBJECTS_SYSTEM
2556 #ifndef C_SWITCH_MACHINE
2557 #define C_SWITCH_MACHINE
2559 configure___ c_switch_machine=C_SWITCH_MACHINE
2561 #ifndef C_SWITCH_SYSTEM
2562 #define C_SWITCH_SYSTEM
2564 configure___ c_switch_system=C_SWITCH_SYSTEM
2567 #ifndef LD_SWITCH_MACHINE
2568 #define LD_SWITCH_MACHINE
2570 configure___ ld_switch_machine=LD_SWITCH_MACHINE
2572 #ifndef LD_SWITCH_SYSTEM
2573 #define LD_SWITCH_SYSTEM
2575 configure___ ld_switch_system=LD_SWITCH_SYSTEM
2579 #define UNEXEC "unexec.o"
2581 configure___ unexec=UNEXEC
2584 #ifndef LD_SWITCH_SHARED
2585 #define LD_SWITCH_SHARED "-c"
2587 configure___ ld_switch_shared=LD_SWITCH_SHARED
2590 #define ORDINARY_LD "\$(CC) \$(CFLAGS)"
2591 configure___ ordinary_ld=ORDINARY_LD
2593 #ifdef ORDINARY_LINK
2594 #define LD ORDINARY_LD
2595 #else /* no ORDINARY LINK */
2596 #ifdef COFF_ENCAPSULATE
2597 #define LD "\$(CC) -nostdlib"
2598 #else /* not COFF_ENCAPSULATE */
2601 #else /* ! defined (LINKER) */
2603 #endif /* ! defined (LINKER) */
2604 #endif /* ! defined (COFF_ENCAPSULATE) */
2605 #endif /* not ORDINARY_LINK */
2611 configure___ lib_gcc=LIB_GCC
2613 #ifndef LD_TEXT_START_ADDR
2614 #define LD_TEXT_START_ADDR
2616 configure___ ld_text_start_addr=LD_TEXT_START_ADDR
2619 #if ! defined (ORDINARY_LINK) && !defined (START_FILES)
2621 #ifdef COFF_ENCAPSULATE
2622 #define START_FILES "pre-crt0.o /usr/local/lib/gcc-crt0.o"
2623 #else /* ! defined (COFF_ENCAPSULATE) */
2624 #define START_FILES "pre-crt0.o /lib/crt0.o"
2625 #endif /* ! defined (COFF_ENCAPSULATE) */
2626 #else /* ! defined (NO_REMAP) */
2627 #define START_FILES "ecrt0.o"
2628 #endif /* ! defined (NO_REMAP) */
2629 #endif /* no ORDINARY_LINK */
2633 configure___ start_files=START_FILES
2635 #ifdef ORDINARY_LINK
2636 configure___ ordinary_link=yes
2638 configure___ ordinary_link=no
2641 #ifdef SYSTEM_MALLOC
2642 configure___ system_malloc=yes
2644 configure___ system_malloc=no
2648 configure___ have_terminfo=yes
2650 configure___ have_terminfo=no
2653 #ifdef MAIL_USE_FLOCK
2654 configure___ mail_use_flock=yes
2656 configure___ mail_use_flock=no
2659 #ifdef MAIL_USE_LOCKF
2660 configure___ mail_use_lockf=yes
2662 configure___ mail_use_lockf=no
2665 #ifdef MAIL_USE_LOCKING
2666 configure___ mail_use_locking=yes
2668 configure___ mail_use_locking=no
2671 #ifdef HAVE_WIN32_PROCESSES
2672 configure___ win32_processes=yes
2674 configure___ win32_processes=no
2679 CPP=`eval "echo $CPP $CPPFLAGS"`
2680 eval `$CPP -Isrc $tempcname \
2681 | sed -n -e "s/[ ]*=[ \"]*/='/" -e "s/[ \"]*\$/'/" -e "s/^configure___//p"`
2685 if test "$pdump" = "yes"; then
2694 test "$extra_verbose" = "yes" && \
2695 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 ""
2697 case "$opsys" in mingw* | cygwin*)
2698 cygwin_include=`eval "gcc -print-file-name=libc.a"` ;
2699 cygwin_include=`eval "dirname $cygwin_include"` ;
2700 cygwin_include="-I$cygwin_include/../include" ;
2701 extra_includes="$cygwin_include/mingw $cygwin_include" ;
2702 case "$opsys" in mingw*)
2703 c_switch_system="$c_switch_system $extra_includes" && if test "$extra_verbose" = "yes"; then echo " Appending \"$extra_includes\" to \$c_switch_system"; fi ;;
2708 test "$ordinary_link" = "no" -a -z "$libs_standard" && libs_standard="-lc"
2711 test "$__DECC" = "yes" && c_switch_site="$c_switch_site -std1" && if test "$extra_verbose" = "yes"; then echo " Appending \"-std1\" to \$c_switch_site"; fi
2713 if test "$__USLC__" = yes; then
2714 echo $ac_n "checking for whether the -Kalloca compiler flag is needed""... $ac_c" 1>&6
2715 echo "configure:2716: checking for whether the -Kalloca compiler flag is needed" >&5
2717 cat > conftest.$ac_ext <<EOF
2718 #line 2719 "configure"
2719 #include "confdefs.h"
2722 void *x = alloca(4);
2725 if { (eval echo configure:2726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2729 echo "configure: failed program was:" >&5
2730 cat conftest.$ac_ext >&5
2733 xe_save_c_switch_system="$c_switch_system"
2734 c_switch_system="$c_switch_system -Kalloca"
2735 cat > conftest.$ac_ext <<EOF
2736 #line 2737 "configure"
2737 #include "confdefs.h"
2740 void *x = alloca(4);
2743 if { (eval echo configure:2744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2747 echo "configure: failed program was:" >&5
2748 cat conftest.$ac_ext >&5
2751 c_switch_system="$xe_save_c_switch_system"
2754 echo "$ac_t""$need_kalloca" 1>&6
2755 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
2758 if test "$cflags_specified" = "no"; then
2759 if test "$GCC" = "yes"; then
2760 CFLAGS="-g -O3 -Wall -Wno-switch -Winline -Wmissing-prototypes -Wshadow"
2761 test "$have_glibc" != "yes" && CFLAGS="$CFLAGS -Wpointer-arith"
2762 elif test "$__SUNPRO_C" = "yes"; then
2764 sol2 ) CFLAGS="-v -xO4" ;;
2765 sunos4* ) CFLAGS="-xO2";;
2767 elif test "$__DECC" = "yes"; then
2769 elif test "$CC" = "xlc"; then
2770 CFLAGS="-g -O3 -qstrict -qnoansialias -qlibansi -qinfo -qro -qmaxmem=20000"
2775 if test "$GCC" = "yes"; then
2776 echo $ac_n "checking for buggy gcc versions""... $ac_c" 1>&6
2777 echo "configure:2778: checking for buggy gcc versions" >&5
2778 GCC_VERSION=`$CC --version`
2779 case `uname -s`:`uname -m`:$GCC_VERSION in
2780 *:sun4*:2.8.1|*:sun4*:egcs-2.90.*)
2784 *-fno-schedule-insns*) ;;
2786 echo "$ac_t""yes" 1>&6
2787 echo "configure: warning: Don't use -O2 with gcc 2.8.1 and egcs 1.0 under SPARC architectures" 1>&2
2788 echo "configure: warning: without also using -fno-schedule-insns." 1>&2
2789 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2795 Linux:alpha:egcs-2.91.*)
2796 echo "$ac_t""yes" 1>&6
2797 echo "configure: warning: There have been reports of egcs-1.1 not compiling XEmacs correctly on" 1>&2
2798 echo "configure: warning: Alpha Linux. There have also been reports that egcs-1.0.3a is O.K." 1>&2
2799 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2804 case "$GCC_VERSION" in
2807 *-fno-strength-reduce*) ;;
2809 echo "$ac_t""yes" 1>&6
2810 echo "configure: warning: Don't use -O2 with gcc 2.7.2 under Intel/XXX without also using" 1>&2
2811 echo "configure: warning: -fno-strength-reduce." 1>&2
2812 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2818 *-fno-caller-saves*) ;;
2820 echo "$ac_t""yes" 1>&6
2821 echo "configure: warning: Don't use -O2 with gcc 2.7.2 under Intel/XXX without also using" 1>&2
2822 echo "configure: warning: -fno-caller-saves." 1>&2
2823 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2830 echo "$ac_t""no" 1>&6
2834 if test "$GCC" = "yes"; then
2835 set x $ld_switch_system; shift; ld_switch_system=""
2836 while test -n "$1"; do
2838 -L | -l | -u ) ld_switch_system="$ld_switch_system $1 $2"; shift ;;
2839 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_system="$ld_switch_system $1" ;;
2841 * ) ld_switch_system="$ld_switch_system -Xlinker $1" ;;
2847 if test "$GCC" = "yes"; then
2848 set x $ld_switch_machine; shift; ld_switch_machine=""
2849 while test -n "$1"; do
2851 -L | -l | -u ) ld_switch_machine="$ld_switch_machine $1 $2"; shift ;;
2852 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_machine="$ld_switch_machine $1" ;;
2854 * ) ld_switch_machine="$ld_switch_machine -Xlinker $1" ;;
2860 if test "$GCC" = "yes"; then
2861 set x $LDFLAGS; shift; LDFLAGS=""
2862 while test -n "$1"; do
2864 -L | -l | -u ) LDFLAGS="$LDFLAGS $1 $2"; shift ;;
2865 -L* | -l* | -u* | -Wl* | -pg ) LDFLAGS="$LDFLAGS $1" ;;
2867 * ) LDFLAGS="$LDFLAGS -Xlinker $1" ;;
2873 if test "$GCC" = "yes"; then
2874 set x $ld_call_shared; shift; ld_call_shared=""
2875 while test -n "$1"; do
2877 -L | -l | -u ) ld_call_shared="$ld_call_shared $1 $2"; shift ;;
2878 -L* | -l* | -u* | -Wl* | -pg ) ld_call_shared="$ld_call_shared $1" ;;
2880 * ) ld_call_shared="$ld_call_shared -Xlinker $1" ;;
2886 test -n "$objects_machine" && extra_objs="$extra_objs $objects_machine" && if test "$extra_verbose" = "yes"; then
2887 echo " xemacs will be linked with \"$objects_machine\""
2889 test -n "$objects_system" && extra_objs="$extra_objs $objects_system" && if test "$extra_verbose" = "yes"; then
2890 echo " xemacs will be linked with \"$objects_system\""
2892 test -n "$unexec" && test ! "$pdump" = "yes" && extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then
2893 echo " xemacs will be linked with \"$unexec\""
2895 test "$pdump" = "yes" && extra_objs="$extra_objs dumper.o" && if test "$extra_verbose" = "yes"; then
2896 echo " xemacs will be linked with \"dumper.o\""
2899 echo $ac_n "checking for dynodump""... $ac_c" 1>&6
2900 echo "configure:2901: checking for dynodump" >&5
2901 if test "$unexec" != "unexsol2.o"; then
2902 echo "$ac_t""no" 1>&6
2904 echo "$ac_t""yes" 1>&6
2905 { test "$extra_verbose" = "yes" && cat << \EOF
2908 cat >> confdefs.h <<\EOF
2913 MAKE_SUBDIR="$MAKE_SUBDIR dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$MAKE_SUBDIR"; fi
2914 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$SRC_SUBDIR_DEPS"; fi
2916 sparc ) dynodump_arch=sparc ;;
2917 *86* ) dynodump_arch=i386 ;;
2918 powerpc ) dynodump_arch=ppc ;;
2920 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
2924 test "$machine$opsys" = "powerpclinux" && start_flags="-T $srcdir/src/ppc.ldscript"
2926 if test "$unexec" = "unexaix.o"; then
2927 if test "$dynamic" = "no"; then
2928 start_flags="-Wl,-bnso,-bnodelcsect"
2929 test "$GCC" = "yes" && start_flags="-B/bin/ ${start_flags}"
2930 for f in "/lib/syscalls.exp" "/lib/threads.exp"; do
2931 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; fi
2933 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do
2934 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi
2937 echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6
2938 echo "configure:2939: checking for terminateAndUnload in -lC" >&5
2939 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'`
2941 xe_check_libs=" -lC "
2942 cat > conftest.$ac_ext <<EOF
2943 #line 2944 "configure"
2944 #include "confdefs.h"
2945 /* Override any gcc2 internal prototype to avoid an error. */
2946 /* We use char because int might match the return type of a gcc2
2947 builtin and then its argument prototype would still apply. */
2948 char terminateAndUnload();
2951 terminateAndUnload()
2954 if { (eval echo configure:2955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2956 eval "ac_cv_lib_$ac_lib_var=yes"
2958 echo "configure: failed program was:" >&5
2959 cat conftest.$ac_ext >&5
2961 eval "ac_cv_lib_$ac_lib_var=no"
2966 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
2967 echo "$ac_t""yes" 1>&6
2968 libs_system="$libs_system -lC" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lC\" to \$libs_system"; fi
2970 echo "$ac_t""no" 1>&6
2975 elif test -n "$ld_text_start_addr"; then
2976 start_flags="-T $ld_text_start_addr -e __start"
2982 if test "$ordinary_link" = "no" -a "$GCC" = "yes"; then
2983 test -z "$linker" && linker='$(CC) -nostdlib'
2984 test -z "$lib_gcc" && lib_gcc='`$(CC) -print-libgcc-file-name`'
2986 test "$GCC" != "yes" && lib_gcc=
2992 case "$site_libraries" in *:* ) site_libraries="`echo '' $site_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
2993 if test -n "$site_libraries"; then
2994 for arg in $site_libraries; do
2997 * ) test -d "$arg" || \
2998 { echo "Error:" "Invalid site library \`$arg': no such directory" >&2; exit 1; }
3001 ld_switch_site="$ld_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$ld_switch_site"; fi
3005 case "$site_includes" in *:* ) site_includes="`echo '' $site_includes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
3006 if test -n "$site_includes"; then
3007 for arg in $site_includes; do
3010 * ) test -d "$arg" || \
3011 { echo "Error:" "Invalid site include \`$arg': no such directory" >&2; exit 1; }
3014 c_switch_site="$c_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$c_switch_site"; fi
3018 case "$site_prefixes" in *:* ) site_prefixes="`echo '' $site_prefixes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
3019 if test -n "$site_prefixes"; then
3020 for dir in $site_prefixes; do
3021 lib_dir="${dir}/lib"
3022 inc_dir="${dir}/include"
3023 if test ! -d "$dir"; then
3024 { echo "Error:" "Invalid site prefix \`$dir': no such directory" >&2; exit 1; }
3025 elif test ! -d "$lib_dir"; then
3026 { echo "Error:" "Invalid site prefix \`$dir': no such directory \`$lib_dir'" >&2; exit 1; }
3028 if test -d "$inc_dir"; then
3029 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
3031 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
3037 for dir in "/usr/ccs/lib"; do
3038 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
3041 case "$site_runtime_libraries" in *:* ) site_runtime_libraries="`echo '' $site_runtime_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
3042 if test -n "$site_runtime_libraries"; then
3043 LD_RUN_PATH="`echo $site_runtime_libraries | sed -e 's/ */:/g'`"
3051 if test -n "$add_runtime_path"; then :;
3052 elif test "$dynamic" = "no"; then add_runtime_path=no
3053 elif test -n "$LD_RUN_PATH"; then add_runtime_path=yes
3054 else case "$opsys" in
3055 sol2 | irix* | *bsd* | decosf* ) add_runtime_path=yes ;;
3056 * ) add_runtime_path=no ;;
3060 if test "$add_runtime_path" = "yes"; then
3061 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6
3062 echo "configure:3063: checking "for runtime libraries flag"" >&5
3064 sol2 ) dash_r="-R" ;;
3065 decosf* | linux* | irix*) dash_r="-rpath " ;;
3068 for try_dash_r in "-R" "-R " "-rpath "; do
3069 xe_check_libs="${try_dash_r}/no/such/file-or-directory"
3071 if test "$GCC" = "yes"; then
3072 set x $xe_check_libs; shift; xe_check_libs=""
3073 while test -n "$1"; do
3075 -L | -l | -u ) xe_check_libs="$xe_check_libs $1 $2"; shift ;;
3076 -L* | -l* | -u* | -Wl* | -pg ) xe_check_libs="$xe_check_libs $1" ;;
3078 * ) xe_check_libs="$xe_check_libs -Xlinker $1" ;;
3083 cat > conftest.$ac_ext <<EOF
3084 #line 3085 "configure"
3085 #include "confdefs.h"
3091 if { (eval echo configure:3092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3093 dash_r="$try_dash_r"
3095 echo "configure: failed program was:" >&5
3096 cat conftest.$ac_ext >&5
3100 test -n "$dash_r" && break
3103 if test -n "$dash_r";
3104 then echo "$ac_t"""\"${dash_r}\""" 1>&6
3105 else echo "$ac_t""NONE" 1>&6
3109 xe_add_unique_runpath_dir='
3111 for xe_dir in $runpath_dirs; do test "$xe_dir" = "$xe_runpath_dir" && xe_add_p=no
3113 if test "$xe_add_p" = "yes"; then
3114 test -n "$runpath" && runpath="${runpath}:"
3115 runpath="${runpath}${xe_runpath_dir}"
3116 runpath_dirs="$runpath_dirs $xe_runpath_dir"
3122 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
3123 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
3124 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
3126 runpath="" runpath_dirs=""
3127 if test -n "$LD_RUN_PATH"; then
3128 runpath="$LD_RUN_PATH"
3129 elif test "$GCC" = "yes"; then
3130 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
3131 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
3132 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
3133 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
3134 case "$arg" in P,* | -L* | -R* )
3135 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
3137 xe_runpath_dir="$dir"
3138 test "$xe_runpath_dir" != "/lib" -a \
3139 "$xe_runpath_dir" != "/usr/lib" -a \
3140 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
3141 eval "$xe_add_unique_runpath_dir"
3146 ld_switch_run="$ld_switch_run_save"
3149 for arg in $ld_switch_site $ld_switch_x_site; do
3150 case "$arg" in -L*) {
3151 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
3152 test "$xe_runpath_dir" != "/lib" -a \
3153 "$xe_runpath_dir" != "/usr/lib" -a \
3154 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
3155 eval "$xe_add_unique_runpath_dir"
3158 if test "$opsys $need_motif" = "sol2 yes"; then
3159 xe_runpath_dir="/opt/SUNWdt/lib";
3160 eval "$xe_add_unique_runpath_dir";
3163 if test -n "$runpath"; then
3164 ld_switch_run="${dash_r}${runpath}"
3166 if test "$GCC" = "yes"; then
3167 set x $ld_switch_run; shift; ld_switch_run=""
3168 while test -n "$1"; do
3170 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
3171 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
3173 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
3178 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
3185 if test "$with_dlmalloc" != "no"; then
3190 after_morecore_hook_exists=yes
3191 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
3192 echo "configure:3193: checking for malloc_set_state" >&5
3194 cat > conftest.$ac_ext <<EOF
3195 #line 3196 "configure"
3196 #include "confdefs.h"
3197 /* System header to define __stub macros and hopefully few prototypes,
3198 which can conflict with char malloc_set_state(); below. */
3200 /* Override any gcc2 internal prototype to avoid an error. */
3201 /* We use char because int might match the return type of a gcc2
3202 builtin and then its argument prototype would still apply. */
3203 char malloc_set_state();
3207 /* The GNU C library defines this for functions which it implements
3208 to always fail with ENOSYS. Some functions are actually named
3209 something starting with __ and the normal name is an alias. */
3210 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
3218 if { (eval echo configure:3219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3220 eval "ac_cv_func_malloc_set_state=yes"
3222 echo "configure: failed program was:" >&5
3223 cat conftest.$ac_ext >&5
3225 eval "ac_cv_func_malloc_set_state=no"
3229 if eval "test \"`echo '$ac_cv_func_'malloc_set_state`\" = yes"; then
3230 echo "$ac_t""yes" 1>&6
3233 echo "$ac_t""no" 1>&6
3237 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
3238 echo "configure:3239: checking whether __after_morecore_hook exists" >&5
3239 cat > conftest.$ac_ext <<EOF
3240 #line 3241 "configure"
3241 #include "confdefs.h"
3242 extern void (* __after_morecore_hook)();
3244 __after_morecore_hook = 0
3247 if { (eval echo configure:3248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3249 echo "$ac_t""yes" 1>&6
3251 echo "configure: failed program was:" >&5
3252 cat conftest.$ac_ext >&5
3254 echo "$ac_t""no" 1>&6
3255 after_morecore_hook_exists=no
3258 if test "$system_malloc" = "yes" ; then
3261 - The GNU allocators don't work with this system configuration."
3262 elif test "$with_system_malloc" = "yes" ; then
3265 - User chose not to use GNU allocators."
3266 elif test "$with_debug_malloc" = "yes" ; then
3269 - User chose to use Debugging Malloc."
3272 if test "$doug_lea_malloc" = "yes" -a "$GNU_MALLOC" = "yes" ; then
3274 - Using Doug Lea's new malloc from the GNU C Library."
3275 { test "$extra_verbose" = "yes" && cat << \EOF
3276 Defining DOUG_LEA_MALLOC
3278 cat >> confdefs.h <<\EOF
3279 #define DOUG_LEA_MALLOC 1
3283 if test "$after_morecore_hook_exists" = "no" ; then
3285 - Using Doug Lea's new malloc from the Linux C Library."
3286 { test "$extra_verbose" = "yes" && cat << \EOF
3287 Defining _NO_MALLOC_WARNING_
3289 cat >> confdefs.h <<\EOF
3290 #define _NO_MALLOC_WARNING_ 1
3300 # Extract the first word of "ranlib", so it can be a program name with args.
3301 set dummy ranlib; ac_word=$2
3302 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3303 echo "configure:3304: checking for $ac_word" >&5
3305 if test -n "$RANLIB"; then
3306 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3308 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3310 for ac_dir in $ac_dummy; do
3311 test -z "$ac_dir" && ac_dir=.
3312 if test -f $ac_dir/$ac_word; then
3313 ac_cv_prog_RANLIB="ranlib"
3318 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
3320 RANLIB="$ac_cv_prog_RANLIB"
3321 if test -n "$RANLIB"; then
3322 echo "$ac_t""$RANLIB" 1>&6
3324 echo "$ac_t""no" 1>&6
3328 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3329 if test -f $ac_dir/install-sh; then
3331 ac_install_sh="$ac_aux_dir/install-sh -c"
3333 elif test -f $ac_dir/install.sh; then
3335 ac_install_sh="$ac_aux_dir/install.sh -c"
3339 if test -z "$ac_aux_dir"; then
3340 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
3342 ac_config_guess=$ac_aux_dir/config.guess
3343 ac_config_sub=$ac_aux_dir/config.sub
3344 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
3346 # Find a good install program. We prefer a C program (faster),
3347 # so one script is as good as another. But avoid the broken or
3348 # incompatible versions:
3349 # SysV /etc/install, /usr/sbin/install
3350 # SunOS /usr/etc/install
3351 # IRIX /sbin/install
3353 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3354 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3355 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3356 # ./install, which can be erroneously created by make from ./install.sh.
3357 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3358 echo "configure:3359: checking for a BSD compatible install" >&5
3359 if test -z "$INSTALL"; then
3361 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3362 for ac_dir in $PATH; do
3363 # Account for people who put trailing slashes in PATH elements.
3365 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3367 # OSF1 and SCO ODT 3.0 have their own names for install.
3368 # Don't use installbsd from OSF since it installs stuff as root
3370 for ac_prog in ginstall scoinst install; do
3371 if test -f $ac_dir/$ac_prog; then
3372 if test $ac_prog = install &&
3373 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3374 # AIX install. It has an incompatible calling convention.
3377 ac_cv_path_install="$ac_dir/$ac_prog -c"
3387 if test "${ac_cv_path_install+set}" = set; then
3388 INSTALL="$ac_cv_path_install"
3390 # As a last resort, use the slow shell script. We don't cache a
3391 # path for INSTALL within a source directory, because that will
3392 # break other packages using the cache if that directory is
3393 # removed, or if the path is relative.
3394 INSTALL="$ac_install_sh"
3397 echo "$ac_t""$INSTALL" 1>&6
3399 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3400 # It thinks the first close brace ends the variable substitution.
3401 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3403 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3405 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3407 for ac_prog in 'bison -y' byacc
3409 # Extract the first word of "$ac_prog", so it can be a program name with args.
3410 set dummy $ac_prog; ac_word=$2
3411 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3412 echo "configure:3413: checking for $ac_word" >&5
3414 if test -n "$YACC"; then
3415 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3417 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3419 for ac_dir in $ac_dummy; do
3420 test -z "$ac_dir" && ac_dir=.
3421 if test -f $ac_dir/$ac_word; then
3422 ac_cv_prog_YACC="$ac_prog"
3428 YACC="$ac_cv_prog_YACC"
3429 if test -n "$YACC"; then
3430 echo "$ac_t""$YACC" 1>&6
3432 echo "$ac_t""no" 1>&6
3435 test -n "$YACC" && break
3437 test -n "$YACC" || YACC="yacc"
3440 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
3442 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3443 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3444 echo "configure:3445: checking for $ac_hdr" >&5
3446 cat > conftest.$ac_ext <<EOF
3447 #line 3448 "configure"
3448 #include "confdefs.h"
3451 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3452 { (eval echo configure:3453: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3453 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3454 if test -z "$ac_err"; then
3456 eval "ac_cv_header_$ac_safe=yes"
3459 echo "configure: failed program was:" >&5
3460 cat conftest.$ac_ext >&5
3462 eval "ac_cv_header_$ac_safe=no"
3465 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3466 echo "$ac_t""yes" 1>&6
3467 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3468 { test "$extra_verbose" = "yes" && cat << EOF
3471 cat >> confdefs.h <<EOF
3472 #define $ac_tr_hdr 1
3477 echo "$ac_t""no" 1>&6
3481 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
3482 echo "configure:3483: checking for sys/wait.h that is POSIX.1 compatible" >&5
3484 cat > conftest.$ac_ext <<EOF
3485 #line 3486 "configure"
3486 #include "confdefs.h"
3487 #include <sys/types.h>
3488 #include <sys/wait.h>
3490 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3493 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3498 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3501 if { (eval echo configure:3502: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3503 ac_cv_header_sys_wait_h=yes
3505 echo "configure: failed program was:" >&5
3506 cat conftest.$ac_ext >&5
3508 ac_cv_header_sys_wait_h=no
3512 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
3513 if test $ac_cv_header_sys_wait_h = yes; then
3514 { test "$extra_verbose" = "yes" && cat << \EOF
3515 Defining HAVE_SYS_WAIT_H
3517 cat >> confdefs.h <<\EOF
3518 #define HAVE_SYS_WAIT_H 1
3524 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3525 echo "configure:3526: checking for ANSI C header files" >&5
3527 cat > conftest.$ac_ext <<EOF
3528 #line 3529 "configure"
3529 #include "confdefs.h"
3535 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3536 { (eval echo configure:3537: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3537 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3538 if test -z "$ac_err"; then
3540 ac_cv_header_stdc=yes
3543 echo "configure: failed program was:" >&5
3544 cat conftest.$ac_ext >&5
3546 ac_cv_header_stdc=no
3550 if test $ac_cv_header_stdc = yes; then
3551 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3552 cat > conftest.$ac_ext <<EOF
3553 #line 3554 "configure"
3554 #include "confdefs.h"
3557 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3558 egrep "memchr" >/dev/null 2>&1; then
3562 ac_cv_header_stdc=no
3568 if test $ac_cv_header_stdc = yes; then
3569 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3570 cat > conftest.$ac_ext <<EOF
3571 #line 3572 "configure"
3572 #include "confdefs.h"
3575 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3576 egrep "free" >/dev/null 2>&1; then
3580 ac_cv_header_stdc=no
3586 if test $ac_cv_header_stdc = yes; then
3587 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3588 cat > conftest.$ac_ext <<EOF
3589 #line 3590 "configure"
3590 #include "confdefs.h"
3592 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3593 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3594 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3595 int main () { int i; for (i = 0; i < 256; i++)
3596 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3600 if { (eval echo configure:3601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
3605 echo "configure: failed program was:" >&5
3606 cat conftest.$ac_ext >&5
3608 ac_cv_header_stdc=no
3613 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3614 if test $ac_cv_header_stdc = yes; then
3615 { test "$extra_verbose" = "yes" && cat << \EOF
3616 Defining STDC_HEADERS
3618 cat >> confdefs.h <<\EOF
3619 #define STDC_HEADERS 1
3625 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3626 echo "configure:3627: checking whether time.h and sys/time.h may both be included" >&5
3628 cat > conftest.$ac_ext <<EOF
3629 #line 3630 "configure"
3630 #include "confdefs.h"
3631 #include <sys/types.h>
3632 #include <sys/time.h>
3638 if { (eval echo configure:3639: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3640 ac_cv_header_time=yes
3642 echo "configure: failed program was:" >&5
3643 cat conftest.$ac_ext >&5
3645 ac_cv_header_time=no
3649 echo "$ac_t""$ac_cv_header_time" 1>&6
3650 if test $ac_cv_header_time = yes; then
3651 { test "$extra_verbose" = "yes" && cat << \EOF
3652 Defining TIME_WITH_SYS_TIME
3654 cat >> confdefs.h <<\EOF
3655 #define TIME_WITH_SYS_TIME 1
3661 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
3662 echo "configure:3663: checking for sys_siglist declaration in signal.h or unistd.h" >&5
3664 cat > conftest.$ac_ext <<EOF
3665 #line 3666 "configure"
3666 #include "confdefs.h"
3667 #include <sys/types.h>
3669 /* NetBSD declares sys_siglist in unistd.h. */
3670 #ifdef HAVE_UNISTD_H
3674 char *msg = *(sys_siglist + 1);
3677 if { (eval echo configure:3678: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3679 ac_cv_decl_sys_siglist=yes
3681 echo "configure: failed program was:" >&5
3682 cat conftest.$ac_ext >&5
3684 ac_cv_decl_sys_siglist=no
3688 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
3689 if test $ac_cv_decl_sys_siglist = yes; then
3690 { test "$extra_verbose" = "yes" && cat << \EOF
3691 Defining SYS_SIGLIST_DECLARED
3693 cat >> confdefs.h <<\EOF
3694 #define SYS_SIGLIST_DECLARED 1
3702 echo $ac_n "checking for utime""... $ac_c" 1>&6
3703 echo "configure:3704: checking for utime" >&5
3704 cat > conftest.$ac_ext <<EOF
3705 #line 3706 "configure"
3706 #include "confdefs.h"
3707 #include <sys/types.h>
3710 struct utimbuf x; x.actime = x.modtime = 0; utime ("/", &x);
3713 if { (eval echo configure:3714: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3715 echo "$ac_t""yes" 1>&6
3716 { test "$extra_verbose" = "yes" && cat << \EOF
3719 cat >> confdefs.h <<\EOF
3720 #define HAVE_UTIME 1
3725 echo "configure: failed program was:" >&5
3726 cat conftest.$ac_ext >&5
3728 echo "$ac_t""no" 1>&6
3729 for ac_func in utimes
3731 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3732 echo "configure:3733: checking for $ac_func" >&5
3734 cat > conftest.$ac_ext <<EOF
3735 #line 3736 "configure"
3736 #include "confdefs.h"
3737 /* System header to define __stub macros and hopefully few prototypes,
3738 which can conflict with char $ac_func(); below. */
3740 /* Override any gcc2 internal prototype to avoid an error. */
3741 /* We use char because int might match the return type of a gcc2
3742 builtin and then its argument prototype would still apply. */
3747 /* The GNU C library defines this for functions which it implements
3748 to always fail with ENOSYS. Some functions are actually named
3749 something starting with __ and the normal name is an alias. */
3750 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3758 if { (eval echo configure:3759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3760 eval "ac_cv_func_$ac_func=yes"
3762 echo "configure: failed program was:" >&5
3763 cat conftest.$ac_ext >&5
3765 eval "ac_cv_func_$ac_func=no"
3769 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3770 echo "$ac_t""yes" 1>&6
3771 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3772 { test "$extra_verbose" = "yes" && cat << EOF
3773 Defining $ac_tr_func
3775 cat >> confdefs.h <<EOF
3776 #define $ac_tr_func 1
3781 echo "$ac_t""no" 1>&6
3789 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3790 echo "configure:3791: checking return type of signal handlers" >&5
3792 cat > conftest.$ac_ext <<EOF
3793 #line 3794 "configure"
3794 #include "confdefs.h"
3795 #include <sys/types.h>
3801 extern "C" void (*signal (int, void (*)(int)))(int);
3803 void (*signal ()) ();
3810 if { (eval echo configure:3811: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3812 ac_cv_type_signal=void
3814 echo "configure: failed program was:" >&5
3815 cat conftest.$ac_ext >&5
3817 ac_cv_type_signal=int
3821 echo "$ac_t""$ac_cv_type_signal" 1>&6
3822 { test "$extra_verbose" = "yes" && cat << EOF
3823 Defining RETSIGTYPE = $ac_cv_type_signal
3825 cat >> confdefs.h <<EOF
3826 #define RETSIGTYPE $ac_cv_type_signal
3831 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3832 echo "configure:3833: checking for size_t" >&5
3834 cat > conftest.$ac_ext <<EOF
3835 #line 3836 "configure"
3836 #include "confdefs.h"
3837 #include <sys/types.h>
3843 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3844 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3846 ac_cv_type_size_t=yes
3849 ac_cv_type_size_t=no
3853 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3854 if test $ac_cv_type_size_t = no; then
3855 { test "$extra_verbose" = "yes" && cat << \EOF
3856 Defining size_t = unsigned
3858 cat >> confdefs.h <<\EOF
3859 #define size_t unsigned
3865 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3866 echo "configure:3867: checking for pid_t" >&5
3868 cat > conftest.$ac_ext <<EOF
3869 #line 3870 "configure"
3870 #include "confdefs.h"
3871 #include <sys/types.h>
3877 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3878 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3880 ac_cv_type_pid_t=yes
3887 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3888 if test $ac_cv_type_pid_t = no; then
3889 { test "$extra_verbose" = "yes" && cat << \EOF
3890 Defining pid_t = int
3892 cat >> confdefs.h <<\EOF
3899 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3900 echo "configure:3901: checking for uid_t in sys/types.h" >&5
3902 cat > conftest.$ac_ext <<EOF
3903 #line 3904 "configure"
3904 #include "confdefs.h"
3905 #include <sys/types.h>
3907 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3908 egrep "uid_t" >/dev/null 2>&1; then
3910 ac_cv_type_uid_t=yes
3918 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3919 if test $ac_cv_type_uid_t = no; then
3920 { test "$extra_verbose" = "yes" && cat << \EOF
3921 Defining uid_t = int
3923 cat >> confdefs.h <<\EOF
3928 { test "$extra_verbose" = "yes" && cat << \EOF
3929 Defining gid_t = int
3931 cat >> confdefs.h <<\EOF
3938 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3939 echo "configure:3940: checking for mode_t" >&5
3941 cat > conftest.$ac_ext <<EOF
3942 #line 3943 "configure"
3943 #include "confdefs.h"
3944 #include <sys/types.h>
3950 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3951 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3953 ac_cv_type_mode_t=yes
3956 ac_cv_type_mode_t=no
3960 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3961 if test $ac_cv_type_mode_t = no; then
3962 { test "$extra_verbose" = "yes" && cat << \EOF
3963 Defining mode_t = int
3965 cat >> confdefs.h <<\EOF
3972 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3973 echo "configure:3974: checking for off_t" >&5
3975 cat > conftest.$ac_ext <<EOF
3976 #line 3977 "configure"
3977 #include "confdefs.h"
3978 #include <sys/types.h>
3984 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3985 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3987 ac_cv_type_off_t=yes
3994 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3995 if test $ac_cv_type_off_t = no; then
3996 { test "$extra_verbose" = "yes" && cat << \EOF
3997 Defining off_t = long
3999 cat >> confdefs.h <<\EOF
4006 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
4007 echo "configure:4008: checking for ssize_t" >&5
4009 cat > conftest.$ac_ext <<EOF
4010 #line 4011 "configure"
4011 #include "confdefs.h"
4012 #include <sys/types.h>
4018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4019 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4021 ac_cv_type_ssize_t=yes
4024 ac_cv_type_ssize_t=no
4028 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
4029 if test $ac_cv_type_ssize_t = no; then
4030 { test "$extra_verbose" = "yes" && cat << \EOF
4031 Defining ssize_t = int
4033 cat >> confdefs.h <<\EOF
4041 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
4042 echo "configure:4043: checking for socklen_t" >&5
4043 cat > conftest.$ac_ext <<EOF
4044 #line 4045 "configure"
4045 #include "confdefs.h"
4046 #include <sys/socket.h>
4053 if { (eval echo configure:4054: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4055 echo "$ac_t""yes" 1>&6
4057 echo "configure: failed program was:" >&5
4058 cat conftest.$ac_ext >&5
4061 cat > conftest.$ac_ext <<EOF
4062 #line 4063 "configure"
4063 #include "confdefs.h"
4064 #include <sys/socket.h>
4065 int accept (int, struct sockaddr *, size_t *);
4071 if { (eval echo configure:4072: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4074 echo "$ac_t""size_t" 1>&6
4075 { test "$extra_verbose" = "yes" && cat << \EOF
4076 Defining socklen_t = size_t
4078 cat >> confdefs.h <<\EOF
4079 #define socklen_t size_t
4084 echo "configure: failed program was:" >&5
4085 cat conftest.$ac_ext >&5
4088 echo "$ac_t""int" 1>&6
4089 { test "$extra_verbose" = "yes" && cat << \EOF
4090 Defining socklen_t = int
4092 cat >> confdefs.h <<\EOF
4093 #define socklen_t int
4102 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
4103 echo "configure:4104: checking for struct timeval" >&5
4104 cat > conftest.$ac_ext <<EOF
4105 #line 4106 "configure"
4106 #include "confdefs.h"
4107 #ifdef TIME_WITH_SYS_TIME
4108 #include <sys/time.h>
4111 #ifdef HAVE_SYS_TIME_H
4112 #include <sys/time.h>
4118 static struct timeval x; x.tv_sec = x.tv_usec;
4121 if { (eval echo configure:4122: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4123 echo "$ac_t""yes" 1>&6
4125 { test "$extra_verbose" = "yes" && cat << \EOF
4126 Defining HAVE_TIMEVAL
4128 cat >> confdefs.h <<\EOF
4129 #define HAVE_TIMEVAL 1
4134 echo "configure: failed program was:" >&5
4135 cat conftest.$ac_ext >&5
4137 echo "$ac_t""no" 1>&6
4142 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
4143 echo "configure:4144: checking whether struct tm is in sys/time.h or time.h" >&5
4145 cat > conftest.$ac_ext <<EOF
4146 #line 4147 "configure"
4147 #include "confdefs.h"
4148 #include <sys/types.h>
4151 struct tm *tp; tp->tm_sec;
4154 if { (eval echo configure:4155: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4156 ac_cv_struct_tm=time.h
4158 echo "configure: failed program was:" >&5
4159 cat conftest.$ac_ext >&5
4161 ac_cv_struct_tm=sys/time.h
4165 echo "$ac_t""$ac_cv_struct_tm" 1>&6
4166 if test $ac_cv_struct_tm = sys/time.h; then
4167 { test "$extra_verbose" = "yes" && cat << \EOF
4168 Defining TM_IN_SYS_TIME
4170 cat >> confdefs.h <<\EOF
4171 #define TM_IN_SYS_TIME 1
4177 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
4178 echo "configure:4179: checking for tm_zone in struct tm" >&5
4180 cat > conftest.$ac_ext <<EOF
4181 #line 4182 "configure"
4182 #include "confdefs.h"
4183 #include <sys/types.h>
4184 #include <$ac_cv_struct_tm>
4186 struct tm tm; tm.tm_zone;
4189 if { (eval echo configure:4190: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4191 ac_cv_struct_tm_zone=yes
4193 echo "configure: failed program was:" >&5
4194 cat conftest.$ac_ext >&5
4196 ac_cv_struct_tm_zone=no
4200 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
4201 if test "$ac_cv_struct_tm_zone" = yes; then
4202 { test "$extra_verbose" = "yes" && cat << \EOF
4203 Defining HAVE_TM_ZONE
4205 cat >> confdefs.h <<\EOF
4206 #define HAVE_TM_ZONE 1
4211 echo $ac_n "checking for tzname""... $ac_c" 1>&6
4212 echo "configure:4213: checking for tzname" >&5
4214 cat > conftest.$ac_ext <<EOF
4215 #line 4216 "configure"
4216 #include "confdefs.h"
4218 #ifndef tzname /* For SGI. */
4219 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4225 if { (eval echo configure:4226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4227 ac_cv_var_tzname=yes
4229 echo "configure: failed program was:" >&5
4230 cat conftest.$ac_ext >&5
4236 echo "$ac_t""$ac_cv_var_tzname" 1>&6
4237 if test $ac_cv_var_tzname = yes; then
4238 { test "$extra_verbose" = "yes" && cat << \EOF
4239 Defining HAVE_TZNAME
4241 cat >> confdefs.h <<\EOF
4242 #define HAVE_TZNAME 1
4250 echo $ac_n "checking for working const""... $ac_c" 1>&6
4251 echo "configure:4252: checking for working const" >&5
4253 cat > conftest.$ac_ext <<EOF
4254 #line 4255 "configure"
4255 #include "confdefs.h"
4259 /* Ultrix mips cc rejects this. */
4260 typedef int charset[2]; const charset x;
4261 /* SunOS 4.1.1 cc rejects this. */
4262 char const *const *ccp;
4264 /* NEC SVR4.0.2 mips cc rejects this. */
4265 struct point {int x, y;};
4266 static struct point const zero = {0,0};
4267 /* AIX XL C 1.02.0.0 rejects this.
4268 It does not let you subtract one const X* pointer from another in an arm
4269 of an if-expression whose if-part is not a constant expression */
4270 const char *g = "string";
4271 ccp = &g + (g ? g-g : 0);
4272 /* HPUX 7.0 cc rejects these. */
4275 ccp = (char const *const *) p;
4276 { /* SCO 3.2v4 cc rejects this. */
4278 char const *s = 0 ? (char *) 0 : (char const *) 0;
4282 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4284 const int *foo = &x[0];
4287 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4288 typedef const int *iptr;
4292 { /* AIX XL C 1.02.0.0 rejects this saying
4293 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4294 struct s { int j; const int *ap[3]; };
4295 struct s *b; b->j = 5;
4297 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4303 if { (eval echo configure:4304: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4307 echo "configure: failed program was:" >&5
4308 cat conftest.$ac_ext >&5
4314 echo "$ac_t""$ac_cv_c_const" 1>&6
4315 if test $ac_cv_c_const = no; then
4316 { test "$extra_verbose" = "yes" && cat << \EOF
4319 cat >> confdefs.h <<\EOF
4327 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
4328 echo "configure:4329: checking whether ${MAKE-make} sets \${MAKE}" >&5
4329 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
4331 cat > conftestmake <<\EOF
4333 @echo 'ac_maketemp="${MAKE}"'
4335 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4336 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
4337 if test -n "$ac_maketemp"; then
4338 eval ac_cv_prog_make_${ac_make}_set=yes
4340 eval ac_cv_prog_make_${ac_make}_set=no
4343 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4344 echo "$ac_t""yes" 1>&6
4347 echo "$ac_t""no" 1>&6
4348 SET_MAKE="MAKE=${MAKE-make}"
4352 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
4353 echo "configure:4354: checking whether byte ordering is bigendian" >&5
4355 ac_cv_c_bigendian=unknown
4356 # See if sys/param.h defines the BYTE_ORDER macro.
4357 cat > conftest.$ac_ext <<EOF
4358 #line 4359 "configure"
4359 #include "confdefs.h"
4360 #include <sys/types.h>
4361 #include <sys/param.h>
4364 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4369 if { (eval echo configure:4370: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4371 # It does; now see whether it defined to BIG_ENDIAN or not.
4372 cat > conftest.$ac_ext <<EOF
4373 #line 4374 "configure"
4374 #include "confdefs.h"
4375 #include <sys/types.h>
4376 #include <sys/param.h>
4379 #if BYTE_ORDER != BIG_ENDIAN
4384 if { (eval echo configure:4385: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4386 ac_cv_c_bigendian=yes
4388 echo "configure: failed program was:" >&5
4389 cat conftest.$ac_ext >&5
4391 ac_cv_c_bigendian=no
4395 echo "configure: failed program was:" >&5
4396 cat conftest.$ac_ext >&5
4399 if test $ac_cv_c_bigendian = unknown; then
4400 cat > conftest.$ac_ext <<EOF
4401 #line 4402 "configure"
4402 #include "confdefs.h"
4404 /* Are we little or big endian? From Harbison&Steele. */
4408 char c[sizeof (long)];
4411 exit (u.c[sizeof (long) - 1] == 1);
4414 if { (eval echo configure:4415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4416 ac_cv_c_bigendian=no
4419 echo "configure: failed program was:" >&5
4420 cat conftest.$ac_ext >&5
4422 ac_cv_c_bigendian=yes
4427 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
4428 if test $ac_cv_c_bigendian = yes; then
4429 { test "$extra_verbose" = "yes" && cat << \EOF
4430 Defining WORDS_BIGENDIAN
4432 cat >> confdefs.h <<\EOF
4433 #define WORDS_BIGENDIAN 1
4440 echo $ac_n "checking size of short""... $ac_c" 1>&6
4441 echo "configure:4442: checking size of short" >&5
4443 cat > conftest.$ac_ext <<EOF
4444 #line 4445 "configure"
4445 #include "confdefs.h"
4449 FILE *f=fopen("conftestval", "w");
4451 fprintf(f, "%d\n", sizeof(short));
4455 if { (eval echo configure:4456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4457 ac_cv_sizeof_short=`cat conftestval`
4460 echo "configure: failed program was:" >&5
4461 cat conftest.$ac_ext >&5
4463 ac_cv_sizeof_short=0
4466 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
4467 { test "$extra_verbose" = "yes" && cat << EOF
4468 Defining SIZEOF_SHORT = $ac_cv_sizeof_short
4470 cat >> confdefs.h <<EOF
4471 #define SIZEOF_SHORT $ac_cv_sizeof_short
4476 if test "$ac_cv_sizeof_short" = 0; then
4478 echo "*** PANIC *** Configure tests are not working - compiler is broken."
4479 echo "*** PANIC *** Please examine config.log for compilation errors."
4482 echo $ac_n "checking size of int""... $ac_c" 1>&6
4483 echo "configure:4484: checking size of int" >&5
4485 cat > conftest.$ac_ext <<EOF
4486 #line 4487 "configure"
4487 #include "confdefs.h"
4491 FILE *f=fopen("conftestval", "w");
4493 fprintf(f, "%d\n", sizeof(int));
4497 if { (eval echo configure:4498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4499 ac_cv_sizeof_int=`cat conftestval`
4502 echo "configure: failed program was:" >&5
4503 cat conftest.$ac_ext >&5
4508 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
4509 { test "$extra_verbose" = "yes" && cat << EOF
4510 Defining SIZEOF_INT = $ac_cv_sizeof_int
4512 cat >> confdefs.h <<EOF
4513 #define SIZEOF_INT $ac_cv_sizeof_int
4518 echo $ac_n "checking size of long""... $ac_c" 1>&6
4519 echo "configure:4520: checking size of long" >&5
4521 cat > conftest.$ac_ext <<EOF
4522 #line 4523 "configure"
4523 #include "confdefs.h"
4527 FILE *f=fopen("conftestval", "w");
4529 fprintf(f, "%d\n", sizeof(long));
4533 if { (eval echo configure:4534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4535 ac_cv_sizeof_long=`cat conftestval`
4538 echo "configure: failed program was:" >&5
4539 cat conftest.$ac_ext >&5
4544 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
4545 { test "$extra_verbose" = "yes" && cat << EOF
4546 Defining SIZEOF_LONG = $ac_cv_sizeof_long
4548 cat >> confdefs.h <<EOF
4549 #define SIZEOF_LONG $ac_cv_sizeof_long
4554 echo $ac_n "checking size of long long""... $ac_c" 1>&6
4555 echo "configure:4556: checking size of long long" >&5
4557 cat > conftest.$ac_ext <<EOF
4558 #line 4559 "configure"
4559 #include "confdefs.h"
4563 FILE *f=fopen("conftestval", "w");
4565 fprintf(f, "%d\n", sizeof(long long));
4569 if { (eval echo configure:4570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4571 ac_cv_sizeof_long_long=`cat conftestval`
4574 echo "configure: failed program was:" >&5
4575 cat conftest.$ac_ext >&5
4577 ac_cv_sizeof_long_long=0
4580 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
4581 { test "$extra_verbose" = "yes" && cat << EOF
4582 Defining SIZEOF_LONG_LONG = $ac_cv_sizeof_long_long
4584 cat >> confdefs.h <<EOF
4585 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4590 echo $ac_n "checking size of void *""... $ac_c" 1>&6
4591 echo "configure:4592: checking size of void *" >&5
4593 cat > conftest.$ac_ext <<EOF
4594 #line 4595 "configure"
4595 #include "confdefs.h"
4599 FILE *f=fopen("conftestval", "w");
4601 fprintf(f, "%d\n", sizeof(void *));
4605 if { (eval echo configure:4606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4607 ac_cv_sizeof_void_p=`cat conftestval`
4610 echo "configure: failed program was:" >&5
4611 cat conftest.$ac_ext >&5
4613 ac_cv_sizeof_void_p=0
4616 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
4617 { test "$extra_verbose" = "yes" && cat << EOF
4618 Defining SIZEOF_VOID_P = $ac_cv_sizeof_void_p
4620 cat >> confdefs.h <<EOF
4621 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4627 echo $ac_n "checking for long file names""... $ac_c" 1>&6
4628 echo "configure:4629: checking for long file names" >&5
4630 ac_cv_sys_long_file_names=yes
4631 # Test for long file names in all the places we know might matter:
4632 # . the current directory, where building will happen
4633 # $prefix/lib where we will be installing things
4634 # $exec_prefix/lib likewise
4635 # eval it to expand exec_prefix.
4636 # $TMPDIR if set, where it might want to write temporary files
4637 # if $TMPDIR is not set:
4638 # /tmp where it might want to write temporary files
4641 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
4642 ac_tmpdirs="$TMPDIR"
4644 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
4646 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
4647 test -d $ac_dir || continue
4648 test -w $ac_dir || continue # It is less confusing to not echo anything here.
4649 (echo 1 > $ac_dir/conftest9012345) 2>/dev/null
4650 (echo 2 > $ac_dir/conftest9012346) 2>/dev/null
4651 val=`cat $ac_dir/conftest9012345 2>/dev/null`
4652 if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then
4653 ac_cv_sys_long_file_names=no
4654 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
4657 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
4660 echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
4661 if test $ac_cv_sys_long_file_names = yes; then
4662 { test "$extra_verbose" = "yes" && cat << \EOF
4663 Defining HAVE_LONG_FILE_NAMES
4665 cat >> confdefs.h <<\EOF
4666 #define HAVE_LONG_FILE_NAMES 1
4673 echo $ac_n "checking for sin""... $ac_c" 1>&6
4674 echo "configure:4675: checking for sin" >&5
4676 cat > conftest.$ac_ext <<EOF
4677 #line 4678 "configure"
4678 #include "confdefs.h"
4679 /* System header to define __stub macros and hopefully few prototypes,
4680 which can conflict with char sin(); below. */
4682 /* Override any gcc2 internal prototype to avoid an error. */
4683 /* We use char because int might match the return type of a gcc2
4684 builtin and then its argument prototype would still apply. */
4689 /* The GNU C library defines this for functions which it implements
4690 to always fail with ENOSYS. Some functions are actually named
4691 something starting with __ and the normal name is an alias. */
4692 #if defined (__stub_sin) || defined (__stub___sin)
4700 if { (eval echo configure:4701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4702 eval "ac_cv_func_sin=yes"
4704 echo "configure: failed program was:" >&5
4705 cat conftest.$ac_ext >&5
4707 eval "ac_cv_func_sin=no"
4711 if eval "test \"`echo '$ac_cv_func_'sin`\" = yes"; then
4712 echo "$ac_t""yes" 1>&6
4715 echo "$ac_t""no" 1>&6
4717 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
4718 echo "configure:4719: checking for sin in -lm" >&5
4719 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
4721 xe_check_libs=" -lm "
4722 cat > conftest.$ac_ext <<EOF
4723 #line 4724 "configure"
4724 #include "confdefs.h"
4725 /* Override any gcc2 internal prototype to avoid an error. */
4726 /* We use char because int might match the return type of a gcc2
4727 builtin and then its argument prototype would still apply. */
4734 if { (eval echo configure:4735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4736 eval "ac_cv_lib_$ac_lib_var=yes"
4738 echo "configure: failed program was:" >&5
4739 cat conftest.$ac_ext >&5
4741 eval "ac_cv_lib_$ac_lib_var=no"
4746 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4747 echo "$ac_t""yes" 1>&6
4748 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/^a-zA-Z0-9_/_/g' \
4749 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4750 { test "$extra_verbose" = "yes" && cat << EOF
4753 cat >> confdefs.h <<EOF
4754 #define $ac_tr_lib 1
4758 LIBS="-lm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lm\" to \$LIBS"; fi
4761 echo "$ac_t""no" 1>&6
4768 { test "$extra_verbose" = "yes" && cat << \EOF
4769 Defining LISP_FLOAT_TYPE
4771 cat >> confdefs.h <<\EOF
4772 #define LISP_FLOAT_TYPE 1
4777 cat > conftest.$ac_ext <<EOF
4778 #line 4779 "configure"
4779 #include "confdefs.h"
4782 return atanh(1.0) + asinh(1.0) + acosh(1.0);
4785 if { (eval echo configure:4786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4787 { test "$extra_verbose" = "yes" && cat << \EOF
4788 Defining HAVE_INVERSE_HYPERBOLIC
4790 cat >> confdefs.h <<\EOF
4791 #define HAVE_INVERSE_HYPERBOLIC 1
4796 echo "configure: failed program was:" >&5
4797 cat conftest.$ac_ext >&5
4801 echo "checking type of mail spool file locking" 1>&6
4802 echo "configure:4803: checking type of mail spool file locking" >&5
4803 for ac_func in lockf flock
4805 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4806 echo "configure:4807: checking for $ac_func" >&5
4808 cat > conftest.$ac_ext <<EOF
4809 #line 4810 "configure"
4810 #include "confdefs.h"
4811 /* System header to define __stub macros and hopefully few prototypes,
4812 which can conflict with char $ac_func(); below. */
4814 /* Override any gcc2 internal prototype to avoid an error. */
4815 /* We use char because int might match the return type of a gcc2
4816 builtin and then its argument prototype would still apply. */
4821 /* The GNU C library defines this for functions which it implements
4822 to always fail with ENOSYS. Some functions are actually named
4823 something starting with __ and the normal name is an alias. */
4824 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4832 if { (eval echo configure:4833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4834 eval "ac_cv_func_$ac_func=yes"
4836 echo "configure: failed program was:" >&5
4837 cat conftest.$ac_ext >&5
4839 eval "ac_cv_func_$ac_func=no"
4843 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4844 echo "$ac_t""yes" 1>&6
4845 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4846 { test "$extra_verbose" = "yes" && cat << EOF
4847 Defining $ac_tr_func
4849 cat >> confdefs.h <<EOF
4850 #define $ac_tr_func 1
4855 echo "$ac_t""no" 1>&6
4859 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock
4860 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf
4861 test -z "$mail_locking" -a "$mail_use_locking" = "yes" && mail_locking=locking
4862 if test -z "$mail_locking"; then
4863 case "$opsys" in cygwin* | mingw*)
4868 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF
4869 Defining MAIL_LOCK_LOCKF
4871 cat >> confdefs.h <<\EOF
4872 #define MAIL_LOCK_LOCKF 1
4876 elif test "$mail_locking" = "flock"; then { test "$extra_verbose" = "yes" && cat << \EOF
4877 Defining MAIL_LOCK_FLOCK
4879 cat >> confdefs.h <<\EOF
4880 #define MAIL_LOCK_FLOCK 1
4884 elif test "$mail_locking" = "locking"; then { test "$extra_verbose" = "yes" && cat << \EOF
4885 Defining MAIL_LOCK_LOCKING
4887 cat >> confdefs.h <<\EOF
4888 #define MAIL_LOCK_LOCKING 1
4892 elif test "$mail_locking" = "pop"; then
4895 else mail_locking="dot-locking"; { test "$extra_verbose" = "yes" && cat << \EOF
4896 Defining MAIL_LOCK_DOT
4898 cat >> confdefs.h <<\EOF
4899 #define MAIL_LOCK_DOT 1
4904 test "$mail_locking" = "lockf" -a "$ac_cv_func_lockf" != "yes" && \
4905 { echo "Error:" "lockf mail locking requested but not available." >&2; exit 1; }
4906 test "$mail_locking" = "flock" -a "$ac_cv_func_flock" != "yes" && \
4907 { echo "Error:" "flock mail locking requested but not available." >&2; exit 1; }
4908 test "$mail_locking" = "locking" -a "$ac_cv_func_locking" != "yes" && \
4909 { echo "Error:" "locking mail locking requested but not available." >&2; exit 1; }
4911 case "$opsys" in decosf*)
4913 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
4914 echo "configure:4915: checking for cma_open in -lpthreads" >&5
4915 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
4917 xe_check_libs=" -lpthreads "
4918 cat > conftest.$ac_ext <<EOF
4919 #line 4920 "configure"
4920 #include "confdefs.h"
4921 /* Override any gcc2 internal prototype to avoid an error. */
4922 /* We use char because int might match the return type of a gcc2
4923 builtin and then its argument prototype would still apply. */
4930 if { (eval echo configure:4931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4932 eval "ac_cv_lib_$ac_lib_var=yes"
4934 echo "configure: failed program was:" >&5
4935 cat conftest.$ac_ext >&5
4937 eval "ac_cv_lib_$ac_lib_var=no"
4942 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4943 echo "$ac_t""yes" 1>&6
4944 ac_tr_lib=HAVE_LIB`echo pthreads | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4945 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4946 { test "$extra_verbose" = "yes" && cat << EOF
4949 cat >> confdefs.h <<EOF
4950 #define $ac_tr_lib 1
4954 LIBS="-lpthreads $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpthreads\" to \$LIBS"; fi
4957 echo "$ac_t""no" 1>&6
4961 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \
4962 c_switch_site="$c_switch_site -threads" ;;
4965 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6
4966 echo "configure:4967: checking whether the -xildoff compiler flag is required" >&5
4967 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
4968 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ;
4969 then echo "$ac_t""no" 1>&6;
4970 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
4972 else echo "$ac_t""no" 1>&6
4975 if test "$opsys" = "sol2"; then
4976 if test "$os_release" -ge 56; then
4977 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6
4978 echo "configure:4979: checking for \"-z ignore\" linker flag" >&5
4979 case "`ld -h 2>&1`" in
4980 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6
4981 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;;
4982 *) echo "$ac_t""no" 1>&6 ;;
4988 echo "checking "for specified window system"" 1>&6
4989 echo "configure:4990: checking "for specified window system"" >&5
4995 if test "$with_gnome" != "no"; then
4996 echo $ac_n "checking for GNOME configuration script""... $ac_c" 1>&6
4997 echo "configure:4998: checking for GNOME configuration script" >&5
4998 for possible in gnome-config
5000 possible_version=`${possible} --version 2> /dev/null`
5001 if test "x${possible_version}" != "x"; then
5002 GNOME_CONFIG="${possible}"
5008 echo "$ac_t""${GNOME_CONFIG}" 1>&6
5011 if test "${GNOME_CONFIG}" != "no"; then
5012 GNOME_LIBS=`${GNOME_CONFIG} --libs gnomeui`
5013 GNOME_CFLAGS=`${GNOME_CONFIG} --cflags gnomeui`
5014 { test "$extra_verbose" = "yes" && cat << \EOF
5017 cat >> confdefs.h <<\EOF
5018 #define HAVE_GNOME 1
5022 libs_gtk="$libs_gtk ${GNOME_LIBS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GNOME_LIBS}\" to \$libs_gtk"; fi
5023 c_switch_gtk="$c_switch_gtk ${GNOME_CFLAGS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GNOME_CFLAGS}\" to \$c_switch_gtk"; fi
5026 if test "$with_gtk" != "no";then
5027 echo $ac_n "checking for GTK configuration script""... $ac_c" 1>&6
5028 echo "configure:5029: checking for GTK configuration script" >&5
5029 for possible in gtk12-config gtk14-config gtk-config
5031 possible_version=`${possible} --version 2> /dev/null`
5032 if test "x${possible_version}" != "x"; then
5033 GTK_CONFIG="${possible}"
5035 case "${possible_version}" in
5036 1.0.*) echo "configure: warning: GTK 1.2 is required, please upgrade your version of GTK." 1>&2; with_gtk=no;;
5037 1.3.*) echo "configure: warning: GTK 1.3 is not supported right now" 1>&2; with_gtk=no;;
5042 *) echo "configure: warning: Found unsupported version of GTK: $possible_version" 1>&2;;
5045 echo "$ac_t""${GTK_CONFIG}" 1>&6
5048 if test "${GTK_CONFIG}" != "no"; then
5049 echo $ac_n "checking gtk version""... $ac_c" 1>&6
5050 echo "configure:5051: checking gtk version" >&5
5051 GTK_VERSION=`${GTK_CONFIG} --version`
5052 echo "$ac_t""${GTK_VERSION}" 1>&6
5054 echo $ac_n "checking gtk libs""... $ac_c" 1>&6
5055 echo "configure:5056: checking gtk libs" >&5
5056 GTK_LIBS=`${GTK_CONFIG} --libs`
5057 libs_gtk="$libs_gtk ${GTK_LIBS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GTK_LIBS}\" to \$libs_gtk"; fi
5058 echo "$ac_t""${GTK_LIBS}" 1>&6
5060 echo $ac_n "checking gtk cflags""... $ac_c" 1>&6
5061 echo "configure:5062: checking gtk cflags" >&5
5062 GTK_CFLAGS=`${GTK_CONFIG} --cflags`
5063 c_switch_gtk="$c_switch_gtk ${GTK_CFLAGS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GTK_CFLAGS}\" to \$c_switch_gtk"; fi
5064 echo "$ac_t""${GTK_CFLAGS}" 1>&6
5067 echo $ac_n "checking for main in -lgdk_imlib""... $ac_c" 1>&6
5068 echo "configure:5069: checking for main in -lgdk_imlib" >&5
5069 ac_lib_var=`echo gdk_imlib'_'main | sed 'y%./+-%__p_%'`
5071 xe_check_libs=" -lgdk_imlib "
5072 cat > conftest.$ac_ext <<EOF
5073 #line 5074 "configure"
5074 #include "confdefs.h"
5080 if { (eval echo configure:5081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5082 eval "ac_cv_lib_$ac_lib_var=yes"
5084 echo "configure: failed program was:" >&5
5085 cat conftest.$ac_ext >&5
5087 eval "ac_cv_lib_$ac_lib_var=no"
5092 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5093 echo "$ac_t""yes" 1>&6
5094 libs_gtk="-lgdk_imlib $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgdk_imlib\" to \$libs_gtk"; fi
5096 echo "$ac_t""no" 1>&6
5101 echo $ac_n "checking for Imlib_init in -lImlib""... $ac_c" 1>&6
5102 echo "configure:5103: checking for Imlib_init in -lImlib" >&5
5103 ac_lib_var=`echo Imlib'_'Imlib_init | sed 'y%./+-%__p_%'`
5105 xe_check_libs=" -lImlib "
5106 cat > conftest.$ac_ext <<EOF
5107 #line 5108 "configure"
5108 #include "confdefs.h"
5109 /* Override any gcc2 internal prototype to avoid an error. */
5110 /* We use char because int might match the return type of a gcc2
5111 builtin and then its argument prototype would still apply. */
5118 if { (eval echo configure:5119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5120 eval "ac_cv_lib_$ac_lib_var=yes"
5122 echo "configure: failed program was:" >&5
5123 cat conftest.$ac_ext >&5
5125 eval "ac_cv_lib_$ac_lib_var=no"
5130 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5131 echo "$ac_t""yes" 1>&6
5132 libs_gtk="$libs_gtk -lImlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lImlib\" to \$libs_gtk"; fi
5134 echo "$ac_t""no" 1>&6
5138 for ac_func in gdk_imlib_init
5140 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5141 echo "configure:5142: checking for $ac_func" >&5
5143 cat > conftest.$ac_ext <<EOF
5144 #line 5145 "configure"
5145 #include "confdefs.h"
5146 /* System header to define __stub macros and hopefully few prototypes,
5147 which can conflict with char $ac_func(); below. */
5149 /* Override any gcc2 internal prototype to avoid an error. */
5150 /* We use char because int might match the return type of a gcc2
5151 builtin and then its argument prototype would still apply. */
5156 /* The GNU C library defines this for functions which it implements
5157 to always fail with ENOSYS. Some functions are actually named
5158 something starting with __ and the normal name is an alias. */
5159 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5167 if { (eval echo configure:5168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5169 eval "ac_cv_func_$ac_func=yes"
5171 echo "configure: failed program was:" >&5
5172 cat conftest.$ac_ext >&5
5174 eval "ac_cv_func_$ac_func=no"
5178 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5179 echo "$ac_t""yes" 1>&6
5180 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5181 { test "$extra_verbose" = "yes" && cat << EOF
5182 Defining $ac_tr_func
5184 cat >> confdefs.h <<EOF
5185 #define $ac_tr_func 1
5190 echo "$ac_t""no" 1>&6
5195 { test "$extra_verbose" = "yes" && cat << \EOF
5198 cat >> confdefs.h <<\EOF
5203 { test "$extra_verbose" = "yes" && cat << \EOF
5206 cat >> confdefs.h <<\EOF
5217 test "${with_scrollbars}" != "no" && with_scrollbars=gtk
5218 test "${with_toolbars}" != no && with_toolbars=gtk
5219 test "${with_menubars}" != "no" && with_menubars=gtk
5220 test "${with_dialogs}" != "no" && with_dialogs=gtk
5221 test "${with_widgets}" != "no" && with_widgets=gtk
5223 extra_objs="$extra_objs console-gtk.o device-gtk.o event-gtk.o frame-gtk.o" && if test "$extra_verbose" = "yes"; then
5224 echo " xemacs will be linked with \"console-gtk.o device-gtk.o event-gtk.o frame-gtk.o\""
5226 extra_objs="$extra_objs objects-gtk.o redisplay-gtk.o glyphs-gtk.o" && if test "$extra_verbose" = "yes"; then
5227 echo " xemacs will be linked with \"objects-gtk.o redisplay-gtk.o glyphs-gtk.o\""
5229 extra_objs="$extra_objs select-gtk.o gccache-gtk.o" && if test "$extra_verbose" = "yes"; then
5230 echo " xemacs will be linked with \"select-gtk.o gccache-gtk.o\""
5232 extra_objs="$extra_objs gtk-xemacs.o ui-gtk.o" && if test "$extra_verbose" = "yes"; then
5233 echo " xemacs will be linked with \"gtk-xemacs.o ui-gtk.o\""
5236 OLD_CFLAGS="${CFLAGS}"
5237 OLD_LDFLAGS="${LDFLAGS}"
5238 CFLAGS="${GTK_CFLAGS} ${CFLAGS}"
5239 LDFLAGS="${LDFLAGS} ${GTK_LIBS}"
5240 for ac_hdr in glade/glade.h glade.h
5242 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5243 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5244 echo "configure:5245: checking for $ac_hdr" >&5
5246 cat > conftest.$ac_ext <<EOF
5247 #line 5248 "configure"
5248 #include "confdefs.h"
5251 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5252 { (eval echo configure:5253: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5253 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5254 if test -z "$ac_err"; then
5256 eval "ac_cv_header_$ac_safe=yes"
5259 echo "configure: failed program was:" >&5
5260 cat conftest.$ac_ext >&5
5262 eval "ac_cv_header_$ac_safe=no"
5265 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5266 echo "$ac_t""yes" 1>&6
5267 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5268 { test "$extra_verbose" = "yes" && cat << EOF
5271 cat >> confdefs.h <<EOF
5272 #define $ac_tr_hdr 1
5277 echo "$ac_t""no" 1>&6
5282 echo $ac_n "checking for main in -lxml""... $ac_c" 1>&6
5283 echo "configure:5284: checking for main in -lxml" >&5
5284 ac_lib_var=`echo xml'_'main | sed 'y%./+-%__p_%'`
5286 xe_check_libs=" -lxml "
5287 cat > conftest.$ac_ext <<EOF
5288 #line 5289 "configure"
5289 #include "confdefs.h"
5295 if { (eval echo configure:5296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5297 eval "ac_cv_lib_$ac_lib_var=yes"
5299 echo "configure: failed program was:" >&5
5300 cat conftest.$ac_ext >&5
5302 eval "ac_cv_lib_$ac_lib_var=no"
5307 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5308 echo "$ac_t""yes" 1>&6
5309 libs_gtk="-lxml $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lxml\" to \$libs_gtk"; fi
5311 echo "$ac_t""no" 1>&6
5316 echo $ac_n "checking for main in -lglade""... $ac_c" 1>&6
5317 echo "configure:5318: checking for main in -lglade" >&5
5318 ac_lib_var=`echo glade'_'main | sed 'y%./+-%__p_%'`
5320 xe_check_libs=" -lglade "
5321 cat > conftest.$ac_ext <<EOF
5322 #line 5323 "configure"
5323 #include "confdefs.h"
5329 if { (eval echo configure:5330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5331 eval "ac_cv_lib_$ac_lib_var=yes"
5333 echo "configure: failed program was:" >&5
5334 cat conftest.$ac_ext >&5
5336 eval "ac_cv_lib_$ac_lib_var=no"
5341 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5342 echo "$ac_t""yes" 1>&6
5343 libs_gtk="-lglade $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lglade\" to \$libs_gtk"; fi
5345 echo "$ac_t""no" 1>&6
5350 echo $ac_n "checking for main in -lglade-gnome""... $ac_c" 1>&6
5351 echo "configure:5352: checking for main in -lglade-gnome" >&5
5352 ac_lib_var=`echo glade-gnome'_'main | sed 'y%./+-%__p_%'`
5354 xe_check_libs=" -lglade-gnome "
5355 cat > conftest.$ac_ext <<EOF
5356 #line 5357 "configure"
5357 #include "confdefs.h"
5363 if { (eval echo configure:5364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5365 eval "ac_cv_lib_$ac_lib_var=yes"
5367 echo "configure: failed program was:" >&5
5368 cat conftest.$ac_ext >&5
5370 eval "ac_cv_lib_$ac_lib_var=no"
5375 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5376 echo "$ac_t""yes" 1>&6
5377 libs_gtk="-lglade-gnome $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lglade-gnome\" to \$libs_gtk"; fi
5379 echo "$ac_t""no" 1>&6
5383 cat > conftest.$ac_ext <<EOF
5384 #line 5385 "configure"
5385 #include "confdefs.h"
5386 #include <glade/glade-xml.h>
5388 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5389 egrep "char \*txtdomain;" >/dev/null 2>&1; then
5391 echo "$ac_t""yes" 1>&6
5392 { test "$extra_verbose" = "yes" && cat << \EOF
5393 Defining LIBGLADE_XML_TXTDOMAIN = 1
5395 cat >> confdefs.h <<\EOF
5396 #define LIBGLADE_XML_TXTDOMAIN 1
5402 echo "$ac_t""no" 1>&6
5406 CFLAGS="${OLD_CFLAGS}"
5407 LDFLAGS="${OLD_LDFLAGS}"
5411 if test "$with_x11" != "no"; then
5412 test "$x_includes $x_libraries" != "NONE NONE" && \
5413 window_system=x11 with_x11=yes
5416 if test "$x_includes $x_libraries" = "NONE NONE" \
5417 -a -n "$OPENWINHOME" \
5418 -a "$OPENWINHOME" != "/usr/openwin" \
5419 -a -d "$OPENWINHOME"; then
5420 test -d "$OPENWINHOME/lib" && x_libraries="$OPENWINHOME/lib"
5421 test -d "$OPENWINHOME/include" && x_includes="$OPENWINHOME/include"
5422 test -d "$OPENWINHOME/share/include" && x_includes="$OPENWINHOME/share/include"
5425 if test "$x_includes" = "NONE"; then
5426 for dir in "/usr/X11" "/usr/X11R6"; do
5427 if test -d "$dir/include/X11"; then x_includes="$dir/include"; break; fi
5431 if test "$x_libraries" = "NONE"; then
5432 for dir in "/usr/X11/lib" "/usr/X11R6/lib" "/usr/lib/X11R6"; do
5433 if test -r "$dir/libX11.a"; then x_libraries="$dir"; break; fi
5437 # If we find X, set shell vars x_includes and x_libraries to the
5438 # paths, otherwise set no_x=yes.
5439 # Uses ac_ vars as temps to allow command line to override cache and checks.
5440 # --without-x overrides everything else, but does not touch the cache.
5441 echo $ac_n "checking for X""... $ac_c" 1>&6
5442 echo "configure:5443: checking for X" >&5
5444 # Check whether --with-x or --without-x was given.
5445 if test "${with_x+set}" = set; then
5450 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5451 if test "x$with_x" = xno; then
5452 # The user explicitly disabled X.
5455 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
5456 # Both variables are already set.
5460 # One or both of the vars are not set, and there is no cached value.
5461 ac_x_includes=NO ac_x_libraries=NO
5463 if mkdir conftestdir; then
5465 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5466 cat > Imakefile <<'EOF'
5468 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5470 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5471 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5472 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5473 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5474 for ac_extension in a so sl; do
5475 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
5476 test -f $ac_im_libdir/libX11.$ac_extension; then
5477 ac_im_usrlibdir=$ac_im_libdir; break
5480 # Screen out bogus values from the imake configuration. They are
5481 # bogus both because they are the default anyway, and because
5482 # using them would break gcc on systems where it needs fixed includes.
5483 case "$ac_im_incroot" in
5485 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
5487 case "$ac_im_usrlibdir" in
5489 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
5496 if test "$ac_x_includes" = NO; then
5497 # Guess where to find include files, by looking for this one X11 .h file.
5498 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
5500 # First, try using that file with no special directory specified.
5501 cat > conftest.$ac_ext <<EOF
5502 #line 5503 "configure"
5503 #include "confdefs.h"
5504 #include <$x_direct_test_include>
5506 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5507 { (eval echo configure:5508: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5508 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5509 if test -z "$ac_err"; then
5511 # We can compile using X headers with no special include directory.
5515 echo "configure: failed program was:" >&5
5516 cat conftest.$ac_ext >&5
5518 # Look for the header file in a standard set of common directories.
5519 # Check X11 before X11Rn because it is often a symlink to the current release.
5522 /usr/X11R6/include \
5523 /usr/X11R5/include \
5524 /usr/X11R4/include \
5527 /usr/include/X11R6 \
5528 /usr/include/X11R5 \
5529 /usr/include/X11R4 \
5531 /usr/local/X11/include \
5532 /usr/local/X11R6/include \
5533 /usr/local/X11R5/include \
5534 /usr/local/X11R4/include \
5536 /usr/local/include/X11 \
5537 /usr/local/include/X11R6 \
5538 /usr/local/include/X11R5 \
5539 /usr/local/include/X11R4 \
5543 /usr/XFree86/include/X11 \
5546 /usr/local/include \
5547 /usr/unsupported/include \
5548 /usr/athena/include \
5549 /usr/local/x11r5/include \
5550 /usr/lpp/Xamples/include \
5552 /usr/openwin/include \
5553 /usr/openwin/share/include \
5556 if test -r "$ac_dir/$x_direct_test_include"; then
5557 ac_x_includes=$ac_dir
5563 fi # $ac_x_includes = NO
5565 if test "$ac_x_libraries" = NO; then
5566 # Check for the libraries.
5568 test -z "$x_direct_test_library" && x_direct_test_library=Xt
5569 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
5571 # See if we find them without any special options.
5572 # Don't add to $LIBS permanently.
5573 ac_save_LIBS="$LIBS"
5574 LIBS="-l$x_direct_test_library $LIBS"
5575 cat > conftest.$ac_ext <<EOF
5576 #line 5577 "configure"
5577 #include "confdefs.h"
5580 ${x_direct_test_function}()
5583 if { (eval echo configure:5584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5585 LIBS="$ac_save_LIBS"
5586 # We can link X programs with no special library path.
5589 echo "configure: failed program was:" >&5
5590 cat conftest.$ac_ext >&5
5592 LIBS="$ac_save_LIBS"
5593 # First see if replacing the include by lib works.
5594 # Check X11 before X11Rn because it is often a symlink to the current release.
5595 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
5606 /usr/local/X11/lib \
5607 /usr/local/X11R6/lib \
5608 /usr/local/X11R5/lib \
5609 /usr/local/X11R4/lib \
5611 /usr/local/lib/X11 \
5612 /usr/local/lib/X11R6 \
5613 /usr/local/lib/X11R5 \
5614 /usr/local/lib/X11R4 \
5618 /usr/XFree86/lib/X11 \
5622 /usr/unsupported/lib \
5624 /usr/local/x11r5/lib \
5625 /usr/lpp/Xamples/lib \
5629 /usr/openwin/share/lib \
5632 for ac_extension in a so sl; do
5633 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
5634 ac_x_libraries=$ac_dir
5641 fi # $ac_x_libraries = NO
5643 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
5644 # Didn't find X anywhere. Cache the known absence of X.
5645 ac_cv_have_x="have_x=no"
5647 # Record where we found X for the cache.
5648 ac_cv_have_x="have_x=yes \
5649 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5652 eval "$ac_cv_have_x"
5655 if test "$have_x" != yes; then
5656 echo "$ac_t""$have_x" 1>&6
5659 # If each of the values was on the command line, it overrides each guess.
5660 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5661 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5662 # Update the cache value to reflect the command line values.
5663 ac_cv_have_x="have_x=yes \
5664 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5665 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
5668 if test "$no_x" = yes; then
5669 # Not all programs may use this symbol, but it does not hurt to define it.
5670 { test "$extra_verbose" = "yes" && cat << \EOF
5671 Defining X_DISPLAY_MISSING
5673 cat >> confdefs.h <<\EOF
5674 #define X_DISPLAY_MISSING 1
5678 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5680 if test -n "$x_includes"; then
5681 X_CFLAGS="$X_CFLAGS -I$x_includes"
5684 # It would also be nice to do this for all -L options, not just this one.
5685 if test -n "$x_libraries"; then
5686 X_LIBS="$X_LIBS -L$x_libraries"
5687 # For Solaris; some versions of Sun CC require a space after -R and
5688 # others require no space. Words are not sufficient . . . .
5689 case "`(uname -sr) 2>/dev/null`" in
5691 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
5692 echo "configure:5693: checking whether -R must be followed by a space" >&5
5693 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
5694 cat > conftest.$ac_ext <<EOF
5695 #line 5696 "configure"
5696 #include "confdefs.h"
5702 if { (eval echo configure:5703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5706 echo "configure: failed program was:" >&5
5707 cat conftest.$ac_ext >&5
5712 if test $ac_R_nospace = yes; then
5713 echo "$ac_t""no" 1>&6
5714 X_LIBS="$X_LIBS -R$x_libraries"
5716 LIBS="$ac_xsave_LIBS -R $x_libraries"
5717 cat > conftest.$ac_ext <<EOF
5718 #line 5719 "configure"
5719 #include "confdefs.h"
5725 if { (eval echo configure:5726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5729 echo "configure: failed program was:" >&5
5730 cat conftest.$ac_ext >&5
5735 if test $ac_R_space = yes; then
5736 echo "$ac_t""yes" 1>&6
5737 X_LIBS="$X_LIBS -R $x_libraries"
5739 echo "$ac_t""neither works" 1>&6
5742 LIBS="$ac_xsave_LIBS"
5746 # Check for system-dependent libraries X programs must link with.
5747 # Do this before checking for the system-independent R6 libraries
5748 # (-lICE), since we may need -lsocket or whatever for X linking.
5750 if test "$ISC" = yes; then
5751 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5753 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
5754 # libraries were built with DECnet support. And karl@cs.umb.edu says
5755 # the Alpha needs dnet_stub (dnet does not exist).
5756 if test "$with_dnet" = "no" ; then
5757 ac_cv_lib_dnet_dnet_ntoa=no
5760 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
5761 echo "configure:5762: checking for dnet_ntoa in -ldnet" >&5
5762 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5764 xe_check_libs=" -ldnet "
5765 cat > conftest.$ac_ext <<EOF
5766 #line 5767 "configure"
5767 #include "confdefs.h"
5768 /* Override any gcc2 internal prototype to avoid an error. */
5769 /* We use char because int might match the return type of a gcc2
5770 builtin and then its argument prototype would still apply. */
5777 if { (eval echo configure:5778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5779 eval "ac_cv_lib_$ac_lib_var=yes"
5781 echo "configure: failed program was:" >&5
5782 cat conftest.$ac_ext >&5
5784 eval "ac_cv_lib_$ac_lib_var=no"
5789 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5790 echo "$ac_t""yes" 1>&6
5791 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5793 echo "$ac_t""no" 1>&6
5798 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5800 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
5801 echo "configure:5802: checking for dnet_ntoa in -ldnet_stub" >&5
5802 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5804 xe_check_libs=" -ldnet_stub "
5805 cat > conftest.$ac_ext <<EOF
5806 #line 5807 "configure"
5807 #include "confdefs.h"
5808 /* Override any gcc2 internal prototype to avoid an error. */
5809 /* We use char because int might match the return type of a gcc2
5810 builtin and then its argument prototype would still apply. */
5817 if { (eval echo configure:5818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5819 eval "ac_cv_lib_$ac_lib_var=yes"
5821 echo "configure: failed program was:" >&5
5822 cat conftest.$ac_ext >&5
5824 eval "ac_cv_lib_$ac_lib_var=no"
5829 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5830 echo "$ac_t""yes" 1>&6
5831 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5833 echo "$ac_t""no" 1>&6
5839 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5840 # to get the SysV transport functions.
5841 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
5843 # The nsl library prevents programs from opening the X display
5844 # on Irix 5.2, according to dickey@clark.net.
5845 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
5846 echo "configure:5847: checking for gethostbyname" >&5
5848 cat > conftest.$ac_ext <<EOF
5849 #line 5850 "configure"
5850 #include "confdefs.h"
5851 /* System header to define __stub macros and hopefully few prototypes,
5852 which can conflict with char gethostbyname(); below. */
5854 /* Override any gcc2 internal prototype to avoid an error. */
5855 /* We use char because int might match the return type of a gcc2
5856 builtin and then its argument prototype would still apply. */
5857 char gethostbyname();
5861 /* The GNU C library defines this for functions which it implements
5862 to always fail with ENOSYS. Some functions are actually named
5863 something starting with __ and the normal name is an alias. */
5864 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5872 if { (eval echo configure:5873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5874 eval "ac_cv_func_gethostbyname=yes"
5876 echo "configure: failed program was:" >&5
5877 cat conftest.$ac_ext >&5
5879 eval "ac_cv_func_gethostbyname=no"
5883 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
5884 echo "$ac_t""yes" 1>&6
5887 echo "$ac_t""no" 1>&6
5890 if test $ac_cv_func_gethostbyname = no; then
5892 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
5893 echo "configure:5894: checking for gethostbyname in -lnsl" >&5
5894 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
5896 xe_check_libs=" -lnsl "
5897 cat > conftest.$ac_ext <<EOF
5898 #line 5899 "configure"
5899 #include "confdefs.h"
5900 /* Override any gcc2 internal prototype to avoid an error. */
5901 /* We use char because int might match the return type of a gcc2
5902 builtin and then its argument prototype would still apply. */
5903 char gethostbyname();
5909 if { (eval echo configure:5910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5911 eval "ac_cv_lib_$ac_lib_var=yes"
5913 echo "configure: failed program was:" >&5
5914 cat conftest.$ac_ext >&5
5916 eval "ac_cv_lib_$ac_lib_var=no"
5921 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5922 echo "$ac_t""yes" 1>&6
5923 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5925 echo "$ac_t""no" 1>&6
5931 # lieder@skyler.mavd.honeywell.com says without -lsocket,
5932 # socket/setsockopt and other routines are undefined under SCO ODT
5933 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5934 # on later versions), says simon@lia.di.epfl.ch: it contains
5935 # gethostby* variants that don't use the nameserver (or something).
5936 # -lsocket must be given before -lnsl if both are needed.
5937 # We assume that if connect needs -lnsl, so does gethostbyname.
5938 echo $ac_n "checking for connect""... $ac_c" 1>&6
5939 echo "configure:5940: checking for connect" >&5
5941 cat > conftest.$ac_ext <<EOF
5942 #line 5943 "configure"
5943 #include "confdefs.h"
5944 /* System header to define __stub macros and hopefully few prototypes,
5945 which can conflict with char connect(); below. */
5947 /* Override any gcc2 internal prototype to avoid an error. */
5948 /* We use char because int might match the return type of a gcc2
5949 builtin and then its argument prototype would still apply. */
5954 /* The GNU C library defines this for functions which it implements
5955 to always fail with ENOSYS. Some functions are actually named
5956 something starting with __ and the normal name is an alias. */
5957 #if defined (__stub_connect) || defined (__stub___connect)
5965 if { (eval echo configure:5966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5967 eval "ac_cv_func_connect=yes"
5969 echo "configure: failed program was:" >&5
5970 cat conftest.$ac_ext >&5
5972 eval "ac_cv_func_connect=no"
5976 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
5977 echo "$ac_t""yes" 1>&6
5980 echo "$ac_t""no" 1>&6
5983 if test $ac_cv_func_connect = no; then
5985 xe_msg_checking="for connect in -lsocket"
5986 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
5987 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5988 echo "configure:5989: checking "$xe_msg_checking"" >&5
5989 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
5991 xe_check_libs=" -lsocket $X_EXTRA_LIBS"
5992 cat > conftest.$ac_ext <<EOF
5993 #line 5994 "configure"
5994 #include "confdefs.h"
5995 /* Override any gcc2 internal prototype to avoid an error. */
5996 /* We use char because int might match the return type of a gcc2
5997 builtin and then its argument prototype would still apply. */
6004 if { (eval echo configure:6005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6006 eval "ac_cv_lib_$ac_lib_var=yes"
6008 echo "configure: failed program was:" >&5
6009 cat conftest.$ac_ext >&5
6011 eval "ac_cv_lib_$ac_lib_var=no"
6016 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6017 echo "$ac_t""yes" 1>&6
6018 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6020 echo "$ac_t""no" 1>&6
6026 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
6027 echo $ac_n "checking for remove""... $ac_c" 1>&6
6028 echo "configure:6029: checking for remove" >&5
6030 cat > conftest.$ac_ext <<EOF
6031 #line 6032 "configure"
6032 #include "confdefs.h"
6033 /* System header to define __stub macros and hopefully few prototypes,
6034 which can conflict with char remove(); below. */
6036 /* Override any gcc2 internal prototype to avoid an error. */
6037 /* We use char because int might match the return type of a gcc2
6038 builtin and then its argument prototype would still apply. */
6043 /* The GNU C library defines this for functions which it implements
6044 to always fail with ENOSYS. Some functions are actually named
6045 something starting with __ and the normal name is an alias. */
6046 #if defined (__stub_remove) || defined (__stub___remove)
6054 if { (eval echo configure:6055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6056 eval "ac_cv_func_remove=yes"
6058 echo "configure: failed program was:" >&5
6059 cat conftest.$ac_ext >&5
6061 eval "ac_cv_func_remove=no"
6065 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
6066 echo "$ac_t""yes" 1>&6
6069 echo "$ac_t""no" 1>&6
6072 if test $ac_cv_func_remove = no; then
6074 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
6075 echo "configure:6076: checking for remove in -lposix" >&5
6076 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
6078 xe_check_libs=" -lposix "
6079 cat > conftest.$ac_ext <<EOF
6080 #line 6081 "configure"
6081 #include "confdefs.h"
6082 /* Override any gcc2 internal prototype to avoid an error. */
6083 /* We use char because int might match the return type of a gcc2
6084 builtin and then its argument prototype would still apply. */
6091 if { (eval echo configure:6092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6093 eval "ac_cv_lib_$ac_lib_var=yes"
6095 echo "configure: failed program was:" >&5
6096 cat conftest.$ac_ext >&5
6098 eval "ac_cv_lib_$ac_lib_var=no"
6103 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6104 echo "$ac_t""yes" 1>&6
6105 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6107 echo "$ac_t""no" 1>&6
6113 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6114 echo $ac_n "checking for shmat""... $ac_c" 1>&6
6115 echo "configure:6116: checking for shmat" >&5
6117 cat > conftest.$ac_ext <<EOF
6118 #line 6119 "configure"
6119 #include "confdefs.h"
6120 /* System header to define __stub macros and hopefully few prototypes,
6121 which can conflict with char shmat(); below. */
6123 /* Override any gcc2 internal prototype to avoid an error. */
6124 /* We use char because int might match the return type of a gcc2
6125 builtin and then its argument prototype would still apply. */
6130 /* The GNU C library defines this for functions which it implements
6131 to always fail with ENOSYS. Some functions are actually named
6132 something starting with __ and the normal name is an alias. */
6133 #if defined (__stub_shmat) || defined (__stub___shmat)
6141 if { (eval echo configure:6142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6143 eval "ac_cv_func_shmat=yes"
6145 echo "configure: failed program was:" >&5
6146 cat conftest.$ac_ext >&5
6148 eval "ac_cv_func_shmat=no"
6152 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
6153 echo "$ac_t""yes" 1>&6
6156 echo "$ac_t""no" 1>&6
6159 if test $ac_cv_func_shmat = no; then
6161 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
6162 echo "configure:6163: checking for shmat in -lipc" >&5
6163 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
6165 xe_check_libs=" -lipc "
6166 cat > conftest.$ac_ext <<EOF
6167 #line 6168 "configure"
6168 #include "confdefs.h"
6169 /* Override any gcc2 internal prototype to avoid an error. */
6170 /* We use char because int might match the return type of a gcc2
6171 builtin and then its argument prototype would still apply. */
6178 if { (eval echo configure:6179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6180 eval "ac_cv_lib_$ac_lib_var=yes"
6182 echo "configure: failed program was:" >&5
6183 cat conftest.$ac_ext >&5
6185 eval "ac_cv_lib_$ac_lib_var=no"
6190 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6191 echo "$ac_t""yes" 1>&6
6192 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6194 echo "$ac_t""no" 1>&6
6201 # Check for libraries that X11R6 Xt/Xaw programs need.
6202 ac_save_LDFLAGS="$LDFLAGS"
6203 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6204 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6205 # check for ICE first), but we must link in the order -lSM -lICE or
6206 # we get undefined symbols. So assume we have SM if we have ICE.
6207 # These have to be linked with before -lX11, unlike the other
6208 # libraries we check for below, so use a different variable.
6209 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
6211 xe_msg_checking="for IceConnectionNumber in -lICE"
6212 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
6213 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6214 echo "configure:6215: checking "$xe_msg_checking"" >&5
6215 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
6217 xe_check_libs=" -lICE $X_EXTRA_LIBS"
6218 cat > conftest.$ac_ext <<EOF
6219 #line 6220 "configure"
6220 #include "confdefs.h"
6221 /* Override any gcc2 internal prototype to avoid an error. */
6222 /* We use char because int might match the return type of a gcc2
6223 builtin and then its argument prototype would still apply. */
6224 char IceConnectionNumber();
6227 IceConnectionNumber()
6230 if { (eval echo configure:6231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6232 eval "ac_cv_lib_$ac_lib_var=yes"
6234 echo "configure: failed program was:" >&5
6235 cat conftest.$ac_ext >&5
6237 eval "ac_cv_lib_$ac_lib_var=no"
6242 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6243 echo "$ac_t""yes" 1>&6
6244 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6246 echo "$ac_t""no" 1>&6
6250 LDFLAGS="$ac_save_LDFLAGS"
6253 # Autoconf claims to find X library and include dirs for us.
6254 if test "$no_x" = "yes"
6255 then with_x11=no window_system=none HAVE_X_WINDOWS=no
6256 else with_x11=yes window_system=x11 HAVE_X_WINDOWS=yes
6261 if test "$with_x11" = "yes"; then
6262 { test "$extra_verbose" = "yes" && cat << \EOF
6263 Defining HAVE_X_WINDOWS
6265 cat >> confdefs.h <<\EOF
6266 #define HAVE_X_WINDOWS 1
6270 MAKE_SUBDIR="$MAKE_SUBDIR lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$MAKE_SUBDIR"; fi
6271 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$SRC_SUBDIR_DEPS"; fi
6273 for lib_dir in "/usr/dt/lib" "/usr/lib/Motif2.1" "/usr/lib/Motif1.2" "/usr/lib/Motif1.1"; do
6274 inc_dir=`echo $lib_dir | sed -e 's/lib/include/'`
6275 if test -d "$lib_dir" -a -d "$inc_dir"; then
6276 case "$x_libraries" in *"$lib_dir"* ) ;; *)
6277 x_libraries="$lib_dir $x_libraries"
6278 X_LIBS="-L${lib_dir} $X_LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-L${lib_dir}\" to \$X_LIBS"; fi ;;
6280 case "$x_includes" in "$inc_dir"* ) ;; *)
6281 x_includes="$inc_dir $x_includes"
6282 X_CFLAGS="-I${inc_dir} $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-I${inc_dir}\" to \$X_CFLAGS"; fi ;;
6287 for rel in "X11R6" "X11R5" "X11R4"; do
6288 lib_dir="/usr/contrib/$rel/lib" inc_dir="/usr/contrib/$rel/include"
6289 if test -d "$lib_dir" -a -d "$inc_dir"; then
6290 case "$x_libraries" in *"$lib_dir"* ) ;; *)
6291 x_libraries="$x_libraries $lib_dir"
6292 X_LIBS="$X_LIBS -L${lib_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L${lib_dir}\" to \$X_LIBS"; fi
6294 case "$x_includes" in "$inc_dir"* ) ;; *)
6295 x_includes="$x_includes $inc_dir"
6296 X_CFLAGS="$X_CFLAGS -I${inc_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-I${inc_dir}\" to \$X_CFLAGS"; fi
6302 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 ;;
6305 ld_switch_x_site="$X_LIBS"
6308 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
6309 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
6310 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
6312 runpath="" runpath_dirs=""
6313 if test -n "$LD_RUN_PATH"; then
6314 runpath="$LD_RUN_PATH"
6315 elif test "$GCC" = "yes"; then
6316 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
6317 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
6318 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
6319 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
6320 case "$arg" in P,* | -L* | -R* )
6321 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
6323 xe_runpath_dir="$dir"
6324 test "$xe_runpath_dir" != "/lib" -a \
6325 "$xe_runpath_dir" != "/usr/lib" -a \
6326 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
6327 eval "$xe_add_unique_runpath_dir"
6332 ld_switch_run="$ld_switch_run_save"
6335 for arg in $ld_switch_site $ld_switch_x_site; do
6336 case "$arg" in -L*) {
6337 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
6338 test "$xe_runpath_dir" != "/lib" -a \
6339 "$xe_runpath_dir" != "/usr/lib" -a \
6340 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
6341 eval "$xe_add_unique_runpath_dir"
6344 if test "$opsys $need_motif" = "sol2 yes"; then
6345 xe_runpath_dir="/opt/SUNWdt/lib";
6346 eval "$xe_add_unique_runpath_dir";
6349 if test -n "$runpath"; then
6350 ld_switch_run="${dash_r}${runpath}"
6352 if test "$GCC" = "yes"; then
6353 set x $ld_switch_run; shift; ld_switch_run=""
6354 while test -n "$1"; do
6356 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
6357 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
6359 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
6364 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
6369 if test "$extra_verbose" = "yes"; then
6370 echo; echo "X11 compilation variables:"
6371 for var in x_libraries x_includes X_CFLAGS X_LIBS X_PRE_LIBS X_EXTRA_LIBS; do eval "echo \"$var = '\$$var'\""; done
6376 if test "$x_includes" != NONE; then
6377 for i in $x_includes; do
6378 if test -d "$i/bitmaps"; then
6379 bitmapdirs="$i/bitmaps:$bitmapdirs"
6381 if test -d "$i/X11/bitmaps"; then
6382 bitmapdirs="$i/X11/bitmaps:$bitmapdirs"
6385 bitmapdirs=`echo "$bitmapdirs" | sed s/.$//`
6387 test ! -z "$bitmapdirs" && { test "$extra_verbose" = "yes" && cat << EOF
6388 Defining BITMAPDIR = "$bitmapdirs"
6390 cat >> confdefs.h <<EOF
6391 #define BITMAPDIR "$bitmapdirs"
6396 echo "checking for X defines extracted by xmkmf" 1>&6
6397 echo "configure:6398: checking for X defines extracted by xmkmf" >&5
6399 if mkdir conftestdir; then
6401 cat > Imakefile <<'EOF'
6403 @echo ${PROTO_DEFINES} ${STD_DEFINES}
6405 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6406 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6407 xmkmf_defines=`${MAKE-make} xetest 2>/dev/null | grep -v make`
6411 for word in $xmkmf_defines; do
6412 case "$word" in -D* )
6413 sym=`echo '' $word | sed -e 's:^ *-D::' -e 's:=.*::'`
6415 -D*=* ) val=`echo '' $word | sed -e 's:^.*=::'` ;;
6418 if grep "^#define $sym " confdefs.h >/dev/null; then :; else
6419 if test "$val" = "1"
6420 then { test "$extra_verbose" = "yes" && cat << EOF
6423 cat >> confdefs.h <<EOF
6428 else { test "$extra_verbose" = "yes" && cat << EOF
6429 Defining $sym = $val
6431 cat >> confdefs.h <<EOF
6442 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
6443 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
6444 echo "configure:6445: checking for X11/Intrinsic.h" >&5
6446 cat > conftest.$ac_ext <<EOF
6447 #line 6448 "configure"
6448 #include "confdefs.h"
6449 #include <X11/Intrinsic.h>
6451 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6452 { (eval echo configure:6453: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6453 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6454 if test -z "$ac_err"; then
6456 eval "ac_cv_header_$ac_safe=yes"
6459 echo "configure: failed program was:" >&5
6460 cat conftest.$ac_ext >&5
6462 eval "ac_cv_header_$ac_safe=no"
6465 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6466 echo "$ac_t""yes" 1>&6
6469 echo "$ac_t""no" 1>&6
6470 { echo "configure: error: "Unable to find X11 header files."" 1>&2; exit 1; }
6475 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
6476 echo "configure:6477: checking for XOpenDisplay in -lX11" >&5
6477 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
6479 xe_check_libs=" -lX11 "
6480 cat > conftest.$ac_ext <<EOF
6481 #line 6482 "configure"
6482 #include "confdefs.h"
6483 /* Override any gcc2 internal prototype to avoid an error. */
6484 /* We use char because int might match the return type of a gcc2
6485 builtin and then its argument prototype would still apply. */
6486 char XOpenDisplay();
6492 if { (eval echo configure:6493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6494 eval "ac_cv_lib_$ac_lib_var=yes"
6496 echo "configure: failed program was:" >&5
6497 cat conftest.$ac_ext >&5
6499 eval "ac_cv_lib_$ac_lib_var=no"
6504 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6505 echo "$ac_t""yes" 1>&6
6508 echo "$ac_t""no" 1>&6
6512 if test "$have_lib_x11" != "yes"; then
6514 xe_msg_checking="for XGetFontProperty in -lX11"
6515 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout"
6516 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6517 echo "configure:6518: checking "$xe_msg_checking"" >&5
6518 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
6520 xe_check_libs=" -lX11 -b i486-linuxaout"
6521 cat > conftest.$ac_ext <<EOF
6522 #line 6523 "configure"
6523 #include "confdefs.h"
6524 /* Override any gcc2 internal prototype to avoid an error. */
6525 /* We use char because int might match the return type of a gcc2
6526 builtin and then its argument prototype would still apply. */
6527 char XGetFontProperty();
6533 if { (eval echo configure:6534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6535 eval "ac_cv_lib_$ac_lib_var=yes"
6537 echo "configure: failed program was:" >&5
6538 cat conftest.$ac_ext >&5
6540 eval "ac_cv_lib_$ac_lib_var=no"
6545 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6546 echo "$ac_t""yes" 1>&6
6547 ld_switch_x_site="-b i486-linuxaout $ld_switch_x_site"
6549 echo "$ac_t""no" 1>&6
6550 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
6556 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
6559 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
6560 echo "configure:6561: checking for XShapeSelectInput in -lXext" >&5
6561 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
6563 xe_check_libs=" -lXext "
6564 cat > conftest.$ac_ext <<EOF
6565 #line 6566 "configure"
6566 #include "confdefs.h"
6567 /* Override any gcc2 internal prototype to avoid an error. */
6568 /* We use char because int might match the return type of a gcc2
6569 builtin and then its argument prototype would still apply. */
6570 char XShapeSelectInput();
6576 if { (eval echo configure:6577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6578 eval "ac_cv_lib_$ac_lib_var=yes"
6580 echo "configure: failed program was:" >&5
6581 cat conftest.$ac_ext >&5
6583 eval "ac_cv_lib_$ac_lib_var=no"
6588 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6589 echo "$ac_t""yes" 1>&6
6590 libs_x="-lXext $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXext\" to \$libs_x"; fi
6592 echo "$ac_t""no" 1>&6
6598 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6
6599 echo "configure:6600: checking for XtOpenDisplay in -lXt" >&5
6600 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
6602 xe_check_libs=" -lXt "
6603 cat > conftest.$ac_ext <<EOF
6604 #line 6605 "configure"
6605 #include "confdefs.h"
6606 /* Override any gcc2 internal prototype to avoid an error. */
6607 /* We use char because int might match the return type of a gcc2
6608 builtin and then its argument prototype would still apply. */
6609 char XtOpenDisplay();
6615 if { (eval echo configure:6616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6617 eval "ac_cv_lib_$ac_lib_var=yes"
6619 echo "configure: failed program was:" >&5
6620 cat conftest.$ac_ext >&5
6622 eval "ac_cv_lib_$ac_lib_var=no"
6627 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6628 echo "$ac_t""yes" 1>&6
6629 libs_x="-lXt $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXt\" to \$libs_x"; fi
6631 echo "$ac_t""no" 1>&6
6632 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
6637 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6
6638 echo "configure:6639: checking the version of X11 being used" >&5
6639 cat > conftest.$ac_ext <<EOF
6640 #line 6641 "configure"
6641 #include "confdefs.h"
6642 #include <X11/Intrinsic.h>
6643 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; }
6645 if { (eval echo configure:6646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6647 ./conftest foobar; x11_release=$?
6650 echo "configure: failed program was:" >&5
6651 cat conftest.$ac_ext >&5
6656 echo "$ac_t""R${x11_release}" 1>&6
6657 { test "$extra_verbose" = "yes" && cat << EOF
6658 Defining THIS_IS_X11R${x11_release}
6660 cat >> confdefs.h <<EOF
6661 #define THIS_IS_X11R${x11_release} 1
6666 if test "${x11_release}" = "4"; then
6667 case "$with_widgets" in
6668 "" | "no") with_widgets=no ;;
6669 *) { echo "Error:" "Widget support requires X11R5 or greater" >&2; exit 1; } ;;
6673 for ac_func in XConvertCase
6675 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6676 echo "configure:6677: checking for $ac_func" >&5
6678 cat > conftest.$ac_ext <<EOF
6679 #line 6680 "configure"
6680 #include "confdefs.h"
6681 /* System header to define __stub macros and hopefully few prototypes,
6682 which can conflict with char $ac_func(); below. */
6684 /* Override any gcc2 internal prototype to avoid an error. */
6685 /* We use char because int might match the return type of a gcc2
6686 builtin and then its argument prototype would still apply. */
6691 /* The GNU C library defines this for functions which it implements
6692 to always fail with ENOSYS. Some functions are actually named
6693 something starting with __ and the normal name is an alias. */
6694 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6702 if { (eval echo configure:6703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6704 eval "ac_cv_func_$ac_func=yes"
6706 echo "configure: failed program was:" >&5
6707 cat conftest.$ac_ext >&5
6709 eval "ac_cv_func_$ac_func=no"
6713 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6714 echo "$ac_t""yes" 1>&6
6715 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6716 { test "$extra_verbose" = "yes" && cat << EOF
6717 Defining $ac_tr_func
6719 cat >> confdefs.h <<EOF
6720 #define $ac_tr_func 1
6725 echo "$ac_t""no" 1>&6
6730 for ac_hdr in X11/Xlocale.h
6732 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6733 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6734 echo "configure:6735: checking for $ac_hdr" >&5
6736 cat > conftest.$ac_ext <<EOF
6737 #line 6738 "configure"
6738 #include "confdefs.h"
6741 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6742 { (eval echo configure:6743: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6743 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6744 if test -z "$ac_err"; then
6746 eval "ac_cv_header_$ac_safe=yes"
6749 echo "configure: failed program was:" >&5
6750 cat conftest.$ac_ext >&5
6752 eval "ac_cv_header_$ac_safe=no"
6755 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6756 echo "$ac_t""yes" 1>&6
6757 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6758 { test "$extra_verbose" = "yes" && cat << EOF
6761 cat >> confdefs.h <<EOF
6762 #define $ac_tr_hdr 1
6767 echo "$ac_t""no" 1>&6
6772 for ac_func in XRegisterIMInstantiateCallback
6774 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6775 echo "configure:6776: checking for $ac_func" >&5
6777 cat > conftest.$ac_ext <<EOF
6778 #line 6779 "configure"
6779 #include "confdefs.h"
6780 /* System header to define __stub macros and hopefully few prototypes,
6781 which can conflict with char $ac_func(); below. */
6783 /* Override any gcc2 internal prototype to avoid an error. */
6784 /* We use char because int might match the return type of a gcc2
6785 builtin and then its argument prototype would still apply. */
6790 /* The GNU C library defines this for functions which it implements
6791 to always fail with ENOSYS. Some functions are actually named
6792 something starting with __ and the normal name is an alias. */
6793 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6801 if { (eval echo configure:6802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6803 eval "ac_cv_func_$ac_func=yes"
6805 echo "configure: failed program was:" >&5
6806 cat conftest.$ac_ext >&5
6808 eval "ac_cv_func_$ac_func=no"
6812 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6813 echo "$ac_t""yes" 1>&6
6814 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6815 { test "$extra_verbose" = "yes" && cat << EOF
6816 Defining $ac_tr_func
6818 cat >> confdefs.h <<EOF
6819 #define $ac_tr_func 1
6824 echo "$ac_t""no" 1>&6
6828 echo $ac_n "checking for standard XRegisterIMInstantiateCallback prototype""... $ac_c" 1>&6
6829 echo "configure:6830: checking for standard XRegisterIMInstantiateCallback prototype" >&5
6830 cat > conftest.$ac_ext <<EOF
6831 #line 6832 "configure"
6832 #include "confdefs.h"
6834 #define NeedFunctionPrototypes 1
6835 #include <X11/Xlib.h>
6836 extern Bool XRegisterIMInstantiateCallback(
6837 Display*, struct _XrmHashBucketRec*, char*, char*, XIMProc, XPointer*);
6843 if { (eval echo configure:6844: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6845 echo "$ac_t""yes" 1>&6
6847 echo "configure: failed program was:" >&5
6848 cat conftest.$ac_ext >&5
6850 echo "$ac_t""no" 1>&6
6851 { test "$extra_verbose" = "yes" && cat << \EOF
6852 Defining XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE
6854 cat >> confdefs.h <<\EOF
6855 #define XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE 1
6862 test -z "$with_xmu" && {
6863 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6
6864 echo "configure:6865: checking for XmuReadBitmapDataFromFile in -lXmu" >&5
6865 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'`
6867 xe_check_libs=" -lXmu "
6868 cat > conftest.$ac_ext <<EOF
6869 #line 6870 "configure"
6870 #include "confdefs.h"
6871 /* Override any gcc2 internal prototype to avoid an error. */
6872 /* We use char because int might match the return type of a gcc2
6873 builtin and then its argument prototype would still apply. */
6874 char XmuReadBitmapDataFromFile();
6877 XmuReadBitmapDataFromFile()
6880 if { (eval echo configure:6881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6882 eval "ac_cv_lib_$ac_lib_var=yes"
6884 echo "configure: failed program was:" >&5
6885 cat conftest.$ac_ext >&5
6887 eval "ac_cv_lib_$ac_lib_var=no"
6892 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6893 echo "$ac_t""yes" 1>&6
6896 echo "$ac_t""no" 1>&6
6901 if test "$with_xmu" = "no"; then
6902 extra_objs="$extra_objs xmu.o" && if test "$extra_verbose" = "yes"; then
6903 echo " xemacs will be linked with \"xmu.o\""
6906 libs_x="-lXmu $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXmu\" to \$libs_x"; fi
6907 { test "$extra_verbose" = "yes" && cat << \EOF
6910 cat >> confdefs.h <<\EOF
6918 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
6919 echo "configure:6920: checking for main in -lXbsd" >&5
6920 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
6922 xe_check_libs=" -lXbsd "
6923 cat > conftest.$ac_ext <<EOF
6924 #line 6925 "configure"
6925 #include "confdefs.h"
6931 if { (eval echo configure:6932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6933 eval "ac_cv_lib_$ac_lib_var=yes"
6935 echo "configure: failed program was:" >&5
6936 cat conftest.$ac_ext >&5
6938 eval "ac_cv_lib_$ac_lib_var=no"
6943 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6944 echo "$ac_t""yes" 1>&6
6945 libs_x="-lXbsd $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXbsd\" to \$libs_x"; fi
6947 echo "$ac_t""no" 1>&6
6952 if test "$unexec" = "unexaix.o" -a "$x11_release" = "6"; then
6953 if test "$GCC" = "yes"; then
6954 X_CFLAGS="-mthreads $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$X_CFLAGS"; fi
6955 libs_x="-mthreads $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$libs_x"; fi
6958 "xlc" ) CC="xlc_r" ;;
6959 "xlC" ) CC="xlC_r" ;;
6966 if test "$with_msw" != "no"; then
6967 echo "checking for MS-Windows" 1>&6
6968 echo "configure:6969: checking for MS-Windows" >&5
6970 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6
6971 echo "configure:6972: checking for main in -lgdi32" >&5
6972 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'`
6974 xe_check_libs=" -lgdi32 "
6975 cat > conftest.$ac_ext <<EOF
6976 #line 6977 "configure"
6977 #include "confdefs.h"
6983 if { (eval echo configure:6984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6985 eval "ac_cv_lib_$ac_lib_var=yes"
6987 echo "configure: failed program was:" >&5
6988 cat conftest.$ac_ext >&5
6990 eval "ac_cv_lib_$ac_lib_var=no"
6995 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6996 echo "$ac_t""yes" 1>&6
6999 echo "$ac_t""no" 1>&6
7003 if test "$with_msw" = "yes"; then
7004 { test "$extra_verbose" = "yes" && cat << \EOF
7005 Defining HAVE_MS_WINDOWS
7007 cat >> confdefs.h <<\EOF
7008 #define HAVE_MS_WINDOWS 1
7013 if test "$with_netinstall" = "yes"; then
7014 MAKE_SUBDIR="$MAKE_SUBDIR netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$MAKE_SUBDIR"; fi
7015 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$SRC_SUBDIR_DEPS"; fi
7016 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
7019 install_pp="$blddir/lib-src/installexe.sh"
7020 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
7021 test "$with_dragndrop" != no && dragndrop_proto="$dragndrop_proto msw" && if test "$extra_verbose" = "yes"; then echo " Appending \"msw\" to \$dragndrop_proto"; fi
7022 if test "$window_system" != x11; then
7024 test "$with_scrollbars" != "no" && with_scrollbars=msw \
7025 && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
7026 echo " xemacs will be linked with \"scrollbar-msw.o\""
7028 test "$with_menubars" != "no" && with_menubars=msw \
7029 && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
7030 echo " xemacs will be linked with \"menubar-msw.o\""
7032 test "$with_toolbars" != "no" && with_toolbars=msw \
7033 && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
7034 echo " xemacs will be linked with \"toolbar-msw.o\""
7036 test "$with_dialogs" != "no" && with_dialogs=msw \
7037 && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
7038 echo " xemacs will be linked with \"dialog-msw.o\""
7040 test "$with_widgets" != "no" && with_widgets=msw
7042 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
7043 echo " xemacs will be linked with \"scrollbar-msw.o\""
7045 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
7046 echo " xemacs will be linked with \"menubar-msw.o\""
7048 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
7049 echo " xemacs will be linked with \"toolbar-msw.o\""
7051 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
7052 echo " xemacs will be linked with \"dialog-msw.o\""
7055 cat > conftest.$ac_ext <<EOF
7056 #line 7057 "configure"
7057 #include "confdefs.h"
7059 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; }
7061 if { (eval echo configure:7062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
7063 { test "$extra_verbose" = "yes" && cat << \EOF
7064 Defining HAVE_MSG_SELECT
7066 cat >> confdefs.h <<\EOF
7067 #define HAVE_MSG_SELECT 1
7073 echo "configure: failed program was:" >&5
7074 cat conftest.$ac_ext >&5
7077 with_file_coding=yes
7078 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
7079 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\""
7086 test -z "$window_system" && window_system="none"
7088 if test "$window_system" = "none"; then
7089 for feature in menubars scrollbars toolbars dialogs dragndrop xface
7091 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
7092 echo "configure: warning: --with-$feature ignored: Not valid without window system support" 1>&2
7094 eval "with_${feature}=no"
7097 test -z "$with_toolbars" && with_toolbars=yes
7100 if test "$with_msw" != "yes"; then
7101 for feature in MARTIN_IS_CLUELESS_ABOUT_MSW_FEATURES
7103 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
7104 echo "configure: warning: --with-$feature ignored: Not valid without MS-Windows support" 1>&2
7106 eval "with_${feature}=no"
7112 if test "$with_x11" != "yes"; then
7113 for feature in tooltalk cde offix wmcommand xim xmu nas_sound
7115 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
7116 echo "configure: warning: --with-$feature ignored: Not valid without X support" 1>&2
7118 eval "with_${feature}=no"
7122 if test "$with_x11" = "yes"; then
7123 ac_safe=`echo "X11/extensions/shape.h" | sed 'y%./+-%__p_%'`
7124 echo $ac_n "checking for X11/extensions/shape.h""... $ac_c" 1>&6
7125 echo "configure:7126: checking for X11/extensions/shape.h" >&5
7127 cat > conftest.$ac_ext <<EOF
7128 #line 7129 "configure"
7129 #include "confdefs.h"
7130 #include <X11/extensions/shape.h>
7132 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7133 { (eval echo configure:7134: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7134 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7135 if test -z "$ac_err"; then
7137 eval "ac_cv_header_$ac_safe=yes"
7140 echo "configure: failed program was:" >&5
7141 cat conftest.$ac_ext >&5
7143 eval "ac_cv_header_$ac_safe=no"
7146 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7147 echo "$ac_t""yes" 1>&6
7149 { test "$extra_verbose" = "yes" && cat << \EOF
7150 Defining HAVE_BALLOON_HELP
7152 cat >> confdefs.h <<\EOF
7153 #define HAVE_BALLOON_HELP 1
7157 extra_objs="$extra_objs balloon_help.o balloon-x.o" && if test "$extra_verbose" = "yes"; then
7158 echo " xemacs will be linked with \"balloon_help.o balloon-x.o\""
7161 echo "$ac_t""no" 1>&6
7168 case "$window_system" in
7169 x11 ) HAVE_X_WINDOWS=yes; echo " Using X11." ;;
7170 msw ) HAVE_X_WINDOWS=no ; echo " Using MS-Windows." ;;
7173 test "$with_gnome" = "yes" && echo " Using GNOME."
7174 test "$with_gnome" = "no" && echo " Using GTK."
7176 none ) HAVE_X_WINDOWS=no ; echo " Using no window system." ;;
7179 case "$x_libraries" in *X11R4* )
7180 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h"
7181 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h"
7184 echo "checking for WM_COMMAND option" 1>&6
7185 echo "configure:7186: checking for WM_COMMAND option" >&5;
7186 if test "$with_wmcommand" != "no"; then
7187 { test "$extra_verbose" = "yes" && cat << \EOF
7188 Defining HAVE_WMCOMMAND
7190 cat >> confdefs.h <<\EOF
7191 #define HAVE_WMCOMMAND 1
7197 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
7198 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'`
7199 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
7200 echo "configure:7201: checking for X11/Xauth.h" >&5
7202 cat > conftest.$ac_ext <<EOF
7203 #line 7204 "configure"
7204 #include "confdefs.h"
7205 #include <X11/Xauth.h>
7207 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7208 { (eval echo configure:7209: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7209 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7210 if test -z "$ac_err"; then
7212 eval "ac_cv_header_$ac_safe=yes"
7215 echo "configure: failed program was:" >&5
7216 cat conftest.$ac_ext >&5
7218 eval "ac_cv_header_$ac_safe=no"
7221 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7222 echo "$ac_t""yes" 1>&6
7225 echo "$ac_t""no" 1>&6
7229 test -z "$with_xauth" && {
7230 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
7231 echo "configure:7232: checking for XauGetAuthByAddr in -lXau" >&5
7232 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
7234 xe_check_libs=" -lXau "
7235 cat > conftest.$ac_ext <<EOF
7236 #line 7237 "configure"
7237 #include "confdefs.h"
7238 /* Override any gcc2 internal prototype to avoid an error. */
7239 /* We use char because int might match the return type of a gcc2
7240 builtin and then its argument prototype would still apply. */
7241 char XauGetAuthByAddr();
7247 if { (eval echo configure:7248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7249 eval "ac_cv_lib_$ac_lib_var=yes"
7251 echo "configure: failed program was:" >&5
7252 cat conftest.$ac_ext >&5
7254 eval "ac_cv_lib_$ac_lib_var=no"
7259 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7260 echo "$ac_t""yes" 1>&6
7263 echo "$ac_t""no" 1>&6
7268 test -z "$with_xauth" && with_xauth=yes
7269 if test "$with_xauth" = "yes"; then
7270 { test "$extra_verbose" = "yes" && cat << \EOF
7273 cat >> confdefs.h <<\EOF
7274 #define HAVE_XAUTH 1
7280 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
7288 if test "$with_tooltalk" != "no" ; then
7289 for dir in "" "Tt/" "desktop/" ; do
7290 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
7291 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
7292 echo "configure:7293: checking for ${dir}tt_c.h" >&5
7294 cat > conftest.$ac_ext <<EOF
7295 #line 7296 "configure"
7296 #include "confdefs.h"
7297 #include <${dir}tt_c.h>
7299 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7300 { (eval echo configure:7301: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7301 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7302 if test -z "$ac_err"; then
7304 eval "ac_cv_header_$ac_safe=yes"
7307 echo "configure: failed program was:" >&5
7308 cat conftest.$ac_ext >&5
7310 eval "ac_cv_header_$ac_safe=no"
7313 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7314 echo "$ac_t""yes" 1>&6
7315 tt_c_h_file="${dir}tt_c.h"; break
7317 echo "$ac_t""no" 1>&6
7321 if test -z "$tt_c_h_file"; then
7322 if test "$with_tooltalk" = "yes"; then
7323 (echo "$progname: Usage error:"
7324 echo " " "Unable to find required tooltalk header files."
7325 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
7330 if test "$with_tooltalk" != "no" ; then
7331 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
7333 xe_msg_checking="for tt_message_create in -ltt"
7334 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
7335 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7336 echo "configure:7337: checking "$xe_msg_checking"" >&5
7337 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
7339 xe_check_libs=" -ltt $extra_libs"
7340 cat > conftest.$ac_ext <<EOF
7341 #line 7342 "configure"
7342 #include "confdefs.h"
7343 /* Override any gcc2 internal prototype to avoid an error. */
7344 /* We use char because int might match the return type of a gcc2
7345 builtin and then its argument prototype would still apply. */
7346 char tt_message_create();
7352 if { (eval echo configure:7353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7354 eval "ac_cv_lib_$ac_lib_var=yes"
7356 echo "configure: failed program was:" >&5
7357 cat conftest.$ac_ext >&5
7359 eval "ac_cv_lib_$ac_lib_var=no"
7364 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7365 echo "$ac_t""yes" 1>&6
7366 tt_libs="-ltt $extra_libs"; break
7368 echo "$ac_t""no" 1>&6
7374 if test -z "$tt_libs"; then
7375 if test "$with_tooltalk" = "yes"; then
7376 (echo "$progname: Usage error:"
7377 echo " " "Unable to find required tooltalk libraries."
7378 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
7383 test -z "$with_tooltalk" && with_tooltalk=yes
7384 if test "$with_tooltalk" = "yes"; then
7385 { test "$extra_verbose" = "yes" && cat << \EOF
7388 cat >> confdefs.h <<\EOF
7393 { test "$extra_verbose" = "yes" && cat << EOF
7394 Defining TT_C_H_FILE = "$tt_c_h_file"
7396 cat >> confdefs.h <<EOF
7397 #define TT_C_H_FILE "$tt_c_h_file"
7401 libs_x="$tt_libs $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$tt_libs\" to \$libs_x"; fi
7402 extra_objs="$extra_objs tooltalk.o" && if test "$extra_verbose" = "yes"; then
7403 echo " xemacs will be linked with \"tooltalk.o\""
7407 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'`
7408 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
7409 echo "configure:7410: checking for Dt/Dt.h" >&5
7411 cat > conftest.$ac_ext <<EOF
7412 #line 7413 "configure"
7413 #include "confdefs.h"
7416 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7417 { (eval echo configure:7418: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7418 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7419 if test -z "$ac_err"; then
7421 eval "ac_cv_header_$ac_safe=yes"
7424 echo "configure: failed program was:" >&5
7425 cat conftest.$ac_ext >&5
7427 eval "ac_cv_header_$ac_safe=no"
7430 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7431 echo "$ac_t""yes" 1>&6
7434 echo "$ac_t""no" 1>&6
7438 test -z "$with_cde" && {
7439 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
7440 echo "configure:7441: checking for DtDndDragStart in -lDtSvc" >&5
7441 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
7443 xe_check_libs=" -lDtSvc "
7444 cat > conftest.$ac_ext <<EOF
7445 #line 7446 "configure"
7446 #include "confdefs.h"
7447 /* Override any gcc2 internal prototype to avoid an error. */
7448 /* We use char because int might match the return type of a gcc2
7449 builtin and then its argument prototype would still apply. */
7450 char DtDndDragStart();
7456 if { (eval echo configure:7457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7458 eval "ac_cv_lib_$ac_lib_var=yes"
7460 echo "configure: failed program was:" >&5
7461 cat conftest.$ac_ext >&5
7463 eval "ac_cv_lib_$ac_lib_var=no"
7468 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7469 echo "$ac_t""yes" 1>&6
7472 echo "$ac_t""no" 1>&6
7477 test -z "$with_cde" && with_cde=yes
7478 if test "$with_dragndrop" = no; then
7479 echo "configure: warning: No CDE without generic Drag'n'Drop support" 1>&2
7482 if test "$with_cde" = "yes" ; then
7483 { test "$extra_verbose" = "yes" && cat << \EOF
7486 cat >> confdefs.h <<\EOF
7491 libs_x="-lDtSvc $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lDtSvc\" to \$libs_x"; fi
7492 dragndrop_proto="$dragndrop_proto CDE" && if test "$extra_verbose" = "yes"; then echo " Appending \"CDE\" to \$dragndrop_proto"; fi
7493 with_tooltalk=yes # CDE requires Tooltalk
7494 need_motif=yes # CDE requires Motif
7497 test "$window_system" != "x11" && with_offix=no
7498 if test "$with_xmu" != yes -a "$with_x11" = yes; then
7499 echo "configure: warning: No OffiX without real Xmu support" 1>&2
7502 if test "$with_dragndrop" = no; then
7503 echo "configure: warning: No OffiX without generic Drag'n'Drop support" 1>&2
7506 if test "$with_cde" = yes; then
7507 echo "configure: warning: CDE already found, disabling OffiX support" 1>&2
7510 test -z "$with_offix" && with_offix=no
7511 if test "$with_offix" = "yes"; then
7512 { test "$extra_verbose" = "yes" && cat << \EOF
7513 Defining HAVE_OFFIX_DND
7515 cat >> confdefs.h <<\EOF
7516 #define HAVE_OFFIX_DND 1
7520 dnd_objs="$dnd_objs offix.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"offix.o\" to \$dnd_objs"; fi
7521 dragndrop_proto="$dragndrop_proto OffiX" && if test "$extra_verbose" = "yes"; then echo " Appending \"OffiX\" to \$dragndrop_proto"; fi
7523 if test "$with_gtk" = "yes"; then
7524 dragndrop_proto="$dragndrop_proto GTK" && if test "$extra_verbose" = "yes"; then echo " Appending \"GTK\" to \$dragndrop_proto"; fi
7527 if test "$with_dragndrop" != "no" ; then
7528 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6
7529 echo "configure:7530: checking if drag and drop API is needed" >&5
7530 if test -n "$dragndrop_proto" ; then
7532 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6
7533 { test "$extra_verbose" = "yes" && cat << \EOF
7534 Defining HAVE_DRAGNDROP
7536 cat >> confdefs.h <<\EOF
7537 #define HAVE_DRAGNDROP 1
7541 extra_objs="$extra_objs dragdrop.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"dragdrop.o\" to \$extra_objs"; fi
7544 echo "$ac_t""no" 1>&6
7548 echo "checking for LDAP" 1>&6
7549 echo "configure:7550: checking for LDAP" >&5
7550 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'`
7551 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6
7552 echo "configure:7553: checking for ldap.h" >&5
7554 cat > conftest.$ac_ext <<EOF
7555 #line 7556 "configure"
7556 #include "confdefs.h"
7559 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7560 { (eval echo configure:7561: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7561 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7562 if test -z "$ac_err"; then
7564 eval "ac_cv_header_$ac_safe=yes"
7567 echo "configure: failed program was:" >&5
7568 cat conftest.$ac_ext >&5
7570 eval "ac_cv_header_$ac_safe=no"
7573 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7574 echo "$ac_t""yes" 1>&6
7577 echo "$ac_t""no" 1>&6
7581 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'`
7582 echo $ac_n "checking for lber.h""... $ac_c" 1>&6
7583 echo "configure:7584: checking for lber.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 if test "$with_ldap" != "no"; then
7614 echo $ac_n "checking for ldap_search in -lldap""... $ac_c" 1>&6
7615 echo "configure:7616: checking for ldap_search in -lldap" >&5
7616 ac_lib_var=`echo ldap'_'ldap_search | sed 'y%./+-%__p_%'`
7618 xe_check_libs=" -lldap "
7619 cat > conftest.$ac_ext <<EOF
7620 #line 7621 "configure"
7621 #include "confdefs.h"
7622 /* Override any gcc2 internal prototype to avoid an error. */
7623 /* We use char because int might match the return type of a gcc2
7624 builtin and then its argument prototype would still apply. */
7631 if { (eval echo configure:7632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7633 eval "ac_cv_lib_$ac_lib_var=yes"
7635 echo "configure: failed program was:" >&5
7636 cat conftest.$ac_ext >&5
7638 eval "ac_cv_lib_$ac_lib_var=no"
7643 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7644 echo "$ac_t""yes" 1>&6
7645 with_ldap_nolber=yes
7647 echo "$ac_t""no" 1>&6
7652 test "$with_ldap_nolber" = "no" && {
7653 xe_msg_checking="for ldap_open in -lldap"
7654 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber"
7655 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7656 echo "configure:7657: checking "$xe_msg_checking"" >&5
7657 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7659 xe_check_libs=" -lldap -llber"
7660 cat > conftest.$ac_ext <<EOF
7661 #line 7662 "configure"
7662 #include "confdefs.h"
7663 /* Override any gcc2 internal prototype to avoid an error. */
7664 /* We use char because int might match the return type of a gcc2
7665 builtin and then its argument prototype would still apply. */
7672 if { (eval echo configure:7673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7674 eval "ac_cv_lib_$ac_lib_var=yes"
7676 echo "configure: failed program was:" >&5
7677 cat conftest.$ac_ext >&5
7679 eval "ac_cv_lib_$ac_lib_var=no"
7684 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7685 echo "$ac_t""yes" 1>&6
7688 echo "$ac_t""no" 1>&6
7693 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" && {
7694 xe_msg_checking="for ldap_open in -lldap"
7695 test -n "-llber -lkrb" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb"
7696 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7697 echo "configure:7698: checking "$xe_msg_checking"" >&5
7698 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7700 xe_check_libs=" -lldap -llber -lkrb"
7701 cat > conftest.$ac_ext <<EOF
7702 #line 7703 "configure"
7703 #include "confdefs.h"
7704 /* Override any gcc2 internal prototype to avoid an error. */
7705 /* We use char because int might match the return type of a gcc2
7706 builtin and then its argument prototype would still apply. */
7713 if { (eval echo configure:7714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7715 eval "ac_cv_lib_$ac_lib_var=yes"
7717 echo "configure: failed program was:" >&5
7718 cat conftest.$ac_ext >&5
7720 eval "ac_cv_lib_$ac_lib_var=no"
7725 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7726 echo "$ac_t""yes" 1>&6
7729 echo "$ac_t""no" 1>&6
7734 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" -a "$with_ldap_krb" = "no" && {
7735 xe_msg_checking="for ldap_open in -lldap"
7736 test -n "-llber -lkrb -ldes" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb -ldes"
7737 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7738 echo "configure:7739: checking "$xe_msg_checking"" >&5
7739 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7741 xe_check_libs=" -lldap -llber -lkrb -ldes"
7742 cat > conftest.$ac_ext <<EOF
7743 #line 7744 "configure"
7744 #include "confdefs.h"
7745 /* Override any gcc2 internal prototype to avoid an error. */
7746 /* We use char because int might match the return type of a gcc2
7747 builtin and then its argument prototype would still apply. */
7754 if { (eval echo configure:7755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7756 eval "ac_cv_lib_$ac_lib_var=yes"
7758 echo "configure: failed program was:" >&5
7759 cat conftest.$ac_ext >&5
7761 eval "ac_cv_lib_$ac_lib_var=no"
7766 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7767 echo "$ac_t""yes" 1>&6
7768 with_ldap_krbdes=yes
7770 echo "$ac_t""no" 1>&6
7775 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
7777 if test "$with_ldap" = "yes"; then
7778 { test "$extra_verbose" = "yes" && cat << \EOF
7781 cat >> confdefs.h <<\EOF
7786 extra_objs="$extra_objs eldap.o" && if test "$extra_verbose" = "yes"; then
7787 echo " xemacs will be linked with \"eldap.o\""
7789 if test "$with_ldap_nolber" = "yes" ; then
7790 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
7792 if test "$with_ldap_krb" = "yes" ; then
7793 LIBS="-lkrb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$LIBS"; fi
7795 if test "$with_ldap_krbdes" = "yes" ; then
7796 LIBS="-ldes $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldes\" to \$LIBS"; fi
7797 LIBS="-lkrb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$LIBS"; fi
7799 LIBS="-llber $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-llber\" to \$LIBS"; fi
7800 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
7802 for ac_func in ldap_set_option ldap_get_lderrno ldap_result2error ldap_parse_result
7804 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7805 echo "configure:7806: checking for $ac_func" >&5
7807 cat > conftest.$ac_ext <<EOF
7808 #line 7809 "configure"
7809 #include "confdefs.h"
7810 /* System header to define __stub macros and hopefully few prototypes,
7811 which can conflict with char $ac_func(); below. */
7813 /* Override any gcc2 internal prototype to avoid an error. */
7814 /* We use char because int might match the return type of a gcc2
7815 builtin and then its argument prototype would still apply. */
7820 /* The GNU C library defines this for functions which it implements
7821 to always fail with ENOSYS. Some functions are actually named
7822 something starting with __ and the normal name is an alias. */
7823 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7831 if { (eval echo configure:7832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7833 eval "ac_cv_func_$ac_func=yes"
7835 echo "configure: failed program was:" >&5
7836 cat conftest.$ac_ext >&5
7838 eval "ac_cv_func_$ac_func=no"
7842 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7843 echo "$ac_t""yes" 1>&6
7844 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7845 { test "$extra_verbose" = "yes" && cat << EOF
7846 Defining $ac_tr_func
7848 cat >> confdefs.h <<EOF
7849 #define $ac_tr_func 1
7854 echo "$ac_t""no" 1>&6
7860 if test "$with_postgresql" != "no"; then
7861 echo "checking for PostgreSQL" 1>&6
7862 echo "configure:7863: checking for PostgreSQL" >&5
7864 for header_dir in "" "pgsql/" "postgresql/"; do
7865 ac_safe=`echo "${header_dir}libpq-fe.h" | sed 'y%./+-%__p_%'`
7866 echo $ac_n "checking for ${header_dir}libpq-fe.h""... $ac_c" 1>&6
7867 echo "configure:7868: checking for ${header_dir}libpq-fe.h" >&5
7869 cat > conftest.$ac_ext <<EOF
7870 #line 7871 "configure"
7871 #include "confdefs.h"
7872 #include <${header_dir}libpq-fe.h>
7874 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7875 { (eval echo configure:7876: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7876 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7877 if test -z "$ac_err"; then
7879 eval "ac_cv_header_$ac_safe=yes"
7882 echo "configure: failed program was:" >&5
7883 cat conftest.$ac_ext >&5
7885 eval "ac_cv_header_$ac_safe=no"
7888 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7889 echo "$ac_t""yes" 1>&6
7890 libpq_fe_h_file=${header_dir}libpq-fe.h; break
7892 echo "$ac_t""no" 1>&6
7897 test -n "$libpq_fe_h_file" && {
7898 echo $ac_n "checking for PQconnectdb in -lpq""... $ac_c" 1>&6
7899 echo "configure:7900: checking for PQconnectdb in -lpq" >&5
7900 ac_lib_var=`echo pq'_'PQconnectdb | sed 'y%./+-%__p_%'`
7902 xe_check_libs=" -lpq "
7903 cat > conftest.$ac_ext <<EOF
7904 #line 7905 "configure"
7905 #include "confdefs.h"
7906 /* Override any gcc2 internal prototype to avoid an error. */
7907 /* We use char because int might match the return type of a gcc2
7908 builtin and then its argument prototype would still apply. */
7915 if { (eval echo configure:7916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7917 eval "ac_cv_lib_$ac_lib_var=yes"
7919 echo "configure: failed program was:" >&5
7920 cat conftest.$ac_ext >&5
7922 eval "ac_cv_lib_$ac_lib_var=no"
7927 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7928 echo "$ac_t""yes" 1>&6
7931 echo "$ac_t""no" 1>&6
7936 if test -n "$libpq_fe_h_file" -a "$have_libpq" = "yes"; then
7938 { test "$extra_verbose" = "yes" && cat << \EOF
7939 Defining HAVE_POSTGRESQL
7941 cat >> confdefs.h <<\EOF
7942 #define HAVE_POSTGRESQL 1
7947 echo $ac_n "checking for PQconnectStart in -lpq""... $ac_c" 1>&6
7948 echo "configure:7949: checking for PQconnectStart in -lpq" >&5
7949 ac_lib_var=`echo pq'_'PQconnectStart | sed 'y%./+-%__p_%'`
7951 xe_check_libs=" -lpq "
7952 cat > conftest.$ac_ext <<EOF
7953 #line 7954 "configure"
7954 #include "confdefs.h"
7955 /* Override any gcc2 internal prototype to avoid an error. */
7956 /* We use char because int might match the return type of a gcc2
7957 builtin and then its argument prototype would still apply. */
7958 char PQconnectStart();
7964 if { (eval echo configure:7965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7966 eval "ac_cv_lib_$ac_lib_var=yes"
7968 echo "configure: failed program was:" >&5
7969 cat conftest.$ac_ext >&5
7971 eval "ac_cv_lib_$ac_lib_var=no"
7976 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7977 echo "$ac_t""yes" 1>&6
7978 with_postgresqlv7=yes;
7979 { test "$extra_verbose" = "yes" && cat << \EOF
7980 Defining HAVE_POSTGRESQLV7
7982 cat >> confdefs.h <<\EOF
7983 #define HAVE_POSTGRESQLV7 1
7988 echo "$ac_t""no" 1>&6
7992 { test "$extra_verbose" = "yes" && cat << EOF
7993 Defining LIBPQ_FE_H_FILE = "$libpq_fe_h_file"
7995 cat >> confdefs.h <<EOF
7996 #define LIBPQ_FE_H_FILE "$libpq_fe_h_file"
8000 LIBS="-lpq $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpq\" to \$LIBS"; fi
8001 extra_objs="$extra_objs postgresql.o" && if test "$extra_verbose" = "yes"; then
8002 echo " xemacs will be linked with \"postgresql.o\""
8004 elif test "$with_postgresql" = "yes"; then
8005 { echo "Error:" "Required PostgreSQL support cannot be provided. Check --site-prefixes." >&2; exit 1; }
8010 if test "$window_system" != "none"; then
8011 echo "checking for graphics libraries" 1>&6
8012 echo "configure:8013: checking for graphics libraries" >&5
8015 if test -z "$with_xpm"; then
8016 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6
8017 echo "configure:8018: checking for Xpm - no older than 3.4f" >&5
8019 cat > conftest.$ac_ext <<EOF
8020 #line 8021 "configure"
8021 #include "confdefs.h"
8023 #include <X11/xpm.h>
8024 int main(int c, char **v) {
8026 XpmIncludeVersion != XpmLibraryVersion() ? 1 :
8027 XpmIncludeVersion < 30406 ? 2 : 0 ;}
8029 if { (eval echo configure:8030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
8031 ./conftest dummy_arg; xpm_status=$?;
8032 if test "$xpm_status" = "0"; then
8036 if test "$xpm_status" = "1"; then
8037 xpm_problem="Xpm library version and header file version don't match!"
8038 elif test "$xpm_status" = "2"; then
8039 xpm_problem="Xpm library version is too old!"
8041 xpm_problem="Internal xpm detection logic error!"
8044 *** WARNING *** $xpm_problem
8045 I'm not touching that with a 10-foot pole!
8046 If you really want to use the installed version of Xpm, rerun
8047 configure and add '--with-xpm=yes', but don't blame me if XEmacs crashes!"
8051 echo "configure: failed program was:" >&5
8052 cat conftest.$ac_ext >&5
8058 echo "$ac_t""$with_xpm" 1>&6
8060 if test "$with_xpm" = "yes"; then
8061 { test "$extra_verbose" = "yes" && cat << \EOF
8064 cat >> confdefs.h <<\EOF
8069 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
8070 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6
8071 echo "configure:8072: checking for \"FOR_MSW\" xpm" >&5
8073 cat > conftest.$ac_ext <<EOF
8074 #line 8075 "configure"
8075 #include "confdefs.h"
8078 XpmCreatePixmapFromData()
8081 if { (eval echo configure:8082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8085 echo "configure: failed program was:" >&5
8086 cat conftest.$ac_ext >&5
8092 echo "$ac_t""$xpm_for_msw" 1>&6
8093 if test "$xpm_for_msw" = "yes"; then
8094 { test "$extra_verbose" = "yes" && cat << \EOF
8097 cat >> confdefs.h <<\EOF
8105 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
8106 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
8107 echo "configure:8108: checking for compface.h" >&5
8109 cat > conftest.$ac_ext <<EOF
8110 #line 8111 "configure"
8111 #include "confdefs.h"
8112 #include <compface.h>
8114 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8115 { (eval echo configure:8116: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8116 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8117 if test -z "$ac_err"; then
8119 eval "ac_cv_header_$ac_safe=yes"
8122 echo "configure: failed program was:" >&5
8123 cat conftest.$ac_ext >&5
8125 eval "ac_cv_header_$ac_safe=no"
8128 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8129 echo "$ac_t""yes" 1>&6
8132 echo "$ac_t""no" 1>&6
8136 test -z "$with_xface" && {
8137 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
8138 echo "configure:8139: checking for UnGenFace in -lcompface" >&5
8139 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
8141 xe_check_libs=" -lcompface "
8142 cat > conftest.$ac_ext <<EOF
8143 #line 8144 "configure"
8144 #include "confdefs.h"
8145 /* Override any gcc2 internal prototype to avoid an error. */
8146 /* We use char because int might match the return type of a gcc2
8147 builtin and then its argument prototype would still apply. */
8154 if { (eval echo configure:8155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8156 eval "ac_cv_lib_$ac_lib_var=yes"
8158 echo "configure: failed program was:" >&5
8159 cat conftest.$ac_ext >&5
8161 eval "ac_cv_lib_$ac_lib_var=no"
8166 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8167 echo "$ac_t""yes" 1>&6
8170 echo "$ac_t""no" 1>&6
8175 test -z "$with_xface" && with_xface=yes
8176 if test "$with_xface" = "yes"; then
8177 { test "$extra_verbose" = "yes" && cat << \EOF
8180 cat >> confdefs.h <<\EOF
8181 #define HAVE_XFACE 1
8185 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi
8188 if test "$with_gif" != "no"; then
8190 { test "$extra_verbose" = "yes" && cat << \EOF
8193 cat >> confdefs.h <<\EOF
8198 extra_objs="$extra_objs dgif_lib.o gif_io.o" && if test "$extra_verbose" = "yes"; then
8199 echo " xemacs will be linked with \"dgif_lib.o gif_io.o\""
8203 if test "$with_png $with_tiff" != "no no"; then
8205 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6
8206 echo "configure:8207: checking for inflate in -lc" >&5
8207 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'`
8209 xe_check_libs=" -lc "
8210 cat > conftest.$ac_ext <<EOF
8211 #line 8212 "configure"
8212 #include "confdefs.h"
8213 /* Override any gcc2 internal prototype to avoid an error. */
8214 /* We use char because int might match the return type of a gcc2
8215 builtin and then its argument prototype would still apply. */
8222 if { (eval echo configure:8223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8224 eval "ac_cv_lib_$ac_lib_var=yes"
8226 echo "configure: failed program was:" >&5
8227 cat conftest.$ac_ext >&5
8229 eval "ac_cv_lib_$ac_lib_var=no"
8234 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8235 echo "$ac_t""yes" 1>&6
8238 echo "$ac_t""no" 1>&6
8240 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
8241 echo "configure:8242: checking for inflate in -lz" >&5
8242 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
8244 xe_check_libs=" -lz "
8245 cat > conftest.$ac_ext <<EOF
8246 #line 8247 "configure"
8247 #include "confdefs.h"
8248 /* Override any gcc2 internal prototype to avoid an error. */
8249 /* We use char because int might match the return type of a gcc2
8250 builtin and then its argument prototype would still apply. */
8257 if { (eval echo configure:8258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8259 eval "ac_cv_lib_$ac_lib_var=yes"
8261 echo "configure: failed program was:" >&5
8262 cat conftest.$ac_ext >&5
8264 eval "ac_cv_lib_$ac_lib_var=no"
8269 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8270 echo "$ac_t""yes" 1>&6
8271 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi
8273 echo "$ac_t""no" 1>&6
8275 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6
8276 echo "configure:8277: checking for inflate in -lgz" >&5
8277 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'`
8279 xe_check_libs=" -lgz "
8280 cat > conftest.$ac_ext <<EOF
8281 #line 8282 "configure"
8282 #include "confdefs.h"
8283 /* Override any gcc2 internal prototype to avoid an error. */
8284 /* We use char because int might match the return type of a gcc2
8285 builtin and then its argument prototype would still apply. */
8292 if { (eval echo configure:8293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8294 eval "ac_cv_lib_$ac_lib_var=yes"
8296 echo "configure: failed program was:" >&5
8297 cat conftest.$ac_ext >&5
8299 eval "ac_cv_lib_$ac_lib_var=no"
8304 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8305 echo "$ac_t""yes" 1>&6
8306 libs_x="-lgz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgz\" to \$libs_x"; fi
8308 echo "$ac_t""no" 1>&6
8320 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
8321 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
8322 echo "configure:8323: checking for jpeglib.h" >&5
8324 cat > conftest.$ac_ext <<EOF
8325 #line 8326 "configure"
8326 #include "confdefs.h"
8327 #include <jpeglib.h>
8329 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8330 { (eval echo configure:8331: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8331 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8332 if test -z "$ac_err"; then
8334 eval "ac_cv_header_$ac_safe=yes"
8337 echo "configure: failed program was:" >&5
8338 cat conftest.$ac_ext >&5
8340 eval "ac_cv_header_$ac_safe=no"
8343 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8344 echo "$ac_t""yes" 1>&6
8347 echo "$ac_t""no" 1>&6
8351 test -z "$with_jpeg" && {
8352 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6
8353 echo "configure:8354: checking for jpeg_destroy_decompress in -ljpeg" >&5
8354 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'`
8356 xe_check_libs=" -ljpeg "
8357 cat > conftest.$ac_ext <<EOF
8358 #line 8359 "configure"
8359 #include "confdefs.h"
8360 /* Override any gcc2 internal prototype to avoid an error. */
8361 /* We use char because int might match the return type of a gcc2
8362 builtin and then its argument prototype would still apply. */
8363 char jpeg_destroy_decompress();
8366 jpeg_destroy_decompress()
8369 if { (eval echo configure:8370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8371 eval "ac_cv_lib_$ac_lib_var=yes"
8373 echo "configure: failed program was:" >&5
8374 cat conftest.$ac_ext >&5
8376 eval "ac_cv_lib_$ac_lib_var=no"
8381 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8382 echo "$ac_t""yes" 1>&6
8385 echo "$ac_t""no" 1>&6
8390 test -z "$with_jpeg" && with_jpeg=yes
8391 if test "$with_jpeg" = "yes"; then
8392 { test "$extra_verbose" = "yes" && cat << \EOF
8395 cat >> confdefs.h <<\EOF
8400 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi
8404 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6
8405 echo "configure:8406: checking for pow" >&5
8407 cat > conftest.$ac_ext <<EOF
8408 #line 8409 "configure"
8409 #include "confdefs.h"
8410 /* System header to define __stub macros and hopefully few prototypes,
8411 which can conflict with char pow(); below. */
8413 /* Override any gcc2 internal prototype to avoid an error. */
8414 /* We use char because int might match the return type of a gcc2
8415 builtin and then its argument prototype would still apply. */
8420 /* The GNU C library defines this for functions which it implements
8421 to always fail with ENOSYS. Some functions are actually named
8422 something starting with __ and the normal name is an alias. */
8423 #if defined (__stub_pow) || defined (__stub___pow)
8431 if { (eval echo configure:8432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8433 eval "ac_cv_func_pow=yes"
8435 echo "configure: failed program was:" >&5
8436 cat conftest.$ac_ext >&5
8438 eval "ac_cv_func_pow=no"
8442 if eval "test \"`echo '$ac_cv_func_'pow`\" = yes"; then
8443 echo "$ac_t""yes" 1>&6
8446 echo "$ac_t""no" 1>&6
8450 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
8451 echo $ac_n "checking for png.h""... $ac_c" 1>&6
8452 echo "configure:8453: checking for png.h" >&5
8454 cat > conftest.$ac_ext <<EOF
8455 #line 8456 "configure"
8456 #include "confdefs.h"
8459 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8460 { (eval echo configure:8461: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8461 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8462 if test -z "$ac_err"; then
8464 eval "ac_cv_header_$ac_safe=yes"
8467 echo "configure: failed program was:" >&5
8468 cat conftest.$ac_ext >&5
8470 eval "ac_cv_header_$ac_safe=no"
8473 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8474 echo "$ac_t""yes" 1>&6
8477 echo "$ac_t""no" 1>&6
8481 test -z "$with_png" && {
8482 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6
8483 echo "configure:8484: checking for png_read_image in -lpng" >&5
8484 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
8486 xe_check_libs=" -lpng "
8487 cat > conftest.$ac_ext <<EOF
8488 #line 8489 "configure"
8489 #include "confdefs.h"
8490 /* Override any gcc2 internal prototype to avoid an error. */
8491 /* We use char because int might match the return type of a gcc2
8492 builtin and then its argument prototype would still apply. */
8493 char png_read_image();
8499 if { (eval echo configure:8500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8501 eval "ac_cv_lib_$ac_lib_var=yes"
8503 echo "configure: failed program was:" >&5
8504 cat conftest.$ac_ext >&5
8506 eval "ac_cv_lib_$ac_lib_var=no"
8511 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8512 echo "$ac_t""yes" 1>&6
8515 echo "$ac_t""no" 1>&6
8520 if test -z "$with_png"; then
8521 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6
8522 echo "configure:8523: checking for workable png version information" >&5
8523 xe_check_libs="-lpng -lz"
8524 cat > conftest.$ac_ext <<EOF
8525 #line 8526 "configure"
8526 #include "confdefs.h"
8528 int main(int c, char **v) {
8529 if (c == 1) return 0;
8530 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1;
8531 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;}
8533 if { (eval echo configure:8534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
8535 ./conftest dummy_arg; png_status=$?;
8536 if test "$png_status" = "0"; then
8540 if test "$png_status" = "1"; then
8541 png_problem="PNG library version and header file don't match!"
8542 elif test "$png_status" = "2"; then
8543 png_problem="PNG library version too old (pre 1.0.2)!"
8546 *** WARNING *** $png_problem
8547 I'm not touching that with a 10-foot pole!
8548 If you really want to use the installed version of libPNG, rerun
8549 configure and add '--with-png=yes', but don't blame me if XEmacs crashes!"
8553 echo "configure: failed program was:" >&5
8554 cat conftest.$ac_ext >&5
8560 echo "$ac_t""$with_png" 1>&6
8562 if test "$with_png" = "yes"; then
8563 { test "$extra_verbose" = "yes" && cat << \EOF
8566 cat >> confdefs.h <<\EOF
8571 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi
8574 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
8575 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
8576 echo "configure:8577: checking for tiffio.h" >&5
8578 cat > conftest.$ac_ext <<EOF
8579 #line 8580 "configure"
8580 #include "confdefs.h"
8583 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8584 { (eval echo configure:8585: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8585 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8586 if test -z "$ac_err"; then
8588 eval "ac_cv_header_$ac_safe=yes"
8591 echo "configure: failed program was:" >&5
8592 cat conftest.$ac_ext >&5
8594 eval "ac_cv_header_$ac_safe=no"
8597 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8598 echo "$ac_t""yes" 1>&6
8601 echo "$ac_t""no" 1>&6
8605 test -z "$with_tiff" && {
8606 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6
8607 echo "configure:8608: checking for TIFFClientOpen in -ltiff" >&5
8608 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'`
8610 xe_check_libs=" -ltiff "
8611 cat > conftest.$ac_ext <<EOF
8612 #line 8613 "configure"
8613 #include "confdefs.h"
8614 /* Override any gcc2 internal prototype to avoid an error. */
8615 /* We use char because int might match the return type of a gcc2
8616 builtin and then its argument prototype would still apply. */
8617 char TIFFClientOpen();
8623 if { (eval echo configure:8624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8625 eval "ac_cv_lib_$ac_lib_var=yes"
8627 echo "configure: failed program was:" >&5
8628 cat conftest.$ac_ext >&5
8630 eval "ac_cv_lib_$ac_lib_var=no"
8635 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8636 echo "$ac_t""yes" 1>&6
8639 echo "$ac_t""no" 1>&6
8644 test -z "$with_tiff" && with_tiff=yes
8645 if test "$with_tiff" = "yes"; then
8646 { test "$extra_verbose" = "yes" && cat << \EOF
8649 cat >> confdefs.h <<\EOF
8654 libs_x="-ltiff $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltiff\" to \$libs_x"; fi
8659 if test "$with_gtk" = "yes"; then
8660 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
8661 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
8662 echo "configure:8663: checking for compface.h" >&5
8664 cat > conftest.$ac_ext <<EOF
8665 #line 8666 "configure"
8666 #include "confdefs.h"
8667 #include <compface.h>
8669 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8670 { (eval echo configure:8671: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8671 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8672 if test -z "$ac_err"; then
8674 eval "ac_cv_header_$ac_safe=yes"
8677 echo "configure: failed program was:" >&5
8678 cat conftest.$ac_ext >&5
8680 eval "ac_cv_header_$ac_safe=no"
8683 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8684 echo "$ac_t""yes" 1>&6
8687 echo "$ac_t""no" 1>&6
8691 test -z "$with_xface" && {
8692 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
8693 echo "configure:8694: checking for UnGenFace in -lcompface" >&5
8694 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
8696 xe_check_libs=" -lcompface "
8697 cat > conftest.$ac_ext <<EOF
8698 #line 8699 "configure"
8699 #include "confdefs.h"
8700 /* Override any gcc2 internal prototype to avoid an error. */
8701 /* We use char because int might match the return type of a gcc2
8702 builtin and then its argument prototype would still apply. */
8709 if { (eval echo configure:8710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8711 eval "ac_cv_lib_$ac_lib_var=yes"
8713 echo "configure: failed program was:" >&5
8714 cat conftest.$ac_ext >&5
8716 eval "ac_cv_lib_$ac_lib_var=no"
8721 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8722 echo "$ac_t""yes" 1>&6
8725 echo "$ac_t""no" 1>&6
8730 test -z "$with_xface" && with_xface=yes
8731 if test "$with_xface" = "yes"; then
8732 { test "$extra_verbose" = "yes" && cat << \EOF
8735 cat >> confdefs.h <<\EOF
8736 #define HAVE_XFACE 1
8740 libs_gtk="-lcompface $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_gtk"; fi
8746 if test "$with_x11" = "yes"; then
8748 echo "checking for X11 graphics libraries" 1>&6
8749 echo "configure:8750: checking for X11 graphics libraries" >&5
8751 echo "checking for the Athena widgets" 1>&6
8752 echo "configure:8753: checking for the Athena widgets" >&5
8754 case "$with_athena" in
8755 "xaw" | "") athena_variant=Xaw athena_3d=no ;;
8756 "3d") athena_variant=Xaw3d athena_3d=yes ;;
8757 "next") athena_variant=neXtaw athena_3d=yes ;;
8758 "95") athena_variant=Xaw95 athena_3d=yes ;;
8759 "xpm") athena_variant=XawXpm athena_3d=yes ;;
8760 *) { echo "Error:" "Unknown Athena widget set \`$with_athena'. This should not happen." >&2; exit 1; } ;;
8763 if test "$athena_3d" = "no"; then
8765 echo $ac_n "checking for XawScrollbarSetThumb in -l$athena_variant""... $ac_c" 1>&6
8766 echo "configure:8767: checking for XawScrollbarSetThumb in -l$athena_variant" >&5
8767 ac_lib_var=`echo $athena_variant'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
8769 xe_check_libs=" -l$athena_variant "
8770 cat > conftest.$ac_ext <<EOF
8771 #line 8772 "configure"
8772 #include "confdefs.h"
8773 /* Override any gcc2 internal prototype to avoid an error. */
8774 /* We use char because int might match the return type of a gcc2
8775 builtin and then its argument prototype would still apply. */
8776 char XawScrollbarSetThumb();
8779 XawScrollbarSetThumb()
8782 if { (eval echo configure:8783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8784 eval "ac_cv_lib_$ac_lib_var=yes"
8786 echo "configure: failed program was:" >&5
8787 cat conftest.$ac_ext >&5
8789 eval "ac_cv_lib_$ac_lib_var=no"
8794 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8795 echo "$ac_t""yes" 1>&6
8797 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
8798 echo "configure:8799: checking for threeDClassRec in -l$athena_variant" >&5
8799 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
8801 xe_check_libs=" -l$athena_variant "
8802 cat > conftest.$ac_ext <<EOF
8803 #line 8804 "configure"
8804 #include "confdefs.h"
8805 /* Override any gcc2 internal prototype to avoid an error. */
8806 /* We use char because int might match the return type of a gcc2
8807 builtin and then its argument prototype would still apply. */
8808 char threeDClassRec();
8814 if { (eval echo configure:8815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8816 eval "ac_cv_lib_$ac_lib_var=yes"
8818 echo "configure: failed program was:" >&5
8819 cat conftest.$ac_ext >&5
8821 eval "ac_cv_lib_$ac_lib_var=no"
8826 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8827 echo "$ac_t""yes" 1>&6
8828 echo "configure: warning: "Could not find a non-3d Athena widget library."" 1>&2
8830 echo "$ac_t""no" 1>&6
8831 athena_lib=$athena_variant
8837 echo "$ac_t""no" 1>&6
8838 echo "configure: warning: "Could not find an Athena widget library."" 1>&2
8844 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
8845 echo "configure:8846: checking for threeDClassRec in -l$athena_variant" >&5
8846 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
8848 xe_check_libs=" -l$athena_variant "
8849 cat > conftest.$ac_ext <<EOF
8850 #line 8851 "configure"
8851 #include "confdefs.h"
8852 /* Override any gcc2 internal prototype to avoid an error. */
8853 /* We use char because int might match the return type of a gcc2
8854 builtin and then its argument prototype would still apply. */
8855 char threeDClassRec();
8861 if { (eval echo configure:8862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8863 eval "ac_cv_lib_$ac_lib_var=yes"
8865 echo "configure: failed program was:" >&5
8866 cat conftest.$ac_ext >&5
8868 eval "ac_cv_lib_$ac_lib_var=no"
8873 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8874 echo "$ac_t""yes" 1>&6
8875 athena_lib=$athena_variant
8877 echo "$ac_t""no" 1>&6
8878 echo $ac_n "checking for threeDClassRec in -lXaw""... $ac_c" 1>&6
8879 echo "configure:8880: checking for threeDClassRec in -lXaw" >&5
8880 ac_lib_var=`echo Xaw'_'threeDClassRec | sed 'y%./+-%__p_%'`
8882 xe_check_libs=" -lXaw "
8883 cat > conftest.$ac_ext <<EOF
8884 #line 8885 "configure"
8885 #include "confdefs.h"
8886 /* Override any gcc2 internal prototype to avoid an error. */
8887 /* We use char because int might match the return type of a gcc2
8888 builtin and then its argument prototype would still apply. */
8889 char threeDClassRec();
8895 if { (eval echo configure:8896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8897 eval "ac_cv_lib_$ac_lib_var=yes"
8899 echo "configure: failed program was:" >&5
8900 cat conftest.$ac_ext >&5
8902 eval "ac_cv_lib_$ac_lib_var=no"
8907 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8908 echo "$ac_t""yes" 1>&6
8910 echo "configure: warning: "Assuming that libXaw is actually $athena_variant."" 1>&2;
8913 echo "$ac_t""no" 1>&6
8914 echo "configure: warning: "Could not find a 3d Athena widget library that looked like $athena_variant."" 1>&2
8923 if test "$athena_3d" = "no"; then
8924 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
8925 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
8926 echo "configure:8927: checking for X11/Xaw/ThreeD.h" >&5
8928 cat > conftest.$ac_ext <<EOF
8929 #line 8930 "configure"
8930 #include "confdefs.h"
8931 #include <X11/Xaw/ThreeD.h>
8933 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8934 { (eval echo configure:8935: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8935 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8936 if test -z "$ac_err"; then
8938 eval "ac_cv_header_$ac_safe=yes"
8941 echo "configure: failed program was:" >&5
8942 cat conftest.$ac_ext >&5
8944 eval "ac_cv_header_$ac_safe=no"
8947 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8948 echo "$ac_t""yes" 1>&6
8949 echo "configure: warning: "Could not find a non-3d Athena header set."" 1>&2
8951 echo "$ac_t""no" 1>&6
8952 ac_safe=`echo "X11/Xaw/XawInit.h" | sed 'y%./+-%__p_%'`
8953 echo $ac_n "checking for X11/Xaw/XawInit.h""... $ac_c" 1>&6
8954 echo "configure:8955: checking for X11/Xaw/XawInit.h" >&5
8956 cat > conftest.$ac_ext <<EOF
8957 #line 8958 "configure"
8958 #include "confdefs.h"
8959 #include <X11/Xaw/XawInit.h>
8961 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8962 { (eval echo configure:8963: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8963 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8964 if test -z "$ac_err"; then
8966 eval "ac_cv_header_$ac_safe=yes"
8969 echo "configure: failed program was:" >&5
8970 cat conftest.$ac_ext >&5
8972 eval "ac_cv_header_$ac_safe=no"
8975 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8976 echo "$ac_t""yes" 1>&6
8977 athena_h_path=X11/Xaw
8979 echo "$ac_t""no" 1>&6
8980 echo "configure: warning: "Could not find a non-3d Athena header set."" 1>&2
8986 ac_safe=`echo "X11/$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
8987 echo $ac_n "checking for X11/$athena_variant/XawInit.h""... $ac_c" 1>&6
8988 echo "configure:8989: checking for X11/$athena_variant/XawInit.h" >&5
8990 cat > conftest.$ac_ext <<EOF
8991 #line 8992 "configure"
8992 #include "confdefs.h"
8993 #include <X11/$athena_variant/XawInit.h>
8995 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8996 { (eval echo configure:8997: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8997 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8998 if test -z "$ac_err"; then
9000 eval "ac_cv_header_$ac_safe=yes"
9003 echo "configure: failed program was:" >&5
9004 cat conftest.$ac_ext >&5
9006 eval "ac_cv_header_$ac_safe=no"
9009 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9010 echo "$ac_t""yes" 1>&6
9011 ac_safe=`echo "X11/$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
9012 echo $ac_n "checking for X11/$athena_variant/ThreeD.h""... $ac_c" 1>&6
9013 echo "configure:9014: checking for X11/$athena_variant/ThreeD.h" >&5
9015 cat > conftest.$ac_ext <<EOF
9016 #line 9017 "configure"
9017 #include "confdefs.h"
9018 #include <X11/$athena_variant/ThreeD.h>
9020 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9021 { (eval echo configure:9022: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9022 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9023 if test -z "$ac_err"; then
9025 eval "ac_cv_header_$ac_safe=yes"
9028 echo "configure: failed program was:" >&5
9029 cat conftest.$ac_ext >&5
9031 eval "ac_cv_header_$ac_safe=no"
9034 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9035 echo "$ac_t""yes" 1>&6
9036 athena_h_path=X11/$athena_variant
9038 echo "$ac_t""no" 1>&6
9042 echo "$ac_t""no" 1>&6
9046 if test -z "$athena_h_path"; then
9047 ac_safe=`echo "$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
9048 echo $ac_n "checking for $athena_variant/XawInit.h""... $ac_c" 1>&6
9049 echo "configure:9050: checking for $athena_variant/XawInit.h" >&5
9051 cat > conftest.$ac_ext <<EOF
9052 #line 9053 "configure"
9053 #include "confdefs.h"
9054 #include <$athena_variant/XawInit.h>
9056 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9057 { (eval echo configure:9058: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9058 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9059 if test -z "$ac_err"; then
9061 eval "ac_cv_header_$ac_safe=yes"
9064 echo "configure: failed program was:" >&5
9065 cat conftest.$ac_ext >&5
9067 eval "ac_cv_header_$ac_safe=no"
9070 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9071 echo "$ac_t""yes" 1>&6
9072 ac_safe=`echo "$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
9073 echo $ac_n "checking for $athena_variant/ThreeD.h""... $ac_c" 1>&6
9074 echo "configure:9075: checking for $athena_variant/ThreeD.h" >&5
9076 cat > conftest.$ac_ext <<EOF
9077 #line 9078 "configure"
9078 #include "confdefs.h"
9079 #include <$athena_variant/ThreeD.h>
9081 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9082 { (eval echo configure:9083: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9083 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9084 if test -z "$ac_err"; then
9086 eval "ac_cv_header_$ac_safe=yes"
9089 echo "configure: failed program was:" >&5
9090 cat conftest.$ac_ext >&5
9092 eval "ac_cv_header_$ac_safe=no"
9095 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9096 echo "$ac_t""yes" 1>&6
9097 athena_h_path=$athena_variant
9099 echo "$ac_t""no" 1>&6
9103 echo "$ac_t""no" 1>&6
9108 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
9109 ac_safe=`echo "X11/Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
9110 echo $ac_n "checking for X11/Xaw3d/XawInit.h""... $ac_c" 1>&6
9111 echo "configure:9112: checking for X11/Xaw3d/XawInit.h" >&5
9113 cat > conftest.$ac_ext <<EOF
9114 #line 9115 "configure"
9115 #include "confdefs.h"
9116 #include <X11/Xaw3d/XawInit.h>
9118 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9119 { (eval echo configure:9120: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9120 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9121 if test -z "$ac_err"; then
9123 eval "ac_cv_header_$ac_safe=yes"
9126 echo "configure: failed program was:" >&5
9127 cat conftest.$ac_ext >&5
9129 eval "ac_cv_header_$ac_safe=no"
9132 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9133 echo "$ac_t""yes" 1>&6
9134 ac_safe=`echo "X11/Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
9135 echo $ac_n "checking for X11/Xaw3d/ThreeD.h""... $ac_c" 1>&6
9136 echo "configure:9137: checking for X11/Xaw3d/ThreeD.h" >&5
9138 cat > conftest.$ac_ext <<EOF
9139 #line 9140 "configure"
9140 #include "confdefs.h"
9141 #include <X11/Xaw3d/ThreeD.h>
9143 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9144 { (eval echo configure:9145: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9145 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9146 if test -z "$ac_err"; then
9148 eval "ac_cv_header_$ac_safe=yes"
9151 echo "configure: failed program was:" >&5
9152 cat conftest.$ac_ext >&5
9154 eval "ac_cv_header_$ac_safe=no"
9157 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9158 echo "$ac_t""yes" 1>&6
9160 echo "configure: warning: "Assuming that X11/Xaw3d headers are suitable for $athena_variant."" 1>&2
9161 athena_h_path=X11/Xaw3d
9164 echo "$ac_t""no" 1>&6
9168 echo "$ac_t""no" 1>&6
9173 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
9174 ac_safe=`echo "Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
9175 echo $ac_n "checking for Xaw3d/XawInit.h""... $ac_c" 1>&6
9176 echo "configure:9177: checking for Xaw3d/XawInit.h" >&5
9178 cat > conftest.$ac_ext <<EOF
9179 #line 9180 "configure"
9180 #include "confdefs.h"
9181 #include <Xaw3d/XawInit.h>
9183 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9184 { (eval echo configure:9185: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9185 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9186 if test -z "$ac_err"; then
9188 eval "ac_cv_header_$ac_safe=yes"
9191 echo "configure: failed program was:" >&5
9192 cat conftest.$ac_ext >&5
9194 eval "ac_cv_header_$ac_safe=no"
9197 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9198 echo "$ac_t""yes" 1>&6
9199 ac_safe=`echo "Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
9200 echo $ac_n "checking for Xaw3d/ThreeD.h""... $ac_c" 1>&6
9201 echo "configure:9202: checking for Xaw3d/ThreeD.h" >&5
9203 cat > conftest.$ac_ext <<EOF
9204 #line 9205 "configure"
9205 #include "confdefs.h"
9206 #include <Xaw3d/ThreeD.h>
9208 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9209 { (eval echo configure:9210: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9210 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9211 if test -z "$ac_err"; then
9213 eval "ac_cv_header_$ac_safe=yes"
9216 echo "configure: failed program was:" >&5
9217 cat conftest.$ac_ext >&5
9219 eval "ac_cv_header_$ac_safe=no"
9222 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9223 echo "$ac_t""yes" 1>&6
9225 echo "configure: warning: "Assuming that Xaw3d headers are suitable for $athena_variant."" 1>&2
9229 echo "$ac_t""no" 1>&6
9233 echo "$ac_t""no" 1>&6
9238 if test -z "$athena_h_path"; then
9239 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
9240 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
9241 echo "configure:9242: checking for X11/Xaw/ThreeD.h" >&5
9243 cat > conftest.$ac_ext <<EOF
9244 #line 9245 "configure"
9245 #include "confdefs.h"
9246 #include <X11/Xaw/ThreeD.h>
9248 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9249 { (eval echo configure:9250: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9250 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9251 if test -z "$ac_err"; then
9253 eval "ac_cv_header_$ac_safe=yes"
9256 echo "configure: failed program was:" >&5
9257 cat conftest.$ac_ext >&5
9259 eval "ac_cv_header_$ac_safe=no"
9262 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9263 echo "$ac_t""yes" 1>&6
9265 echo "configure: warning: "Assuming that X11/Xaw headers are suitable for $athena_variant."" 1>&2
9266 athena_h_path=X11/Xaw
9269 echo "$ac_t""no" 1>&6
9270 echo "configure: warning: "Could not find a suitable 3d Athena header set."" 1>&2
9276 if test -n "$athena_lib" -a -n "$athena_h_path"; then
9282 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
9283 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
9284 echo "configure:9285: checking for Xm/Xm.h" >&5
9286 cat > conftest.$ac_ext <<EOF
9287 #line 9288 "configure"
9288 #include "confdefs.h"
9291 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9292 { (eval echo configure:9293: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9293 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9294 if test -z "$ac_err"; then
9296 eval "ac_cv_header_$ac_safe=yes"
9299 echo "configure: failed program was:" >&5
9300 cat conftest.$ac_ext >&5
9302 eval "ac_cv_header_$ac_safe=no"
9305 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9306 echo "$ac_t""yes" 1>&6
9308 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
9309 echo "configure:9310: checking for XmStringFree in -lXm" >&5
9310 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
9312 xe_check_libs=" -lXm "
9313 cat > conftest.$ac_ext <<EOF
9314 #line 9315 "configure"
9315 #include "confdefs.h"
9316 /* Override any gcc2 internal prototype to avoid an error. */
9317 /* We use char because int might match the return type of a gcc2
9318 builtin and then its argument prototype would still apply. */
9319 char XmStringFree();
9325 if { (eval echo configure:9326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9327 eval "ac_cv_lib_$ac_lib_var=yes"
9329 echo "configure: failed program was:" >&5
9330 cat conftest.$ac_ext >&5
9332 eval "ac_cv_lib_$ac_lib_var=no"
9337 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9338 echo "$ac_t""yes" 1>&6
9341 echo "$ac_t""no" 1>&6
9347 echo "$ac_t""no" 1>&6
9352 if test "$have_motif" = "yes"; then
9353 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6
9354 echo "configure:9355: checking for Lesstif" >&5
9355 cat > conftest.$ac_ext <<EOF
9356 #line 9357 "configure"
9357 #include "confdefs.h"
9359 #ifdef LESSTIF_VERSION
9364 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9365 egrep "yes" >/dev/null 2>&1; then
9374 echo "$ac_t""$have_lesstif" 1>&6
9379 case "$with_menubars" in "" | "yes" | "athena" )
9380 with_menubars="lucid" ;;
9382 case "$with_dialogs" in "" | "yes" | "lucid" )
9383 if test "$have_motif" = "yes"; then with_dialogs="motif"
9384 elif test "$have_xaw" = "yes"; then with_dialogs="athena"
9385 else with_dialogs=no
9388 case "$with_scrollbars" in "" | "yes" )
9389 with_scrollbars="lucid" ;;
9391 case "$with_widgets" in "" | "yes" | "lucid")
9392 if test "$have_motif" = "yes"; then with_widgets="motif"
9393 elif test "$have_xaw" = "yes"; then with_widgets="athena"
9394 else with_widgets=no
9398 all_widgets="$with_menubars $with_scrollbars $with_dialogs $with_toolbars $with_widgets"
9400 case "$all_widgets" in
9402 if test "$have_xaw" != "yes"; then
9403 { echo "Error:" "Could not find a suitable Athena library to build with." >&2; exit 1; }
9406 lwlib_objs="$lwlib_objs lwlib-Xaw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xaw.o\" to \$lwlib_objs"; fi
9408 libs_x="-l$athena_lib $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$athena_lib\" to \$libs_x"; fi
9410 { test "$extra_verbose" = "yes" && cat << EOF
9411 Defining ATHENA_Scrollbar_h_ = "$athena_h_path/Scrollbar.h"
9413 cat >> confdefs.h <<EOF
9414 #define ATHENA_Scrollbar_h_ "$athena_h_path/Scrollbar.h"
9418 { test "$extra_verbose" = "yes" && cat << EOF
9419 Defining ATHENA_Dialog_h_ = "$athena_h_path/Dialog.h"
9421 cat >> confdefs.h <<EOF
9422 #define ATHENA_Dialog_h_ "$athena_h_path/Dialog.h"
9426 { test "$extra_verbose" = "yes" && cat << EOF
9427 Defining ATHENA_Form_h_ = "$athena_h_path/Form.h"
9429 cat >> confdefs.h <<EOF
9430 #define ATHENA_Form_h_ "$athena_h_path/Form.h"
9434 { test "$extra_verbose" = "yes" && cat << EOF
9435 Defining ATHENA_Command_h_ = "$athena_h_path/Command.h"
9437 cat >> confdefs.h <<EOF
9438 #define ATHENA_Command_h_ "$athena_h_path/Command.h"
9442 { test "$extra_verbose" = "yes" && cat << EOF
9443 Defining ATHENA_Label_h_ = "$athena_h_path/Label.h"
9445 cat >> confdefs.h <<EOF
9446 #define ATHENA_Label_h_ "$athena_h_path/Label.h"
9450 { test "$extra_verbose" = "yes" && cat << EOF
9451 Defining ATHENA_LabelP_h_ = "$athena_h_path/LabelP.h"
9453 cat >> confdefs.h <<EOF
9454 #define ATHENA_LabelP_h_ "$athena_h_path/LabelP.h"
9458 { test "$extra_verbose" = "yes" && cat << EOF
9459 Defining ATHENA_Toggle_h_ = "$athena_h_path/Toggle.h"
9461 cat >> confdefs.h <<EOF
9462 #define ATHENA_Toggle_h_ "$athena_h_path/Toggle.h"
9466 { test "$extra_verbose" = "yes" && cat << EOF
9467 Defining ATHENA_ToggleP_h_ = "$athena_h_path/ToggleP.h"
9469 cat >> confdefs.h <<EOF
9470 #define ATHENA_ToggleP_h_ "$athena_h_path/ToggleP.h"
9474 { test "$extra_verbose" = "yes" && cat << EOF
9475 Defining ATHENA_AsciiText_h_ = "$athena_h_path/AsciiText.h"
9477 cat >> confdefs.h <<EOF
9478 #define ATHENA_AsciiText_h_ "$athena_h_path/AsciiText.h"
9482 { test "$extra_verbose" = "yes" && cat << EOF
9483 Defining ATHENA_XawInit_h_ = "$athena_h_path/XawInit.h"
9485 cat >> confdefs.h <<EOF
9486 #define ATHENA_XawInit_h_ "$athena_h_path/XawInit.h"
9491 { test "$extra_verbose" = "yes" && cat << \EOF
9492 Defining LWLIB_USES_ATHENA
9494 cat >> confdefs.h <<\EOF
9495 #define LWLIB_USES_ATHENA 1
9499 { test "$extra_verbose" = "yes" && cat << \EOF
9500 Defining NEED_ATHENA
9502 cat >> confdefs.h <<\EOF
9503 #define NEED_ATHENA 1
9509 if test "$athena_3d" = "yes"; then
9510 { test "$extra_verbose" = "yes" && cat << \EOF
9511 Defining HAVE_ATHENA_3D
9513 cat >> confdefs.h <<\EOF
9514 #define HAVE_ATHENA_3D 1
9522 case "$all_widgets" in *motif* )
9523 { test "$extra_verbose" = "yes" && cat << \EOF
9524 Defining LWLIB_USES_MOTIF
9526 cat >> confdefs.h <<\EOF
9527 #define LWLIB_USES_MOTIF 1
9531 { test "$extra_verbose" = "yes" && cat << \EOF
9534 cat >> confdefs.h <<\EOF
9535 #define NEED_MOTIF 1
9539 lwlib_objs="$lwlib_objs lwlib-Xm.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xm.o\" to \$lwlib_objs"; fi
9543 test "$with_menubars" = "lucid" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
9544 test "$with_menubars" = "motif" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
9545 test "$with_scrollbars" = "lucid" && lwlib_objs="$lwlib_objs xlwscrollbar.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwscrollbar.o\" to \$lwlib_objs"; fi
9546 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
9547 lwlib_objs="$lwlib_objs xlwtabs.o xlwgcs.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwtabs.o xlwgcs.o\" to \$lwlib_objs"; fi
9548 case "$with_widgets" in athena* )
9549 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;;
9551 case "$all_widgets" in *lucid* )
9552 { test "$extra_verbose" = "yes" && cat << \EOF
9555 cat >> confdefs.h <<\EOF
9556 #define NEED_LUCID 1
9560 lwlib_objs="$lwlib_objs lwlib-Xlw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xlw.o\" to \$lwlib_objs"; fi ;;
9565 test "$with_scrollbars" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
9566 Defining LWLIB_SCROLLBARS_ATHENA
9568 cat >> confdefs.h <<\EOF
9569 #define LWLIB_SCROLLBARS_ATHENA 1
9573 test "$with_dialogs" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
9574 Defining LWLIB_DIALOGS_ATHENA
9576 cat >> confdefs.h <<\EOF
9577 #define LWLIB_DIALOGS_ATHENA 1
9582 if test "$athena_3d" = "yes"; then
9583 test "$with_scrollbars" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
9584 Defining LWLIB_SCROLLBARS_ATHENA3D
9586 cat >> confdefs.h <<\EOF
9587 #define LWLIB_SCROLLBARS_ATHENA3D 1
9591 test "$with_dialogs" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
9592 Defining LWLIB_DIALOGS_ATHENA3D
9594 cat >> confdefs.h <<\EOF
9595 #define LWLIB_DIALOGS_ATHENA3D 1
9601 case "$with_widgets" in athena* ) { test "$extra_verbose" = "yes" && cat << \EOF
9602 Defining LWLIB_WIDGETS_ATHENA
9604 cat >> confdefs.h <<\EOF
9605 #define LWLIB_WIDGETS_ATHENA 1
9609 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
9610 { test "$extra_verbose" = "yes" && cat << \EOF
9611 Defining LWLIB_TABS_LUCID
9613 cat >> confdefs.h <<\EOF
9614 #define LWLIB_TABS_LUCID 1
9619 test "$with_menubars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9620 Defining HAVE_MENUBARS
9622 cat >> confdefs.h <<\EOF
9623 #define HAVE_MENUBARS 1
9627 test "$with_scrollbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9628 Defining HAVE_SCROLLBARS
9630 cat >> confdefs.h <<\EOF
9631 #define HAVE_SCROLLBARS 1
9635 test "$with_dialogs" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9636 Defining HAVE_DIALOGS
9638 cat >> confdefs.h <<\EOF
9639 #define HAVE_DIALOGS 1
9643 test "$with_toolbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9644 Defining HAVE_TOOLBARS
9646 cat >> confdefs.h <<\EOF
9647 #define HAVE_TOOLBARS 1
9651 test "$with_widgets" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9652 Defining HAVE_WIDGETS
9654 cat >> confdefs.h <<\EOF
9655 #define HAVE_WIDGETS 1
9660 test "$with_menubars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
9661 Defining LWLIB_MENUBARS_LUCID
9663 cat >> confdefs.h <<\EOF
9664 #define LWLIB_MENUBARS_LUCID 1
9668 test "$with_scrollbars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
9669 Defining LWLIB_SCROLLBARS_LUCID
9671 cat >> confdefs.h <<\EOF
9672 #define LWLIB_SCROLLBARS_LUCID 1
9677 test "$with_menubars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9678 Defining LWLIB_MENUBARS_MOTIF
9680 cat >> confdefs.h <<\EOF
9681 #define LWLIB_MENUBARS_MOTIF 1
9685 test "$with_scrollbars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9686 Defining LWLIB_SCROLLBARS_MOTIF
9688 cat >> confdefs.h <<\EOF
9689 #define LWLIB_SCROLLBARS_MOTIF 1
9693 test "$with_dialogs" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9694 Defining LWLIB_DIALOGS_MOTIF
9696 cat >> confdefs.h <<\EOF
9697 #define LWLIB_DIALOGS_MOTIF 1
9701 test "$with_widgets" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9702 Defining LWLIB_WIDGETS_MOTIF
9704 cat >> confdefs.h <<\EOF
9705 #define LWLIB_WIDGETS_MOTIF 1
9710 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar.o" && if test "$extra_verbose" = "yes"; then
9711 echo " xemacs will be linked with \"menubar.o\""
9713 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar.o" && if test "$extra_verbose" = "yes"; then
9714 echo " xemacs will be linked with \"scrollbar.o\""
9716 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog.o" && if test "$extra_verbose" = "yes"; then
9717 echo " xemacs will be linked with \"dialog.o\""
9719 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar.o" && if test "$extra_verbose" = "yes"; then
9720 echo " xemacs will be linked with \"toolbar.o\""
9723 if test "$with_gtk" = "yes"; then
9724 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-gtk.o" && if test "$extra_verbose" = "yes"; then
9725 echo " xemacs will be linked with \"menubar-gtk.o\""
9727 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-gtk.o" && if test "$extra_verbose" = "yes"; then
9728 echo " xemacs will be linked with \"scrollbar-gtk.o\""
9730 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-gtk.o" && if test "$extra_verbose" = "yes"; then
9731 echo " xemacs will be linked with \"dialog-gtk.o\""
9733 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-gtk.o" && if test "$extra_verbose" = "yes"; then
9734 echo " xemacs will be linked with \"toolbar-gtk.o\""
9736 test "$all_widgets" != "no no no no no" && extra_objs="$extra_objs gui-gtk.o" && if test "$extra_verbose" = "yes"; then
9737 echo " xemacs will be linked with \"gui-gtk.o\""
9741 if test "$with_x11" = "yes"; then
9742 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-x.o" && if test "$extra_verbose" = "yes"; then
9743 echo " xemacs will be linked with \"menubar-x.o\""
9745 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-x.o" && if test "$extra_verbose" = "yes"; then
9746 echo " xemacs will be linked with \"scrollbar-x.o\""
9748 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-x.o" && if test "$extra_verbose" = "yes"; then
9749 echo " xemacs will be linked with \"dialog-x.o\""
9751 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-x.o" && if test "$extra_verbose" = "yes"; then
9752 echo " xemacs will be linked with \"toolbar-x.o\""
9754 test "$all_widgets" != "no no no no no" && extra_objs="$extra_objs gui-x.o" && if test "$extra_verbose" = "yes"; then
9755 echo " xemacs will be linked with \"gui-x.o\""
9760 test -z "$with_mule" && with_mule=no
9761 test -z "$with_file_coding" && with_file_coding=no
9764 if test "$with_file_coding" = "yes" && test "$with_mule" = "no"; then
9765 { test "$extra_verbose" = "yes" && cat << \EOF
9766 Defining FILE_CODING
9768 cat >> confdefs.h <<\EOF
9769 #define FILE_CODING 1
9773 extra_objs="$extra_objs file-coding.o" && if test "$extra_verbose" = "yes"; then
9774 echo " xemacs will be linked with \"file-coding.o\""
9778 if test "$with_mule" = "yes" ; then
9779 echo "checking for Mule-related features" 1>&6
9780 echo "configure:9781: checking for Mule-related features" >&5
9781 { test "$extra_verbose" = "yes" && cat << \EOF
9784 cat >> confdefs.h <<\EOF
9789 { test "$extra_verbose" = "yes" && cat << \EOF
9790 Defining FILE_CODING
9792 cat >> confdefs.h <<\EOF
9793 #define FILE_CODING 1
9797 extra_objs="$extra_objs mule.o mule-ccl.o mule-charset.o file-coding.o" && if test "$extra_verbose" = "yes"; then
9798 echo " xemacs will be linked with \"mule.o mule-ccl.o mule-charset.o file-coding.o\""
9801 for ac_hdr in libintl.h
9803 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9804 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9805 echo "configure:9806: checking for $ac_hdr" >&5
9807 cat > conftest.$ac_ext <<EOF
9808 #line 9809 "configure"
9809 #include "confdefs.h"
9812 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9813 { (eval echo configure:9814: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9814 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9815 if test -z "$ac_err"; then
9817 eval "ac_cv_header_$ac_safe=yes"
9820 echo "configure: failed program was:" >&5
9821 cat conftest.$ac_ext >&5
9823 eval "ac_cv_header_$ac_safe=no"
9826 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9827 echo "$ac_t""yes" 1>&6
9828 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9829 { test "$extra_verbose" = "yes" && cat << EOF
9832 cat >> confdefs.h <<EOF
9833 #define $ac_tr_hdr 1
9838 echo "$ac_t""no" 1>&6
9843 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
9844 echo "configure:9845: checking for strerror in -lintl" >&5
9845 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
9847 xe_check_libs=" -lintl "
9848 cat > conftest.$ac_ext <<EOF
9849 #line 9850 "configure"
9850 #include "confdefs.h"
9851 /* Override any gcc2 internal prototype to avoid an error. */
9852 /* We use char because int might match the return type of a gcc2
9853 builtin and then its argument prototype would still apply. */
9860 if { (eval echo configure:9861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9862 eval "ac_cv_lib_$ac_lib_var=yes"
9864 echo "configure: failed program was:" >&5
9865 cat conftest.$ac_ext >&5
9867 eval "ac_cv_lib_$ac_lib_var=no"
9872 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9873 echo "$ac_t""yes" 1>&6
9874 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9875 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9876 { test "$extra_verbose" = "yes" && cat << EOF
9879 cat >> confdefs.h <<EOF
9880 #define $ac_tr_lib 1
9884 LIBS="-lintl $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lintl\" to \$LIBS"; fi
9887 echo "$ac_t""no" 1>&6
9892 echo "checking for Mule input methods" 1>&6
9893 echo "configure:9894: checking for Mule input methods" >&5
9894 case "$with_xim" in "" | "yes" )
9895 echo "checking for XIM" 1>&6
9896 echo "configure:9897: checking for XIM" >&5
9898 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6
9899 echo "configure:9900: checking for XOpenIM in -lX11" >&5
9900 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'`
9902 xe_check_libs=" -lX11 "
9903 cat > conftest.$ac_ext <<EOF
9904 #line 9905 "configure"
9905 #include "confdefs.h"
9906 /* Override any gcc2 internal prototype to avoid an error. */
9907 /* We use char because int might match the return type of a gcc2
9908 builtin and then its argument prototype would still apply. */
9915 if { (eval echo configure:9916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9917 eval "ac_cv_lib_$ac_lib_var=yes"
9919 echo "configure: failed program was:" >&5
9920 cat conftest.$ac_ext >&5
9922 eval "ac_cv_lib_$ac_lib_var=no"
9927 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9928 echo "$ac_t""yes" 1>&6
9931 echo "$ac_t""no" 1>&6
9936 if test "$have_motif $have_lesstif" = "yes no"; then
9938 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
9939 echo "configure:9940: checking for XmImMbLookupString in -lXm" >&5
9940 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
9942 xe_check_libs=" -lXm "
9943 cat > conftest.$ac_ext <<EOF
9944 #line 9945 "configure"
9945 #include "confdefs.h"
9946 /* Override any gcc2 internal prototype to avoid an error. */
9947 /* We use char because int might match the return type of a gcc2
9948 builtin and then its argument prototype would still apply. */
9949 char XmImMbLookupString();
9952 XmImMbLookupString()
9955 if { (eval echo configure:9956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9957 eval "ac_cv_lib_$ac_lib_var=yes"
9959 echo "configure: failed program was:" >&5
9960 cat conftest.$ac_ext >&5
9962 eval "ac_cv_lib_$ac_lib_var=no"
9967 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9968 echo "$ac_t""yes" 1>&6
9971 echo "$ac_t""no" 1>&6
9977 if test "$with_xim" != "no"; then
9978 { test "$extra_verbose" = "yes" && cat << \EOF
9981 cat >> confdefs.h <<\EOF
9986 if test "$with_xim" = "xlib"; then
9987 { test "$extra_verbose" = "yes" && cat << \EOF
9990 cat >> confdefs.h <<\EOF
9995 extra_objs="$extra_objs input-method-xlib.o" && if test "$extra_verbose" = "yes"; then
9996 echo " xemacs will be linked with \"input-method-xlib.o\""
9999 if test "$with_xim" = "motif"; then
10000 { test "$extra_verbose" = "yes" && cat << \EOF
10003 cat >> confdefs.h <<\EOF
10004 #define XIM_MOTIF 1
10009 extra_objs="$extra_objs input-method-motif.o" && if test "$extra_verbose" = "yes"; then
10010 echo " xemacs will be linked with \"input-method-motif.o\""
10013 if test "$with_xim" = "motif"; then
10018 if test "$with_xfs" = "yes" ; then
10019 echo "checking for XFontSet" 1>&6
10020 echo "configure:10021: checking for XFontSet" >&5
10022 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6
10023 echo "configure:10024: checking for XmbDrawString in -lX11" >&5
10024 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
10026 xe_check_libs=" -lX11 "
10027 cat > conftest.$ac_ext <<EOF
10028 #line 10029 "configure"
10029 #include "confdefs.h"
10030 /* Override any gcc2 internal prototype to avoid an error. */
10031 /* We use char because int might match the return type of a gcc2
10032 builtin and then its argument prototype would still apply. */
10033 char XmbDrawString();
10039 if { (eval echo configure:10040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10041 eval "ac_cv_lib_$ac_lib_var=yes"
10043 echo "configure: failed program was:" >&5
10044 cat conftest.$ac_ext >&5
10046 eval "ac_cv_lib_$ac_lib_var=no"
10051 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10052 echo "$ac_t""yes" 1>&6
10055 echo "$ac_t""no" 1>&6
10060 if test "$with_xfs" = "yes" && test "$with_menubars" = "lucid"; then
10061 { test "$extra_verbose" = "yes" && cat << \EOF
10062 Defining USE_XFONTSET
10064 cat >> confdefs.h <<\EOF
10065 #define USE_XFONTSET 1
10069 if test "$with_xim" = "no" ; then
10070 extra_objs="$extra_objs input-method-xlib.o" && if test "$extra_verbose" = "yes"; then
10071 echo " xemacs will be linked with \"input-method-xlib.o\""
10076 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
10077 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
10078 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
10079 echo "configure:10080: checking for wnn/jllib.h" >&5
10081 cat > conftest.$ac_ext <<EOF
10082 #line 10083 "configure"
10083 #include "confdefs.h"
10084 #include <wnn/jllib.h>
10086 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10087 { (eval echo configure:10088: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10088 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10089 if test -z "$ac_err"; then
10091 eval "ac_cv_header_$ac_safe=yes"
10094 echo "configure: failed program was:" >&5
10095 cat conftest.$ac_ext >&5
10097 eval "ac_cv_header_$ac_safe=no"
10100 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10101 echo "$ac_t""yes" 1>&6
10104 echo "$ac_t""no" 1>&6
10108 test -z "$with_wnn" && { ac_safe=`echo "wnn/commonhd.h" | sed 'y%./+-%__p_%'`
10109 echo $ac_n "checking for wnn/commonhd.h""... $ac_c" 1>&6
10110 echo "configure:10111: checking for wnn/commonhd.h" >&5
10112 cat > conftest.$ac_ext <<EOF
10113 #line 10114 "configure"
10114 #include "confdefs.h"
10115 #include <wnn/commonhd.h>
10117 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10118 { (eval echo configure:10119: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10119 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10120 if test -z "$ac_err"; then
10122 eval "ac_cv_header_$ac_safe=yes"
10125 echo "configure: failed program was:" >&5
10126 cat conftest.$ac_ext >&5
10128 eval "ac_cv_header_$ac_safe=no"
10131 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10132 echo "$ac_t""yes" 1>&6
10135 echo "$ac_t""no" 1>&6
10139 if test "$with_wnn" != "no"; then
10140 for ac_func in crypt
10142 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10143 echo "configure:10144: checking for $ac_func" >&5
10145 cat > conftest.$ac_ext <<EOF
10146 #line 10147 "configure"
10147 #include "confdefs.h"
10148 /* System header to define __stub macros and hopefully few prototypes,
10149 which can conflict with char $ac_func(); below. */
10150 #include <assert.h>
10151 /* Override any gcc2 internal prototype to avoid an error. */
10152 /* We use char because int might match the return type of a gcc2
10153 builtin and then its argument prototype would still apply. */
10158 /* The GNU C library defines this for functions which it implements
10159 to always fail with ENOSYS. Some functions are actually named
10160 something starting with __ and the normal name is an alias. */
10161 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10169 if { (eval echo configure:10170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10171 eval "ac_cv_func_$ac_func=yes"
10173 echo "configure: failed program was:" >&5
10174 cat conftest.$ac_ext >&5
10176 eval "ac_cv_func_$ac_func=no"
10180 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10181 echo "$ac_t""yes" 1>&6
10182 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10183 { test "$extra_verbose" = "yes" && cat << EOF
10184 Defining $ac_tr_func
10186 cat >> confdefs.h <<EOF
10187 #define $ac_tr_func 1
10192 echo "$ac_t""no" 1>&6
10196 test "$ac_cv_func_crypt" != "yes" && {
10197 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
10198 echo "configure:10199: checking for crypt in -lcrypt" >&5
10199 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
10201 xe_check_libs=" -lcrypt "
10202 cat > conftest.$ac_ext <<EOF
10203 #line 10204 "configure"
10204 #include "confdefs.h"
10205 /* Override any gcc2 internal prototype to avoid an error. */
10206 /* We use char because int might match the return type of a gcc2
10207 builtin and then its argument prototype would still apply. */
10214 if { (eval echo configure:10215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10216 eval "ac_cv_lib_$ac_lib_var=yes"
10218 echo "configure: failed program was:" >&5
10219 cat conftest.$ac_ext >&5
10221 eval "ac_cv_lib_$ac_lib_var=no"
10226 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10227 echo "$ac_t""yes" 1>&6
10228 ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10229 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10230 { test "$extra_verbose" = "yes" && cat << EOF
10231 Defining $ac_tr_lib
10233 cat >> confdefs.h <<EOF
10234 #define $ac_tr_lib 1
10238 LIBS="-lcrypt $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcrypt\" to \$LIBS"; fi
10241 echo "$ac_t""no" 1>&6
10246 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then
10248 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
10249 echo "configure:10250: checking for jl_dic_list_e in -lwnn" >&5
10250 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
10252 xe_check_libs=" -lwnn "
10253 cat > conftest.$ac_ext <<EOF
10254 #line 10255 "configure"
10255 #include "confdefs.h"
10256 /* Override any gcc2 internal prototype to avoid an error. */
10257 /* We use char because int might match the return type of a gcc2
10258 builtin and then its argument prototype would still apply. */
10259 char jl_dic_list_e();
10265 if { (eval echo configure:10266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10267 eval "ac_cv_lib_$ac_lib_var=yes"
10269 echo "configure: failed program was:" >&5
10270 cat conftest.$ac_ext >&5
10272 eval "ac_cv_lib_$ac_lib_var=no"
10277 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10278 echo "$ac_t""yes" 1>&6
10281 echo "$ac_t""no" 1>&6
10282 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6
10283 echo "configure:10284: checking for jl_dic_list_e in -lwnn4" >&5
10284 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
10286 xe_check_libs=" -lwnn4 "
10287 cat > conftest.$ac_ext <<EOF
10288 #line 10289 "configure"
10289 #include "confdefs.h"
10290 /* Override any gcc2 internal prototype to avoid an error. */
10291 /* We use char because int might match the return type of a gcc2
10292 builtin and then its argument prototype would still apply. */
10293 char jl_dic_list_e();
10299 if { (eval echo configure:10300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10301 eval "ac_cv_lib_$ac_lib_var=yes"
10303 echo "configure: failed program was:" >&5
10304 cat conftest.$ac_ext >&5
10306 eval "ac_cv_lib_$ac_lib_var=no"
10311 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10312 echo "$ac_t""yes" 1>&6
10315 echo "$ac_t""no" 1>&6
10316 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6
10317 echo "configure:10318: checking for jl_dic_list_e in -lwnn6" >&5
10318 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
10320 xe_check_libs=" -lwnn6 "
10321 cat > conftest.$ac_ext <<EOF
10322 #line 10323 "configure"
10323 #include "confdefs.h"
10324 /* Override any gcc2 internal prototype to avoid an error. */
10325 /* We use char because int might match the return type of a gcc2
10326 builtin and then its argument prototype would still apply. */
10327 char jl_dic_list_e();
10333 if { (eval echo configure:10334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10335 eval "ac_cv_lib_$ac_lib_var=yes"
10337 echo "configure: failed program was:" >&5
10338 cat conftest.$ac_ext >&5
10340 eval "ac_cv_lib_$ac_lib_var=no"
10345 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10346 echo "$ac_t""yes" 1>&6
10349 echo "$ac_t""no" 1>&6
10350 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6
10351 echo "configure:10352: checking for dic_list_e in -lwnn6_fromsrc" >&5
10352 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'`
10354 xe_check_libs=" -lwnn6_fromsrc "
10355 cat > conftest.$ac_ext <<EOF
10356 #line 10357 "configure"
10357 #include "confdefs.h"
10358 /* Override any gcc2 internal prototype to avoid an error. */
10359 /* We use char because int might match the return type of a gcc2
10360 builtin and then its argument prototype would still apply. */
10367 if { (eval echo configure:10368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10369 eval "ac_cv_lib_$ac_lib_var=yes"
10371 echo "configure: failed program was:" >&5
10372 cat conftest.$ac_ext >&5
10374 eval "ac_cv_lib_$ac_lib_var=no"
10379 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10380 echo "$ac_t""yes" 1>&6
10381 libwnn=wnn6_fromsrc
10383 echo "$ac_t""no" 1>&6
10398 test -z "$with_wnn" && with_wnn=yes
10399 if test "$with_wnn" = "yes"; then
10400 { test "$extra_verbose" = "yes" && cat << \EOF
10403 cat >> confdefs.h <<\EOF
10408 libs_x="-l$libwnn $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$libwnn\" to \$libs_x"; fi
10409 extra_objs="$extra_objs mule-wnnfns.o" && if test "$extra_verbose" = "yes"; then
10410 echo " xemacs will be linked with \"mule-wnnfns.o\""
10412 if test "$with_wnn6" != "no"; then
10414 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6
10415 echo "configure:10416: checking for jl_fi_dic_list in -l$libwnn" >&5
10416 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
10418 xe_check_libs=" -l$libwnn "
10419 cat > conftest.$ac_ext <<EOF
10420 #line 10421 "configure"
10421 #include "confdefs.h"
10422 /* Override any gcc2 internal prototype to avoid an error. */
10423 /* We use char because int might match the return type of a gcc2
10424 builtin and then its argument prototype would still apply. */
10425 char jl_fi_dic_list();
10431 if { (eval echo configure:10432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10433 eval "ac_cv_lib_$ac_lib_var=yes"
10435 echo "configure: failed program was:" >&5
10436 cat conftest.$ac_ext >&5
10438 eval "ac_cv_lib_$ac_lib_var=no"
10443 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10444 echo "$ac_t""yes" 1>&6
10447 echo "$ac_t""no" 1>&6
10451 test "$with_wnn6" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
10454 cat >> confdefs.h <<\EOF
10462 canna_includes_found=no
10463 if test "$with_canna" != "no"; then
10464 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
10465 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
10466 echo "configure:10467: checking for canna/jrkanji.h" >&5
10468 cat > conftest.$ac_ext <<EOF
10469 #line 10470 "configure"
10470 #include "confdefs.h"
10471 #include <canna/jrkanji.h>
10473 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10474 { (eval echo configure:10475: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10475 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10476 if test -z "$ac_err"; then
10478 eval "ac_cv_header_$ac_safe=yes"
10481 echo "configure: failed program was:" >&5
10482 cat conftest.$ac_ext >&5
10484 eval "ac_cv_header_$ac_safe=no"
10487 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10488 echo "$ac_t""yes" 1>&6
10489 canna_includes_found=yes
10491 echo "$ac_t""no" 1>&6
10495 if test "$canna_includes_found" = "no" -a "$with_canna" != "no" -a \
10496 -d "/usr/local/canna/include"; then
10497 save_c_switch_site="$c_switch_site"
10498 c_switch_site="$c_switch_site -I/usr/local/canna/include"
10499 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
10500 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
10501 echo "configure:10502: checking for canna/jrkanji.h" >&5
10503 cat > conftest.$ac_ext <<EOF
10504 #line 10505 "configure"
10505 #include "confdefs.h"
10506 #include <canna/jrkanji.h>
10508 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10509 { (eval echo configure:10510: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10510 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10511 if test -z "$ac_err"; then
10513 eval "ac_cv_header_$ac_safe=yes"
10516 echo "configure: failed program was:" >&5
10517 cat conftest.$ac_ext >&5
10519 eval "ac_cv_header_$ac_safe=no"
10522 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10523 echo "$ac_t""yes" 1>&6
10524 canna_includes_found=yes
10526 echo "$ac_t""no" 1>&6
10529 if test "$canna_includes_found" != "yes"; then
10530 c_switch_site="$save_c_switch_site"
10535 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
10536 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
10537 echo "configure:10538: checking for canna/RK.h" >&5
10539 cat > conftest.$ac_ext <<EOF
10540 #line 10541 "configure"
10541 #include "confdefs.h"
10542 #include <canna/RK.h>
10544 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10545 { (eval echo configure:10546: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10546 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10547 if test -z "$ac_err"; then
10549 eval "ac_cv_header_$ac_safe=yes"
10552 echo "configure: failed program was:" >&5
10553 cat conftest.$ac_ext >&5
10555 eval "ac_cv_header_$ac_safe=no"
10558 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10559 echo "$ac_t""yes" 1>&6
10562 echo "$ac_t""no" 1>&6
10566 test -z "$with_canna" && {
10567 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
10568 echo "configure:10569: checking for RkBgnBun in -lRKC" >&5
10569 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
10571 xe_check_libs=" -lRKC "
10572 cat > conftest.$ac_ext <<EOF
10573 #line 10574 "configure"
10574 #include "confdefs.h"
10575 /* Override any gcc2 internal prototype to avoid an error. */
10576 /* We use char because int might match the return type of a gcc2
10577 builtin and then its argument prototype would still apply. */
10584 if { (eval echo configure:10585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10586 eval "ac_cv_lib_$ac_lib_var=yes"
10588 echo "configure: failed program was:" >&5
10589 cat conftest.$ac_ext >&5
10591 eval "ac_cv_lib_$ac_lib_var=no"
10596 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10597 echo "$ac_t""yes" 1>&6
10600 echo "$ac_t""no" 1>&6
10605 test -z "$with_canna" && {
10606 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
10607 echo "configure:10608: checking for jrKanjiControl in -lcanna" >&5
10608 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
10610 xe_check_libs=" -lcanna "
10611 cat > conftest.$ac_ext <<EOF
10612 #line 10613 "configure"
10613 #include "confdefs.h"
10614 /* Override any gcc2 internal prototype to avoid an error. */
10615 /* We use char because int might match the return type of a gcc2
10616 builtin and then its argument prototype would still apply. */
10617 char jrKanjiControl();
10623 if { (eval echo configure:10624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10625 eval "ac_cv_lib_$ac_lib_var=yes"
10627 echo "configure: failed program was:" >&5
10628 cat conftest.$ac_ext >&5
10630 eval "ac_cv_lib_$ac_lib_var=no"
10635 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10636 echo "$ac_t""yes" 1>&6
10639 echo "$ac_t""no" 1>&6
10644 test -z "$with_canna" && with_canna=yes
10645 if test "$with_canna" = "yes"; then
10646 { test "$extra_verbose" = "yes" && cat << \EOF
10647 Defining HAVE_CANNA
10649 cat >> confdefs.h <<\EOF
10650 #define HAVE_CANNA 1
10654 libs_x="-lcanna -lRKC $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcanna -lRKC\" to \$libs_x"; fi
10655 extra_objs="$extra_objs mule-canna.o" && if test "$extra_verbose" = "yes"; then
10656 echo " xemacs will be linked with \"mule-canna.o\""
10660 else for feature in xim canna wnn; do
10661 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
10662 echo "configure: warning: "--with-${feature} ignored: Not valid without Mule support"" 1>&2
10664 eval "with_${feature}=no"
10668 if test "$need_motif" = "yes" ; then
10669 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi
10671 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6
10672 echo "configure:10673: checking for layout_object_getvalue in -li18n" >&5
10673 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'`
10675 xe_check_libs=" -li18n "
10676 cat > conftest.$ac_ext <<EOF
10677 #line 10678 "configure"
10678 #include "confdefs.h"
10679 /* Override any gcc2 internal prototype to avoid an error. */
10680 /* We use char because int might match the return type of a gcc2
10681 builtin and then its argument prototype would still apply. */
10682 char layout_object_getvalue();
10685 layout_object_getvalue()
10688 if { (eval echo configure:10689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10690 eval "ac_cv_lib_$ac_lib_var=yes"
10692 echo "configure: failed program was:" >&5
10693 cat conftest.$ac_ext >&5
10695 eval "ac_cv_lib_$ac_lib_var=no"
10700 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10701 echo "$ac_t""yes" 1>&6
10702 libs_x="-li18n $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-li18n\" to \$libs_x"; fi
10704 echo "$ac_t""no" 1>&6
10709 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
10710 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
10711 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
10713 runpath="" runpath_dirs=""
10714 if test -n "$LD_RUN_PATH"; then
10715 runpath="$LD_RUN_PATH"
10716 elif test "$GCC" = "yes"; then
10717 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
10718 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
10719 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
10720 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
10721 case "$arg" in P,* | -L* | -R* )
10722 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
10724 xe_runpath_dir="$dir"
10725 test "$xe_runpath_dir" != "/lib" -a \
10726 "$xe_runpath_dir" != "/usr/lib" -a \
10727 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
10728 eval "$xe_add_unique_runpath_dir"
10733 ld_switch_run="$ld_switch_run_save"
10736 for arg in $ld_switch_site $ld_switch_x_site; do
10737 case "$arg" in -L*) {
10738 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
10739 test "$xe_runpath_dir" != "/lib" -a \
10740 "$xe_runpath_dir" != "/usr/lib" -a \
10741 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
10742 eval "$xe_add_unique_runpath_dir"
10745 if test "$opsys $need_motif" = "sol2 yes"; then
10746 xe_runpath_dir="/opt/SUNWdt/lib";
10747 eval "$xe_add_unique_runpath_dir";
10750 if test -n "$runpath"; then
10751 ld_switch_run="${dash_r}${runpath}"
10753 if test "$GCC" = "yes"; then
10754 set x $ld_switch_run; shift; ld_switch_run=""
10755 while test -n "$1"; do
10757 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
10758 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
10760 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
10765 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
10771 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
10773 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10774 echo "configure:10775: checking for $ac_func" >&5
10776 cat > conftest.$ac_ext <<EOF
10777 #line 10778 "configure"
10778 #include "confdefs.h"
10779 /* System header to define __stub macros and hopefully few prototypes,
10780 which can conflict with char $ac_func(); below. */
10781 #include <assert.h>
10782 /* Override any gcc2 internal prototype to avoid an error. */
10783 /* We use char because int might match the return type of a gcc2
10784 builtin and then its argument prototype would still apply. */
10789 /* The GNU C library defines this for functions which it implements
10790 to always fail with ENOSYS. Some functions are actually named
10791 something starting with __ and the normal name is an alias. */
10792 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10800 if { (eval echo configure:10801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10802 eval "ac_cv_func_$ac_func=yes"
10804 echo "configure: failed program was:" >&5
10805 cat conftest.$ac_ext >&5
10807 eval "ac_cv_func_$ac_func=no"
10811 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10812 echo "$ac_t""yes" 1>&6
10813 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10814 { test "$extra_verbose" = "yes" && cat << EOF
10815 Defining $ac_tr_func
10817 cat >> confdefs.h <<EOF
10818 #define $ac_tr_func 1
10823 echo "$ac_t""no" 1>&6
10829 for ac_func in getpt _getpty grantpt unlockpt ptsname killpg tcgetpgrp
10831 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10832 echo "configure:10833: checking for $ac_func" >&5
10834 cat > conftest.$ac_ext <<EOF
10835 #line 10836 "configure"
10836 #include "confdefs.h"
10837 /* System header to define __stub macros and hopefully few prototypes,
10838 which can conflict with char $ac_func(); below. */
10839 #include <assert.h>
10840 /* Override any gcc2 internal prototype to avoid an error. */
10841 /* We use char because int might match the return type of a gcc2
10842 builtin and then its argument prototype would still apply. */
10847 /* The GNU C library defines this for functions which it implements
10848 to always fail with ENOSYS. Some functions are actually named
10849 something starting with __ and the normal name is an alias. */
10850 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10858 if { (eval echo configure:10859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10860 eval "ac_cv_func_$ac_func=yes"
10862 echo "configure: failed program was:" >&5
10863 cat conftest.$ac_ext >&5
10865 eval "ac_cv_func_$ac_func=no"
10869 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10870 echo "$ac_t""yes" 1>&6
10871 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10872 { test "$extra_verbose" = "yes" && cat << EOF
10873 Defining $ac_tr_func
10875 cat >> confdefs.h <<EOF
10876 #define $ac_tr_func 1
10881 echo "$ac_t""no" 1>&6
10886 echo $ac_n "checking for openpty""... $ac_c" 1>&6
10887 echo "configure:10888: checking for openpty" >&5
10889 cat > conftest.$ac_ext <<EOF
10890 #line 10891 "configure"
10891 #include "confdefs.h"
10892 /* System header to define __stub macros and hopefully few prototypes,
10893 which can conflict with char openpty(); below. */
10894 #include <assert.h>
10895 /* Override any gcc2 internal prototype to avoid an error. */
10896 /* We use char because int might match the return type of a gcc2
10897 builtin and then its argument prototype would still apply. */
10902 /* The GNU C library defines this for functions which it implements
10903 to always fail with ENOSYS. Some functions are actually named
10904 something starting with __ and the normal name is an alias. */
10905 #if defined (__stub_openpty) || defined (__stub___openpty)
10913 if { (eval echo configure:10914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10915 eval "ac_cv_func_openpty=yes"
10917 echo "configure: failed program was:" >&5
10918 cat conftest.$ac_ext >&5
10920 eval "ac_cv_func_openpty=no"
10924 if eval "test \"`echo '$ac_cv_func_'openpty`\" = yes"; then
10925 echo "$ac_t""yes" 1>&6
10928 echo "$ac_t""no" 1>&6
10931 echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6
10932 echo "configure:10933: checking for openpty in -lutil" >&5
10933 ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'`
10935 xe_check_libs=" -lutil "
10936 cat > conftest.$ac_ext <<EOF
10937 #line 10938 "configure"
10938 #include "confdefs.h"
10939 /* Override any gcc2 internal prototype to avoid an error. */
10940 /* We use char because int might match the return type of a gcc2
10941 builtin and then its argument prototype would still apply. */
10948 if { (eval echo configure:10949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10950 eval "ac_cv_lib_$ac_lib_var=yes"
10952 echo "configure: failed program was:" >&5
10953 cat conftest.$ac_ext >&5
10955 eval "ac_cv_lib_$ac_lib_var=no"
10960 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10961 echo "$ac_t""yes" 1>&6
10962 have_openpty=yes need_libutil=yes
10964 echo "$ac_t""no" 1>&6
10970 if test "$have_openpty" = "yes"; then
10971 { test "$extra_verbose" = "yes" && cat << \EOF
10972 Defining HAVE_OPENPTY
10974 cat >> confdefs.h <<\EOF
10975 #define HAVE_OPENPTY 1
10979 for ac_hdr in pty.h libutil.h util.h
10981 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10982 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10983 echo "configure:10984: checking for $ac_hdr" >&5
10985 cat > conftest.$ac_ext <<EOF
10986 #line 10987 "configure"
10987 #include "confdefs.h"
10990 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10991 { (eval echo configure:10992: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10992 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10993 if test -z "$ac_err"; then
10995 eval "ac_cv_header_$ac_safe=yes"
10998 echo "configure: failed program was:" >&5
10999 cat conftest.$ac_ext >&5
11001 eval "ac_cv_header_$ac_safe=no"
11004 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11005 echo "$ac_t""yes" 1>&6
11006 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11007 { test "$extra_verbose" = "yes" && cat << EOF
11008 Defining $ac_tr_hdr
11010 cat >> confdefs.h <<EOF
11011 #define $ac_tr_hdr 1
11016 echo "$ac_t""no" 1>&6
11020 test "$need_libutil" = "yes" && libs_system="$libs_system -lutil" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lutil\" to \$libs_system"; fi
11023 for ac_hdr in stropts.h
11025 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11026 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11027 echo "configure:11028: checking for $ac_hdr" >&5
11029 cat > conftest.$ac_ext <<EOF
11030 #line 11031 "configure"
11031 #include "confdefs.h"
11034 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11035 { (eval echo configure:11036: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11036 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11037 if test -z "$ac_err"; then
11039 eval "ac_cv_header_$ac_safe=yes"
11042 echo "configure: failed program was:" >&5
11043 cat conftest.$ac_ext >&5
11045 eval "ac_cv_header_$ac_safe=no"
11048 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11049 echo "$ac_t""yes" 1>&6
11050 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11051 { test "$extra_verbose" = "yes" && cat << EOF
11052 Defining $ac_tr_hdr
11054 cat >> confdefs.h <<EOF
11055 #define $ac_tr_hdr 1
11060 echo "$ac_t""no" 1>&6
11064 if test "$ac_cv_header_stropts_h" = "yes"; then
11065 for ac_func in isastream
11067 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11068 echo "configure:11069: checking for $ac_func" >&5
11070 cat > conftest.$ac_ext <<EOF
11071 #line 11072 "configure"
11072 #include "confdefs.h"
11073 /* System header to define __stub macros and hopefully few prototypes,
11074 which can conflict with char $ac_func(); below. */
11075 #include <assert.h>
11076 /* Override any gcc2 internal prototype to avoid an error. */
11077 /* We use char because int might match the return type of a gcc2
11078 builtin and then its argument prototype would still apply. */
11083 /* The GNU C library defines this for functions which it implements
11084 to always fail with ENOSYS. Some functions are actually named
11085 something starting with __ and the normal name is an alias. */
11086 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11094 if { (eval echo configure:11095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11096 eval "ac_cv_func_$ac_func=yes"
11098 echo "configure: failed program was:" >&5
11099 cat conftest.$ac_ext >&5
11101 eval "ac_cv_func_$ac_func=no"
11105 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11106 echo "$ac_t""yes" 1>&6
11107 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11108 { test "$extra_verbose" = "yes" && cat << EOF
11109 Defining $ac_tr_func
11111 cat >> confdefs.h <<EOF
11112 #define $ac_tr_func 1
11117 echo "$ac_t""no" 1>&6
11121 for ac_hdr in strtio.h
11123 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11124 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11125 echo "configure:11126: checking for $ac_hdr" >&5
11127 cat > conftest.$ac_ext <<EOF
11128 #line 11129 "configure"
11129 #include "confdefs.h"
11132 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11133 { (eval echo configure:11134: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11134 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11135 if test -z "$ac_err"; then
11137 eval "ac_cv_header_$ac_safe=yes"
11140 echo "configure: failed program was:" >&5
11141 cat conftest.$ac_ext >&5
11143 eval "ac_cv_header_$ac_safe=no"
11146 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11147 echo "$ac_t""yes" 1>&6
11148 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11149 { test "$extra_verbose" = "yes" && cat << EOF
11150 Defining $ac_tr_hdr
11152 cat >> confdefs.h <<EOF
11153 #define $ac_tr_hdr 1
11158 echo "$ac_t""no" 1>&6
11163 extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
11164 echo " xemacs will be linked with \"realpath.o\""
11167 for ac_func in getloadavg
11169 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11170 echo "configure:11171: checking for $ac_func" >&5
11172 cat > conftest.$ac_ext <<EOF
11173 #line 11174 "configure"
11174 #include "confdefs.h"
11175 /* System header to define __stub macros and hopefully few prototypes,
11176 which can conflict with char $ac_func(); below. */
11177 #include <assert.h>
11178 /* Override any gcc2 internal prototype to avoid an error. */
11179 /* We use char because int might match the return type of a gcc2
11180 builtin and then its argument prototype would still apply. */
11185 /* The GNU C library defines this for functions which it implements
11186 to always fail with ENOSYS. Some functions are actually named
11187 something starting with __ and the normal name is an alias. */
11188 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11196 if { (eval echo configure:11197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11198 eval "ac_cv_func_$ac_func=yes"
11200 echo "configure: failed program was:" >&5
11201 cat conftest.$ac_ext >&5
11203 eval "ac_cv_func_$ac_func=no"
11207 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11208 echo "$ac_t""yes" 1>&6
11209 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11210 { test "$extra_verbose" = "yes" && cat << EOF
11211 Defining $ac_tr_func
11213 cat >> confdefs.h <<EOF
11214 #define $ac_tr_func 1
11219 echo "$ac_t""no" 1>&6
11224 if test "$ac_cv_func_getloadavg" = "yes"; then
11225 for ac_hdr in sys/loadavg.h
11227 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11228 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11229 echo "configure:11230: checking for $ac_hdr" >&5
11231 cat > conftest.$ac_ext <<EOF
11232 #line 11233 "configure"
11233 #include "confdefs.h"
11236 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11237 { (eval echo configure:11238: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11238 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11239 if test -z "$ac_err"; then
11241 eval "ac_cv_header_$ac_safe=yes"
11244 echo "configure: failed program was:" >&5
11245 cat conftest.$ac_ext >&5
11247 eval "ac_cv_header_$ac_safe=no"
11250 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11251 echo "$ac_t""yes" 1>&6
11252 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11253 { test "$extra_verbose" = "yes" && cat << EOF
11254 Defining $ac_tr_hdr
11256 cat >> confdefs.h <<EOF
11257 #define $ac_tr_hdr 1
11262 echo "$ac_t""no" 1>&6
11267 extra_objs="$extra_objs getloadavg.o" && if test "$extra_verbose" = "yes"; then
11268 echo " xemacs will be linked with \"getloadavg.o\""
11272 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
11273 echo "configure:11274: checking for kstat_open in -lkstat" >&5
11274 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
11276 xe_check_libs=" -lkstat "
11277 cat > conftest.$ac_ext <<EOF
11278 #line 11279 "configure"
11279 #include "confdefs.h"
11280 /* Override any gcc2 internal prototype to avoid an error. */
11281 /* We use char because int might match the return type of a gcc2
11282 builtin and then its argument prototype would still apply. */
11289 if { (eval echo configure:11290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11291 eval "ac_cv_lib_$ac_lib_var=yes"
11293 echo "configure: failed program was:" >&5
11294 cat conftest.$ac_ext >&5
11296 eval "ac_cv_lib_$ac_lib_var=no"
11301 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11302 echo "$ac_t""yes" 1>&6
11303 ac_tr_lib=HAVE_LIB`echo kstat | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11304 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11305 { test "$extra_verbose" = "yes" && cat << EOF
11306 Defining $ac_tr_lib
11308 cat >> confdefs.h <<EOF
11309 #define $ac_tr_lib 1
11313 LIBS="-lkstat $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkstat\" to \$LIBS"; fi
11316 echo "$ac_t""no" 1>&6
11320 for ac_hdr in kstat.h
11322 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11323 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11324 echo "configure:11325: checking for $ac_hdr" >&5
11326 cat > conftest.$ac_ext <<EOF
11327 #line 11328 "configure"
11328 #include "confdefs.h"
11331 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11332 { (eval echo configure:11333: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11333 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11334 if test -z "$ac_err"; then
11336 eval "ac_cv_header_$ac_safe=yes"
11339 echo "configure: failed program was:" >&5
11340 cat conftest.$ac_ext >&5
11342 eval "ac_cv_header_$ac_safe=no"
11345 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11346 echo "$ac_t""yes" 1>&6
11347 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11348 { test "$extra_verbose" = "yes" && cat << EOF
11349 Defining $ac_tr_hdr
11351 cat >> confdefs.h <<EOF
11352 #define $ac_tr_hdr 1
11357 echo "$ac_t""no" 1>&6
11363 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
11364 echo "configure:11365: checking for kvm_read in -lkvm" >&5
11365 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
11367 xe_check_libs=" -lkvm "
11368 cat > conftest.$ac_ext <<EOF
11369 #line 11370 "configure"
11370 #include "confdefs.h"
11371 /* Override any gcc2 internal prototype to avoid an error. */
11372 /* We use char because int might match the return type of a gcc2
11373 builtin and then its argument prototype would still apply. */
11380 if { (eval echo configure:11381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11382 eval "ac_cv_lib_$ac_lib_var=yes"
11384 echo "configure: failed program was:" >&5
11385 cat conftest.$ac_ext >&5
11387 eval "ac_cv_lib_$ac_lib_var=no"
11392 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11393 echo "$ac_t""yes" 1>&6
11394 ac_tr_lib=HAVE_LIB`echo kvm | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11395 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11396 { test "$extra_verbose" = "yes" && cat << EOF
11397 Defining $ac_tr_lib
11399 cat >> confdefs.h <<EOF
11400 #define $ac_tr_lib 1
11404 LIBS="-lkvm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkvm\" to \$LIBS"; fi
11407 echo "$ac_t""no" 1>&6
11413 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
11414 echo "configure:11415: checking whether netdb declares h_errno" >&5
11415 cat > conftest.$ac_ext <<EOF
11416 #line 11417 "configure"
11417 #include "confdefs.h"
11423 if { (eval echo configure:11424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11425 echo "$ac_t""yes" 1>&6
11426 { test "$extra_verbose" = "yes" && cat << \EOF
11427 Defining HAVE_H_ERRNO
11429 cat >> confdefs.h <<\EOF
11430 #define HAVE_H_ERRNO 1
11435 echo "configure: failed program was:" >&5
11436 cat conftest.$ac_ext >&5
11438 echo "$ac_t""no" 1>&6
11442 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
11443 echo "configure:11444: checking for sigsetjmp" >&5
11444 cat > conftest.$ac_ext <<EOF
11445 #line 11446 "configure"
11446 #include "confdefs.h"
11447 #include <setjmp.h>
11449 sigjmp_buf bar; sigsetjmp (bar, 0);
11452 if { (eval echo configure:11453: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11454 echo "$ac_t""yes" 1>&6
11455 { test "$extra_verbose" = "yes" && cat << \EOF
11456 Defining HAVE_SIGSETJMP
11458 cat >> confdefs.h <<\EOF
11459 #define HAVE_SIGSETJMP 1
11464 echo "configure: failed program was:" >&5
11465 cat conftest.$ac_ext >&5
11467 echo "$ac_t""no" 1>&6
11471 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
11472 echo "configure:11473: checking whether localtime caches TZ" >&5
11474 if test "$ac_cv_func_tzset" = "yes"; then
11475 cat > conftest.$ac_ext <<EOF
11476 #line 11477 "configure"
11477 #include "confdefs.h"
11480 # include <stdlib.h>
11482 extern char **environ;
11486 for (to = from = environ; (*to = *from); from++)
11487 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
11490 char TZ_GMT0[] = "TZ=GMT0";
11491 char TZ_PST8[] = "TZ=PST8";
11494 time_t now = time ((time_t *) 0);
11495 int hour_GMT0, hour_unset;
11496 if (putenv (TZ_GMT0) != 0)
11498 hour_GMT0 = localtime (&now)->tm_hour;
11500 hour_unset = localtime (&now)->tm_hour;
11501 if (putenv (TZ_PST8) != 0)
11503 if (localtime (&now)->tm_hour == hour_GMT0)
11506 if (localtime (&now)->tm_hour != hour_unset)
11511 if { (eval echo configure:11512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11513 emacs_cv_localtime_cache=no
11516 echo "configure: failed program was:" >&5
11517 cat conftest.$ac_ext >&5
11519 emacs_cv_localtime_cache=yes
11523 # If we lack tzset, report that localtime does not cache TZ,
11524 # since we can't invalidate the cache if we don't have tzset.
11525 emacs_cv_localtime_cache=no
11527 echo "$ac_t""$emacs_cv_localtime_cache" 1>&6
11528 if test $emacs_cv_localtime_cache = yes; then
11529 { test "$extra_verbose" = "yes" && cat << \EOF
11530 Defining LOCALTIME_CACHE
11532 cat >> confdefs.h <<\EOF
11533 #define LOCALTIME_CACHE 1
11539 if test "$HAVE_TIMEVAL" = "yes"; then
11540 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6
11541 echo "configure:11542: checking whether gettimeofday accepts one or two arguments" >&5
11542 cat > conftest.$ac_ext <<EOF
11543 #line 11544 "configure"
11544 #include "confdefs.h"
11546 #ifdef TIME_WITH_SYS_TIME
11547 #include <sys/time.h>
11550 #ifdef HAVE_SYS_TIME_H
11551 #include <sys/time.h>
11559 struct timeval time;
11560 gettimeofday (&time, 0);
11564 if { (eval echo configure:11565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11566 echo "$ac_t""two" 1>&6
11568 echo "configure: failed program was:" >&5
11569 cat conftest.$ac_ext >&5
11571 echo "$ac_t""one" 1>&6
11572 { test "$extra_verbose" = "yes" && cat << \EOF
11573 Defining GETTIMEOFDAY_ONE_ARGUMENT
11575 cat >> confdefs.h <<\EOF
11576 #define GETTIMEOFDAY_ONE_ARGUMENT 1
11585 echo $ac_n "checking for inline""... $ac_c" 1>&6
11586 echo "configure:11587: checking for inline" >&5
11589 for ac_kw in inline __inline__ __inline; do
11590 cat > conftest.$ac_ext <<EOF
11591 #line 11592 "configure"
11592 #include "confdefs.h"
11598 if { (eval echo configure:11599: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11600 ac_cv_c_inline=$ac_kw; break
11602 echo "configure: failed program was:" >&5
11603 cat conftest.$ac_ext >&5
11609 echo "$ac_t""$ac_cv_c_inline" 1>&6
11610 case "$ac_cv_c_inline" in
11612 no) { test "$extra_verbose" = "yes" && cat << \EOF
11615 cat >> confdefs.h <<\EOF
11620 *) { test "$extra_verbose" = "yes" && cat << EOF
11621 Defining inline = $ac_cv_c_inline
11623 cat >> confdefs.h <<EOF
11624 #define inline $ac_cv_c_inline
11630 test "$ac_cv_c_inline" != "no" -a "$GCC" = "yes" && extra_objs="$extra_objs inline.o" && if test "$extra_verbose" = "yes"; then
11631 echo " xemacs will be linked with \"inline.o\""
11635 if test "$__DECC" != "yes"; then
11636 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11637 # for constant arguments. Useless!
11638 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
11639 echo "configure:11640: checking for working alloca.h" >&5
11641 cat > conftest.$ac_ext <<EOF
11642 #line 11643 "configure"
11643 #include "confdefs.h"
11644 #include <alloca.h>
11646 char *p = alloca(2 * sizeof(int));
11649 if { (eval echo configure:11650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11651 ac_cv_header_alloca_h=yes
11653 echo "configure: failed program was:" >&5
11654 cat conftest.$ac_ext >&5
11656 ac_cv_header_alloca_h=no
11660 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
11661 if test $ac_cv_header_alloca_h = yes; then
11662 { test "$extra_verbose" = "yes" && cat << \EOF
11663 Defining HAVE_ALLOCA_H
11665 cat >> confdefs.h <<\EOF
11666 #define HAVE_ALLOCA_H 1
11672 echo $ac_n "checking for alloca""... $ac_c" 1>&6
11673 echo "configure:11674: checking for alloca" >&5
11675 cat > conftest.$ac_ext <<EOF
11676 #line 11677 "configure"
11677 #include "confdefs.h"
11680 # define alloca __builtin_alloca
11683 # include <malloc.h>
11684 # define alloca _alloca
11687 # include <alloca.h>
11692 # ifndef alloca /* predefined by HP cc +Olibcalls */
11701 char *p = (char *) alloca(1);
11704 if { (eval echo configure:11705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11706 ac_cv_func_alloca_works=yes
11708 echo "configure: failed program was:" >&5
11709 cat conftest.$ac_ext >&5
11711 ac_cv_func_alloca_works=no
11715 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
11716 if test $ac_cv_func_alloca_works = yes; then
11717 { test "$extra_verbose" = "yes" && cat << \EOF
11718 Defining HAVE_ALLOCA
11720 cat >> confdefs.h <<\EOF
11721 #define HAVE_ALLOCA 1
11727 if test $ac_cv_func_alloca_works = no; then
11728 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11729 # that cause trouble. Some versions do not even contain alloca or
11730 # contain a buggy version. If you still want to use their alloca,
11731 # use ar to extract alloca.o from them instead of compiling alloca.c.
11732 ALLOCA=alloca.${ac_objext}
11733 { test "$extra_verbose" = "yes" && cat << \EOF
11736 cat >> confdefs.h <<\EOF
11742 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
11743 echo "configure:11744: checking whether alloca needs Cray hooks" >&5
11745 cat > conftest.$ac_ext <<EOF
11746 #line 11747 "configure"
11747 #include "confdefs.h"
11748 #if defined(CRAY) && ! defined(CRAY2)
11755 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11756 egrep "webecray" >/dev/null 2>&1; then
11766 echo "$ac_t""$ac_cv_os_cray" 1>&6
11767 if test $ac_cv_os_cray = yes; then
11768 for ac_func in _getb67 GETB67 getb67; do
11769 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11770 echo "configure:11771: checking for $ac_func" >&5
11772 cat > conftest.$ac_ext <<EOF
11773 #line 11774 "configure"
11774 #include "confdefs.h"
11775 /* System header to define __stub macros and hopefully few prototypes,
11776 which can conflict with char $ac_func(); below. */
11777 #include <assert.h>
11778 /* Override any gcc2 internal prototype to avoid an error. */
11779 /* We use char because int might match the return type of a gcc2
11780 builtin and then its argument prototype would still apply. */
11785 /* The GNU C library defines this for functions which it implements
11786 to always fail with ENOSYS. Some functions are actually named
11787 something starting with __ and the normal name is an alias. */
11788 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11796 if { (eval echo configure:11797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11798 eval "ac_cv_func_$ac_func=yes"
11800 echo "configure: failed program was:" >&5
11801 cat conftest.$ac_ext >&5
11803 eval "ac_cv_func_$ac_func=no"
11807 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11808 echo "$ac_t""yes" 1>&6
11809 { test "$extra_verbose" = "yes" && cat << EOF
11810 Defining CRAY_STACKSEG_END = $ac_func
11812 cat >> confdefs.h <<EOF
11813 #define CRAY_STACKSEG_END $ac_func
11819 echo "$ac_t""no" 1>&6
11825 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
11826 echo "configure:11827: checking stack direction for C alloca" >&5
11828 cat > conftest.$ac_ext <<EOF
11829 #line 11830 "configure"
11830 #include "confdefs.h"
11831 find_stack_direction ()
11833 static char *addr = 0;
11838 return find_stack_direction ();
11841 return (&dummy > addr) ? 1 : -1;
11845 exit (find_stack_direction() < 0);
11848 if { (eval echo configure:11849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11850 ac_cv_c_stack_direction=1
11853 echo "configure: failed program was:" >&5
11854 cat conftest.$ac_ext >&5
11856 ac_cv_c_stack_direction=-1
11860 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
11861 { test "$extra_verbose" = "yes" && cat << EOF
11862 Defining STACK_DIRECTION = $ac_cv_c_stack_direction
11864 cat >> confdefs.h <<EOF
11865 #define STACK_DIRECTION $ac_cv_c_stack_direction
11871 test -n "$ALLOCA" && extra_objs="$extra_objs $ALLOCA" && if test "$extra_verbose" = "yes"; then
11872 echo " xemacs will be linked with \"$ALLOCA\""
11876 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
11877 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
11878 echo "configure:11879: checking for vfork.h" >&5
11880 cat > conftest.$ac_ext <<EOF
11881 #line 11882 "configure"
11882 #include "confdefs.h"
11885 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11886 { (eval echo configure:11887: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11887 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11888 if test -z "$ac_err"; then
11890 eval "ac_cv_header_$ac_safe=yes"
11893 echo "configure: failed program was:" >&5
11894 cat conftest.$ac_ext >&5
11896 eval "ac_cv_header_$ac_safe=no"
11899 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11900 echo "$ac_t""yes" 1>&6
11901 { test "$extra_verbose" = "yes" && cat << \EOF
11902 Defining HAVE_VFORK_H
11904 cat >> confdefs.h <<\EOF
11905 #define HAVE_VFORK_H 1
11910 echo "$ac_t""no" 1>&6
11913 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
11914 echo "configure:11915: checking for working vfork" >&5
11916 cat > conftest.$ac_ext <<EOF
11917 #line 11918 "configure"
11918 #include "confdefs.h"
11919 /* Thanks to Paul Eggert for this test. */
11921 #include <sys/types.h>
11922 #include <sys/stat.h>
11923 #ifdef HAVE_UNISTD_H
11924 #include <unistd.h>
11926 #ifdef HAVE_VFORK_H
11929 /* On some sparc systems, changes by the child to local and incoming
11930 argument registers are propagated back to the parent.
11931 The compiler is told about this with #include <vfork.h>,
11932 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
11933 Test for this by using a static variable whose address
11934 is put into a register that is clobbered by the vfork. */
11937 sparc_address_test (int arg)
11939 sparc_address_test (arg) int arg;
11942 static pid_t child;
11957 pid_t parent = getpid ();
11960 sparc_address_test ();
11965 /* Here is another test for sparc vfork register problems.
11966 This test uses lots of local variables, at least
11967 as many local variables as main has allocated so far
11968 including compiler temporaries. 4 locals are enough for
11969 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
11970 A buggy compiler should reuse the register of parent
11971 for one of the local variables, since it will think that
11972 parent can't possibly be used any more in this routine.
11973 Assigning to the local variable will thus munge parent
11974 in the parent process. */
11976 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11977 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11978 /* Convince the compiler that p..p7 are live; otherwise, it might
11979 use the same hardware register for all 8 local variables. */
11980 if (p != p1 || p != p2 || p != p3 || p != p4
11981 || p != p5 || p != p6 || p != p7)
11984 /* On some systems (e.g. IRIX 3.3),
11985 vfork doesn't separate parent from child file descriptors.
11986 If the child closes a descriptor before it execs or exits,
11987 this munges the parent's descriptor as well.
11988 Test for this by closing stdout in the child. */
11989 _exit(close(fileno(stdout)) != 0);
11994 while (wait(&status) != child)
11997 /* Was there some problem with vforking? */
12000 /* Did the child fail? (This shouldn't happen.) */
12003 /* Did the vfork/compiler bug occur? */
12004 || parent != getpid()
12006 /* Did the file descriptor bug occur? */
12007 || fstat(fileno(stdout), &st) != 0
12012 if { (eval echo configure:12013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12014 ac_cv_func_vfork_works=yes
12017 echo "configure: failed program was:" >&5
12018 cat conftest.$ac_ext >&5
12020 ac_cv_func_vfork_works=no
12024 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
12025 if test $ac_cv_func_vfork_works = no; then
12026 { test "$extra_verbose" = "yes" && cat << \EOF
12027 Defining vfork = fork
12029 cat >> confdefs.h <<\EOF
12037 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
12038 echo "configure:12039: checking for working strcoll" >&5
12040 cat > conftest.$ac_ext <<EOF
12041 #line 12042 "configure"
12042 #include "confdefs.h"
12043 #include <string.h>
12046 exit (strcoll ("abc", "def") >= 0 ||
12047 strcoll ("ABC", "DEF") >= 0 ||
12048 strcoll ("123", "456") >= 0);
12051 if { (eval echo configure:12052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12053 ac_cv_func_strcoll_works=yes
12056 echo "configure: failed program was:" >&5
12057 cat conftest.$ac_ext >&5
12059 ac_cv_func_strcoll_works=no
12063 echo "$ac_t""$ac_cv_func_strcoll_works" 1>&6
12064 if test $ac_cv_func_strcoll_works = yes; then
12065 { test "$extra_verbose" = "yes" && cat << \EOF
12066 Defining HAVE_STRCOLL
12068 cat >> confdefs.h <<\EOF
12069 #define HAVE_STRCOLL 1
12076 for ac_func in getpgrp
12078 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12079 echo "configure:12080: checking for $ac_func" >&5
12081 cat > conftest.$ac_ext <<EOF
12082 #line 12083 "configure"
12083 #include "confdefs.h"
12084 /* System header to define __stub macros and hopefully few prototypes,
12085 which can conflict with char $ac_func(); below. */
12086 #include <assert.h>
12087 /* Override any gcc2 internal prototype to avoid an error. */
12088 /* We use char because int might match the return type of a gcc2
12089 builtin and then its argument prototype would still apply. */
12094 /* The GNU C library defines this for functions which it implements
12095 to always fail with ENOSYS. Some functions are actually named
12096 something starting with __ and the normal name is an alias. */
12097 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12105 if { (eval echo configure:12106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12107 eval "ac_cv_func_$ac_func=yes"
12109 echo "configure: failed program was:" >&5
12110 cat conftest.$ac_ext >&5
12112 eval "ac_cv_func_$ac_func=no"
12116 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12117 echo "$ac_t""yes" 1>&6
12118 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12119 { test "$extra_verbose" = "yes" && cat << EOF
12120 Defining $ac_tr_func
12122 cat >> confdefs.h <<EOF
12123 #define $ac_tr_func 1
12128 echo "$ac_t""no" 1>&6
12132 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
12133 echo "configure:12134: checking whether getpgrp takes no argument" >&5
12135 cat > conftest.$ac_ext <<EOF
12136 #line 12137 "configure"
12137 #include "confdefs.h"
12140 * If this system has a BSD-style getpgrp(),
12141 * which takes a pid argument, exit unsuccessfully.
12143 * Snarfed from Chet Ramey's bash pgrp.c test program
12146 #include <sys/types.h>
12149 int pg1, pg2, pg3, pg4;
12150 int ng, np, s, child;
12157 pg3 = getpgrp(pid);
12161 * If all of these values are the same, it's pretty sure that
12162 * we're on a system that ignores getpgrp's first argument.
12164 if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3)
12170 else if (child == 0) {
12173 * If this is Sys V, this will not work; pgrp will be
12174 * set to np because setpgrp just changes a pgrp to be
12175 * the same as the pid.
12178 ng = getpgrp(0); /* Same result for Sys V and BSD */
12191 if { (eval echo configure:12192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12193 ac_cv_func_getpgrp_void=yes
12196 echo "configure: failed program was:" >&5
12197 cat conftest.$ac_ext >&5
12199 ac_cv_func_getpgrp_void=no
12204 echo "$ac_t""$ac_cv_func_getpgrp_void" 1>&6
12205 if test $ac_cv_func_getpgrp_void = yes; then
12206 { test "$extra_verbose" = "yes" && cat << \EOF
12207 Defining GETPGRP_VOID
12209 cat >> confdefs.h <<\EOF
12210 #define GETPGRP_VOID 1
12217 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
12218 echo "configure:12219: checking for working mmap" >&5
12219 case "$opsys" in ultrix* ) have_mmap=no ;; *)
12220 cat > conftest.$ac_ext <<EOF
12221 #line 12222 "configure"
12222 #include "confdefs.h"
12224 #include <unistd.h>
12226 #include <sys/mman.h>
12228 #ifndef MAP_VARIABLE
12229 #define MAP_VARIABLE 0
12233 #define MAP_FAILED -1
12236 int main (int argc, char *argv[])
12240 #ifndef MAP_ANONYMOUS
12241 fd = open ("/dev/zero", O_RDWR);
12244 #define MAP_ANONYMOUS 0
12246 if (mmap(0, 1024, PROT_READ | PROT_WRITE,
12247 MAP_PRIVATE | MAP_VARIABLE | MAP_ANONYMOUS,
12248 fd, 0) != (void *) MAP_FAILED)
12250 perror ("conftest: mmap failed");
12254 if { (eval echo configure:12255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12259 echo "configure: failed program was:" >&5
12260 cat conftest.$ac_ext >&5
12264 rm -fr conftest* ;;
12266 echo "$ac_t""$have_mmap" 1>&6
12267 test "$have_mmap" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
12270 cat >> confdefs.h <<\EOF
12271 #define HAVE_MMAP 1
12276 case "$opsys" in cygwin*)
12277 test "$rel_alloc" = "default" && rel_alloc=no ;;
12279 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no
12280 if test "$rel_alloc $have_mmap" = "default yes"; then
12281 if test "$doug_lea_malloc" = "yes"; then
12282 echo $ac_n "checking for M_MMAP_THRESHOLD""... $ac_c" 1>&6
12283 echo "configure:12284: checking for M_MMAP_THRESHOLD" >&5
12284 cat > conftest.$ac_ext <<EOF
12285 #line 12286 "configure"
12286 #include "confdefs.h"
12287 #include <malloc.h>
12290 #ifndef M_MMAP_THRESHOLD
12291 #error No M_MMAP_THRESHOLD :-(
12292 !@+$%^&*_)(_ - unlikely to compile...
12297 if { (eval echo configure:12298: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12299 rel_alloc=no; echo "$ac_t""yes" 1>&6;
12301 echo "configure: failed program was:" >&5
12302 cat conftest.$ac_ext >&5
12304 rel_alloc=yes; echo "$ac_t""no" 1>&6;
12311 test "$rel_alloc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
12314 cat >> confdefs.h <<\EOF
12315 #define REL_ALLOC 1
12320 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
12321 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
12322 echo "configure:12323: checking for termios.h" >&5
12324 cat > conftest.$ac_ext <<EOF
12325 #line 12326 "configure"
12326 #include "confdefs.h"
12327 #include <termios.h>
12329 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12330 { (eval echo configure:12331: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12331 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12332 if test -z "$ac_err"; then
12334 eval "ac_cv_header_$ac_safe=yes"
12337 echo "configure: failed program was:" >&5
12338 cat conftest.$ac_ext >&5
12340 eval "ac_cv_header_$ac_safe=no"
12343 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12344 echo "$ac_t""yes" 1>&6
12345 { test "$extra_verbose" = "yes" && cat << \EOF
12346 Defining HAVE_TERMIOS
12348 cat >> confdefs.h <<\EOF
12349 #define HAVE_TERMIOS 1
12353 { test "$extra_verbose" = "yes" && cat << \EOF
12354 Defining SIGNALS_VIA_CHARACTERS
12356 cat >> confdefs.h <<\EOF
12357 #define SIGNALS_VIA_CHARACTERS 1
12361 { test "$extra_verbose" = "yes" && cat << \EOF
12364 cat >> confdefs.h <<\EOF
12365 #define NO_TERMIO 1
12370 echo "$ac_t""no" 1>&6
12371 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
12372 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
12373 echo "configure:12374: checking for termio.h" >&5
12375 cat > conftest.$ac_ext <<EOF
12376 #line 12377 "configure"
12377 #include "confdefs.h"
12378 #include <termio.h>
12380 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12381 { (eval echo configure:12382: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12382 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12383 if test -z "$ac_err"; then
12385 eval "ac_cv_header_$ac_safe=yes"
12388 echo "configure: failed program was:" >&5
12389 cat conftest.$ac_ext >&5
12391 eval "ac_cv_header_$ac_safe=no"
12394 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12395 echo "$ac_t""yes" 1>&6
12396 { test "$extra_verbose" = "yes" && cat << \EOF
12397 Defining HAVE_TERMIO
12399 cat >> confdefs.h <<\EOF
12400 #define HAVE_TERMIO 1
12405 echo "$ac_t""no" 1>&6
12412 echo $ac_n "checking for socket""... $ac_c" 1>&6
12413 echo "configure:12414: checking for socket" >&5
12415 cat > conftest.$ac_ext <<EOF
12416 #line 12417 "configure"
12417 #include "confdefs.h"
12418 /* System header to define __stub macros and hopefully few prototypes,
12419 which can conflict with char socket(); below. */
12420 #include <assert.h>
12421 /* Override any gcc2 internal prototype to avoid an error. */
12422 /* We use char because int might match the return type of a gcc2
12423 builtin and then its argument prototype would still apply. */
12428 /* The GNU C library defines this for functions which it implements
12429 to always fail with ENOSYS. Some functions are actually named
12430 something starting with __ and the normal name is an alias. */
12431 #if defined (__stub_socket) || defined (__stub___socket)
12439 if { (eval echo configure:12440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12441 eval "ac_cv_func_socket=yes"
12443 echo "configure: failed program was:" >&5
12444 cat conftest.$ac_ext >&5
12446 eval "ac_cv_func_socket=no"
12450 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
12451 echo "$ac_t""yes" 1>&6
12452 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
12453 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
12454 echo "configure:12455: checking for netinet/in.h" >&5
12456 cat > conftest.$ac_ext <<EOF
12457 #line 12458 "configure"
12458 #include "confdefs.h"
12459 #include <netinet/in.h>
12461 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12462 { (eval echo configure:12463: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12463 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12464 if test -z "$ac_err"; then
12466 eval "ac_cv_header_$ac_safe=yes"
12469 echo "configure: failed program was:" >&5
12470 cat conftest.$ac_ext >&5
12472 eval "ac_cv_header_$ac_safe=no"
12475 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12476 echo "$ac_t""yes" 1>&6
12477 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
12478 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
12479 echo "configure:12480: checking for arpa/inet.h" >&5
12481 cat > conftest.$ac_ext <<EOF
12482 #line 12483 "configure"
12483 #include "confdefs.h"
12484 #include <arpa/inet.h>
12486 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12487 { (eval echo configure:12488: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12488 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12489 if test -z "$ac_err"; then
12491 eval "ac_cv_header_$ac_safe=yes"
12494 echo "configure: failed program was:" >&5
12495 cat conftest.$ac_ext >&5
12497 eval "ac_cv_header_$ac_safe=no"
12500 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12501 echo "$ac_t""yes" 1>&6
12503 { test "$extra_verbose" = "yes" && cat << \EOF
12504 Defining HAVE_SOCKETS
12506 cat >> confdefs.h <<\EOF
12507 #define HAVE_SOCKETS 1
12511 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
12512 echo "configure:12513: checking "for sun_len member in struct sockaddr_un"" >&5
12513 cat > conftest.$ac_ext <<EOF
12514 #line 12515 "configure"
12515 #include "confdefs.h"
12517 #include <sys/types.h>
12518 #include <sys/socket.h>
12519 #include <sys/un.h>
12522 static struct sockaddr_un x; x.sun_len = 1;
12525 if { (eval echo configure:12526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12527 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
12528 Defining HAVE_SOCKADDR_SUN_LEN
12530 cat >> confdefs.h <<\EOF
12531 #define HAVE_SOCKADDR_SUN_LEN 1
12536 echo "configure: failed program was:" >&5
12537 cat conftest.$ac_ext >&5
12539 echo "$ac_t""no" 1>&6
12542 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6
12543 echo "configure:12544: checking "for ip_mreq struct in netinet/in.h"" >&5
12544 cat > conftest.$ac_ext <<EOF
12545 #line 12546 "configure"
12546 #include "confdefs.h"
12548 #include <sys/types.h>
12549 #include <netinet/in.h>
12552 static struct ip_mreq x;
12555 if { (eval echo configure:12556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12557 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
12558 Defining HAVE_MULTICAST
12560 cat >> confdefs.h <<\EOF
12561 #define HAVE_MULTICAST 1
12566 echo "configure: failed program was:" >&5
12567 cat conftest.$ac_ext >&5
12569 echo "$ac_t""no" 1>&6
12573 echo "$ac_t""no" 1>&6
12577 echo "$ac_t""no" 1>&6
12581 echo "$ac_t""no" 1>&6
12585 echo $ac_n "checking for msgget""... $ac_c" 1>&6
12586 echo "configure:12587: checking for msgget" >&5
12588 cat > conftest.$ac_ext <<EOF
12589 #line 12590 "configure"
12590 #include "confdefs.h"
12591 /* System header to define __stub macros and hopefully few prototypes,
12592 which can conflict with char msgget(); below. */
12593 #include <assert.h>
12594 /* Override any gcc2 internal prototype to avoid an error. */
12595 /* We use char because int might match the return type of a gcc2
12596 builtin and then its argument prototype would still apply. */
12601 /* The GNU C library defines this for functions which it implements
12602 to always fail with ENOSYS. Some functions are actually named
12603 something starting with __ and the normal name is an alias. */
12604 #if defined (__stub_msgget) || defined (__stub___msgget)
12612 if { (eval echo configure:12613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12614 eval "ac_cv_func_msgget=yes"
12616 echo "configure: failed program was:" >&5
12617 cat conftest.$ac_ext >&5
12619 eval "ac_cv_func_msgget=no"
12623 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
12624 echo "$ac_t""yes" 1>&6
12625 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
12626 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
12627 echo "configure:12628: checking for sys/ipc.h" >&5
12629 cat > conftest.$ac_ext <<EOF
12630 #line 12631 "configure"
12631 #include "confdefs.h"
12632 #include <sys/ipc.h>
12634 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12635 { (eval echo configure:12636: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12636 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12637 if test -z "$ac_err"; then
12639 eval "ac_cv_header_$ac_safe=yes"
12642 echo "configure: failed program was:" >&5
12643 cat conftest.$ac_ext >&5
12645 eval "ac_cv_header_$ac_safe=no"
12648 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12649 echo "$ac_t""yes" 1>&6
12650 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
12651 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
12652 echo "configure:12653: checking for sys/msg.h" >&5
12654 cat > conftest.$ac_ext <<EOF
12655 #line 12656 "configure"
12656 #include "confdefs.h"
12657 #include <sys/msg.h>
12659 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12660 { (eval echo configure:12661: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12661 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12662 if test -z "$ac_err"; then
12664 eval "ac_cv_header_$ac_safe=yes"
12667 echo "configure: failed program was:" >&5
12668 cat conftest.$ac_ext >&5
12670 eval "ac_cv_header_$ac_safe=no"
12673 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12674 echo "$ac_t""yes" 1>&6
12675 { test "$extra_verbose" = "yes" && cat << \EOF
12676 Defining HAVE_SYSVIPC
12678 cat >> confdefs.h <<\EOF
12679 #define HAVE_SYSVIPC 1
12684 echo "$ac_t""no" 1>&6
12688 echo "$ac_t""no" 1>&6
12692 echo "$ac_t""no" 1>&6
12696 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
12697 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
12698 echo "configure:12699: checking for dirent.h" >&5
12700 cat > conftest.$ac_ext <<EOF
12701 #line 12702 "configure"
12702 #include "confdefs.h"
12703 #include <dirent.h>
12705 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12706 { (eval echo configure:12707: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12707 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12708 if test -z "$ac_err"; then
12710 eval "ac_cv_header_$ac_safe=yes"
12713 echo "configure: failed program was:" >&5
12714 cat conftest.$ac_ext >&5
12716 eval "ac_cv_header_$ac_safe=no"
12719 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12720 echo "$ac_t""yes" 1>&6
12721 { test "$extra_verbose" = "yes" && cat << \EOF
12722 Defining SYSV_SYSTEM_DIR
12724 cat >> confdefs.h <<\EOF
12725 #define SYSV_SYSTEM_DIR 1
12730 echo "$ac_t""no" 1>&6
12731 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
12732 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
12733 echo "configure:12734: checking for sys/dir.h" >&5
12735 cat > conftest.$ac_ext <<EOF
12736 #line 12737 "configure"
12737 #include "confdefs.h"
12738 #include <sys/dir.h>
12740 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12741 { (eval echo configure:12742: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12742 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12743 if test -z "$ac_err"; then
12745 eval "ac_cv_header_$ac_safe=yes"
12748 echo "configure: failed program was:" >&5
12749 cat conftest.$ac_ext >&5
12751 eval "ac_cv_header_$ac_safe=no"
12754 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12755 echo "$ac_t""yes" 1>&6
12758 echo "$ac_t""no" 1>&6
12759 { test "$extra_verbose" = "yes" && cat << \EOF
12760 Defining NONSYSTEM_DIR_LIBRARY
12762 cat >> confdefs.h <<\EOF
12763 #define NONSYSTEM_DIR_LIBRARY 1
12772 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
12773 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
12774 echo "configure:12775: checking for nlist.h" >&5
12776 cat > conftest.$ac_ext <<EOF
12777 #line 12778 "configure"
12778 #include "confdefs.h"
12781 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12782 { (eval echo configure:12783: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12783 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12784 if test -z "$ac_err"; then
12786 eval "ac_cv_header_$ac_safe=yes"
12789 echo "configure: failed program was:" >&5
12790 cat conftest.$ac_ext >&5
12792 eval "ac_cv_header_$ac_safe=no"
12795 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12796 echo "$ac_t""yes" 1>&6
12797 { test "$extra_verbose" = "yes" && cat << \EOF
12798 Defining NLIST_STRUCT
12800 cat >> confdefs.h <<\EOF
12801 #define NLIST_STRUCT 1
12806 echo "$ac_t""no" 1>&6
12811 echo "checking "for sound support"" 1>&6
12812 echo "configure:12813: checking "for sound support"" >&5
12813 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
12815 if test "$with_native_sound" != "no"; then
12816 if test -n "$native_sound_lib"; then
12817 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
12818 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
12819 echo "configure:12820: checking for multimedia/audio_device.h" >&5
12821 cat > conftest.$ac_ext <<EOF
12822 #line 12823 "configure"
12823 #include "confdefs.h"
12824 #include <multimedia/audio_device.h>
12826 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12827 { (eval echo configure:12828: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12828 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12829 if test -z "$ac_err"; then
12831 eval "ac_cv_header_$ac_safe=yes"
12834 echo "configure: failed program was:" >&5
12835 cat conftest.$ac_ext >&5
12837 eval "ac_cv_header_$ac_safe=no"
12840 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12841 echo "$ac_t""yes" 1>&6
12842 sound_found=yes sound_cflags=""
12843 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
12844 echo " xemacs will be linked with \"sunplay.o\""
12847 echo "$ac_t""no" 1>&6
12852 if test -z "$sound_found" -a -d "/usr/demo/SOUND"; then
12854 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
12855 echo " xemacs will be linked with \"sunplay.o\""
12857 if test -d "/usr/demo/SOUND/include"
12858 then sound_cflags="-I/usr/demo/SOUND/include"
12859 else sound_cflags="-I/usr/demo/SOUND"
12861 if test -z "$native_sound_lib" ; then
12862 if test -r "/usr/demo/SOUND/lib/libaudio.a"
12863 then native_sound_lib="/usr/demo/SOUND/lib/libaudio.a"
12864 else native_sound_lib="/usr/demo/SOUND/libaudio.a"
12869 if test -z "$sound_found"; then
12870 case "$canonical" in
12872 if test -z "$native_sound_lib"; then
12874 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
12875 echo "configure:12876: checking for ALopenport in -laudio" >&5
12876 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
12878 xe_check_libs=" -laudio "
12879 cat > conftest.$ac_ext <<EOF
12880 #line 12881 "configure"
12881 #include "confdefs.h"
12882 /* Override any gcc2 internal prototype to avoid an error. */
12883 /* We use char because int might match the return type of a gcc2
12884 builtin and then its argument prototype would still apply. */
12891 if { (eval echo configure:12892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12893 eval "ac_cv_lib_$ac_lib_var=yes"
12895 echo "configure: failed program was:" >&5
12896 cat conftest.$ac_ext >&5
12898 eval "ac_cv_lib_$ac_lib_var=no"
12903 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12904 echo "$ac_t""yes" 1>&6
12905 native_sound_lib="-laudio"
12907 echo "$ac_t""no" 1>&6
12912 if test -n "$native_sound_lib"; then
12913 sound_found=yes sound_cflags=""
12914 extra_objs="$extra_objs sgiplay.o" && if test "$extra_verbose" = "yes"; then
12915 echo " xemacs will be linked with \"sgiplay.o\""
12919 if test -z "$native_sound_lib"; then
12921 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
12922 echo "configure:12923: checking for AOpenAudio in -lAlib" >&5
12923 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
12925 xe_check_libs=" -lAlib "
12926 cat > conftest.$ac_ext <<EOF
12927 #line 12928 "configure"
12928 #include "confdefs.h"
12929 /* Override any gcc2 internal prototype to avoid an error. */
12930 /* We use char because int might match the return type of a gcc2
12931 builtin and then its argument prototype would still apply. */
12938 if { (eval echo configure:12939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12940 eval "ac_cv_lib_$ac_lib_var=yes"
12942 echo "configure: failed program was:" >&5
12943 cat conftest.$ac_ext >&5
12945 eval "ac_cv_lib_$ac_lib_var=no"
12950 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12951 echo "$ac_t""yes" 1>&6
12952 native_sound_lib="-lAlib"
12954 echo "$ac_t""no" 1>&6
12959 if test -n "$native_sound_lib"; then
12961 extra_objs="$extra_objs hpplay.o" && if test "$extra_verbose" = "yes"; then
12962 echo " xemacs will be linked with \"hpplay.o\""
12964 if test "$GCC" = "yes" # Kludge city
12965 then sound_cflags="-Dconst= -Dvolatile= -I/usr/audio/examples"
12966 else sound_cflags="+e -I/usr/audio/examples"
12972 if test -z "$sound_found"; then
12973 for dir in "machine" "sys" "linux"; do
12974 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
12975 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
12976 echo "configure:12977: checking for ${dir}/soundcard.h" >&5
12978 cat > conftest.$ac_ext <<EOF
12979 #line 12980 "configure"
12980 #include "confdefs.h"
12981 #include <${dir}/soundcard.h>
12983 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12984 { (eval echo configure:12985: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12985 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12986 if test -z "$ac_err"; then
12988 eval "ac_cv_header_$ac_safe=yes"
12991 echo "configure: failed program was:" >&5
12992 cat conftest.$ac_ext >&5
12994 eval "ac_cv_header_$ac_safe=no"
12997 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12998 echo "$ac_t""yes" 1>&6
13001 extra_objs="$extra_objs linuxplay.o" && if test "$extra_verbose" = "yes"; then
13002 echo " xemacs will be linked with \"linuxplay.o\""
13004 { test "$extra_verbose" = "yes" && cat << EOF
13005 Defining SOUNDCARD_H_FILE = "${dir}/soundcard.h"
13007 cat >> confdefs.h <<EOF
13008 #define SOUNDCARD_H_FILE "${dir}/soundcard.h"
13014 echo "$ac_t""no" 1>&6
13020 if test -z "$sound_found"; then
13021 if test "$with_msw" = "yes"; then
13027 test "$sound_found" = "yes" && with_native_sound=yes
13030 if test "$with_native_sound" = "yes"; then
13031 { test "$extra_verbose" = "yes" && cat << \EOF
13032 Defining HAVE_NATIVE_SOUND
13034 cat >> confdefs.h <<\EOF
13035 #define HAVE_NATIVE_SOUND 1
13039 test -n "$native_sound_lib" && LIBS="$native_sound_lib $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$native_sound_lib\" to \$LIBS"; fi
13042 if test "$with_nas_sound" != "no"; then
13043 ac_safe=`echo "audio/audiolib.h" | sed 'y%./+-%__p_%'`
13044 echo $ac_n "checking for audio/audiolib.h""... $ac_c" 1>&6
13045 echo "configure:13046: checking for audio/audiolib.h" >&5
13047 cat > conftest.$ac_ext <<EOF
13048 #line 13049 "configure"
13049 #include "confdefs.h"
13050 #include <audio/audiolib.h>
13052 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13053 { (eval echo configure:13054: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13054 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13055 if test -z "$ac_err"; then
13057 eval "ac_cv_header_$ac_safe=yes"
13060 echo "configure: failed program was:" >&5
13061 cat conftest.$ac_ext >&5
13063 eval "ac_cv_header_$ac_safe=no"
13066 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13067 echo "$ac_t""yes" 1>&6
13070 echo $ac_n "checking for AuOpenServer in -laudio""... $ac_c" 1>&6
13071 echo "configure:13072: checking for AuOpenServer in -laudio" >&5
13072 ac_lib_var=`echo audio'_'AuOpenServer | sed 'y%./+-%__p_%'`
13074 xe_check_libs=" -laudio "
13075 cat > conftest.$ac_ext <<EOF
13076 #line 13077 "configure"
13077 #include "confdefs.h"
13078 /* Override any gcc2 internal prototype to avoid an error. */
13079 /* We use char because int might match the return type of a gcc2
13080 builtin and then its argument prototype would still apply. */
13081 char AuOpenServer();
13087 if { (eval echo configure:13088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13089 eval "ac_cv_lib_$ac_lib_var=yes"
13091 echo "configure: failed program was:" >&5
13092 cat conftest.$ac_ext >&5
13094 eval "ac_cv_lib_$ac_lib_var=no"
13099 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13100 echo "$ac_t""yes" 1>&6
13103 echo "$ac_t""no" 1>&6
13108 echo "$ac_t""no" 1>&6
13111 if test "$have_nas_sound" = "yes"; then
13113 { test "$extra_verbose" = "yes" && cat << \EOF
13114 Defining HAVE_NAS_SOUND
13116 cat >> confdefs.h <<\EOF
13117 #define HAVE_NAS_SOUND 1
13121 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
13122 echo " xemacs will be linked with \"nas.o\""
13124 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi
13125 cat > conftest.$ac_ext <<EOF
13126 #line 13127 "configure"
13127 #include "confdefs.h"
13128 #include <audio/Xtutil.h>
13130 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13131 egrep "AuXtErrorJump" >/dev/null 2>&1; then
13135 old_nas=yes; { test "$extra_verbose" = "yes" && cat << \EOF
13136 Defining NAS_NO_ERROR_JUMP
13138 cat >> confdefs.h <<\EOF
13139 #define NAS_NO_ERROR_JUMP 1
13147 test "$with_nas_sound" = "yes" && \
13148 { echo "Error:" "Required NAS sound support cannot be provided." >&2; exit 1; }
13153 if test "$with_esd_sound" != "no"; then
13154 # Extract the first word of "esd-config", so it can be a program name with args.
13155 set dummy esd-config; ac_word=$2
13156 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
13157 echo "configure:13158: checking for $ac_word" >&5
13159 if test -n "$have_esd_config"; then
13160 ac_cv_prog_have_esd_config="$have_esd_config" # Let the user override the test.
13162 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
13164 for ac_dir in $ac_dummy; do
13165 test -z "$ac_dir" && ac_dir=.
13166 if test -f $ac_dir/$ac_word; then
13167 ac_cv_prog_have_esd_config="yes"
13172 test -z "$ac_cv_prog_have_esd_config" && ac_cv_prog_have_esd_config="no"
13174 have_esd_config="$ac_cv_prog_have_esd_config"
13175 if test -n "$have_esd_config"; then
13176 echo "$ac_t""$have_esd_config" 1>&6
13178 echo "$ac_t""no" 1>&6
13181 if test "$have_esd_config" = "yes"; then
13182 save_c_switch_site="$c_switch_site" save_LIBS="$LIBS"
13183 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
13184 LIBS="`esd-config --libs` $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"`esd-config --libs`\" to \$LIBS"; fi
13185 echo $ac_n "checking for esd_play_stream""... $ac_c" 1>&6
13186 echo "configure:13187: checking for esd_play_stream" >&5
13188 cat > conftest.$ac_ext <<EOF
13189 #line 13190 "configure"
13190 #include "confdefs.h"
13191 /* System header to define __stub macros and hopefully few prototypes,
13192 which can conflict with char esd_play_stream(); below. */
13193 #include <assert.h>
13194 /* Override any gcc2 internal prototype to avoid an error. */
13195 /* We use char because int might match the return type of a gcc2
13196 builtin and then its argument prototype would still apply. */
13197 char esd_play_stream();
13201 /* The GNU C library defines this for functions which it implements
13202 to always fail with ENOSYS. Some functions are actually named
13203 something starting with __ and the normal name is an alias. */
13204 #if defined (__stub_esd_play_stream) || defined (__stub___esd_play_stream)
13212 if { (eval echo configure:13213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13214 eval "ac_cv_func_esd_play_stream=yes"
13216 echo "configure: failed program was:" >&5
13217 cat conftest.$ac_ext >&5
13219 eval "ac_cv_func_esd_play_stream=no"
13223 if eval "test \"`echo '$ac_cv_func_'esd_play_stream`\" = yes"; then
13224 echo "$ac_t""yes" 1>&6
13227 echo "$ac_t""no" 1>&6
13228 c_switch_site="$save_c_switch_site" LIBS="$save_LIBS"
13233 if test "$have_esd_sound" = "yes"; then
13236 extra_objs="$extra_objs esd.o" && if test "$extra_verbose" = "yes"; then
13237 echo " xemacs will be linked with \"esd.o\""
13239 { test "$extra_verbose" = "yes" && cat << \EOF
13240 Defining HAVE_ESD_SOUND
13242 cat >> confdefs.h <<\EOF
13243 #define HAVE_ESD_SOUND 1
13248 test "$with_esd_sound" = "yes" && \
13249 { echo "Error:" "Required ESD sound support cannot be provided." >&2; exit 1; }
13254 test "$need_miscplay" = "yes" && extra_objs="$extra_objs miscplay.o" && if test "$extra_verbose" = "yes"; then
13255 echo " xemacs will be linked with \"miscplay.o\""
13259 test -z "$with_tty" && with_tty=yes
13261 if test "$with_tty" = "yes" ; then
13262 echo "checking for TTY-related features" 1>&6
13263 echo "configure:13264: checking for TTY-related features" >&5
13264 { test "$extra_verbose" = "yes" && cat << \EOF
13267 cat >> confdefs.h <<\EOF
13272 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
13273 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\""
13276 if test -z "$with_ncurses"; then
13278 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
13279 echo "configure:13280: checking for tgetent in -lncurses" >&5
13280 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
13282 xe_check_libs=" -lncurses "
13283 cat > conftest.$ac_ext <<EOF
13284 #line 13285 "configure"
13285 #include "confdefs.h"
13286 /* Override any gcc2 internal prototype to avoid an error. */
13287 /* We use char because int might match the return type of a gcc2
13288 builtin and then its argument prototype would still apply. */
13295 if { (eval echo configure:13296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13297 eval "ac_cv_lib_$ac_lib_var=yes"
13299 echo "configure: failed program was:" >&5
13300 cat conftest.$ac_ext >&5
13302 eval "ac_cv_lib_$ac_lib_var=no"
13307 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13308 echo "$ac_t""yes" 1>&6
13311 echo "$ac_t""no" 1>&6
13317 if test "$with_ncurses" = "yes"; then
13318 { test "$extra_verbose" = "yes" && cat << \EOF
13319 Defining HAVE_NCURSES
13321 cat >> confdefs.h <<\EOF
13322 #define HAVE_NCURSES 1
13326 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
13327 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
13328 echo "configure:13329: checking for ncurses/curses.h" >&5
13330 cat > conftest.$ac_ext <<EOF
13331 #line 13332 "configure"
13332 #include "confdefs.h"
13333 #include <ncurses/curses.h>
13335 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13336 { (eval echo configure:13337: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13337 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13338 if test -z "$ac_err"; then
13340 eval "ac_cv_header_$ac_safe=yes"
13343 echo "configure: failed program was:" >&5
13344 cat conftest.$ac_ext >&5
13346 eval "ac_cv_header_$ac_safe=no"
13349 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13350 echo "$ac_t""yes" 1>&6
13351 curses_h_file=ncurses/curses.h
13353 echo "$ac_t""no" 1>&6
13356 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
13357 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
13358 echo "configure:13359: checking for ncurses/term.h" >&5
13360 cat > conftest.$ac_ext <<EOF
13361 #line 13362 "configure"
13362 #include "confdefs.h"
13363 #include <ncurses/term.h>
13365 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13366 { (eval echo configure:13367: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13367 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13368 if test -z "$ac_err"; then
13370 eval "ac_cv_header_$ac_safe=yes"
13373 echo "configure: failed program was:" >&5
13374 cat conftest.$ac_ext >&5
13376 eval "ac_cv_header_$ac_safe=no"
13379 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13380 echo "$ac_t""yes" 1>&6
13381 term_h_file=ncurses/term.h
13383 echo "$ac_t""no" 1>&6
13386 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
13387 echo " xemacs will be linked with \"terminfo.o\""
13389 LIBS="-lncurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lncurses\" to \$LIBS"; fi
13391 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
13392 save_c_switch_site="$c_switch_site"
13393 c_switch_site="$c_switch_site -I/usr/include/ncurses"
13394 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
13395 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
13396 echo "configure:13397: checking for ncurses/curses.h" >&5
13398 cat > conftest.$ac_ext <<EOF
13399 #line 13400 "configure"
13400 #include "confdefs.h"
13401 #include <ncurses/curses.h>
13403 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13404 { (eval echo configure:13405: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13405 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13406 if test -z "$ac_err"; then
13408 eval "ac_cv_header_$ac_safe=yes"
13411 echo "configure: failed program was:" >&5
13412 cat conftest.$ac_ext >&5
13414 eval "ac_cv_header_$ac_safe=no"
13417 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13418 echo "$ac_t""yes" 1>&6
13419 curses_h_file=ncurses/curses.h
13421 echo "$ac_t""no" 1>&6
13424 if test "$ac_cv_header_ncurses_curses_h" = "yes"
13425 then echo "configure: warning: "Your system has the bogus ncurses include bug."" 1>&2
13426 else c_switch_site="$save_c_switch_site"
13429 else if test "$have_terminfo" = "yes"; then
13430 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
13431 echo " xemacs will be linked with \"terminfo.o\""
13433 if test -n "$libs_termcap"; then
13434 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
13436 for lib in curses termlib termcap; do
13438 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
13439 echo "configure:13440: checking for tgetent in -l$lib" >&5
13440 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
13442 xe_check_libs=" -l$lib "
13443 cat > conftest.$ac_ext <<EOF
13444 #line 13445 "configure"
13445 #include "confdefs.h"
13446 /* Override any gcc2 internal prototype to avoid an error. */
13447 /* We use char because int might match the return type of a gcc2
13448 builtin and then its argument prototype would still apply. */
13455 if { (eval echo configure:13456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13457 eval "ac_cv_lib_$ac_lib_var=yes"
13459 echo "configure: failed program was:" >&5
13460 cat conftest.$ac_ext >&5
13462 eval "ac_cv_lib_$ac_lib_var=no"
13467 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13468 echo "$ac_t""yes" 1>&6
13469 LIBS="-l${lib} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${lib}\" to \$LIBS"; fi; break
13471 echo "$ac_t""no" 1>&6
13477 else extra_objs="$extra_objs tparam.o" && if test "$extra_verbose" = "yes"; then
13478 echo " xemacs will be linked with \"tparam.o\""
13480 case "$opsys" in *-hp-hpux* ) libs_termcap="-ltermcap" ;; esac
13481 if test -n "$libs_termcap"; then
13482 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
13485 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
13486 echo "configure:13487: checking for tgetent in -lcurses" >&5
13487 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
13489 xe_check_libs=" -lcurses "
13490 cat > conftest.$ac_ext <<EOF
13491 #line 13492 "configure"
13492 #include "confdefs.h"
13493 /* Override any gcc2 internal prototype to avoid an error. */
13494 /* We use char because int might match the return type of a gcc2
13495 builtin and then its argument prototype would still apply. */
13502 if { (eval echo configure:13503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13504 eval "ac_cv_lib_$ac_lib_var=yes"
13506 echo "configure: failed program was:" >&5
13507 cat conftest.$ac_ext >&5
13509 eval "ac_cv_lib_$ac_lib_var=no"
13514 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13515 echo "$ac_t""yes" 1>&6
13516 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
13518 echo "$ac_t""no" 1>&6
13519 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
13520 echo "configure:13521: checking for tgetent in -ltermcap" >&5
13521 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
13523 xe_check_libs=" -ltermcap "
13524 cat > conftest.$ac_ext <<EOF
13525 #line 13526 "configure"
13526 #include "confdefs.h"
13527 /* Override any gcc2 internal prototype to avoid an error. */
13528 /* We use char because int might match the return type of a gcc2
13529 builtin and then its argument prototype would still apply. */
13536 if { (eval echo configure:13537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13538 eval "ac_cv_lib_$ac_lib_var=yes"
13540 echo "configure: failed program was:" >&5
13541 cat conftest.$ac_ext >&5
13543 eval "ac_cv_lib_$ac_lib_var=no"
13548 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13549 echo "$ac_t""yes" 1>&6
13550 LIBS="-ltermcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltermcap\" to \$LIBS"; fi
13552 echo "$ac_t""no" 1>&6
13553 extra_objs="$extra_objs termcap.o" && if test "$extra_verbose" = "yes"; then
13554 echo " xemacs will be linked with \"termcap.o\""
13565 { test "$extra_verbose" = "yes" && cat << EOF
13566 Defining CURSES_H_FILE = "${curses_h_file-curses.h}"
13568 cat >> confdefs.h <<EOF
13569 #define CURSES_H_FILE "${curses_h_file-curses.h}"
13573 { test "$extra_verbose" = "yes" && cat << EOF
13574 Defining TERM_H_FILE = "${term_h_file-term.h}"
13576 cat >> confdefs.h <<EOF
13577 #define TERM_H_FILE "${term_h_file-term.h}"
13582 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
13583 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
13584 echo "configure:13585: checking for gpm.h" >&5
13586 cat > conftest.$ac_ext <<EOF
13587 #line 13588 "configure"
13588 #include "confdefs.h"
13591 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13592 { (eval echo configure:13593: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13593 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13594 if test -z "$ac_err"; then
13596 eval "ac_cv_header_$ac_safe=yes"
13599 echo "configure: failed program was:" >&5
13600 cat conftest.$ac_ext >&5
13602 eval "ac_cv_header_$ac_safe=no"
13605 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13606 echo "$ac_t""yes" 1>&6
13609 echo "$ac_t""no" 1>&6
13613 test -z "$with_gpm" && {
13614 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
13615 echo "configure:13616: checking for Gpm_Open in -lgpm" >&5
13616 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
13618 xe_check_libs=" -lgpm "
13619 cat > conftest.$ac_ext <<EOF
13620 #line 13621 "configure"
13621 #include "confdefs.h"
13622 /* Override any gcc2 internal prototype to avoid an error. */
13623 /* We use char because int might match the return type of a gcc2
13624 builtin and then its argument prototype would still apply. */
13631 if { (eval echo configure:13632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13633 eval "ac_cv_lib_$ac_lib_var=yes"
13635 echo "configure: failed program was:" >&5
13636 cat conftest.$ac_ext >&5
13638 eval "ac_cv_lib_$ac_lib_var=no"
13643 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13644 echo "$ac_t""yes" 1>&6
13647 echo "$ac_t""no" 1>&6
13652 if test "$with_gpm" = "yes"; then
13653 { test "$extra_verbose" = "yes" && cat << \EOF
13656 cat >> confdefs.h <<\EOF
13661 extra_objs="$extra_objs gpmevent.o" && if test "$extra_verbose" = "yes"; then
13662 echo " xemacs will be linked with \"gpmevent.o\""
13664 LIBS="-lgpm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgpm\" to \$LIBS"; fi
13667 else for feature in ncurses gpm; do
13668 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
13669 echo "configure: warning: "--with-${feature} ignored: Not valid without TTY support"" 1>&2
13671 eval "with_${feature}=no"
13674 test "$with_x11" = "yes" -o "$with_tty" = "yes" && extra_objs="$extra_objs event-unixoid.o" && if test "$extra_verbose" = "yes"; then
13675 echo " xemacs will be linked with \"event-unixoid.o\""
13679 test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
13680 != "no no no" && echo "checking for database support" 1>&6
13681 echo "configure:13682: checking for database support" >&5
13683 if test "$with_database_gdbm $with_database_dbm" != "no no"; then
13684 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'`
13685 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6
13686 echo "configure:13687: checking for ndbm.h" >&5
13688 cat > conftest.$ac_ext <<EOF
13689 #line 13690 "configure"
13690 #include "confdefs.h"
13693 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13694 { (eval echo configure:13695: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13695 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13696 if test -z "$ac_err"; then
13698 eval "ac_cv_header_$ac_safe=yes"
13701 echo "configure: failed program was:" >&5
13702 cat conftest.$ac_ext >&5
13704 eval "ac_cv_header_$ac_safe=no"
13707 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13708 echo "$ac_t""yes" 1>&6
13711 echo "$ac_t""no" 1>&6
13713 test "$with_database_gdbm" = "yes" -o \
13714 "$with_database_dbm" = "yes" && \
13715 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
13716 with_database_gdbm=no with_database_dbm=no
13721 if test "$with_database_gdbm" != "no"; then
13723 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
13724 echo "configure:13725: checking for dbm_open in -lgdbm" >&5
13725 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
13727 xe_check_libs=" -lgdbm "
13728 cat > conftest.$ac_ext <<EOF
13729 #line 13730 "configure"
13730 #include "confdefs.h"
13731 /* Override any gcc2 internal prototype to avoid an error. */
13732 /* We use char because int might match the return type of a gcc2
13733 builtin and then its argument prototype would still apply. */
13740 if { (eval echo configure:13741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13742 eval "ac_cv_lib_$ac_lib_var=yes"
13744 echo "configure: failed program was:" >&5
13745 cat conftest.$ac_ext >&5
13747 eval "ac_cv_lib_$ac_lib_var=no"
13752 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13753 echo "$ac_t""yes" 1>&6
13754 with_database_gdbm=yes with_database_dbm=no libdbm=-lgdbm
13756 echo "$ac_t""no" 1>&6
13757 if test "$with_database_gdbm" = "yes"; then
13758 { echo "Error:" "Required GNU DBM support cannot be provided." >&2; exit 1; }
13760 with_database_gdbm=no
13766 if test "$with_database_dbm" != "no"; then
13767 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
13768 echo "configure:13769: checking for dbm_open" >&5
13770 cat > conftest.$ac_ext <<EOF
13771 #line 13772 "configure"
13772 #include "confdefs.h"
13773 /* System header to define __stub macros and hopefully few prototypes,
13774 which can conflict with char dbm_open(); below. */
13775 #include <assert.h>
13776 /* Override any gcc2 internal prototype to avoid an error. */
13777 /* We use char because int might match the return type of a gcc2
13778 builtin and then its argument prototype would still apply. */
13783 /* The GNU C library defines this for functions which it implements
13784 to always fail with ENOSYS. Some functions are actually named
13785 something starting with __ and the normal name is an alias. */
13786 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
13794 if { (eval echo configure:13795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13796 eval "ac_cv_func_dbm_open=yes"
13798 echo "configure: failed program was:" >&5
13799 cat conftest.$ac_ext >&5
13801 eval "ac_cv_func_dbm_open=no"
13805 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
13806 echo "$ac_t""yes" 1>&6
13807 with_database_dbm=yes libdbm=
13809 echo "$ac_t""no" 1>&6
13812 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
13813 echo "configure:13814: checking for dbm_open in -ldbm" >&5
13814 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
13816 xe_check_libs=" -ldbm "
13817 cat > conftest.$ac_ext <<EOF
13818 #line 13819 "configure"
13819 #include "confdefs.h"
13820 /* Override any gcc2 internal prototype to avoid an error. */
13821 /* We use char because int might match the return type of a gcc2
13822 builtin and then its argument prototype would still apply. */
13829 if { (eval echo configure:13830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13831 eval "ac_cv_lib_$ac_lib_var=yes"
13833 echo "configure: failed program was:" >&5
13834 cat conftest.$ac_ext >&5
13836 eval "ac_cv_lib_$ac_lib_var=no"
13841 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13842 echo "$ac_t""yes" 1>&6
13843 with_database_dbm=yes libdbm=-ldbm
13845 echo "$ac_t""no" 1>&6
13846 test "$with_database_dbm" = "yes" && \
13847 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
13848 with_database_dbm=no
13856 test -n "$libdbm" && LIBS=""$libdbm" $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libdbm"\" to \$LIBS"; fi
13857 test "$with_database_gdbm" = "yes" -o \
13858 "$with_database_dbm" = "yes" && \
13859 { test "$extra_verbose" = "yes" && cat << \EOF
13862 cat >> confdefs.h <<\EOF
13868 if test "$with_database_berkdb" != "no"; then
13869 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6
13870 echo "configure:13871: checking for Berkeley db.h" >&5
13871 for header in "db/db.h" "db.h"; do
13872 cat > conftest.$ac_ext <<EOF
13873 #line 13874 "configure"
13874 #include "confdefs.h"
13876 #include <stdlib.h>
13877 #if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1)
13878 #ifdef HAVE_INTTYPES_H
13879 #define __BIT_TYPES_DEFINED__
13880 #include <inttypes.h>
13881 typedef uint8_t u_int8_t;
13882 typedef uint16_t u_int16_t;
13883 typedef uint32_t u_int32_t;
13884 #ifdef WE_DONT_NEED_QUADS
13885 typedef uint64_t u_int64_t;
13895 if { (eval echo configure:13896: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13897 db_h_file="$header"; break
13899 echo "configure: failed program was:" >&5
13900 cat conftest.$ac_ext >&5
13904 if test -z "$db_h_file"
13905 then echo "$ac_t""no" 1>&6; with_database_berkdb=no
13906 else echo "$ac_t""$db_h_file" 1>&6
13909 if test "$with_database_berkdb" != "no"; then
13910 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6
13911 echo "configure:13912: checking for Berkeley DB version" >&5
13912 cat > conftest.$ac_ext <<EOF
13913 #line 13914 "configure"
13914 #include "confdefs.h"
13915 #include <$db_h_file>
13916 #if DB_VERSION_MAJOR > 1
13921 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13922 egrep "yes" >/dev/null 2>&1; then
13924 cat > conftest.$ac_ext <<EOF
13925 #line 13926 "configure"
13926 #include "confdefs.h"
13927 #include <$db_h_file>
13928 #if DB_VERSION_MAJOR > 2
13933 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13934 egrep "yes" >/dev/null 2>&1; then
13936 echo "$ac_t""3" 1>&6; dbfunc=db_create
13940 echo "$ac_t""2" 1>&6; dbfunc=db_open
13947 echo "$ac_t""1" 1>&6; dbfunc=dbopen
13951 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6
13952 echo "configure:13953: checking for $dbfunc" >&5
13954 cat > conftest.$ac_ext <<EOF
13955 #line 13956 "configure"
13956 #include "confdefs.h"
13957 /* System header to define __stub macros and hopefully few prototypes,
13958 which can conflict with char $dbfunc(); below. */
13959 #include <assert.h>
13960 /* Override any gcc2 internal prototype to avoid an error. */
13961 /* We use char because int might match the return type of a gcc2
13962 builtin and then its argument prototype would still apply. */
13967 /* The GNU C library defines this for functions which it implements
13968 to always fail with ENOSYS. Some functions are actually named
13969 something starting with __ and the normal name is an alias. */
13970 #if defined (__stub_$dbfunc) || defined (__stub___$dbfunc)
13978 if { (eval echo configure:13979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13980 eval "ac_cv_func_$dbfunc=yes"
13982 echo "configure: failed program was:" >&5
13983 cat conftest.$ac_ext >&5
13985 eval "ac_cv_func_$dbfunc=no"
13989 if eval "test \"`echo '$ac_cv_func_'$dbfunc`\" = yes"; then
13990 echo "$ac_t""yes" 1>&6
13991 with_database_berkdb=yes need_libdb=no
13993 echo "$ac_t""no" 1>&6
13996 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6
13997 echo "configure:13998: checking for $dbfunc in -ldb" >&5
13998 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'`
14000 xe_check_libs=" -ldb "
14001 cat > conftest.$ac_ext <<EOF
14002 #line 14003 "configure"
14003 #include "confdefs.h"
14004 /* Override any gcc2 internal prototype to avoid an error. */
14005 /* We use char because int might match the return type of a gcc2
14006 builtin and then its argument prototype would still apply. */
14013 if { (eval echo configure:14014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14015 eval "ac_cv_lib_$ac_lib_var=yes"
14017 echo "configure: failed program was:" >&5
14018 cat conftest.$ac_ext >&5
14020 eval "ac_cv_lib_$ac_lib_var=no"
14025 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
14026 echo "$ac_t""yes" 1>&6
14027 with_database_berkdb=yes need_libdb=yes
14029 echo "$ac_t""no" 1>&6
14037 if test "$with_database_berkdb" = "yes"; then
14038 { test "$extra_verbose" = "yes" && cat << EOF
14039 Defining DB_H_FILE = "$db_h_file"
14041 cat >> confdefs.h <<EOF
14042 #define DB_H_FILE "$db_h_file"
14046 { test "$extra_verbose" = "yes" && cat << \EOF
14047 Defining HAVE_BERKELEY_DB
14049 cat >> confdefs.h <<\EOF
14050 #define HAVE_BERKELEY_DB 1
14054 test "$need_libdb" = "yes" && LIBS="-ldb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldb\" to \$LIBS"; fi
14055 else with_database_berkdb=no
14059 if test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
14060 != "no no no"; then
14061 { test "$extra_verbose" = "yes" && cat << \EOF
14062 Defining HAVE_DATABASE
14064 cat >> confdefs.h <<\EOF
14065 #define HAVE_DATABASE 1
14069 extra_objs="$extra_objs database.o" && if test "$extra_verbose" = "yes"; then
14070 echo " xemacs will be linked with \"database.o\""
14074 if test "$with_socks" = "yes"; then
14076 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
14077 echo "configure:14078: checking for SOCKSinit in -lsocks" >&5
14078 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
14080 xe_check_libs=" -lsocks "
14081 cat > conftest.$ac_ext <<EOF
14082 #line 14083 "configure"
14083 #include "confdefs.h"
14084 /* Override any gcc2 internal prototype to avoid an error. */
14085 /* We use char because int might match the return type of a gcc2
14086 builtin and then its argument prototype would still apply. */
14093 if { (eval echo configure:14094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14095 eval "ac_cv_lib_$ac_lib_var=yes"
14097 echo "configure: failed program was:" >&5
14098 cat conftest.$ac_ext >&5
14100 eval "ac_cv_lib_$ac_lib_var=no"
14105 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
14106 echo "$ac_t""yes" 1>&6
14107 ac_tr_lib=HAVE_LIB`echo socks | sed -e 's/[^a-zA-Z0-9_]/_/g' \
14108 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
14109 { test "$extra_verbose" = "yes" && cat << EOF
14110 Defining $ac_tr_lib
14112 cat >> confdefs.h <<EOF
14113 #define $ac_tr_lib 1
14117 LIBS="-lsocks $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lsocks\" to \$LIBS"; fi
14120 echo "$ac_t""no" 1>&6
14124 test -n "$ac_cv_lib_socks_SOCKSinit" && { test "$extra_verbose" = "yes" && cat << \EOF
14125 Defining HAVE_SOCKS
14127 cat >> confdefs.h <<\EOF
14128 #define HAVE_SOCKS 1
14134 if test "$usage_tracking" = "yes"; then
14135 { test "$extra_verbose" = "yes" && cat << \EOF
14136 Defining USAGE_TRACKING
14138 cat >> confdefs.h <<\EOF
14139 #define USAGE_TRACKING 1
14143 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi
14146 if test "$with_modules" != "no"; then
14147 echo "checking for module support" 1>&6
14148 echo "configure:14149: checking for module support" >&5
14150 if test "$with_msw" = "yes"; then
14153 ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'`
14154 echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6
14155 echo "configure:14156: checking for dlfcn.h" >&5
14157 cat > conftest.$ac_ext <<EOF
14158 #line 14159 "configure"
14159 #include "confdefs.h"
14162 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14163 { (eval echo configure:14164: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14164 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14165 if test -z "$ac_err"; then
14167 eval "ac_cv_header_$ac_safe=yes"
14170 echo "configure: failed program was:" >&5
14171 cat conftest.$ac_ext >&5
14173 eval "ac_cv_header_$ac_safe=no"
14176 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14177 echo "$ac_t""yes" 1>&6
14179 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6
14180 echo "configure:14181: checking for dlopen in -lc" >&5
14181 cat > conftest.$ac_ext <<EOF
14182 #line 14183 "configure"
14183 #include "confdefs.h"
14189 if { (eval echo configure:14190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14193 echo "configure: failed program was:" >&5
14194 cat conftest.$ac_ext >&5
14197 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
14198 echo "configure:14199: checking for dlopen in -ldl" >&5
14199 ac_save_LIBS="$LIBS"
14201 cat > conftest.$ac_ext <<EOF
14202 #line 14203 "configure"
14203 #include "confdefs.h"
14209 if { (eval echo configure:14210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14213 echo "configure: failed program was:" >&5
14214 cat conftest.$ac_ext >&5
14216 LIBS="$ac_save_LIBS"
14223 echo "$ac_t""no" 1>&6
14226 if test -n "$have_dl"; then
14227 { test "$extra_verbose" = "yes" && cat << \EOF
14228 Defining HAVE_DLOPEN
14230 cat >> confdefs.h <<\EOF
14231 #define HAVE_DLOPEN 1
14237 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
14238 echo "configure:14239: checking for shl_load in -ldld" >&5
14239 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
14241 xe_check_libs=" -ldld "
14242 cat > conftest.$ac_ext <<EOF
14243 #line 14244 "configure"
14244 #include "confdefs.h"
14245 /* Override any gcc2 internal prototype to avoid an error. */
14246 /* We use char because int might match the return type of a gcc2
14247 builtin and then its argument prototype would still apply. */
14254 if { (eval echo configure:14255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14256 eval "ac_cv_lib_$ac_lib_var=yes"
14258 echo "configure: failed program was:" >&5
14259 cat conftest.$ac_ext >&5
14261 eval "ac_cv_lib_$ac_lib_var=no"
14266 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
14267 echo "$ac_t""yes" 1>&6
14268 libdl=dld have_dl=yes;
14269 { test "$extra_verbose" = "yes" && cat << \EOF
14270 Defining HAVE_SHL_LOAD
14272 cat >> confdefs.h <<\EOF
14273 #define HAVE_SHL_LOAD 1
14278 echo "$ac_t""no" 1>&6
14280 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6
14281 echo "configure:14282: checking for dld_init in -ldld" >&5
14282 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'`
14284 xe_check_libs=" -ldld "
14285 cat > conftest.$ac_ext <<EOF
14286 #line 14287 "configure"
14287 #include "confdefs.h"
14288 /* Override any gcc2 internal prototype to avoid an error. */
14289 /* We use char because int might match the return type of a gcc2
14290 builtin and then its argument prototype would still apply. */
14297 if { (eval echo configure:14298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14299 eval "ac_cv_lib_$ac_lib_var=yes"
14301 echo "configure: failed program was:" >&5
14302 cat conftest.$ac_ext >&5
14304 eval "ac_cv_lib_$ac_lib_var=no"
14309 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
14310 echo "$ac_t""yes" 1>&6
14311 libdl=dld have_dl=yes;
14312 { test "$extra_verbose" = "yes" && cat << \EOF
14313 Defining HAVE_DLD_INIT
14315 cat >> confdefs.h <<\EOF
14316 #define HAVE_DLD_INIT 1
14321 echo "$ac_t""no" 1>&6
14330 if test -n "$have_dl"; then
14337 ld_dynamic_link_flags=
14339 xealias=$internal_configuration
14341 echo "checking how to build dynamic libraries for ${xehost}" 1>&6
14342 echo "configure:14343: checking how to build dynamic libraries for ${xehost}" >&5
14343 # Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts.
14346 *-*-linux*) xehost=`echo $xehost | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
14349 xehost_cpu=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
14350 xehost_vendor=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
14351 xehost_os=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
14353 case "$xehost_os" in
14355 # AIX sometimes has problems with the GCC collect2 program. For some
14356 # reason, if we set the COLLECT_NAMES environment variable, the problems
14357 # vanish in a puff of smoke.
14358 if test "${COLLECT_NAMES+set}" != set; then
14360 export COLLECT_NAMES
14365 # Now see if the compiler is really GCC.
14366 if test "$GCC" = "yes"; then
14369 echo $ac_n "checking checking whether we are using GNU C""... $ac_c" 1>&6
14370 echo "configure:14371: checking checking whether we are using GNU C" >&5
14371 cat > conftest.$ac_ext <<EOF
14372 #line 14373 "configure"
14373 #include "confdefs.h"
14380 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14381 egrep "yes" >/dev/null 2>&1; then
14390 echo "$ac_t""${XEGCC}" 1>&6
14393 echo $ac_n "checking how to produce PIC code""... $ac_c" 1>&6
14394 echo "configure:14395: checking how to produce PIC code" >&5
14397 can_build_shared=yes
14398 if test "$XEGCC" = yes; then
14401 case "$xehost_os" in
14402 aix[3-9]* | irix[5-9]* | osf[3-9])
14403 # PIC is the default for these OSes.
14407 # We can build DLLs from non-PIC.
14410 # FIXME: we need at least 68020 code to build shared libraries, but
14411 # adding the `-m68020' flag to GCC prevents building anything better,
14413 dll_cflags='-m68020 -resident32 -malways-restore-a4'
14415 *cygwin* | *mingw* )
14416 # PIC is the default
14423 # PORTME Check for PIC flags for the system compiler.
14424 case "$xehost_os" in
14425 hpux9* | hpux1[0-9]*)
14426 # Is there a better link_static_flag that works with the bundled CC?
14433 # PIC (with -KPIC) is the default.
14437 # We can build DLLs from non-PIC.
14441 # All OSF/1 code is PIC.
14446 # All AIX code is PIC.
14451 dll_cflags='-belf -Kpic'
14485 can_build_shared=no
14490 if test -n "$dll_cflags"; then
14491 echo "$ac_t""${dll_cflags}" 1>&6
14493 # Check to make sure the dll_cflags actually works.
14494 echo $ac_n "checking if PIC flag ${dll_cflags} really works""... $ac_c" 1>&6
14495 echo "configure:14496: checking if PIC flag ${dll_cflags} really works" >&5
14496 save_CFLAGS="$CFLAGS"
14497 CFLAGS="$CFLAGS $dll_cflags -DPIC"
14498 cat > conftest.$ac_ext <<EOF
14499 #line 14500 "configure"
14500 #include "confdefs.h"
14506 if { (eval echo configure:14507: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14509 # On HP-UX, the stripped-down bundled CC doesn't accept +Z, but also
14510 # reports no error. So, we need to grep stderr for (Bundled).
14511 if grep '(Bundled)' config.log >/dev/null; then
14512 echo "$ac_t""no" 1>&6
14513 can_build_shared=no
14516 echo "$ac_t""yes" 1>&6
14519 echo "configure: failed program was:" >&5
14520 cat conftest.$ac_ext >&5
14522 echo "$ac_t""no" 1>&6
14523 can_build_shared=no
14527 CFLAGS="$save_CFLAGS"
14529 echo "$ac_t""none" 1>&6
14532 if test "$can_build_shared" = "yes"; then
14536 echo $ac_n "checking if C compiler can produce shared libraries""... $ac_c" 1>&6
14537 echo "configure:14538: checking if C compiler can produce shared libraries" >&5
14538 if test "$XEGCC" = yes; then
14541 else # Not using GCC
14542 case "$xehost_os" in
14544 xldf="-bE:ELLSONAME.exp -H512 -T512 -bhalt:4 -bM:SRE -bnoentry -lc"
14545 xcldf="${wl}-bE:ELLSONAME.exp ${wl}-H512 ${wl}-T512 ${wl}-bhalt:4 ${wl}-bM:SRE ${wl}-bnoentry ${wl}-lc"
14548 freebsd2* | netbsd* | openbsd*)
14550 xcldf="${wl}-Bshareable"
14559 xcldf="${wl}-b ${wl}+s"
14562 irix[5-9]* | osf[3-9]*)
14563 xcldf="${wl}-shared"
14567 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7* | uts4*)
14573 xcldf="${wl}-assert ${wl}pure-text ${wl}-Bstatic"
14574 xldf="-assert pure-text -Bstatic"
14577 fi # End if if we are using gcc
14579 if test -n "$xcldf"; then
14580 save_LDFLAGS=$LDFLAGS
14582 save_xe_libs=$xe_libs
14583 LDFLAGS="$xcldf $LDFLAGS"
14586 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
14587 cat > conftest.$ac_ext <<EOF
14588 #line 14589 "configure"
14589 #include "confdefs.h"
14595 if { (eval echo configure:14596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14599 echo "configure: failed program was:" >&5
14600 cat conftest.$ac_ext >&5
14605 LDFLAGS=$save_LDFLAGS
14607 xe_libs=$save_xe_libs
14608 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
14612 echo "$ac_t""${cc_produces_so}" 1>&6
14615 if test -z "$LTLD"; then
14617 if test "$XEGCC" = yes; then
14618 # Check if gcc -print-prog-name=ld gives a path.
14619 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
14620 echo "configure:14621: checking for ld used by GCC" >&5
14621 ac_prog=`($CC -print-prog-name=ld) 2>&5`
14623 # Accept absolute paths.
14625 if test -z "$LTLD"; then
14627 *gcc-lib*) LTLD="$CC"
14635 # If it fails, then pretend we aren't using GCC.
14639 # If it is relative, then search for the first ld in PATH.
14640 with_gnu_ld=unknown
14644 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
14645 echo "configure:14646: checking for GNU ld" >&5
14648 if test -z "$LTLD"; then
14649 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
14650 for ac_dir in $PATH; do
14651 test -z "$ac_dir" && ac_dir=.
14652 if test -f "$ac_dir/$ac_prog"; then
14653 LTLD="$ac_dir/$ac_prog"
14654 # Check to see if the program is GNU ld. I'd rather use --version,
14655 # but apparently some GNU ld's only accept -v.
14656 # Break only if it was the GNU/non-GNU ld that we prefer.
14657 if "$LTLD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
14667 if test -n "$LTLD"; then
14668 echo "$ac_t""${LTLD}" 1>&6
14670 echo "$ac_t""no" 1>&6
14673 if test -z "$LTLD" -a "$cc_produces_so" = no; then
14674 { echo "configure: error: no acceptable linker found in \$PATH" 1>&2; exit 1; }
14679 ld_dynamic_link_flags=
14681 # Check to see if it really is or isn't GNU ld.
14682 echo $ac_n "checking if the linker is GNU ld""... $ac_c" 1>&6
14683 echo "configure:14684: checking if the linker is GNU ld" >&5
14684 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
14685 if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
14690 echo "$ac_t""${xe_gnu_ld}" 1>&6
14692 case "$xehost_os" in
14693 amigaos* | sunos4*)
14694 # On these operating systems, we should treat GNU ld like the system ld.
14695 gnu_ld_acts_native=yes
14698 gnu_ld_acts_native=no
14702 if test "$cc_produces_so" = "yes"; then
14705 can_build_shared=yes
14708 # OK - only NOW do we futz about with ld.
14709 # See if the linker supports building shared libraries.
14710 echo $ac_n "checking whether the linker supports shared libraries""... $ac_c" 1>&6
14711 echo "configure:14712: checking whether the linker supports shared libraries" >&5
14713 dll_ldflags=$LDFLAGS
14715 can_build_shared=yes
14716 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then
14717 # See if GNU ld supports shared libraries.
14718 if $LTLD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
14720 dll_ldflags="-shared"
14726 # PORTME fill in a description of your system's linker (not GNU ld)
14727 case "$xehost_os" in
14737 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14738 # support. Future versions do this automatically, but an explicit c++rt0.o
14739 # doesn't break anything, and helps significantly (at the cost of a little
14744 dll_post="/usr/lib/c++rt0.o"
14747 # Unfortunately, older versions of FreeBSD 2 don't have this feature.
14750 dll_ldflags="-Bshareable"
14753 # FreeBSD 3, at last, uses gcc -shared to do shared libraries.
14755 dll_ldflags="-shared"
14769 # Tested with NetBSD 1.2 ld
14784 # For both SCO and Solaris we MAY want to have LDFLAGS include -z text
14785 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7*)
14788 *gcc*) dll_ldflags="-shared"
14791 *) dll_ldflags="-G"
14797 if test "$XEGCC" = yes; then
14817 can_build_shared=no
14821 echo "$ac_t""${ld_shlibs}" 1>&6
14822 if test "$ld_shlibs" = "no"; then
14823 can_build_shared=no
14825 fi # End of if cc_produces_so = no
14828 if test "$xe_gnu_ld" = yes; then
14829 if test "$ld_shlibs" = yes; then
14830 ld_dynamic_link_flags="${wl}-export-dynamic"
14834 if test -z "$ld_dynamic_link_flags"; then
14835 case "$xehost_os" in
14837 ld_dynamic_link_flags=
14841 ld_dynamic_link_flags=
14845 ld_dynamic_link_flags=
14849 ld_dynamic_link_flags=
14853 ld_dynamic_link_flags="${wl}-E"
14857 ld_dynamic_link_flags=
14861 ld_dynamic_link_flags=
14865 ld_dynamic_link_flags=
14869 ld_dynamic_link_flags=
14872 solaris2* | solaris7*)
14873 ld_dynamic_link_flags=
14876 sco3.2v5* | unixware* | sysv5* | sysv4*)
14877 ld_dynamic_link_flags="${wl}-Bexport"
14881 ld_dynamic_link_flags=
14885 ld_dynamic_link_flags=
14889 ld_dynamic_link_flags=
14893 fi # End of if -z ld_dynamic_link_flags
14894 fi # End of if test "$can_build_shared" = "yes"
14905 if test "$can_build_shared" = "yes"; then
14906 { test "$extra_verbose" = "yes" && cat << \EOF
14907 Defining HAVE_SHLIB
14909 cat >> confdefs.h <<\EOF
14910 #define HAVE_SHLIB 1
14914 extra_objs="$extra_objs sysdll.o emodules.o" && if test "$extra_verbose" = "yes"; then
14915 echo " xemacs will be linked with \"sysdll.o emodules.o\""
14917 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
14918 test -n "$libdl" && LIBS="-l${libdl} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${libdl}\" to \$LIBS"; fi
14919 for ac_func in dlerror _dlerror
14921 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14922 echo "configure:14923: checking for $ac_func" >&5
14924 cat > conftest.$ac_ext <<EOF
14925 #line 14926 "configure"
14926 #include "confdefs.h"
14927 /* System header to define __stub macros and hopefully few prototypes,
14928 which can conflict with char $ac_func(); below. */
14929 #include <assert.h>
14930 /* Override any gcc2 internal prototype to avoid an error. */
14931 /* We use char because int might match the return type of a gcc2
14932 builtin and then its argument prototype would still apply. */
14937 /* The GNU C library defines this for functions which it implements
14938 to always fail with ENOSYS. Some functions are actually named
14939 something starting with __ and the normal name is an alias. */
14940 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14948 if { (eval echo configure:14949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14950 eval "ac_cv_func_$ac_func=yes"
14952 echo "configure: failed program was:" >&5
14953 cat conftest.$ac_ext >&5
14955 eval "ac_cv_func_$ac_func=no"
14959 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14960 echo "$ac_t""yes" 1>&6
14961 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14962 { test "$extra_verbose" = "yes" && cat << EOF
14963 Defining $ac_tr_func
14965 cat >> confdefs.h <<EOF
14966 #define $ac_tr_func 1
14971 echo "$ac_t""no" 1>&6
14977 if test "$with_modules" = "yes"; then
14978 { echo "Error:" "Required module support cannot be provided." >&2; exit 1; }
14980 echo "configure: warning: "Module support cannot be provided."" 1>&2
14986 cat > conftest.$ac_ext <<EOF
14987 #line 14988 "configure"
14988 #include "confdefs.h"
14989 int main(int c,char *v[]){return 0;}
14991 if { (eval echo configure:14992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
14996 echo "configure: failed program was:" >&5
14997 cat conftest.$ac_ext >&5
15001 echo "*** PANIC *** The C compiler can no longer build working executables."
15002 echo "*** PANIC *** Please examine the tail of config.log for runtime errors."
15003 echo "*** PANIC *** The most likely reason for this problem is that configure"
15004 echo "*** PANIC *** links with shared libraries, but those libraries cannot be"
15005 echo "*** PANIC *** found at run time."
15006 echo "*** PANIC ***"
15007 echo "*** PANIC *** On a Linux system, edit /etc/ld.so.conf and re-run ldconfig."
15008 echo "*** PANIC *** On other systems, try telling configure where to find the"
15009 echo "*** PANIC *** shared libraries using the --site-runtime-libraries option"
15010 echo "*** PANIC ***"
15011 echo "*** PANIC *** Another way to shoot yourself in the foot is to specify"
15012 echo "*** PANIC *** --with-FEATURE when FEATURE is not actually installed"
15013 echo "*** PANIC *** on your system. Don't do that."
15018 if test "$win32_processes" = "yes"; then
15019 extra_objs="$extra_objs process-nt.o" && if test "$extra_verbose" = "yes"; then
15020 echo " xemacs will be linked with \"process-nt.o\""
15023 { test "$extra_verbose" = "yes" && cat << \EOF
15024 Defining HAVE_UNIX_PROCESSES
15026 cat >> confdefs.h <<\EOF
15027 #define HAVE_UNIX_PROCESSES 1
15031 extra_objs="$extra_objs process-unix.o" && if test "$extra_verbose" = "yes"; then
15032 echo " xemacs will be linked with \"process-unix.o\""
15039 for W in $CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15044 for W in $extra_objs; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15049 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
15050 c_switch_general="$T"
15054 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
15055 c_switch_window_system="$T"
15059 for W in $c_switch_general $c_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15064 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
15065 ld_switch_general="$T"
15069 for W in $ld_switch_x_site; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15070 ld_switch_window_system="$T"
15074 for W in $ld_switch_general $ld_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15079 for W in $LIBS $libs_machine $libs_system $libs_standard; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15080 ld_libs_general="$T"
15084 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
15085 ld_libs_window_system="$T"
15089 for W in $ld_libs_window_system $ld_libs_general; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15094 MAKE_SUBDIR="$MAKE_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$MAKE_SUBDIR"; fi
15095 internal_makefile_list="Makefile.in"
15096 SUBDIR_MAKEFILES=''
15097 test -d lock || mkdir lock
15098 for dir in $MAKE_SUBDIR; do
15099 case "$dir" in */* ) ( for d in `echo $dir | sed 's:/: :g'` ; do
15100 test -d "$d" || mkdir "$d"; cd "$d"
15102 * ) test -d "$dir" || mkdir "$dir" ;;
15106 for W in $SUBDIR_MAKEFILES $dir/Makefile $dir/GNUmakefile; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15107 SUBDIR_MAKEFILES="$T"
15111 for W in $internal_makefile_list $dir/Makefile.in; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15112 internal_makefile_list="$T"
15119 for dir in src/s src/m; do
15120 if test ! -d "$dir" ; then
15121 echo Making symbolic link to "$srcdir/$dir"
15122 ${LN_S} "$srcdir/$dir" "$dir"
15126 if test "$extra_verbose" = "yes"; then
15128 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
15133 if test -f "$srcdir/src/.gdbinit" -a ! -f "src/.gdbinit"; then
15134 test "$extra_verbose" = "yes" && echo "creating src/.gdbinit"
15135 echo "source $srcdir/src/.gdbinit" > "src/.gdbinit"
15138 if test -f "$srcdir/src/.dbxrc" -a ! -f "src/.dbxrc"; then
15139 test "$extra_verbose" = "yes" && echo "creating src/.dbxrc"
15140 echo ". $srcdir/src/.dbxrc" > "src/.dbxrc"
15143 if test -f "$srcdir/TAGS" -a ! -f "TAGS"; then
15144 test "$extra_verbose" = "yes" && echo "creating TAGS"
15146 $srcdir/TAGS,include" > "TAGS"
15149 if test "$__SUNPRO_C" = "yes"; then
15150 test "$extra_verbose" = "yes" && echo "creating .sbinit"
15151 ( echo "# For use with Sun WorkShop's Source browser."
15152 echo "# See sbquery(1) and sbinit(4) for more information"
15153 for dir in $MAKE_SUBDIR; do echo "import $dir"; done
15181 *\$* ) eval "PREFIX=$PREFIX" ;;
15189 EXEC_PREFIX=$exec_prefix
15191 case "$EXEC_PREFIX" in
15192 *\$* ) eval "EXEC_PREFIX=$EXEC_PREFIX" ;;
15203 *\$* ) eval "INFODIR=$INFODIR" ;;
15213 case "$INFOPATH" in
15214 *\$* ) eval "INFOPATH=$INFOPATH" ;;
15222 PACKAGE_PATH=$package_path
15224 case "$PACKAGE_PATH" in
15225 *\$* ) eval "PACKAGE_PATH=$PACKAGE_PATH" ;;
15236 *\$* ) eval "LISPDIR=$LISPDIR" ;;
15244 MODULEDIR=$moduledir
15246 case "$MODULEDIR" in
15247 *\$* ) eval "MODULEDIR=$MODULEDIR" ;;
15255 SITELISPDIR=$sitelispdir
15257 case "$SITELISPDIR" in
15258 *\$* ) eval "SITELISPDIR=$SITELISPDIR" ;;
15266 SITEMODULEDIR=$sitemoduledir
15268 case "$SITEMODULEDIR" in
15269 *\$* ) eval "SITEMODULEDIR=$SITEMODULEDIR" ;;
15280 *\$* ) eval "ETCDIR=$ETCDIR" ;;
15291 *\$* ) eval "DOCDIR=$DOCDIR" ;;
15299 ARCHLIBDIR=$archlibdir
15301 case "$ARCHLIBDIR" in
15302 *\$* ) eval "ARCHLIBDIR=$ARCHLIBDIR" ;;
15326 RECURSIVE_MAKE="\$(MAKE) \$(MFLAGS) CC='\$(CC)' CFLAGS='\$(CFLAGS)' LDFLAGS='\$(LDFLAGS)' CPPFLAGS='\$(CPPFLAGS)'"
15334 : ${XEMACS_CC:=$CC}
15337 if test "$with_prefix" = "yes"; then
15338 { test "$extra_verbose" = "yes" && cat << \EOF
15339 Defining PREFIX_USER_DEFINED
15341 cat >> confdefs.h <<\EOF
15342 #define PREFIX_USER_DEFINED 1
15348 if test "$with_site_lisp" = "no"; then
15349 { test "$extra_verbose" = "yes" && cat << \EOF
15350 Defining INHIBIT_SITE_LISP
15352 cat >> confdefs.h <<\EOF
15353 #define INHIBIT_SITE_LISP 1
15358 if test "$with_site_modules" = "no"; then
15359 { test "$extra_verbose" = "yes" && cat << \EOF
15360 Defining INHIBIT_SITE_MODULES
15362 cat >> confdefs.h <<\EOF
15363 #define INHIBIT_SITE_MODULES 1
15371 for W in $ac_configure_args; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15372 ac_configure_args="$T"
15374 { test "$extra_verbose" = "yes" && cat << EOF
15375 Defining EMACS_CONFIGURATION = "$configuration"
15377 cat >> confdefs.h <<EOF
15378 #define EMACS_CONFIGURATION "$configuration"
15382 { test "$extra_verbose" = "yes" && cat << EOF
15383 Defining EMACS_CONFIG_OPTIONS = "$ac_configure_args"
15385 cat >> confdefs.h <<EOF
15386 #define EMACS_CONFIG_OPTIONS "$ac_configure_args"
15393 { test "$extra_verbose" = "yes" && cat << EOF
15394 Defining LD_SWITCH_X_SITE = $null_string
15396 cat >> confdefs.h <<EOF
15397 #define LD_SWITCH_X_SITE $null_string
15401 { test "$extra_verbose" = "yes" && cat << EOF
15402 Defining LD_SWITCH_X_SITE_AUX = $null_string
15404 cat >> confdefs.h <<EOF
15405 #define LD_SWITCH_X_SITE_AUX $null_string
15409 { test "$extra_verbose" = "yes" && cat << EOF
15410 Defining C_SWITCH_X_SITE = $null_string
15412 cat >> confdefs.h <<EOF
15413 #define C_SWITCH_X_SITE $null_string
15417 { test "$extra_verbose" = "yes" && cat << EOF
15418 Defining LD_SWITCH_SITE = $null_string
15420 cat >> confdefs.h <<EOF
15421 #define LD_SWITCH_SITE $null_string
15425 { test "$extra_verbose" = "yes" && cat << EOF
15426 Defining C_SWITCH_SITE = $null_string
15428 cat >> confdefs.h <<EOF
15429 #define C_SWITCH_SITE $null_string
15435 if test "$GNU_MALLOC" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
15436 Defining GNU_MALLOC
15438 cat >> confdefs.h <<\EOF
15439 #define GNU_MALLOC 1
15443 elif test "$with_system_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
15444 Defining USE_SYSTEM_MALLOC
15446 cat >> confdefs.h <<\EOF
15447 #define USE_SYSTEM_MALLOC 1
15451 elif test "$with_debug_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
15452 Defining USE_DEBUG_MALLOC
15454 cat >> confdefs.h <<\EOF
15455 #define USE_DEBUG_MALLOC 1
15459 { test "$extra_verbose" = "yes" && cat << \EOF
15460 Defining USE_SYSTEM_MALLOC
15462 cat >> confdefs.h <<\EOF
15463 #define USE_SYSTEM_MALLOC 1
15468 test "$with_i18n3" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15471 cat >> confdefs.h <<\EOF
15476 test "$GCC" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15479 cat >> confdefs.h <<\EOF
15484 test "$external_widget" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15485 Defining EXTERNAL_WIDGET
15487 cat >> confdefs.h <<\EOF
15488 #define EXTERNAL_WIDGET 1
15492 test "$quick_build" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15493 Defining QUICK_BUILD
15495 cat >> confdefs.h <<\EOF
15496 #define QUICK_BUILD 1
15500 test "$with_purify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15503 cat >> confdefs.h <<\EOF
15508 test "$with_quantify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15511 cat >> confdefs.h <<\EOF
15516 test "$with_pop" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15517 Defining MAIL_USE_POP
15519 cat >> confdefs.h <<\EOF
15520 #define MAIL_USE_POP 1
15524 test "$with_kerberos" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15527 cat >> confdefs.h <<\EOF
15532 test "$with_hesiod" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15535 cat >> confdefs.h <<\EOF
15540 test "$use_union_type" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15541 Defining USE_UNION_TYPE
15543 cat >> confdefs.h <<\EOF
15544 #define USE_UNION_TYPE 1
15548 test "$pdump" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15551 cat >> confdefs.h <<\EOF
15559 if test -f /etc/osversion; then echo "osversion: `cat /etc/osversion`"
15561 echo "uname -a: `uname -a`"
15564 echo "$0 $quoted_arguments"
15567 if test ! -z ${emacs_beta_version} ; then
15568 if test -z "${emacs_is_beta}" ; then
15569 xemacs_betaname=".${emacs_beta_version}"
15571 xemacs_betaname="-b${emacs_beta_version}"
15580 XEmacs ${emacs_major_version}.${emacs_minor_version}${xemacs_betaname} \"$xemacs_codename\" configured for \`$canonical'.
15583 Compilation / Installation:"
15584 echo " Source code location: $srcdir"
15585 echo " Installation prefix: $prefix"
15586 if test -n "$site_includes"; then
15587 echo " Additional header files: $site_includes"
15589 if test -n "$site_libraries"; then
15590 echo " Additional libraries: $site_libraries"
15592 if test -n "$site_prefixes"; then
15593 echo " Additional prefixes: $site_prefixes"
15595 if test -n "$runpath"; then
15596 echo " Runtime library search path: $runpath"
15599 if test -n "$opsysfile"
15600 then echo " Operating system description file: \`$opsysfile'"
15601 else echo " Not using any operating system description file"
15603 if test -n "$machfile"
15604 then echo " Machine description file: \`$machfile'"
15605 else echo " Not using any machine description file"
15608 echo " Compiler: $CC $CFLAGS"
15609 echo " Relocating allocator for buffers: $rel_alloc"
15610 echo " GNU version of malloc: ${GNU_MALLOC}${GNU_MALLOC_reason}"
15614 if test "$with_msw" = "yes"; then
15615 echo " Compiling in support for the Microsoft window system."
15617 if test "$with_x11" = "yes"; then
15618 echo " Compiling in support for the X window system:"
15619 echo " - X Windows headers location: $x_includes"
15620 echo " - X Windows libraries location: $x_libraries"
15621 if test "$with_xauth" != yes; then
15622 echo " - Xau (X authority) not available."
15624 if test "$with_xmu" != yes; then
15625 echo " - Xmu library not available; substituting equivalent routines."
15627 if test "$with_wmcommand" != no; then
15628 echo " - Handling WM_COMMAND properly."
15631 if test "$need_athena" = "yes"; then
15632 echo " Compiling in support for the Athena widget set:"
15633 echo " - Athena headers location: $athena_h_path"
15634 echo " - Athena library to link: $athena_lib"
15636 case "$with_menubars" in
15637 gtk ) echo " Using GTK menubars." ;;
15638 lucid ) echo " Using Lucid menubars." ;;
15639 motif ) echo " Using Motif menubars."
15640 echo " *WARNING* The Motif menubar implementation is currently buggy."
15641 echo " We recommend using the Lucid menubar instead."
15642 echo " Re-run configure with --with-menubars='lucid'." ;;
15643 msw ) echo " Using MS-Windows menubars." ;;
15645 case "$with_scrollbars" in
15646 gtk ) echo " Using GTK scrollbars." ;;
15647 lucid ) echo " Using Lucid scrollbars." ;;
15648 motif ) echo " Using Motif scrollbars." ;;
15649 athena ) echo " Using Athena scrollbars." ;;
15650 msw ) echo " Using MS-Windows scrollbars." ;;
15652 case "$with_dialogs" in
15653 gtk ) echo " Using GTK dialog boxes." ;;
15654 motif ) echo " Using Motif dialog boxes."
15655 if test "$unexec" = "unexaix.o"; then if test "`uname -v`" = 4 -a "`uname -r`" -ge 3; then
15656 echo " *WARNING* The Motif dialog boxes cause problems on AIX 4.3 and higher."
15657 echo " We recommend using the Athena dialog boxes instead."
15658 echo " Install libXaw and re-run configure with --with-dialogs='athena'."
15659 echo " Read the PROBLEMS file for more information."
15661 athena ) echo " Using Athena dialog boxes." ;;
15662 msw ) echo " Using MS-Windows dialog boxes." ;;
15664 case "$with_widgets" in
15665 gtk ) echo " Using GTK native widgets." ;;
15666 motif ) echo " Using Motif native widgets." ;;
15667 athena ) echo " Using Athena native widgets." ;;
15668 msw ) echo " Using MS-Windows native widgets." ;;
15670 if test "$with_dragndrop" = yes; then
15671 echo " Compiling in support for Drag'n'Drop (EXPERIMENTAL)."
15672 echo " - Drag'n'Drop prototype: $dragndrop_proto."
15677 test "$with_ncurses" = yes && echo " Compiling in support for ncurses."
15678 test "$with_gpm" = yes && echo " Compiling in support for GPM (General Purpose Mouse)."
15682 test "$with_gif" = yes && echo " Compiling in support for GIF images (builtin)."
15683 if test "$with_xpm" = yes; then
15684 echo " Compiling in support for XPM images."
15685 elif test "$with_x11" = yes; then
15686 echo " WARNING: -----------------------------------------------------------"
15687 echo " WARNING: Compiling without XPM image support."
15688 if test "$xpm_problem" != ""; then
15689 echo " Reason: $xpm_problem"
15691 echo " WARNING: You should strongly consider installing XPM."
15692 echo " WARNING: Otherwise toolbars and other graphics will look suboptimal."
15693 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
15694 echo " WARNING: -----------------------------------------------------------"
15696 if test "$with_png" = yes; then
15697 echo " Compiling in support for PNG images."
15698 elif test "$window_system" != "none"; then
15699 echo " WARNING: -----------------------------------------------------------"
15700 echo " WARNING: Compiling without PNG image support."
15701 if test "$png_problem" != ""; then
15702 echo " Reason: $png_problem"
15704 echo " WARNING: You should strongly consider installing the PNG libraries."
15705 echo " WARNING: Otherwise certain images and glyphs may not display."
15706 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
15707 echo " WARNING: -----------------------------------------------------------"
15709 test "$with_jpeg" = yes && echo " Compiling in support for JPEG images."
15710 test "$with_tiff" = yes && echo " Compiling in support for TIFF images."
15711 test "$with_xface" = yes && echo " Compiling in support for X-Face message headers."
15715 test "$with_native_sound" = yes && echo " Compiling in support for sound (native)."
15716 test "$with_nas_sound" = yes && echo " Compiling in support for NAS (network audio system)."
15717 test "$old_nas" = yes && echo " - NAS library lacks error trapping; will play synchronously."
15718 test "$with_esd_sound" = yes && echo " Compiling in support for ESD (Enlightened Sound Daemon)."
15722 test "$with_database_berkdb" = yes && echo " Compiling in support for Berkeley database."
15723 test "$with_database_dbm" = yes && echo " Compiling in support for DBM."
15724 test "$with_database_gdbm" = yes && echo " Compiling in support for GNU DBM."
15725 test "$with_ldap" = yes && echo " Compiling in support for LDAP."
15726 if test "$with_postgresql" = yes; then
15727 echo " Compiling in support for PostgreSQL."
15728 echo " - Using PostgreSQL header file: $libpq_fe_h_file"
15729 test "$with_postgresqlv7" = yes && echo " - Using PostgreSQL V7 bindings."
15733 Internationalization:"
15734 test "$with_mule" = yes && echo " Compiling in support for Mule (multi-lingual Emacs)."
15735 test "$with_file_coding" = yes && echo " Compiling in support for file coding."
15736 test "$with_xim" != no && echo " Compiling in support for XIM (X11R5+ I18N input method)."
15737 test "$with_xim" = motif && echo " - Using Motif to provide XIM support."
15738 test "$with_xim" = xlib && echo " - Using raw Xlib to provide XIM support."
15739 test "$with_xfs" = yes && echo " - Using XFontSet to provide bilingual menubar."
15740 test "$with_canna" = yes && echo " Compiling in support for Canna on Mule."
15741 if test "$with_wnn" = yes; then
15742 echo " Compiling in support for the WNN input method on Mule."
15743 test "$with_wnn6" = yes && echo " - Using WNN version 6."
15745 test "$with_i18n3" = yes && echo " Compiling in support for I18N level 3 (doesn't currently work)."
15749 test "$with_pop" = yes && echo " Compiling in support for POP mail retrieval."
15750 test "$with_kerberos" = yes && echo " Compiling in support for Kerberos POP authentication."
15751 test "$with_hesiod" = yes && echo " Compiling in support for Hesiod POP server access."
15752 test -n "$mail_locking" && echo " Compiling in support for \"$mail_locking\" mail spool file locking method."
15756 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk."
15757 test "$with_workshop" = yes && echo " Compiling in support for Sun WorkShop."
15758 test "$with_socks" = yes && echo " Compiling in support for SOCKS."
15759 test "$with_dnet" = yes && echo " Compiling in support for DNET."
15760 test "$with_modules" = "yes" && echo " Compiling in support for dynamic shared object modules."
15761 test "$use_union_type" = yes && echo " Using the union type for Lisp_Objects."
15762 test "$pdump" = yes && echo " Using the new portable dumper."
15763 test "$debug" = yes && echo " Compiling in support for extra debugging code."
15764 test "$usage_tracking" = yes && echo " Compiling in support for active usage tracking (Sun internal)."
15765 if test "$error_check_extents $error_check_typecheck $error_check_bufpos $error_check_gc $error_check_malloc $error_check_glyphs" \
15766 != "no no no no no no"; then
15767 echo " WARNING: ---------------------------------------------------------"
15768 echo " WARNING: Compiling in support for runtime error checking."
15769 echo " WARNING: XEmacs will run noticeably more slowly as a result."
15770 echo " WARNING: Error checking is on by default for XEmacs beta releases."
15771 echo " WARNING: ---------------------------------------------------------"
15774 ) | tee -a Installation
15778 # Remove any trailing slashes in these variables.
15779 test -n "$prefix" &&
15780 prefix=`echo '' "$prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
15781 test -n "$exec_prefix" &&
15782 exec_prefix=`echo '' "$exec_prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
15785 for file in $internal_makefile_list; do
15786 test "$file" = src/Makefile.in && \
15787 file="src/Makefile.in:src/Makefile.in.in:src/depend"
15788 ac_output_files="$ac_output_files $file" && if test "$extra_verbose" = "yes"; then echo " Appending \"$file\" to \$ac_output_files"; fi
15790 ac_output_files="$ac_output_files src/paths.h lib-src/config.values"
15791 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
15795 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
15797 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15798 # Let make expand exec_prefix.
15799 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15801 # Any assignment to VPATH causes Sun make to only execute
15802 # the first set of double-colon rules, so remove it if not needed.
15803 # If there is a colon in the path, we need to keep it.
15804 if test "x$srcdir" = x.; then
15805 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
15808 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
15810 DEFS=-DHAVE_CONFIG_H
15812 # Without the "./", some shells look in PATH for config.status.
15813 : ${CONFIG_STATUS=./config.status}
15815 echo creating $CONFIG_STATUS
15816 rm -f $CONFIG_STATUS
15817 cat > $CONFIG_STATUS <<EOF
15819 # Generated automatically by configure.
15820 # Run this file to recreate the current configuration.
15821 # This directory was configured as follows,
15822 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15824 # $0 $ac_configure_args
15826 # Compiler output produced by configure, useful for debugging
15827 # configure, is in ./config.log if it exists.
15829 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
15832 case "\$ac_option" in
15833 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15834 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
15835 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
15836 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
15837 echo "$CONFIG_STATUS generated by autoconf version 2.13"
15839 -help | --help | --hel | --he | --h)
15840 echo "\$ac_cs_usage"; exit 0 ;;
15841 *) echo "\$ac_cs_usage"; exit 1 ;;
15845 ac_given_srcdir=$srcdir
15846 ac_given_INSTALL="$INSTALL"
15848 trap 'rm -fr `echo "$ac_output_files src/config.h lwlib/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
15850 cat >> $CONFIG_STATUS <<EOF
15852 # Protect against being on the right side of a sed subst in config.status.
15853 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
15854 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
15858 s%@CFLAGS@%$CFLAGS%g
15859 s%@CPPFLAGS@%$CPPFLAGS%g
15860 s%@CXXFLAGS@%$CXXFLAGS%g
15861 s%@FFLAGS@%$FFLAGS%g
15863 s%@LDFLAGS@%$LDFLAGS%g
15865 s%@exec_prefix@%$exec_prefix%g
15866 s%@prefix@%$prefix%g
15867 s%@program_transform_name@%$program_transform_name%g
15868 s%@bindir@%$bindir%g
15869 s%@sbindir@%$sbindir%g
15870 s%@libexecdir@%$libexecdir%g
15871 s%@datadir@%$datadir%g
15872 s%@sysconfdir@%$sysconfdir%g
15873 s%@sharedstatedir@%$sharedstatedir%g
15874 s%@localstatedir@%$localstatedir%g
15875 s%@libdir@%$libdir%g
15876 s%@includedir@%$includedir%g
15877 s%@oldincludedir@%$oldincludedir%g
15878 s%@infodir@%$infodir%g
15879 s%@mandir@%$mandir%g
15881 s%@blddir@%$blddir%g
15884 s%@start_flags@%$start_flags%g
15885 s%@ld_switch_shared@%$ld_switch_shared%g
15886 s%@start_files@%$start_files%g
15888 s%@lib_gcc@%$lib_gcc%g
15889 s%@RANLIB@%$RANLIB%g
15890 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
15891 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
15892 s%@INSTALL_DATA@%$INSTALL_DATA%g
15894 s%@SET_MAKE@%$SET_MAKE%g
15895 s%@GTK_CONFIG@%$GTK_CONFIG%g
15896 s%@X_CFLAGS@%$X_CFLAGS%g
15897 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
15898 s%@X_LIBS@%$X_LIBS%g
15899 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
15900 s%@install_pp@%$install_pp%g
15901 s%@libs_xauth@%$libs_xauth%g
15902 s%@dnd_objs@%$dnd_objs%g
15903 s%@lwlib_objs@%$lwlib_objs%g
15904 s%@ALLOCA@%$ALLOCA%g
15905 s%@have_esd_config@%$have_esd_config%g
15906 s%@dll_ld@%$dll_ld%g
15907 s%@dll_cflags@%$dll_cflags%g
15908 s%@dll_ldflags@%$dll_ldflags%g
15909 s%@dll_post@%$dll_post%g
15910 s%@dll_ldo@%$dll_ldo%g
15911 s%@ld_dynamic_link_flags@%$ld_dynamic_link_flags%g
15912 s%@SRC_SUBDIR_DEPS@%$SRC_SUBDIR_DEPS%g
15913 s%@INSTALL_ARCH_DEP_SUBDIR@%$INSTALL_ARCH_DEP_SUBDIR%g
15914 s%@MAKE_SUBDIR@%$MAKE_SUBDIR%g
15915 s%@SUBDIR_MAKEFILES@%$SUBDIR_MAKEFILES%g
15916 s%@PROGNAME@%$PROGNAME%g
15917 s%@version@%$version%g
15918 s%@configuration@%$configuration%g
15919 s%@canonical@%$canonical%g
15920 s%@inststaticdir@%$inststaticdir%g
15921 s%@instvardir@%$instvardir%g
15922 s%@srcdir@%$srcdir%g
15923 s%@pkgdir@%$pkgdir%g
15924 s%@statedir@%$statedir%g
15925 s%@extra_includes@%$extra_includes%g
15926 s%@PREFIX_USER_DEFINED@%$PREFIX_USER_DEFINED%g
15927 s%@PREFIX@%$PREFIX%g
15928 s%@EXEC_PREFIX_USER_DEFINED@%$EXEC_PREFIX_USER_DEFINED%g
15929 s%@EXEC_PREFIX@%$EXEC_PREFIX%g
15930 s%@INFODIR_USER_DEFINED@%$INFODIR_USER_DEFINED%g
15931 s%@INFODIR@%$INFODIR%g
15932 s%@infopath@%$infopath%g
15933 s%@INFOPATH_USER_DEFINED@%$INFOPATH_USER_DEFINED%g
15934 s%@INFOPATH@%$INFOPATH%g
15935 s%@package_path@%$package_path%g
15936 s%@PACKAGE_PATH_USER_DEFINED@%$PACKAGE_PATH_USER_DEFINED%g
15937 s%@PACKAGE_PATH@%$PACKAGE_PATH%g
15938 s%@lispdir@%$lispdir%g
15939 s%@LISPDIR_USER_DEFINED@%$LISPDIR_USER_DEFINED%g
15940 s%@LISPDIR@%$LISPDIR%g
15941 s%@moduledir@%$moduledir%g
15942 s%@MODULEDIR_USER_DEFINED@%$MODULEDIR_USER_DEFINED%g
15943 s%@MODULEDIR@%$MODULEDIR%g
15944 s%@sitelispdir@%$sitelispdir%g
15945 s%@SITELISPDIR_USER_DEFINED@%$SITELISPDIR_USER_DEFINED%g
15946 s%@SITELISPDIR@%$SITELISPDIR%g
15947 s%@sitemoduledir@%$sitemoduledir%g
15948 s%@SITEMODULEDIR_USER_DEFINED@%$SITEMODULEDIR_USER_DEFINED%g
15949 s%@SITEMODULEDIR@%$SITEMODULEDIR%g
15950 s%@etcdir@%$etcdir%g
15951 s%@ETCDIR_USER_DEFINED@%$ETCDIR_USER_DEFINED%g
15952 s%@ETCDIR@%$ETCDIR%g
15953 s%@docdir@%$docdir%g
15954 s%@DOCDIR_USER_DEFINED@%$DOCDIR_USER_DEFINED%g
15955 s%@DOCDIR@%$DOCDIR%g
15956 s%@archlibdir@%$archlibdir%g
15957 s%@ARCHLIBDIR_USER_DEFINED@%$ARCHLIBDIR_USER_DEFINED%g
15958 s%@ARCHLIBDIR@%$ARCHLIBDIR%g
15959 s%@bitmapdir@%$bitmapdir%g
15960 s%@extra_objs@%$extra_objs%g
15961 s%@machfile@%$machfile%g
15962 s%@opsysfile@%$opsysfile%g
15963 s%@c_switch_general@%$c_switch_general%g
15964 s%@c_switch_window_system@%$c_switch_window_system%g
15965 s%@c_switch_all@%$c_switch_all%g
15966 s%@ld_switch_general@%$ld_switch_general%g
15967 s%@ld_switch_window_system@%$ld_switch_window_system%g
15968 s%@ld_switch_all@%$ld_switch_all%g
15969 s%@ld_libs_general@%$ld_libs_general%g
15970 s%@ld_libs_window_system@%$ld_libs_window_system%g
15971 s%@ld_libs_all@%$ld_libs_all%g
15972 s%@RECURSIVE_MAKE@%$RECURSIVE_MAKE%g
15973 s%@native_sound_lib@%$native_sound_lib%g
15974 s%@sound_cflags@%$sound_cflags%g
15975 s%@dynodump_arch@%$dynodump_arch%g
15976 s%@XEMACS_CC@%$XEMACS_CC%g
15977 s%@internal_makefile_list@%$internal_makefile_list%g
15982 cat >> $CONFIG_STATUS <<\EOF
15984 # Split the substitutions into bite-sized pieces for seds with
15985 # small command number limits, like on Digital OSF/1 and HP-UX.
15986 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
15987 ac_file=1 # Number of current file.
15988 ac_beg=1 # First line for current file.
15989 ac_end=$ac_max_sed_cmds # Line after last line for current file.
15992 while $ac_more_lines; do
15993 if test $ac_beg -gt 1; then
15994 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
15996 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
15998 if test ! -s conftest.s$ac_file; then
15999 ac_more_lines=false
16000 rm -f conftest.s$ac_file
16002 if test -z "$ac_sed_cmds"; then
16003 ac_sed_cmds="sed -f conftest.s$ac_file"
16005 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
16007 ac_file=`expr $ac_file + 1`
16009 ac_end=`expr $ac_end + $ac_max_sed_cmds`
16012 if test -z "$ac_sed_cmds"; then
16017 cat >> $CONFIG_STATUS <<EOF
16019 CONFIG_FILES=\${CONFIG_FILES-"$ac_output_files"}
16021 cat >> $CONFIG_STATUS <<\EOF
16022 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
16023 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16025 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16026 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16027 *) ac_file_in="${ac_file}.in" ;;
16030 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
16032 # Remove last slash and all that follows it. Not all systems have dirname.
16033 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16034 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16035 # The file is in a subdirectory.
16036 test ! -d "$ac_dir" && mkdir "$ac_dir"
16037 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
16038 # A "../" for each directory in $ac_dir_suffix.
16039 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
16041 ac_dir_suffix= ac_dots=
16044 case "$ac_given_srcdir" in
16046 if test -z "$ac_dots"; then top_srcdir=.
16047 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
16048 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
16049 *) # Relative path.
16050 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
16051 top_srcdir="$ac_dots$ac_given_srcdir" ;;
16054 case "$ac_given_INSTALL" in
16055 [/$]*) INSTALL="$ac_given_INSTALL" ;;
16056 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
16059 echo creating "$ac_file"
16061 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
16063 *Makefile*) ac_comsub="1i\\
16064 # $configure_input" ;;
16068 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16070 s%@configure_input@%$configure_input%g
16071 s%@srcdir@%$srcdir%g
16072 s%@top_srcdir@%$top_srcdir%g
16073 s%@INSTALL@%$INSTALL%g
16074 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
16078 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16079 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16081 # ac_d sets the value in "#define NAME VALUE" lines.
16082 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16083 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
16086 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
16087 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16088 ac_uB='\([ ]\)%\1#\2define\3'
16091 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16092 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16093 ac_eB='$%\1#\2define\3'
16097 if test "${CONFIG_HEADERS+set}" != set; then
16099 cat >> $CONFIG_STATUS <<EOF
16100 CONFIG_HEADERS="src/config.h lwlib/config.h"
16102 cat >> $CONFIG_STATUS <<\EOF
16104 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
16105 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16107 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16108 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16109 *) ac_file_in="${ac_file}.in" ;;
16112 echo creating $ac_file
16114 rm -f conftest.frag conftest.in conftest.out
16115 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16116 cat $ac_file_inputs > conftest.in
16120 # Transform confdefs.h into a sed script conftest.vals that substitutes
16121 # the proper values into config.h.in to produce config.h. And first:
16122 # Protect against being on the right side of a sed subst in config.status.
16123 # Protect against being in an unquoted here document in config.status.
16124 rm -f conftest.vals
16125 cat > conftest.hdr <<\EOF
16128 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
16132 sed -n -f conftest.hdr confdefs.h > conftest.vals
16135 # This sed command replaces #undef with comments. This is necessary, for
16136 # example, in the case of _POSIX_SOURCE, which is predefined and required
16137 # on some systems where configure will not decide to define it.
16138 cat >> conftest.vals <<\EOF
16139 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
16142 # Break up conftest.vals because some shells have a limit on
16143 # the size of here documents, and old seds have small limits too.
16145 rm -f conftest.tail
16148 ac_lines=`grep -c . conftest.vals`
16149 # grep -c gives empty output for an empty file on some AIX systems.
16150 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
16151 # Write a limited-size here document to conftest.frag.
16152 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
16153 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
16155 sed -f conftest.frag conftest.in > conftest.out
16157 mv conftest.out conftest.in
16158 ' >> $CONFIG_STATUS
16159 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
16160 rm -f conftest.vals
16161 mv conftest.tail conftest.vals
16163 rm -f conftest.vals
16165 cat >> $CONFIG_STATUS <<\EOF
16166 rm -f conftest.frag conftest.h
16167 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
16168 cat conftest.in >> conftest.h
16170 if cmp -s $ac_file conftest.h 2>/dev/null; then
16171 echo "$ac_file is unchanged"
16174 # Remove last slash and all that follows it. Not all systems have dirname.
16175 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16176 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16177 # The file is in a subdirectory.
16178 test ! -d "$ac_dir" && mkdir "$ac_dir"
16181 mv conftest.h $ac_file
16186 cat >> $CONFIG_STATUS <<EOF
16188 top_srcdir="$srcdir"
16189 MAKE_SUBDIR="$MAKE_SUBDIR"
16192 cat >> $CONFIG_STATUS <<\EOF
16193 for dir in . $MAKE_SUBDIR; do
16198 sed -e '/^# Generated/d' \
16199 -e 's%/\*\*/#.*%%' \
16214 echo creating $dir/Makefile
16215 $CPP -I. -I${top_srcdir}/src junk.c \
16216 | sed -e 's/^\#.*//' \
16217 -e 's/^[ ][ ]*$//'\
16225 chmod 444 Makefile.new
16226 mv -f Makefile.new Makefile
16228 echo creating $dir/GNUmakefile
16229 $CPP -I. -I${top_srcdir}/src -DUSE_GNU_MAKE junk.c \
16230 | sed -e 's/^\#.*//' \
16231 -e 's/^[ ][ ]*$//'\
16239 chmod 444 Makefile.new
16240 mv -f Makefile.new GNUmakefile
16246 sed < config.status >> lib-src/config.values \
16247 -e '/{ac_dA}.*{ac_dB}.*{ac_dC}.*{ac_dD}$/!d' \
16248 -e 's/\${ac_dA}\(.*\)\${ac_dB}.*\${ac_dC}\(.*\)\${ac_dD}/\1 \2/' \
16249 -e 's/^\([^ ]*\) $/\1 ""/' \
16255 chmod +x $CONFIG_STATUS
16256 rm -fr confdefs* $ac_clean_files
16257 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1