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 | \
364 memory_usage_stats | \
365 with_clash_detection | \
369 y | ye | yes ) val=yes ;;
371 * ) (echo "$progname: Usage error:"
372 echo " " "The \`--$optname' option requires a boolean value: \`yes' or \`no'."
373 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
375 eval "$opt=\"$val\"" ;;
393 site_runtime_libraries )
394 if test "$valomitted" = "yes" ; then
395 if test "$#" = 0 ; then
396 (echo "$progname: Usage error:"
397 echo " " "The \`--$optname' option requires a value."
398 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
407 with_debug_malloc | use_debug_malloc | \
408 with_system_malloc | use_system_malloc )
410 y | ye | yes ) val=yes ;;
412 d | de | def | defa | defau | defaul | default ) val=default ;;
413 * ) (echo "$progname: Usage error:"
414 echo " " "The \`--$optname' option requires one of these values:
415 \`yes', \`no', or \`default'."
416 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
418 case "$opt" in use_* ) opt="`echo $opt | sed s/use/with/`" ;; esac
423 with_database_berkdb=no
425 with_database_gdbm=no
426 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
429 b | be | ber | berk | berkd | berkdb ) with_database_berkdb=yes ;;
430 d | db | dbm ) with_database_dbm=yes ;;
431 g | gn | gnu | gnud | gnudb | gnudbm | gdbm) with_database_gdbm=yes ;;
432 * ) (echo "$progname: Usage error:"
433 echo " " "The \`--$optname' option value
434 must be either \`no' or a comma-separated list
435 of one or more of \`berkdb' and either \`dbm' or \`gnudbm'."
436 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
439 if test "$with_database_dbm" = "yes" -a \
440 "$with_database_gdbm" = "yes"; then
441 (echo "$progname: Usage error:"
442 echo " " "Only one of \`dbm' and \`gnudbm' may be specified
443 with the \`--$optname' option."
444 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
449 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
451 n | no | non | none ) new_sdefault=no ;;
452 a | al | all | both ) new_sdefault=yes ;;
454 native ) with_native_sound=yes ;;
455 nonative ) with_native_sound=no ;;
457 nas ) with_nas_sound=yes ;;
458 nonas ) with_nas_sound=no ;;
460 esd ) with_esd_sound=yes ;;
461 noesd ) with_esd_sound=no ;;
463 * ) bogus_sound=yes ;;
465 if test "$bogus_sound" -o \
466 \( -n "$new_sdefault" -a -n "$sound_notfirst" \) ; then
467 types="\`all', \`none', \`(no)native', \`no(nas)', \`(no)esd'."
468 (echo "$progname: Usage error:"
469 echo " " "Valid types for the \`--$optname' option are:
471 The default is to autodetect all sound support."
472 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
473 elif test -n "$new_sdefault" ; then
474 with_native_sound=$new_sdefault
475 with_nas_sound=$new_sdefault
476 with_esd_sound=$new_sdefault
477 new_sdefault= # reset this
485 xa | xaw ) val=xaw ;;
486 3 | 3d | xaw3d ) val=3d ;;
487 ne | nex | next | naxtaw) val=next ;;
488 9 | 95 | xaw95 ) val=95 ;;
489 xp | xpm | xawxpm ) val=xpm ;;
490 * ) (echo "$progname: Usage error:"
491 echo " " "The \`--$optname' option must have one of these values:
492 \`xaw', \`3d', \`next', \`95', or \`xpm'."
493 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
500 y | ye | yes ) val=yes ;;
501 n | no | non | none ) val=no ;;
502 x | xl | xli | xlib ) val=xlib ;;
503 m | mo | mot | moti | motif ) val=motif ;;
504 * ) (echo "$progname: Usage error:"
505 echo " " "The \`--$optname' option must have one of these values:
506 \`motif', \`xlib', \`yes', or \`no'."
507 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
516 file | dot ) val=file ;;
517 locking ) val=locking ;;
518 * ) (echo "$progname: Usage error:"
519 echo " " "The \`--$optname' option must have one of these values:
520 \`lockf', \`flock', \`file', \`locking', or \`mmdf'."
521 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
528 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
530 n | no | non | none ) new_default=no ;;
531 a | al | all ) new_default=yes ;;
533 extents ) error_check_extents=yes ;;
534 noextents ) error_check_extents=no ;;
536 typecheck ) error_check_typecheck=yes ;;
537 notypecheck ) error_check_typecheck=no ;;
539 bufpos ) error_check_bufpos=yes ;;
540 nobufpos ) error_check_bufpos=no ;;
542 gc ) error_check_gc=yes ;;
543 nogc ) error_check_gc=no ;;
545 malloc ) error_check_malloc=yes ;;
546 nomalloc ) error_check_malloc=no ;;
548 byte_code ) error_check_byte_code=yes ;;
549 nobyte_code ) error_check_byte_code=no ;;
551 glyphs ) error_check_glyphs=yes ;;
552 noglyphs ) error_check_glyphs=no ;;
554 * ) bogus_error_check=yes ;;
556 if test "$bogus_error_check" -o \
557 \( -n "$new_default" -a -n "$echeck_notfirst" \) ; then
558 if test "$error_check_default" = yes ; then
559 types="\`all' (default), \`none', \`noextents', \`notypecheck', \`nobufpos', \`nogc', \`nomalloc', \`noglyphs' and \`nobyte-code'."
561 types="\`all', \`none' (default), \`extents', \`typecheck', \`bufpos', \`gc', \`malloc', \`glyphs' and \`byte-code'."
563 (echo "$progname: Usage error:"
564 echo " " "Valid types for the \`--$optname' option are:
566 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
567 elif test -n "$new_default" ; then
568 error_check_extents=$new_default
569 error_check_typecheck=$new_default
570 error_check_bufpos=$new_default
571 error_check_gc=$new_default
572 error_check_malloc=$new_default
573 error_check_byte_code=$new_default
574 error_check_glyphs=$new_default
575 new_default= # reset this
582 prefix | exec_prefix | bindir | datadir | statedir | libdir | \
583 mandir | infodir | infopath | lispdir | etcdir | pkgdir | \
584 archlibdir | docdir | package_path )
585 if test "$valomitted" = "yes"; then
586 if test "$#" = 0; then
587 (echo "$progname: Usage error:"
588 echo " " "The \`--$optname' option requires a value."
589 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
596 exec_prefix ) { test "$extra_verbose" = "yes" && cat << \EOF
597 Defining EXEC_PREFIX_USER_DEFINED
599 cat >> confdefs.h <<\EOF
600 #define EXEC_PREFIX_USER_DEFINED 1
604 lispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
605 Defining LISPDIR_USER_DEFINED
607 cat >> confdefs.h <<\EOF
608 #define LISPDIR_USER_DEFINED 1
612 sitelispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
613 Defining SITELISPDIR_USER_DEFINED
615 cat >> confdefs.h <<\EOF
616 #define SITELISPDIR_USER_DEFINED 1
620 moduledir ) { test "$extra_verbose" = "yes" && cat << \EOF
621 Defining MODULEDIR_USER_DEFINED
623 cat >> confdefs.h <<\EOF
624 #define MODULEDIR_USER_DEFINED 1
628 etcdir ) { test "$extra_verbose" = "yes" && cat << \EOF
629 Defining ETCDIR_USER_DEFINED
631 cat >> confdefs.h <<\EOF
632 #define ETCDIR_USER_DEFINED 1
636 infodir ) { test "$extra_verbose" = "yes" && cat << \EOF
637 Defining INFODIR_USER_DEFINED
639 cat >> confdefs.h <<\EOF
640 #define INFODIR_USER_DEFINED 1
644 infopath ) { test "$extra_verbose" = "yes" && cat << \EOF
645 Defining INFOPATH_USER_DEFINED
647 cat >> confdefs.h <<\EOF
648 #define INFOPATH_USER_DEFINED 1
652 package_path ) { test "$extra_verbose" = "yes" && cat << \EOF
653 Defining PACKAGE_PATH_USER_DEFINED
655 cat >> confdefs.h <<\EOF
656 #define PACKAGE_PATH_USER_DEFINED 1
661 { test "$extra_verbose" = "yes" && cat << \EOF
662 Defining INFODIR_USER_DEFINED
664 cat >> confdefs.h <<\EOF
665 #define INFODIR_USER_DEFINED 1
669 { test "$extra_verbose" = "yes" && cat << \EOF
670 Defining LISPDIR_USER_DEFINED
672 cat >> confdefs.h <<\EOF
673 #define LISPDIR_USER_DEFINED 1
677 { test "$extra_verbose" = "yes" && cat << \EOF
678 Defining MODULEDIR_USER_DEFINED
680 cat >> confdefs.h <<\EOF
681 #define MODULEDIR_USER_DEFINED 1
685 { test "$extra_verbose" = "yes" && cat << \EOF
686 Defining ETCDIR_USER_DEFINED
688 cat >> confdefs.h <<\EOF
689 #define ETCDIR_USER_DEFINED 1
693 { test "$extra_verbose" = "yes" && cat << \EOF
694 Defining DOCDIR_USER_DEFINED
696 cat >> confdefs.h <<\EOF
697 #define DOCDIR_USER_DEFINED 1
701 { test "$extra_verbose" = "yes" && cat << \EOF
702 Defining ARCHLIBDIR_USER_DEFINED
704 cat >> confdefs.h <<\EOF
705 #define ARCHLIBDIR_USER_DEFINED 1
709 docdir ) { test "$extra_verbose" = "yes" && cat << \EOF
710 Defining DOCDIR_USER_DEFINED
712 cat >> confdefs.h <<\EOF
713 #define DOCDIR_USER_DEFINED 1
717 exec_prefix | libdir | archlibdir ) { test "$extra_verbose" = "yes" && cat << \EOF
718 Defining ARCHLIBDIR_USER_DEFINED
720 cat >> confdefs.h <<\EOF
721 #define ARCHLIBDIR_USER_DEFINED 1
730 "usage" | "help" ) ${PAGER-more} ${srcdir}/configure.usage; exit 0 ;;
733 "with_scrollbars" | \
737 l | lu | luc | luci | lucid ) val=lucid ;;
738 m | mo | mot | moti | motif ) val=motif ;;
739 a | at | ath | athe | athen | athena ) val=athena ;;
740 n | no | non | none ) val=no ;;
741 y | ye | yes ) val=yes ;;
742 g | gt | gtk ) val=gtk ;;
743 m | ms | msw ) val=msw ;;
744 * ) (echo "$progname: Usage error:"
745 echo " " "The \`--$optname' option must have one of these values:
746 \`gtk\', \`lucid', \`motif', \`athena', \`yes', or \`no'."
747 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
752 "use_minimal_tagbits" | \
753 "use_indexed_lrecord_implementation" | \
755 "const_is_losing" | \
757 echo "configure: warning: Obsolete option \`--$optname' ignored." 1>&2
760 * ) (echo "$progname: Usage error:"
761 echo " " "Unrecognized option: $arg"
762 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
767 *-*-*) configuration="$arg" ;;
769 *) (echo "$progname: Usage error:"
770 echo " " "Unrecognized argument: $arg"
771 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
777 test -n "$cpp" && CPP="$cpp"
778 test -n "$cppflags" && CPPFLAGS="$cppflags"
779 test -n "$libs" && LIBS="$libs"
780 test -n "$ldflags" && LDFLAGS="$ldflags"
782 eval set x "$quoted_arguments"; shift
784 test "$extra_verbose" = "yes" && verbose=yes
786 test -n "$with_x" && with_x11="$with_x"
788 if test "$with_purify" = "yes" -o "$with_quantify" = "yes"; then
789 test "$with_system_malloc" = "default" && with_system_malloc=yes
794 if test "$with_cde $with_tooltalk" = "yes no"; then
795 (echo "$progname: Usage error:"
796 echo " " "--with-cde requires --with-tooltalk"
797 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
798 elif test "$with_tooltalk" = "no" ; then with_cde=no
799 elif test "$with_cde" = "yes"; then with_tooltalk=yes
806 for dir in "`echo $0 | sed 's|//|/|' | sed 's|/[^/]*$||'`" "." ".." ; do
807 if test -f "$dir/src/lisp.h" -a \
808 -f "$dir/lisp/version.el" ; then
813 if test -z "$srcdir" ; then
814 (echo "$progname: Usage error:"
815 echo " " "Neither the current directory nor its parent seem to
816 contain the XEmacs sources. If you do not want to build XEmacs in its
817 source tree, you should run \`$progname' in the directory in which
818 you wish to build XEmacs, using the \`--srcdir' option to say where the
819 sources may be found."
820 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
825 if test ! -f "$srcdir/src/lisp.h" -o \
826 ! -f "$srcdir/lisp/version.el" ; then
827 (echo "$progname: Usage error:"
828 echo " " "The directory specified with the \`--srcdir' option,
829 \`$srcdir', doesn't seem to contain the XEmacs sources. You should
830 either run the \`$progname' script at the top of the XEmacs source
831 tree, or use the \`--srcdir' option to specify the XEmacs source directory."
832 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
837 if test -z "$configuration"; then
838 configuration=`${CONFIG_SHELL-/bin/sh} $srcdir/config.guess`
839 if test -z "$configuration"; then
840 (echo "$progname: Usage error:"
841 echo " " "XEmacs has not been ported to this host type.
842 Try explicitly specifying the CONFIGURATION when rerunning configure."
843 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
847 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
848 echo "configure:849: checking whether ln -s works" >&5
851 if ln -s X conftestdata 2>/dev/null
854 ac_cv_prog_LN_S="ln -s"
858 LN_S="$ac_cv_prog_LN_S"
859 if test "$ac_cv_prog_LN_S" = "ln -s"; then
860 echo "$ac_t""yes" 1>&6
862 echo "$ac_t""no" 1>&6
866 for dir in lisp etc man info tests; do
867 if test ! -d "$dir" ; then
868 echo Making symbolic link to "$srcdir/$dir"
869 ${LN_S} "$srcdir/$dir" "$dir"
874 absolute_pwd="`pwd`";
875 if test -n "$PWD" -a "`cd $PWD && pwd`" = "$absolute_pwd"
877 else blddir="$absolute_pwd"; if test -d "/net"; then
878 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi
879 blddir=`echo "$blddir" | \
880 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
887 . ) srcdir="$blddir" ;;
888 * ) srcdir="`cd $srcdir && pwd`"; if test -d "/net"; then
889 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi
890 srcdir=`echo "$srcdir" | \
891 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
895 if test `pwd` != `sh -c cd $srcdir && pwd` \
896 && test -f "$srcdir/src/config.h"; then
897 (echo "$progname: WARNING: The directory tree \`$srcdir' is being used"
898 echo " as a build directory right now; it has been configured in its own"
899 echo " right. To configure in another directory as well, you MUST"
900 echo " use GNU make. If you do not have GNU make, then you must"
901 echo " now do \`make distclean' in $srcdir,"
902 echo " and then run $progname again.") >&2
903 extrasub='/^VPATH[ ]*=/c\
909 vpath %.in $(srcdir)'
912 . "$srcdir/version.sh" || exit 1;
913 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
914 : "${extra_verbose=$beta}"
915 version="${emacs_major_version}.${emacs_minor_version}"
916 { test "$extra_verbose" = "yes" && cat << EOF
917 Defining EMACS_MAJOR_VERSION = $emacs_major_version
919 cat >> confdefs.h <<EOF
920 #define EMACS_MAJOR_VERSION $emacs_major_version
924 { test "$extra_verbose" = "yes" && cat << EOF
925 Defining EMACS_MINOR_VERSION = $emacs_minor_version
927 cat >> confdefs.h <<EOF
928 #define EMACS_MINOR_VERSION $emacs_minor_version
932 if test -n "$emacs_beta_version" ; then
933 if test "$beta" = "yes"; then
934 version="${version}-b${emacs_beta_version}"
935 { test "$extra_verbose" = "yes" && cat << EOF
936 Defining EMACS_BETA_VERSION = $emacs_beta_version
938 cat >> confdefs.h <<EOF
939 #define EMACS_BETA_VERSION $emacs_beta_version
944 version="${version}.${emacs_beta_version}"
945 { test "$extra_verbose" = "yes" && cat << EOF
946 Defining EMACS_PATCH_LEVEL = $emacs_beta_version
948 cat >> confdefs.h <<EOF
949 #define EMACS_PATCH_LEVEL $emacs_beta_version
955 { test "$extra_verbose" = "yes" && cat << EOF
956 Defining XEMACS_CODENAME = "$xemacs_codename"
958 cat >> confdefs.h <<EOF
959 #define XEMACS_CODENAME "$xemacs_codename"
963 { test "$extra_verbose" = "yes" && cat << EOF
964 Defining EMACS_VERSION = "$version"
966 cat >> confdefs.h <<EOF
967 #define EMACS_VERSION "$version"
972 if test "$with_infodock" = "yes"; then
973 if test ! -f ../../ID-INSTALL; then
974 echo "Cannot build InfoDock without InfoDock sources"
979 if test "$with_infodock" = "yes"; then
980 { test "$extra_verbose" = "yes" && cat << EOF
981 Defining INFODOCK_MAJOR_VERSION = $infodock_major_version
983 cat >> confdefs.h <<EOF
984 #define INFODOCK_MAJOR_VERSION $infodock_major_version
988 { test "$extra_verbose" = "yes" && cat << EOF
989 Defining INFODOCK_MINOR_VERSION = $infodock_minor_version
991 cat >> confdefs.h <<EOF
992 #define INFODOCK_MINOR_VERSION $infodock_minor_version
996 { test "$extra_verbose" = "yes" && cat << EOF
997 Defining INFODOCK_BUILD_VERSION = $infodock_build_version
999 cat >> confdefs.h <<EOF
1000 #define INFODOCK_BUILD_VERSION $infodock_build_version
1004 version=${infodock_major_version}.${infodock_minor_version}.${infodock_build_version}
1006 CPPFLAGS="$CPPFLAGS -DINFODOCK"
1011 { test "$extra_verbose" = "yes" && cat << EOF
1012 Defining EMACS_PROGNAME = "$PROGNAME"
1014 cat >> confdefs.h <<EOF
1015 #define EMACS_PROGNAME "$PROGNAME"
1020 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
1021 test "${error_check_extents=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1022 Defining ERROR_CHECK_EXTENTS
1024 cat >> confdefs.h <<\EOF
1025 #define ERROR_CHECK_EXTENTS 1
1029 test "${error_check_typecheck=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1030 Defining ERROR_CHECK_TYPECHECK
1032 cat >> confdefs.h <<\EOF
1033 #define ERROR_CHECK_TYPECHECK 1
1037 test "${error_check_bufpos=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1038 Defining ERROR_CHECK_BUFPOS
1040 cat >> confdefs.h <<\EOF
1041 #define ERROR_CHECK_BUFPOS 1
1045 test "${error_check_gc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1046 Defining ERROR_CHECK_GC
1048 cat >> confdefs.h <<\EOF
1049 #define ERROR_CHECK_GC 1
1053 test "${error_check_malloc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1054 Defining ERROR_CHECK_MALLOC
1056 cat >> confdefs.h <<\EOF
1057 #define ERROR_CHECK_MALLOC 1
1061 test "${error_check_byte_code=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1062 Defining ERROR_CHECK_BYTE_CODE
1064 cat >> confdefs.h <<\EOF
1065 #define ERROR_CHECK_BYTE_CODE 1
1069 test "${error_check_glyphs=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1070 Defining ERROR_CHECK_GLYPHS
1072 cat >> confdefs.h <<\EOF
1073 #define ERROR_CHECK_GLYPHS 1
1077 if test "${debug:=$beta}" = "yes"; then
1078 use_assertions=yes memory_usage_stats=yes
1079 extra_objs="$extra_objs debug.o" && if test "$extra_verbose" = "yes"; then
1080 echo " xemacs will be linked with \"debug.o\""
1082 extra_objs="$extra_objs tests.o" && if test "$extra_verbose" = "yes"; then
1083 echo " xemacs will be linked with \"tests.o\""
1085 { test "$extra_verbose" = "yes" && cat << \EOF
1086 Defining DEBUG_XEMACS
1088 cat >> confdefs.h <<\EOF
1089 #define DEBUG_XEMACS 1
1094 test "$use_assertions" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
1095 Defining USE_ASSERTIONS
1097 cat >> confdefs.h <<\EOF
1098 #define USE_ASSERTIONS 1
1102 test "$memory_usage_stats" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
1103 Defining MEMORY_USAGE_STATS
1105 cat >> confdefs.h <<\EOF
1106 #define MEMORY_USAGE_STATS 1
1112 echo $ac_n "checking "host system type"""... $ac_c" 1>&6
1113 echo "configure:1114: checking "host system type"" >&5
1114 internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'`
1115 canonical=`${CONFIG_SHELL-/bin/sh} $srcdir/config.sub "$internal_configuration"`
1116 configuration=`echo "$configuration" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
1117 canonical=`echo "$canonical" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
1118 echo "$ac_t""$configuration" 1>&6
1126 case "$canonical" in
1127 sparc-*-* ) machine=sparc ;;
1128 alpha*-*-* ) machine=alpha ;;
1129 vax-*-* ) machine=vax ;;
1130 mips-dec-* ) machine=pmax ;;
1131 mips-sgi-irix6* ) machine=iris6d ;;
1132 mips-sgi-* ) machine=iris4d ;;
1133 mips*-linux ) machine=mips ;;
1134 romp-ibm-* ) machine=ibmrt ;;
1135 rs6000-ibm-aix* ) machine=ibmrs6000 ;;
1136 powerpc-ibm-aix* ) machine=ibmrs6000 ;;
1137 powerpc*-* ) machine=powerpc ;;
1138 hppa-*-* ) machine=hp800 ;;
1139 m88k-dg-* ) machine=aviion ;;
1140 m68*-sony-* ) machine=news ;;
1141 mips-sony-* ) machine=news-risc ;;
1142 clipper-* ) machine=clipper ;;
1143 arm* ) machine=arm ;;
1144 ns32k-* ) machine=ns32000 ;;
1147 case "$canonical" in
1148 *-*-linux* ) opsys=linux ;;
1149 *-*-netbsd* ) opsys=netbsd ;;
1150 *-*-openbsd* ) opsys=openbsd ;;
1151 *-*-nextstep* ) opsys=nextstep ;;
1152 *-*-vms ) opsys=vms ;;
1154 *-dec-osf1.3 | *-dec-osf2* ) opsys=decosf1-3 ;;
1155 *-dec-osf1.2 | *-dec-osf1* ) opsys=decosf1-2 ;;
1156 *-dec-osf3.[2-9] ) opsys=decosf3-2 ;;
1157 *-dec-osf3* ) opsys=decosf3-1 ;;
1158 *-dec-osf[4-9]* ) opsys=decosf4-0 ;;
1160 *-*-ultrix[0-3].* | *-*-ultrix4.0* ) opsys=bsd4-2 ;;
1161 *-*-ultrix4.[12]* ) opsys=bsd4-3 ;;
1162 *-*-ultrix* ) opsys=ultrix4-3 ;;
1164 *-*-aix3.1* ) opsys=aix3-1 ;;
1165 *-*-aix3.2.5 ) opsys=aix3-2-5 ;;
1166 *-*-aix3* ) opsys=aix3-2 ;;
1167 *-*-aix4.0* ) opsys=aix4 ;;
1168 *-*-aix4.1* ) opsys=aix4-1 ;;
1169 *-*-aix4* ) opsys=aix4-2 ;;
1171 *-gnu* ) opsys=gnu ;;
1172 *-*-bsd4.[01] ) opsys=bsd4-1 ;;
1173 *-*-bsd4.2 ) opsys=bsd4-2 ;;
1174 *-*-bsd4.3 ) opsys=bsd4-3 ;;
1175 *-*-aos4.2 ) opsys=bsd4-2 ;;
1176 *-*-aos* ) opsys=bsd4-3 ;;
1177 *-*-sysv0 | *-*-sysvr0 ) opsys=usg5-0 ;;
1178 *-*-sysv2 | *-*-sysvr2 ) opsys=usg5-2 ;;
1179 *-*-sysv2.2 | *-*-sysvr2.2 ) opsys=usg5-2-2 ;;
1180 *-*-sysv3* | *-*-sysvr3* ) opsys=usg5-3 ;;
1181 *-*-sysv4.1* | *-*-sysvr4.1* )opsys=usg5-4 NON_GNU_CPP=/usr/lib/cpp ;;
1182 *-*-sysv4.[2-9]* | *-sysvr4.[2-9]* )
1183 if test -z "$NON_GNU_CPP" ; then
1184 for prog in "/usr/ccs/lib/cpp" "/lib/cpp"; do
1185 if test -f "$prog"; then NON_GNU_CPP="$prog"; break; fi
1189 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
1190 *-*-mach_bsd4.3* ) opsys=mach-bsd4-3 ;;
1193 case "$canonical" in
1196 case "$canonical" in
1197 i[3-9]86-*-netbsd*) machine=intel386 ;;
1198 hp300-*-netbsd* | amiga-*-netbsd* | sun3-*-netbsd* | mac68k-*-netbsd* | da30-*-netbsd* | m68k-*-netbsd* )
1199 machine=hp9000s300 ;;
1200 pc532-*-netbsd* | ns32k-*-netbsd* ) machine=ns32000 ;;
1201 pmax-*-netbsd* | mips-*-netbsd* ) machine=pmax ;;
1206 case "${canonical}" in
1207 i386-*-openbsd*) machine=intel386 ;;
1208 m68k-*-openbsd*) machine=hp9000s300 ;;
1209 mipsel-*-openbsd*) machine=pmax ;;
1213 arm-acorn-riscix1.1* ) machine=acorn opsys=riscix1-1 ;;
1214 arm-acorn-riscix1.2* | arm-acorn-riscix ) machine=acorn opsys=riscix1-2 ;;
1216 fx80-alliant-* ) machine=alliant4 opsys=bsd4-2 ;;
1217 i860-alliant-* ) machine=alliant-2800 opsys=bsd4-3 ;;
1219 m68*-altos-sysv* ) machine=altos opsys=usg5-2 ;;
1221 580-amdahl-sysv* ) machine=amdahl opsys=usg5-2-2 ;;
1223 m68*-apollo-* ) machine=apollo opsys=bsd4-3 ;;
1225 we32k-att-sysv* ) machine=att3b opsys=usg5-2-2 ;;
1227 m68*-att-sysv* ) machine=7300 opsys=usg5-2-2 ;;
1229 rs6000-bull-bosx* ) machine=ibmrs6000 opsys=aix3-2 ;; # dpx20
1230 m68*-bull-sysv3* ) machine=dpx2 opsys=usg5-3 ;; # dpx2
1231 m68*-bull-sysv2* ) machine=sps7 opsys=usg5-2 ;; # sps7
1234 celerity-celerity-bsd* ) machine=celerity opsys=bsd4-2 ;;
1236 *-convex-bsd* | *-convex-convexos* )
1237 machine=convex opsys=bsd4-3
1238 NON_GNU_CPP="cc -E -P"
1241 i[3-9]86-cubix-sysv* ) machine=intel386 opsys=usg5-3 ;;
1243 i586-dg-dgux*R4* | i586-dg-dgux5.4.4* ) machine=aviion opsys=dgux5-4r4 ;;
1244 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) opsys=dgux5-4r3 ;;
1245 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) opsys=dgux5-4r2 ;;
1246 m88k-dg-dgux* ) opsys=dgux ;;
1248 m68k-motorola-sysv* | m68000-motorola-sysv* ) machine=delta opsys=usg5-3 ;;
1249 m88k-motorola-sysv4* )
1250 machine=delta88k opsys=usg5-4-2
1252 m88k-motorola-sysv* | m88k-motorola-m88kbcs* ) machine=delta88k opsys=usg5-3 ;;
1254 m68*-dual-sysv* ) machine=dual opsys=usg5-2 ;;
1255 m68*-dual-uniplus* ) machine=dual opsys=unipl5-2 ;;
1257 ns16k-encore-bsd* ) machine=ns16000 opsys=umax ;;
1259 pn-gould-bsd4.2* ) machine=gould opsys=bsd4-2 ;;
1260 pn-gould-bsd4.3* ) machine=gould opsys=bsd4-3 ;;
1261 np1-gould-bsd* ) machine=gould-np1 opsys=bsd4-3 ;;
1264 case "`uname -r`" in
1265 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
1266 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
1268 NON_GNU_CPP="/lib/cpp"
1270 m68k-harris-cxux* ) machine=nh3000 opsys=cxux ;;
1271 powerpc-harris-powerunix ) machine=nh6000 opsys=powerunix NON_GNU_CPP="cc -Xo -E -P" ;;
1273 xps*-honeywell-sysv* ) machine=xps100 opsys=usg5-2 ;;
1275 m68*-hp-bsd* ) machine=hp9000s300 opsys=bsd4-3 ;;
1278 case "$canonical" in
1279 m68* ) machine=hp9000s300 ;;
1280 hppa* ) machine=hp800 ;;
1283 case "$canonical" in
1284 *-hp-hpux7* ) opsys=hpux ;;
1285 *-hp-hpux8* ) opsys=hpux8 ;;
1286 *-hp-hpux9* ) opsys=hpux9 ;;
1287 *-hp-hpux10* ) opsys=hpux10 ;;
1288 *-hp-hpux11* ) opsys=hpux11 ;;
1292 case "$opsys" in hpux9 | hpux10 ) extra_objs="$extra_objs strcat.o" && if test "$extra_verbose" = "yes"; then
1293 echo " xemacs will be linked with \"strcat.o\""
1296 if test "$opsys" = "hpux10" -o "$opsys" = "hpux11"; then \
1297 ansi_flag="-Ae"; else ansi_flag="-Aa"; fi
1298 NON_GNU_CC="cc $ansi_flag" NON_GNU_CPP="cc $ansi_flag -E"
1300 case "$canonical" in *-hp-hpux*shr* ) opsys="${opsys}-shr" ;; esac
1303 orion-orion-bsd* ) machine=orion opsys=bsd4-2 ;;
1304 clipper-orion-bsd* ) machine=orion105 opsys=bsd4-2 ;;
1306 i[3-9]86-ibm-aix1.1* ) machine=ibmps2-aix opsys=usg5-2-2 ;;
1307 i[3-9]86-ibm-aix1.[23]* | i[3-9]86-ibm-aix* ) machine=ibmps2-aix opsys=usg5-3 ;;
1308 i370-ibm-aix*) machine=ibm370aix opsys=usg5-3 ;;
1309 romp-ibm-aos* ) opsys=bsd4-3 ;;
1310 romp-ibm-bsd* ) opsys=bsd4-3 ;;
1311 romp-ibm-mach* ) opsys=mach-bsd4-3 ;;
1313 m68*-isi-bsd4.2* ) machine=isi-ov opsys=bsd4-2 ;;
1314 m68*-isi-bsd4.3* ) machine=isi-ov opsys=bsd4-3 ;;
1316 i[3-9]86-intsys-sysv* ) machine=is386 opsys=usg5-2-2 ;;
1318 i[3-9]86-prime-sysv* ) machine=i386 opsys=usg5-3 ;;
1320 i[3-9]86-sequent-bsd* ) machine=symmetry opsys=bsd4-3 ;;
1322 i[3-9]86-sequent-ptx* ) machine=sequent-ptx opsys=ptx NON_GNU_CPP="/lib/cpp" ;;
1324 i[3-9]86-ncr-sysv* ) machine=ncr386 opsys=usg5-4-2 ;;
1326 i860-intel-osf1* ) machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp ;;
1328 i860-*-sysv4* ) machine=i860 opsys=usg5-4 NON_GNU_CC="/bin/cc" NON_GNU_CPP="/usr/ccs/lib/cpp" ;;
1330 m68*-masscomp-rtu* ) machine=masscomp opsys=rtu ;;
1332 m68*-megatest-bsd* ) machine=mega68 opsys=bsd4-2 ;;
1334 mips-mips-usg* ) machine=mips4 ;;
1337 NON_GNU_CC="cc -systype bsd43"
1338 NON_GNU_CPP="cc -systype bsd43 -E"
1339 case "$canonical" in
1340 mips-mips-riscos4* ) opsys=bsd4-3 ;;
1341 mips-mips-riscos5* ) opsys=riscos5 ;;
1344 mips-mips-bsd* ) machine=mips opsys=bsd4-3 ;;
1345 mips-mips-* ) machine=mips opsys=usg5-2-2 ;;
1347 m68*-next-* | m68k-*-nextstep* ) machine=m68k opsys=nextstep ;;
1349 ns32k-ns-genix* ) machine=ns32000 opsys=usg5-2 ;;
1351 m68*-ncr-sysv2* | m68*-ncr-sysvr2* ) machine=tower32 opsys=usg5-2-2 ;;
1352 m68*-ncr-sysv3* | m68*-ncr-sysvr3* ) machine=tower32v3 opsys=usg5-3 ;;
1354 m68*-nixdorf-sysv* ) machine=targon31 opsys=usg5-2-2 ;;
1356 m68*-nu-sysv* ) machine=nu opsys=usg5-2 ;;
1358 m68*-plexus-sysv* ) machine=plexus opsys=usg5-2 ;;
1360 pyramid-pyramid-bsd* ) machine=pyramid opsys=bsd4-2 ;;
1362 ns32k-sequent-bsd4.2* ) machine=sequent opsys=bsd4-2 ;;
1363 ns32k-sequent-bsd4.3* ) machine=sequent opsys=bsd4-3 ;;
1365 mips-siemens-sysv* | mips-sni-sysv*)
1366 machine=mips-siemens opsys=usg5-4
1367 NON_GNU_CC=/usr/ccs/bin/cc
1368 NON_GNU_CPP=/usr/ccs/lib/cpp
1373 NON_GNU_CC=/usr/ccs/bin/cc
1374 NON_GNU_CPP=/usr/ccs/lib/cpp
1377 m68*-sgi-iris3.5* ) machine=irist opsys=iris3-5 ;;
1378 m68*-sgi-iris3.6* | m68*-sgi-iris*) machine=irist opsys=iris3-6 ;;
1379 mips-sgi-irix3.* ) opsys=irix3-3 ;;
1380 mips-sgi-irix4.* ) opsys=irix4-0 ;;
1381 mips-sgi-irix6* ) opsys=irix6-0 ;;
1382 mips-sgi-irix5.1* ) opsys=irix5-1 ;;
1383 mips-sgi-irix5.2* ) opsys=irix5-2 ;;
1384 mips-sgi-irix5.* ) opsys=irix5-3 ;;
1385 mips-sgi-irix* ) opsys=irix5-0 ;;
1387 *-sony-newsos[34]* | *-sony-news[34]* ) opsys=bsd4-3 ;;
1388 *-sony-news* ) opsys=newsos5 ;;
1390 m68*-stride-sysv* ) machine=stride opsys=usg5-2 ;;
1392 *-*-solaris* | *-*-sunos* | *-sun-mach* | *-sun-bsd* )
1393 case "$canonical" in
1394 m68*-sunos1* ) machine=sun1 ;;
1395 m68*-sunos2* ) machine=sun2 ;;
1396 m68* ) machine=sun3 ;;
1397 i*86*-sun-sunos[34]* ) machine=sun386 ;;
1398 i*86-*-* ) machine=intel386 ;;
1399 rs6000* ) machine=rs6000 ;;
1402 case "$canonical" in *-sunos5*)
1403 canonical=`echo $canonical | sed -e s/sunos5/solaris2/`;;
1406 case "$canonical" in
1408 #test -f /usr/lib/cpp && NON_GNU_CPP=/usr/lib/cpp ;;
1411 #test -f /usr/ccs/lib/cpp && NON_GNU_CPP=/usr/ccs/lib/cpp
1415 case "$canonical" in
1418 os_release=`uname -r | sed -e 's/^\([0-9]\)\.\([0-9]\).*/\1\2/'`
1419 { test "$extra_verbose" = "yes" && cat << EOF
1420 Defining OS_RELEASE = $os_release
1422 cat >> confdefs.h <<EOF
1423 #define OS_RELEASE $os_release
1428 i*86-*-sunos4* ) opsys=sunos4-0 ;;
1429 *-sunos4.0* ) opsys=sunos4-0 ;;
1430 *-sunos4.1.2* ) opsys=sunos4-1-2 ;;
1431 *-sunos4.1.3* ) opsys=sunos4-1-3 ;;
1432 *-sunos4.1.[4-9]* ) opsys=sunos4-1-4 ;;
1433 *-sunos4* | *-sunos ) opsys=sunos4-1 ;;
1434 *-mach* ) opsys=mach-bsd4-3 ;;
1438 case "$canonical" in *-sunos4*shr* ) opsys="${opsys}-shr" ;; esac
1440 test "$opsys $CC" = "sol2 /usr/ucb/cc" && CC=""
1443 m68*-tadpole-sysv* ) machine=tad68k opsys=usg5-3 ;;
1445 tahoe-tahoe-bsd4.2* ) machine=tahoe opsys=bsd4-2 ;;
1446 tahoe-tahoe-bsd4.3* ) machine=tahoe opsys=bsd4-3 ;;
1448 mips-tandem-sysv* ) machine=tandem-s2 opsys=usg5-3 ;;
1450 m88k-tektronix-sysv3* ) machine=tekxd88 opsys=usg5-3 ;;
1452 ns16k-tektronix-bsd* ) machine=ns16000 opsys=bsd4-2 ;;
1453 m68*-tektronix-bsd* ) machine=tek4300 opsys=bsd4-3 ;;
1455 titan-titan-sysv* ) machine=titan opsys=usg5-3 ;;
1457 m68*-unisys-uniplus* ) machine=ustation opsystem=unipl5-2 ;;
1460 case "$canonical" in
1461 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
1462 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
1463 *-mach* ) opsys=mach-bsd4-3 ;;
1467 ns16k-whitechapel-* ) machine=mg1 ;;
1469 m68*-wicat-sysv* ) machine=wicat opsys=usg5-2 ;;
1473 case "$canonical" in
1474 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
1475 *-isc2.2* ) opsys=isc2-2 ;;
1476 *-isc4.0* ) opsys=isc4-0 ;;
1477 *-isc4.* ) opsys=isc4-1
1478 GCC_TEST_OPTIONS=-posix
1479 NON_GCC_TEST_OPTIONS=-Xp
1481 *-isc* ) opsys=isc3-0 ;;
1482 *-esix5* ) opsys=esix5r4 NON_GNU_CPP=/usr/lib/cpp ;;
1483 *-esix* ) opsys=esix ;;
1484 *-mach* ) opsys=mach-bsd4-3 ;;
1485 *-xenix* ) opsys=xenix ;;
1486 *-sco3.2v4* ) opsys=sco4 NON_GNU_CPP=/lib/cpp ;;
1487 *-bsd386* | *-bsdi1* ) opsys=bsd386 ;;
1488 *-bsdi4* ) opsys=bsdos4 ;;
1489 *-bsdi3* ) opsys=bsdos3 ;;
1490 *-bsdi2.1* ) opsys=bsdos2-1 ;;
1491 *-bsdi2* ) opsys=bsdos2 ;;
1492 *-sco3.2v5* ) opsys=sco5 ;;
1493 *-sysv5* ) opsys=sco7 ;;
1494 *-386bsd* ) opsys=386bsd ;;
1495 *-freebsd* ) opsys=freebsd ;;
1496 *-nextstep* ) opsys=nextstep ;;
1497 *-pc-cygwin* ) opsys=cygwin32 ;;
1498 *-pc-mingw* ) opsys=mingw32 ;
1499 test -z "$with_tty" && with_tty="no";;
1503 m68k-*-linux* ) machine=m68k opsys=linux ;;
1507 test -z "$machine" && machine=`echo $canonical | sed 's/-.*$//'`
1508 test -z "$opsys" && opsys=`echo $canonical | sed 's/^^-*-^-*-//'`
1510 if test -r "${srcdir}/src/m/${machine}.h"; then
1511 machfile="m/${machine}.h"
1512 { test "$extra_verbose" = "yes" && cat << EOF
1513 Defining config_machfile = "$machfile"
1515 cat >> confdefs.h <<EOF
1516 #define config_machfile "$machfile"
1521 echo "XEmacs has no builtin knowledge of \`$machine' machines."
1522 echo "Using configure-time autodetection only."
1525 if test -r "${srcdir}/src/s/${opsys}.h"; then
1526 opsysfile="s/${opsys}.h"
1527 { test "$extra_verbose" = "yes" && cat << EOF
1528 Defining config_opsysfile = "$opsysfile"
1530 cat >> confdefs.h <<EOF
1531 #define config_opsysfile "$opsysfile"
1536 echo "XEmacs has no builtin knowledge of \`$opsys' operating systems."
1537 echo "Using configure-time autodetection only."
1541 if test -z "$dynamic"; then
1543 hpux* | sunos4* ) dynamic=no ;;
1547 if test "$dynamic" = "yes"; then
1549 hpux* | sunos4* | sco5 ) opsys="${opsys}-shr" ;;
1550 decosf* ) ld_call_shared="-call_shared" ;;
1552 else case "$opsys" in
1554 echo "Static linking is not supported on Solaris 2."
1555 echo "Rerun configure without specifying --dynamic=no."
1557 linux ) ld_call_shared="-Bstatic" ;;
1558 decosf* ) ld_call_shared="-non_shared" ;;
1562 case "$opsys" in aix*) NON_GNU_CC=xlc ;; esac
1564 stack_trace_eye_catcher=`echo ${PROGNAME}_${version}_${canonical} | sed 'y/.-/__/'`
1565 { test "$extra_verbose" = "yes" && cat << EOF
1566 Defining STACK_TRACE_EYE_CATCHER = $stack_trace_eye_catcher
1568 cat >> confdefs.h <<EOF
1569 #define STACK_TRACE_EYE_CATCHER $stack_trace_eye_catcher
1575 test "$with_sparcworks" = "yes" && with_workshop=yes # compatibility alias
1576 if test "$with_workshop $with_tooltalk" = "yes no"; then
1577 (echo "$progname: Usage error:"
1578 echo " " "--with-workshop requires --with-tooltalk"
1579 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
1580 elif test "$with_tooltalk" = "no" ; then with_workshop=no
1581 elif test "$with_workshop" = "yes"; then with_tooltalk=yes
1584 if test "$with_workshop" = "yes"; then
1585 { test "$extra_verbose" = "yes" && cat << \EOF
1588 cat >> confdefs.h <<\EOF
1593 extra_objs="$extra_objs sunpro.o" && if test "$extra_verbose" = "yes"; then
1594 echo " xemacs will be linked with \"sunpro.o\""
1598 if test "$with_clash_detection" != "no"; then
1599 { test "$extra_verbose" = "yes" && cat << \EOF
1600 Defining CLASH_DETECTION
1602 cat >> confdefs.h <<\EOF
1603 #define CLASH_DETECTION 1
1607 extra_objs="$extra_objs filelock.o" && if test "$extra_verbose" = "yes"; then
1608 echo " xemacs will be linked with \"filelock.o\""
1612 test -n "$compiler" && CC="$compiler"
1613 if test "$with_gcc" = "no"; then case "$CC" in "" | *gcc* ) CC="${NON_GNU_CC-cc}" ;; esac
1616 test "${cflags-unset}" != unset && CFLAGS="$cflags"
1617 if test "${CFLAGS-unset}" != unset
1618 then cflags_specified=yes;
1619 else cflags_specified=no;
1622 xe_save_CFLAGS="$CFLAGS"
1624 # Extract the first word of "gcc", so it can be a program name with args.
1625 set dummy gcc; ac_word=$2
1626 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1627 echo "configure:1628: checking for $ac_word" >&5
1629 if test -n "$CC"; then
1630 ac_cv_prog_CC="$CC" # Let the user override the test.
1632 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1634 for ac_dir in $ac_dummy; do
1635 test -z "$ac_dir" && ac_dir=.
1636 if test -f $ac_dir/$ac_word; then
1644 if test -n "$CC"; then
1645 echo "$ac_t""$CC" 1>&6
1647 echo "$ac_t""no" 1>&6
1650 if test -z "$CC"; then
1651 # Extract the first word of "cc", so it can be a program name with args.
1652 set dummy cc; ac_word=$2
1653 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1654 echo "configure:1655: checking for $ac_word" >&5
1656 if test -n "$CC"; then
1657 ac_cv_prog_CC="$CC" # Let the user override the test.
1659 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1662 for ac_dir in $ac_dummy; do
1663 test -z "$ac_dir" && ac_dir=.
1664 if test -f $ac_dir/$ac_word; then
1665 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1666 ac_prog_rejected=yes
1674 if test $ac_prog_rejected = yes; then
1675 # We found a bogon in the path, so make sure we never use it.
1676 set dummy $ac_cv_prog_CC
1678 if test $# -gt 0; then
1679 # We chose a different compiler from the bogus one.
1680 # However, it has the same basename, so the bogon will be chosen
1681 # first if we set CC to just the basename; use the full file name.
1683 set dummy "$ac_dir/$ac_word" "$@"
1690 if test -n "$CC"; then
1691 echo "$ac_t""$CC" 1>&6
1693 echo "$ac_t""no" 1>&6
1696 if test -z "$CC"; then
1697 case "`uname -s`" in
1699 # Extract the first word of "cl", so it can be a program name with args.
1700 set dummy cl; ac_word=$2
1701 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1702 echo "configure:1703: checking for $ac_word" >&5
1704 if test -n "$CC"; then
1705 ac_cv_prog_CC="$CC" # Let the user override the test.
1707 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1709 for ac_dir in $ac_dummy; do
1710 test -z "$ac_dir" && ac_dir=.
1711 if test -f $ac_dir/$ac_word; then
1719 if test -n "$CC"; then
1720 echo "$ac_t""$CC" 1>&6
1722 echo "$ac_t""no" 1>&6
1727 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1730 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1731 echo "configure:1732: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1734 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1735 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1736 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'
1737 ac_cpp='$CPP '"$xe_cppflags"
1738 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1739 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1742 cat > conftest.$ac_ext << EOF
1744 #line 1745 "configure"
1745 #include "confdefs.h"
1749 if { (eval echo configure:1750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1750 ac_cv_prog_cc_works=yes
1751 # If we can't run a trivial program, we are probably using a cross compiler.
1752 if (./conftest; exit) 2>/dev/null; then
1753 ac_cv_prog_cc_cross=no
1755 ac_cv_prog_cc_cross=yes
1758 echo "configure: failed program was:" >&5
1759 cat conftest.$ac_ext >&5
1760 ac_cv_prog_cc_works=no
1764 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1765 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1766 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'
1767 ac_cpp='$CPP '"$xe_cppflags"
1768 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1769 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1772 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1773 if test $ac_cv_prog_cc_works = no; then
1774 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1776 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1777 echo "configure:1778: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1778 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1779 cross_compiling=$ac_cv_prog_cc_cross
1781 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1782 echo "configure:1783: checking whether we are using GNU C" >&5
1784 cat > conftest.c <<EOF
1789 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1790: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1795 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1797 if test $ac_cv_prog_gcc = yes; then
1803 ac_test_CFLAGS="${CFLAGS+set}"
1804 ac_save_CFLAGS="$CFLAGS"
1806 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1807 echo "configure:1808: checking whether ${CC-cc} accepts -g" >&5
1809 echo 'void f(){}' > conftest.c
1810 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1818 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1819 if test "$ac_test_CFLAGS" = set; then
1820 CFLAGS="$ac_save_CFLAGS"
1821 elif test $ac_cv_prog_cc_g = yes; then
1822 if test "$GCC" = yes; then
1828 if test "$GCC" = yes; then
1835 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then
1837 # Extract the first word of "gcc", so it can be a program name with args.
1838 set dummy gcc; ac_word=$2
1839 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1840 echo "configure:1841: checking for $ac_word" >&5
1842 if test -n "$CC"; then
1843 ac_cv_prog_CC="$CC" # Let the user override the test.
1845 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1847 for ac_dir in $ac_dummy; do
1848 test -z "$ac_dir" && ac_dir=.
1849 if test -f $ac_dir/$ac_word; then
1857 if test -n "$CC"; then
1858 echo "$ac_t""$CC" 1>&6
1860 echo "$ac_t""no" 1>&6
1863 if test -z "$CC"; then
1864 # Extract the first word of "cc", so it can be a program name with args.
1865 set dummy cc; ac_word=$2
1866 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1867 echo "configure:1868: checking for $ac_word" >&5
1869 if test -n "$CC"; then
1870 ac_cv_prog_CC="$CC" # Let the user override the test.
1872 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1875 for ac_dir in $ac_dummy; do
1876 test -z "$ac_dir" && ac_dir=.
1877 if test -f $ac_dir/$ac_word; then
1878 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1879 ac_prog_rejected=yes
1887 if test $ac_prog_rejected = yes; then
1888 # We found a bogon in the path, so make sure we never use it.
1889 set dummy $ac_cv_prog_CC
1891 if test $# -gt 0; then
1892 # We chose a different compiler from the bogus one.
1893 # However, it has the same basename, so the bogon will be chosen
1894 # first if we set CC to just the basename; use the full file name.
1896 set dummy "$ac_dir/$ac_word" "$@"
1903 if test -n "$CC"; then
1904 echo "$ac_t""$CC" 1>&6
1906 echo "$ac_t""no" 1>&6
1909 if test -z "$CC"; then
1910 case "`uname -s`" in
1912 # Extract the first word of "cl", so it can be a program name with args.
1913 set dummy cl; ac_word=$2
1914 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1915 echo "configure:1916: checking for $ac_word" >&5
1917 if test -n "$CC"; then
1918 ac_cv_prog_CC="$CC" # Let the user override the test.
1920 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1922 for ac_dir in $ac_dummy; do
1923 test -z "$ac_dir" && ac_dir=.
1924 if test -f $ac_dir/$ac_word; then
1932 if test -n "$CC"; then
1933 echo "$ac_t""$CC" 1>&6
1935 echo "$ac_t""no" 1>&6
1940 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1943 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1944 echo "configure:1945: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1947 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1948 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1949 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'
1950 ac_cpp='$CPP '"$xe_cppflags"
1951 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1952 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1955 cat > conftest.$ac_ext << EOF
1957 #line 1958 "configure"
1958 #include "confdefs.h"
1962 if { (eval echo configure:1963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1963 ac_cv_prog_cc_works=yes
1964 # If we can't run a trivial program, we are probably using a cross compiler.
1965 if (./conftest; exit) 2>/dev/null; then
1966 ac_cv_prog_cc_cross=no
1968 ac_cv_prog_cc_cross=yes
1971 echo "configure: failed program was:" >&5
1972 cat conftest.$ac_ext >&5
1973 ac_cv_prog_cc_works=no
1977 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1978 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1979 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'
1980 ac_cpp='$CPP '"$xe_cppflags"
1981 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1982 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1985 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1986 if test $ac_cv_prog_cc_works = no; then
1987 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1989 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1990 echo "configure:1991: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1991 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1992 cross_compiling=$ac_cv_prog_cc_cross
1994 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1995 echo "configure:1996: checking whether we are using GNU C" >&5
1997 cat > conftest.c <<EOF
2002 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2003: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2008 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2010 if test $ac_cv_prog_gcc = yes; then
2016 ac_test_CFLAGS="${CFLAGS+set}"
2017 ac_save_CFLAGS="$CFLAGS"
2019 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2020 echo "configure:2021: checking whether ${CC-cc} accepts -g" >&5
2022 echo 'void f(){}' > conftest.c
2023 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2031 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2032 if test "$ac_test_CFLAGS" = set; then
2033 CFLAGS="$ac_save_CFLAGS"
2034 elif test $ac_cv_prog_cc_g = yes; then
2035 if test "$GCC" = yes; then
2041 if test "$GCC" = yes; then
2048 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then
2050 # Extract the first word of "gcc", so it can be a program name with args.
2051 set dummy gcc; ac_word=$2
2052 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2053 echo "configure:2054: checking for $ac_word" >&5
2055 if test -n "$CC"; then
2056 ac_cv_prog_CC="$CC" # Let the user override the test.
2058 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2060 for ac_dir in $ac_dummy; do
2061 test -z "$ac_dir" && ac_dir=.
2062 if test -f $ac_dir/$ac_word; then
2070 if test -n "$CC"; then
2071 echo "$ac_t""$CC" 1>&6
2073 echo "$ac_t""no" 1>&6
2076 if test -z "$CC"; then
2077 # Extract the first word of "cc", so it can be a program name with args.
2078 set dummy cc; ac_word=$2
2079 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2080 echo "configure:2081: checking for $ac_word" >&5
2082 if test -n "$CC"; then
2083 ac_cv_prog_CC="$CC" # Let the user override the test.
2085 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2088 for ac_dir in $ac_dummy; do
2089 test -z "$ac_dir" && ac_dir=.
2090 if test -f $ac_dir/$ac_word; then
2091 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2092 ac_prog_rejected=yes
2100 if test $ac_prog_rejected = yes; then
2101 # We found a bogon in the path, so make sure we never use it.
2102 set dummy $ac_cv_prog_CC
2104 if test $# -gt 0; then
2105 # We chose a different compiler from the bogus one.
2106 # However, it has the same basename, so the bogon will be chosen
2107 # first if we set CC to just the basename; use the full file name.
2109 set dummy "$ac_dir/$ac_word" "$@"
2116 if test -n "$CC"; then
2117 echo "$ac_t""$CC" 1>&6
2119 echo "$ac_t""no" 1>&6
2122 if test -z "$CC"; then
2123 case "`uname -s`" in
2125 # Extract the first word of "cl", so it can be a program name with args.
2126 set dummy cl; ac_word=$2
2127 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2128 echo "configure:2129: checking for $ac_word" >&5
2130 if test -n "$CC"; then
2131 ac_cv_prog_CC="$CC" # Let the user override the test.
2133 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2135 for ac_dir in $ac_dummy; do
2136 test -z "$ac_dir" && ac_dir=.
2137 if test -f $ac_dir/$ac_word; then
2145 if test -n "$CC"; then
2146 echo "$ac_t""$CC" 1>&6
2148 echo "$ac_t""no" 1>&6
2153 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2156 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2157 echo "configure:2158: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2160 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2161 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2162 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'
2163 ac_cpp='$CPP '"$xe_cppflags"
2164 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
2165 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2168 cat > conftest.$ac_ext << EOF
2170 #line 2171 "configure"
2171 #include "confdefs.h"
2175 if { (eval echo configure:2176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2176 ac_cv_prog_cc_works=yes
2177 # If we can't run a trivial program, we are probably using a cross compiler.
2178 if (./conftest; exit) 2>/dev/null; then
2179 ac_cv_prog_cc_cross=no
2181 ac_cv_prog_cc_cross=yes
2184 echo "configure: failed program was:" >&5
2185 cat conftest.$ac_ext >&5
2186 ac_cv_prog_cc_works=no
2190 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2191 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2192 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'
2193 ac_cpp='$CPP '"$xe_cppflags"
2194 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
2195 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2198 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2199 if test $ac_cv_prog_cc_works = no; then
2200 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2202 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2203 echo "configure:2204: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2204 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2205 cross_compiling=$ac_cv_prog_cc_cross
2207 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2208 echo "configure:2209: checking whether we are using GNU C" >&5
2210 cat > conftest.c <<EOF
2215 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2216: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2221 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2223 if test $ac_cv_prog_gcc = yes; then
2229 ac_test_CFLAGS="${CFLAGS+set}"
2230 ac_save_CFLAGS="$CFLAGS"
2232 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2233 echo "configure:2234: checking whether ${CC-cc} accepts -g" >&5
2235 echo 'void f(){}' > conftest.c
2236 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2244 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2245 if test "$ac_test_CFLAGS" = set; then
2246 CFLAGS="$ac_save_CFLAGS"
2247 elif test $ac_cv_prog_cc_g = yes; then
2248 if test "$GCC" = yes; then
2254 if test "$GCC" = yes; then
2262 CFLAGS="$xe_save_CFLAGS"
2265 test -n "$CPP" -a -d "$CPP" && CPP=
2267 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP"
2269 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2270 echo "configure:2271: checking how to run the C preprocessor" >&5
2271 # On Suns, sometimes $CPP names a directory.
2272 if test -n "$CPP" && test -d "$CPP"; then
2275 if test -z "$CPP"; then
2277 # This must be in double quotes, not single quotes, because CPP may get
2278 # substituted into the Makefile and "${CC-cc}" will confuse make.
2280 # On the NeXT, cc -E runs the code through the compiler's parser,
2281 # not just through cpp.
2282 cat > conftest.$ac_ext <<EOF
2283 #line 2284 "configure"
2284 #include "confdefs.h"
2288 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2289 { (eval echo configure:2290: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2290 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2291 if test -z "$ac_err"; then
2295 echo "configure: failed program was:" >&5
2296 cat conftest.$ac_ext >&5
2298 CPP="${CC-cc} -E -traditional-cpp"
2299 cat > conftest.$ac_ext <<EOF
2300 #line 2301 "configure"
2301 #include "confdefs.h"
2305 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2306 { (eval echo configure:2307: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2307 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2308 if test -z "$ac_err"; then
2312 echo "configure: failed program was:" >&5
2313 cat conftest.$ac_ext >&5
2315 CPP="${CC-cc} -nologo -E"
2316 cat > conftest.$ac_ext <<EOF
2317 #line 2318 "configure"
2318 #include "confdefs.h"
2322 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2323 { (eval echo configure:2324: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2324 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2325 if test -z "$ac_err"; then
2329 echo "configure: failed program was:" >&5
2330 cat conftest.$ac_ext >&5
2339 ac_cv_prog_CPP="$CPP"
2340 CPP="$ac_cv_prog_CPP"
2342 ac_cv_prog_CPP="$CPP"
2344 echo "$ac_t""$CPP" 1>&6
2348 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2349 echo "configure:2350: checking for AIX" >&5
2350 cat > conftest.$ac_ext <<EOF
2351 #line 2352 "configure"
2352 #include "confdefs.h"
2358 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2359 egrep "yes" >/dev/null 2>&1; then
2361 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
2362 Defining _ALL_SOURCE
2364 cat >> confdefs.h <<\EOF
2365 #define _ALL_SOURCE 1
2371 echo "$ac_t""no" 1>&6
2377 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6
2378 echo "configure:2379: checking for GNU libc" >&5
2379 cat > conftest.$ac_ext <<EOF
2380 #line 2381 "configure"
2381 #include "confdefs.h"
2382 #include <features.h>
2385 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
2386 #error Not a GNU libc system :-(
2387 ******* ======= ******** &&&&&&&&
2392 if { (eval echo configure:2393: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2396 echo "configure: failed program was:" >&5
2397 cat conftest.$ac_ext >&5
2402 echo "$ac_t""$have_glibc" 1>&6
2403 test "$have_glibc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
2404 Defining _GNU_SOURCE
2406 cat >> confdefs.h <<\EOF
2407 #define _GNU_SOURCE 1
2414 { test "$extra_verbose" = "yes" && cat << \EOF
2415 Defining __EXTENSIONS__
2417 cat >> confdefs.h <<\EOF
2418 #define __EXTENSIONS__ 1
2422 if test "$os_release" -ge 55; then
2423 { test "$extra_verbose" = "yes" && cat << \EOF
2424 Defining _XOPEN_SOURCE = 500
2426 cat >> confdefs.h <<\EOF
2427 #define _XOPEN_SOURCE 500
2431 { test "$extra_verbose" = "yes" && cat << \EOF
2432 Defining _XOPEN_SOURCE_EXTENDED
2434 cat >> confdefs.h <<\EOF
2435 #define _XOPEN_SOURCE_EXTENDED 1
2441 { test "$extra_verbose" = "yes" && cat << \EOF
2442 Defining _POSIX_C_SOURCE = 199506L
2444 cat >> confdefs.h <<\EOF
2445 #define _POSIX_C_SOURCE 199506L
2449 { test "$extra_verbose" = "yes" && cat << \EOF
2450 Defining _XOPEN_SOURCE = 500
2452 cat >> confdefs.h <<\EOF
2453 #define _XOPEN_SOURCE 500
2457 { test "$extra_verbose" = "yes" && cat << \EOF
2458 Defining _XOPEN_SOURCE_EXTENDED
2460 cat >> confdefs.h <<\EOF
2461 #define _XOPEN_SOURCE_EXTENDED 1
2468 cat > conftest.$ac_ext <<EOF
2469 #line 2470 "configure"
2470 #include "confdefs.h"
2472 #if defined __SUNPRO_C
2474 #elif defined __DECC
2476 #elif defined __USLC__ && defined __SCO_VERSION__
2483 if { (eval echo configure:2484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
2488 echo "configure: failed program was:" >&5
2489 cat conftest.$ac_ext >&5
2491 case "$conftest_rc" in
2492 11) echo "You appear to be using the SunPro C compiler."; __SUNPRO_C=yes ;;
2493 12) echo "You appear to be using the DEC C compiler." ; __DECC=yes ;;
2494 13) echo "You appear to be using the SCO C compiler." ; __USLC__=yes ;;
2502 echo "Extracting information from the machine- and system-dependent headers..."
2504 tempcname="conftest.c"
2508 cat > $tempcname < confdefs.h
2509 cat >> $tempcname <<EOF
2511 #define C_SWITCH_SITE
2512 #define C_SWITCH_X_SITE
2513 #define LD_SWITCH_SITE
2514 #define LD_SWITCH_X_SITE
2515 #define LD_SWITCH_X_SITE_AUX
2516 #define OS_RELEASE $os_release
2518 #ifdef config_opsysfile
2519 #include "$srcdir/src/$opsysfile"
2522 #ifdef config_machfile
2523 #include "$srcdir/src/$machfile"
2526 #ifndef LIBS_MACHINE
2527 #define LIBS_MACHINE
2529 configure___ libs_machine=LIBS_MACHINE
2534 configure___ libs_system=LIBS_SYSTEM
2536 #ifndef LIBS_TERMCAP
2537 #define LIBS_TERMCAP
2539 configure___ libs_termcap=LIBS_TERMCAP
2541 #ifndef LIB_STANDARD
2542 #define LIB_STANDARD
2544 configure___ libs_standard=LIB_STANDARD
2547 #ifndef OBJECTS_MACHINE
2548 #define OBJECTS_MACHINE
2550 configure___ objects_machine=OBJECTS_MACHINE
2552 #ifndef OBJECTS_SYSTEM
2553 #define OBJECTS_SYSTEM
2555 configure___ objects_system=OBJECTS_SYSTEM
2558 #ifndef C_SWITCH_MACHINE
2559 #define C_SWITCH_MACHINE
2561 configure___ c_switch_machine=C_SWITCH_MACHINE
2563 #ifndef C_SWITCH_SYSTEM
2564 #define C_SWITCH_SYSTEM
2566 configure___ c_switch_system=C_SWITCH_SYSTEM
2569 #ifndef LD_SWITCH_MACHINE
2570 #define LD_SWITCH_MACHINE
2572 configure___ ld_switch_machine=LD_SWITCH_MACHINE
2574 #ifndef LD_SWITCH_SYSTEM
2575 #define LD_SWITCH_SYSTEM
2577 configure___ ld_switch_system=LD_SWITCH_SYSTEM
2581 #define UNEXEC "unexec.o"
2583 configure___ unexec=UNEXEC
2586 #ifndef LD_SWITCH_SHARED
2587 #define LD_SWITCH_SHARED "-c"
2589 configure___ ld_switch_shared=LD_SWITCH_SHARED
2592 #define ORDINARY_LD "\$(CC) \$(CFLAGS)"
2593 configure___ ordinary_ld=ORDINARY_LD
2595 #ifdef ORDINARY_LINK
2596 #define LD ORDINARY_LD
2597 #else /* no ORDINARY LINK */
2598 #ifdef COFF_ENCAPSULATE
2599 #define LD "\$(CC) -nostdlib"
2600 #else /* not COFF_ENCAPSULATE */
2603 #else /* ! defined (LINKER) */
2605 #endif /* ! defined (LINKER) */
2606 #endif /* ! defined (COFF_ENCAPSULATE) */
2607 #endif /* not ORDINARY_LINK */
2613 configure___ lib_gcc=LIB_GCC
2615 #ifndef LD_TEXT_START_ADDR
2616 #define LD_TEXT_START_ADDR
2618 configure___ ld_text_start_addr=LD_TEXT_START_ADDR
2621 #if ! defined (ORDINARY_LINK) && !defined (START_FILES)
2623 #ifdef COFF_ENCAPSULATE
2624 #define START_FILES "pre-crt0.o /usr/local/lib/gcc-crt0.o"
2625 #else /* ! defined (COFF_ENCAPSULATE) */
2626 #define START_FILES "pre-crt0.o /lib/crt0.o"
2627 #endif /* ! defined (COFF_ENCAPSULATE) */
2628 #else /* ! defined (NO_REMAP) */
2629 #define START_FILES "ecrt0.o"
2630 #endif /* ! defined (NO_REMAP) */
2631 #endif /* no ORDINARY_LINK */
2635 configure___ start_files=START_FILES
2637 #ifdef ORDINARY_LINK
2638 configure___ ordinary_link=yes
2640 configure___ ordinary_link=no
2643 #ifdef SYSTEM_MALLOC
2644 configure___ system_malloc=yes
2646 configure___ system_malloc=no
2650 configure___ have_terminfo=yes
2652 configure___ have_terminfo=no
2655 #ifdef MAIL_USE_FLOCK
2656 configure___ mail_use_flock=yes
2658 configure___ mail_use_flock=no
2661 #ifdef MAIL_USE_LOCKF
2662 configure___ mail_use_lockf=yes
2664 configure___ mail_use_lockf=no
2667 #ifdef MAIL_USE_LOCKING
2668 configure___ mail_use_locking=yes
2670 configure___ mail_use_locking=no
2673 #ifdef HAVE_WIN32_PROCESSES
2674 configure___ win32_processes=yes
2676 configure___ win32_processes=no
2681 CPP=`eval "echo $CPP $CPPFLAGS"`
2682 eval `$CPP -Isrc $tempcname \
2683 | sed -n -e "s/[ ]*=[ \"]*/='/" -e "s/[ \"]*\$/'/" -e "s/^configure___//p"`
2687 if test "$pdump" = "yes"; then
2696 test "$extra_verbose" = "yes" && \
2697 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 ""
2699 case "$opsys" in mingw* | cygwin*)
2700 cygwin_include=`eval "gcc -print-file-name=libc.a"` ;
2701 cygwin_include=`eval "dirname $cygwin_include"` ;
2702 cygwin_include="-I$cygwin_include/../include" ;
2703 extra_includes="$cygwin_include/mingw $cygwin_include" ;
2704 case "$opsys" in mingw*)
2705 c_switch_system="$c_switch_system $extra_includes" && if test "$extra_verbose" = "yes"; then echo " Appending \"$extra_includes\" to \$c_switch_system"; fi ;;
2710 test "$ordinary_link" = "no" -a -z "$libs_standard" && libs_standard="-lc"
2713 test "$__DECC" = "yes" && c_switch_site="$c_switch_site -std1" && if test "$extra_verbose" = "yes"; then echo " Appending \"-std1\" to \$c_switch_site"; fi
2715 if test "$__USLC__" = yes; then
2716 echo $ac_n "checking for whether the -Kalloca compiler flag is needed""... $ac_c" 1>&6
2717 echo "configure:2718: checking for whether the -Kalloca compiler flag is needed" >&5
2719 cat > conftest.$ac_ext <<EOF
2720 #line 2721 "configure"
2721 #include "confdefs.h"
2724 void *x = alloca(4);
2727 if { (eval echo configure:2728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2731 echo "configure: failed program was:" >&5
2732 cat conftest.$ac_ext >&5
2735 xe_save_c_switch_system="$c_switch_system"
2736 c_switch_system="$c_switch_system -Kalloca"
2737 cat > conftest.$ac_ext <<EOF
2738 #line 2739 "configure"
2739 #include "confdefs.h"
2742 void *x = alloca(4);
2745 if { (eval echo configure:2746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2749 echo "configure: failed program was:" >&5
2750 cat conftest.$ac_ext >&5
2753 c_switch_system="$xe_save_c_switch_system"
2756 echo "$ac_t""$need_kalloca" 1>&6
2757 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
2760 if test "$cflags_specified" = "no"; then
2761 if test "$GCC" = "yes"; then
2762 CFLAGS="-g -O3 -Wall -Wno-switch -Winline -Wmissing-prototypes -Wshadow"
2763 test "$have_glibc" != "yes" && CFLAGS="$CFLAGS -Wpointer-arith"
2764 elif test "$__SUNPRO_C" = "yes"; then
2766 sol2 ) CFLAGS="-v -xO4" ;;
2767 sunos4* ) CFLAGS="-xO2";;
2769 elif test "$__DECC" = "yes"; then
2771 elif test "$CC" = "xlc"; then
2772 CFLAGS="-g -O3 -qstrict -qnoansialias -qlibansi -qinfo -qro -qmaxmem=20000"
2777 if test "$GCC" = "yes"; then
2778 echo $ac_n "checking for buggy gcc versions""... $ac_c" 1>&6
2779 echo "configure:2780: checking for buggy gcc versions" >&5
2780 GCC_VERSION=`$CC --version`
2781 case `uname -s`:`uname -m`:$GCC_VERSION in
2782 *:sun4*:2.8.1|*:sun4*:egcs-2.90.*)
2786 *-fno-schedule-insns*) ;;
2788 echo "$ac_t""yes" 1>&6
2789 echo "configure: warning: Don't use -O2 with gcc 2.8.1 and egcs 1.0 under SPARC architectures" 1>&2
2790 echo "configure: warning: without also using -fno-schedule-insns." 1>&2
2791 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2797 Linux:alpha:egcs-2.91.*)
2798 echo "$ac_t""yes" 1>&6
2799 echo "configure: warning: There have been reports of egcs-1.1 not compiling XEmacs correctly on" 1>&2
2800 echo "configure: warning: Alpha Linux. There have also been reports that egcs-1.0.3a is O.K." 1>&2
2801 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2806 case "$GCC_VERSION" in
2809 *-fno-strength-reduce*) ;;
2811 echo "$ac_t""yes" 1>&6
2812 echo "configure: warning: Don't use -O2 with gcc 2.7.2 under Intel/XXX without also using" 1>&2
2813 echo "configure: warning: -fno-strength-reduce." 1>&2
2814 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2820 *-fno-caller-saves*) ;;
2822 echo "$ac_t""yes" 1>&6
2823 echo "configure: warning: Don't use -O2 with gcc 2.7.2 under Intel/XXX without also using" 1>&2
2824 echo "configure: warning: -fno-caller-saves." 1>&2
2825 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2832 echo "$ac_t""no" 1>&6
2836 if test "$GCC" = "yes"; then
2837 set x $ld_switch_system; shift; ld_switch_system=""
2838 while test -n "$1"; do
2840 -L | -l | -u ) ld_switch_system="$ld_switch_system $1 $2"; shift ;;
2841 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_system="$ld_switch_system $1" ;;
2843 * ) ld_switch_system="$ld_switch_system -Xlinker $1" ;;
2849 if test "$GCC" = "yes"; then
2850 set x $ld_switch_machine; shift; ld_switch_machine=""
2851 while test -n "$1"; do
2853 -L | -l | -u ) ld_switch_machine="$ld_switch_machine $1 $2"; shift ;;
2854 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_machine="$ld_switch_machine $1" ;;
2856 * ) ld_switch_machine="$ld_switch_machine -Xlinker $1" ;;
2862 if test "$GCC" = "yes"; then
2863 set x $LDFLAGS; shift; LDFLAGS=""
2864 while test -n "$1"; do
2866 -L | -l | -u ) LDFLAGS="$LDFLAGS $1 $2"; shift ;;
2867 -L* | -l* | -u* | -Wl* | -pg ) LDFLAGS="$LDFLAGS $1" ;;
2869 * ) LDFLAGS="$LDFLAGS -Xlinker $1" ;;
2875 if test "$GCC" = "yes"; then
2876 set x $ld_call_shared; shift; ld_call_shared=""
2877 while test -n "$1"; do
2879 -L | -l | -u ) ld_call_shared="$ld_call_shared $1 $2"; shift ;;
2880 -L* | -l* | -u* | -Wl* | -pg ) ld_call_shared="$ld_call_shared $1" ;;
2882 * ) ld_call_shared="$ld_call_shared -Xlinker $1" ;;
2888 test -n "$objects_machine" && extra_objs="$extra_objs $objects_machine" && if test "$extra_verbose" = "yes"; then
2889 echo " xemacs will be linked with \"$objects_machine\""
2891 test -n "$objects_system" && extra_objs="$extra_objs $objects_system" && if test "$extra_verbose" = "yes"; then
2892 echo " xemacs will be linked with \"$objects_system\""
2894 test -n "$unexec" && test ! "$pdump" = "yes" && extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then
2895 echo " xemacs will be linked with \"$unexec\""
2897 test "$pdump" = "yes" && extra_objs="$extra_objs dumper.o" && if test "$extra_verbose" = "yes"; then
2898 echo " xemacs will be linked with \"dumper.o\""
2901 echo $ac_n "checking for dynodump""... $ac_c" 1>&6
2902 echo "configure:2903: checking for dynodump" >&5
2903 if test "$unexec" != "unexsol2.o"; then
2904 echo "$ac_t""no" 1>&6
2906 echo "$ac_t""yes" 1>&6
2907 { test "$extra_verbose" = "yes" && cat << \EOF
2910 cat >> confdefs.h <<\EOF
2915 MAKE_SUBDIR="$MAKE_SUBDIR dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$MAKE_SUBDIR"; fi
2916 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$SRC_SUBDIR_DEPS"; fi
2918 sparc ) dynodump_arch=sparc ;;
2919 *86* ) dynodump_arch=i386 ;;
2920 powerpc ) dynodump_arch=ppc ;;
2922 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
2926 test "$machine$opsys" = "powerpclinux" && start_flags="-T $srcdir/src/ppc.ldscript"
2928 if test "$unexec" = "unexaix.o"; then
2929 if test "$dynamic" = "no"; then
2930 start_flags="-Wl,-bnso,-bnodelcsect"
2931 test "$GCC" = "yes" && start_flags="-B/bin/ ${start_flags}"
2932 for f in "/lib/syscalls.exp" "/lib/threads.exp"; do
2933 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; fi
2935 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do
2936 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi
2939 echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6
2940 echo "configure:2941: checking for terminateAndUnload in -lC" >&5
2941 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'`
2943 xe_check_libs=" -lC "
2944 cat > conftest.$ac_ext <<EOF
2945 #line 2946 "configure"
2946 #include "confdefs.h"
2947 /* Override any gcc2 internal prototype to avoid an error. */
2948 /* We use char because int might match the return type of a gcc2
2949 builtin and then its argument prototype would still apply. */
2950 char terminateAndUnload();
2953 terminateAndUnload()
2956 if { (eval echo configure:2957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2958 eval "ac_cv_lib_$ac_lib_var=yes"
2960 echo "configure: failed program was:" >&5
2961 cat conftest.$ac_ext >&5
2963 eval "ac_cv_lib_$ac_lib_var=no"
2968 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
2969 echo "$ac_t""yes" 1>&6
2970 libs_system="$libs_system -lC" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lC\" to \$libs_system"; fi
2972 echo "$ac_t""no" 1>&6
2977 elif test -n "$ld_text_start_addr"; then
2978 start_flags="-T $ld_text_start_addr -e __start"
2984 if test "$ordinary_link" = "no" -a "$GCC" = "yes"; then
2985 test -z "$linker" && linker='$(CC) -nostdlib'
2986 test -z "$lib_gcc" && lib_gcc='`$(CC) -print-libgcc-file-name`'
2988 test "$GCC" != "yes" && lib_gcc=
2994 case "$site_libraries" in *:* ) site_libraries="`echo '' $site_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
2995 if test -n "$site_libraries"; then
2996 for arg in $site_libraries; do
2999 * ) test -d "$arg" || \
3000 { echo "Error:" "Invalid site library \`$arg': no such directory" >&2; exit 1; }
3003 ld_switch_site="$ld_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$ld_switch_site"; fi
3007 case "$site_includes" in *:* ) site_includes="`echo '' $site_includes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
3008 if test -n "$site_includes"; then
3009 for arg in $site_includes; do
3012 * ) test -d "$arg" || \
3013 { echo "Error:" "Invalid site include \`$arg': no such directory" >&2; exit 1; }
3016 c_switch_site="$c_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$c_switch_site"; fi
3020 case "$site_prefixes" in *:* ) site_prefixes="`echo '' $site_prefixes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
3021 if test -n "$site_prefixes"; then
3022 for dir in $site_prefixes; do
3023 lib_dir="${dir}/lib"
3024 inc_dir="${dir}/include"
3025 if test ! -d "$dir"; then
3026 { echo "Error:" "Invalid site prefix \`$dir': no such directory" >&2; exit 1; }
3027 elif test ! -d "$lib_dir"; then
3028 { echo "Error:" "Invalid site prefix \`$dir': no such directory \`$lib_dir'" >&2; exit 1; }
3030 if test -d "$inc_dir"; then
3031 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
3033 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
3039 for dir in "/usr/ccs/lib"; do
3040 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
3043 case "$site_runtime_libraries" in *:* ) site_runtime_libraries="`echo '' $site_runtime_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
3044 if test -n "$site_runtime_libraries"; then
3045 LD_RUN_PATH="`echo $site_runtime_libraries | sed -e 's/ */:/g'`"
3053 if test -n "$add_runtime_path"; then :;
3054 elif test "$dynamic" = "no"; then add_runtime_path=no
3055 elif test -n "$LD_RUN_PATH"; then add_runtime_path=yes
3056 else case "$opsys" in
3057 sol2 | irix* | *bsd* | decosf* ) add_runtime_path=yes ;;
3058 * ) add_runtime_path=no ;;
3062 if test "$add_runtime_path" = "yes"; then
3063 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6
3064 echo "configure:3065: checking "for runtime libraries flag"" >&5
3066 sol2 ) dash_r="-R" ;;
3067 decosf* | linux* | irix*) dash_r="-rpath " ;;
3070 for try_dash_r in "-R" "-R " "-rpath "; do
3071 xe_check_libs="${try_dash_r}/no/such/file-or-directory"
3073 if test "$GCC" = "yes"; then
3074 set x $xe_check_libs; shift; xe_check_libs=""
3075 while test -n "$1"; do
3077 -L | -l | -u ) xe_check_libs="$xe_check_libs $1 $2"; shift ;;
3078 -L* | -l* | -u* | -Wl* | -pg ) xe_check_libs="$xe_check_libs $1" ;;
3080 * ) xe_check_libs="$xe_check_libs -Xlinker $1" ;;
3085 cat > conftest.$ac_ext <<EOF
3086 #line 3087 "configure"
3087 #include "confdefs.h"
3093 if { (eval echo configure:3094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3095 dash_r="$try_dash_r"
3097 echo "configure: failed program was:" >&5
3098 cat conftest.$ac_ext >&5
3102 test -n "$dash_r" && break
3105 if test -n "$dash_r";
3106 then echo "$ac_t"""\"${dash_r}\""" 1>&6
3107 else echo "$ac_t""NONE" 1>&6
3111 xe_add_unique_runpath_dir='
3113 for xe_dir in $runpath_dirs; do test "$xe_dir" = "$xe_runpath_dir" && xe_add_p=no
3115 if test "$xe_add_p" = "yes"; then
3116 test -n "$runpath" && runpath="${runpath}:"
3117 runpath="${runpath}${xe_runpath_dir}"
3118 runpath_dirs="$runpath_dirs $xe_runpath_dir"
3124 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
3125 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
3126 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
3128 runpath="" runpath_dirs=""
3129 if test -n "$LD_RUN_PATH"; then
3130 runpath="$LD_RUN_PATH"
3131 elif test "$GCC" = "yes"; then
3132 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
3133 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
3134 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
3135 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
3136 case "$arg" in P,* | -L* | -R* )
3137 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
3139 xe_runpath_dir="$dir"
3140 test "$xe_runpath_dir" != "/lib" -a \
3141 "$xe_runpath_dir" != "/usr/lib" -a \
3142 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
3143 eval "$xe_add_unique_runpath_dir"
3148 ld_switch_run="$ld_switch_run_save"
3151 for arg in $ld_switch_site $ld_switch_x_site; do
3152 case "$arg" in -L*) {
3153 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
3154 test "$xe_runpath_dir" != "/lib" -a \
3155 "$xe_runpath_dir" != "/usr/lib" -a \
3156 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
3157 eval "$xe_add_unique_runpath_dir"
3160 if test "$opsys $need_motif" = "sol2 yes"; then
3161 xe_runpath_dir="/opt/SUNWdt/lib";
3162 eval "$xe_add_unique_runpath_dir";
3165 if test -n "$runpath"; then
3166 ld_switch_run="${dash_r}${runpath}"
3168 if test "$GCC" = "yes"; then
3169 set x $ld_switch_run; shift; ld_switch_run=""
3170 while test -n "$1"; do
3172 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
3173 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
3175 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
3180 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
3187 if test "$with_dlmalloc" != "no"; then
3192 after_morecore_hook_exists=yes
3193 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
3194 echo "configure:3195: checking for malloc_set_state" >&5
3196 cat > conftest.$ac_ext <<EOF
3197 #line 3198 "configure"
3198 #include "confdefs.h"
3199 /* System header to define __stub macros and hopefully few prototypes,
3200 which can conflict with char malloc_set_state(); below. */
3202 /* Override any gcc2 internal prototype to avoid an error. */
3203 /* We use char because int might match the return type of a gcc2
3204 builtin and then its argument prototype would still apply. */
3205 char malloc_set_state();
3209 /* The GNU C library defines this for functions which it implements
3210 to always fail with ENOSYS. Some functions are actually named
3211 something starting with __ and the normal name is an alias. */
3212 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
3220 if { (eval echo configure:3221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3222 eval "ac_cv_func_malloc_set_state=yes"
3224 echo "configure: failed program was:" >&5
3225 cat conftest.$ac_ext >&5
3227 eval "ac_cv_func_malloc_set_state=no"
3231 if eval "test \"`echo '$ac_cv_func_'malloc_set_state`\" = yes"; then
3232 echo "$ac_t""yes" 1>&6
3235 echo "$ac_t""no" 1>&6
3239 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
3240 echo "configure:3241: checking whether __after_morecore_hook exists" >&5
3241 cat > conftest.$ac_ext <<EOF
3242 #line 3243 "configure"
3243 #include "confdefs.h"
3244 extern void (* __after_morecore_hook)();
3246 __after_morecore_hook = 0
3249 if { (eval echo configure:3250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3251 echo "$ac_t""yes" 1>&6
3253 echo "configure: failed program was:" >&5
3254 cat conftest.$ac_ext >&5
3256 echo "$ac_t""no" 1>&6
3257 after_morecore_hook_exists=no
3260 if test "$system_malloc" = "yes" ; then
3263 - The GNU allocators don't work with this system configuration."
3264 elif test "$with_system_malloc" = "yes" ; then
3267 - User chose not to use GNU allocators."
3268 elif test "$with_debug_malloc" = "yes" ; then
3271 - User chose to use Debugging Malloc."
3274 if test "$doug_lea_malloc" = "yes" -a "$GNU_MALLOC" = "yes" ; then
3276 - Using Doug Lea's new malloc from the GNU C Library."
3277 { test "$extra_verbose" = "yes" && cat << \EOF
3278 Defining DOUG_LEA_MALLOC
3280 cat >> confdefs.h <<\EOF
3281 #define DOUG_LEA_MALLOC 1
3285 if test "$after_morecore_hook_exists" = "no" ; then
3287 - Using Doug Lea's new malloc from the Linux C Library."
3288 { test "$extra_verbose" = "yes" && cat << \EOF
3289 Defining _NO_MALLOC_WARNING_
3291 cat >> confdefs.h <<\EOF
3292 #define _NO_MALLOC_WARNING_ 1
3302 # Extract the first word of "ranlib", so it can be a program name with args.
3303 set dummy ranlib; ac_word=$2
3304 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3305 echo "configure:3306: checking for $ac_word" >&5
3307 if test -n "$RANLIB"; then
3308 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3310 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3312 for ac_dir in $ac_dummy; do
3313 test -z "$ac_dir" && ac_dir=.
3314 if test -f $ac_dir/$ac_word; then
3315 ac_cv_prog_RANLIB="ranlib"
3320 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
3322 RANLIB="$ac_cv_prog_RANLIB"
3323 if test -n "$RANLIB"; then
3324 echo "$ac_t""$RANLIB" 1>&6
3326 echo "$ac_t""no" 1>&6
3330 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3331 if test -f $ac_dir/install-sh; then
3333 ac_install_sh="$ac_aux_dir/install-sh -c"
3335 elif test -f $ac_dir/install.sh; then
3337 ac_install_sh="$ac_aux_dir/install.sh -c"
3341 if test -z "$ac_aux_dir"; then
3342 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
3344 ac_config_guess=$ac_aux_dir/config.guess
3345 ac_config_sub=$ac_aux_dir/config.sub
3346 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
3348 # Find a good install program. We prefer a C program (faster),
3349 # so one script is as good as another. But avoid the broken or
3350 # incompatible versions:
3351 # SysV /etc/install, /usr/sbin/install
3352 # SunOS /usr/etc/install
3353 # IRIX /sbin/install
3355 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3356 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3357 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3358 # ./install, which can be erroneously created by make from ./install.sh.
3359 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3360 echo "configure:3361: checking for a BSD compatible install" >&5
3361 if test -z "$INSTALL"; then
3363 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3364 for ac_dir in $PATH; do
3365 # Account for people who put trailing slashes in PATH elements.
3367 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3369 # OSF1 and SCO ODT 3.0 have their own names for install.
3370 # Don't use installbsd from OSF since it installs stuff as root
3372 for ac_prog in ginstall scoinst install; do
3373 if test -f $ac_dir/$ac_prog; then
3374 if test $ac_prog = install &&
3375 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3376 # AIX install. It has an incompatible calling convention.
3379 ac_cv_path_install="$ac_dir/$ac_prog -c"
3389 if test "${ac_cv_path_install+set}" = set; then
3390 INSTALL="$ac_cv_path_install"
3392 # As a last resort, use the slow shell script. We don't cache a
3393 # path for INSTALL within a source directory, because that will
3394 # break other packages using the cache if that directory is
3395 # removed, or if the path is relative.
3396 INSTALL="$ac_install_sh"
3399 echo "$ac_t""$INSTALL" 1>&6
3401 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3402 # It thinks the first close brace ends the variable substitution.
3403 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3405 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3407 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3409 for ac_prog in 'bison -y' byacc
3411 # Extract the first word of "$ac_prog", so it can be a program name with args.
3412 set dummy $ac_prog; ac_word=$2
3413 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3414 echo "configure:3415: checking for $ac_word" >&5
3416 if test -n "$YACC"; then
3417 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3419 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3421 for ac_dir in $ac_dummy; do
3422 test -z "$ac_dir" && ac_dir=.
3423 if test -f $ac_dir/$ac_word; then
3424 ac_cv_prog_YACC="$ac_prog"
3430 YACC="$ac_cv_prog_YACC"
3431 if test -n "$YACC"; then
3432 echo "$ac_t""$YACC" 1>&6
3434 echo "$ac_t""no" 1>&6
3437 test -n "$YACC" && break
3439 test -n "$YACC" || YACC="yacc"
3442 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
3444 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3445 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3446 echo "configure:3447: checking for $ac_hdr" >&5
3448 cat > conftest.$ac_ext <<EOF
3449 #line 3450 "configure"
3450 #include "confdefs.h"
3453 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3454 { (eval echo configure:3455: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3455 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3456 if test -z "$ac_err"; then
3458 eval "ac_cv_header_$ac_safe=yes"
3461 echo "configure: failed program was:" >&5
3462 cat conftest.$ac_ext >&5
3464 eval "ac_cv_header_$ac_safe=no"
3467 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3468 echo "$ac_t""yes" 1>&6
3469 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3470 { test "$extra_verbose" = "yes" && cat << EOF
3473 cat >> confdefs.h <<EOF
3474 #define $ac_tr_hdr 1
3479 echo "$ac_t""no" 1>&6
3483 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
3484 echo "configure:3485: checking for sys/wait.h that is POSIX.1 compatible" >&5
3486 cat > conftest.$ac_ext <<EOF
3487 #line 3488 "configure"
3488 #include "confdefs.h"
3489 #include <sys/types.h>
3490 #include <sys/wait.h>
3492 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3495 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3500 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3503 if { (eval echo configure:3504: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3505 ac_cv_header_sys_wait_h=yes
3507 echo "configure: failed program was:" >&5
3508 cat conftest.$ac_ext >&5
3510 ac_cv_header_sys_wait_h=no
3514 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
3515 if test $ac_cv_header_sys_wait_h = yes; then
3516 { test "$extra_verbose" = "yes" && cat << \EOF
3517 Defining HAVE_SYS_WAIT_H
3519 cat >> confdefs.h <<\EOF
3520 #define HAVE_SYS_WAIT_H 1
3526 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3527 echo "configure:3528: checking for ANSI C header files" >&5
3529 cat > conftest.$ac_ext <<EOF
3530 #line 3531 "configure"
3531 #include "confdefs.h"
3537 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3538 { (eval echo configure:3539: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3539 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3540 if test -z "$ac_err"; then
3542 ac_cv_header_stdc=yes
3545 echo "configure: failed program was:" >&5
3546 cat conftest.$ac_ext >&5
3548 ac_cv_header_stdc=no
3552 if test $ac_cv_header_stdc = yes; then
3553 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3554 cat > conftest.$ac_ext <<EOF
3555 #line 3556 "configure"
3556 #include "confdefs.h"
3559 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3560 egrep "memchr" >/dev/null 2>&1; then
3564 ac_cv_header_stdc=no
3570 if test $ac_cv_header_stdc = yes; then
3571 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3572 cat > conftest.$ac_ext <<EOF
3573 #line 3574 "configure"
3574 #include "confdefs.h"
3577 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3578 egrep "free" >/dev/null 2>&1; then
3582 ac_cv_header_stdc=no
3588 if test $ac_cv_header_stdc = yes; then
3589 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3590 cat > conftest.$ac_ext <<EOF
3591 #line 3592 "configure"
3592 #include "confdefs.h"
3594 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3595 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3596 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3597 int main () { int i; for (i = 0; i < 256; i++)
3598 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3602 if { (eval echo configure:3603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
3607 echo "configure: failed program was:" >&5
3608 cat conftest.$ac_ext >&5
3610 ac_cv_header_stdc=no
3615 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3616 if test $ac_cv_header_stdc = yes; then
3617 { test "$extra_verbose" = "yes" && cat << \EOF
3618 Defining STDC_HEADERS
3620 cat >> confdefs.h <<\EOF
3621 #define STDC_HEADERS 1
3627 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3628 echo "configure:3629: checking whether time.h and sys/time.h may both be included" >&5
3630 cat > conftest.$ac_ext <<EOF
3631 #line 3632 "configure"
3632 #include "confdefs.h"
3633 #include <sys/types.h>
3634 #include <sys/time.h>
3640 if { (eval echo configure:3641: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3642 ac_cv_header_time=yes
3644 echo "configure: failed program was:" >&5
3645 cat conftest.$ac_ext >&5
3647 ac_cv_header_time=no
3651 echo "$ac_t""$ac_cv_header_time" 1>&6
3652 if test $ac_cv_header_time = yes; then
3653 { test "$extra_verbose" = "yes" && cat << \EOF
3654 Defining TIME_WITH_SYS_TIME
3656 cat >> confdefs.h <<\EOF
3657 #define TIME_WITH_SYS_TIME 1
3663 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
3664 echo "configure:3665: checking for sys_siglist declaration in signal.h or unistd.h" >&5
3666 cat > conftest.$ac_ext <<EOF
3667 #line 3668 "configure"
3668 #include "confdefs.h"
3669 #include <sys/types.h>
3671 /* NetBSD declares sys_siglist in unistd.h. */
3672 #ifdef HAVE_UNISTD_H
3676 char *msg = *(sys_siglist + 1);
3679 if { (eval echo configure:3680: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3681 ac_cv_decl_sys_siglist=yes
3683 echo "configure: failed program was:" >&5
3684 cat conftest.$ac_ext >&5
3686 ac_cv_decl_sys_siglist=no
3690 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
3691 if test $ac_cv_decl_sys_siglist = yes; then
3692 { test "$extra_verbose" = "yes" && cat << \EOF
3693 Defining SYS_SIGLIST_DECLARED
3695 cat >> confdefs.h <<\EOF
3696 #define SYS_SIGLIST_DECLARED 1
3704 echo $ac_n "checking for utime""... $ac_c" 1>&6
3705 echo "configure:3706: checking for utime" >&5
3706 cat > conftest.$ac_ext <<EOF
3707 #line 3708 "configure"
3708 #include "confdefs.h"
3709 #include <sys/types.h>
3712 struct utimbuf x; x.actime = x.modtime = 0; utime ("/", &x);
3715 if { (eval echo configure:3716: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3717 echo "$ac_t""yes" 1>&6
3718 { test "$extra_verbose" = "yes" && cat << \EOF
3721 cat >> confdefs.h <<\EOF
3722 #define HAVE_UTIME 1
3727 echo "configure: failed program was:" >&5
3728 cat conftest.$ac_ext >&5
3730 echo "$ac_t""no" 1>&6
3731 for ac_func in utimes
3733 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3734 echo "configure:3735: checking for $ac_func" >&5
3736 cat > conftest.$ac_ext <<EOF
3737 #line 3738 "configure"
3738 #include "confdefs.h"
3739 /* System header to define __stub macros and hopefully few prototypes,
3740 which can conflict with char $ac_func(); below. */
3742 /* Override any gcc2 internal prototype to avoid an error. */
3743 /* We use char because int might match the return type of a gcc2
3744 builtin and then its argument prototype would still apply. */
3749 /* The GNU C library defines this for functions which it implements
3750 to always fail with ENOSYS. Some functions are actually named
3751 something starting with __ and the normal name is an alias. */
3752 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3760 if { (eval echo configure:3761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3762 eval "ac_cv_func_$ac_func=yes"
3764 echo "configure: failed program was:" >&5
3765 cat conftest.$ac_ext >&5
3767 eval "ac_cv_func_$ac_func=no"
3771 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3772 echo "$ac_t""yes" 1>&6
3773 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3774 { test "$extra_verbose" = "yes" && cat << EOF
3775 Defining $ac_tr_func
3777 cat >> confdefs.h <<EOF
3778 #define $ac_tr_func 1
3783 echo "$ac_t""no" 1>&6
3791 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3792 echo "configure:3793: checking return type of signal handlers" >&5
3794 cat > conftest.$ac_ext <<EOF
3795 #line 3796 "configure"
3796 #include "confdefs.h"
3797 #include <sys/types.h>
3803 extern "C" void (*signal (int, void (*)(int)))(int);
3805 void (*signal ()) ();
3812 if { (eval echo configure:3813: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3814 ac_cv_type_signal=void
3816 echo "configure: failed program was:" >&5
3817 cat conftest.$ac_ext >&5
3819 ac_cv_type_signal=int
3823 echo "$ac_t""$ac_cv_type_signal" 1>&6
3824 { test "$extra_verbose" = "yes" && cat << EOF
3825 Defining RETSIGTYPE = $ac_cv_type_signal
3827 cat >> confdefs.h <<EOF
3828 #define RETSIGTYPE $ac_cv_type_signal
3833 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3834 echo "configure:3835: checking for size_t" >&5
3836 cat > conftest.$ac_ext <<EOF
3837 #line 3838 "configure"
3838 #include "confdefs.h"
3839 #include <sys/types.h>
3845 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3846 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3848 ac_cv_type_size_t=yes
3851 ac_cv_type_size_t=no
3855 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3856 if test $ac_cv_type_size_t = no; then
3857 { test "$extra_verbose" = "yes" && cat << \EOF
3858 Defining size_t = unsigned
3860 cat >> confdefs.h <<\EOF
3861 #define size_t unsigned
3867 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3868 echo "configure:3869: checking for pid_t" >&5
3870 cat > conftest.$ac_ext <<EOF
3871 #line 3872 "configure"
3872 #include "confdefs.h"
3873 #include <sys/types.h>
3879 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3880 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3882 ac_cv_type_pid_t=yes
3889 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3890 if test $ac_cv_type_pid_t = no; then
3891 { test "$extra_verbose" = "yes" && cat << \EOF
3892 Defining pid_t = int
3894 cat >> confdefs.h <<\EOF
3901 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3902 echo "configure:3903: checking for uid_t in sys/types.h" >&5
3904 cat > conftest.$ac_ext <<EOF
3905 #line 3906 "configure"
3906 #include "confdefs.h"
3907 #include <sys/types.h>
3909 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3910 egrep "uid_t" >/dev/null 2>&1; then
3912 ac_cv_type_uid_t=yes
3920 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3921 if test $ac_cv_type_uid_t = no; then
3922 { test "$extra_verbose" = "yes" && cat << \EOF
3923 Defining uid_t = int
3925 cat >> confdefs.h <<\EOF
3930 { test "$extra_verbose" = "yes" && cat << \EOF
3931 Defining gid_t = int
3933 cat >> confdefs.h <<\EOF
3940 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3941 echo "configure:3942: checking for mode_t" >&5
3943 cat > conftest.$ac_ext <<EOF
3944 #line 3945 "configure"
3945 #include "confdefs.h"
3946 #include <sys/types.h>
3952 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3953 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3955 ac_cv_type_mode_t=yes
3958 ac_cv_type_mode_t=no
3962 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3963 if test $ac_cv_type_mode_t = no; then
3964 { test "$extra_verbose" = "yes" && cat << \EOF
3965 Defining mode_t = int
3967 cat >> confdefs.h <<\EOF
3974 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3975 echo "configure:3976: checking for off_t" >&5
3977 cat > conftest.$ac_ext <<EOF
3978 #line 3979 "configure"
3979 #include "confdefs.h"
3980 #include <sys/types.h>
3986 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3987 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3989 ac_cv_type_off_t=yes
3996 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3997 if test $ac_cv_type_off_t = no; then
3998 { test "$extra_verbose" = "yes" && cat << \EOF
3999 Defining off_t = long
4001 cat >> confdefs.h <<\EOF
4008 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
4009 echo "configure:4010: checking for ssize_t" >&5
4011 cat > conftest.$ac_ext <<EOF
4012 #line 4013 "configure"
4013 #include "confdefs.h"
4014 #include <sys/types.h>
4020 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4021 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4023 ac_cv_type_ssize_t=yes
4026 ac_cv_type_ssize_t=no
4030 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
4031 if test $ac_cv_type_ssize_t = no; then
4032 { test "$extra_verbose" = "yes" && cat << \EOF
4033 Defining ssize_t = int
4035 cat >> confdefs.h <<\EOF
4043 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
4044 echo "configure:4045: checking for socklen_t" >&5
4045 cat > conftest.$ac_ext <<EOF
4046 #line 4047 "configure"
4047 #include "confdefs.h"
4048 #include <sys/socket.h>
4055 if { (eval echo configure:4056: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4057 echo "$ac_t""yes" 1>&6
4059 echo "configure: failed program was:" >&5
4060 cat conftest.$ac_ext >&5
4063 cat > conftest.$ac_ext <<EOF
4064 #line 4065 "configure"
4065 #include "confdefs.h"
4066 #include <sys/socket.h>
4067 int accept (int, struct sockaddr *, size_t *);
4073 if { (eval echo configure:4074: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4076 echo "$ac_t""size_t" 1>&6
4077 { test "$extra_verbose" = "yes" && cat << \EOF
4078 Defining socklen_t = size_t
4080 cat >> confdefs.h <<\EOF
4081 #define socklen_t size_t
4086 echo "configure: failed program was:" >&5
4087 cat conftest.$ac_ext >&5
4090 echo "$ac_t""int" 1>&6
4091 { test "$extra_verbose" = "yes" && cat << \EOF
4092 Defining socklen_t = int
4094 cat >> confdefs.h <<\EOF
4095 #define socklen_t int
4104 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
4105 echo "configure:4106: checking for struct timeval" >&5
4106 cat > conftest.$ac_ext <<EOF
4107 #line 4108 "configure"
4108 #include "confdefs.h"
4109 #ifdef TIME_WITH_SYS_TIME
4110 #include <sys/time.h>
4113 #ifdef HAVE_SYS_TIME_H
4114 #include <sys/time.h>
4120 static struct timeval x; x.tv_sec = x.tv_usec;
4123 if { (eval echo configure:4124: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4125 echo "$ac_t""yes" 1>&6
4127 { test "$extra_verbose" = "yes" && cat << \EOF
4128 Defining HAVE_TIMEVAL
4130 cat >> confdefs.h <<\EOF
4131 #define HAVE_TIMEVAL 1
4136 echo "configure: failed program was:" >&5
4137 cat conftest.$ac_ext >&5
4139 echo "$ac_t""no" 1>&6
4144 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
4145 echo "configure:4146: checking whether struct tm is in sys/time.h or time.h" >&5
4147 cat > conftest.$ac_ext <<EOF
4148 #line 4149 "configure"
4149 #include "confdefs.h"
4150 #include <sys/types.h>
4153 struct tm *tp; tp->tm_sec;
4156 if { (eval echo configure:4157: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4158 ac_cv_struct_tm=time.h
4160 echo "configure: failed program was:" >&5
4161 cat conftest.$ac_ext >&5
4163 ac_cv_struct_tm=sys/time.h
4167 echo "$ac_t""$ac_cv_struct_tm" 1>&6
4168 if test $ac_cv_struct_tm = sys/time.h; then
4169 { test "$extra_verbose" = "yes" && cat << \EOF
4170 Defining TM_IN_SYS_TIME
4172 cat >> confdefs.h <<\EOF
4173 #define TM_IN_SYS_TIME 1
4179 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
4180 echo "configure:4181: checking for tm_zone in struct tm" >&5
4182 cat > conftest.$ac_ext <<EOF
4183 #line 4184 "configure"
4184 #include "confdefs.h"
4185 #include <sys/types.h>
4186 #include <$ac_cv_struct_tm>
4188 struct tm tm; tm.tm_zone;
4191 if { (eval echo configure:4192: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4193 ac_cv_struct_tm_zone=yes
4195 echo "configure: failed program was:" >&5
4196 cat conftest.$ac_ext >&5
4198 ac_cv_struct_tm_zone=no
4202 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
4203 if test "$ac_cv_struct_tm_zone" = yes; then
4204 { test "$extra_verbose" = "yes" && cat << \EOF
4205 Defining HAVE_TM_ZONE
4207 cat >> confdefs.h <<\EOF
4208 #define HAVE_TM_ZONE 1
4213 echo $ac_n "checking for tzname""... $ac_c" 1>&6
4214 echo "configure:4215: checking for tzname" >&5
4216 cat > conftest.$ac_ext <<EOF
4217 #line 4218 "configure"
4218 #include "confdefs.h"
4220 #ifndef tzname /* For SGI. */
4221 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4227 if { (eval echo configure:4228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4229 ac_cv_var_tzname=yes
4231 echo "configure: failed program was:" >&5
4232 cat conftest.$ac_ext >&5
4238 echo "$ac_t""$ac_cv_var_tzname" 1>&6
4239 if test $ac_cv_var_tzname = yes; then
4240 { test "$extra_verbose" = "yes" && cat << \EOF
4241 Defining HAVE_TZNAME
4243 cat >> confdefs.h <<\EOF
4244 #define HAVE_TZNAME 1
4252 echo $ac_n "checking for working const""... $ac_c" 1>&6
4253 echo "configure:4254: checking for working const" >&5
4255 cat > conftest.$ac_ext <<EOF
4256 #line 4257 "configure"
4257 #include "confdefs.h"
4261 /* Ultrix mips cc rejects this. */
4262 typedef int charset[2]; const charset x;
4263 /* SunOS 4.1.1 cc rejects this. */
4264 char const *const *ccp;
4266 /* NEC SVR4.0.2 mips cc rejects this. */
4267 struct point {int x, y;};
4268 static struct point const zero = {0,0};
4269 /* AIX XL C 1.02.0.0 rejects this.
4270 It does not let you subtract one const X* pointer from another in an arm
4271 of an if-expression whose if-part is not a constant expression */
4272 const char *g = "string";
4273 ccp = &g + (g ? g-g : 0);
4274 /* HPUX 7.0 cc rejects these. */
4277 ccp = (char const *const *) p;
4278 { /* SCO 3.2v4 cc rejects this. */
4280 char const *s = 0 ? (char *) 0 : (char const *) 0;
4284 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4286 const int *foo = &x[0];
4289 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4290 typedef const int *iptr;
4294 { /* AIX XL C 1.02.0.0 rejects this saying
4295 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4296 struct s { int j; const int *ap[3]; };
4297 struct s *b; b->j = 5;
4299 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4305 if { (eval echo configure:4306: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4309 echo "configure: failed program was:" >&5
4310 cat conftest.$ac_ext >&5
4316 echo "$ac_t""$ac_cv_c_const" 1>&6
4317 if test $ac_cv_c_const = no; then
4318 { test "$extra_verbose" = "yes" && cat << \EOF
4321 cat >> confdefs.h <<\EOF
4329 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
4330 echo "configure:4331: checking whether ${MAKE-make} sets \${MAKE}" >&5
4331 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
4333 cat > conftestmake <<\EOF
4335 @echo 'ac_maketemp="${MAKE}"'
4337 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4338 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
4339 if test -n "$ac_maketemp"; then
4340 eval ac_cv_prog_make_${ac_make}_set=yes
4342 eval ac_cv_prog_make_${ac_make}_set=no
4345 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4346 echo "$ac_t""yes" 1>&6
4349 echo "$ac_t""no" 1>&6
4350 SET_MAKE="MAKE=${MAKE-make}"
4354 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
4355 echo "configure:4356: checking whether byte ordering is bigendian" >&5
4357 ac_cv_c_bigendian=unknown
4358 # See if sys/param.h defines the BYTE_ORDER macro.
4359 cat > conftest.$ac_ext <<EOF
4360 #line 4361 "configure"
4361 #include "confdefs.h"
4362 #include <sys/types.h>
4363 #include <sys/param.h>
4366 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4371 if { (eval echo configure:4372: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4373 # It does; now see whether it defined to BIG_ENDIAN or not.
4374 cat > conftest.$ac_ext <<EOF
4375 #line 4376 "configure"
4376 #include "confdefs.h"
4377 #include <sys/types.h>
4378 #include <sys/param.h>
4381 #if BYTE_ORDER != BIG_ENDIAN
4386 if { (eval echo configure:4387: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4388 ac_cv_c_bigendian=yes
4390 echo "configure: failed program was:" >&5
4391 cat conftest.$ac_ext >&5
4393 ac_cv_c_bigendian=no
4397 echo "configure: failed program was:" >&5
4398 cat conftest.$ac_ext >&5
4401 if test $ac_cv_c_bigendian = unknown; then
4402 cat > conftest.$ac_ext <<EOF
4403 #line 4404 "configure"
4404 #include "confdefs.h"
4406 /* Are we little or big endian? From Harbison&Steele. */
4410 char c[sizeof (long)];
4413 exit (u.c[sizeof (long) - 1] == 1);
4416 if { (eval echo configure:4417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4418 ac_cv_c_bigendian=no
4421 echo "configure: failed program was:" >&5
4422 cat conftest.$ac_ext >&5
4424 ac_cv_c_bigendian=yes
4429 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
4430 if test $ac_cv_c_bigendian = yes; then
4431 { test "$extra_verbose" = "yes" && cat << \EOF
4432 Defining WORDS_BIGENDIAN
4434 cat >> confdefs.h <<\EOF
4435 #define WORDS_BIGENDIAN 1
4442 echo $ac_n "checking size of short""... $ac_c" 1>&6
4443 echo "configure:4444: checking size of short" >&5
4445 cat > conftest.$ac_ext <<EOF
4446 #line 4447 "configure"
4447 #include "confdefs.h"
4449 #include <sys/types.h>
4452 FILE *f=fopen("conftestval", "w");
4454 fprintf(f, "%d\n", sizeof(short));
4458 if { (eval echo configure:4459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4460 ac_cv_sizeof_short=`cat conftestval`
4463 echo "configure: failed program was:" >&5
4464 cat conftest.$ac_ext >&5
4466 ac_cv_sizeof_short=0
4469 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
4470 { test "$extra_verbose" = "yes" && cat << EOF
4471 Defining SIZEOF_SHORT = $ac_cv_sizeof_short
4473 cat >> confdefs.h <<EOF
4474 #define SIZEOF_SHORT $ac_cv_sizeof_short
4479 if test "$ac_cv_sizeof_short" = 0; then
4481 echo "*** PANIC *** Configure tests are not working - compiler is broken."
4482 echo "*** PANIC *** Please examine config.log for compilation errors."
4485 echo $ac_n "checking size of int""... $ac_c" 1>&6
4486 echo "configure:4487: checking size of int" >&5
4488 cat > conftest.$ac_ext <<EOF
4489 #line 4490 "configure"
4490 #include "confdefs.h"
4492 #include <sys/types.h>
4495 FILE *f=fopen("conftestval", "w");
4497 fprintf(f, "%d\n", sizeof(int));
4501 if { (eval echo configure:4502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4503 ac_cv_sizeof_int=`cat conftestval`
4506 echo "configure: failed program was:" >&5
4507 cat conftest.$ac_ext >&5
4512 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
4513 { test "$extra_verbose" = "yes" && cat << EOF
4514 Defining SIZEOF_INT = $ac_cv_sizeof_int
4516 cat >> confdefs.h <<EOF
4517 #define SIZEOF_INT $ac_cv_sizeof_int
4522 echo $ac_n "checking size of long""... $ac_c" 1>&6
4523 echo "configure:4524: checking size of long" >&5
4525 cat > conftest.$ac_ext <<EOF
4526 #line 4527 "configure"
4527 #include "confdefs.h"
4529 #include <sys/types.h>
4532 FILE *f=fopen("conftestval", "w");
4534 fprintf(f, "%d\n", sizeof(long));
4538 if { (eval echo configure:4539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4540 ac_cv_sizeof_long=`cat conftestval`
4543 echo "configure: failed program was:" >&5
4544 cat conftest.$ac_ext >&5
4549 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
4550 { test "$extra_verbose" = "yes" && cat << EOF
4551 Defining SIZEOF_LONG = $ac_cv_sizeof_long
4553 cat >> confdefs.h <<EOF
4554 #define SIZEOF_LONG $ac_cv_sizeof_long
4559 echo $ac_n "checking size of long long""... $ac_c" 1>&6
4560 echo "configure:4561: checking size of long long" >&5
4562 cat > conftest.$ac_ext <<EOF
4563 #line 4564 "configure"
4564 #include "confdefs.h"
4566 #include <sys/types.h>
4569 FILE *f=fopen("conftestval", "w");
4571 fprintf(f, "%d\n", sizeof(long long));
4575 if { (eval echo configure:4576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4577 ac_cv_sizeof_long_long=`cat conftestval`
4580 echo "configure: failed program was:" >&5
4581 cat conftest.$ac_ext >&5
4583 ac_cv_sizeof_long_long=0
4586 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
4587 { test "$extra_verbose" = "yes" && cat << EOF
4588 Defining SIZEOF_LONG_LONG = $ac_cv_sizeof_long_long
4590 cat >> confdefs.h <<EOF
4591 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4596 echo $ac_n "checking size of void *""... $ac_c" 1>&6
4597 echo "configure:4598: checking size of void *" >&5
4599 cat > conftest.$ac_ext <<EOF
4600 #line 4601 "configure"
4601 #include "confdefs.h"
4603 #include <sys/types.h>
4606 FILE *f=fopen("conftestval", "w");
4608 fprintf(f, "%d\n", sizeof(void *));
4612 if { (eval echo configure:4613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4614 ac_cv_sizeof_void_p=`cat conftestval`
4617 echo "configure: failed program was:" >&5
4618 cat conftest.$ac_ext >&5
4620 ac_cv_sizeof_void_p=0
4623 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
4624 { test "$extra_verbose" = "yes" && cat << EOF
4625 Defining SIZEOF_VOID_P = $ac_cv_sizeof_void_p
4627 cat >> confdefs.h <<EOF
4628 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4634 echo $ac_n "checking for long file names""... $ac_c" 1>&6
4635 echo "configure:4636: checking for long file names" >&5
4637 ac_cv_sys_long_file_names=yes
4638 # Test for long file names in all the places we know might matter:
4639 # . the current directory, where building will happen
4640 # $prefix/lib where we will be installing things
4641 # $exec_prefix/lib likewise
4642 # eval it to expand exec_prefix.
4643 # $TMPDIR if set, where it might want to write temporary files
4644 # if $TMPDIR is not set:
4645 # /tmp where it might want to write temporary files
4648 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
4649 ac_tmpdirs="$TMPDIR"
4651 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
4653 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
4654 test -d $ac_dir || continue
4655 test -w $ac_dir || continue # It is less confusing to not echo anything here.
4656 (echo 1 > $ac_dir/conftest9012345) 2>/dev/null
4657 (echo 2 > $ac_dir/conftest9012346) 2>/dev/null
4658 val=`cat $ac_dir/conftest9012345 2>/dev/null`
4659 if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then
4660 ac_cv_sys_long_file_names=no
4661 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
4664 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
4667 echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
4668 if test $ac_cv_sys_long_file_names = yes; then
4669 { test "$extra_verbose" = "yes" && cat << \EOF
4670 Defining HAVE_LONG_FILE_NAMES
4672 cat >> confdefs.h <<\EOF
4673 #define HAVE_LONG_FILE_NAMES 1
4680 echo $ac_n "checking for sin""... $ac_c" 1>&6
4681 echo "configure:4682: checking for sin" >&5
4683 cat > conftest.$ac_ext <<EOF
4684 #line 4685 "configure"
4685 #include "confdefs.h"
4686 /* System header to define __stub macros and hopefully few prototypes,
4687 which can conflict with char sin(); below. */
4689 /* Override any gcc2 internal prototype to avoid an error. */
4690 /* We use char because int might match the return type of a gcc2
4691 builtin and then its argument prototype would still apply. */
4696 /* The GNU C library defines this for functions which it implements
4697 to always fail with ENOSYS. Some functions are actually named
4698 something starting with __ and the normal name is an alias. */
4699 #if defined (__stub_sin) || defined (__stub___sin)
4707 if { (eval echo configure:4708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4709 eval "ac_cv_func_sin=yes"
4711 echo "configure: failed program was:" >&5
4712 cat conftest.$ac_ext >&5
4714 eval "ac_cv_func_sin=no"
4718 if eval "test \"`echo '$ac_cv_func_'sin`\" = yes"; then
4719 echo "$ac_t""yes" 1>&6
4722 echo "$ac_t""no" 1>&6
4724 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
4725 echo "configure:4726: checking for sin in -lm" >&5
4726 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
4728 xe_check_libs=" -lm "
4729 cat > conftest.$ac_ext <<EOF
4730 #line 4731 "configure"
4731 #include "confdefs.h"
4732 /* Override any gcc2 internal prototype to avoid an error. */
4733 /* We use char because int might match the return type of a gcc2
4734 builtin and then its argument prototype would still apply. */
4741 if { (eval echo configure:4742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4743 eval "ac_cv_lib_$ac_lib_var=yes"
4745 echo "configure: failed program was:" >&5
4746 cat conftest.$ac_ext >&5
4748 eval "ac_cv_lib_$ac_lib_var=no"
4753 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4754 echo "$ac_t""yes" 1>&6
4755 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/^a-zA-Z0-9_/_/g' \
4756 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4757 { test "$extra_verbose" = "yes" && cat << EOF
4760 cat >> confdefs.h <<EOF
4761 #define $ac_tr_lib 1
4765 LIBS="-lm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lm\" to \$LIBS"; fi
4768 echo "$ac_t""no" 1>&6
4775 { test "$extra_verbose" = "yes" && cat << \EOF
4776 Defining LISP_FLOAT_TYPE
4778 cat >> confdefs.h <<\EOF
4779 #define LISP_FLOAT_TYPE 1
4784 cat > conftest.$ac_ext <<EOF
4785 #line 4786 "configure"
4786 #include "confdefs.h"
4789 return atanh(1.0) + asinh(1.0) + acosh(1.0);
4792 if { (eval echo configure:4793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4794 { test "$extra_verbose" = "yes" && cat << \EOF
4795 Defining HAVE_INVERSE_HYPERBOLIC
4797 cat >> confdefs.h <<\EOF
4798 #define HAVE_INVERSE_HYPERBOLIC 1
4803 echo "configure: failed program was:" >&5
4804 cat conftest.$ac_ext >&5
4808 echo "checking type of mail spool file locking" 1>&6
4809 echo "configure:4810: checking type of mail spool file locking" >&5
4810 for ac_func in lockf flock
4812 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4813 echo "configure:4814: checking for $ac_func" >&5
4815 cat > conftest.$ac_ext <<EOF
4816 #line 4817 "configure"
4817 #include "confdefs.h"
4818 /* System header to define __stub macros and hopefully few prototypes,
4819 which can conflict with char $ac_func(); below. */
4821 /* Override any gcc2 internal prototype to avoid an error. */
4822 /* We use char because int might match the return type of a gcc2
4823 builtin and then its argument prototype would still apply. */
4828 /* The GNU C library defines this for functions which it implements
4829 to always fail with ENOSYS. Some functions are actually named
4830 something starting with __ and the normal name is an alias. */
4831 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4839 if { (eval echo configure:4840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4841 eval "ac_cv_func_$ac_func=yes"
4843 echo "configure: failed program was:" >&5
4844 cat conftest.$ac_ext >&5
4846 eval "ac_cv_func_$ac_func=no"
4850 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4851 echo "$ac_t""yes" 1>&6
4852 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4853 { test "$extra_verbose" = "yes" && cat << EOF
4854 Defining $ac_tr_func
4856 cat >> confdefs.h <<EOF
4857 #define $ac_tr_func 1
4862 echo "$ac_t""no" 1>&6
4866 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock
4867 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf
4868 test -z "$mail_locking" -a "$mail_use_locking" = "yes" && mail_locking=locking
4869 if test -z "$mail_locking"; then
4870 case "$opsys" in cygwin* | mingw*)
4875 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF
4876 Defining MAIL_LOCK_LOCKF
4878 cat >> confdefs.h <<\EOF
4879 #define MAIL_LOCK_LOCKF 1
4883 elif test "$mail_locking" = "flock"; then { test "$extra_verbose" = "yes" && cat << \EOF
4884 Defining MAIL_LOCK_FLOCK
4886 cat >> confdefs.h <<\EOF
4887 #define MAIL_LOCK_FLOCK 1
4891 elif test "$mail_locking" = "locking"; then { test "$extra_verbose" = "yes" && cat << \EOF
4892 Defining MAIL_LOCK_LOCKING
4894 cat >> confdefs.h <<\EOF
4895 #define MAIL_LOCK_LOCKING 1
4899 elif test "$mail_locking" = "pop"; then
4902 else mail_locking="dot-locking"; { test "$extra_verbose" = "yes" && cat << \EOF
4903 Defining MAIL_LOCK_DOT
4905 cat >> confdefs.h <<\EOF
4906 #define MAIL_LOCK_DOT 1
4911 test "$mail_locking" = "lockf" -a "$ac_cv_func_lockf" != "yes" && \
4912 { echo "Error:" "lockf mail locking requested but not available." >&2; exit 1; }
4913 test "$mail_locking" = "flock" -a "$ac_cv_func_flock" != "yes" && \
4914 { echo "Error:" "flock mail locking requested but not available." >&2; exit 1; }
4915 test "$mail_locking" = "locking" -a "$ac_cv_func_locking" != "yes" && \
4916 { echo "Error:" "locking mail locking requested but not available." >&2; exit 1; }
4918 case "$opsys" in decosf*)
4920 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
4921 echo "configure:4922: checking for cma_open in -lpthreads" >&5
4922 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
4924 xe_check_libs=" -lpthreads "
4925 cat > conftest.$ac_ext <<EOF
4926 #line 4927 "configure"
4927 #include "confdefs.h"
4928 /* Override any gcc2 internal prototype to avoid an error. */
4929 /* We use char because int might match the return type of a gcc2
4930 builtin and then its argument prototype would still apply. */
4937 if { (eval echo configure:4938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4939 eval "ac_cv_lib_$ac_lib_var=yes"
4941 echo "configure: failed program was:" >&5
4942 cat conftest.$ac_ext >&5
4944 eval "ac_cv_lib_$ac_lib_var=no"
4949 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4950 echo "$ac_t""yes" 1>&6
4951 ac_tr_lib=HAVE_LIB`echo pthreads | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4952 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4953 { test "$extra_verbose" = "yes" && cat << EOF
4956 cat >> confdefs.h <<EOF
4957 #define $ac_tr_lib 1
4961 LIBS="-lpthreads $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpthreads\" to \$LIBS"; fi
4964 echo "$ac_t""no" 1>&6
4968 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \
4969 c_switch_site="$c_switch_site -threads" ;;
4972 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6
4973 echo "configure:4974: checking whether the -xildoff compiler flag is required" >&5
4974 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
4975 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ;
4976 then echo "$ac_t""no" 1>&6;
4977 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
4979 else echo "$ac_t""no" 1>&6
4982 if test "$opsys" = "sol2"; then
4983 if test "$os_release" -ge 56; then
4984 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6
4985 echo "configure:4986: checking for \"-z ignore\" linker flag" >&5
4986 case "`ld -h 2>&1`" in
4987 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6
4988 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;;
4989 *) echo "$ac_t""no" 1>&6 ;;
4995 echo "checking "for specified window system"" 1>&6
4996 echo "configure:4997: checking "for specified window system"" >&5
5002 if test "$with_gnome" != "no"; then
5003 echo $ac_n "checking for GNOME configuration script""... $ac_c" 1>&6
5004 echo "configure:5005: checking for GNOME configuration script" >&5
5005 for possible in gnome-config
5007 possible_version=`${possible} --version 2> /dev/null`
5008 if test "x${possible_version}" != "x"; then
5009 GNOME_CONFIG="${possible}"
5015 echo "$ac_t""${GNOME_CONFIG}" 1>&6
5018 if test "${GNOME_CONFIG}" != "no"; then
5019 GNOME_LIBS=`${GNOME_CONFIG} --libs gnomeui`
5020 GNOME_CFLAGS=`${GNOME_CONFIG} --cflags gnomeui`
5021 { test "$extra_verbose" = "yes" && cat << \EOF
5024 cat >> confdefs.h <<\EOF
5025 #define HAVE_GNOME 1
5029 libs_gtk="$libs_gtk ${GNOME_LIBS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GNOME_LIBS}\" to \$libs_gtk"; fi
5030 c_switch_gtk="$c_switch_gtk ${GNOME_CFLAGS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GNOME_CFLAGS}\" to \$c_switch_gtk"; fi
5033 if test "$with_gtk" != "no";then
5034 echo $ac_n "checking for GTK configuration script""... $ac_c" 1>&6
5035 echo "configure:5036: checking for GTK configuration script" >&5
5036 for possible in gtk12-config gtk14-config gtk-config
5038 possible_version=`${possible} --version 2> /dev/null`
5039 if test "x${possible_version}" != "x"; then
5040 GTK_CONFIG="${possible}"
5042 case "${possible_version}" in
5043 1.0.*) echo "configure: warning: GTK 1.2 is required, please upgrade your version of GTK." 1>&2; with_gtk=no;;
5044 1.3.*) echo "configure: warning: GTK 1.3 is not supported right now" 1>&2; with_gtk=no;;
5049 *) echo "configure: warning: Found unsupported version of GTK: $possible_version" 1>&2;;
5052 echo "$ac_t""${GTK_CONFIG}" 1>&6
5055 if test "${GTK_CONFIG}" != "no"; then
5056 echo $ac_n "checking gtk version""... $ac_c" 1>&6
5057 echo "configure:5058: checking gtk version" >&5
5058 GTK_VERSION=`${GTK_CONFIG} --version`
5059 echo "$ac_t""${GTK_VERSION}" 1>&6
5061 echo $ac_n "checking gtk libs""... $ac_c" 1>&6
5062 echo "configure:5063: checking gtk libs" >&5
5063 GTK_LIBS=`${GTK_CONFIG} --libs`
5064 libs_gtk="$libs_gtk ${GTK_LIBS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GTK_LIBS}\" to \$libs_gtk"; fi
5065 echo "$ac_t""${GTK_LIBS}" 1>&6
5067 echo $ac_n "checking gtk cflags""... $ac_c" 1>&6
5068 echo "configure:5069: checking gtk cflags" >&5
5069 GTK_CFLAGS=`${GTK_CONFIG} --cflags`
5070 c_switch_gtk="$c_switch_gtk ${GTK_CFLAGS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GTK_CFLAGS}\" to \$c_switch_gtk"; fi
5071 echo "$ac_t""${GTK_CFLAGS}" 1>&6
5074 echo $ac_n "checking for main in -lgdk_imlib""... $ac_c" 1>&6
5075 echo "configure:5076: checking for main in -lgdk_imlib" >&5
5076 ac_lib_var=`echo gdk_imlib'_'main | sed 'y%./+-%__p_%'`
5078 xe_check_libs=" -lgdk_imlib "
5079 cat > conftest.$ac_ext <<EOF
5080 #line 5081 "configure"
5081 #include "confdefs.h"
5087 if { (eval echo configure:5088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5089 eval "ac_cv_lib_$ac_lib_var=yes"
5091 echo "configure: failed program was:" >&5
5092 cat conftest.$ac_ext >&5
5094 eval "ac_cv_lib_$ac_lib_var=no"
5099 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5100 echo "$ac_t""yes" 1>&6
5101 libs_gtk="-lgdk_imlib $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgdk_imlib\" to \$libs_gtk"; fi
5103 echo "$ac_t""no" 1>&6
5108 echo $ac_n "checking for Imlib_init in -lImlib""... $ac_c" 1>&6
5109 echo "configure:5110: checking for Imlib_init in -lImlib" >&5
5110 ac_lib_var=`echo Imlib'_'Imlib_init | sed 'y%./+-%__p_%'`
5112 xe_check_libs=" -lImlib "
5113 cat > conftest.$ac_ext <<EOF
5114 #line 5115 "configure"
5115 #include "confdefs.h"
5116 /* Override any gcc2 internal prototype to avoid an error. */
5117 /* We use char because int might match the return type of a gcc2
5118 builtin and then its argument prototype would still apply. */
5125 if { (eval echo configure:5126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5127 eval "ac_cv_lib_$ac_lib_var=yes"
5129 echo "configure: failed program was:" >&5
5130 cat conftest.$ac_ext >&5
5132 eval "ac_cv_lib_$ac_lib_var=no"
5137 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5138 echo "$ac_t""yes" 1>&6
5139 libs_gtk="$libs_gtk -lImlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lImlib\" to \$libs_gtk"; fi
5141 echo "$ac_t""no" 1>&6
5145 for ac_func in gdk_imlib_init
5147 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5148 echo "configure:5149: checking for $ac_func" >&5
5150 cat > conftest.$ac_ext <<EOF
5151 #line 5152 "configure"
5152 #include "confdefs.h"
5153 /* System header to define __stub macros and hopefully few prototypes,
5154 which can conflict with char $ac_func(); below. */
5156 /* Override any gcc2 internal prototype to avoid an error. */
5157 /* We use char because int might match the return type of a gcc2
5158 builtin and then its argument prototype would still apply. */
5163 /* The GNU C library defines this for functions which it implements
5164 to always fail with ENOSYS. Some functions are actually named
5165 something starting with __ and the normal name is an alias. */
5166 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5174 if { (eval echo configure:5175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5176 eval "ac_cv_func_$ac_func=yes"
5178 echo "configure: failed program was:" >&5
5179 cat conftest.$ac_ext >&5
5181 eval "ac_cv_func_$ac_func=no"
5185 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5186 echo "$ac_t""yes" 1>&6
5187 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5188 { test "$extra_verbose" = "yes" && cat << EOF
5189 Defining $ac_tr_func
5191 cat >> confdefs.h <<EOF
5192 #define $ac_tr_func 1
5197 echo "$ac_t""no" 1>&6
5202 { test "$extra_verbose" = "yes" && cat << \EOF
5205 cat >> confdefs.h <<\EOF
5210 { test "$extra_verbose" = "yes" && cat << \EOF
5213 cat >> confdefs.h <<\EOF
5224 test "${with_scrollbars}" != "no" && with_scrollbars=gtk
5225 test "${with_toolbars}" != no && with_toolbars=gtk
5226 test "${with_menubars}" != "no" && with_menubars=gtk
5227 test "${with_dialogs}" != "no" && with_dialogs=gtk
5228 test "${with_widgets}" != "no" && with_widgets=gtk
5230 extra_objs="$extra_objs console-gtk.o device-gtk.o event-gtk.o frame-gtk.o" && if test "$extra_verbose" = "yes"; then
5231 echo " xemacs will be linked with \"console-gtk.o device-gtk.o event-gtk.o frame-gtk.o\""
5233 extra_objs="$extra_objs objects-gtk.o redisplay-gtk.o glyphs-gtk.o" && if test "$extra_verbose" = "yes"; then
5234 echo " xemacs will be linked with \"objects-gtk.o redisplay-gtk.o glyphs-gtk.o\""
5236 extra_objs="$extra_objs select-gtk.o gccache-gtk.o" && if test "$extra_verbose" = "yes"; then
5237 echo " xemacs will be linked with \"select-gtk.o gccache-gtk.o\""
5239 extra_objs="$extra_objs gtk-xemacs.o ui-gtk.o" && if test "$extra_verbose" = "yes"; then
5240 echo " xemacs will be linked with \"gtk-xemacs.o ui-gtk.o\""
5243 OLD_CFLAGS="${CFLAGS}"
5244 OLD_LDFLAGS="${LDFLAGS}"
5245 CFLAGS="${GTK_CFLAGS} ${CFLAGS}"
5246 LDFLAGS="${LDFLAGS} ${GTK_LIBS}"
5247 for ac_hdr in glade/glade.h glade.h
5249 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5250 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5251 echo "configure:5252: checking for $ac_hdr" >&5
5253 cat > conftest.$ac_ext <<EOF
5254 #line 5255 "configure"
5255 #include "confdefs.h"
5258 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5259 { (eval echo configure:5260: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5260 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5261 if test -z "$ac_err"; then
5263 eval "ac_cv_header_$ac_safe=yes"
5266 echo "configure: failed program was:" >&5
5267 cat conftest.$ac_ext >&5
5269 eval "ac_cv_header_$ac_safe=no"
5272 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5273 echo "$ac_t""yes" 1>&6
5274 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5275 { test "$extra_verbose" = "yes" && cat << EOF
5278 cat >> confdefs.h <<EOF
5279 #define $ac_tr_hdr 1
5284 echo "$ac_t""no" 1>&6
5289 echo $ac_n "checking for main in -lxml""... $ac_c" 1>&6
5290 echo "configure:5291: checking for main in -lxml" >&5
5291 ac_lib_var=`echo xml'_'main | sed 'y%./+-%__p_%'`
5293 xe_check_libs=" -lxml "
5294 cat > conftest.$ac_ext <<EOF
5295 #line 5296 "configure"
5296 #include "confdefs.h"
5302 if { (eval echo configure:5303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5304 eval "ac_cv_lib_$ac_lib_var=yes"
5306 echo "configure: failed program was:" >&5
5307 cat conftest.$ac_ext >&5
5309 eval "ac_cv_lib_$ac_lib_var=no"
5314 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5315 echo "$ac_t""yes" 1>&6
5316 libs_gtk="-lxml $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lxml\" to \$libs_gtk"; fi
5318 echo "$ac_t""no" 1>&6
5323 echo $ac_n "checking for main in -lglade""... $ac_c" 1>&6
5324 echo "configure:5325: checking for main in -lglade" >&5
5325 ac_lib_var=`echo glade'_'main | sed 'y%./+-%__p_%'`
5327 xe_check_libs=" -lglade "
5328 cat > conftest.$ac_ext <<EOF
5329 #line 5330 "configure"
5330 #include "confdefs.h"
5336 if { (eval echo configure:5337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5338 eval "ac_cv_lib_$ac_lib_var=yes"
5340 echo "configure: failed program was:" >&5
5341 cat conftest.$ac_ext >&5
5343 eval "ac_cv_lib_$ac_lib_var=no"
5348 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5349 echo "$ac_t""yes" 1>&6
5350 libs_gtk="-lglade $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lglade\" to \$libs_gtk"; fi
5352 echo "$ac_t""no" 1>&6
5357 echo $ac_n "checking for main in -lglade-gnome""... $ac_c" 1>&6
5358 echo "configure:5359: checking for main in -lglade-gnome" >&5
5359 ac_lib_var=`echo glade-gnome'_'main | sed 'y%./+-%__p_%'`
5361 xe_check_libs=" -lglade-gnome "
5362 cat > conftest.$ac_ext <<EOF
5363 #line 5364 "configure"
5364 #include "confdefs.h"
5370 if { (eval echo configure:5371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5372 eval "ac_cv_lib_$ac_lib_var=yes"
5374 echo "configure: failed program was:" >&5
5375 cat conftest.$ac_ext >&5
5377 eval "ac_cv_lib_$ac_lib_var=no"
5382 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5383 echo "$ac_t""yes" 1>&6
5384 libs_gtk="-lglade-gnome $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lglade-gnome\" to \$libs_gtk"; fi
5386 echo "$ac_t""no" 1>&6
5390 cat > conftest.$ac_ext <<EOF
5391 #line 5392 "configure"
5392 #include "confdefs.h"
5393 #include <glade/glade-xml.h>
5395 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5396 egrep "char \*txtdomain;" >/dev/null 2>&1; then
5398 echo "$ac_t""yes" 1>&6
5399 { test "$extra_verbose" = "yes" && cat << \EOF
5400 Defining LIBGLADE_XML_TXTDOMAIN = 1
5402 cat >> confdefs.h <<\EOF
5403 #define LIBGLADE_XML_TXTDOMAIN 1
5409 echo "$ac_t""no" 1>&6
5413 CFLAGS="${OLD_CFLAGS}"
5414 LDFLAGS="${OLD_LDFLAGS}"
5418 if test "$with_x11" != "no"; then
5419 test "$x_includes $x_libraries" != "NONE NONE" && \
5420 window_system=x11 with_x11=yes
5423 if test "$x_includes $x_libraries" = "NONE NONE" \
5424 -a -n "$OPENWINHOME" \
5425 -a "$OPENWINHOME" != "/usr/openwin" \
5426 -a -d "$OPENWINHOME"; then
5427 test -d "$OPENWINHOME/lib" && x_libraries="$OPENWINHOME/lib"
5428 test -d "$OPENWINHOME/include" && x_includes="$OPENWINHOME/include"
5429 test -d "$OPENWINHOME/share/include" && x_includes="$OPENWINHOME/share/include"
5432 if test "$x_includes" = "NONE"; then
5433 for dir in "/usr/X11" "/usr/X11R6"; do
5434 if test -d "$dir/include/X11"; then x_includes="$dir/include"; break; fi
5438 if test "$x_libraries" = "NONE"; then
5439 for dir in "/usr/X11/lib" "/usr/X11R6/lib" "/usr/lib/X11R6"; do
5440 if test -r "$dir/libX11.a"; then x_libraries="$dir"; break; fi
5444 # If we find X, set shell vars x_includes and x_libraries to the
5445 # paths, otherwise set no_x=yes.
5446 # Uses ac_ vars as temps to allow command line to override cache and checks.
5447 # --without-x overrides everything else, but does not touch the cache.
5448 echo $ac_n "checking for X""... $ac_c" 1>&6
5449 echo "configure:5450: checking for X" >&5
5451 # Check whether --with-x or --without-x was given.
5452 if test "${with_x+set}" = set; then
5457 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5458 if test "x$with_x" = xno; then
5459 # The user explicitly disabled X.
5462 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
5463 # Both variables are already set.
5467 # One or both of the vars are not set, and there is no cached value.
5468 ac_x_includes=NO ac_x_libraries=NO
5470 if mkdir conftestdir; then
5472 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5473 cat > Imakefile <<'EOF'
5475 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5477 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5478 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5479 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5480 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5481 for ac_extension in a so sl; do
5482 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
5483 test -f $ac_im_libdir/libX11.$ac_extension; then
5484 ac_im_usrlibdir=$ac_im_libdir; break
5487 # Screen out bogus values from the imake configuration. They are
5488 # bogus both because they are the default anyway, and because
5489 # using them would break gcc on systems where it needs fixed includes.
5490 case "$ac_im_incroot" in
5492 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
5494 case "$ac_im_usrlibdir" in
5496 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
5503 if test "$ac_x_includes" = NO; then
5504 # Guess where to find include files, by looking for this one X11 .h file.
5505 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
5507 # First, try using that file with no special directory specified.
5508 cat > conftest.$ac_ext <<EOF
5509 #line 5510 "configure"
5510 #include "confdefs.h"
5511 #include <$x_direct_test_include>
5513 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5514 { (eval echo configure:5515: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5515 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5516 if test -z "$ac_err"; then
5518 # We can compile using X headers with no special include directory.
5522 echo "configure: failed program was:" >&5
5523 cat conftest.$ac_ext >&5
5525 # Look for the header file in a standard set of common directories.
5526 # Check X11 before X11Rn because it is often a symlink to the current release.
5529 /usr/X11R6/include \
5530 /usr/X11R5/include \
5531 /usr/X11R4/include \
5534 /usr/include/X11R6 \
5535 /usr/include/X11R5 \
5536 /usr/include/X11R4 \
5538 /usr/local/X11/include \
5539 /usr/local/X11R6/include \
5540 /usr/local/X11R5/include \
5541 /usr/local/X11R4/include \
5543 /usr/local/include/X11 \
5544 /usr/local/include/X11R6 \
5545 /usr/local/include/X11R5 \
5546 /usr/local/include/X11R4 \
5550 /usr/XFree86/include/X11 \
5553 /usr/local/include \
5554 /usr/unsupported/include \
5555 /usr/athena/include \
5556 /usr/local/x11r5/include \
5557 /usr/lpp/Xamples/include \
5559 /usr/openwin/include \
5560 /usr/openwin/share/include \
5563 if test -r "$ac_dir/$x_direct_test_include"; then
5564 ac_x_includes=$ac_dir
5570 fi # $ac_x_includes = NO
5572 if test "$ac_x_libraries" = NO; then
5573 # Check for the libraries.
5575 test -z "$x_direct_test_library" && x_direct_test_library=Xt
5576 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
5578 # See if we find them without any special options.
5579 # Don't add to $LIBS permanently.
5580 ac_save_LIBS="$LIBS"
5581 LIBS="-l$x_direct_test_library $LIBS"
5582 cat > conftest.$ac_ext <<EOF
5583 #line 5584 "configure"
5584 #include "confdefs.h"
5587 ${x_direct_test_function}()
5590 if { (eval echo configure:5591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5592 LIBS="$ac_save_LIBS"
5593 # We can link X programs with no special library path.
5596 echo "configure: failed program was:" >&5
5597 cat conftest.$ac_ext >&5
5599 LIBS="$ac_save_LIBS"
5600 # First see if replacing the include by lib works.
5601 # Check X11 before X11Rn because it is often a symlink to the current release.
5602 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
5613 /usr/local/X11/lib \
5614 /usr/local/X11R6/lib \
5615 /usr/local/X11R5/lib \
5616 /usr/local/X11R4/lib \
5618 /usr/local/lib/X11 \
5619 /usr/local/lib/X11R6 \
5620 /usr/local/lib/X11R5 \
5621 /usr/local/lib/X11R4 \
5625 /usr/XFree86/lib/X11 \
5629 /usr/unsupported/lib \
5631 /usr/local/x11r5/lib \
5632 /usr/lpp/Xamples/lib \
5636 /usr/openwin/share/lib \
5639 for ac_extension in a so sl; do
5640 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
5641 ac_x_libraries=$ac_dir
5648 fi # $ac_x_libraries = NO
5650 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
5651 # Didn't find X anywhere. Cache the known absence of X.
5652 ac_cv_have_x="have_x=no"
5654 # Record where we found X for the cache.
5655 ac_cv_have_x="have_x=yes \
5656 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5659 eval "$ac_cv_have_x"
5662 if test "$have_x" != yes; then
5663 echo "$ac_t""$have_x" 1>&6
5666 # If each of the values was on the command line, it overrides each guess.
5667 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5668 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5669 # Update the cache value to reflect the command line values.
5670 ac_cv_have_x="have_x=yes \
5671 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5672 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
5675 if test "$no_x" = yes; then
5676 # Not all programs may use this symbol, but it does not hurt to define it.
5677 { test "$extra_verbose" = "yes" && cat << \EOF
5678 Defining X_DISPLAY_MISSING
5680 cat >> confdefs.h <<\EOF
5681 #define X_DISPLAY_MISSING 1
5685 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5687 if test -n "$x_includes"; then
5688 X_CFLAGS="$X_CFLAGS -I$x_includes"
5691 # It would also be nice to do this for all -L options, not just this one.
5692 if test -n "$x_libraries"; then
5693 X_LIBS="$X_LIBS -L$x_libraries"
5694 # For Solaris; some versions of Sun CC require a space after -R and
5695 # others require no space. Words are not sufficient . . . .
5696 case "`(uname -sr) 2>/dev/null`" in
5698 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
5699 echo "configure:5700: checking whether -R must be followed by a space" >&5
5700 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
5701 cat > conftest.$ac_ext <<EOF
5702 #line 5703 "configure"
5703 #include "confdefs.h"
5709 if { (eval echo configure:5710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5713 echo "configure: failed program was:" >&5
5714 cat conftest.$ac_ext >&5
5719 if test $ac_R_nospace = yes; then
5720 echo "$ac_t""no" 1>&6
5721 X_LIBS="$X_LIBS -R$x_libraries"
5723 LIBS="$ac_xsave_LIBS -R $x_libraries"
5724 cat > conftest.$ac_ext <<EOF
5725 #line 5726 "configure"
5726 #include "confdefs.h"
5732 if { (eval echo configure:5733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5736 echo "configure: failed program was:" >&5
5737 cat conftest.$ac_ext >&5
5742 if test $ac_R_space = yes; then
5743 echo "$ac_t""yes" 1>&6
5744 X_LIBS="$X_LIBS -R $x_libraries"
5746 echo "$ac_t""neither works" 1>&6
5749 LIBS="$ac_xsave_LIBS"
5753 # Check for system-dependent libraries X programs must link with.
5754 # Do this before checking for the system-independent R6 libraries
5755 # (-lICE), since we may need -lsocket or whatever for X linking.
5757 if test "$ISC" = yes; then
5758 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5760 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
5761 # libraries were built with DECnet support. And karl@cs.umb.edu says
5762 # the Alpha needs dnet_stub (dnet does not exist).
5763 if test "$with_dnet" = "no" ; then
5764 ac_cv_lib_dnet_dnet_ntoa=no
5767 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
5768 echo "configure:5769: checking for dnet_ntoa in -ldnet" >&5
5769 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5771 xe_check_libs=" -ldnet "
5772 cat > conftest.$ac_ext <<EOF
5773 #line 5774 "configure"
5774 #include "confdefs.h"
5775 /* Override any gcc2 internal prototype to avoid an error. */
5776 /* We use char because int might match the return type of a gcc2
5777 builtin and then its argument prototype would still apply. */
5784 if { (eval echo configure:5785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5786 eval "ac_cv_lib_$ac_lib_var=yes"
5788 echo "configure: failed program was:" >&5
5789 cat conftest.$ac_ext >&5
5791 eval "ac_cv_lib_$ac_lib_var=no"
5796 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5797 echo "$ac_t""yes" 1>&6
5798 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5800 echo "$ac_t""no" 1>&6
5805 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5807 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
5808 echo "configure:5809: checking for dnet_ntoa in -ldnet_stub" >&5
5809 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5811 xe_check_libs=" -ldnet_stub "
5812 cat > conftest.$ac_ext <<EOF
5813 #line 5814 "configure"
5814 #include "confdefs.h"
5815 /* Override any gcc2 internal prototype to avoid an error. */
5816 /* We use char because int might match the return type of a gcc2
5817 builtin and then its argument prototype would still apply. */
5824 if { (eval echo configure:5825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5826 eval "ac_cv_lib_$ac_lib_var=yes"
5828 echo "configure: failed program was:" >&5
5829 cat conftest.$ac_ext >&5
5831 eval "ac_cv_lib_$ac_lib_var=no"
5836 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5837 echo "$ac_t""yes" 1>&6
5838 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5840 echo "$ac_t""no" 1>&6
5846 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5847 # to get the SysV transport functions.
5848 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
5850 # The nsl library prevents programs from opening the X display
5851 # on Irix 5.2, according to dickey@clark.net.
5852 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
5853 echo "configure:5854: checking for gethostbyname" >&5
5855 cat > conftest.$ac_ext <<EOF
5856 #line 5857 "configure"
5857 #include "confdefs.h"
5858 /* System header to define __stub macros and hopefully few prototypes,
5859 which can conflict with char gethostbyname(); below. */
5861 /* Override any gcc2 internal prototype to avoid an error. */
5862 /* We use char because int might match the return type of a gcc2
5863 builtin and then its argument prototype would still apply. */
5864 char gethostbyname();
5868 /* The GNU C library defines this for functions which it implements
5869 to always fail with ENOSYS. Some functions are actually named
5870 something starting with __ and the normal name is an alias. */
5871 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5879 if { (eval echo configure:5880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5881 eval "ac_cv_func_gethostbyname=yes"
5883 echo "configure: failed program was:" >&5
5884 cat conftest.$ac_ext >&5
5886 eval "ac_cv_func_gethostbyname=no"
5890 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
5891 echo "$ac_t""yes" 1>&6
5894 echo "$ac_t""no" 1>&6
5897 if test $ac_cv_func_gethostbyname = no; then
5899 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
5900 echo "configure:5901: checking for gethostbyname in -lnsl" >&5
5901 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
5903 xe_check_libs=" -lnsl "
5904 cat > conftest.$ac_ext <<EOF
5905 #line 5906 "configure"
5906 #include "confdefs.h"
5907 /* Override any gcc2 internal prototype to avoid an error. */
5908 /* We use char because int might match the return type of a gcc2
5909 builtin and then its argument prototype would still apply. */
5910 char gethostbyname();
5916 if { (eval echo configure:5917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5918 eval "ac_cv_lib_$ac_lib_var=yes"
5920 echo "configure: failed program was:" >&5
5921 cat conftest.$ac_ext >&5
5923 eval "ac_cv_lib_$ac_lib_var=no"
5928 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5929 echo "$ac_t""yes" 1>&6
5930 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5932 echo "$ac_t""no" 1>&6
5938 # lieder@skyler.mavd.honeywell.com says without -lsocket,
5939 # socket/setsockopt and other routines are undefined under SCO ODT
5940 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5941 # on later versions), says simon@lia.di.epfl.ch: it contains
5942 # gethostby* variants that don't use the nameserver (or something).
5943 # -lsocket must be given before -lnsl if both are needed.
5944 # We assume that if connect needs -lnsl, so does gethostbyname.
5945 echo $ac_n "checking for connect""... $ac_c" 1>&6
5946 echo "configure:5947: checking for connect" >&5
5948 cat > conftest.$ac_ext <<EOF
5949 #line 5950 "configure"
5950 #include "confdefs.h"
5951 /* System header to define __stub macros and hopefully few prototypes,
5952 which can conflict with char connect(); below. */
5954 /* Override any gcc2 internal prototype to avoid an error. */
5955 /* We use char because int might match the return type of a gcc2
5956 builtin and then its argument prototype would still apply. */
5961 /* The GNU C library defines this for functions which it implements
5962 to always fail with ENOSYS. Some functions are actually named
5963 something starting with __ and the normal name is an alias. */
5964 #if defined (__stub_connect) || defined (__stub___connect)
5972 if { (eval echo configure:5973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5974 eval "ac_cv_func_connect=yes"
5976 echo "configure: failed program was:" >&5
5977 cat conftest.$ac_ext >&5
5979 eval "ac_cv_func_connect=no"
5983 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
5984 echo "$ac_t""yes" 1>&6
5987 echo "$ac_t""no" 1>&6
5990 if test $ac_cv_func_connect = no; then
5992 xe_msg_checking="for connect in -lsocket"
5993 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
5994 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5995 echo "configure:5996: checking "$xe_msg_checking"" >&5
5996 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
5998 xe_check_libs=" -lsocket $X_EXTRA_LIBS"
5999 cat > conftest.$ac_ext <<EOF
6000 #line 6001 "configure"
6001 #include "confdefs.h"
6002 /* Override any gcc2 internal prototype to avoid an error. */
6003 /* We use char because int might match the return type of a gcc2
6004 builtin and then its argument prototype would still apply. */
6011 if { (eval echo configure:6012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6013 eval "ac_cv_lib_$ac_lib_var=yes"
6015 echo "configure: failed program was:" >&5
6016 cat conftest.$ac_ext >&5
6018 eval "ac_cv_lib_$ac_lib_var=no"
6023 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6024 echo "$ac_t""yes" 1>&6
6025 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6027 echo "$ac_t""no" 1>&6
6033 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
6034 echo $ac_n "checking for remove""... $ac_c" 1>&6
6035 echo "configure:6036: checking for remove" >&5
6037 cat > conftest.$ac_ext <<EOF
6038 #line 6039 "configure"
6039 #include "confdefs.h"
6040 /* System header to define __stub macros and hopefully few prototypes,
6041 which can conflict with char remove(); below. */
6043 /* Override any gcc2 internal prototype to avoid an error. */
6044 /* We use char because int might match the return type of a gcc2
6045 builtin and then its argument prototype would still apply. */
6050 /* The GNU C library defines this for functions which it implements
6051 to always fail with ENOSYS. Some functions are actually named
6052 something starting with __ and the normal name is an alias. */
6053 #if defined (__stub_remove) || defined (__stub___remove)
6061 if { (eval echo configure:6062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6063 eval "ac_cv_func_remove=yes"
6065 echo "configure: failed program was:" >&5
6066 cat conftest.$ac_ext >&5
6068 eval "ac_cv_func_remove=no"
6072 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
6073 echo "$ac_t""yes" 1>&6
6076 echo "$ac_t""no" 1>&6
6079 if test $ac_cv_func_remove = no; then
6081 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
6082 echo "configure:6083: checking for remove in -lposix" >&5
6083 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
6085 xe_check_libs=" -lposix "
6086 cat > conftest.$ac_ext <<EOF
6087 #line 6088 "configure"
6088 #include "confdefs.h"
6089 /* Override any gcc2 internal prototype to avoid an error. */
6090 /* We use char because int might match the return type of a gcc2
6091 builtin and then its argument prototype would still apply. */
6098 if { (eval echo configure:6099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6100 eval "ac_cv_lib_$ac_lib_var=yes"
6102 echo "configure: failed program was:" >&5
6103 cat conftest.$ac_ext >&5
6105 eval "ac_cv_lib_$ac_lib_var=no"
6110 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6111 echo "$ac_t""yes" 1>&6
6112 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6114 echo "$ac_t""no" 1>&6
6120 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6121 echo $ac_n "checking for shmat""... $ac_c" 1>&6
6122 echo "configure:6123: checking for shmat" >&5
6124 cat > conftest.$ac_ext <<EOF
6125 #line 6126 "configure"
6126 #include "confdefs.h"
6127 /* System header to define __stub macros and hopefully few prototypes,
6128 which can conflict with char shmat(); below. */
6130 /* Override any gcc2 internal prototype to avoid an error. */
6131 /* We use char because int might match the return type of a gcc2
6132 builtin and then its argument prototype would still apply. */
6137 /* The GNU C library defines this for functions which it implements
6138 to always fail with ENOSYS. Some functions are actually named
6139 something starting with __ and the normal name is an alias. */
6140 #if defined (__stub_shmat) || defined (__stub___shmat)
6148 if { (eval echo configure:6149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6150 eval "ac_cv_func_shmat=yes"
6152 echo "configure: failed program was:" >&5
6153 cat conftest.$ac_ext >&5
6155 eval "ac_cv_func_shmat=no"
6159 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
6160 echo "$ac_t""yes" 1>&6
6163 echo "$ac_t""no" 1>&6
6166 if test $ac_cv_func_shmat = no; then
6168 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
6169 echo "configure:6170: checking for shmat in -lipc" >&5
6170 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
6172 xe_check_libs=" -lipc "
6173 cat > conftest.$ac_ext <<EOF
6174 #line 6175 "configure"
6175 #include "confdefs.h"
6176 /* Override any gcc2 internal prototype to avoid an error. */
6177 /* We use char because int might match the return type of a gcc2
6178 builtin and then its argument prototype would still apply. */
6185 if { (eval echo configure:6186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6187 eval "ac_cv_lib_$ac_lib_var=yes"
6189 echo "configure: failed program was:" >&5
6190 cat conftest.$ac_ext >&5
6192 eval "ac_cv_lib_$ac_lib_var=no"
6197 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6198 echo "$ac_t""yes" 1>&6
6199 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6201 echo "$ac_t""no" 1>&6
6208 # Check for libraries that X11R6 Xt/Xaw programs need.
6209 ac_save_LDFLAGS="$LDFLAGS"
6210 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6211 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6212 # check for ICE first), but we must link in the order -lSM -lICE or
6213 # we get undefined symbols. So assume we have SM if we have ICE.
6214 # These have to be linked with before -lX11, unlike the other
6215 # libraries we check for below, so use a different variable.
6216 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
6218 xe_msg_checking="for IceConnectionNumber in -lICE"
6219 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
6220 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6221 echo "configure:6222: checking "$xe_msg_checking"" >&5
6222 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
6224 xe_check_libs=" -lICE $X_EXTRA_LIBS"
6225 cat > conftest.$ac_ext <<EOF
6226 #line 6227 "configure"
6227 #include "confdefs.h"
6228 /* Override any gcc2 internal prototype to avoid an error. */
6229 /* We use char because int might match the return type of a gcc2
6230 builtin and then its argument prototype would still apply. */
6231 char IceConnectionNumber();
6234 IceConnectionNumber()
6237 if { (eval echo configure:6238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6239 eval "ac_cv_lib_$ac_lib_var=yes"
6241 echo "configure: failed program was:" >&5
6242 cat conftest.$ac_ext >&5
6244 eval "ac_cv_lib_$ac_lib_var=no"
6249 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6250 echo "$ac_t""yes" 1>&6
6251 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6253 echo "$ac_t""no" 1>&6
6257 LDFLAGS="$ac_save_LDFLAGS"
6260 # Autoconf claims to find X library and include dirs for us.
6261 if test "$no_x" = "yes"
6262 then with_x11=no window_system=none HAVE_X_WINDOWS=no
6263 else with_x11=yes window_system=x11 HAVE_X_WINDOWS=yes
6268 if test "$with_x11" = "yes"; then
6269 { test "$extra_verbose" = "yes" && cat << \EOF
6270 Defining HAVE_X_WINDOWS
6272 cat >> confdefs.h <<\EOF
6273 #define HAVE_X_WINDOWS 1
6277 MAKE_SUBDIR="$MAKE_SUBDIR lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$MAKE_SUBDIR"; fi
6278 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$SRC_SUBDIR_DEPS"; fi
6280 for lib_dir in "/usr/dt/lib" "/usr/lib/Motif2.1" "/usr/lib/Motif1.2" "/usr/lib/Motif1.1"; do
6281 inc_dir=`echo $lib_dir | sed -e 's/lib/include/'`
6282 if test -d "$lib_dir" -a -d "$inc_dir"; then
6283 case "$x_libraries" in *"$lib_dir"* ) ;; *)
6284 x_libraries="$lib_dir $x_libraries"
6285 X_LIBS="-L${lib_dir} $X_LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-L${lib_dir}\" to \$X_LIBS"; fi ;;
6287 case "$x_includes" in "$inc_dir"* ) ;; *)
6288 x_includes="$inc_dir $x_includes"
6289 X_CFLAGS="-I${inc_dir} $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-I${inc_dir}\" to \$X_CFLAGS"; fi ;;
6294 for rel in "X11R6" "X11R5" "X11R4"; do
6295 lib_dir="/usr/contrib/$rel/lib" inc_dir="/usr/contrib/$rel/include"
6296 if test -d "$lib_dir" -a -d "$inc_dir"; then
6297 case "$x_libraries" in *"$lib_dir"* ) ;; *)
6298 x_libraries="$x_libraries $lib_dir"
6299 X_LIBS="$X_LIBS -L${lib_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L${lib_dir}\" to \$X_LIBS"; fi
6301 case "$x_includes" in "$inc_dir"* ) ;; *)
6302 x_includes="$x_includes $inc_dir"
6303 X_CFLAGS="$X_CFLAGS -I${inc_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-I${inc_dir}\" to \$X_CFLAGS"; fi
6309 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 ;;
6312 ld_switch_x_site="$X_LIBS"
6315 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
6316 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
6317 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
6319 runpath="" runpath_dirs=""
6320 if test -n "$LD_RUN_PATH"; then
6321 runpath="$LD_RUN_PATH"
6322 elif test "$GCC" = "yes"; then
6323 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
6324 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
6325 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
6326 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
6327 case "$arg" in P,* | -L* | -R* )
6328 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
6330 xe_runpath_dir="$dir"
6331 test "$xe_runpath_dir" != "/lib" -a \
6332 "$xe_runpath_dir" != "/usr/lib" -a \
6333 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
6334 eval "$xe_add_unique_runpath_dir"
6339 ld_switch_run="$ld_switch_run_save"
6342 for arg in $ld_switch_site $ld_switch_x_site; do
6343 case "$arg" in -L*) {
6344 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
6345 test "$xe_runpath_dir" != "/lib" -a \
6346 "$xe_runpath_dir" != "/usr/lib" -a \
6347 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
6348 eval "$xe_add_unique_runpath_dir"
6351 if test "$opsys $need_motif" = "sol2 yes"; then
6352 xe_runpath_dir="/opt/SUNWdt/lib";
6353 eval "$xe_add_unique_runpath_dir";
6356 if test -n "$runpath"; then
6357 ld_switch_run="${dash_r}${runpath}"
6359 if test "$GCC" = "yes"; then
6360 set x $ld_switch_run; shift; ld_switch_run=""
6361 while test -n "$1"; do
6363 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
6364 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
6366 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
6371 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
6376 if test "$extra_verbose" = "yes"; then
6377 echo; echo "X11 compilation variables:"
6378 for var in x_libraries x_includes X_CFLAGS X_LIBS X_PRE_LIBS X_EXTRA_LIBS; do eval "echo \"$var = '\$$var'\""; done
6383 if test "$x_includes" != NONE; then
6384 for i in $x_includes; do
6385 if test -d "$i/bitmaps"; then
6386 bitmapdirs="$i/bitmaps:$bitmapdirs"
6388 if test -d "$i/X11/bitmaps"; then
6389 bitmapdirs="$i/X11/bitmaps:$bitmapdirs"
6392 bitmapdirs=`echo "$bitmapdirs" | sed s/.$//`
6394 test ! -z "$bitmapdirs" && { test "$extra_verbose" = "yes" && cat << EOF
6395 Defining BITMAPDIR = "$bitmapdirs"
6397 cat >> confdefs.h <<EOF
6398 #define BITMAPDIR "$bitmapdirs"
6403 echo "checking for X defines extracted by xmkmf" 1>&6
6404 echo "configure:6405: checking for X defines extracted by xmkmf" >&5
6406 if mkdir conftestdir; then
6408 cat > Imakefile <<'EOF'
6410 @echo ${PROTO_DEFINES} ${STD_DEFINES}
6412 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6413 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6414 xmkmf_defines=`${MAKE-make} xetest 2>/dev/null | grep -v make`
6418 for word in $xmkmf_defines; do
6419 case "$word" in -D* )
6420 sym=`echo '' $word | sed -e 's:^ *-D::' -e 's:=.*::'`
6422 -D*=* ) val=`echo '' $word | sed -e 's:^.*=::'` ;;
6425 if grep "^#define $sym " confdefs.h >/dev/null; then :; else
6426 if test "$val" = "1"
6427 then { test "$extra_verbose" = "yes" && cat << EOF
6430 cat >> confdefs.h <<EOF
6435 else { test "$extra_verbose" = "yes" && cat << EOF
6436 Defining $sym = $val
6438 cat >> confdefs.h <<EOF
6449 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
6450 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
6451 echo "configure:6452: checking for X11/Intrinsic.h" >&5
6453 cat > conftest.$ac_ext <<EOF
6454 #line 6455 "configure"
6455 #include "confdefs.h"
6456 #include <X11/Intrinsic.h>
6458 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6459 { (eval echo configure:6460: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6460 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6461 if test -z "$ac_err"; then
6463 eval "ac_cv_header_$ac_safe=yes"
6466 echo "configure: failed program was:" >&5
6467 cat conftest.$ac_ext >&5
6469 eval "ac_cv_header_$ac_safe=no"
6472 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6473 echo "$ac_t""yes" 1>&6
6476 echo "$ac_t""no" 1>&6
6477 { echo "configure: error: "Unable to find X11 header files."" 1>&2; exit 1; }
6482 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
6483 echo "configure:6484: checking for XOpenDisplay in -lX11" >&5
6484 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
6486 xe_check_libs=" -lX11 "
6487 cat > conftest.$ac_ext <<EOF
6488 #line 6489 "configure"
6489 #include "confdefs.h"
6490 /* Override any gcc2 internal prototype to avoid an error. */
6491 /* We use char because int might match the return type of a gcc2
6492 builtin and then its argument prototype would still apply. */
6493 char XOpenDisplay();
6499 if { (eval echo configure:6500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6501 eval "ac_cv_lib_$ac_lib_var=yes"
6503 echo "configure: failed program was:" >&5
6504 cat conftest.$ac_ext >&5
6506 eval "ac_cv_lib_$ac_lib_var=no"
6511 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6512 echo "$ac_t""yes" 1>&6
6515 echo "$ac_t""no" 1>&6
6519 if test "$have_lib_x11" != "yes"; then
6521 xe_msg_checking="for XGetFontProperty in -lX11"
6522 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout"
6523 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6524 echo "configure:6525: checking "$xe_msg_checking"" >&5
6525 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
6527 xe_check_libs=" -lX11 -b i486-linuxaout"
6528 cat > conftest.$ac_ext <<EOF
6529 #line 6530 "configure"
6530 #include "confdefs.h"
6531 /* Override any gcc2 internal prototype to avoid an error. */
6532 /* We use char because int might match the return type of a gcc2
6533 builtin and then its argument prototype would still apply. */
6534 char XGetFontProperty();
6540 if { (eval echo configure:6541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6542 eval "ac_cv_lib_$ac_lib_var=yes"
6544 echo "configure: failed program was:" >&5
6545 cat conftest.$ac_ext >&5
6547 eval "ac_cv_lib_$ac_lib_var=no"
6552 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6553 echo "$ac_t""yes" 1>&6
6554 ld_switch_x_site="-b i486-linuxaout $ld_switch_x_site"
6556 echo "$ac_t""no" 1>&6
6557 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
6563 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
6566 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
6567 echo "configure:6568: checking for XShapeSelectInput in -lXext" >&5
6568 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
6570 xe_check_libs=" -lXext "
6571 cat > conftest.$ac_ext <<EOF
6572 #line 6573 "configure"
6573 #include "confdefs.h"
6574 /* Override any gcc2 internal prototype to avoid an error. */
6575 /* We use char because int might match the return type of a gcc2
6576 builtin and then its argument prototype would still apply. */
6577 char XShapeSelectInput();
6583 if { (eval echo configure:6584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6585 eval "ac_cv_lib_$ac_lib_var=yes"
6587 echo "configure: failed program was:" >&5
6588 cat conftest.$ac_ext >&5
6590 eval "ac_cv_lib_$ac_lib_var=no"
6595 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6596 echo "$ac_t""yes" 1>&6
6597 libs_x="-lXext $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXext\" to \$libs_x"; fi
6599 echo "$ac_t""no" 1>&6
6605 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6
6606 echo "configure:6607: checking for XtOpenDisplay in -lXt" >&5
6607 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
6609 xe_check_libs=" -lXt "
6610 cat > conftest.$ac_ext <<EOF
6611 #line 6612 "configure"
6612 #include "confdefs.h"
6613 /* Override any gcc2 internal prototype to avoid an error. */
6614 /* We use char because int might match the return type of a gcc2
6615 builtin and then its argument prototype would still apply. */
6616 char XtOpenDisplay();
6622 if { (eval echo configure:6623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6624 eval "ac_cv_lib_$ac_lib_var=yes"
6626 echo "configure: failed program was:" >&5
6627 cat conftest.$ac_ext >&5
6629 eval "ac_cv_lib_$ac_lib_var=no"
6634 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6635 echo "$ac_t""yes" 1>&6
6636 libs_x="-lXt $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXt\" to \$libs_x"; fi
6638 echo "$ac_t""no" 1>&6
6639 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
6644 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6
6645 echo "configure:6646: checking the version of X11 being used" >&5
6646 cat > conftest.$ac_ext <<EOF
6647 #line 6648 "configure"
6648 #include "confdefs.h"
6649 #include <X11/Intrinsic.h>
6650 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; }
6652 if { (eval echo configure:6653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6654 ./conftest foobar; x11_release=$?
6657 echo "configure: failed program was:" >&5
6658 cat conftest.$ac_ext >&5
6663 echo "$ac_t""R${x11_release}" 1>&6
6664 { test "$extra_verbose" = "yes" && cat << EOF
6665 Defining THIS_IS_X11R${x11_release}
6667 cat >> confdefs.h <<EOF
6668 #define THIS_IS_X11R${x11_release} 1
6673 if test "${x11_release}" = "4"; then
6674 case "$with_widgets" in
6675 "" | "no") with_widgets=no ;;
6676 *) { echo "Error:" "Widget support requires X11R5 or greater" >&2; exit 1; } ;;
6680 for ac_func in XConvertCase
6682 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6683 echo "configure:6684: checking for $ac_func" >&5
6685 cat > conftest.$ac_ext <<EOF
6686 #line 6687 "configure"
6687 #include "confdefs.h"
6688 /* System header to define __stub macros and hopefully few prototypes,
6689 which can conflict with char $ac_func(); below. */
6691 /* Override any gcc2 internal prototype to avoid an error. */
6692 /* We use char because int might match the return type of a gcc2
6693 builtin and then its argument prototype would still apply. */
6698 /* The GNU C library defines this for functions which it implements
6699 to always fail with ENOSYS. Some functions are actually named
6700 something starting with __ and the normal name is an alias. */
6701 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6709 if { (eval echo configure:6710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6711 eval "ac_cv_func_$ac_func=yes"
6713 echo "configure: failed program was:" >&5
6714 cat conftest.$ac_ext >&5
6716 eval "ac_cv_func_$ac_func=no"
6720 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6721 echo "$ac_t""yes" 1>&6
6722 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6723 { test "$extra_verbose" = "yes" && cat << EOF
6724 Defining $ac_tr_func
6726 cat >> confdefs.h <<EOF
6727 #define $ac_tr_func 1
6732 echo "$ac_t""no" 1>&6
6737 for ac_hdr in X11/Xlocale.h
6739 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6740 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6741 echo "configure:6742: checking for $ac_hdr" >&5
6743 cat > conftest.$ac_ext <<EOF
6744 #line 6745 "configure"
6745 #include "confdefs.h"
6748 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6749 { (eval echo configure:6750: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6750 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6751 if test -z "$ac_err"; then
6753 eval "ac_cv_header_$ac_safe=yes"
6756 echo "configure: failed program was:" >&5
6757 cat conftest.$ac_ext >&5
6759 eval "ac_cv_header_$ac_safe=no"
6762 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6763 echo "$ac_t""yes" 1>&6
6764 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6765 { test "$extra_verbose" = "yes" && cat << EOF
6768 cat >> confdefs.h <<EOF
6769 #define $ac_tr_hdr 1
6774 echo "$ac_t""no" 1>&6
6779 for ac_func in XRegisterIMInstantiateCallback
6781 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6782 echo "configure:6783: checking for $ac_func" >&5
6784 cat > conftest.$ac_ext <<EOF
6785 #line 6786 "configure"
6786 #include "confdefs.h"
6787 /* System header to define __stub macros and hopefully few prototypes,
6788 which can conflict with char $ac_func(); below. */
6790 /* Override any gcc2 internal prototype to avoid an error. */
6791 /* We use char because int might match the return type of a gcc2
6792 builtin and then its argument prototype would still apply. */
6797 /* The GNU C library defines this for functions which it implements
6798 to always fail with ENOSYS. Some functions are actually named
6799 something starting with __ and the normal name is an alias. */
6800 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6808 if { (eval echo configure:6809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6810 eval "ac_cv_func_$ac_func=yes"
6812 echo "configure: failed program was:" >&5
6813 cat conftest.$ac_ext >&5
6815 eval "ac_cv_func_$ac_func=no"
6819 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6820 echo "$ac_t""yes" 1>&6
6821 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6822 { test "$extra_verbose" = "yes" && cat << EOF
6823 Defining $ac_tr_func
6825 cat >> confdefs.h <<EOF
6826 #define $ac_tr_func 1
6831 echo "$ac_t""no" 1>&6
6835 echo $ac_n "checking for standard XRegisterIMInstantiateCallback prototype""... $ac_c" 1>&6
6836 echo "configure:6837: checking for standard XRegisterIMInstantiateCallback prototype" >&5
6837 cat > conftest.$ac_ext <<EOF
6838 #line 6839 "configure"
6839 #include "confdefs.h"
6841 #define NeedFunctionPrototypes 1
6842 #include <X11/Xlib.h>
6843 extern Bool XRegisterIMInstantiateCallback(
6844 Display*, struct _XrmHashBucketRec*, char*, char*, XIMProc, XPointer*);
6850 if { (eval echo configure:6851: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6852 echo "$ac_t""yes" 1>&6
6854 echo "configure: failed program was:" >&5
6855 cat conftest.$ac_ext >&5
6857 echo "$ac_t""no" 1>&6
6858 { test "$extra_verbose" = "yes" && cat << \EOF
6859 Defining XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE
6861 cat >> confdefs.h <<\EOF
6862 #define XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE 1
6869 test -z "$with_xmu" && {
6870 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6
6871 echo "configure:6872: checking for XmuReadBitmapDataFromFile in -lXmu" >&5
6872 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'`
6874 xe_check_libs=" -lXmu "
6875 cat > conftest.$ac_ext <<EOF
6876 #line 6877 "configure"
6877 #include "confdefs.h"
6878 /* Override any gcc2 internal prototype to avoid an error. */
6879 /* We use char because int might match the return type of a gcc2
6880 builtin and then its argument prototype would still apply. */
6881 char XmuReadBitmapDataFromFile();
6884 XmuReadBitmapDataFromFile()
6887 if { (eval echo configure:6888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6889 eval "ac_cv_lib_$ac_lib_var=yes"
6891 echo "configure: failed program was:" >&5
6892 cat conftest.$ac_ext >&5
6894 eval "ac_cv_lib_$ac_lib_var=no"
6899 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6900 echo "$ac_t""yes" 1>&6
6903 echo "$ac_t""no" 1>&6
6908 if test "$with_xmu" = "no"; then
6909 extra_objs="$extra_objs xmu.o" && if test "$extra_verbose" = "yes"; then
6910 echo " xemacs will be linked with \"xmu.o\""
6913 libs_x="-lXmu $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXmu\" to \$libs_x"; fi
6914 { test "$extra_verbose" = "yes" && cat << \EOF
6917 cat >> confdefs.h <<\EOF
6925 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
6926 echo "configure:6927: checking for main in -lXbsd" >&5
6927 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
6929 xe_check_libs=" -lXbsd "
6930 cat > conftest.$ac_ext <<EOF
6931 #line 6932 "configure"
6932 #include "confdefs.h"
6938 if { (eval echo configure:6939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6940 eval "ac_cv_lib_$ac_lib_var=yes"
6942 echo "configure: failed program was:" >&5
6943 cat conftest.$ac_ext >&5
6945 eval "ac_cv_lib_$ac_lib_var=no"
6950 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6951 echo "$ac_t""yes" 1>&6
6952 libs_x="-lXbsd $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXbsd\" to \$libs_x"; fi
6954 echo "$ac_t""no" 1>&6
6959 if test "$unexec" = "unexaix.o" -a "$x11_release" = "6"; then
6960 if test "$GCC" = "yes"; then
6961 X_CFLAGS="-mthreads $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$X_CFLAGS"; fi
6962 libs_x="-mthreads $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$libs_x"; fi
6965 "xlc" ) CC="xlc_r" ;;
6966 "xlC" ) CC="xlC_r" ;;
6973 if test "$with_msw" != "no"; then
6974 echo "checking for MS-Windows" 1>&6
6975 echo "configure:6976: checking for MS-Windows" >&5
6977 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6
6978 echo "configure:6979: checking for main in -lgdi32" >&5
6979 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'`
6981 xe_check_libs=" -lgdi32 "
6982 cat > conftest.$ac_ext <<EOF
6983 #line 6984 "configure"
6984 #include "confdefs.h"
6990 if { (eval echo configure:6991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6992 eval "ac_cv_lib_$ac_lib_var=yes"
6994 echo "configure: failed program was:" >&5
6995 cat conftest.$ac_ext >&5
6997 eval "ac_cv_lib_$ac_lib_var=no"
7002 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7003 echo "$ac_t""yes" 1>&6
7006 echo "$ac_t""no" 1>&6
7010 if test "$with_msw" = "yes"; then
7011 { test "$extra_verbose" = "yes" && cat << \EOF
7012 Defining HAVE_MS_WINDOWS
7014 cat >> confdefs.h <<\EOF
7015 #define HAVE_MS_WINDOWS 1
7020 if test "$with_netinstall" = "yes"; then
7021 MAKE_SUBDIR="$MAKE_SUBDIR netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$MAKE_SUBDIR"; fi
7022 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$SRC_SUBDIR_DEPS"; fi
7023 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
7026 install_pp="$blddir/lib-src/installexe.sh"
7027 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
7028 test "$with_dragndrop" != no && dragndrop_proto="$dragndrop_proto msw" && if test "$extra_verbose" = "yes"; then echo " Appending \"msw\" to \$dragndrop_proto"; fi
7029 if test "$window_system" != x11; then
7031 test "$with_scrollbars" != "no" && with_scrollbars=msw \
7032 && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
7033 echo " xemacs will be linked with \"scrollbar-msw.o\""
7035 test "$with_menubars" != "no" && with_menubars=msw \
7036 && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
7037 echo " xemacs will be linked with \"menubar-msw.o\""
7039 test "$with_toolbars" != "no" && with_toolbars=msw \
7040 && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
7041 echo " xemacs will be linked with \"toolbar-msw.o\""
7043 test "$with_dialogs" != "no" && with_dialogs=msw \
7044 && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
7045 echo " xemacs will be linked with \"dialog-msw.o\""
7047 test "$with_widgets" != "no" && with_widgets=msw
7049 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
7050 echo " xemacs will be linked with \"scrollbar-msw.o\""
7052 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
7053 echo " xemacs will be linked with \"menubar-msw.o\""
7055 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
7056 echo " xemacs will be linked with \"toolbar-msw.o\""
7058 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
7059 echo " xemacs will be linked with \"dialog-msw.o\""
7062 cat > conftest.$ac_ext <<EOF
7063 #line 7064 "configure"
7064 #include "confdefs.h"
7066 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; }
7068 if { (eval echo configure:7069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
7070 { test "$extra_verbose" = "yes" && cat << \EOF
7071 Defining HAVE_MSG_SELECT
7073 cat >> confdefs.h <<\EOF
7074 #define HAVE_MSG_SELECT 1
7080 echo "configure: failed program was:" >&5
7081 cat conftest.$ac_ext >&5
7084 with_file_coding=yes
7085 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
7086 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\""
7093 test -z "$window_system" && window_system="none"
7095 if test "$window_system" = "none"; then
7096 for feature in menubars scrollbars toolbars dialogs dragndrop xface
7098 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
7099 echo "configure: warning: --with-$feature ignored: Not valid without window system support" 1>&2
7101 eval "with_${feature}=no"
7104 test -z "$with_toolbars" && with_toolbars=yes
7107 if test "$with_msw" != "yes"; then
7108 for feature in MARTIN_IS_CLUELESS_ABOUT_MSW_FEATURES
7110 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
7111 echo "configure: warning: --with-$feature ignored: Not valid without MS-Windows support" 1>&2
7113 eval "with_${feature}=no"
7119 if test "$with_x11" != "yes"; then
7120 for feature in tooltalk cde offix wmcommand xim xmu nas_sound
7122 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
7123 echo "configure: warning: --with-$feature ignored: Not valid without X support" 1>&2
7125 eval "with_${feature}=no"
7129 if test "$with_x11" = "yes"; then
7130 ac_safe=`echo "X11/extensions/shape.h" | sed 'y%./+-%__p_%'`
7131 echo $ac_n "checking for X11/extensions/shape.h""... $ac_c" 1>&6
7132 echo "configure:7133: checking for X11/extensions/shape.h" >&5
7134 cat > conftest.$ac_ext <<EOF
7135 #line 7136 "configure"
7136 #include "confdefs.h"
7137 #include <X11/extensions/shape.h>
7139 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7140 { (eval echo configure:7141: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7141 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7142 if test -z "$ac_err"; then
7144 eval "ac_cv_header_$ac_safe=yes"
7147 echo "configure: failed program was:" >&5
7148 cat conftest.$ac_ext >&5
7150 eval "ac_cv_header_$ac_safe=no"
7153 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7154 echo "$ac_t""yes" 1>&6
7156 { test "$extra_verbose" = "yes" && cat << \EOF
7157 Defining HAVE_BALLOON_HELP
7159 cat >> confdefs.h <<\EOF
7160 #define HAVE_BALLOON_HELP 1
7164 extra_objs="$extra_objs balloon_help.o balloon-x.o" && if test "$extra_verbose" = "yes"; then
7165 echo " xemacs will be linked with \"balloon_help.o balloon-x.o\""
7168 echo "$ac_t""no" 1>&6
7175 case "$window_system" in
7176 x11 ) HAVE_X_WINDOWS=yes; echo " Using X11." ;;
7177 msw ) HAVE_X_WINDOWS=no ; echo " Using MS-Windows." ;;
7180 test "$with_gnome" = "yes" && echo " Using GNOME."
7181 test "$with_gnome" = "no" && echo " Using GTK."
7183 none ) HAVE_X_WINDOWS=no ; echo " Using no window system." ;;
7186 case "$x_libraries" in *X11R4* )
7187 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h"
7188 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h"
7191 echo "checking for WM_COMMAND option" 1>&6
7192 echo "configure:7193: checking for WM_COMMAND option" >&5;
7193 if test "$with_wmcommand" != "no"; then
7194 { test "$extra_verbose" = "yes" && cat << \EOF
7195 Defining HAVE_WMCOMMAND
7197 cat >> confdefs.h <<\EOF
7198 #define HAVE_WMCOMMAND 1
7204 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
7205 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'`
7206 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
7207 echo "configure:7208: checking for X11/Xauth.h" >&5
7209 cat > conftest.$ac_ext <<EOF
7210 #line 7211 "configure"
7211 #include "confdefs.h"
7212 #include <X11/Xauth.h>
7214 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7215 { (eval echo configure:7216: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7216 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7217 if test -z "$ac_err"; then
7219 eval "ac_cv_header_$ac_safe=yes"
7222 echo "configure: failed program was:" >&5
7223 cat conftest.$ac_ext >&5
7225 eval "ac_cv_header_$ac_safe=no"
7228 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7229 echo "$ac_t""yes" 1>&6
7232 echo "$ac_t""no" 1>&6
7236 test -z "$with_xauth" && {
7237 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
7238 echo "configure:7239: checking for XauGetAuthByAddr in -lXau" >&5
7239 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
7241 xe_check_libs=" -lXau "
7242 cat > conftest.$ac_ext <<EOF
7243 #line 7244 "configure"
7244 #include "confdefs.h"
7245 /* Override any gcc2 internal prototype to avoid an error. */
7246 /* We use char because int might match the return type of a gcc2
7247 builtin and then its argument prototype would still apply. */
7248 char XauGetAuthByAddr();
7254 if { (eval echo configure:7255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7256 eval "ac_cv_lib_$ac_lib_var=yes"
7258 echo "configure: failed program was:" >&5
7259 cat conftest.$ac_ext >&5
7261 eval "ac_cv_lib_$ac_lib_var=no"
7266 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7267 echo "$ac_t""yes" 1>&6
7270 echo "$ac_t""no" 1>&6
7275 test -z "$with_xauth" && with_xauth=yes
7276 if test "$with_xauth" = "yes"; then
7277 { test "$extra_verbose" = "yes" && cat << \EOF
7280 cat >> confdefs.h <<\EOF
7281 #define HAVE_XAUTH 1
7287 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
7295 if test "$with_tooltalk" != "no" ; then
7296 for dir in "" "Tt/" "desktop/" ; do
7297 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
7298 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
7299 echo "configure:7300: checking for ${dir}tt_c.h" >&5
7301 cat > conftest.$ac_ext <<EOF
7302 #line 7303 "configure"
7303 #include "confdefs.h"
7304 #include <${dir}tt_c.h>
7306 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7307 { (eval echo configure:7308: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7308 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7309 if test -z "$ac_err"; then
7311 eval "ac_cv_header_$ac_safe=yes"
7314 echo "configure: failed program was:" >&5
7315 cat conftest.$ac_ext >&5
7317 eval "ac_cv_header_$ac_safe=no"
7320 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7321 echo "$ac_t""yes" 1>&6
7322 tt_c_h_file="${dir}tt_c.h"; break
7324 echo "$ac_t""no" 1>&6
7328 if test -z "$tt_c_h_file"; then
7329 if test "$with_tooltalk" = "yes"; then
7330 (echo "$progname: Usage error:"
7331 echo " " "Unable to find required tooltalk header files."
7332 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
7337 if test "$with_tooltalk" != "no" ; then
7338 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
7340 xe_msg_checking="for tt_message_create in -ltt"
7341 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
7342 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7343 echo "configure:7344: checking "$xe_msg_checking"" >&5
7344 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
7346 xe_check_libs=" -ltt $extra_libs"
7347 cat > conftest.$ac_ext <<EOF
7348 #line 7349 "configure"
7349 #include "confdefs.h"
7350 /* Override any gcc2 internal prototype to avoid an error. */
7351 /* We use char because int might match the return type of a gcc2
7352 builtin and then its argument prototype would still apply. */
7353 char tt_message_create();
7359 if { (eval echo configure:7360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7361 eval "ac_cv_lib_$ac_lib_var=yes"
7363 echo "configure: failed program was:" >&5
7364 cat conftest.$ac_ext >&5
7366 eval "ac_cv_lib_$ac_lib_var=no"
7371 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7372 echo "$ac_t""yes" 1>&6
7373 tt_libs="-ltt $extra_libs"; break
7375 echo "$ac_t""no" 1>&6
7381 if test -z "$tt_libs"; then
7382 if test "$with_tooltalk" = "yes"; then
7383 (echo "$progname: Usage error:"
7384 echo " " "Unable to find required tooltalk libraries."
7385 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
7390 test -z "$with_tooltalk" && with_tooltalk=yes
7391 if test "$with_tooltalk" = "yes"; then
7392 { test "$extra_verbose" = "yes" && cat << \EOF
7395 cat >> confdefs.h <<\EOF
7400 { test "$extra_verbose" = "yes" && cat << EOF
7401 Defining TT_C_H_FILE = "$tt_c_h_file"
7403 cat >> confdefs.h <<EOF
7404 #define TT_C_H_FILE "$tt_c_h_file"
7408 libs_x="$tt_libs $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$tt_libs\" to \$libs_x"; fi
7409 extra_objs="$extra_objs tooltalk.o" && if test "$extra_verbose" = "yes"; then
7410 echo " xemacs will be linked with \"tooltalk.o\""
7414 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'`
7415 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
7416 echo "configure:7417: checking for Dt/Dt.h" >&5
7418 cat > conftest.$ac_ext <<EOF
7419 #line 7420 "configure"
7420 #include "confdefs.h"
7423 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7424 { (eval echo configure:7425: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7425 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7426 if test -z "$ac_err"; then
7428 eval "ac_cv_header_$ac_safe=yes"
7431 echo "configure: failed program was:" >&5
7432 cat conftest.$ac_ext >&5
7434 eval "ac_cv_header_$ac_safe=no"
7437 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7438 echo "$ac_t""yes" 1>&6
7441 echo "$ac_t""no" 1>&6
7445 test -z "$with_cde" && {
7446 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
7447 echo "configure:7448: checking for DtDndDragStart in -lDtSvc" >&5
7448 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
7450 xe_check_libs=" -lDtSvc "
7451 cat > conftest.$ac_ext <<EOF
7452 #line 7453 "configure"
7453 #include "confdefs.h"
7454 /* Override any gcc2 internal prototype to avoid an error. */
7455 /* We use char because int might match the return type of a gcc2
7456 builtin and then its argument prototype would still apply. */
7457 char DtDndDragStart();
7463 if { (eval echo configure:7464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7465 eval "ac_cv_lib_$ac_lib_var=yes"
7467 echo "configure: failed program was:" >&5
7468 cat conftest.$ac_ext >&5
7470 eval "ac_cv_lib_$ac_lib_var=no"
7475 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7476 echo "$ac_t""yes" 1>&6
7479 echo "$ac_t""no" 1>&6
7484 test -z "$with_cde" && with_cde=yes
7485 if test "$with_dragndrop" = no; then
7486 echo "configure: warning: No CDE without generic Drag'n'Drop support" 1>&2
7489 if test "$with_cde" = "yes" ; then
7490 { test "$extra_verbose" = "yes" && cat << \EOF
7493 cat >> confdefs.h <<\EOF
7498 libs_x="-lDtSvc $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lDtSvc\" to \$libs_x"; fi
7499 dragndrop_proto="$dragndrop_proto CDE" && if test "$extra_verbose" = "yes"; then echo " Appending \"CDE\" to \$dragndrop_proto"; fi
7500 with_tooltalk=yes # CDE requires Tooltalk
7501 need_motif=yes # CDE requires Motif
7504 test "$window_system" != "x11" && with_offix=no
7505 if test "$with_xmu" != yes -a "$with_x11" = yes; then
7506 echo "configure: warning: No OffiX without real Xmu support" 1>&2
7509 if test "$with_dragndrop" = no; then
7510 echo "configure: warning: No OffiX without generic Drag'n'Drop support" 1>&2
7513 if test "$with_cde" = yes; then
7514 echo "configure: warning: CDE already found, disabling OffiX support" 1>&2
7517 test -z "$with_offix" && with_offix=no
7518 if test "$with_offix" = "yes"; then
7519 { test "$extra_verbose" = "yes" && cat << \EOF
7520 Defining HAVE_OFFIX_DND
7522 cat >> confdefs.h <<\EOF
7523 #define HAVE_OFFIX_DND 1
7527 dnd_objs="$dnd_objs offix.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"offix.o\" to \$dnd_objs"; fi
7528 dragndrop_proto="$dragndrop_proto OffiX" && if test "$extra_verbose" = "yes"; then echo " Appending \"OffiX\" to \$dragndrop_proto"; fi
7530 if test "$with_gtk" = "yes"; then
7531 dragndrop_proto="$dragndrop_proto GTK" && if test "$extra_verbose" = "yes"; then echo " Appending \"GTK\" to \$dragndrop_proto"; fi
7534 if test "$with_dragndrop" != "no" ; then
7535 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6
7536 echo "configure:7537: checking if drag and drop API is needed" >&5
7537 if test -n "$dragndrop_proto" ; then
7539 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6
7540 { test "$extra_verbose" = "yes" && cat << \EOF
7541 Defining HAVE_DRAGNDROP
7543 cat >> confdefs.h <<\EOF
7544 #define HAVE_DRAGNDROP 1
7548 extra_objs="$extra_objs dragdrop.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"dragdrop.o\" to \$extra_objs"; fi
7551 echo "$ac_t""no" 1>&6
7555 echo "checking for LDAP" 1>&6
7556 echo "configure:7557: checking for LDAP" >&5
7557 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'`
7558 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6
7559 echo "configure:7560: checking for ldap.h" >&5
7561 cat > conftest.$ac_ext <<EOF
7562 #line 7563 "configure"
7563 #include "confdefs.h"
7566 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7567 { (eval echo configure:7568: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7568 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7569 if test -z "$ac_err"; then
7571 eval "ac_cv_header_$ac_safe=yes"
7574 echo "configure: failed program was:" >&5
7575 cat conftest.$ac_ext >&5
7577 eval "ac_cv_header_$ac_safe=no"
7580 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7581 echo "$ac_t""yes" 1>&6
7584 echo "$ac_t""no" 1>&6
7588 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'`
7589 echo $ac_n "checking for lber.h""... $ac_c" 1>&6
7590 echo "configure:7591: checking for lber.h" >&5
7592 cat > conftest.$ac_ext <<EOF
7593 #line 7594 "configure"
7594 #include "confdefs.h"
7597 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7598 { (eval echo configure:7599: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7599 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7600 if test -z "$ac_err"; then
7602 eval "ac_cv_header_$ac_safe=yes"
7605 echo "configure: failed program was:" >&5
7606 cat conftest.$ac_ext >&5
7608 eval "ac_cv_header_$ac_safe=no"
7611 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7612 echo "$ac_t""yes" 1>&6
7615 echo "$ac_t""no" 1>&6
7619 if test "$with_ldap" != "no"; then
7621 echo $ac_n "checking for ldap_search in -lldap""... $ac_c" 1>&6
7622 echo "configure:7623: checking for ldap_search in -lldap" >&5
7623 ac_lib_var=`echo ldap'_'ldap_search | sed 'y%./+-%__p_%'`
7625 xe_check_libs=" -lldap "
7626 cat > conftest.$ac_ext <<EOF
7627 #line 7628 "configure"
7628 #include "confdefs.h"
7629 /* Override any gcc2 internal prototype to avoid an error. */
7630 /* We use char because int might match the return type of a gcc2
7631 builtin and then its argument prototype would still apply. */
7638 if { (eval echo configure:7639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7640 eval "ac_cv_lib_$ac_lib_var=yes"
7642 echo "configure: failed program was:" >&5
7643 cat conftest.$ac_ext >&5
7645 eval "ac_cv_lib_$ac_lib_var=no"
7650 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7651 echo "$ac_t""yes" 1>&6
7652 with_ldap_nolber=yes
7654 echo "$ac_t""no" 1>&6
7659 test "$with_ldap_nolber" = "no" && {
7660 xe_msg_checking="for ldap_open in -lldap"
7661 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber"
7662 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7663 echo "configure:7664: checking "$xe_msg_checking"" >&5
7664 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7666 xe_check_libs=" -lldap -llber"
7667 cat > conftest.$ac_ext <<EOF
7668 #line 7669 "configure"
7669 #include "confdefs.h"
7670 /* Override any gcc2 internal prototype to avoid an error. */
7671 /* We use char because int might match the return type of a gcc2
7672 builtin and then its argument prototype would still apply. */
7679 if { (eval echo configure:7680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7681 eval "ac_cv_lib_$ac_lib_var=yes"
7683 echo "configure: failed program was:" >&5
7684 cat conftest.$ac_ext >&5
7686 eval "ac_cv_lib_$ac_lib_var=no"
7691 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7692 echo "$ac_t""yes" 1>&6
7695 echo "$ac_t""no" 1>&6
7700 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" && {
7701 xe_msg_checking="for ldap_open in -lldap"
7702 test -n "-llber -lkrb" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb"
7703 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7704 echo "configure:7705: checking "$xe_msg_checking"" >&5
7705 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7707 xe_check_libs=" -lldap -llber -lkrb"
7708 cat > conftest.$ac_ext <<EOF
7709 #line 7710 "configure"
7710 #include "confdefs.h"
7711 /* Override any gcc2 internal prototype to avoid an error. */
7712 /* We use char because int might match the return type of a gcc2
7713 builtin and then its argument prototype would still apply. */
7720 if { (eval echo configure:7721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7722 eval "ac_cv_lib_$ac_lib_var=yes"
7724 echo "configure: failed program was:" >&5
7725 cat conftest.$ac_ext >&5
7727 eval "ac_cv_lib_$ac_lib_var=no"
7732 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7733 echo "$ac_t""yes" 1>&6
7736 echo "$ac_t""no" 1>&6
7741 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" -a "$with_ldap_krb" = "no" && {
7742 xe_msg_checking="for ldap_open in -lldap"
7743 test -n "-llber -lkrb -ldes" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb -ldes"
7744 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7745 echo "configure:7746: checking "$xe_msg_checking"" >&5
7746 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7748 xe_check_libs=" -lldap -llber -lkrb -ldes"
7749 cat > conftest.$ac_ext <<EOF
7750 #line 7751 "configure"
7751 #include "confdefs.h"
7752 /* Override any gcc2 internal prototype to avoid an error. */
7753 /* We use char because int might match the return type of a gcc2
7754 builtin and then its argument prototype would still apply. */
7761 if { (eval echo configure:7762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7763 eval "ac_cv_lib_$ac_lib_var=yes"
7765 echo "configure: failed program was:" >&5
7766 cat conftest.$ac_ext >&5
7768 eval "ac_cv_lib_$ac_lib_var=no"
7773 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7774 echo "$ac_t""yes" 1>&6
7775 with_ldap_krbdes=yes
7777 echo "$ac_t""no" 1>&6
7782 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
7784 if test "$with_ldap" = "yes"; then
7785 { test "$extra_verbose" = "yes" && cat << \EOF
7788 cat >> confdefs.h <<\EOF
7793 extra_objs="$extra_objs eldap.o" && if test "$extra_verbose" = "yes"; then
7794 echo " xemacs will be linked with \"eldap.o\""
7796 if test "$with_ldap_nolber" = "yes" ; then
7797 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
7799 if test "$with_ldap_krb" = "yes" ; then
7800 LIBS="-lkrb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$LIBS"; fi
7802 if test "$with_ldap_krbdes" = "yes" ; then
7803 LIBS="-ldes $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldes\" to \$LIBS"; fi
7804 LIBS="-lkrb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$LIBS"; fi
7806 LIBS="-llber $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-llber\" to \$LIBS"; fi
7807 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
7809 for ac_func in ldap_set_option ldap_get_lderrno ldap_result2error ldap_parse_result
7811 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7812 echo "configure:7813: checking for $ac_func" >&5
7814 cat > conftest.$ac_ext <<EOF
7815 #line 7816 "configure"
7816 #include "confdefs.h"
7817 /* System header to define __stub macros and hopefully few prototypes,
7818 which can conflict with char $ac_func(); below. */
7820 /* Override any gcc2 internal prototype to avoid an error. */
7821 /* We use char because int might match the return type of a gcc2
7822 builtin and then its argument prototype would still apply. */
7827 /* The GNU C library defines this for functions which it implements
7828 to always fail with ENOSYS. Some functions are actually named
7829 something starting with __ and the normal name is an alias. */
7830 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7838 if { (eval echo configure:7839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7840 eval "ac_cv_func_$ac_func=yes"
7842 echo "configure: failed program was:" >&5
7843 cat conftest.$ac_ext >&5
7845 eval "ac_cv_func_$ac_func=no"
7849 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7850 echo "$ac_t""yes" 1>&6
7851 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7852 { test "$extra_verbose" = "yes" && cat << EOF
7853 Defining $ac_tr_func
7855 cat >> confdefs.h <<EOF
7856 #define $ac_tr_func 1
7861 echo "$ac_t""no" 1>&6
7867 if test "$with_postgresql" != "no"; then
7868 echo "checking for PostgreSQL" 1>&6
7869 echo "configure:7870: checking for PostgreSQL" >&5
7871 for header_dir in "" "pgsql/" "postgresql/"; do
7872 ac_safe=`echo "${header_dir}libpq-fe.h" | sed 'y%./+-%__p_%'`
7873 echo $ac_n "checking for ${header_dir}libpq-fe.h""... $ac_c" 1>&6
7874 echo "configure:7875: checking for ${header_dir}libpq-fe.h" >&5
7876 cat > conftest.$ac_ext <<EOF
7877 #line 7878 "configure"
7878 #include "confdefs.h"
7879 #include <${header_dir}libpq-fe.h>
7881 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7882 { (eval echo configure:7883: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7883 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7884 if test -z "$ac_err"; then
7886 eval "ac_cv_header_$ac_safe=yes"
7889 echo "configure: failed program was:" >&5
7890 cat conftest.$ac_ext >&5
7892 eval "ac_cv_header_$ac_safe=no"
7895 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7896 echo "$ac_t""yes" 1>&6
7897 libpq_fe_h_file=${header_dir}libpq-fe.h; break
7899 echo "$ac_t""no" 1>&6
7904 test -n "$libpq_fe_h_file" && {
7905 echo $ac_n "checking for PQconnectdb in -lpq""... $ac_c" 1>&6
7906 echo "configure:7907: checking for PQconnectdb in -lpq" >&5
7907 ac_lib_var=`echo pq'_'PQconnectdb | sed 'y%./+-%__p_%'`
7909 xe_check_libs=" -lpq "
7910 cat > conftest.$ac_ext <<EOF
7911 #line 7912 "configure"
7912 #include "confdefs.h"
7913 /* Override any gcc2 internal prototype to avoid an error. */
7914 /* We use char because int might match the return type of a gcc2
7915 builtin and then its argument prototype would still apply. */
7922 if { (eval echo configure:7923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7924 eval "ac_cv_lib_$ac_lib_var=yes"
7926 echo "configure: failed program was:" >&5
7927 cat conftest.$ac_ext >&5
7929 eval "ac_cv_lib_$ac_lib_var=no"
7934 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7935 echo "$ac_t""yes" 1>&6
7938 echo "$ac_t""no" 1>&6
7943 if test -n "$libpq_fe_h_file" -a "$have_libpq" = "yes"; then
7945 { test "$extra_verbose" = "yes" && cat << \EOF
7946 Defining HAVE_POSTGRESQL
7948 cat >> confdefs.h <<\EOF
7949 #define HAVE_POSTGRESQL 1
7954 echo $ac_n "checking for PQconnectStart in -lpq""... $ac_c" 1>&6
7955 echo "configure:7956: checking for PQconnectStart in -lpq" >&5
7956 ac_lib_var=`echo pq'_'PQconnectStart | sed 'y%./+-%__p_%'`
7958 xe_check_libs=" -lpq "
7959 cat > conftest.$ac_ext <<EOF
7960 #line 7961 "configure"
7961 #include "confdefs.h"
7962 /* Override any gcc2 internal prototype to avoid an error. */
7963 /* We use char because int might match the return type of a gcc2
7964 builtin and then its argument prototype would still apply. */
7965 char PQconnectStart();
7971 if { (eval echo configure:7972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7973 eval "ac_cv_lib_$ac_lib_var=yes"
7975 echo "configure: failed program was:" >&5
7976 cat conftest.$ac_ext >&5
7978 eval "ac_cv_lib_$ac_lib_var=no"
7983 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7984 echo "$ac_t""yes" 1>&6
7985 with_postgresqlv7=yes;
7986 { test "$extra_verbose" = "yes" && cat << \EOF
7987 Defining HAVE_POSTGRESQLV7
7989 cat >> confdefs.h <<\EOF
7990 #define HAVE_POSTGRESQLV7 1
7995 echo "$ac_t""no" 1>&6
7999 { test "$extra_verbose" = "yes" && cat << EOF
8000 Defining LIBPQ_FE_H_FILE = "$libpq_fe_h_file"
8002 cat >> confdefs.h <<EOF
8003 #define LIBPQ_FE_H_FILE "$libpq_fe_h_file"
8007 LIBS="-lpq $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpq\" to \$LIBS"; fi
8008 extra_objs="$extra_objs postgresql.o" && if test "$extra_verbose" = "yes"; then
8009 echo " xemacs will be linked with \"postgresql.o\""
8011 elif test "$with_postgresql" = "yes"; then
8012 { echo "Error:" "Required PostgreSQL support cannot be provided. Check --site-prefixes." >&2; exit 1; }
8017 if test "$window_system" != "none"; then
8018 echo "checking for graphics libraries" 1>&6
8019 echo "configure:8020: checking for graphics libraries" >&5
8022 if test -z "$with_xpm"; then
8023 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6
8024 echo "configure:8025: checking for Xpm - no older than 3.4f" >&5
8026 cat > conftest.$ac_ext <<EOF
8027 #line 8028 "configure"
8028 #include "confdefs.h"
8030 #include <X11/xpm.h>
8031 int main(int c, char **v) {
8033 XpmIncludeVersion != XpmLibraryVersion() ? 1 :
8034 XpmIncludeVersion < 30406 ? 2 : 0 ;}
8036 if { (eval echo configure:8037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
8038 ./conftest dummy_arg; xpm_status=$?;
8039 if test "$xpm_status" = "0"; then
8043 if test "$xpm_status" = "1"; then
8044 xpm_problem="Xpm library version and header file version don't match!"
8045 elif test "$xpm_status" = "2"; then
8046 xpm_problem="Xpm library version is too old!"
8048 xpm_problem="Internal xpm detection logic error!"
8051 *** WARNING *** $xpm_problem
8052 I'm not touching that with a 10-foot pole!
8053 If you really want to use the installed version of Xpm, rerun
8054 configure and add '--with-xpm=yes', but don't blame me if XEmacs crashes!"
8058 echo "configure: failed program was:" >&5
8059 cat conftest.$ac_ext >&5
8065 echo "$ac_t""$with_xpm" 1>&6
8067 if test "$with_xpm" = "yes"; then
8068 { test "$extra_verbose" = "yes" && cat << \EOF
8071 cat >> confdefs.h <<\EOF
8076 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
8077 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6
8078 echo "configure:8079: checking for \"FOR_MSW\" xpm" >&5
8080 cat > conftest.$ac_ext <<EOF
8081 #line 8082 "configure"
8082 #include "confdefs.h"
8085 XpmCreatePixmapFromData()
8088 if { (eval echo configure:8089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8092 echo "configure: failed program was:" >&5
8093 cat conftest.$ac_ext >&5
8099 echo "$ac_t""$xpm_for_msw" 1>&6
8100 if test "$xpm_for_msw" = "yes"; then
8101 { test "$extra_verbose" = "yes" && cat << \EOF
8104 cat >> confdefs.h <<\EOF
8112 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
8113 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
8114 echo "configure:8115: checking for compface.h" >&5
8116 cat > conftest.$ac_ext <<EOF
8117 #line 8118 "configure"
8118 #include "confdefs.h"
8119 #include <compface.h>
8121 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8122 { (eval echo configure:8123: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8123 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8124 if test -z "$ac_err"; then
8126 eval "ac_cv_header_$ac_safe=yes"
8129 echo "configure: failed program was:" >&5
8130 cat conftest.$ac_ext >&5
8132 eval "ac_cv_header_$ac_safe=no"
8135 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8136 echo "$ac_t""yes" 1>&6
8139 echo "$ac_t""no" 1>&6
8143 test -z "$with_xface" && {
8144 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
8145 echo "configure:8146: checking for UnGenFace in -lcompface" >&5
8146 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
8148 xe_check_libs=" -lcompface "
8149 cat > conftest.$ac_ext <<EOF
8150 #line 8151 "configure"
8151 #include "confdefs.h"
8152 /* Override any gcc2 internal prototype to avoid an error. */
8153 /* We use char because int might match the return type of a gcc2
8154 builtin and then its argument prototype would still apply. */
8161 if { (eval echo configure:8162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8163 eval "ac_cv_lib_$ac_lib_var=yes"
8165 echo "configure: failed program was:" >&5
8166 cat conftest.$ac_ext >&5
8168 eval "ac_cv_lib_$ac_lib_var=no"
8173 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8174 echo "$ac_t""yes" 1>&6
8177 echo "$ac_t""no" 1>&6
8182 test -z "$with_xface" && with_xface=yes
8183 if test "$with_xface" = "yes"; then
8184 { test "$extra_verbose" = "yes" && cat << \EOF
8187 cat >> confdefs.h <<\EOF
8188 #define HAVE_XFACE 1
8192 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi
8195 if test "$with_gif" != "no"; then
8197 { test "$extra_verbose" = "yes" && cat << \EOF
8200 cat >> confdefs.h <<\EOF
8205 extra_objs="$extra_objs dgif_lib.o gif_io.o" && if test "$extra_verbose" = "yes"; then
8206 echo " xemacs will be linked with \"dgif_lib.o gif_io.o\""
8210 if test "$with_png $with_tiff" != "no no"; then
8212 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6
8213 echo "configure:8214: checking for inflate in -lc" >&5
8214 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'`
8216 xe_check_libs=" -lc "
8217 cat > conftest.$ac_ext <<EOF
8218 #line 8219 "configure"
8219 #include "confdefs.h"
8220 /* Override any gcc2 internal prototype to avoid an error. */
8221 /* We use char because int might match the return type of a gcc2
8222 builtin and then its argument prototype would still apply. */
8229 if { (eval echo configure:8230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8231 eval "ac_cv_lib_$ac_lib_var=yes"
8233 echo "configure: failed program was:" >&5
8234 cat conftest.$ac_ext >&5
8236 eval "ac_cv_lib_$ac_lib_var=no"
8241 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8242 echo "$ac_t""yes" 1>&6
8245 echo "$ac_t""no" 1>&6
8247 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
8248 echo "configure:8249: checking for inflate in -lz" >&5
8249 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
8251 xe_check_libs=" -lz "
8252 cat > conftest.$ac_ext <<EOF
8253 #line 8254 "configure"
8254 #include "confdefs.h"
8255 /* Override any gcc2 internal prototype to avoid an error. */
8256 /* We use char because int might match the return type of a gcc2
8257 builtin and then its argument prototype would still apply. */
8264 if { (eval echo configure:8265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8266 eval "ac_cv_lib_$ac_lib_var=yes"
8268 echo "configure: failed program was:" >&5
8269 cat conftest.$ac_ext >&5
8271 eval "ac_cv_lib_$ac_lib_var=no"
8276 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8277 echo "$ac_t""yes" 1>&6
8278 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi
8280 echo "$ac_t""no" 1>&6
8282 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6
8283 echo "configure:8284: checking for inflate in -lgz" >&5
8284 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'`
8286 xe_check_libs=" -lgz "
8287 cat > conftest.$ac_ext <<EOF
8288 #line 8289 "configure"
8289 #include "confdefs.h"
8290 /* Override any gcc2 internal prototype to avoid an error. */
8291 /* We use char because int might match the return type of a gcc2
8292 builtin and then its argument prototype would still apply. */
8299 if { (eval echo configure:8300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8301 eval "ac_cv_lib_$ac_lib_var=yes"
8303 echo "configure: failed program was:" >&5
8304 cat conftest.$ac_ext >&5
8306 eval "ac_cv_lib_$ac_lib_var=no"
8311 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8312 echo "$ac_t""yes" 1>&6
8313 libs_x="-lgz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgz\" to \$libs_x"; fi
8315 echo "$ac_t""no" 1>&6
8327 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
8328 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
8329 echo "configure:8330: checking for jpeglib.h" >&5
8331 cat > conftest.$ac_ext <<EOF
8332 #line 8333 "configure"
8333 #include "confdefs.h"
8334 #include <jpeglib.h>
8336 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8337 { (eval echo configure:8338: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8338 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8339 if test -z "$ac_err"; then
8341 eval "ac_cv_header_$ac_safe=yes"
8344 echo "configure: failed program was:" >&5
8345 cat conftest.$ac_ext >&5
8347 eval "ac_cv_header_$ac_safe=no"
8350 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8351 echo "$ac_t""yes" 1>&6
8354 echo "$ac_t""no" 1>&6
8358 test -z "$with_jpeg" && {
8359 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6
8360 echo "configure:8361: checking for jpeg_destroy_decompress in -ljpeg" >&5
8361 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'`
8363 xe_check_libs=" -ljpeg "
8364 cat > conftest.$ac_ext <<EOF
8365 #line 8366 "configure"
8366 #include "confdefs.h"
8367 /* Override any gcc2 internal prototype to avoid an error. */
8368 /* We use char because int might match the return type of a gcc2
8369 builtin and then its argument prototype would still apply. */
8370 char jpeg_destroy_decompress();
8373 jpeg_destroy_decompress()
8376 if { (eval echo configure:8377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8378 eval "ac_cv_lib_$ac_lib_var=yes"
8380 echo "configure: failed program was:" >&5
8381 cat conftest.$ac_ext >&5
8383 eval "ac_cv_lib_$ac_lib_var=no"
8388 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8389 echo "$ac_t""yes" 1>&6
8392 echo "$ac_t""no" 1>&6
8397 test -z "$with_jpeg" && with_jpeg=yes
8398 if test "$with_jpeg" = "yes"; then
8399 { test "$extra_verbose" = "yes" && cat << \EOF
8402 cat >> confdefs.h <<\EOF
8407 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi
8411 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6
8412 echo "configure:8413: checking for pow" >&5
8414 cat > conftest.$ac_ext <<EOF
8415 #line 8416 "configure"
8416 #include "confdefs.h"
8417 /* System header to define __stub macros and hopefully few prototypes,
8418 which can conflict with char pow(); below. */
8420 /* Override any gcc2 internal prototype to avoid an error. */
8421 /* We use char because int might match the return type of a gcc2
8422 builtin and then its argument prototype would still apply. */
8427 /* The GNU C library defines this for functions which it implements
8428 to always fail with ENOSYS. Some functions are actually named
8429 something starting with __ and the normal name is an alias. */
8430 #if defined (__stub_pow) || defined (__stub___pow)
8438 if { (eval echo configure:8439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8440 eval "ac_cv_func_pow=yes"
8442 echo "configure: failed program was:" >&5
8443 cat conftest.$ac_ext >&5
8445 eval "ac_cv_func_pow=no"
8449 if eval "test \"`echo '$ac_cv_func_'pow`\" = yes"; then
8450 echo "$ac_t""yes" 1>&6
8453 echo "$ac_t""no" 1>&6
8457 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
8458 echo $ac_n "checking for png.h""... $ac_c" 1>&6
8459 echo "configure:8460: checking for png.h" >&5
8461 cat > conftest.$ac_ext <<EOF
8462 #line 8463 "configure"
8463 #include "confdefs.h"
8466 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8467 { (eval echo configure:8468: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8468 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8469 if test -z "$ac_err"; then
8471 eval "ac_cv_header_$ac_safe=yes"
8474 echo "configure: failed program was:" >&5
8475 cat conftest.$ac_ext >&5
8477 eval "ac_cv_header_$ac_safe=no"
8480 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8481 echo "$ac_t""yes" 1>&6
8484 echo "$ac_t""no" 1>&6
8488 test -z "$with_png" && {
8489 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6
8490 echo "configure:8491: checking for png_read_image in -lpng" >&5
8491 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
8493 xe_check_libs=" -lpng "
8494 cat > conftest.$ac_ext <<EOF
8495 #line 8496 "configure"
8496 #include "confdefs.h"
8497 /* Override any gcc2 internal prototype to avoid an error. */
8498 /* We use char because int might match the return type of a gcc2
8499 builtin and then its argument prototype would still apply. */
8500 char png_read_image();
8506 if { (eval echo configure:8507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8508 eval "ac_cv_lib_$ac_lib_var=yes"
8510 echo "configure: failed program was:" >&5
8511 cat conftest.$ac_ext >&5
8513 eval "ac_cv_lib_$ac_lib_var=no"
8518 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8519 echo "$ac_t""yes" 1>&6
8522 echo "$ac_t""no" 1>&6
8527 if test -z "$with_png"; then
8528 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6
8529 echo "configure:8530: checking for workable png version information" >&5
8530 xe_check_libs="-lpng -lz"
8531 cat > conftest.$ac_ext <<EOF
8532 #line 8533 "configure"
8533 #include "confdefs.h"
8535 int main(int c, char **v) {
8536 if (c == 1) return 0;
8537 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1;
8538 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;}
8540 if { (eval echo configure:8541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
8542 ./conftest dummy_arg; png_status=$?;
8543 if test "$png_status" = "0"; then
8547 if test "$png_status" = "1"; then
8548 png_problem="PNG library version and header file don't match!"
8549 elif test "$png_status" = "2"; then
8550 png_problem="PNG library version too old (pre 1.0.2)!"
8553 *** WARNING *** $png_problem
8554 I'm not touching that with a 10-foot pole!
8555 If you really want to use the installed version of libPNG, rerun
8556 configure and add '--with-png=yes', but don't blame me if XEmacs crashes!"
8560 echo "configure: failed program was:" >&5
8561 cat conftest.$ac_ext >&5
8567 echo "$ac_t""$with_png" 1>&6
8569 if test "$with_png" = "yes"; then
8570 { test "$extra_verbose" = "yes" && cat << \EOF
8573 cat >> confdefs.h <<\EOF
8578 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi
8581 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
8582 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
8583 echo "configure:8584: checking for tiffio.h" >&5
8585 cat > conftest.$ac_ext <<EOF
8586 #line 8587 "configure"
8587 #include "confdefs.h"
8590 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8591 { (eval echo configure:8592: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8592 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8593 if test -z "$ac_err"; then
8595 eval "ac_cv_header_$ac_safe=yes"
8598 echo "configure: failed program was:" >&5
8599 cat conftest.$ac_ext >&5
8601 eval "ac_cv_header_$ac_safe=no"
8604 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8605 echo "$ac_t""yes" 1>&6
8608 echo "$ac_t""no" 1>&6
8612 test -z "$with_tiff" && {
8613 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6
8614 echo "configure:8615: checking for TIFFClientOpen in -ltiff" >&5
8615 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'`
8617 xe_check_libs=" -ltiff "
8618 cat > conftest.$ac_ext <<EOF
8619 #line 8620 "configure"
8620 #include "confdefs.h"
8621 /* Override any gcc2 internal prototype to avoid an error. */
8622 /* We use char because int might match the return type of a gcc2
8623 builtin and then its argument prototype would still apply. */
8624 char TIFFClientOpen();
8630 if { (eval echo configure:8631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8632 eval "ac_cv_lib_$ac_lib_var=yes"
8634 echo "configure: failed program was:" >&5
8635 cat conftest.$ac_ext >&5
8637 eval "ac_cv_lib_$ac_lib_var=no"
8642 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8643 echo "$ac_t""yes" 1>&6
8646 echo "$ac_t""no" 1>&6
8651 test -z "$with_tiff" && with_tiff=yes
8652 if test "$with_tiff" = "yes"; then
8653 { test "$extra_verbose" = "yes" && cat << \EOF
8656 cat >> confdefs.h <<\EOF
8661 libs_x="-ltiff $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltiff\" to \$libs_x"; fi
8666 if test "$with_gtk" = "yes"; then
8667 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
8668 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
8669 echo "configure:8670: checking for compface.h" >&5
8671 cat > conftest.$ac_ext <<EOF
8672 #line 8673 "configure"
8673 #include "confdefs.h"
8674 #include <compface.h>
8676 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8677 { (eval echo configure:8678: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8678 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8679 if test -z "$ac_err"; then
8681 eval "ac_cv_header_$ac_safe=yes"
8684 echo "configure: failed program was:" >&5
8685 cat conftest.$ac_ext >&5
8687 eval "ac_cv_header_$ac_safe=no"
8690 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8691 echo "$ac_t""yes" 1>&6
8694 echo "$ac_t""no" 1>&6
8698 test -z "$with_xface" && {
8699 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
8700 echo "configure:8701: checking for UnGenFace in -lcompface" >&5
8701 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
8703 xe_check_libs=" -lcompface "
8704 cat > conftest.$ac_ext <<EOF
8705 #line 8706 "configure"
8706 #include "confdefs.h"
8707 /* Override any gcc2 internal prototype to avoid an error. */
8708 /* We use char because int might match the return type of a gcc2
8709 builtin and then its argument prototype would still apply. */
8716 if { (eval echo configure:8717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8718 eval "ac_cv_lib_$ac_lib_var=yes"
8720 echo "configure: failed program was:" >&5
8721 cat conftest.$ac_ext >&5
8723 eval "ac_cv_lib_$ac_lib_var=no"
8728 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8729 echo "$ac_t""yes" 1>&6
8732 echo "$ac_t""no" 1>&6
8737 test -z "$with_xface" && with_xface=yes
8738 if test "$with_xface" = "yes"; then
8739 { test "$extra_verbose" = "yes" && cat << \EOF
8742 cat >> confdefs.h <<\EOF
8743 #define HAVE_XFACE 1
8747 libs_gtk="-lcompface $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_gtk"; fi
8753 if test "$with_x11" = "yes"; then
8755 echo "checking for X11 graphics libraries" 1>&6
8756 echo "configure:8757: checking for X11 graphics libraries" >&5
8758 echo "checking for the Athena widgets" 1>&6
8759 echo "configure:8760: checking for the Athena widgets" >&5
8761 case "$with_athena" in
8762 "xaw" | "") athena_variant=Xaw athena_3d=no ;;
8763 "3d") athena_variant=Xaw3d athena_3d=yes ;;
8764 "next") athena_variant=neXtaw athena_3d=yes ;;
8765 "95") athena_variant=Xaw95 athena_3d=yes ;;
8766 "xpm") athena_variant=XawXpm athena_3d=yes ;;
8767 *) { echo "Error:" "Unknown Athena widget set \`$with_athena'. This should not happen." >&2; exit 1; } ;;
8770 if test "$athena_3d" = "no"; then
8772 echo $ac_n "checking for XawScrollbarSetThumb in -l$athena_variant""... $ac_c" 1>&6
8773 echo "configure:8774: checking for XawScrollbarSetThumb in -l$athena_variant" >&5
8774 ac_lib_var=`echo $athena_variant'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
8776 xe_check_libs=" -l$athena_variant "
8777 cat > conftest.$ac_ext <<EOF
8778 #line 8779 "configure"
8779 #include "confdefs.h"
8780 /* Override any gcc2 internal prototype to avoid an error. */
8781 /* We use char because int might match the return type of a gcc2
8782 builtin and then its argument prototype would still apply. */
8783 char XawScrollbarSetThumb();
8786 XawScrollbarSetThumb()
8789 if { (eval echo configure:8790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8791 eval "ac_cv_lib_$ac_lib_var=yes"
8793 echo "configure: failed program was:" >&5
8794 cat conftest.$ac_ext >&5
8796 eval "ac_cv_lib_$ac_lib_var=no"
8801 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8802 echo "$ac_t""yes" 1>&6
8804 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
8805 echo "configure:8806: checking for threeDClassRec in -l$athena_variant" >&5
8806 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
8808 xe_check_libs=" -l$athena_variant "
8809 cat > conftest.$ac_ext <<EOF
8810 #line 8811 "configure"
8811 #include "confdefs.h"
8812 /* Override any gcc2 internal prototype to avoid an error. */
8813 /* We use char because int might match the return type of a gcc2
8814 builtin and then its argument prototype would still apply. */
8815 char threeDClassRec();
8821 if { (eval echo configure:8822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8823 eval "ac_cv_lib_$ac_lib_var=yes"
8825 echo "configure: failed program was:" >&5
8826 cat conftest.$ac_ext >&5
8828 eval "ac_cv_lib_$ac_lib_var=no"
8833 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8834 echo "$ac_t""yes" 1>&6
8835 echo "configure: warning: "Could not find a non-3d Athena widget library."" 1>&2
8837 echo "$ac_t""no" 1>&6
8838 athena_lib=$athena_variant
8844 echo "$ac_t""no" 1>&6
8845 echo "configure: warning: "Could not find an Athena widget library."" 1>&2
8851 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
8852 echo "configure:8853: checking for threeDClassRec in -l$athena_variant" >&5
8853 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
8855 xe_check_libs=" -l$athena_variant "
8856 cat > conftest.$ac_ext <<EOF
8857 #line 8858 "configure"
8858 #include "confdefs.h"
8859 /* Override any gcc2 internal prototype to avoid an error. */
8860 /* We use char because int might match the return type of a gcc2
8861 builtin and then its argument prototype would still apply. */
8862 char threeDClassRec();
8868 if { (eval echo configure:8869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8870 eval "ac_cv_lib_$ac_lib_var=yes"
8872 echo "configure: failed program was:" >&5
8873 cat conftest.$ac_ext >&5
8875 eval "ac_cv_lib_$ac_lib_var=no"
8880 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8881 echo "$ac_t""yes" 1>&6
8882 athena_lib=$athena_variant
8884 echo "$ac_t""no" 1>&6
8885 echo $ac_n "checking for threeDClassRec in -lXaw""... $ac_c" 1>&6
8886 echo "configure:8887: checking for threeDClassRec in -lXaw" >&5
8887 ac_lib_var=`echo Xaw'_'threeDClassRec | sed 'y%./+-%__p_%'`
8889 xe_check_libs=" -lXaw "
8890 cat > conftest.$ac_ext <<EOF
8891 #line 8892 "configure"
8892 #include "confdefs.h"
8893 /* Override any gcc2 internal prototype to avoid an error. */
8894 /* We use char because int might match the return type of a gcc2
8895 builtin and then its argument prototype would still apply. */
8896 char threeDClassRec();
8902 if { (eval echo configure:8903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8904 eval "ac_cv_lib_$ac_lib_var=yes"
8906 echo "configure: failed program was:" >&5
8907 cat conftest.$ac_ext >&5
8909 eval "ac_cv_lib_$ac_lib_var=no"
8914 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8915 echo "$ac_t""yes" 1>&6
8917 echo "configure: warning: "Assuming that libXaw is actually $athena_variant."" 1>&2;
8920 echo "$ac_t""no" 1>&6
8921 echo "configure: warning: "Could not find a 3d Athena widget library that looked like $athena_variant."" 1>&2
8930 if test "$athena_3d" = "no"; then
8931 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
8932 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
8933 echo "configure:8934: checking for X11/Xaw/ThreeD.h" >&5
8935 cat > conftest.$ac_ext <<EOF
8936 #line 8937 "configure"
8937 #include "confdefs.h"
8938 #include <X11/Xaw/ThreeD.h>
8940 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8941 { (eval echo configure:8942: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8942 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8943 if test -z "$ac_err"; then
8945 eval "ac_cv_header_$ac_safe=yes"
8948 echo "configure: failed program was:" >&5
8949 cat conftest.$ac_ext >&5
8951 eval "ac_cv_header_$ac_safe=no"
8954 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8955 echo "$ac_t""yes" 1>&6
8956 echo "configure: warning: "Could not find a non-3d Athena header set."" 1>&2
8958 echo "$ac_t""no" 1>&6
8959 ac_safe=`echo "X11/Xaw/XawInit.h" | sed 'y%./+-%__p_%'`
8960 echo $ac_n "checking for X11/Xaw/XawInit.h""... $ac_c" 1>&6
8961 echo "configure:8962: checking for X11/Xaw/XawInit.h" >&5
8963 cat > conftest.$ac_ext <<EOF
8964 #line 8965 "configure"
8965 #include "confdefs.h"
8966 #include <X11/Xaw/XawInit.h>
8968 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8969 { (eval echo configure:8970: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8970 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8971 if test -z "$ac_err"; then
8973 eval "ac_cv_header_$ac_safe=yes"
8976 echo "configure: failed program was:" >&5
8977 cat conftest.$ac_ext >&5
8979 eval "ac_cv_header_$ac_safe=no"
8982 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8983 echo "$ac_t""yes" 1>&6
8984 athena_h_path=X11/Xaw
8986 echo "$ac_t""no" 1>&6
8987 echo "configure: warning: "Could not find a non-3d Athena header set."" 1>&2
8993 ac_safe=`echo "X11/$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
8994 echo $ac_n "checking for X11/$athena_variant/XawInit.h""... $ac_c" 1>&6
8995 echo "configure:8996: checking for X11/$athena_variant/XawInit.h" >&5
8997 cat > conftest.$ac_ext <<EOF
8998 #line 8999 "configure"
8999 #include "confdefs.h"
9000 #include <X11/$athena_variant/XawInit.h>
9002 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9003 { (eval echo configure:9004: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9004 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9005 if test -z "$ac_err"; then
9007 eval "ac_cv_header_$ac_safe=yes"
9010 echo "configure: failed program was:" >&5
9011 cat conftest.$ac_ext >&5
9013 eval "ac_cv_header_$ac_safe=no"
9016 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9017 echo "$ac_t""yes" 1>&6
9018 ac_safe=`echo "X11/$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
9019 echo $ac_n "checking for X11/$athena_variant/ThreeD.h""... $ac_c" 1>&6
9020 echo "configure:9021: checking for X11/$athena_variant/ThreeD.h" >&5
9022 cat > conftest.$ac_ext <<EOF
9023 #line 9024 "configure"
9024 #include "confdefs.h"
9025 #include <X11/$athena_variant/ThreeD.h>
9027 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9028 { (eval echo configure:9029: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9029 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9030 if test -z "$ac_err"; then
9032 eval "ac_cv_header_$ac_safe=yes"
9035 echo "configure: failed program was:" >&5
9036 cat conftest.$ac_ext >&5
9038 eval "ac_cv_header_$ac_safe=no"
9041 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9042 echo "$ac_t""yes" 1>&6
9043 athena_h_path=X11/$athena_variant
9045 echo "$ac_t""no" 1>&6
9049 echo "$ac_t""no" 1>&6
9053 if test -z "$athena_h_path"; then
9054 ac_safe=`echo "$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
9055 echo $ac_n "checking for $athena_variant/XawInit.h""... $ac_c" 1>&6
9056 echo "configure:9057: checking for $athena_variant/XawInit.h" >&5
9058 cat > conftest.$ac_ext <<EOF
9059 #line 9060 "configure"
9060 #include "confdefs.h"
9061 #include <$athena_variant/XawInit.h>
9063 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9064 { (eval echo configure:9065: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9065 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9066 if test -z "$ac_err"; then
9068 eval "ac_cv_header_$ac_safe=yes"
9071 echo "configure: failed program was:" >&5
9072 cat conftest.$ac_ext >&5
9074 eval "ac_cv_header_$ac_safe=no"
9077 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9078 echo "$ac_t""yes" 1>&6
9079 ac_safe=`echo "$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
9080 echo $ac_n "checking for $athena_variant/ThreeD.h""... $ac_c" 1>&6
9081 echo "configure:9082: checking for $athena_variant/ThreeD.h" >&5
9083 cat > conftest.$ac_ext <<EOF
9084 #line 9085 "configure"
9085 #include "confdefs.h"
9086 #include <$athena_variant/ThreeD.h>
9088 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9089 { (eval echo configure:9090: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9090 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9091 if test -z "$ac_err"; then
9093 eval "ac_cv_header_$ac_safe=yes"
9096 echo "configure: failed program was:" >&5
9097 cat conftest.$ac_ext >&5
9099 eval "ac_cv_header_$ac_safe=no"
9102 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9103 echo "$ac_t""yes" 1>&6
9104 athena_h_path=$athena_variant
9106 echo "$ac_t""no" 1>&6
9110 echo "$ac_t""no" 1>&6
9115 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
9116 ac_safe=`echo "X11/Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
9117 echo $ac_n "checking for X11/Xaw3d/XawInit.h""... $ac_c" 1>&6
9118 echo "configure:9119: checking for X11/Xaw3d/XawInit.h" >&5
9120 cat > conftest.$ac_ext <<EOF
9121 #line 9122 "configure"
9122 #include "confdefs.h"
9123 #include <X11/Xaw3d/XawInit.h>
9125 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9126 { (eval echo configure:9127: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9127 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9128 if test -z "$ac_err"; then
9130 eval "ac_cv_header_$ac_safe=yes"
9133 echo "configure: failed program was:" >&5
9134 cat conftest.$ac_ext >&5
9136 eval "ac_cv_header_$ac_safe=no"
9139 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9140 echo "$ac_t""yes" 1>&6
9141 ac_safe=`echo "X11/Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
9142 echo $ac_n "checking for X11/Xaw3d/ThreeD.h""... $ac_c" 1>&6
9143 echo "configure:9144: checking for X11/Xaw3d/ThreeD.h" >&5
9145 cat > conftest.$ac_ext <<EOF
9146 #line 9147 "configure"
9147 #include "confdefs.h"
9148 #include <X11/Xaw3d/ThreeD.h>
9150 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9151 { (eval echo configure:9152: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9152 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9153 if test -z "$ac_err"; then
9155 eval "ac_cv_header_$ac_safe=yes"
9158 echo "configure: failed program was:" >&5
9159 cat conftest.$ac_ext >&5
9161 eval "ac_cv_header_$ac_safe=no"
9164 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9165 echo "$ac_t""yes" 1>&6
9167 echo "configure: warning: "Assuming that X11/Xaw3d headers are suitable for $athena_variant."" 1>&2
9168 athena_h_path=X11/Xaw3d
9171 echo "$ac_t""no" 1>&6
9175 echo "$ac_t""no" 1>&6
9180 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
9181 ac_safe=`echo "Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
9182 echo $ac_n "checking for Xaw3d/XawInit.h""... $ac_c" 1>&6
9183 echo "configure:9184: checking for Xaw3d/XawInit.h" >&5
9185 cat > conftest.$ac_ext <<EOF
9186 #line 9187 "configure"
9187 #include "confdefs.h"
9188 #include <Xaw3d/XawInit.h>
9190 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9191 { (eval echo configure:9192: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9192 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9193 if test -z "$ac_err"; then
9195 eval "ac_cv_header_$ac_safe=yes"
9198 echo "configure: failed program was:" >&5
9199 cat conftest.$ac_ext >&5
9201 eval "ac_cv_header_$ac_safe=no"
9204 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9205 echo "$ac_t""yes" 1>&6
9206 ac_safe=`echo "Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
9207 echo $ac_n "checking for Xaw3d/ThreeD.h""... $ac_c" 1>&6
9208 echo "configure:9209: checking for Xaw3d/ThreeD.h" >&5
9210 cat > conftest.$ac_ext <<EOF
9211 #line 9212 "configure"
9212 #include "confdefs.h"
9213 #include <Xaw3d/ThreeD.h>
9215 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9216 { (eval echo configure:9217: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9217 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9218 if test -z "$ac_err"; then
9220 eval "ac_cv_header_$ac_safe=yes"
9223 echo "configure: failed program was:" >&5
9224 cat conftest.$ac_ext >&5
9226 eval "ac_cv_header_$ac_safe=no"
9229 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9230 echo "$ac_t""yes" 1>&6
9232 echo "configure: warning: "Assuming that Xaw3d headers are suitable for $athena_variant."" 1>&2
9236 echo "$ac_t""no" 1>&6
9240 echo "$ac_t""no" 1>&6
9245 if test -z "$athena_h_path"; then
9246 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
9247 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
9248 echo "configure:9249: checking for X11/Xaw/ThreeD.h" >&5
9250 cat > conftest.$ac_ext <<EOF
9251 #line 9252 "configure"
9252 #include "confdefs.h"
9253 #include <X11/Xaw/ThreeD.h>
9255 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9256 { (eval echo configure:9257: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9257 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9258 if test -z "$ac_err"; then
9260 eval "ac_cv_header_$ac_safe=yes"
9263 echo "configure: failed program was:" >&5
9264 cat conftest.$ac_ext >&5
9266 eval "ac_cv_header_$ac_safe=no"
9269 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9270 echo "$ac_t""yes" 1>&6
9272 echo "configure: warning: "Assuming that X11/Xaw headers are suitable for $athena_variant."" 1>&2
9273 athena_h_path=X11/Xaw
9276 echo "$ac_t""no" 1>&6
9277 echo "configure: warning: "Could not find a suitable 3d Athena header set."" 1>&2
9283 if test -n "$athena_lib" -a -n "$athena_h_path"; then
9289 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
9290 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
9291 echo "configure:9292: checking for Xm/Xm.h" >&5
9293 cat > conftest.$ac_ext <<EOF
9294 #line 9295 "configure"
9295 #include "confdefs.h"
9298 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9299 { (eval echo configure:9300: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9300 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9301 if test -z "$ac_err"; then
9303 eval "ac_cv_header_$ac_safe=yes"
9306 echo "configure: failed program was:" >&5
9307 cat conftest.$ac_ext >&5
9309 eval "ac_cv_header_$ac_safe=no"
9312 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9313 echo "$ac_t""yes" 1>&6
9315 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
9316 echo "configure:9317: checking for XmStringFree in -lXm" >&5
9317 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
9319 xe_check_libs=" -lXm "
9320 cat > conftest.$ac_ext <<EOF
9321 #line 9322 "configure"
9322 #include "confdefs.h"
9323 /* Override any gcc2 internal prototype to avoid an error. */
9324 /* We use char because int might match the return type of a gcc2
9325 builtin and then its argument prototype would still apply. */
9326 char XmStringFree();
9332 if { (eval echo configure:9333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9334 eval "ac_cv_lib_$ac_lib_var=yes"
9336 echo "configure: failed program was:" >&5
9337 cat conftest.$ac_ext >&5
9339 eval "ac_cv_lib_$ac_lib_var=no"
9344 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9345 echo "$ac_t""yes" 1>&6
9348 echo "$ac_t""no" 1>&6
9354 echo "$ac_t""no" 1>&6
9359 if test "$have_motif" = "yes"; then
9360 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6
9361 echo "configure:9362: checking for Lesstif" >&5
9362 cat > conftest.$ac_ext <<EOF
9363 #line 9364 "configure"
9364 #include "confdefs.h"
9366 #ifdef LESSTIF_VERSION
9371 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9372 egrep "yes" >/dev/null 2>&1; then
9381 echo "$ac_t""$have_lesstif" 1>&6
9386 case "$with_menubars" in "" | "yes" | "athena" )
9387 with_menubars="lucid" ;;
9389 case "$with_dialogs" in "" | "yes" | "lucid" )
9390 if test "$have_motif" = "yes"; then with_dialogs="motif"
9391 elif test "$have_xaw" = "yes"; then with_dialogs="athena"
9392 else with_dialogs=no
9395 case "$with_scrollbars" in "" | "yes" )
9396 with_scrollbars="lucid" ;;
9398 case "$with_widgets" in "" | "yes" | "lucid")
9399 if test "$have_motif" = "yes"; then with_widgets="motif"
9400 elif test "$have_xaw" = "yes"; then with_widgets="athena"
9401 else with_widgets=no
9405 all_widgets="$with_menubars $with_scrollbars $with_dialogs $with_toolbars $with_widgets"
9407 case "$all_widgets" in
9409 if test "$have_xaw" != "yes"; then
9410 { echo "Error:" "Could not find a suitable Athena library to build with." >&2; exit 1; }
9413 lwlib_objs="$lwlib_objs lwlib-Xaw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xaw.o\" to \$lwlib_objs"; fi
9415 libs_x="-l$athena_lib $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$athena_lib\" to \$libs_x"; fi
9417 { test "$extra_verbose" = "yes" && cat << EOF
9418 Defining ATHENA_Scrollbar_h_ = "$athena_h_path/Scrollbar.h"
9420 cat >> confdefs.h <<EOF
9421 #define ATHENA_Scrollbar_h_ "$athena_h_path/Scrollbar.h"
9425 { test "$extra_verbose" = "yes" && cat << EOF
9426 Defining ATHENA_Dialog_h_ = "$athena_h_path/Dialog.h"
9428 cat >> confdefs.h <<EOF
9429 #define ATHENA_Dialog_h_ "$athena_h_path/Dialog.h"
9433 { test "$extra_verbose" = "yes" && cat << EOF
9434 Defining ATHENA_Form_h_ = "$athena_h_path/Form.h"
9436 cat >> confdefs.h <<EOF
9437 #define ATHENA_Form_h_ "$athena_h_path/Form.h"
9441 { test "$extra_verbose" = "yes" && cat << EOF
9442 Defining ATHENA_Command_h_ = "$athena_h_path/Command.h"
9444 cat >> confdefs.h <<EOF
9445 #define ATHENA_Command_h_ "$athena_h_path/Command.h"
9449 { test "$extra_verbose" = "yes" && cat << EOF
9450 Defining ATHENA_Label_h_ = "$athena_h_path/Label.h"
9452 cat >> confdefs.h <<EOF
9453 #define ATHENA_Label_h_ "$athena_h_path/Label.h"
9457 { test "$extra_verbose" = "yes" && cat << EOF
9458 Defining ATHENA_LabelP_h_ = "$athena_h_path/LabelP.h"
9460 cat >> confdefs.h <<EOF
9461 #define ATHENA_LabelP_h_ "$athena_h_path/LabelP.h"
9465 { test "$extra_verbose" = "yes" && cat << EOF
9466 Defining ATHENA_Toggle_h_ = "$athena_h_path/Toggle.h"
9468 cat >> confdefs.h <<EOF
9469 #define ATHENA_Toggle_h_ "$athena_h_path/Toggle.h"
9473 { test "$extra_verbose" = "yes" && cat << EOF
9474 Defining ATHENA_ToggleP_h_ = "$athena_h_path/ToggleP.h"
9476 cat >> confdefs.h <<EOF
9477 #define ATHENA_ToggleP_h_ "$athena_h_path/ToggleP.h"
9481 { test "$extra_verbose" = "yes" && cat << EOF
9482 Defining ATHENA_AsciiText_h_ = "$athena_h_path/AsciiText.h"
9484 cat >> confdefs.h <<EOF
9485 #define ATHENA_AsciiText_h_ "$athena_h_path/AsciiText.h"
9489 { test "$extra_verbose" = "yes" && cat << EOF
9490 Defining ATHENA_XawInit_h_ = "$athena_h_path/XawInit.h"
9492 cat >> confdefs.h <<EOF
9493 #define ATHENA_XawInit_h_ "$athena_h_path/XawInit.h"
9498 { test "$extra_verbose" = "yes" && cat << \EOF
9499 Defining LWLIB_USES_ATHENA
9501 cat >> confdefs.h <<\EOF
9502 #define LWLIB_USES_ATHENA 1
9506 { test "$extra_verbose" = "yes" && cat << \EOF
9507 Defining NEED_ATHENA
9509 cat >> confdefs.h <<\EOF
9510 #define NEED_ATHENA 1
9516 if test "$athena_3d" = "yes"; then
9517 { test "$extra_verbose" = "yes" && cat << \EOF
9518 Defining HAVE_ATHENA_3D
9520 cat >> confdefs.h <<\EOF
9521 #define HAVE_ATHENA_3D 1
9529 case "$all_widgets" in *motif* )
9530 { test "$extra_verbose" = "yes" && cat << \EOF
9531 Defining LWLIB_USES_MOTIF
9533 cat >> confdefs.h <<\EOF
9534 #define LWLIB_USES_MOTIF 1
9538 { test "$extra_verbose" = "yes" && cat << \EOF
9541 cat >> confdefs.h <<\EOF
9542 #define NEED_MOTIF 1
9546 lwlib_objs="$lwlib_objs lwlib-Xm.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xm.o\" to \$lwlib_objs"; fi
9550 test "$with_menubars" = "lucid" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
9551 test "$with_menubars" = "motif" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
9552 test "$with_scrollbars" = "lucid" && lwlib_objs="$lwlib_objs xlwscrollbar.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwscrollbar.o\" to \$lwlib_objs"; fi
9553 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
9554 lwlib_objs="$lwlib_objs xlwtabs.o xlwgcs.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwtabs.o xlwgcs.o\" to \$lwlib_objs"; fi
9555 case "$with_widgets" in athena* )
9556 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;;
9558 case "$all_widgets" in *lucid* )
9559 { test "$extra_verbose" = "yes" && cat << \EOF
9562 cat >> confdefs.h <<\EOF
9563 #define NEED_LUCID 1
9567 lwlib_objs="$lwlib_objs lwlib-Xlw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xlw.o\" to \$lwlib_objs"; fi ;;
9572 test "$with_scrollbars" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
9573 Defining LWLIB_SCROLLBARS_ATHENA
9575 cat >> confdefs.h <<\EOF
9576 #define LWLIB_SCROLLBARS_ATHENA 1
9580 test "$with_dialogs" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
9581 Defining LWLIB_DIALOGS_ATHENA
9583 cat >> confdefs.h <<\EOF
9584 #define LWLIB_DIALOGS_ATHENA 1
9589 if test "$athena_3d" = "yes"; then
9590 test "$with_scrollbars" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
9591 Defining LWLIB_SCROLLBARS_ATHENA3D
9593 cat >> confdefs.h <<\EOF
9594 #define LWLIB_SCROLLBARS_ATHENA3D 1
9598 test "$with_dialogs" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
9599 Defining LWLIB_DIALOGS_ATHENA3D
9601 cat >> confdefs.h <<\EOF
9602 #define LWLIB_DIALOGS_ATHENA3D 1
9608 case "$with_widgets" in athena* ) { test "$extra_verbose" = "yes" && cat << \EOF
9609 Defining LWLIB_WIDGETS_ATHENA
9611 cat >> confdefs.h <<\EOF
9612 #define LWLIB_WIDGETS_ATHENA 1
9616 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
9617 { test "$extra_verbose" = "yes" && cat << \EOF
9618 Defining LWLIB_TABS_LUCID
9620 cat >> confdefs.h <<\EOF
9621 #define LWLIB_TABS_LUCID 1
9626 test "$with_menubars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9627 Defining HAVE_MENUBARS
9629 cat >> confdefs.h <<\EOF
9630 #define HAVE_MENUBARS 1
9634 test "$with_scrollbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9635 Defining HAVE_SCROLLBARS
9637 cat >> confdefs.h <<\EOF
9638 #define HAVE_SCROLLBARS 1
9642 test "$with_dialogs" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9643 Defining HAVE_DIALOGS
9645 cat >> confdefs.h <<\EOF
9646 #define HAVE_DIALOGS 1
9650 test "$with_toolbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9651 Defining HAVE_TOOLBARS
9653 cat >> confdefs.h <<\EOF
9654 #define HAVE_TOOLBARS 1
9658 test "$with_widgets" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9659 Defining HAVE_WIDGETS
9661 cat >> confdefs.h <<\EOF
9662 #define HAVE_WIDGETS 1
9667 test "$with_menubars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
9668 Defining LWLIB_MENUBARS_LUCID
9670 cat >> confdefs.h <<\EOF
9671 #define LWLIB_MENUBARS_LUCID 1
9675 test "$with_scrollbars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
9676 Defining LWLIB_SCROLLBARS_LUCID
9678 cat >> confdefs.h <<\EOF
9679 #define LWLIB_SCROLLBARS_LUCID 1
9684 test "$with_menubars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9685 Defining LWLIB_MENUBARS_MOTIF
9687 cat >> confdefs.h <<\EOF
9688 #define LWLIB_MENUBARS_MOTIF 1
9692 test "$with_scrollbars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9693 Defining LWLIB_SCROLLBARS_MOTIF
9695 cat >> confdefs.h <<\EOF
9696 #define LWLIB_SCROLLBARS_MOTIF 1
9700 test "$with_dialogs" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9701 Defining LWLIB_DIALOGS_MOTIF
9703 cat >> confdefs.h <<\EOF
9704 #define LWLIB_DIALOGS_MOTIF 1
9708 test "$with_widgets" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9709 Defining LWLIB_WIDGETS_MOTIF
9711 cat >> confdefs.h <<\EOF
9712 #define LWLIB_WIDGETS_MOTIF 1
9717 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar.o" && if test "$extra_verbose" = "yes"; then
9718 echo " xemacs will be linked with \"menubar.o\""
9720 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar.o" && if test "$extra_verbose" = "yes"; then
9721 echo " xemacs will be linked with \"scrollbar.o\""
9723 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog.o" && if test "$extra_verbose" = "yes"; then
9724 echo " xemacs will be linked with \"dialog.o\""
9726 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar.o" && if test "$extra_verbose" = "yes"; then
9727 echo " xemacs will be linked with \"toolbar.o\""
9730 if test "$with_gtk" = "yes"; then
9731 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-gtk.o" && if test "$extra_verbose" = "yes"; then
9732 echo " xemacs will be linked with \"menubar-gtk.o\""
9734 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-gtk.o" && if test "$extra_verbose" = "yes"; then
9735 echo " xemacs will be linked with \"scrollbar-gtk.o\""
9737 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-gtk.o" && if test "$extra_verbose" = "yes"; then
9738 echo " xemacs will be linked with \"dialog-gtk.o\""
9740 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-gtk.o" && if test "$extra_verbose" = "yes"; then
9741 echo " xemacs will be linked with \"toolbar-gtk.o\""
9743 test "$all_widgets" != "no no no no no" && extra_objs="$extra_objs gui-gtk.o" && if test "$extra_verbose" = "yes"; then
9744 echo " xemacs will be linked with \"gui-gtk.o\""
9748 if test "$with_x11" = "yes"; then
9749 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-x.o" && if test "$extra_verbose" = "yes"; then
9750 echo " xemacs will be linked with \"menubar-x.o\""
9752 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-x.o" && if test "$extra_verbose" = "yes"; then
9753 echo " xemacs will be linked with \"scrollbar-x.o\""
9755 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-x.o" && if test "$extra_verbose" = "yes"; then
9756 echo " xemacs will be linked with \"dialog-x.o\""
9758 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-x.o" && if test "$extra_verbose" = "yes"; then
9759 echo " xemacs will be linked with \"toolbar-x.o\""
9761 test "$all_widgets" != "no no no no no" && extra_objs="$extra_objs gui-x.o" && if test "$extra_verbose" = "yes"; then
9762 echo " xemacs will be linked with \"gui-x.o\""
9767 test -z "$with_mule" && with_mule=no
9768 test -z "$with_file_coding" && with_file_coding=no
9771 if test "$with_file_coding" = "yes" && test "$with_mule" = "no"; then
9772 { test "$extra_verbose" = "yes" && cat << \EOF
9773 Defining FILE_CODING
9775 cat >> confdefs.h <<\EOF
9776 #define FILE_CODING 1
9780 extra_objs="$extra_objs file-coding.o" && if test "$extra_verbose" = "yes"; then
9781 echo " xemacs will be linked with \"file-coding.o\""
9785 if test "$with_mule" = "yes" ; then
9786 echo "checking for Mule-related features" 1>&6
9787 echo "configure:9788: checking for Mule-related features" >&5
9788 { test "$extra_verbose" = "yes" && cat << \EOF
9791 cat >> confdefs.h <<\EOF
9796 { test "$extra_verbose" = "yes" && cat << \EOF
9797 Defining FILE_CODING
9799 cat >> confdefs.h <<\EOF
9800 #define FILE_CODING 1
9804 extra_objs="$extra_objs mule.o mule-ccl.o mule-charset.o" && if test "$extra_verbose" = "yes"; then
9805 echo " xemacs will be linked with \"mule.o mule-ccl.o mule-charset.o\""
9807 if test "$with_utf_2000" = "yes" && test "$with_text_coding" = "yes"; then
9808 { test "$extra_verbose" = "yes" && cat << \EOF
9809 Defining TEXT_CODING
9811 cat >> confdefs.h <<\EOF
9812 #define TEXT_CODING 1
9816 extra_objs="$extra_objs text-coding.o" && if test "$extra_verbose" = "yes"; then
9817 echo " xemacs will be linked with \"text-coding.o\""
9820 extra_objs="$extra_objs file-coding.o" && if test "$extra_verbose" = "yes"; then
9821 echo " xemacs will be linked with \"file-coding.o\""
9824 for ac_hdr in libintl.h
9826 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9827 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9828 echo "configure:9829: checking for $ac_hdr" >&5
9830 cat > conftest.$ac_ext <<EOF
9831 #line 9832 "configure"
9832 #include "confdefs.h"
9835 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9836 { (eval echo configure:9837: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9837 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9838 if test -z "$ac_err"; then
9840 eval "ac_cv_header_$ac_safe=yes"
9843 echo "configure: failed program was:" >&5
9844 cat conftest.$ac_ext >&5
9846 eval "ac_cv_header_$ac_safe=no"
9849 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9850 echo "$ac_t""yes" 1>&6
9851 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9852 { test "$extra_verbose" = "yes" && cat << EOF
9855 cat >> confdefs.h <<EOF
9856 #define $ac_tr_hdr 1
9861 echo "$ac_t""no" 1>&6
9866 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
9867 echo "configure:9868: checking for strerror in -lintl" >&5
9868 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
9870 xe_check_libs=" -lintl "
9871 cat > conftest.$ac_ext <<EOF
9872 #line 9873 "configure"
9873 #include "confdefs.h"
9874 /* Override any gcc2 internal prototype to avoid an error. */
9875 /* We use char because int might match the return type of a gcc2
9876 builtin and then its argument prototype would still apply. */
9883 if { (eval echo configure:9884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9885 eval "ac_cv_lib_$ac_lib_var=yes"
9887 echo "configure: failed program was:" >&5
9888 cat conftest.$ac_ext >&5
9890 eval "ac_cv_lib_$ac_lib_var=no"
9895 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9896 echo "$ac_t""yes" 1>&6
9897 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9898 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9899 { test "$extra_verbose" = "yes" && cat << EOF
9902 cat >> confdefs.h <<EOF
9903 #define $ac_tr_lib 1
9907 LIBS="-lintl $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lintl\" to \$LIBS"; fi
9910 echo "$ac_t""no" 1>&6
9915 if test "$with_utf_2000" = "yes" ; then
9916 { test "$extra_verbose" = "yes" && cat << \EOF
9917 Defining CHAR_IS_UCS4
9919 cat >> confdefs.h <<\EOF
9920 #define CHAR_IS_UCS4 1
9924 { test "$extra_verbose" = "yes" && cat << \EOF
9927 cat >> confdefs.h <<\EOF
9934 echo "checking for Mule input methods" 1>&6
9935 echo "configure:9936: checking for Mule input methods" >&5
9936 case "$with_xim" in "" | "yes" )
9937 echo "checking for XIM" 1>&6
9938 echo "configure:9939: checking for XIM" >&5
9940 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6
9941 echo "configure:9942: checking for XOpenIM in -lX11" >&5
9942 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'`
9944 xe_check_libs=" -lX11 "
9945 cat > conftest.$ac_ext <<EOF
9946 #line 9947 "configure"
9947 #include "confdefs.h"
9948 /* Override any gcc2 internal prototype to avoid an error. */
9949 /* We use char because int might match the return type of a gcc2
9950 builtin and then its argument prototype would still apply. */
9957 if { (eval echo configure:9958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9959 eval "ac_cv_lib_$ac_lib_var=yes"
9961 echo "configure: failed program was:" >&5
9962 cat conftest.$ac_ext >&5
9964 eval "ac_cv_lib_$ac_lib_var=no"
9969 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9970 echo "$ac_t""yes" 1>&6
9973 echo "$ac_t""no" 1>&6
9978 if test "$have_motif $have_lesstif" = "yes no"; then
9980 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
9981 echo "configure:9982: checking for XmImMbLookupString in -lXm" >&5
9982 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
9984 xe_check_libs=" -lXm "
9985 cat > conftest.$ac_ext <<EOF
9986 #line 9987 "configure"
9987 #include "confdefs.h"
9988 /* Override any gcc2 internal prototype to avoid an error. */
9989 /* We use char because int might match the return type of a gcc2
9990 builtin and then its argument prototype would still apply. */
9991 char XmImMbLookupString();
9994 XmImMbLookupString()
9997 if { (eval echo configure:9998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9999 eval "ac_cv_lib_$ac_lib_var=yes"
10001 echo "configure: failed program was:" >&5
10002 cat conftest.$ac_ext >&5
10004 eval "ac_cv_lib_$ac_lib_var=no"
10009 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10010 echo "$ac_t""yes" 1>&6
10013 echo "$ac_t""no" 1>&6
10019 if test "$with_xim" != "no"; then
10020 { test "$extra_verbose" = "yes" && cat << \EOF
10023 cat >> confdefs.h <<\EOF
10028 if test "$with_xim" = "xlib"; then
10029 { test "$extra_verbose" = "yes" && cat << \EOF
10032 cat >> confdefs.h <<\EOF
10037 extra_objs="$extra_objs input-method-xlib.o" && if test "$extra_verbose" = "yes"; then
10038 echo " xemacs will be linked with \"input-method-xlib.o\""
10041 if test "$with_xim" = "motif"; then
10042 { test "$extra_verbose" = "yes" && cat << \EOF
10045 cat >> confdefs.h <<\EOF
10046 #define XIM_MOTIF 1
10051 extra_objs="$extra_objs input-method-motif.o" && if test "$extra_verbose" = "yes"; then
10052 echo " xemacs will be linked with \"input-method-motif.o\""
10055 if test "$with_xim" = "motif"; then
10060 if test "$with_xfs" = "yes" ; then
10061 echo "checking for XFontSet" 1>&6
10062 echo "configure:10063: checking for XFontSet" >&5
10064 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6
10065 echo "configure:10066: checking for XmbDrawString in -lX11" >&5
10066 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
10068 xe_check_libs=" -lX11 "
10069 cat > conftest.$ac_ext <<EOF
10070 #line 10071 "configure"
10071 #include "confdefs.h"
10072 /* Override any gcc2 internal prototype to avoid an error. */
10073 /* We use char because int might match the return type of a gcc2
10074 builtin and then its argument prototype would still apply. */
10075 char XmbDrawString();
10081 if { (eval echo configure:10082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10083 eval "ac_cv_lib_$ac_lib_var=yes"
10085 echo "configure: failed program was:" >&5
10086 cat conftest.$ac_ext >&5
10088 eval "ac_cv_lib_$ac_lib_var=no"
10093 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10094 echo "$ac_t""yes" 1>&6
10097 echo "$ac_t""no" 1>&6
10102 if test "$with_xfs" = "yes" && test "$with_menubars" = "lucid"; then
10103 { test "$extra_verbose" = "yes" && cat << \EOF
10104 Defining USE_XFONTSET
10106 cat >> confdefs.h <<\EOF
10107 #define USE_XFONTSET 1
10111 if test "$with_xim" = "no" ; then
10112 extra_objs="$extra_objs input-method-xlib.o" && if test "$extra_verbose" = "yes"; then
10113 echo " xemacs will be linked with \"input-method-xlib.o\""
10118 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
10119 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
10120 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
10121 echo "configure:10122: checking for wnn/jllib.h" >&5
10123 cat > conftest.$ac_ext <<EOF
10124 #line 10125 "configure"
10125 #include "confdefs.h"
10126 #include <wnn/jllib.h>
10128 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10129 { (eval echo configure:10130: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10130 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10131 if test -z "$ac_err"; then
10133 eval "ac_cv_header_$ac_safe=yes"
10136 echo "configure: failed program was:" >&5
10137 cat conftest.$ac_ext >&5
10139 eval "ac_cv_header_$ac_safe=no"
10142 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10143 echo "$ac_t""yes" 1>&6
10146 echo "$ac_t""no" 1>&6
10150 test -z "$with_wnn" && { ac_safe=`echo "wnn/commonhd.h" | sed 'y%./+-%__p_%'`
10151 echo $ac_n "checking for wnn/commonhd.h""... $ac_c" 1>&6
10152 echo "configure:10153: checking for wnn/commonhd.h" >&5
10154 cat > conftest.$ac_ext <<EOF
10155 #line 10156 "configure"
10156 #include "confdefs.h"
10157 #include <wnn/commonhd.h>
10159 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10160 { (eval echo configure:10161: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10161 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10162 if test -z "$ac_err"; then
10164 eval "ac_cv_header_$ac_safe=yes"
10167 echo "configure: failed program was:" >&5
10168 cat conftest.$ac_ext >&5
10170 eval "ac_cv_header_$ac_safe=no"
10173 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10174 echo "$ac_t""yes" 1>&6
10177 echo "$ac_t""no" 1>&6
10181 if test "$with_wnn" != "no"; then
10182 for ac_func in crypt
10184 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10185 echo "configure:10186: checking for $ac_func" >&5
10187 cat > conftest.$ac_ext <<EOF
10188 #line 10189 "configure"
10189 #include "confdefs.h"
10190 /* System header to define __stub macros and hopefully few prototypes,
10191 which can conflict with char $ac_func(); below. */
10192 #include <assert.h>
10193 /* Override any gcc2 internal prototype to avoid an error. */
10194 /* We use char because int might match the return type of a gcc2
10195 builtin and then its argument prototype would still apply. */
10200 /* The GNU C library defines this for functions which it implements
10201 to always fail with ENOSYS. Some functions are actually named
10202 something starting with __ and the normal name is an alias. */
10203 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10211 if { (eval echo configure:10212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10213 eval "ac_cv_func_$ac_func=yes"
10215 echo "configure: failed program was:" >&5
10216 cat conftest.$ac_ext >&5
10218 eval "ac_cv_func_$ac_func=no"
10222 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10223 echo "$ac_t""yes" 1>&6
10224 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10225 { test "$extra_verbose" = "yes" && cat << EOF
10226 Defining $ac_tr_func
10228 cat >> confdefs.h <<EOF
10229 #define $ac_tr_func 1
10234 echo "$ac_t""no" 1>&6
10238 test "$ac_cv_func_crypt" != "yes" && {
10239 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
10240 echo "configure:10241: checking for crypt in -lcrypt" >&5
10241 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
10243 xe_check_libs=" -lcrypt "
10244 cat > conftest.$ac_ext <<EOF
10245 #line 10246 "configure"
10246 #include "confdefs.h"
10247 /* Override any gcc2 internal prototype to avoid an error. */
10248 /* We use char because int might match the return type of a gcc2
10249 builtin and then its argument prototype would still apply. */
10256 if { (eval echo configure:10257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10258 eval "ac_cv_lib_$ac_lib_var=yes"
10260 echo "configure: failed program was:" >&5
10261 cat conftest.$ac_ext >&5
10263 eval "ac_cv_lib_$ac_lib_var=no"
10268 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10269 echo "$ac_t""yes" 1>&6
10270 ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10271 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10272 { test "$extra_verbose" = "yes" && cat << EOF
10273 Defining $ac_tr_lib
10275 cat >> confdefs.h <<EOF
10276 #define $ac_tr_lib 1
10280 LIBS="-lcrypt $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcrypt\" to \$LIBS"; fi
10283 echo "$ac_t""no" 1>&6
10288 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then
10290 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
10291 echo "configure:10292: checking for jl_dic_list_e in -lwnn" >&5
10292 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
10294 xe_check_libs=" -lwnn "
10295 cat > conftest.$ac_ext <<EOF
10296 #line 10297 "configure"
10297 #include "confdefs.h"
10298 /* Override any gcc2 internal prototype to avoid an error. */
10299 /* We use char because int might match the return type of a gcc2
10300 builtin and then its argument prototype would still apply. */
10301 char jl_dic_list_e();
10307 if { (eval echo configure:10308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10309 eval "ac_cv_lib_$ac_lib_var=yes"
10311 echo "configure: failed program was:" >&5
10312 cat conftest.$ac_ext >&5
10314 eval "ac_cv_lib_$ac_lib_var=no"
10319 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10320 echo "$ac_t""yes" 1>&6
10323 echo "$ac_t""no" 1>&6
10324 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6
10325 echo "configure:10326: checking for jl_dic_list_e in -lwnn4" >&5
10326 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
10328 xe_check_libs=" -lwnn4 "
10329 cat > conftest.$ac_ext <<EOF
10330 #line 10331 "configure"
10331 #include "confdefs.h"
10332 /* Override any gcc2 internal prototype to avoid an error. */
10333 /* We use char because int might match the return type of a gcc2
10334 builtin and then its argument prototype would still apply. */
10335 char jl_dic_list_e();
10341 if { (eval echo configure:10342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10343 eval "ac_cv_lib_$ac_lib_var=yes"
10345 echo "configure: failed program was:" >&5
10346 cat conftest.$ac_ext >&5
10348 eval "ac_cv_lib_$ac_lib_var=no"
10353 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10354 echo "$ac_t""yes" 1>&6
10357 echo "$ac_t""no" 1>&6
10358 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6
10359 echo "configure:10360: checking for jl_dic_list_e in -lwnn6" >&5
10360 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
10362 xe_check_libs=" -lwnn6 "
10363 cat > conftest.$ac_ext <<EOF
10364 #line 10365 "configure"
10365 #include "confdefs.h"
10366 /* Override any gcc2 internal prototype to avoid an error. */
10367 /* We use char because int might match the return type of a gcc2
10368 builtin and then its argument prototype would still apply. */
10369 char jl_dic_list_e();
10375 if { (eval echo configure:10376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10377 eval "ac_cv_lib_$ac_lib_var=yes"
10379 echo "configure: failed program was:" >&5
10380 cat conftest.$ac_ext >&5
10382 eval "ac_cv_lib_$ac_lib_var=no"
10387 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10388 echo "$ac_t""yes" 1>&6
10391 echo "$ac_t""no" 1>&6
10392 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6
10393 echo "configure:10394: checking for dic_list_e in -lwnn6_fromsrc" >&5
10394 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'`
10396 xe_check_libs=" -lwnn6_fromsrc "
10397 cat > conftest.$ac_ext <<EOF
10398 #line 10399 "configure"
10399 #include "confdefs.h"
10400 /* Override any gcc2 internal prototype to avoid an error. */
10401 /* We use char because int might match the return type of a gcc2
10402 builtin and then its argument prototype would still apply. */
10409 if { (eval echo configure:10410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10411 eval "ac_cv_lib_$ac_lib_var=yes"
10413 echo "configure: failed program was:" >&5
10414 cat conftest.$ac_ext >&5
10416 eval "ac_cv_lib_$ac_lib_var=no"
10421 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10422 echo "$ac_t""yes" 1>&6
10423 libwnn=wnn6_fromsrc
10425 echo "$ac_t""no" 1>&6
10440 test -z "$with_wnn" && with_wnn=yes
10441 if test "$with_wnn" = "yes"; then
10442 { test "$extra_verbose" = "yes" && cat << \EOF
10445 cat >> confdefs.h <<\EOF
10450 libs_x="-l$libwnn $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$libwnn\" to \$libs_x"; fi
10451 extra_objs="$extra_objs mule-wnnfns.o" && if test "$extra_verbose" = "yes"; then
10452 echo " xemacs will be linked with \"mule-wnnfns.o\""
10454 if test "$with_wnn6" != "no"; then
10456 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6
10457 echo "configure:10458: checking for jl_fi_dic_list in -l$libwnn" >&5
10458 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
10460 xe_check_libs=" -l$libwnn "
10461 cat > conftest.$ac_ext <<EOF
10462 #line 10463 "configure"
10463 #include "confdefs.h"
10464 /* Override any gcc2 internal prototype to avoid an error. */
10465 /* We use char because int might match the return type of a gcc2
10466 builtin and then its argument prototype would still apply. */
10467 char jl_fi_dic_list();
10473 if { (eval echo configure:10474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10475 eval "ac_cv_lib_$ac_lib_var=yes"
10477 echo "configure: failed program was:" >&5
10478 cat conftest.$ac_ext >&5
10480 eval "ac_cv_lib_$ac_lib_var=no"
10485 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10486 echo "$ac_t""yes" 1>&6
10489 echo "$ac_t""no" 1>&6
10493 test "$with_wnn6" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
10496 cat >> confdefs.h <<\EOF
10504 canna_includes_found=no
10505 if test "$with_canna" != "no"; then
10506 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
10507 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
10508 echo "configure:10509: checking for canna/jrkanji.h" >&5
10510 cat > conftest.$ac_ext <<EOF
10511 #line 10512 "configure"
10512 #include "confdefs.h"
10513 #include <canna/jrkanji.h>
10515 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10516 { (eval echo configure:10517: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10517 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10518 if test -z "$ac_err"; then
10520 eval "ac_cv_header_$ac_safe=yes"
10523 echo "configure: failed program was:" >&5
10524 cat conftest.$ac_ext >&5
10526 eval "ac_cv_header_$ac_safe=no"
10529 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10530 echo "$ac_t""yes" 1>&6
10531 canna_includes_found=yes
10533 echo "$ac_t""no" 1>&6
10537 if test "$canna_includes_found" = "no" -a "$with_canna" != "no" -a \
10538 -d "/usr/local/canna/include"; then
10539 save_c_switch_site="$c_switch_site"
10540 c_switch_site="$c_switch_site -I/usr/local/canna/include"
10541 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
10542 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
10543 echo "configure:10544: checking for canna/jrkanji.h" >&5
10545 cat > conftest.$ac_ext <<EOF
10546 #line 10547 "configure"
10547 #include "confdefs.h"
10548 #include <canna/jrkanji.h>
10550 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10551 { (eval echo configure:10552: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10552 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10553 if test -z "$ac_err"; then
10555 eval "ac_cv_header_$ac_safe=yes"
10558 echo "configure: failed program was:" >&5
10559 cat conftest.$ac_ext >&5
10561 eval "ac_cv_header_$ac_safe=no"
10564 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10565 echo "$ac_t""yes" 1>&6
10566 canna_includes_found=yes
10568 echo "$ac_t""no" 1>&6
10571 if test "$canna_includes_found" != "yes"; then
10572 c_switch_site="$save_c_switch_site"
10577 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
10578 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
10579 echo "configure:10580: checking for canna/RK.h" >&5
10581 cat > conftest.$ac_ext <<EOF
10582 #line 10583 "configure"
10583 #include "confdefs.h"
10584 #include <canna/RK.h>
10586 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10587 { (eval echo configure:10588: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10588 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10589 if test -z "$ac_err"; then
10591 eval "ac_cv_header_$ac_safe=yes"
10594 echo "configure: failed program was:" >&5
10595 cat conftest.$ac_ext >&5
10597 eval "ac_cv_header_$ac_safe=no"
10600 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10601 echo "$ac_t""yes" 1>&6
10604 echo "$ac_t""no" 1>&6
10608 test -z "$with_canna" && {
10609 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
10610 echo "configure:10611: checking for RkBgnBun in -lRKC" >&5
10611 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
10613 xe_check_libs=" -lRKC "
10614 cat > conftest.$ac_ext <<EOF
10615 #line 10616 "configure"
10616 #include "confdefs.h"
10617 /* Override any gcc2 internal prototype to avoid an error. */
10618 /* We use char because int might match the return type of a gcc2
10619 builtin and then its argument prototype would still apply. */
10626 if { (eval echo configure:10627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10628 eval "ac_cv_lib_$ac_lib_var=yes"
10630 echo "configure: failed program was:" >&5
10631 cat conftest.$ac_ext >&5
10633 eval "ac_cv_lib_$ac_lib_var=no"
10638 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10639 echo "$ac_t""yes" 1>&6
10642 echo "$ac_t""no" 1>&6
10647 test -z "$with_canna" && {
10648 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
10649 echo "configure:10650: checking for jrKanjiControl in -lcanna" >&5
10650 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
10652 xe_check_libs=" -lcanna "
10653 cat > conftest.$ac_ext <<EOF
10654 #line 10655 "configure"
10655 #include "confdefs.h"
10656 /* Override any gcc2 internal prototype to avoid an error. */
10657 /* We use char because int might match the return type of a gcc2
10658 builtin and then its argument prototype would still apply. */
10659 char jrKanjiControl();
10665 if { (eval echo configure:10666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10667 eval "ac_cv_lib_$ac_lib_var=yes"
10669 echo "configure: failed program was:" >&5
10670 cat conftest.$ac_ext >&5
10672 eval "ac_cv_lib_$ac_lib_var=no"
10677 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10678 echo "$ac_t""yes" 1>&6
10681 echo "$ac_t""no" 1>&6
10686 test -z "$with_canna" && with_canna=yes
10687 if test "$with_canna" = "yes"; then
10688 { test "$extra_verbose" = "yes" && cat << \EOF
10689 Defining HAVE_CANNA
10691 cat >> confdefs.h <<\EOF
10692 #define HAVE_CANNA 1
10696 libs_x="-lcanna -lRKC $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcanna -lRKC\" to \$libs_x"; fi
10697 extra_objs="$extra_objs mule-canna.o" && if test "$extra_verbose" = "yes"; then
10698 echo " xemacs will be linked with \"mule-canna.o\""
10702 else for feature in xim canna wnn; do
10703 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
10704 echo "configure: warning: "--with-${feature} ignored: Not valid without Mule support"" 1>&2
10706 eval "with_${feature}=no"
10710 if test "$need_motif" = "yes" ; then
10711 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi
10713 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6
10714 echo "configure:10715: checking for layout_object_getvalue in -li18n" >&5
10715 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'`
10717 xe_check_libs=" -li18n "
10718 cat > conftest.$ac_ext <<EOF
10719 #line 10720 "configure"
10720 #include "confdefs.h"
10721 /* Override any gcc2 internal prototype to avoid an error. */
10722 /* We use char because int might match the return type of a gcc2
10723 builtin and then its argument prototype would still apply. */
10724 char layout_object_getvalue();
10727 layout_object_getvalue()
10730 if { (eval echo configure:10731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10732 eval "ac_cv_lib_$ac_lib_var=yes"
10734 echo "configure: failed program was:" >&5
10735 cat conftest.$ac_ext >&5
10737 eval "ac_cv_lib_$ac_lib_var=no"
10742 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10743 echo "$ac_t""yes" 1>&6
10744 libs_x="-li18n $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-li18n\" to \$libs_x"; fi
10746 echo "$ac_t""no" 1>&6
10751 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
10752 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
10753 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
10755 runpath="" runpath_dirs=""
10756 if test -n "$LD_RUN_PATH"; then
10757 runpath="$LD_RUN_PATH"
10758 elif test "$GCC" = "yes"; then
10759 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
10760 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
10761 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
10762 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
10763 case "$arg" in P,* | -L* | -R* )
10764 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
10766 xe_runpath_dir="$dir"
10767 test "$xe_runpath_dir" != "/lib" -a \
10768 "$xe_runpath_dir" != "/usr/lib" -a \
10769 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
10770 eval "$xe_add_unique_runpath_dir"
10775 ld_switch_run="$ld_switch_run_save"
10778 for arg in $ld_switch_site $ld_switch_x_site; do
10779 case "$arg" in -L*) {
10780 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
10781 test "$xe_runpath_dir" != "/lib" -a \
10782 "$xe_runpath_dir" != "/usr/lib" -a \
10783 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
10784 eval "$xe_add_unique_runpath_dir"
10787 if test "$opsys $need_motif" = "sol2 yes"; then
10788 xe_runpath_dir="/opt/SUNWdt/lib";
10789 eval "$xe_add_unique_runpath_dir";
10792 if test -n "$runpath"; then
10793 ld_switch_run="${dash_r}${runpath}"
10795 if test "$GCC" = "yes"; then
10796 set x $ld_switch_run; shift; ld_switch_run=""
10797 while test -n "$1"; do
10799 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
10800 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
10802 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
10807 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
10813 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
10815 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10816 echo "configure:10817: checking for $ac_func" >&5
10818 cat > conftest.$ac_ext <<EOF
10819 #line 10820 "configure"
10820 #include "confdefs.h"
10821 /* System header to define __stub macros and hopefully few prototypes,
10822 which can conflict with char $ac_func(); below. */
10823 #include <assert.h>
10824 /* Override any gcc2 internal prototype to avoid an error. */
10825 /* We use char because int might match the return type of a gcc2
10826 builtin and then its argument prototype would still apply. */
10831 /* The GNU C library defines this for functions which it implements
10832 to always fail with ENOSYS. Some functions are actually named
10833 something starting with __ and the normal name is an alias. */
10834 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10842 if { (eval echo configure:10843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10844 eval "ac_cv_func_$ac_func=yes"
10846 echo "configure: failed program was:" >&5
10847 cat conftest.$ac_ext >&5
10849 eval "ac_cv_func_$ac_func=no"
10853 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10854 echo "$ac_t""yes" 1>&6
10855 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10856 { test "$extra_verbose" = "yes" && cat << EOF
10857 Defining $ac_tr_func
10859 cat >> confdefs.h <<EOF
10860 #define $ac_tr_func 1
10865 echo "$ac_t""no" 1>&6
10871 for ac_func in getpt _getpty grantpt unlockpt ptsname killpg tcgetpgrp
10873 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10874 echo "configure:10875: checking for $ac_func" >&5
10876 cat > conftest.$ac_ext <<EOF
10877 #line 10878 "configure"
10878 #include "confdefs.h"
10879 /* System header to define __stub macros and hopefully few prototypes,
10880 which can conflict with char $ac_func(); below. */
10881 #include <assert.h>
10882 /* Override any gcc2 internal prototype to avoid an error. */
10883 /* We use char because int might match the return type of a gcc2
10884 builtin and then its argument prototype would still apply. */
10889 /* The GNU C library defines this for functions which it implements
10890 to always fail with ENOSYS. Some functions are actually named
10891 something starting with __ and the normal name is an alias. */
10892 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10900 if { (eval echo configure:10901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10902 eval "ac_cv_func_$ac_func=yes"
10904 echo "configure: failed program was:" >&5
10905 cat conftest.$ac_ext >&5
10907 eval "ac_cv_func_$ac_func=no"
10911 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10912 echo "$ac_t""yes" 1>&6
10913 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10914 { test "$extra_verbose" = "yes" && cat << EOF
10915 Defining $ac_tr_func
10917 cat >> confdefs.h <<EOF
10918 #define $ac_tr_func 1
10923 echo "$ac_t""no" 1>&6
10928 echo $ac_n "checking for openpty""... $ac_c" 1>&6
10929 echo "configure:10930: checking for openpty" >&5
10931 cat > conftest.$ac_ext <<EOF
10932 #line 10933 "configure"
10933 #include "confdefs.h"
10934 /* System header to define __stub macros and hopefully few prototypes,
10935 which can conflict with char openpty(); below. */
10936 #include <assert.h>
10937 /* Override any gcc2 internal prototype to avoid an error. */
10938 /* We use char because int might match the return type of a gcc2
10939 builtin and then its argument prototype would still apply. */
10944 /* The GNU C library defines this for functions which it implements
10945 to always fail with ENOSYS. Some functions are actually named
10946 something starting with __ and the normal name is an alias. */
10947 #if defined (__stub_openpty) || defined (__stub___openpty)
10955 if { (eval echo configure:10956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10957 eval "ac_cv_func_openpty=yes"
10959 echo "configure: failed program was:" >&5
10960 cat conftest.$ac_ext >&5
10962 eval "ac_cv_func_openpty=no"
10966 if eval "test \"`echo '$ac_cv_func_'openpty`\" = yes"; then
10967 echo "$ac_t""yes" 1>&6
10970 echo "$ac_t""no" 1>&6
10973 echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6
10974 echo "configure:10975: checking for openpty in -lutil" >&5
10975 ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'`
10977 xe_check_libs=" -lutil "
10978 cat > conftest.$ac_ext <<EOF
10979 #line 10980 "configure"
10980 #include "confdefs.h"
10981 /* Override any gcc2 internal prototype to avoid an error. */
10982 /* We use char because int might match the return type of a gcc2
10983 builtin and then its argument prototype would still apply. */
10990 if { (eval echo configure:10991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10992 eval "ac_cv_lib_$ac_lib_var=yes"
10994 echo "configure: failed program was:" >&5
10995 cat conftest.$ac_ext >&5
10997 eval "ac_cv_lib_$ac_lib_var=no"
11002 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11003 echo "$ac_t""yes" 1>&6
11004 have_openpty=yes need_libutil=yes
11006 echo "$ac_t""no" 1>&6
11012 if test "$have_openpty" = "yes"; then
11013 { test "$extra_verbose" = "yes" && cat << \EOF
11014 Defining HAVE_OPENPTY
11016 cat >> confdefs.h <<\EOF
11017 #define HAVE_OPENPTY 1
11021 for ac_hdr in pty.h libutil.h util.h
11023 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11024 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11025 echo "configure:11026: checking for $ac_hdr" >&5
11027 cat > conftest.$ac_ext <<EOF
11028 #line 11029 "configure"
11029 #include "confdefs.h"
11032 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11033 { (eval echo configure:11034: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11034 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11035 if test -z "$ac_err"; then
11037 eval "ac_cv_header_$ac_safe=yes"
11040 echo "configure: failed program was:" >&5
11041 cat conftest.$ac_ext >&5
11043 eval "ac_cv_header_$ac_safe=no"
11046 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11047 echo "$ac_t""yes" 1>&6
11048 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11049 { test "$extra_verbose" = "yes" && cat << EOF
11050 Defining $ac_tr_hdr
11052 cat >> confdefs.h <<EOF
11053 #define $ac_tr_hdr 1
11058 echo "$ac_t""no" 1>&6
11062 test "$need_libutil" = "yes" && libs_system="$libs_system -lutil" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lutil\" to \$libs_system"; fi
11065 for ac_hdr in stropts.h
11067 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11068 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11069 echo "configure:11070: checking for $ac_hdr" >&5
11071 cat > conftest.$ac_ext <<EOF
11072 #line 11073 "configure"
11073 #include "confdefs.h"
11076 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11077 { (eval echo configure:11078: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11078 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11079 if test -z "$ac_err"; then
11081 eval "ac_cv_header_$ac_safe=yes"
11084 echo "configure: failed program was:" >&5
11085 cat conftest.$ac_ext >&5
11087 eval "ac_cv_header_$ac_safe=no"
11090 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11091 echo "$ac_t""yes" 1>&6
11092 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11093 { test "$extra_verbose" = "yes" && cat << EOF
11094 Defining $ac_tr_hdr
11096 cat >> confdefs.h <<EOF
11097 #define $ac_tr_hdr 1
11102 echo "$ac_t""no" 1>&6
11106 if test "$ac_cv_header_stropts_h" = "yes"; then
11107 for ac_func in isastream
11109 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11110 echo "configure:11111: checking for $ac_func" >&5
11112 cat > conftest.$ac_ext <<EOF
11113 #line 11114 "configure"
11114 #include "confdefs.h"
11115 /* System header to define __stub macros and hopefully few prototypes,
11116 which can conflict with char $ac_func(); below. */
11117 #include <assert.h>
11118 /* Override any gcc2 internal prototype to avoid an error. */
11119 /* We use char because int might match the return type of a gcc2
11120 builtin and then its argument prototype would still apply. */
11125 /* The GNU C library defines this for functions which it implements
11126 to always fail with ENOSYS. Some functions are actually named
11127 something starting with __ and the normal name is an alias. */
11128 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11136 if { (eval echo configure:11137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11138 eval "ac_cv_func_$ac_func=yes"
11140 echo "configure: failed program was:" >&5
11141 cat conftest.$ac_ext >&5
11143 eval "ac_cv_func_$ac_func=no"
11147 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11148 echo "$ac_t""yes" 1>&6
11149 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11150 { test "$extra_verbose" = "yes" && cat << EOF
11151 Defining $ac_tr_func
11153 cat >> confdefs.h <<EOF
11154 #define $ac_tr_func 1
11159 echo "$ac_t""no" 1>&6
11163 for ac_hdr in strtio.h
11165 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11166 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11167 echo "configure:11168: checking for $ac_hdr" >&5
11169 cat > conftest.$ac_ext <<EOF
11170 #line 11171 "configure"
11171 #include "confdefs.h"
11174 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11175 { (eval echo configure:11176: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11176 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11177 if test -z "$ac_err"; then
11179 eval "ac_cv_header_$ac_safe=yes"
11182 echo "configure: failed program was:" >&5
11183 cat conftest.$ac_ext >&5
11185 eval "ac_cv_header_$ac_safe=no"
11188 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11189 echo "$ac_t""yes" 1>&6
11190 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11191 { test "$extra_verbose" = "yes" && cat << EOF
11192 Defining $ac_tr_hdr
11194 cat >> confdefs.h <<EOF
11195 #define $ac_tr_hdr 1
11200 echo "$ac_t""no" 1>&6
11205 extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
11206 echo " xemacs will be linked with \"realpath.o\""
11209 for ac_func in getloadavg
11211 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11212 echo "configure:11213: checking for $ac_func" >&5
11214 cat > conftest.$ac_ext <<EOF
11215 #line 11216 "configure"
11216 #include "confdefs.h"
11217 /* System header to define __stub macros and hopefully few prototypes,
11218 which can conflict with char $ac_func(); below. */
11219 #include <assert.h>
11220 /* Override any gcc2 internal prototype to avoid an error. */
11221 /* We use char because int might match the return type of a gcc2
11222 builtin and then its argument prototype would still apply. */
11227 /* The GNU C library defines this for functions which it implements
11228 to always fail with ENOSYS. Some functions are actually named
11229 something starting with __ and the normal name is an alias. */
11230 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11238 if { (eval echo configure:11239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11240 eval "ac_cv_func_$ac_func=yes"
11242 echo "configure: failed program was:" >&5
11243 cat conftest.$ac_ext >&5
11245 eval "ac_cv_func_$ac_func=no"
11249 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11250 echo "$ac_t""yes" 1>&6
11251 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11252 { test "$extra_verbose" = "yes" && cat << EOF
11253 Defining $ac_tr_func
11255 cat >> confdefs.h <<EOF
11256 #define $ac_tr_func 1
11261 echo "$ac_t""no" 1>&6
11266 if test "$ac_cv_func_getloadavg" = "yes"; then
11267 for ac_hdr in sys/loadavg.h
11269 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11270 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11271 echo "configure:11272: checking for $ac_hdr" >&5
11273 cat > conftest.$ac_ext <<EOF
11274 #line 11275 "configure"
11275 #include "confdefs.h"
11278 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11279 { (eval echo configure:11280: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11280 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11281 if test -z "$ac_err"; then
11283 eval "ac_cv_header_$ac_safe=yes"
11286 echo "configure: failed program was:" >&5
11287 cat conftest.$ac_ext >&5
11289 eval "ac_cv_header_$ac_safe=no"
11292 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11293 echo "$ac_t""yes" 1>&6
11294 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11295 { test "$extra_verbose" = "yes" && cat << EOF
11296 Defining $ac_tr_hdr
11298 cat >> confdefs.h <<EOF
11299 #define $ac_tr_hdr 1
11304 echo "$ac_t""no" 1>&6
11309 extra_objs="$extra_objs getloadavg.o" && if test "$extra_verbose" = "yes"; then
11310 echo " xemacs will be linked with \"getloadavg.o\""
11314 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
11315 echo "configure:11316: checking for kstat_open in -lkstat" >&5
11316 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
11318 xe_check_libs=" -lkstat "
11319 cat > conftest.$ac_ext <<EOF
11320 #line 11321 "configure"
11321 #include "confdefs.h"
11322 /* Override any gcc2 internal prototype to avoid an error. */
11323 /* We use char because int might match the return type of a gcc2
11324 builtin and then its argument prototype would still apply. */
11331 if { (eval echo configure:11332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11333 eval "ac_cv_lib_$ac_lib_var=yes"
11335 echo "configure: failed program was:" >&5
11336 cat conftest.$ac_ext >&5
11338 eval "ac_cv_lib_$ac_lib_var=no"
11343 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11344 echo "$ac_t""yes" 1>&6
11345 ac_tr_lib=HAVE_LIB`echo kstat | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11346 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11347 { test "$extra_verbose" = "yes" && cat << EOF
11348 Defining $ac_tr_lib
11350 cat >> confdefs.h <<EOF
11351 #define $ac_tr_lib 1
11355 LIBS="-lkstat $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkstat\" to \$LIBS"; fi
11358 echo "$ac_t""no" 1>&6
11362 for ac_hdr in kstat.h
11364 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11365 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11366 echo "configure:11367: checking for $ac_hdr" >&5
11368 cat > conftest.$ac_ext <<EOF
11369 #line 11370 "configure"
11370 #include "confdefs.h"
11373 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11374 { (eval echo configure:11375: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11375 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11376 if test -z "$ac_err"; then
11378 eval "ac_cv_header_$ac_safe=yes"
11381 echo "configure: failed program was:" >&5
11382 cat conftest.$ac_ext >&5
11384 eval "ac_cv_header_$ac_safe=no"
11387 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11388 echo "$ac_t""yes" 1>&6
11389 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11390 { test "$extra_verbose" = "yes" && cat << EOF
11391 Defining $ac_tr_hdr
11393 cat >> confdefs.h <<EOF
11394 #define $ac_tr_hdr 1
11399 echo "$ac_t""no" 1>&6
11405 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
11406 echo "configure:11407: checking for kvm_read in -lkvm" >&5
11407 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
11409 xe_check_libs=" -lkvm "
11410 cat > conftest.$ac_ext <<EOF
11411 #line 11412 "configure"
11412 #include "confdefs.h"
11413 /* Override any gcc2 internal prototype to avoid an error. */
11414 /* We use char because int might match the return type of a gcc2
11415 builtin and then its argument prototype would still apply. */
11422 if { (eval echo configure:11423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11424 eval "ac_cv_lib_$ac_lib_var=yes"
11426 echo "configure: failed program was:" >&5
11427 cat conftest.$ac_ext >&5
11429 eval "ac_cv_lib_$ac_lib_var=no"
11434 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11435 echo "$ac_t""yes" 1>&6
11436 ac_tr_lib=HAVE_LIB`echo kvm | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11437 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11438 { test "$extra_verbose" = "yes" && cat << EOF
11439 Defining $ac_tr_lib
11441 cat >> confdefs.h <<EOF
11442 #define $ac_tr_lib 1
11446 LIBS="-lkvm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkvm\" to \$LIBS"; fi
11449 echo "$ac_t""no" 1>&6
11455 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
11456 echo "configure:11457: checking whether netdb declares h_errno" >&5
11457 cat > conftest.$ac_ext <<EOF
11458 #line 11459 "configure"
11459 #include "confdefs.h"
11465 if { (eval echo configure:11466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11467 echo "$ac_t""yes" 1>&6
11468 { test "$extra_verbose" = "yes" && cat << \EOF
11469 Defining HAVE_H_ERRNO
11471 cat >> confdefs.h <<\EOF
11472 #define HAVE_H_ERRNO 1
11477 echo "configure: failed program was:" >&5
11478 cat conftest.$ac_ext >&5
11480 echo "$ac_t""no" 1>&6
11484 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
11485 echo "configure:11486: checking for sigsetjmp" >&5
11486 cat > conftest.$ac_ext <<EOF
11487 #line 11488 "configure"
11488 #include "confdefs.h"
11489 #include <setjmp.h>
11491 sigjmp_buf bar; sigsetjmp (bar, 0);
11494 if { (eval echo configure:11495: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11496 echo "$ac_t""yes" 1>&6
11497 { test "$extra_verbose" = "yes" && cat << \EOF
11498 Defining HAVE_SIGSETJMP
11500 cat >> confdefs.h <<\EOF
11501 #define HAVE_SIGSETJMP 1
11506 echo "configure: failed program was:" >&5
11507 cat conftest.$ac_ext >&5
11509 echo "$ac_t""no" 1>&6
11513 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
11514 echo "configure:11515: checking whether localtime caches TZ" >&5
11516 if test "$ac_cv_func_tzset" = "yes"; then
11517 cat > conftest.$ac_ext <<EOF
11518 #line 11519 "configure"
11519 #include "confdefs.h"
11522 # include <stdlib.h>
11524 extern char **environ;
11528 for (to = from = environ; (*to = *from); from++)
11529 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
11532 char TZ_GMT0[] = "TZ=GMT0";
11533 char TZ_PST8[] = "TZ=PST8";
11536 time_t now = time ((time_t *) 0);
11537 int hour_GMT0, hour_unset;
11538 if (putenv (TZ_GMT0) != 0)
11540 hour_GMT0 = localtime (&now)->tm_hour;
11542 hour_unset = localtime (&now)->tm_hour;
11543 if (putenv (TZ_PST8) != 0)
11545 if (localtime (&now)->tm_hour == hour_GMT0)
11548 if (localtime (&now)->tm_hour != hour_unset)
11553 if { (eval echo configure:11554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11555 emacs_cv_localtime_cache=no
11558 echo "configure: failed program was:" >&5
11559 cat conftest.$ac_ext >&5
11561 emacs_cv_localtime_cache=yes
11565 # If we lack tzset, report that localtime does not cache TZ,
11566 # since we can't invalidate the cache if we don't have tzset.
11567 emacs_cv_localtime_cache=no
11569 echo "$ac_t""$emacs_cv_localtime_cache" 1>&6
11570 if test $emacs_cv_localtime_cache = yes; then
11571 { test "$extra_verbose" = "yes" && cat << \EOF
11572 Defining LOCALTIME_CACHE
11574 cat >> confdefs.h <<\EOF
11575 #define LOCALTIME_CACHE 1
11581 if test "$HAVE_TIMEVAL" = "yes"; then
11582 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6
11583 echo "configure:11584: checking whether gettimeofday accepts one or two arguments" >&5
11584 cat > conftest.$ac_ext <<EOF
11585 #line 11586 "configure"
11586 #include "confdefs.h"
11588 #ifdef TIME_WITH_SYS_TIME
11589 #include <sys/time.h>
11592 #ifdef HAVE_SYS_TIME_H
11593 #include <sys/time.h>
11601 struct timeval time;
11602 gettimeofday (&time, 0);
11606 if { (eval echo configure:11607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11608 echo "$ac_t""two" 1>&6
11610 echo "configure: failed program was:" >&5
11611 cat conftest.$ac_ext >&5
11613 echo "$ac_t""one" 1>&6
11614 { test "$extra_verbose" = "yes" && cat << \EOF
11615 Defining GETTIMEOFDAY_ONE_ARGUMENT
11617 cat >> confdefs.h <<\EOF
11618 #define GETTIMEOFDAY_ONE_ARGUMENT 1
11627 echo $ac_n "checking for inline""... $ac_c" 1>&6
11628 echo "configure:11629: checking for inline" >&5
11631 for ac_kw in inline __inline__ __inline; do
11632 cat > conftest.$ac_ext <<EOF
11633 #line 11634 "configure"
11634 #include "confdefs.h"
11640 if { (eval echo configure:11641: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11642 ac_cv_c_inline=$ac_kw; break
11644 echo "configure: failed program was:" >&5
11645 cat conftest.$ac_ext >&5
11651 echo "$ac_t""$ac_cv_c_inline" 1>&6
11652 case "$ac_cv_c_inline" in
11654 no) { test "$extra_verbose" = "yes" && cat << \EOF
11657 cat >> confdefs.h <<\EOF
11662 *) { test "$extra_verbose" = "yes" && cat << EOF
11663 Defining inline = $ac_cv_c_inline
11665 cat >> confdefs.h <<EOF
11666 #define inline $ac_cv_c_inline
11672 test "$ac_cv_c_inline" != "no" -a "$GCC" = "yes" && extra_objs="$extra_objs inline.o" && if test "$extra_verbose" = "yes"; then
11673 echo " xemacs will be linked with \"inline.o\""
11677 if test "$__DECC" != "yes"; then
11678 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11679 # for constant arguments. Useless!
11680 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
11681 echo "configure:11682: checking for working alloca.h" >&5
11683 cat > conftest.$ac_ext <<EOF
11684 #line 11685 "configure"
11685 #include "confdefs.h"
11686 #include <alloca.h>
11688 char *p = alloca(2 * sizeof(int));
11691 if { (eval echo configure:11692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11693 ac_cv_header_alloca_h=yes
11695 echo "configure: failed program was:" >&5
11696 cat conftest.$ac_ext >&5
11698 ac_cv_header_alloca_h=no
11702 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
11703 if test $ac_cv_header_alloca_h = yes; then
11704 { test "$extra_verbose" = "yes" && cat << \EOF
11705 Defining HAVE_ALLOCA_H
11707 cat >> confdefs.h <<\EOF
11708 #define HAVE_ALLOCA_H 1
11714 echo $ac_n "checking for alloca""... $ac_c" 1>&6
11715 echo "configure:11716: checking for alloca" >&5
11717 cat > conftest.$ac_ext <<EOF
11718 #line 11719 "configure"
11719 #include "confdefs.h"
11722 # define alloca __builtin_alloca
11725 # include <malloc.h>
11726 # define alloca _alloca
11729 # include <alloca.h>
11734 # ifndef alloca /* predefined by HP cc +Olibcalls */
11743 char *p = (char *) alloca(1);
11746 if { (eval echo configure:11747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11748 ac_cv_func_alloca_works=yes
11750 echo "configure: failed program was:" >&5
11751 cat conftest.$ac_ext >&5
11753 ac_cv_func_alloca_works=no
11757 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
11758 if test $ac_cv_func_alloca_works = yes; then
11759 { test "$extra_verbose" = "yes" && cat << \EOF
11760 Defining HAVE_ALLOCA
11762 cat >> confdefs.h <<\EOF
11763 #define HAVE_ALLOCA 1
11769 if test $ac_cv_func_alloca_works = no; then
11770 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11771 # that cause trouble. Some versions do not even contain alloca or
11772 # contain a buggy version. If you still want to use their alloca,
11773 # use ar to extract alloca.o from them instead of compiling alloca.c.
11774 ALLOCA=alloca.${ac_objext}
11775 { test "$extra_verbose" = "yes" && cat << \EOF
11778 cat >> confdefs.h <<\EOF
11784 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
11785 echo "configure:11786: checking whether alloca needs Cray hooks" >&5
11787 cat > conftest.$ac_ext <<EOF
11788 #line 11789 "configure"
11789 #include "confdefs.h"
11790 #if defined(CRAY) && ! defined(CRAY2)
11797 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11798 egrep "webecray" >/dev/null 2>&1; then
11808 echo "$ac_t""$ac_cv_os_cray" 1>&6
11809 if test $ac_cv_os_cray = yes; then
11810 for ac_func in _getb67 GETB67 getb67; do
11811 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11812 echo "configure:11813: checking for $ac_func" >&5
11814 cat > conftest.$ac_ext <<EOF
11815 #line 11816 "configure"
11816 #include "confdefs.h"
11817 /* System header to define __stub macros and hopefully few prototypes,
11818 which can conflict with char $ac_func(); below. */
11819 #include <assert.h>
11820 /* Override any gcc2 internal prototype to avoid an error. */
11821 /* We use char because int might match the return type of a gcc2
11822 builtin and then its argument prototype would still apply. */
11827 /* The GNU C library defines this for functions which it implements
11828 to always fail with ENOSYS. Some functions are actually named
11829 something starting with __ and the normal name is an alias. */
11830 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11838 if { (eval echo configure:11839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11840 eval "ac_cv_func_$ac_func=yes"
11842 echo "configure: failed program was:" >&5
11843 cat conftest.$ac_ext >&5
11845 eval "ac_cv_func_$ac_func=no"
11849 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11850 echo "$ac_t""yes" 1>&6
11851 { test "$extra_verbose" = "yes" && cat << EOF
11852 Defining CRAY_STACKSEG_END = $ac_func
11854 cat >> confdefs.h <<EOF
11855 #define CRAY_STACKSEG_END $ac_func
11861 echo "$ac_t""no" 1>&6
11867 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
11868 echo "configure:11869: checking stack direction for C alloca" >&5
11870 cat > conftest.$ac_ext <<EOF
11871 #line 11872 "configure"
11872 #include "confdefs.h"
11873 find_stack_direction ()
11875 static char *addr = 0;
11880 return find_stack_direction ();
11883 return (&dummy > addr) ? 1 : -1;
11887 exit (find_stack_direction() < 0);
11890 if { (eval echo configure:11891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11892 ac_cv_c_stack_direction=1
11895 echo "configure: failed program was:" >&5
11896 cat conftest.$ac_ext >&5
11898 ac_cv_c_stack_direction=-1
11902 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
11903 { test "$extra_verbose" = "yes" && cat << EOF
11904 Defining STACK_DIRECTION = $ac_cv_c_stack_direction
11906 cat >> confdefs.h <<EOF
11907 #define STACK_DIRECTION $ac_cv_c_stack_direction
11913 test -n "$ALLOCA" && extra_objs="$extra_objs $ALLOCA" && if test "$extra_verbose" = "yes"; then
11914 echo " xemacs will be linked with \"$ALLOCA\""
11918 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
11919 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
11920 echo "configure:11921: checking for vfork.h" >&5
11922 cat > conftest.$ac_ext <<EOF
11923 #line 11924 "configure"
11924 #include "confdefs.h"
11927 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11928 { (eval echo configure:11929: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11929 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11930 if test -z "$ac_err"; then
11932 eval "ac_cv_header_$ac_safe=yes"
11935 echo "configure: failed program was:" >&5
11936 cat conftest.$ac_ext >&5
11938 eval "ac_cv_header_$ac_safe=no"
11941 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11942 echo "$ac_t""yes" 1>&6
11943 { test "$extra_verbose" = "yes" && cat << \EOF
11944 Defining HAVE_VFORK_H
11946 cat >> confdefs.h <<\EOF
11947 #define HAVE_VFORK_H 1
11952 echo "$ac_t""no" 1>&6
11955 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
11956 echo "configure:11957: checking for working vfork" >&5
11958 cat > conftest.$ac_ext <<EOF
11959 #line 11960 "configure"
11960 #include "confdefs.h"
11961 /* Thanks to Paul Eggert for this test. */
11963 #include <sys/types.h>
11964 #include <sys/stat.h>
11965 #ifdef HAVE_UNISTD_H
11966 #include <unistd.h>
11968 #ifdef HAVE_VFORK_H
11971 /* On some sparc systems, changes by the child to local and incoming
11972 argument registers are propagated back to the parent.
11973 The compiler is told about this with #include <vfork.h>,
11974 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
11975 Test for this by using a static variable whose address
11976 is put into a register that is clobbered by the vfork. */
11979 sparc_address_test (int arg)
11981 sparc_address_test (arg) int arg;
11984 static pid_t child;
11999 pid_t parent = getpid ();
12002 sparc_address_test ();
12007 /* Here is another test for sparc vfork register problems.
12008 This test uses lots of local variables, at least
12009 as many local variables as main has allocated so far
12010 including compiler temporaries. 4 locals are enough for
12011 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
12012 A buggy compiler should reuse the register of parent
12013 for one of the local variables, since it will think that
12014 parent can't possibly be used any more in this routine.
12015 Assigning to the local variable will thus munge parent
12016 in the parent process. */
12018 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12019 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12020 /* Convince the compiler that p..p7 are live; otherwise, it might
12021 use the same hardware register for all 8 local variables. */
12022 if (p != p1 || p != p2 || p != p3 || p != p4
12023 || p != p5 || p != p6 || p != p7)
12026 /* On some systems (e.g. IRIX 3.3),
12027 vfork doesn't separate parent from child file descriptors.
12028 If the child closes a descriptor before it execs or exits,
12029 this munges the parent's descriptor as well.
12030 Test for this by closing stdout in the child. */
12031 _exit(close(fileno(stdout)) != 0);
12036 while (wait(&status) != child)
12039 /* Was there some problem with vforking? */
12042 /* Did the child fail? (This shouldn't happen.) */
12045 /* Did the vfork/compiler bug occur? */
12046 || parent != getpid()
12048 /* Did the file descriptor bug occur? */
12049 || fstat(fileno(stdout), &st) != 0
12054 if { (eval echo configure:12055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12056 ac_cv_func_vfork_works=yes
12059 echo "configure: failed program was:" >&5
12060 cat conftest.$ac_ext >&5
12062 ac_cv_func_vfork_works=no
12066 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
12067 if test $ac_cv_func_vfork_works = no; then
12068 { test "$extra_verbose" = "yes" && cat << \EOF
12069 Defining vfork = fork
12071 cat >> confdefs.h <<\EOF
12079 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
12080 echo "configure:12081: checking for working strcoll" >&5
12082 cat > conftest.$ac_ext <<EOF
12083 #line 12084 "configure"
12084 #include "confdefs.h"
12085 #include <string.h>
12088 exit (strcoll ("abc", "def") >= 0 ||
12089 strcoll ("ABC", "DEF") >= 0 ||
12090 strcoll ("123", "456") >= 0);
12093 if { (eval echo configure:12094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12095 ac_cv_func_strcoll_works=yes
12098 echo "configure: failed program was:" >&5
12099 cat conftest.$ac_ext >&5
12101 ac_cv_func_strcoll_works=no
12105 echo "$ac_t""$ac_cv_func_strcoll_works" 1>&6
12106 if test $ac_cv_func_strcoll_works = yes; then
12107 { test "$extra_verbose" = "yes" && cat << \EOF
12108 Defining HAVE_STRCOLL
12110 cat >> confdefs.h <<\EOF
12111 #define HAVE_STRCOLL 1
12118 for ac_func in getpgrp
12120 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12121 echo "configure:12122: checking for $ac_func" >&5
12123 cat > conftest.$ac_ext <<EOF
12124 #line 12125 "configure"
12125 #include "confdefs.h"
12126 /* System header to define __stub macros and hopefully few prototypes,
12127 which can conflict with char $ac_func(); below. */
12128 #include <assert.h>
12129 /* Override any gcc2 internal prototype to avoid an error. */
12130 /* We use char because int might match the return type of a gcc2
12131 builtin and then its argument prototype would still apply. */
12136 /* The GNU C library defines this for functions which it implements
12137 to always fail with ENOSYS. Some functions are actually named
12138 something starting with __ and the normal name is an alias. */
12139 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12147 if { (eval echo configure:12148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12149 eval "ac_cv_func_$ac_func=yes"
12151 echo "configure: failed program was:" >&5
12152 cat conftest.$ac_ext >&5
12154 eval "ac_cv_func_$ac_func=no"
12158 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12159 echo "$ac_t""yes" 1>&6
12160 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12161 { test "$extra_verbose" = "yes" && cat << EOF
12162 Defining $ac_tr_func
12164 cat >> confdefs.h <<EOF
12165 #define $ac_tr_func 1
12170 echo "$ac_t""no" 1>&6
12174 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
12175 echo "configure:12176: checking whether getpgrp takes no argument" >&5
12177 cat > conftest.$ac_ext <<EOF
12178 #line 12179 "configure"
12179 #include "confdefs.h"
12182 * If this system has a BSD-style getpgrp(),
12183 * which takes a pid argument, exit unsuccessfully.
12185 * Snarfed from Chet Ramey's bash pgrp.c test program
12188 #include <sys/types.h>
12191 int pg1, pg2, pg3, pg4;
12192 int ng, np, s, child;
12199 pg3 = getpgrp(pid);
12203 * If all of these values are the same, it's pretty sure that
12204 * we're on a system that ignores getpgrp's first argument.
12206 if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3)
12212 else if (child == 0) {
12215 * If this is Sys V, this will not work; pgrp will be
12216 * set to np because setpgrp just changes a pgrp to be
12217 * the same as the pid.
12220 ng = getpgrp(0); /* Same result for Sys V and BSD */
12233 if { (eval echo configure:12234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12235 ac_cv_func_getpgrp_void=yes
12238 echo "configure: failed program was:" >&5
12239 cat conftest.$ac_ext >&5
12241 ac_cv_func_getpgrp_void=no
12246 echo "$ac_t""$ac_cv_func_getpgrp_void" 1>&6
12247 if test $ac_cv_func_getpgrp_void = yes; then
12248 { test "$extra_verbose" = "yes" && cat << \EOF
12249 Defining GETPGRP_VOID
12251 cat >> confdefs.h <<\EOF
12252 #define GETPGRP_VOID 1
12259 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
12260 echo "configure:12261: checking for working mmap" >&5
12261 case "$opsys" in ultrix* ) have_mmap=no ;; *)
12262 cat > conftest.$ac_ext <<EOF
12263 #line 12264 "configure"
12264 #include "confdefs.h"
12266 #include <unistd.h>
12268 #include <sys/mman.h>
12270 #ifndef MAP_VARIABLE
12271 #define MAP_VARIABLE 0
12275 #define MAP_FAILED -1
12278 int main (int argc, char *argv[])
12282 #ifndef MAP_ANONYMOUS
12283 fd = open ("/dev/zero", O_RDWR);
12286 #define MAP_ANONYMOUS 0
12288 if (mmap(0, 1024, PROT_READ | PROT_WRITE,
12289 MAP_PRIVATE | MAP_VARIABLE | MAP_ANONYMOUS,
12290 fd, 0) != (void *) MAP_FAILED)
12292 perror ("conftest: mmap failed");
12296 if { (eval echo configure:12297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12301 echo "configure: failed program was:" >&5
12302 cat conftest.$ac_ext >&5
12306 rm -fr conftest* ;;
12308 echo "$ac_t""$have_mmap" 1>&6
12309 test "$have_mmap" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
12312 cat >> confdefs.h <<\EOF
12313 #define HAVE_MMAP 1
12318 case "$opsys" in cygwin*)
12319 test "$rel_alloc" = "default" && rel_alloc=no ;;
12321 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no
12322 if test "$rel_alloc $have_mmap" = "default yes"; then
12323 if test "$doug_lea_malloc" = "yes"; then
12324 echo $ac_n "checking for M_MMAP_THRESHOLD""... $ac_c" 1>&6
12325 echo "configure:12326: checking for M_MMAP_THRESHOLD" >&5
12326 cat > conftest.$ac_ext <<EOF
12327 #line 12328 "configure"
12328 #include "confdefs.h"
12329 #include <malloc.h>
12332 #ifndef M_MMAP_THRESHOLD
12333 #error No M_MMAP_THRESHOLD :-(
12334 !@+$%^&*_)(_ - unlikely to compile...
12339 if { (eval echo configure:12340: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12341 rel_alloc=no; echo "$ac_t""yes" 1>&6;
12343 echo "configure: failed program was:" >&5
12344 cat conftest.$ac_ext >&5
12346 rel_alloc=yes; echo "$ac_t""no" 1>&6;
12353 test "$rel_alloc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
12356 cat >> confdefs.h <<\EOF
12357 #define REL_ALLOC 1
12362 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
12363 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
12364 echo "configure:12365: checking for termios.h" >&5
12366 cat > conftest.$ac_ext <<EOF
12367 #line 12368 "configure"
12368 #include "confdefs.h"
12369 #include <termios.h>
12371 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12372 { (eval echo configure:12373: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12373 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12374 if test -z "$ac_err"; then
12376 eval "ac_cv_header_$ac_safe=yes"
12379 echo "configure: failed program was:" >&5
12380 cat conftest.$ac_ext >&5
12382 eval "ac_cv_header_$ac_safe=no"
12385 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12386 echo "$ac_t""yes" 1>&6
12387 { test "$extra_verbose" = "yes" && cat << \EOF
12388 Defining HAVE_TERMIOS
12390 cat >> confdefs.h <<\EOF
12391 #define HAVE_TERMIOS 1
12395 { test "$extra_verbose" = "yes" && cat << \EOF
12396 Defining SIGNALS_VIA_CHARACTERS
12398 cat >> confdefs.h <<\EOF
12399 #define SIGNALS_VIA_CHARACTERS 1
12403 { test "$extra_verbose" = "yes" && cat << \EOF
12406 cat >> confdefs.h <<\EOF
12407 #define NO_TERMIO 1
12412 echo "$ac_t""no" 1>&6
12413 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
12414 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
12415 echo "configure:12416: checking for termio.h" >&5
12417 cat > conftest.$ac_ext <<EOF
12418 #line 12419 "configure"
12419 #include "confdefs.h"
12420 #include <termio.h>
12422 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12423 { (eval echo configure:12424: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12424 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12425 if test -z "$ac_err"; then
12427 eval "ac_cv_header_$ac_safe=yes"
12430 echo "configure: failed program was:" >&5
12431 cat conftest.$ac_ext >&5
12433 eval "ac_cv_header_$ac_safe=no"
12436 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12437 echo "$ac_t""yes" 1>&6
12438 { test "$extra_verbose" = "yes" && cat << \EOF
12439 Defining HAVE_TERMIO
12441 cat >> confdefs.h <<\EOF
12442 #define HAVE_TERMIO 1
12447 echo "$ac_t""no" 1>&6
12454 echo $ac_n "checking for socket""... $ac_c" 1>&6
12455 echo "configure:12456: checking for socket" >&5
12457 cat > conftest.$ac_ext <<EOF
12458 #line 12459 "configure"
12459 #include "confdefs.h"
12460 /* System header to define __stub macros and hopefully few prototypes,
12461 which can conflict with char socket(); below. */
12462 #include <assert.h>
12463 /* Override any gcc2 internal prototype to avoid an error. */
12464 /* We use char because int might match the return type of a gcc2
12465 builtin and then its argument prototype would still apply. */
12470 /* The GNU C library defines this for functions which it implements
12471 to always fail with ENOSYS. Some functions are actually named
12472 something starting with __ and the normal name is an alias. */
12473 #if defined (__stub_socket) || defined (__stub___socket)
12481 if { (eval echo configure:12482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12483 eval "ac_cv_func_socket=yes"
12485 echo "configure: failed program was:" >&5
12486 cat conftest.$ac_ext >&5
12488 eval "ac_cv_func_socket=no"
12492 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
12493 echo "$ac_t""yes" 1>&6
12494 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
12495 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
12496 echo "configure:12497: checking for netinet/in.h" >&5
12498 cat > conftest.$ac_ext <<EOF
12499 #line 12500 "configure"
12500 #include "confdefs.h"
12501 #include <netinet/in.h>
12503 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12504 { (eval echo configure:12505: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12505 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12506 if test -z "$ac_err"; then
12508 eval "ac_cv_header_$ac_safe=yes"
12511 echo "configure: failed program was:" >&5
12512 cat conftest.$ac_ext >&5
12514 eval "ac_cv_header_$ac_safe=no"
12517 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12518 echo "$ac_t""yes" 1>&6
12519 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
12520 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
12521 echo "configure:12522: checking for arpa/inet.h" >&5
12523 cat > conftest.$ac_ext <<EOF
12524 #line 12525 "configure"
12525 #include "confdefs.h"
12526 #include <arpa/inet.h>
12528 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12529 { (eval echo configure:12530: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12530 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12531 if test -z "$ac_err"; then
12533 eval "ac_cv_header_$ac_safe=yes"
12536 echo "configure: failed program was:" >&5
12537 cat conftest.$ac_ext >&5
12539 eval "ac_cv_header_$ac_safe=no"
12542 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12543 echo "$ac_t""yes" 1>&6
12545 { test "$extra_verbose" = "yes" && cat << \EOF
12546 Defining HAVE_SOCKETS
12548 cat >> confdefs.h <<\EOF
12549 #define HAVE_SOCKETS 1
12553 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
12554 echo "configure:12555: checking "for sun_len member in struct sockaddr_un"" >&5
12555 cat > conftest.$ac_ext <<EOF
12556 #line 12557 "configure"
12557 #include "confdefs.h"
12559 #include <sys/types.h>
12560 #include <sys/socket.h>
12561 #include <sys/un.h>
12564 static struct sockaddr_un x; x.sun_len = 1;
12567 if { (eval echo configure:12568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12569 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
12570 Defining HAVE_SOCKADDR_SUN_LEN
12572 cat >> confdefs.h <<\EOF
12573 #define HAVE_SOCKADDR_SUN_LEN 1
12578 echo "configure: failed program was:" >&5
12579 cat conftest.$ac_ext >&5
12581 echo "$ac_t""no" 1>&6
12584 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6
12585 echo "configure:12586: checking "for ip_mreq struct in netinet/in.h"" >&5
12586 cat > conftest.$ac_ext <<EOF
12587 #line 12588 "configure"
12588 #include "confdefs.h"
12590 #include <sys/types.h>
12591 #include <netinet/in.h>
12594 static struct ip_mreq x;
12597 if { (eval echo configure:12598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12599 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
12600 Defining HAVE_MULTICAST
12602 cat >> confdefs.h <<\EOF
12603 #define HAVE_MULTICAST 1
12608 echo "configure: failed program was:" >&5
12609 cat conftest.$ac_ext >&5
12611 echo "$ac_t""no" 1>&6
12615 echo "$ac_t""no" 1>&6
12619 echo "$ac_t""no" 1>&6
12623 echo "$ac_t""no" 1>&6
12627 echo $ac_n "checking for msgget""... $ac_c" 1>&6
12628 echo "configure:12629: checking for msgget" >&5
12630 cat > conftest.$ac_ext <<EOF
12631 #line 12632 "configure"
12632 #include "confdefs.h"
12633 /* System header to define __stub macros and hopefully few prototypes,
12634 which can conflict with char msgget(); below. */
12635 #include <assert.h>
12636 /* Override any gcc2 internal prototype to avoid an error. */
12637 /* We use char because int might match the return type of a gcc2
12638 builtin and then its argument prototype would still apply. */
12643 /* The GNU C library defines this for functions which it implements
12644 to always fail with ENOSYS. Some functions are actually named
12645 something starting with __ and the normal name is an alias. */
12646 #if defined (__stub_msgget) || defined (__stub___msgget)
12654 if { (eval echo configure:12655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12656 eval "ac_cv_func_msgget=yes"
12658 echo "configure: failed program was:" >&5
12659 cat conftest.$ac_ext >&5
12661 eval "ac_cv_func_msgget=no"
12665 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
12666 echo "$ac_t""yes" 1>&6
12667 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
12668 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
12669 echo "configure:12670: checking for sys/ipc.h" >&5
12671 cat > conftest.$ac_ext <<EOF
12672 #line 12673 "configure"
12673 #include "confdefs.h"
12674 #include <sys/ipc.h>
12676 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12677 { (eval echo configure:12678: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12678 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12679 if test -z "$ac_err"; then
12681 eval "ac_cv_header_$ac_safe=yes"
12684 echo "configure: failed program was:" >&5
12685 cat conftest.$ac_ext >&5
12687 eval "ac_cv_header_$ac_safe=no"
12690 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12691 echo "$ac_t""yes" 1>&6
12692 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
12693 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
12694 echo "configure:12695: checking for sys/msg.h" >&5
12696 cat > conftest.$ac_ext <<EOF
12697 #line 12698 "configure"
12698 #include "confdefs.h"
12699 #include <sys/msg.h>
12701 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12702 { (eval echo configure:12703: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12703 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12704 if test -z "$ac_err"; then
12706 eval "ac_cv_header_$ac_safe=yes"
12709 echo "configure: failed program was:" >&5
12710 cat conftest.$ac_ext >&5
12712 eval "ac_cv_header_$ac_safe=no"
12715 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12716 echo "$ac_t""yes" 1>&6
12717 { test "$extra_verbose" = "yes" && cat << \EOF
12718 Defining HAVE_SYSVIPC
12720 cat >> confdefs.h <<\EOF
12721 #define HAVE_SYSVIPC 1
12726 echo "$ac_t""no" 1>&6
12730 echo "$ac_t""no" 1>&6
12734 echo "$ac_t""no" 1>&6
12738 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
12739 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
12740 echo "configure:12741: checking for dirent.h" >&5
12742 cat > conftest.$ac_ext <<EOF
12743 #line 12744 "configure"
12744 #include "confdefs.h"
12745 #include <dirent.h>
12747 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12748 { (eval echo configure:12749: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12749 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12750 if test -z "$ac_err"; then
12752 eval "ac_cv_header_$ac_safe=yes"
12755 echo "configure: failed program was:" >&5
12756 cat conftest.$ac_ext >&5
12758 eval "ac_cv_header_$ac_safe=no"
12761 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12762 echo "$ac_t""yes" 1>&6
12763 { test "$extra_verbose" = "yes" && cat << \EOF
12764 Defining SYSV_SYSTEM_DIR
12766 cat >> confdefs.h <<\EOF
12767 #define SYSV_SYSTEM_DIR 1
12772 echo "$ac_t""no" 1>&6
12773 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
12774 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
12775 echo "configure:12776: checking for sys/dir.h" >&5
12777 cat > conftest.$ac_ext <<EOF
12778 #line 12779 "configure"
12779 #include "confdefs.h"
12780 #include <sys/dir.h>
12782 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12783 { (eval echo configure:12784: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12784 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12785 if test -z "$ac_err"; then
12787 eval "ac_cv_header_$ac_safe=yes"
12790 echo "configure: failed program was:" >&5
12791 cat conftest.$ac_ext >&5
12793 eval "ac_cv_header_$ac_safe=no"
12796 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12797 echo "$ac_t""yes" 1>&6
12800 echo "$ac_t""no" 1>&6
12801 { test "$extra_verbose" = "yes" && cat << \EOF
12802 Defining NONSYSTEM_DIR_LIBRARY
12804 cat >> confdefs.h <<\EOF
12805 #define NONSYSTEM_DIR_LIBRARY 1
12814 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
12815 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
12816 echo "configure:12817: checking for nlist.h" >&5
12818 cat > conftest.$ac_ext <<EOF
12819 #line 12820 "configure"
12820 #include "confdefs.h"
12823 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12824 { (eval echo configure:12825: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12825 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12826 if test -z "$ac_err"; then
12828 eval "ac_cv_header_$ac_safe=yes"
12831 echo "configure: failed program was:" >&5
12832 cat conftest.$ac_ext >&5
12834 eval "ac_cv_header_$ac_safe=no"
12837 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12838 echo "$ac_t""yes" 1>&6
12839 { test "$extra_verbose" = "yes" && cat << \EOF
12840 Defining NLIST_STRUCT
12842 cat >> confdefs.h <<\EOF
12843 #define NLIST_STRUCT 1
12848 echo "$ac_t""no" 1>&6
12853 echo "checking "for sound support"" 1>&6
12854 echo "configure:12855: checking "for sound support"" >&5
12855 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
12857 if test "$with_native_sound" != "no"; then
12858 if test -n "$native_sound_lib"; then
12859 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
12860 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
12861 echo "configure:12862: checking for multimedia/audio_device.h" >&5
12863 cat > conftest.$ac_ext <<EOF
12864 #line 12865 "configure"
12865 #include "confdefs.h"
12866 #include <multimedia/audio_device.h>
12868 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12869 { (eval echo configure:12870: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12870 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12871 if test -z "$ac_err"; then
12873 eval "ac_cv_header_$ac_safe=yes"
12876 echo "configure: failed program was:" >&5
12877 cat conftest.$ac_ext >&5
12879 eval "ac_cv_header_$ac_safe=no"
12882 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12883 echo "$ac_t""yes" 1>&6
12884 sound_found=yes sound_cflags=""
12885 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
12886 echo " xemacs will be linked with \"sunplay.o\""
12889 echo "$ac_t""no" 1>&6
12894 if test -z "$sound_found" -a -d "/usr/demo/SOUND"; then
12896 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
12897 echo " xemacs will be linked with \"sunplay.o\""
12899 if test -d "/usr/demo/SOUND/include"
12900 then sound_cflags="-I/usr/demo/SOUND/include"
12901 else sound_cflags="-I/usr/demo/SOUND"
12903 if test -z "$native_sound_lib" ; then
12904 if test -r "/usr/demo/SOUND/lib/libaudio.a"
12905 then native_sound_lib="/usr/demo/SOUND/lib/libaudio.a"
12906 else native_sound_lib="/usr/demo/SOUND/libaudio.a"
12911 if test -z "$sound_found"; then
12912 case "$canonical" in
12914 if test -z "$native_sound_lib"; then
12916 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
12917 echo "configure:12918: checking for ALopenport in -laudio" >&5
12918 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
12920 xe_check_libs=" -laudio "
12921 cat > conftest.$ac_ext <<EOF
12922 #line 12923 "configure"
12923 #include "confdefs.h"
12924 /* Override any gcc2 internal prototype to avoid an error. */
12925 /* We use char because int might match the return type of a gcc2
12926 builtin and then its argument prototype would still apply. */
12933 if { (eval echo configure:12934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12935 eval "ac_cv_lib_$ac_lib_var=yes"
12937 echo "configure: failed program was:" >&5
12938 cat conftest.$ac_ext >&5
12940 eval "ac_cv_lib_$ac_lib_var=no"
12945 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12946 echo "$ac_t""yes" 1>&6
12947 native_sound_lib="-laudio"
12949 echo "$ac_t""no" 1>&6
12954 if test -n "$native_sound_lib"; then
12955 sound_found=yes sound_cflags=""
12956 extra_objs="$extra_objs sgiplay.o" && if test "$extra_verbose" = "yes"; then
12957 echo " xemacs will be linked with \"sgiplay.o\""
12961 if test -z "$native_sound_lib"; then
12963 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
12964 echo "configure:12965: checking for AOpenAudio in -lAlib" >&5
12965 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
12967 xe_check_libs=" -lAlib "
12968 cat > conftest.$ac_ext <<EOF
12969 #line 12970 "configure"
12970 #include "confdefs.h"
12971 /* Override any gcc2 internal prototype to avoid an error. */
12972 /* We use char because int might match the return type of a gcc2
12973 builtin and then its argument prototype would still apply. */
12980 if { (eval echo configure:12981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12982 eval "ac_cv_lib_$ac_lib_var=yes"
12984 echo "configure: failed program was:" >&5
12985 cat conftest.$ac_ext >&5
12987 eval "ac_cv_lib_$ac_lib_var=no"
12992 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12993 echo "$ac_t""yes" 1>&6
12994 native_sound_lib="-lAlib"
12996 echo "$ac_t""no" 1>&6
13001 if test -n "$native_sound_lib"; then
13003 extra_objs="$extra_objs hpplay.o" && if test "$extra_verbose" = "yes"; then
13004 echo " xemacs will be linked with \"hpplay.o\""
13006 if test "$GCC" = "yes" # Kludge city
13007 then sound_cflags="-Dconst= -Dvolatile= -I/usr/audio/examples"
13008 else sound_cflags="+e -I/usr/audio/examples"
13014 if test -z "$sound_found"; then
13015 for dir in "machine" "sys" "linux"; do
13016 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
13017 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
13018 echo "configure:13019: checking for ${dir}/soundcard.h" >&5
13020 cat > conftest.$ac_ext <<EOF
13021 #line 13022 "configure"
13022 #include "confdefs.h"
13023 #include <${dir}/soundcard.h>
13025 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13026 { (eval echo configure:13027: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13027 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13028 if test -z "$ac_err"; then
13030 eval "ac_cv_header_$ac_safe=yes"
13033 echo "configure: failed program was:" >&5
13034 cat conftest.$ac_ext >&5
13036 eval "ac_cv_header_$ac_safe=no"
13039 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13040 echo "$ac_t""yes" 1>&6
13043 extra_objs="$extra_objs linuxplay.o" && if test "$extra_verbose" = "yes"; then
13044 echo " xemacs will be linked with \"linuxplay.o\""
13046 { test "$extra_verbose" = "yes" && cat << EOF
13047 Defining SOUNDCARD_H_FILE = "${dir}/soundcard.h"
13049 cat >> confdefs.h <<EOF
13050 #define SOUNDCARD_H_FILE "${dir}/soundcard.h"
13056 echo "$ac_t""no" 1>&6
13062 if test -z "$sound_found"; then
13063 if test "$with_msw" = "yes"; then
13069 test "$sound_found" = "yes" && with_native_sound=yes
13072 if test "$with_native_sound" = "yes"; then
13073 { test "$extra_verbose" = "yes" && cat << \EOF
13074 Defining HAVE_NATIVE_SOUND
13076 cat >> confdefs.h <<\EOF
13077 #define HAVE_NATIVE_SOUND 1
13081 test -n "$native_sound_lib" && LIBS="$native_sound_lib $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$native_sound_lib\" to \$LIBS"; fi
13084 if test "$with_nas_sound" != "no"; then
13085 ac_safe=`echo "audio/audiolib.h" | sed 'y%./+-%__p_%'`
13086 echo $ac_n "checking for audio/audiolib.h""... $ac_c" 1>&6
13087 echo "configure:13088: checking for audio/audiolib.h" >&5
13089 cat > conftest.$ac_ext <<EOF
13090 #line 13091 "configure"
13091 #include "confdefs.h"
13092 #include <audio/audiolib.h>
13094 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13095 { (eval echo configure:13096: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13096 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13097 if test -z "$ac_err"; then
13099 eval "ac_cv_header_$ac_safe=yes"
13102 echo "configure: failed program was:" >&5
13103 cat conftest.$ac_ext >&5
13105 eval "ac_cv_header_$ac_safe=no"
13108 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13109 echo "$ac_t""yes" 1>&6
13112 echo $ac_n "checking for AuOpenServer in -laudio""... $ac_c" 1>&6
13113 echo "configure:13114: checking for AuOpenServer in -laudio" >&5
13114 ac_lib_var=`echo audio'_'AuOpenServer | sed 'y%./+-%__p_%'`
13116 xe_check_libs=" -laudio "
13117 cat > conftest.$ac_ext <<EOF
13118 #line 13119 "configure"
13119 #include "confdefs.h"
13120 /* Override any gcc2 internal prototype to avoid an error. */
13121 /* We use char because int might match the return type of a gcc2
13122 builtin and then its argument prototype would still apply. */
13123 char AuOpenServer();
13129 if { (eval echo configure:13130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13131 eval "ac_cv_lib_$ac_lib_var=yes"
13133 echo "configure: failed program was:" >&5
13134 cat conftest.$ac_ext >&5
13136 eval "ac_cv_lib_$ac_lib_var=no"
13141 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13142 echo "$ac_t""yes" 1>&6
13145 echo "$ac_t""no" 1>&6
13150 echo "$ac_t""no" 1>&6
13153 if test "$have_nas_sound" = "yes"; then
13155 { test "$extra_verbose" = "yes" && cat << \EOF
13156 Defining HAVE_NAS_SOUND
13158 cat >> confdefs.h <<\EOF
13159 #define HAVE_NAS_SOUND 1
13163 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
13164 echo " xemacs will be linked with \"nas.o\""
13166 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi
13167 cat > conftest.$ac_ext <<EOF
13168 #line 13169 "configure"
13169 #include "confdefs.h"
13170 #include <audio/Xtutil.h>
13172 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13173 egrep "AuXtErrorJump" >/dev/null 2>&1; then
13177 old_nas=yes; { test "$extra_verbose" = "yes" && cat << \EOF
13178 Defining NAS_NO_ERROR_JUMP
13180 cat >> confdefs.h <<\EOF
13181 #define NAS_NO_ERROR_JUMP 1
13189 test "$with_nas_sound" = "yes" && \
13190 { echo "Error:" "Required NAS sound support cannot be provided." >&2; exit 1; }
13195 if test "$with_esd_sound" != "no"; then
13196 # Extract the first word of "esd-config", so it can be a program name with args.
13197 set dummy esd-config; ac_word=$2
13198 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
13199 echo "configure:13200: checking for $ac_word" >&5
13201 if test -n "$have_esd_config"; then
13202 ac_cv_prog_have_esd_config="$have_esd_config" # Let the user override the test.
13204 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
13206 for ac_dir in $ac_dummy; do
13207 test -z "$ac_dir" && ac_dir=.
13208 if test -f $ac_dir/$ac_word; then
13209 ac_cv_prog_have_esd_config="yes"
13214 test -z "$ac_cv_prog_have_esd_config" && ac_cv_prog_have_esd_config="no"
13216 have_esd_config="$ac_cv_prog_have_esd_config"
13217 if test -n "$have_esd_config"; then
13218 echo "$ac_t""$have_esd_config" 1>&6
13220 echo "$ac_t""no" 1>&6
13223 if test "$have_esd_config" = "yes"; then
13224 save_c_switch_site="$c_switch_site" save_LIBS="$LIBS"
13225 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
13226 LIBS="`esd-config --libs` $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"`esd-config --libs`\" to \$LIBS"; fi
13227 echo $ac_n "checking for esd_play_stream""... $ac_c" 1>&6
13228 echo "configure:13229: checking for esd_play_stream" >&5
13230 cat > conftest.$ac_ext <<EOF
13231 #line 13232 "configure"
13232 #include "confdefs.h"
13233 /* System header to define __stub macros and hopefully few prototypes,
13234 which can conflict with char esd_play_stream(); below. */
13235 #include <assert.h>
13236 /* Override any gcc2 internal prototype to avoid an error. */
13237 /* We use char because int might match the return type of a gcc2
13238 builtin and then its argument prototype would still apply. */
13239 char esd_play_stream();
13243 /* The GNU C library defines this for functions which it implements
13244 to always fail with ENOSYS. Some functions are actually named
13245 something starting with __ and the normal name is an alias. */
13246 #if defined (__stub_esd_play_stream) || defined (__stub___esd_play_stream)
13254 if { (eval echo configure:13255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13256 eval "ac_cv_func_esd_play_stream=yes"
13258 echo "configure: failed program was:" >&5
13259 cat conftest.$ac_ext >&5
13261 eval "ac_cv_func_esd_play_stream=no"
13265 if eval "test \"`echo '$ac_cv_func_'esd_play_stream`\" = yes"; then
13266 echo "$ac_t""yes" 1>&6
13269 echo "$ac_t""no" 1>&6
13270 c_switch_site="$save_c_switch_site" LIBS="$save_LIBS"
13275 if test "$have_esd_sound" = "yes"; then
13278 extra_objs="$extra_objs esd.o" && if test "$extra_verbose" = "yes"; then
13279 echo " xemacs will be linked with \"esd.o\""
13281 { test "$extra_verbose" = "yes" && cat << \EOF
13282 Defining HAVE_ESD_SOUND
13284 cat >> confdefs.h <<\EOF
13285 #define HAVE_ESD_SOUND 1
13290 test "$with_esd_sound" = "yes" && \
13291 { echo "Error:" "Required ESD sound support cannot be provided." >&2; exit 1; }
13296 test "$need_miscplay" = "yes" && extra_objs="$extra_objs miscplay.o" && if test "$extra_verbose" = "yes"; then
13297 echo " xemacs will be linked with \"miscplay.o\""
13301 test -z "$with_tty" && with_tty=yes
13303 if test "$with_tty" = "yes" ; then
13304 echo "checking for TTY-related features" 1>&6
13305 echo "configure:13306: checking for TTY-related features" >&5
13306 { test "$extra_verbose" = "yes" && cat << \EOF
13309 cat >> confdefs.h <<\EOF
13314 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
13315 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\""
13318 if test -z "$with_ncurses"; then
13320 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
13321 echo "configure:13322: checking for tgetent in -lncurses" >&5
13322 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
13324 xe_check_libs=" -lncurses "
13325 cat > conftest.$ac_ext <<EOF
13326 #line 13327 "configure"
13327 #include "confdefs.h"
13328 /* Override any gcc2 internal prototype to avoid an error. */
13329 /* We use char because int might match the return type of a gcc2
13330 builtin and then its argument prototype would still apply. */
13337 if { (eval echo configure:13338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13339 eval "ac_cv_lib_$ac_lib_var=yes"
13341 echo "configure: failed program was:" >&5
13342 cat conftest.$ac_ext >&5
13344 eval "ac_cv_lib_$ac_lib_var=no"
13349 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13350 echo "$ac_t""yes" 1>&6
13353 echo "$ac_t""no" 1>&6
13359 if test "$with_ncurses" = "yes"; then
13360 { test "$extra_verbose" = "yes" && cat << \EOF
13361 Defining HAVE_NCURSES
13363 cat >> confdefs.h <<\EOF
13364 #define HAVE_NCURSES 1
13368 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
13369 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
13370 echo "configure:13371: checking for ncurses/curses.h" >&5
13372 cat > conftest.$ac_ext <<EOF
13373 #line 13374 "configure"
13374 #include "confdefs.h"
13375 #include <ncurses/curses.h>
13377 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13378 { (eval echo configure:13379: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13379 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13380 if test -z "$ac_err"; then
13382 eval "ac_cv_header_$ac_safe=yes"
13385 echo "configure: failed program was:" >&5
13386 cat conftest.$ac_ext >&5
13388 eval "ac_cv_header_$ac_safe=no"
13391 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13392 echo "$ac_t""yes" 1>&6
13393 curses_h_file=ncurses/curses.h
13395 echo "$ac_t""no" 1>&6
13398 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
13399 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
13400 echo "configure:13401: checking for ncurses/term.h" >&5
13402 cat > conftest.$ac_ext <<EOF
13403 #line 13404 "configure"
13404 #include "confdefs.h"
13405 #include <ncurses/term.h>
13407 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13408 { (eval echo configure:13409: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13409 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13410 if test -z "$ac_err"; then
13412 eval "ac_cv_header_$ac_safe=yes"
13415 echo "configure: failed program was:" >&5
13416 cat conftest.$ac_ext >&5
13418 eval "ac_cv_header_$ac_safe=no"
13421 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13422 echo "$ac_t""yes" 1>&6
13423 term_h_file=ncurses/term.h
13425 echo "$ac_t""no" 1>&6
13428 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
13429 echo " xemacs will be linked with \"terminfo.o\""
13431 LIBS="-lncurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lncurses\" to \$LIBS"; fi
13433 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
13434 save_c_switch_site="$c_switch_site"
13435 c_switch_site="$c_switch_site -I/usr/include/ncurses"
13436 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
13437 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
13438 echo "configure:13439: checking for ncurses/curses.h" >&5
13440 cat > conftest.$ac_ext <<EOF
13441 #line 13442 "configure"
13442 #include "confdefs.h"
13443 #include <ncurses/curses.h>
13445 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13446 { (eval echo configure:13447: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13447 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13448 if test -z "$ac_err"; then
13450 eval "ac_cv_header_$ac_safe=yes"
13453 echo "configure: failed program was:" >&5
13454 cat conftest.$ac_ext >&5
13456 eval "ac_cv_header_$ac_safe=no"
13459 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13460 echo "$ac_t""yes" 1>&6
13461 curses_h_file=ncurses/curses.h
13463 echo "$ac_t""no" 1>&6
13466 if test "$ac_cv_header_ncurses_curses_h" = "yes"
13467 then echo "configure: warning: "Your system has the bogus ncurses include bug."" 1>&2
13468 else c_switch_site="$save_c_switch_site"
13471 else if test "$have_terminfo" = "yes"; then
13472 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
13473 echo " xemacs will be linked with \"terminfo.o\""
13475 if test -n "$libs_termcap"; then
13476 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
13478 for lib in curses termlib termcap; do
13480 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
13481 echo "configure:13482: checking for tgetent in -l$lib" >&5
13482 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
13484 xe_check_libs=" -l$lib "
13485 cat > conftest.$ac_ext <<EOF
13486 #line 13487 "configure"
13487 #include "confdefs.h"
13488 /* Override any gcc2 internal prototype to avoid an error. */
13489 /* We use char because int might match the return type of a gcc2
13490 builtin and then its argument prototype would still apply. */
13497 if { (eval echo configure:13498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13499 eval "ac_cv_lib_$ac_lib_var=yes"
13501 echo "configure: failed program was:" >&5
13502 cat conftest.$ac_ext >&5
13504 eval "ac_cv_lib_$ac_lib_var=no"
13509 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13510 echo "$ac_t""yes" 1>&6
13511 LIBS="-l${lib} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${lib}\" to \$LIBS"; fi; break
13513 echo "$ac_t""no" 1>&6
13519 else extra_objs="$extra_objs tparam.o" && if test "$extra_verbose" = "yes"; then
13520 echo " xemacs will be linked with \"tparam.o\""
13522 case "$opsys" in *-hp-hpux* ) libs_termcap="-ltermcap" ;; esac
13523 if test -n "$libs_termcap"; then
13524 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
13527 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
13528 echo "configure:13529: checking for tgetent in -lcurses" >&5
13529 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
13531 xe_check_libs=" -lcurses "
13532 cat > conftest.$ac_ext <<EOF
13533 #line 13534 "configure"
13534 #include "confdefs.h"
13535 /* Override any gcc2 internal prototype to avoid an error. */
13536 /* We use char because int might match the return type of a gcc2
13537 builtin and then its argument prototype would still apply. */
13544 if { (eval echo configure:13545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13546 eval "ac_cv_lib_$ac_lib_var=yes"
13548 echo "configure: failed program was:" >&5
13549 cat conftest.$ac_ext >&5
13551 eval "ac_cv_lib_$ac_lib_var=no"
13556 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13557 echo "$ac_t""yes" 1>&6
13558 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
13560 echo "$ac_t""no" 1>&6
13561 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
13562 echo "configure:13563: checking for tgetent in -ltermcap" >&5
13563 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
13565 xe_check_libs=" -ltermcap "
13566 cat > conftest.$ac_ext <<EOF
13567 #line 13568 "configure"
13568 #include "confdefs.h"
13569 /* Override any gcc2 internal prototype to avoid an error. */
13570 /* We use char because int might match the return type of a gcc2
13571 builtin and then its argument prototype would still apply. */
13578 if { (eval echo configure:13579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13580 eval "ac_cv_lib_$ac_lib_var=yes"
13582 echo "configure: failed program was:" >&5
13583 cat conftest.$ac_ext >&5
13585 eval "ac_cv_lib_$ac_lib_var=no"
13590 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13591 echo "$ac_t""yes" 1>&6
13592 LIBS="-ltermcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltermcap\" to \$LIBS"; fi
13594 echo "$ac_t""no" 1>&6
13595 extra_objs="$extra_objs termcap.o" && if test "$extra_verbose" = "yes"; then
13596 echo " xemacs will be linked with \"termcap.o\""
13607 { test "$extra_verbose" = "yes" && cat << EOF
13608 Defining CURSES_H_FILE = "${curses_h_file-curses.h}"
13610 cat >> confdefs.h <<EOF
13611 #define CURSES_H_FILE "${curses_h_file-curses.h}"
13615 { test "$extra_verbose" = "yes" && cat << EOF
13616 Defining TERM_H_FILE = "${term_h_file-term.h}"
13618 cat >> confdefs.h <<EOF
13619 #define TERM_H_FILE "${term_h_file-term.h}"
13624 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
13625 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
13626 echo "configure:13627: checking for gpm.h" >&5
13628 cat > conftest.$ac_ext <<EOF
13629 #line 13630 "configure"
13630 #include "confdefs.h"
13633 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13634 { (eval echo configure:13635: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13635 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13636 if test -z "$ac_err"; then
13638 eval "ac_cv_header_$ac_safe=yes"
13641 echo "configure: failed program was:" >&5
13642 cat conftest.$ac_ext >&5
13644 eval "ac_cv_header_$ac_safe=no"
13647 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13648 echo "$ac_t""yes" 1>&6
13651 echo "$ac_t""no" 1>&6
13655 test -z "$with_gpm" && {
13656 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
13657 echo "configure:13658: checking for Gpm_Open in -lgpm" >&5
13658 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
13660 xe_check_libs=" -lgpm "
13661 cat > conftest.$ac_ext <<EOF
13662 #line 13663 "configure"
13663 #include "confdefs.h"
13664 /* Override any gcc2 internal prototype to avoid an error. */
13665 /* We use char because int might match the return type of a gcc2
13666 builtin and then its argument prototype would still apply. */
13673 if { (eval echo configure:13674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13675 eval "ac_cv_lib_$ac_lib_var=yes"
13677 echo "configure: failed program was:" >&5
13678 cat conftest.$ac_ext >&5
13680 eval "ac_cv_lib_$ac_lib_var=no"
13685 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13686 echo "$ac_t""yes" 1>&6
13689 echo "$ac_t""no" 1>&6
13694 if test "$with_gpm" = "yes"; then
13695 { test "$extra_verbose" = "yes" && cat << \EOF
13698 cat >> confdefs.h <<\EOF
13703 extra_objs="$extra_objs gpmevent.o" && if test "$extra_verbose" = "yes"; then
13704 echo " xemacs will be linked with \"gpmevent.o\""
13706 LIBS="-lgpm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgpm\" to \$LIBS"; fi
13709 else for feature in ncurses gpm; do
13710 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
13711 echo "configure: warning: "--with-${feature} ignored: Not valid without TTY support"" 1>&2
13713 eval "with_${feature}=no"
13716 test "$with_x11" = "yes" -o "$with_tty" = "yes" && extra_objs="$extra_objs event-unixoid.o" && if test "$extra_verbose" = "yes"; then
13717 echo " xemacs will be linked with \"event-unixoid.o\""
13721 test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
13722 != "no no no" && echo "checking for database support" 1>&6
13723 echo "configure:13724: checking for database support" >&5
13725 if test "$with_database_gdbm $with_database_dbm" != "no no"; then
13726 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'`
13727 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6
13728 echo "configure:13729: checking for ndbm.h" >&5
13730 cat > conftest.$ac_ext <<EOF
13731 #line 13732 "configure"
13732 #include "confdefs.h"
13735 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13736 { (eval echo configure:13737: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13737 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13738 if test -z "$ac_err"; then
13740 eval "ac_cv_header_$ac_safe=yes"
13743 echo "configure: failed program was:" >&5
13744 cat conftest.$ac_ext >&5
13746 eval "ac_cv_header_$ac_safe=no"
13749 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13750 echo "$ac_t""yes" 1>&6
13753 echo "$ac_t""no" 1>&6
13755 test "$with_database_gdbm" = "yes" -o \
13756 "$with_database_dbm" = "yes" && \
13757 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
13758 with_database_gdbm=no with_database_dbm=no
13763 if test "$with_database_gdbm" != "no"; then
13765 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
13766 echo "configure:13767: checking for dbm_open in -lgdbm" >&5
13767 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
13769 xe_check_libs=" -lgdbm "
13770 cat > conftest.$ac_ext <<EOF
13771 #line 13772 "configure"
13772 #include "confdefs.h"
13773 /* Override any gcc2 internal prototype to avoid an error. */
13774 /* We use char because int might match the return type of a gcc2
13775 builtin and then its argument prototype would still apply. */
13782 if { (eval echo configure:13783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13784 eval "ac_cv_lib_$ac_lib_var=yes"
13786 echo "configure: failed program was:" >&5
13787 cat conftest.$ac_ext >&5
13789 eval "ac_cv_lib_$ac_lib_var=no"
13794 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13795 echo "$ac_t""yes" 1>&6
13796 with_database_gdbm=yes with_database_dbm=no libdbm=-lgdbm
13798 echo "$ac_t""no" 1>&6
13799 if test "$with_database_gdbm" = "yes"; then
13800 { echo "Error:" "Required GNU DBM support cannot be provided." >&2; exit 1; }
13802 with_database_gdbm=no
13808 if test "$with_database_dbm" != "no"; then
13809 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
13810 echo "configure:13811: checking for dbm_open" >&5
13812 cat > conftest.$ac_ext <<EOF
13813 #line 13814 "configure"
13814 #include "confdefs.h"
13815 /* System header to define __stub macros and hopefully few prototypes,
13816 which can conflict with char dbm_open(); below. */
13817 #include <assert.h>
13818 /* Override any gcc2 internal prototype to avoid an error. */
13819 /* We use char because int might match the return type of a gcc2
13820 builtin and then its argument prototype would still apply. */
13825 /* The GNU C library defines this for functions which it implements
13826 to always fail with ENOSYS. Some functions are actually named
13827 something starting with __ and the normal name is an alias. */
13828 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
13836 if { (eval echo configure:13837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13838 eval "ac_cv_func_dbm_open=yes"
13840 echo "configure: failed program was:" >&5
13841 cat conftest.$ac_ext >&5
13843 eval "ac_cv_func_dbm_open=no"
13847 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
13848 echo "$ac_t""yes" 1>&6
13849 with_database_dbm=yes libdbm=
13851 echo "$ac_t""no" 1>&6
13854 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
13855 echo "configure:13856: checking for dbm_open in -ldbm" >&5
13856 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
13858 xe_check_libs=" -ldbm "
13859 cat > conftest.$ac_ext <<EOF
13860 #line 13861 "configure"
13861 #include "confdefs.h"
13862 /* Override any gcc2 internal prototype to avoid an error. */
13863 /* We use char because int might match the return type of a gcc2
13864 builtin and then its argument prototype would still apply. */
13871 if { (eval echo configure:13872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13873 eval "ac_cv_lib_$ac_lib_var=yes"
13875 echo "configure: failed program was:" >&5
13876 cat conftest.$ac_ext >&5
13878 eval "ac_cv_lib_$ac_lib_var=no"
13883 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13884 echo "$ac_t""yes" 1>&6
13885 with_database_dbm=yes libdbm=-ldbm
13887 echo "$ac_t""no" 1>&6
13888 test "$with_database_dbm" = "yes" && \
13889 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
13890 with_database_dbm=no
13898 test -n "$libdbm" && LIBS=""$libdbm" $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libdbm"\" to \$LIBS"; fi
13899 test "$with_database_gdbm" = "yes" -o \
13900 "$with_database_dbm" = "yes" && \
13901 { test "$extra_verbose" = "yes" && cat << \EOF
13904 cat >> confdefs.h <<\EOF
13910 if test "$with_database_berkdb" != "no"; then
13911 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6
13912 echo "configure:13913: checking for Berkeley db.h" >&5
13913 for header in "db/db.h" "db.h"; do
13914 cat > conftest.$ac_ext <<EOF
13915 #line 13916 "configure"
13916 #include "confdefs.h"
13918 #include <stdlib.h>
13919 #if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1)
13920 #ifdef HAVE_INTTYPES_H
13921 #define __BIT_TYPES_DEFINED__
13922 #include <inttypes.h>
13923 typedef uint8_t u_int8_t;
13924 typedef uint16_t u_int16_t;
13925 typedef uint32_t u_int32_t;
13926 #ifdef WE_DONT_NEED_QUADS
13927 typedef uint64_t u_int64_t;
13937 if { (eval echo configure:13938: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13939 db_h_file="$header"; break
13941 echo "configure: failed program was:" >&5
13942 cat conftest.$ac_ext >&5
13946 if test -z "$db_h_file"
13947 then echo "$ac_t""no" 1>&6; with_database_berkdb=no
13948 else echo "$ac_t""$db_h_file" 1>&6
13951 if test "$with_database_berkdb" != "no"; then
13952 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6
13953 echo "configure:13954: checking for Berkeley DB version" >&5
13954 cat > conftest.$ac_ext <<EOF
13955 #line 13956 "configure"
13956 #include "confdefs.h"
13957 #include <$db_h_file>
13958 #if DB_VERSION_MAJOR > 1
13963 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13964 egrep "yes" >/dev/null 2>&1; then
13966 cat > conftest.$ac_ext <<EOF
13967 #line 13968 "configure"
13968 #include "confdefs.h"
13969 #include <$db_h_file>
13970 #if DB_VERSION_MAJOR > 2
13975 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13976 egrep "yes" >/dev/null 2>&1; then
13978 echo "$ac_t""3" 1>&6; dbfunc=db_create
13982 echo "$ac_t""2" 1>&6; dbfunc=db_open
13989 echo "$ac_t""1" 1>&6; dbfunc=dbopen
13993 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6
13994 echo "configure:13995: checking for $dbfunc" >&5
13996 cat > conftest.$ac_ext <<EOF
13997 #line 13998 "configure"
13998 #include "confdefs.h"
13999 /* System header to define __stub macros and hopefully few prototypes,
14000 which can conflict with char $dbfunc(); below. */
14001 #include <assert.h>
14002 /* Override any gcc2 internal prototype to avoid an error. */
14003 /* We use char because int might match the return type of a gcc2
14004 builtin and then its argument prototype would still apply. */
14009 /* The GNU C library defines this for functions which it implements
14010 to always fail with ENOSYS. Some functions are actually named
14011 something starting with __ and the normal name is an alias. */
14012 #if defined (__stub_$dbfunc) || defined (__stub___$dbfunc)
14020 if { (eval echo configure:14021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14022 eval "ac_cv_func_$dbfunc=yes"
14024 echo "configure: failed program was:" >&5
14025 cat conftest.$ac_ext >&5
14027 eval "ac_cv_func_$dbfunc=no"
14031 if eval "test \"`echo '$ac_cv_func_'$dbfunc`\" = yes"; then
14032 echo "$ac_t""yes" 1>&6
14033 with_database_berkdb=yes need_libdb=no
14035 echo "$ac_t""no" 1>&6
14038 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6
14039 echo "configure:14040: checking for $dbfunc in -ldb" >&5
14040 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'`
14042 xe_check_libs=" -ldb "
14043 cat > conftest.$ac_ext <<EOF
14044 #line 14045 "configure"
14045 #include "confdefs.h"
14046 /* Override any gcc2 internal prototype to avoid an error. */
14047 /* We use char because int might match the return type of a gcc2
14048 builtin and then its argument prototype would still apply. */
14055 if { (eval echo configure:14056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14057 eval "ac_cv_lib_$ac_lib_var=yes"
14059 echo "configure: failed program was:" >&5
14060 cat conftest.$ac_ext >&5
14062 eval "ac_cv_lib_$ac_lib_var=no"
14067 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
14068 echo "$ac_t""yes" 1>&6
14069 with_database_berkdb=yes need_libdb=yes
14071 echo "$ac_t""no" 1>&6
14079 if test "$with_database_berkdb" = "yes"; then
14080 { test "$extra_verbose" = "yes" && cat << EOF
14081 Defining DB_H_FILE = "$db_h_file"
14083 cat >> confdefs.h <<EOF
14084 #define DB_H_FILE "$db_h_file"
14088 { test "$extra_verbose" = "yes" && cat << \EOF
14089 Defining HAVE_BERKELEY_DB
14091 cat >> confdefs.h <<\EOF
14092 #define HAVE_BERKELEY_DB 1
14096 test "$need_libdb" = "yes" && LIBS="-ldb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldb\" to \$LIBS"; fi
14097 else with_database_berkdb=no
14101 if test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
14102 != "no no no"; then
14103 { test "$extra_verbose" = "yes" && cat << \EOF
14104 Defining HAVE_DATABASE
14106 cat >> confdefs.h <<\EOF
14107 #define HAVE_DATABASE 1
14111 extra_objs="$extra_objs database.o" && if test "$extra_verbose" = "yes"; then
14112 echo " xemacs will be linked with \"database.o\""
14114 if test "$with_utf_2000" = "yes"; then
14115 { test "$extra_verbose" = "yes" && cat << \EOF
14116 Defining HAVE_CHISE_CLIENT
14118 cat >> confdefs.h <<\EOF
14119 #define HAVE_CHISE_CLIENT 1
14126 if test "$with_socks" = "yes"; then
14128 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
14129 echo "configure:14130: checking for SOCKSinit in -lsocks" >&5
14130 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
14132 xe_check_libs=" -lsocks "
14133 cat > conftest.$ac_ext <<EOF
14134 #line 14135 "configure"
14135 #include "confdefs.h"
14136 /* Override any gcc2 internal prototype to avoid an error. */
14137 /* We use char because int might match the return type of a gcc2
14138 builtin and then its argument prototype would still apply. */
14145 if { (eval echo configure:14146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14147 eval "ac_cv_lib_$ac_lib_var=yes"
14149 echo "configure: failed program was:" >&5
14150 cat conftest.$ac_ext >&5
14152 eval "ac_cv_lib_$ac_lib_var=no"
14157 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
14158 echo "$ac_t""yes" 1>&6
14159 ac_tr_lib=HAVE_LIB`echo socks | sed -e 's/[^a-zA-Z0-9_]/_/g' \
14160 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
14161 { test "$extra_verbose" = "yes" && cat << EOF
14162 Defining $ac_tr_lib
14164 cat >> confdefs.h <<EOF
14165 #define $ac_tr_lib 1
14169 LIBS="-lsocks $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lsocks\" to \$LIBS"; fi
14172 echo "$ac_t""no" 1>&6
14176 test -n "$ac_cv_lib_socks_SOCKSinit" && { test "$extra_verbose" = "yes" && cat << \EOF
14177 Defining HAVE_SOCKS
14179 cat >> confdefs.h <<\EOF
14180 #define HAVE_SOCKS 1
14186 if test "$usage_tracking" = "yes"; then
14187 { test "$extra_verbose" = "yes" && cat << \EOF
14188 Defining USAGE_TRACKING
14190 cat >> confdefs.h <<\EOF
14191 #define USAGE_TRACKING 1
14195 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi
14198 if test "$with_modules" != "no"; then
14199 echo "checking for module support" 1>&6
14200 echo "configure:14201: checking for module support" >&5
14202 if test "$with_msw" = "yes"; then
14205 ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'`
14206 echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6
14207 echo "configure:14208: checking for dlfcn.h" >&5
14209 cat > conftest.$ac_ext <<EOF
14210 #line 14211 "configure"
14211 #include "confdefs.h"
14214 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14215 { (eval echo configure:14216: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14216 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14217 if test -z "$ac_err"; then
14219 eval "ac_cv_header_$ac_safe=yes"
14222 echo "configure: failed program was:" >&5
14223 cat conftest.$ac_ext >&5
14225 eval "ac_cv_header_$ac_safe=no"
14228 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14229 echo "$ac_t""yes" 1>&6
14231 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6
14232 echo "configure:14233: checking for dlopen in -lc" >&5
14233 cat > conftest.$ac_ext <<EOF
14234 #line 14235 "configure"
14235 #include "confdefs.h"
14241 if { (eval echo configure:14242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14245 echo "configure: failed program was:" >&5
14246 cat conftest.$ac_ext >&5
14249 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
14250 echo "configure:14251: checking for dlopen in -ldl" >&5
14251 ac_save_LIBS="$LIBS"
14253 cat > conftest.$ac_ext <<EOF
14254 #line 14255 "configure"
14255 #include "confdefs.h"
14261 if { (eval echo configure:14262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14265 echo "configure: failed program was:" >&5
14266 cat conftest.$ac_ext >&5
14268 LIBS="$ac_save_LIBS"
14275 echo "$ac_t""no" 1>&6
14278 if test -n "$have_dl"; then
14279 { test "$extra_verbose" = "yes" && cat << \EOF
14280 Defining HAVE_DLOPEN
14282 cat >> confdefs.h <<\EOF
14283 #define HAVE_DLOPEN 1
14289 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
14290 echo "configure:14291: checking for shl_load in -ldld" >&5
14291 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
14293 xe_check_libs=" -ldld "
14294 cat > conftest.$ac_ext <<EOF
14295 #line 14296 "configure"
14296 #include "confdefs.h"
14297 /* Override any gcc2 internal prototype to avoid an error. */
14298 /* We use char because int might match the return type of a gcc2
14299 builtin and then its argument prototype would still apply. */
14306 if { (eval echo configure:14307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14308 eval "ac_cv_lib_$ac_lib_var=yes"
14310 echo "configure: failed program was:" >&5
14311 cat conftest.$ac_ext >&5
14313 eval "ac_cv_lib_$ac_lib_var=no"
14318 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
14319 echo "$ac_t""yes" 1>&6
14320 libdl=dld have_dl=yes;
14321 { test "$extra_verbose" = "yes" && cat << \EOF
14322 Defining HAVE_SHL_LOAD
14324 cat >> confdefs.h <<\EOF
14325 #define HAVE_SHL_LOAD 1
14330 echo "$ac_t""no" 1>&6
14332 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6
14333 echo "configure:14334: checking for dld_init in -ldld" >&5
14334 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'`
14336 xe_check_libs=" -ldld "
14337 cat > conftest.$ac_ext <<EOF
14338 #line 14339 "configure"
14339 #include "confdefs.h"
14340 /* Override any gcc2 internal prototype to avoid an error. */
14341 /* We use char because int might match the return type of a gcc2
14342 builtin and then its argument prototype would still apply. */
14349 if { (eval echo configure:14350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14351 eval "ac_cv_lib_$ac_lib_var=yes"
14353 echo "configure: failed program was:" >&5
14354 cat conftest.$ac_ext >&5
14356 eval "ac_cv_lib_$ac_lib_var=no"
14361 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
14362 echo "$ac_t""yes" 1>&6
14363 libdl=dld have_dl=yes;
14364 { test "$extra_verbose" = "yes" && cat << \EOF
14365 Defining HAVE_DLD_INIT
14367 cat >> confdefs.h <<\EOF
14368 #define HAVE_DLD_INIT 1
14373 echo "$ac_t""no" 1>&6
14382 if test -n "$have_dl"; then
14389 ld_dynamic_link_flags=
14391 xealias=$internal_configuration
14393 echo "checking how to build dynamic libraries for ${xehost}" 1>&6
14394 echo "configure:14395: checking how to build dynamic libraries for ${xehost}" >&5
14395 # Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts.
14398 *-*-linux*) xehost=`echo $xehost | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
14401 xehost_cpu=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
14402 xehost_vendor=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
14403 xehost_os=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
14405 case "$xehost_os" in
14407 # AIX sometimes has problems with the GCC collect2 program. For some
14408 # reason, if we set the COLLECT_NAMES environment variable, the problems
14409 # vanish in a puff of smoke.
14410 if test "${COLLECT_NAMES+set}" != set; then
14412 export COLLECT_NAMES
14417 # Now see if the compiler is really GCC.
14418 if test "$GCC" = "yes"; then
14421 echo $ac_n "checking checking whether we are using GNU C""... $ac_c" 1>&6
14422 echo "configure:14423: checking checking whether we are using GNU C" >&5
14423 cat > conftest.$ac_ext <<EOF
14424 #line 14425 "configure"
14425 #include "confdefs.h"
14432 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14433 egrep "yes" >/dev/null 2>&1; then
14442 echo "$ac_t""${XEGCC}" 1>&6
14445 echo $ac_n "checking how to produce PIC code""... $ac_c" 1>&6
14446 echo "configure:14447: checking how to produce PIC code" >&5
14449 can_build_shared=yes
14450 if test "$XEGCC" = yes; then
14453 case "$xehost_os" in
14454 aix[3-9]* | irix[5-9]* | osf[3-9])
14455 # PIC is the default for these OSes.
14459 # We can build DLLs from non-PIC.
14462 # FIXME: we need at least 68020 code to build shared libraries, but
14463 # adding the `-m68020' flag to GCC prevents building anything better,
14465 dll_cflags='-m68020 -resident32 -malways-restore-a4'
14467 *cygwin* | *mingw* )
14468 # PIC is the default
14475 # PORTME Check for PIC flags for the system compiler.
14476 case "$xehost_os" in
14477 hpux9* | hpux1[0-9]*)
14478 # Is there a better link_static_flag that works with the bundled CC?
14485 # PIC (with -KPIC) is the default.
14489 # We can build DLLs from non-PIC.
14493 # All OSF/1 code is PIC.
14498 # All AIX code is PIC.
14503 dll_cflags='-belf -Kpic'
14537 can_build_shared=no
14542 if test -n "$dll_cflags"; then
14543 echo "$ac_t""${dll_cflags}" 1>&6
14545 # Check to make sure the dll_cflags actually works.
14546 echo $ac_n "checking if PIC flag ${dll_cflags} really works""... $ac_c" 1>&6
14547 echo "configure:14548: checking if PIC flag ${dll_cflags} really works" >&5
14548 save_CFLAGS="$CFLAGS"
14549 CFLAGS="$CFLAGS $dll_cflags -DPIC"
14550 cat > conftest.$ac_ext <<EOF
14551 #line 14552 "configure"
14552 #include "confdefs.h"
14558 if { (eval echo configure:14559: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14561 # On HP-UX, the stripped-down bundled CC doesn't accept +Z, but also
14562 # reports no error. So, we need to grep stderr for (Bundled).
14563 if grep '(Bundled)' config.log >/dev/null; then
14564 echo "$ac_t""no" 1>&6
14565 can_build_shared=no
14568 echo "$ac_t""yes" 1>&6
14571 echo "configure: failed program was:" >&5
14572 cat conftest.$ac_ext >&5
14574 echo "$ac_t""no" 1>&6
14575 can_build_shared=no
14579 CFLAGS="$save_CFLAGS"
14581 echo "$ac_t""none" 1>&6
14584 if test "$can_build_shared" = "yes"; then
14588 echo $ac_n "checking if C compiler can produce shared libraries""... $ac_c" 1>&6
14589 echo "configure:14590: checking if C compiler can produce shared libraries" >&5
14590 if test "$XEGCC" = yes; then
14593 else # Not using GCC
14594 case "$xehost_os" in
14596 xldf="-bE:ELLSONAME.exp -H512 -T512 -bhalt:4 -bM:SRE -bnoentry -lc"
14597 xcldf="${wl}-bE:ELLSONAME.exp ${wl}-H512 ${wl}-T512 ${wl}-bhalt:4 ${wl}-bM:SRE ${wl}-bnoentry ${wl}-lc"
14600 freebsd2* | netbsd* | openbsd*)
14602 xcldf="${wl}-Bshareable"
14611 xcldf="${wl}-b ${wl}+s"
14614 irix[5-9]* | osf[3-9]*)
14615 xcldf="${wl}-shared"
14619 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7* | uts4*)
14625 xcldf="${wl}-assert ${wl}pure-text ${wl}-Bstatic"
14626 xldf="-assert pure-text -Bstatic"
14629 fi # End if if we are using gcc
14631 if test -n "$xcldf"; then
14632 save_LDFLAGS=$LDFLAGS
14634 save_xe_libs=$xe_libs
14635 LDFLAGS="$xcldf $LDFLAGS"
14638 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
14639 cat > conftest.$ac_ext <<EOF
14640 #line 14641 "configure"
14641 #include "confdefs.h"
14647 if { (eval echo configure:14648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14651 echo "configure: failed program was:" >&5
14652 cat conftest.$ac_ext >&5
14657 LDFLAGS=$save_LDFLAGS
14659 xe_libs=$save_xe_libs
14660 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
14664 echo "$ac_t""${cc_produces_so}" 1>&6
14667 if test -z "$LTLD"; then
14669 if test "$XEGCC" = yes; then
14670 # Check if gcc -print-prog-name=ld gives a path.
14671 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
14672 echo "configure:14673: checking for ld used by GCC" >&5
14673 ac_prog=`($CC -print-prog-name=ld) 2>&5`
14675 # Accept absolute paths.
14677 if test -z "$LTLD"; then
14679 *gcc-lib*) LTLD="$CC"
14687 # If it fails, then pretend we aren't using GCC.
14691 # If it is relative, then search for the first ld in PATH.
14692 with_gnu_ld=unknown
14696 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
14697 echo "configure:14698: checking for GNU ld" >&5
14700 if test -z "$LTLD"; then
14701 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
14702 for ac_dir in $PATH; do
14703 test -z "$ac_dir" && ac_dir=.
14704 if test -f "$ac_dir/$ac_prog"; then
14705 LTLD="$ac_dir/$ac_prog"
14706 # Check to see if the program is GNU ld. I'd rather use --version,
14707 # but apparently some GNU ld's only accept -v.
14708 # Break only if it was the GNU/non-GNU ld that we prefer.
14709 if "$LTLD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
14719 if test -n "$LTLD"; then
14720 echo "$ac_t""${LTLD}" 1>&6
14722 echo "$ac_t""no" 1>&6
14725 if test -z "$LTLD" -a "$cc_produces_so" = no; then
14726 { echo "configure: error: no acceptable linker found in \$PATH" 1>&2; exit 1; }
14731 ld_dynamic_link_flags=
14733 # Check to see if it really is or isn't GNU ld.
14734 echo $ac_n "checking if the linker is GNU ld""... $ac_c" 1>&6
14735 echo "configure:14736: checking if the linker is GNU ld" >&5
14736 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
14737 if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
14742 echo "$ac_t""${xe_gnu_ld}" 1>&6
14744 case "$xehost_os" in
14745 amigaos* | sunos4*)
14746 # On these operating systems, we should treat GNU ld like the system ld.
14747 gnu_ld_acts_native=yes
14750 gnu_ld_acts_native=no
14754 if test "$cc_produces_so" = "yes"; then
14757 can_build_shared=yes
14760 # OK - only NOW do we futz about with ld.
14761 # See if the linker supports building shared libraries.
14762 echo $ac_n "checking whether the linker supports shared libraries""... $ac_c" 1>&6
14763 echo "configure:14764: checking whether the linker supports shared libraries" >&5
14765 dll_ldflags=$LDFLAGS
14767 can_build_shared=yes
14768 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then
14769 # See if GNU ld supports shared libraries.
14770 if $LTLD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
14772 dll_ldflags="-shared"
14778 # PORTME fill in a description of your system's linker (not GNU ld)
14779 case "$xehost_os" in
14789 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14790 # support. Future versions do this automatically, but an explicit c++rt0.o
14791 # doesn't break anything, and helps significantly (at the cost of a little
14796 dll_post="/usr/lib/c++rt0.o"
14799 # Unfortunately, older versions of FreeBSD 2 don't have this feature.
14802 dll_ldflags="-Bshareable"
14805 # FreeBSD 3, at last, uses gcc -shared to do shared libraries.
14807 dll_ldflags="-shared"
14821 # Tested with NetBSD 1.2 ld
14836 # For both SCO and Solaris we MAY want to have LDFLAGS include -z text
14837 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7*)
14840 *gcc*) dll_ldflags="-shared"
14843 *) dll_ldflags="-G"
14849 if test "$XEGCC" = yes; then
14869 can_build_shared=no
14873 echo "$ac_t""${ld_shlibs}" 1>&6
14874 if test "$ld_shlibs" = "no"; then
14875 can_build_shared=no
14877 fi # End of if cc_produces_so = no
14880 if test "$xe_gnu_ld" = yes; then
14881 if test "$ld_shlibs" = yes; then
14882 ld_dynamic_link_flags="${wl}-export-dynamic"
14886 if test -z "$ld_dynamic_link_flags"; then
14887 case "$xehost_os" in
14889 ld_dynamic_link_flags=
14893 ld_dynamic_link_flags=
14897 ld_dynamic_link_flags=
14901 ld_dynamic_link_flags=
14905 ld_dynamic_link_flags="${wl}-E"
14909 ld_dynamic_link_flags=
14913 ld_dynamic_link_flags=
14917 ld_dynamic_link_flags=
14921 ld_dynamic_link_flags=
14924 solaris2* | solaris7*)
14925 ld_dynamic_link_flags=
14928 sco3.2v5* | unixware* | sysv5* | sysv4*)
14929 ld_dynamic_link_flags="${wl}-Bexport"
14933 ld_dynamic_link_flags=
14937 ld_dynamic_link_flags=
14941 ld_dynamic_link_flags=
14945 fi # End of if -z ld_dynamic_link_flags
14946 fi # End of if test "$can_build_shared" = "yes"
14957 if test "$can_build_shared" = "yes"; then
14958 { test "$extra_verbose" = "yes" && cat << \EOF
14959 Defining HAVE_SHLIB
14961 cat >> confdefs.h <<\EOF
14962 #define HAVE_SHLIB 1
14966 extra_objs="$extra_objs sysdll.o emodules.o" && if test "$extra_verbose" = "yes"; then
14967 echo " xemacs will be linked with \"sysdll.o emodules.o\""
14969 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
14970 test -n "$libdl" && LIBS="-l${libdl} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${libdl}\" to \$LIBS"; fi
14971 for ac_func in dlerror _dlerror
14973 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14974 echo "configure:14975: checking for $ac_func" >&5
14976 cat > conftest.$ac_ext <<EOF
14977 #line 14978 "configure"
14978 #include "confdefs.h"
14979 /* System header to define __stub macros and hopefully few prototypes,
14980 which can conflict with char $ac_func(); below. */
14981 #include <assert.h>
14982 /* Override any gcc2 internal prototype to avoid an error. */
14983 /* We use char because int might match the return type of a gcc2
14984 builtin and then its argument prototype would still apply. */
14989 /* The GNU C library defines this for functions which it implements
14990 to always fail with ENOSYS. Some functions are actually named
14991 something starting with __ and the normal name is an alias. */
14992 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15000 if { (eval echo configure:15001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15002 eval "ac_cv_func_$ac_func=yes"
15004 echo "configure: failed program was:" >&5
15005 cat conftest.$ac_ext >&5
15007 eval "ac_cv_func_$ac_func=no"
15011 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15012 echo "$ac_t""yes" 1>&6
15013 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15014 { test "$extra_verbose" = "yes" && cat << EOF
15015 Defining $ac_tr_func
15017 cat >> confdefs.h <<EOF
15018 #define $ac_tr_func 1
15023 echo "$ac_t""no" 1>&6
15029 if test "$with_modules" = "yes"; then
15030 { echo "Error:" "Required module support cannot be provided." >&2; exit 1; }
15032 echo "configure: warning: "Module support cannot be provided."" 1>&2
15038 cat > conftest.$ac_ext <<EOF
15039 #line 15040 "configure"
15040 #include "confdefs.h"
15041 int main(int c,char *v[]){return 0;}
15043 if { (eval echo configure:15044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
15048 echo "configure: failed program was:" >&5
15049 cat conftest.$ac_ext >&5
15053 echo "*** PANIC *** The C compiler can no longer build working executables."
15054 echo "*** PANIC *** Please examine the tail of config.log for runtime errors."
15055 echo "*** PANIC *** The most likely reason for this problem is that configure"
15056 echo "*** PANIC *** links with shared libraries, but those libraries cannot be"
15057 echo "*** PANIC *** found at run time."
15058 echo "*** PANIC ***"
15059 echo "*** PANIC *** On a Linux system, edit /etc/ld.so.conf and re-run ldconfig."
15060 echo "*** PANIC *** On other systems, try telling configure where to find the"
15061 echo "*** PANIC *** shared libraries using the --site-runtime-libraries option"
15062 echo "*** PANIC ***"
15063 echo "*** PANIC *** Another way to shoot yourself in the foot is to specify"
15064 echo "*** PANIC *** --with-FEATURE when FEATURE is not actually installed"
15065 echo "*** PANIC *** on your system. Don't do that."
15070 if test "$win32_processes" = "yes"; then
15071 extra_objs="$extra_objs process-nt.o" && if test "$extra_verbose" = "yes"; then
15072 echo " xemacs will be linked with \"process-nt.o\""
15075 { test "$extra_verbose" = "yes" && cat << \EOF
15076 Defining HAVE_UNIX_PROCESSES
15078 cat >> confdefs.h <<\EOF
15079 #define HAVE_UNIX_PROCESSES 1
15083 extra_objs="$extra_objs process-unix.o" && if test "$extra_verbose" = "yes"; then
15084 echo " xemacs will be linked with \"process-unix.o\""
15091 for W in $CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15096 for W in $extra_objs; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15101 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
15102 c_switch_general="$T"
15106 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
15107 c_switch_window_system="$T"
15111 for W in $c_switch_general $c_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15116 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
15117 ld_switch_general="$T"
15121 for W in $ld_switch_x_site; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15122 ld_switch_window_system="$T"
15126 for W in $ld_switch_general $ld_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15131 for W in $LIBS $libs_machine $libs_system $libs_standard; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15132 ld_libs_general="$T"
15136 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
15137 ld_libs_window_system="$T"
15141 for W in $ld_libs_window_system $ld_libs_general; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15146 MAKE_SUBDIR="$MAKE_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$MAKE_SUBDIR"; fi
15147 internal_makefile_list="Makefile.in"
15148 SUBDIR_MAKEFILES=''
15149 test -d lock || mkdir lock
15150 for dir in $MAKE_SUBDIR; do
15151 case "$dir" in */* ) ( for d in `echo $dir | sed 's:/: :g'` ; do
15152 test -d "$d" || mkdir "$d"; cd "$d"
15154 * ) test -d "$dir" || mkdir "$dir" ;;
15158 for W in $SUBDIR_MAKEFILES $dir/Makefile $dir/GNUmakefile; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15159 SUBDIR_MAKEFILES="$T"
15163 for W in $internal_makefile_list $dir/Makefile.in; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15164 internal_makefile_list="$T"
15171 for dir in src/s src/m; do
15172 if test ! -d "$dir" ; then
15173 echo Making symbolic link to "$srcdir/$dir"
15174 ${LN_S} "$srcdir/$dir" "$dir"
15178 if test "$extra_verbose" = "yes"; then
15180 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
15185 if test -f "$srcdir/src/.gdbinit" -a ! -f "src/.gdbinit"; then
15186 test "$extra_verbose" = "yes" && echo "creating src/.gdbinit"
15187 echo "source $srcdir/src/.gdbinit" > "src/.gdbinit"
15190 if test -f "$srcdir/src/.dbxrc" -a ! -f "src/.dbxrc"; then
15191 test "$extra_verbose" = "yes" && echo "creating src/.dbxrc"
15192 echo ". $srcdir/src/.dbxrc" > "src/.dbxrc"
15195 if test -f "$srcdir/TAGS" -a ! -f "TAGS"; then
15196 test "$extra_verbose" = "yes" && echo "creating TAGS"
15198 $srcdir/TAGS,include" > "TAGS"
15201 if test "$__SUNPRO_C" = "yes"; then
15202 test "$extra_verbose" = "yes" && echo "creating .sbinit"
15203 ( echo "# For use with Sun WorkShop's Source browser."
15204 echo "# See sbquery(1) and sbinit(4) for more information"
15205 for dir in $MAKE_SUBDIR; do echo "import $dir"; done
15233 *\$* ) eval "PREFIX=$PREFIX" ;;
15241 EXEC_PREFIX=$exec_prefix
15243 case "$EXEC_PREFIX" in
15244 *\$* ) eval "EXEC_PREFIX=$EXEC_PREFIX" ;;
15255 *\$* ) eval "INFODIR=$INFODIR" ;;
15265 case "$INFOPATH" in
15266 *\$* ) eval "INFOPATH=$INFOPATH" ;;
15274 PACKAGE_PATH=$package_path
15276 case "$PACKAGE_PATH" in
15277 *\$* ) eval "PACKAGE_PATH=$PACKAGE_PATH" ;;
15288 *\$* ) eval "LISPDIR=$LISPDIR" ;;
15296 MODULEDIR=$moduledir
15298 case "$MODULEDIR" in
15299 *\$* ) eval "MODULEDIR=$MODULEDIR" ;;
15307 SITELISPDIR=$sitelispdir
15309 case "$SITELISPDIR" in
15310 *\$* ) eval "SITELISPDIR=$SITELISPDIR" ;;
15318 SITEMODULEDIR=$sitemoduledir
15320 case "$SITEMODULEDIR" in
15321 *\$* ) eval "SITEMODULEDIR=$SITEMODULEDIR" ;;
15332 *\$* ) eval "ETCDIR=$ETCDIR" ;;
15343 *\$* ) eval "DOCDIR=$DOCDIR" ;;
15351 ARCHLIBDIR=$archlibdir
15353 case "$ARCHLIBDIR" in
15354 *\$* ) eval "ARCHLIBDIR=$ARCHLIBDIR" ;;
15378 RECURSIVE_MAKE="\$(MAKE) \$(MFLAGS) CC='\$(CC)' CFLAGS='\$(CFLAGS)' LDFLAGS='\$(LDFLAGS)' CPPFLAGS='\$(CPPFLAGS)'"
15386 : ${XEMACS_CC:=$CC}
15389 if test "$with_prefix" = "yes"; then
15390 { test "$extra_verbose" = "yes" && cat << \EOF
15391 Defining PREFIX_USER_DEFINED
15393 cat >> confdefs.h <<\EOF
15394 #define PREFIX_USER_DEFINED 1
15400 if test "$with_site_lisp" = "no"; then
15401 { test "$extra_verbose" = "yes" && cat << \EOF
15402 Defining INHIBIT_SITE_LISP
15404 cat >> confdefs.h <<\EOF
15405 #define INHIBIT_SITE_LISP 1
15410 if test "$with_site_modules" = "no"; then
15411 { test "$extra_verbose" = "yes" && cat << \EOF
15412 Defining INHIBIT_SITE_MODULES
15414 cat >> confdefs.h <<\EOF
15415 #define INHIBIT_SITE_MODULES 1
15423 for W in $ac_configure_args; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15424 ac_configure_args="$T"
15426 { test "$extra_verbose" = "yes" && cat << EOF
15427 Defining EMACS_CONFIGURATION = "$configuration"
15429 cat >> confdefs.h <<EOF
15430 #define EMACS_CONFIGURATION "$configuration"
15434 { test "$extra_verbose" = "yes" && cat << EOF
15435 Defining EMACS_CONFIG_OPTIONS = "$ac_configure_args"
15437 cat >> confdefs.h <<EOF
15438 #define EMACS_CONFIG_OPTIONS "$ac_configure_args"
15445 { test "$extra_verbose" = "yes" && cat << EOF
15446 Defining LD_SWITCH_X_SITE = $null_string
15448 cat >> confdefs.h <<EOF
15449 #define LD_SWITCH_X_SITE $null_string
15453 { test "$extra_verbose" = "yes" && cat << EOF
15454 Defining LD_SWITCH_X_SITE_AUX = $null_string
15456 cat >> confdefs.h <<EOF
15457 #define LD_SWITCH_X_SITE_AUX $null_string
15461 { test "$extra_verbose" = "yes" && cat << EOF
15462 Defining C_SWITCH_X_SITE = $null_string
15464 cat >> confdefs.h <<EOF
15465 #define C_SWITCH_X_SITE $null_string
15469 { test "$extra_verbose" = "yes" && cat << EOF
15470 Defining LD_SWITCH_SITE = $null_string
15472 cat >> confdefs.h <<EOF
15473 #define LD_SWITCH_SITE $null_string
15477 { test "$extra_verbose" = "yes" && cat << EOF
15478 Defining C_SWITCH_SITE = $null_string
15480 cat >> confdefs.h <<EOF
15481 #define C_SWITCH_SITE $null_string
15487 if test "$GNU_MALLOC" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
15488 Defining GNU_MALLOC
15490 cat >> confdefs.h <<\EOF
15491 #define GNU_MALLOC 1
15495 elif test "$with_system_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
15496 Defining USE_SYSTEM_MALLOC
15498 cat >> confdefs.h <<\EOF
15499 #define USE_SYSTEM_MALLOC 1
15503 elif test "$with_debug_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
15504 Defining USE_DEBUG_MALLOC
15506 cat >> confdefs.h <<\EOF
15507 #define USE_DEBUG_MALLOC 1
15511 { test "$extra_verbose" = "yes" && cat << \EOF
15512 Defining USE_SYSTEM_MALLOC
15514 cat >> confdefs.h <<\EOF
15515 #define USE_SYSTEM_MALLOC 1
15520 test "$with_i18n3" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15523 cat >> confdefs.h <<\EOF
15528 test "$GCC" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15531 cat >> confdefs.h <<\EOF
15536 test "$external_widget" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15537 Defining EXTERNAL_WIDGET
15539 cat >> confdefs.h <<\EOF
15540 #define EXTERNAL_WIDGET 1
15544 test "$quick_build" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15545 Defining QUICK_BUILD
15547 cat >> confdefs.h <<\EOF
15548 #define QUICK_BUILD 1
15552 test "$with_purify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15555 cat >> confdefs.h <<\EOF
15560 test "$with_quantify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15563 cat >> confdefs.h <<\EOF
15568 test "$with_pop" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15569 Defining MAIL_USE_POP
15571 cat >> confdefs.h <<\EOF
15572 #define MAIL_USE_POP 1
15576 test "$with_kerberos" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15579 cat >> confdefs.h <<\EOF
15584 test "$with_hesiod" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15587 cat >> confdefs.h <<\EOF
15592 test "$use_union_type" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15593 Defining USE_UNION_TYPE
15595 cat >> confdefs.h <<\EOF
15596 #define USE_UNION_TYPE 1
15600 test "$pdump" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15603 cat >> confdefs.h <<\EOF
15611 if test -f /etc/osversion; then echo "osversion: `cat /etc/osversion`"
15613 echo "uname -a: `uname -a`"
15616 echo "$0 $quoted_arguments"
15619 if test ! -z ${emacs_beta_version} ; then
15620 if test -z "${emacs_is_beta}" ; then
15621 xemacs_betaname=".${emacs_beta_version}"
15623 xemacs_betaname="-b${emacs_beta_version}"
15632 XEmacs ${emacs_major_version}.${emacs_minor_version}${xemacs_betaname} \"$xemacs_codename\" configured for \`$canonical'.
15635 Compilation / Installation:"
15636 echo " Source code location: $srcdir"
15637 echo " Installation prefix: $prefix"
15638 if test -n "$site_includes"; then
15639 echo " Additional header files: $site_includes"
15641 if test -n "$site_libraries"; then
15642 echo " Additional libraries: $site_libraries"
15644 if test -n "$site_prefixes"; then
15645 echo " Additional prefixes: $site_prefixes"
15647 if test -n "$runpath"; then
15648 echo " Runtime library search path: $runpath"
15651 if test -n "$opsysfile"
15652 then echo " Operating system description file: \`$opsysfile'"
15653 else echo " Not using any operating system description file"
15655 if test -n "$machfile"
15656 then echo " Machine description file: \`$machfile'"
15657 else echo " Not using any machine description file"
15660 echo " Compiler: $CC $CFLAGS"
15661 echo " Relocating allocator for buffers: $rel_alloc"
15662 echo " GNU version of malloc: ${GNU_MALLOC}${GNU_MALLOC_reason}"
15666 if test "$with_msw" = "yes"; then
15667 echo " Compiling in support for the Microsoft window system."
15669 if test "$with_x11" = "yes"; then
15670 echo " Compiling in support for the X window system:"
15671 echo " - X Windows headers location: $x_includes"
15672 echo " - X Windows libraries location: $x_libraries"
15673 if test "$with_xauth" != yes; then
15674 echo " - Xau (X authority) not available."
15676 if test "$with_xmu" != yes; then
15677 echo " - Xmu library not available; substituting equivalent routines."
15679 if test "$with_wmcommand" != no; then
15680 echo " - Handling WM_COMMAND properly."
15683 if test "$need_athena" = "yes"; then
15684 echo " Compiling in support for the Athena widget set:"
15685 echo " - Athena headers location: $athena_h_path"
15686 echo " - Athena library to link: $athena_lib"
15688 case "$with_menubars" in
15689 gtk ) echo " Using GTK menubars." ;;
15690 lucid ) echo " Using Lucid menubars." ;;
15691 motif ) echo " Using Motif menubars."
15692 echo " *WARNING* The Motif menubar implementation is currently buggy."
15693 echo " We recommend using the Lucid menubar instead."
15694 echo " Re-run configure with --with-menubars='lucid'." ;;
15695 msw ) echo " Using MS-Windows menubars." ;;
15697 case "$with_scrollbars" in
15698 gtk ) echo " Using GTK scrollbars." ;;
15699 lucid ) echo " Using Lucid scrollbars." ;;
15700 motif ) echo " Using Motif scrollbars." ;;
15701 athena ) echo " Using Athena scrollbars." ;;
15702 msw ) echo " Using MS-Windows scrollbars." ;;
15704 case "$with_dialogs" in
15705 gtk ) echo " Using GTK dialog boxes." ;;
15706 motif ) echo " Using Motif dialog boxes."
15707 if test "$unexec" = "unexaix.o"; then if test "`uname -v`" = 4 -a "`uname -r`" -ge 3; then
15708 echo " *WARNING* The Motif dialog boxes cause problems on AIX 4.3 and higher."
15709 echo " We recommend using the Athena dialog boxes instead."
15710 echo " Install libXaw and re-run configure with --with-dialogs='athena'."
15711 echo " Read the PROBLEMS file for more information."
15713 athena ) echo " Using Athena dialog boxes." ;;
15714 msw ) echo " Using MS-Windows dialog boxes." ;;
15716 case "$with_widgets" in
15717 gtk ) echo " Using GTK native widgets." ;;
15718 motif ) echo " Using Motif native widgets." ;;
15719 athena ) echo " Using Athena native widgets." ;;
15720 msw ) echo " Using MS-Windows native widgets." ;;
15722 if test "$with_dragndrop" = yes; then
15723 echo " Compiling in support for Drag'n'Drop (EXPERIMENTAL)."
15724 echo " - Drag'n'Drop prototype: $dragndrop_proto."
15729 test "$with_ncurses" = yes && echo " Compiling in support for ncurses."
15730 test "$with_gpm" = yes && echo " Compiling in support for GPM (General Purpose Mouse)."
15734 test "$with_gif" = yes && echo " Compiling in support for GIF images (builtin)."
15735 if test "$with_xpm" = yes; then
15736 echo " Compiling in support for XPM images."
15737 elif test "$with_x11" = yes; then
15738 echo " WARNING: -----------------------------------------------------------"
15739 echo " WARNING: Compiling without XPM image support."
15740 if test "$xpm_problem" != ""; then
15741 echo " Reason: $xpm_problem"
15743 echo " WARNING: You should strongly consider installing XPM."
15744 echo " WARNING: Otherwise toolbars and other graphics will look suboptimal."
15745 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
15746 echo " WARNING: -----------------------------------------------------------"
15748 if test "$with_png" = yes; then
15749 echo " Compiling in support for PNG images."
15750 elif test "$window_system" != "none"; then
15751 echo " WARNING: -----------------------------------------------------------"
15752 echo " WARNING: Compiling without PNG image support."
15753 if test "$png_problem" != ""; then
15754 echo " Reason: $png_problem"
15756 echo " WARNING: You should strongly consider installing the PNG libraries."
15757 echo " WARNING: Otherwise certain images and glyphs may not display."
15758 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
15759 echo " WARNING: -----------------------------------------------------------"
15761 test "$with_jpeg" = yes && echo " Compiling in support for JPEG images."
15762 test "$with_tiff" = yes && echo " Compiling in support for TIFF images."
15763 test "$with_xface" = yes && echo " Compiling in support for X-Face message headers."
15767 test "$with_native_sound" = yes && echo " Compiling in support for sound (native)."
15768 test "$with_nas_sound" = yes && echo " Compiling in support for NAS (network audio system)."
15769 test "$old_nas" = yes && echo " - NAS library lacks error trapping; will play synchronously."
15770 test "$with_esd_sound" = yes && echo " Compiling in support for ESD (Enlightened Sound Daemon)."
15774 test "$with_database_berkdb" = yes && echo " Compiling in support for Berkeley database."
15775 test "$with_database_dbm" = yes && echo " Compiling in support for DBM."
15776 test "$with_database_gdbm" = yes && echo " Compiling in support for GNU DBM."
15777 test "$with_ldap" = yes && echo " Compiling in support for LDAP."
15778 if test "$with_postgresql" = yes; then
15779 echo " Compiling in support for PostgreSQL."
15780 echo " - Using PostgreSQL header file: $libpq_fe_h_file"
15781 test "$with_postgresqlv7" = yes && echo " - Using PostgreSQL V7 bindings."
15785 Internationalization:"
15786 test "$with_mule" = yes && echo " Compiling in support for Mule (multi-lingual Emacs)."
15787 test "$with_utf_2000" = yes && echo " Using UTF-2000 (UTF-8) buffer/string representation."
15788 test "$with_text_coding" = yes && echo " Compiling in support for text coding."
15789 test "$with_file_coding" = yes && echo " Compiling in support for file coding."
15790 test "$with_xim" != no && echo " Compiling in support for XIM (X11R5+ I18N input method)."
15791 test "$with_xim" = motif && echo " - Using Motif to provide XIM support."
15792 test "$with_xim" = xlib && echo " - Using raw Xlib to provide XIM support."
15793 test "$with_xfs" = yes && echo " - Using XFontSet to provide bilingual menubar."
15794 test "$with_canna" = yes && echo " Compiling in support for Canna on Mule."
15795 if test "$with_wnn" = yes; then
15796 echo " Compiling in support for the WNN input method on Mule."
15797 test "$with_wnn6" = yes && echo " - Using WNN version 6."
15799 test "$with_i18n3" = yes && echo " Compiling in support for I18N level 3 (doesn't currently work)."
15803 test "$with_pop" = yes && echo " Compiling in support for POP mail retrieval."
15804 test "$with_kerberos" = yes && echo " Compiling in support for Kerberos POP authentication."
15805 test "$with_hesiod" = yes && echo " Compiling in support for Hesiod POP server access."
15806 test -n "$mail_locking" && echo " Compiling in support for \"$mail_locking\" mail spool file locking method."
15810 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk."
15811 test "$with_workshop" = yes && echo " Compiling in support for Sun WorkShop."
15812 test "$with_socks" = yes && echo " Compiling in support for SOCKS."
15813 test "$with_dnet" = yes && echo " Compiling in support for DNET."
15814 test "$with_modules" = "yes" && echo " Compiling in support for dynamic shared object modules."
15815 test "$use_union_type" = yes && echo " Using the union type for Lisp_Objects."
15816 test "$pdump" = yes && echo " Using the new portable dumper."
15817 test "$debug" = yes && echo " Compiling in support for extra debugging code."
15818 test "$usage_tracking" = yes && echo " Compiling in support for active usage tracking (Sun internal)."
15819 if test "$error_check_extents $error_check_typecheck $error_check_bufpos $error_check_gc $error_check_malloc $error_check_glyphs" \
15820 != "no no no no no no"; then
15821 echo " WARNING: ---------------------------------------------------------"
15822 echo " WARNING: Compiling in support for runtime error checking."
15823 echo " WARNING: XEmacs will run noticeably more slowly as a result."
15824 echo " WARNING: Error checking is on by default for XEmacs beta releases."
15825 echo " WARNING: ---------------------------------------------------------"
15828 ) | tee -a Installation
15832 # Remove any trailing slashes in these variables.
15833 test -n "$prefix" &&
15834 prefix=`echo '' "$prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
15835 test -n "$exec_prefix" &&
15836 exec_prefix=`echo '' "$exec_prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
15839 for file in $internal_makefile_list; do
15840 test "$file" = src/Makefile.in && \
15841 file="src/Makefile.in:src/Makefile.in.in:src/depend"
15842 ac_output_files="$ac_output_files $file" && if test "$extra_verbose" = "yes"; then echo " Appending \"$file\" to \$ac_output_files"; fi
15844 ac_output_files="$ac_output_files src/paths.h lib-src/config.values"
15845 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
15849 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
15851 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15852 # Let make expand exec_prefix.
15853 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15855 # Any assignment to VPATH causes Sun make to only execute
15856 # the first set of double-colon rules, so remove it if not needed.
15857 # If there is a colon in the path, we need to keep it.
15858 if test "x$srcdir" = x.; then
15859 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
15862 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
15864 DEFS=-DHAVE_CONFIG_H
15866 # Without the "./", some shells look in PATH for config.status.
15867 : ${CONFIG_STATUS=./config.status}
15869 echo creating $CONFIG_STATUS
15870 rm -f $CONFIG_STATUS
15871 cat > $CONFIG_STATUS <<EOF
15873 # Generated automatically by configure.
15874 # Run this file to recreate the current configuration.
15875 # This directory was configured as follows,
15876 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15878 # $0 $ac_configure_args
15880 # Compiler output produced by configure, useful for debugging
15881 # configure, is in ./config.log if it exists.
15883 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
15886 case "\$ac_option" in
15887 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15888 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
15889 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
15890 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
15891 echo "$CONFIG_STATUS generated by autoconf version 2.13"
15893 -help | --help | --hel | --he | --h)
15894 echo "\$ac_cs_usage"; exit 0 ;;
15895 *) echo "\$ac_cs_usage"; exit 1 ;;
15899 ac_given_srcdir=$srcdir
15900 ac_given_INSTALL="$INSTALL"
15902 trap 'rm -fr `echo "$ac_output_files src/config.h lwlib/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
15904 cat >> $CONFIG_STATUS <<EOF
15906 # Protect against being on the right side of a sed subst in config.status.
15907 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
15908 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
15912 s%@CFLAGS@%$CFLAGS%g
15913 s%@CPPFLAGS@%$CPPFLAGS%g
15914 s%@CXXFLAGS@%$CXXFLAGS%g
15915 s%@FFLAGS@%$FFLAGS%g
15917 s%@LDFLAGS@%$LDFLAGS%g
15919 s%@exec_prefix@%$exec_prefix%g
15920 s%@prefix@%$prefix%g
15921 s%@program_transform_name@%$program_transform_name%g
15922 s%@bindir@%$bindir%g
15923 s%@sbindir@%$sbindir%g
15924 s%@libexecdir@%$libexecdir%g
15925 s%@datadir@%$datadir%g
15926 s%@sysconfdir@%$sysconfdir%g
15927 s%@sharedstatedir@%$sharedstatedir%g
15928 s%@localstatedir@%$localstatedir%g
15929 s%@libdir@%$libdir%g
15930 s%@includedir@%$includedir%g
15931 s%@oldincludedir@%$oldincludedir%g
15932 s%@infodir@%$infodir%g
15933 s%@mandir@%$mandir%g
15935 s%@blddir@%$blddir%g
15938 s%@start_flags@%$start_flags%g
15939 s%@ld_switch_shared@%$ld_switch_shared%g
15940 s%@start_files@%$start_files%g
15942 s%@lib_gcc@%$lib_gcc%g
15943 s%@RANLIB@%$RANLIB%g
15944 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
15945 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
15946 s%@INSTALL_DATA@%$INSTALL_DATA%g
15948 s%@SET_MAKE@%$SET_MAKE%g
15949 s%@GTK_CONFIG@%$GTK_CONFIG%g
15950 s%@X_CFLAGS@%$X_CFLAGS%g
15951 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
15952 s%@X_LIBS@%$X_LIBS%g
15953 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
15954 s%@install_pp@%$install_pp%g
15955 s%@libs_xauth@%$libs_xauth%g
15956 s%@dnd_objs@%$dnd_objs%g
15957 s%@lwlib_objs@%$lwlib_objs%g
15958 s%@ALLOCA@%$ALLOCA%g
15959 s%@have_esd_config@%$have_esd_config%g
15960 s%@dll_ld@%$dll_ld%g
15961 s%@dll_cflags@%$dll_cflags%g
15962 s%@dll_ldflags@%$dll_ldflags%g
15963 s%@dll_post@%$dll_post%g
15964 s%@dll_ldo@%$dll_ldo%g
15965 s%@ld_dynamic_link_flags@%$ld_dynamic_link_flags%g
15966 s%@SRC_SUBDIR_DEPS@%$SRC_SUBDIR_DEPS%g
15967 s%@INSTALL_ARCH_DEP_SUBDIR@%$INSTALL_ARCH_DEP_SUBDIR%g
15968 s%@MAKE_SUBDIR@%$MAKE_SUBDIR%g
15969 s%@SUBDIR_MAKEFILES@%$SUBDIR_MAKEFILES%g
15970 s%@PROGNAME@%$PROGNAME%g
15971 s%@version@%$version%g
15972 s%@configuration@%$configuration%g
15973 s%@canonical@%$canonical%g
15974 s%@inststaticdir@%$inststaticdir%g
15975 s%@instvardir@%$instvardir%g
15976 s%@srcdir@%$srcdir%g
15977 s%@pkgdir@%$pkgdir%g
15978 s%@statedir@%$statedir%g
15979 s%@extra_includes@%$extra_includes%g
15980 s%@PREFIX_USER_DEFINED@%$PREFIX_USER_DEFINED%g
15981 s%@PREFIX@%$PREFIX%g
15982 s%@EXEC_PREFIX_USER_DEFINED@%$EXEC_PREFIX_USER_DEFINED%g
15983 s%@EXEC_PREFIX@%$EXEC_PREFIX%g
15984 s%@INFODIR_USER_DEFINED@%$INFODIR_USER_DEFINED%g
15985 s%@INFODIR@%$INFODIR%g
15986 s%@infopath@%$infopath%g
15987 s%@INFOPATH_USER_DEFINED@%$INFOPATH_USER_DEFINED%g
15988 s%@INFOPATH@%$INFOPATH%g
15989 s%@package_path@%$package_path%g
15990 s%@PACKAGE_PATH_USER_DEFINED@%$PACKAGE_PATH_USER_DEFINED%g
15991 s%@PACKAGE_PATH@%$PACKAGE_PATH%g
15992 s%@lispdir@%$lispdir%g
15993 s%@LISPDIR_USER_DEFINED@%$LISPDIR_USER_DEFINED%g
15994 s%@LISPDIR@%$LISPDIR%g
15995 s%@moduledir@%$moduledir%g
15996 s%@MODULEDIR_USER_DEFINED@%$MODULEDIR_USER_DEFINED%g
15997 s%@MODULEDIR@%$MODULEDIR%g
15998 s%@sitelispdir@%$sitelispdir%g
15999 s%@SITELISPDIR_USER_DEFINED@%$SITELISPDIR_USER_DEFINED%g
16000 s%@SITELISPDIR@%$SITELISPDIR%g
16001 s%@sitemoduledir@%$sitemoduledir%g
16002 s%@SITEMODULEDIR_USER_DEFINED@%$SITEMODULEDIR_USER_DEFINED%g
16003 s%@SITEMODULEDIR@%$SITEMODULEDIR%g
16004 s%@etcdir@%$etcdir%g
16005 s%@ETCDIR_USER_DEFINED@%$ETCDIR_USER_DEFINED%g
16006 s%@ETCDIR@%$ETCDIR%g
16007 s%@docdir@%$docdir%g
16008 s%@DOCDIR_USER_DEFINED@%$DOCDIR_USER_DEFINED%g
16009 s%@DOCDIR@%$DOCDIR%g
16010 s%@archlibdir@%$archlibdir%g
16011 s%@ARCHLIBDIR_USER_DEFINED@%$ARCHLIBDIR_USER_DEFINED%g
16012 s%@ARCHLIBDIR@%$ARCHLIBDIR%g
16013 s%@bitmapdir@%$bitmapdir%g
16014 s%@extra_objs@%$extra_objs%g
16015 s%@machfile@%$machfile%g
16016 s%@opsysfile@%$opsysfile%g
16017 s%@c_switch_general@%$c_switch_general%g
16018 s%@c_switch_window_system@%$c_switch_window_system%g
16019 s%@c_switch_all@%$c_switch_all%g
16020 s%@ld_switch_general@%$ld_switch_general%g
16021 s%@ld_switch_window_system@%$ld_switch_window_system%g
16022 s%@ld_switch_all@%$ld_switch_all%g
16023 s%@ld_libs_general@%$ld_libs_general%g
16024 s%@ld_libs_window_system@%$ld_libs_window_system%g
16025 s%@ld_libs_all@%$ld_libs_all%g
16026 s%@RECURSIVE_MAKE@%$RECURSIVE_MAKE%g
16027 s%@native_sound_lib@%$native_sound_lib%g
16028 s%@sound_cflags@%$sound_cflags%g
16029 s%@dynodump_arch@%$dynodump_arch%g
16030 s%@XEMACS_CC@%$XEMACS_CC%g
16031 s%@internal_makefile_list@%$internal_makefile_list%g
16036 cat >> $CONFIG_STATUS <<\EOF
16038 # Split the substitutions into bite-sized pieces for seds with
16039 # small command number limits, like on Digital OSF/1 and HP-UX.
16040 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
16041 ac_file=1 # Number of current file.
16042 ac_beg=1 # First line for current file.
16043 ac_end=$ac_max_sed_cmds # Line after last line for current file.
16046 while $ac_more_lines; do
16047 if test $ac_beg -gt 1; then
16048 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
16050 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
16052 if test ! -s conftest.s$ac_file; then
16053 ac_more_lines=false
16054 rm -f conftest.s$ac_file
16056 if test -z "$ac_sed_cmds"; then
16057 ac_sed_cmds="sed -f conftest.s$ac_file"
16059 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
16061 ac_file=`expr $ac_file + 1`
16063 ac_end=`expr $ac_end + $ac_max_sed_cmds`
16066 if test -z "$ac_sed_cmds"; then
16071 cat >> $CONFIG_STATUS <<EOF
16073 CONFIG_FILES=\${CONFIG_FILES-"$ac_output_files"}
16075 cat >> $CONFIG_STATUS <<\EOF
16076 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
16077 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16079 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16080 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16081 *) ac_file_in="${ac_file}.in" ;;
16084 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
16086 # Remove last slash and all that follows it. Not all systems have dirname.
16087 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16088 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16089 # The file is in a subdirectory.
16090 test ! -d "$ac_dir" && mkdir "$ac_dir"
16091 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
16092 # A "../" for each directory in $ac_dir_suffix.
16093 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
16095 ac_dir_suffix= ac_dots=
16098 case "$ac_given_srcdir" in
16100 if test -z "$ac_dots"; then top_srcdir=.
16101 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
16102 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
16103 *) # Relative path.
16104 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
16105 top_srcdir="$ac_dots$ac_given_srcdir" ;;
16108 case "$ac_given_INSTALL" in
16109 [/$]*) INSTALL="$ac_given_INSTALL" ;;
16110 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
16113 echo creating "$ac_file"
16115 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
16117 *Makefile*) ac_comsub="1i\\
16118 # $configure_input" ;;
16122 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16124 s%@configure_input@%$configure_input%g
16125 s%@srcdir@%$srcdir%g
16126 s%@top_srcdir@%$top_srcdir%g
16127 s%@INSTALL@%$INSTALL%g
16128 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
16132 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16133 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16135 # ac_d sets the value in "#define NAME VALUE" lines.
16136 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16137 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
16140 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
16141 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16142 ac_uB='\([ ]\)%\1#\2define\3'
16145 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16146 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16147 ac_eB='$%\1#\2define\3'
16151 if test "${CONFIG_HEADERS+set}" != set; then
16153 cat >> $CONFIG_STATUS <<EOF
16154 CONFIG_HEADERS="src/config.h lwlib/config.h"
16156 cat >> $CONFIG_STATUS <<\EOF
16158 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
16159 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16161 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16162 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16163 *) ac_file_in="${ac_file}.in" ;;
16166 echo creating $ac_file
16168 rm -f conftest.frag conftest.in conftest.out
16169 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16170 cat $ac_file_inputs > conftest.in
16174 # Transform confdefs.h into a sed script conftest.vals that substitutes
16175 # the proper values into config.h.in to produce config.h. And first:
16176 # Protect against being on the right side of a sed subst in config.status.
16177 # Protect against being in an unquoted here document in config.status.
16178 rm -f conftest.vals
16179 cat > conftest.hdr <<\EOF
16182 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
16186 sed -n -f conftest.hdr confdefs.h > conftest.vals
16189 # This sed command replaces #undef with comments. This is necessary, for
16190 # example, in the case of _POSIX_SOURCE, which is predefined and required
16191 # on some systems where configure will not decide to define it.
16192 cat >> conftest.vals <<\EOF
16193 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
16196 # Break up conftest.vals because some shells have a limit on
16197 # the size of here documents, and old seds have small limits too.
16199 rm -f conftest.tail
16202 ac_lines=`grep -c . conftest.vals`
16203 # grep -c gives empty output for an empty file on some AIX systems.
16204 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
16205 # Write a limited-size here document to conftest.frag.
16206 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
16207 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
16209 sed -f conftest.frag conftest.in > conftest.out
16211 mv conftest.out conftest.in
16212 ' >> $CONFIG_STATUS
16213 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
16214 rm -f conftest.vals
16215 mv conftest.tail conftest.vals
16217 rm -f conftest.vals
16219 cat >> $CONFIG_STATUS <<\EOF
16220 rm -f conftest.frag conftest.h
16221 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
16222 cat conftest.in >> conftest.h
16224 if cmp -s $ac_file conftest.h 2>/dev/null; then
16225 echo "$ac_file is unchanged"
16228 # Remove last slash and all that follows it. Not all systems have dirname.
16229 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16230 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16231 # The file is in a subdirectory.
16232 test ! -d "$ac_dir" && mkdir "$ac_dir"
16235 mv conftest.h $ac_file
16240 cat >> $CONFIG_STATUS <<EOF
16242 top_srcdir="$srcdir"
16243 MAKE_SUBDIR="$MAKE_SUBDIR"
16246 cat >> $CONFIG_STATUS <<\EOF
16247 for dir in . $MAKE_SUBDIR; do
16252 sed -e '/^# Generated/d' \
16253 -e 's%/\*\*/#.*%%' \
16268 echo creating $dir/Makefile
16269 $CPP -I. -I${top_srcdir}/src junk.c \
16270 | sed -e 's/^\#.*//' \
16271 -e 's/^[ ][ ]*$//'\
16279 chmod 444 Makefile.new
16280 mv -f Makefile.new Makefile
16282 echo creating $dir/GNUmakefile
16283 $CPP -I. -I${top_srcdir}/src -DUSE_GNU_MAKE junk.c \
16284 | sed -e 's/^\#.*//' \
16285 -e 's/^[ ][ ]*$//'\
16293 chmod 444 Makefile.new
16294 mv -f Makefile.new GNUmakefile
16300 sed < config.status >> lib-src/config.values \
16301 -e '/{ac_dA}.*{ac_dB}.*{ac_dC}.*{ac_dD}$/!d' \
16302 -e 's/\${ac_dA}\(.*\)\${ac_dB}.*\${ac_dC}\(.*\)\${ac_dD}/\1 \2/' \
16303 -e 's/^\([^ ]*\) $/\1 ""/' \
16309 chmod +x $CONFIG_STATUS
16310 rm -fr confdefs* $ac_clean_files
16311 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1