3 #### Configuration script for XEmacs. Largely divergent from FSF.
4 #### Guess values for system-dependent variables and create Makefiles.
5 #### Generated automatically using autoconf version 2.13
6 #### Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 #### Copyright (C) 1993-1995 Board of Trustees, University of Illinois.
8 #### Copyright (C) 1996, 1997 Sun Microsystems, Inc.
9 #### Copyright (C) 1995, 1996 Ben Wing.
10 #### Copyright (C) 1998, 1999 J. Kean Johnston.
12 ### Don't edit this script!
13 ### This script was automatically generated by the `autoconf' program
14 ### from the file `./configure.in'.
15 ### To rebuild it, execute the command
17 ### in the this directory. You must have autoconf version 2.13 or later.
19 ### This file is part of XEmacs.
21 ### XEmacs is free software; you can redistribute it and/or modify it
22 ### under the terms of the GNU General Public License as published by
23 ### the Free Software Foundation; either version 2, or (at your
24 ### option) any later version.
26 ### XEmacs is distributed in the hope that it will be useful, but
27 ### WITHOUT ANY WARRANTY; without even the implied warranty of
28 ### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
29 ### General Public License for more details.
31 ### You should have received a copy of the GNU General Public License
32 ### along with XEmacs; see the file COPYING. If not, write to the Free
33 ### Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
36 ### For usage, run `./configure --help'
37 ### For more detailed information on building and installing XEmacs,
38 ### read the file `INSTALL'.
40 ### If configure succeeds, it leaves its status in config.status.
41 ### A log of configuration tests can be found in config.log.
42 ### If configure fails after disturbing the status quo,
43 ### config.status is removed.
46 --with-x use the X Window System"
50 if test -n "$ZSH_VERSION"; then
51 setopt NO_BAD_PATTERN NO_BANG_HIST NO_BG_NICE NO_EQUALS NO_FUNCTION_ARGZERO
52 setopt GLOB_SUBST NO_HUP INTERACTIVE_COMMENTS KSH_ARRAYS NO_MULTIOS NO_NOMATCH
53 setopt RM_STAR_SILENT POSIX_BUILTINS SH_FILE_EXPANSION SH_GLOB SH_OPTION_LETTERS
54 setopt SH_WORD_SPLIT BSD_ECHO IGNORE_BRACES
55 if test -n "$CDPATH"; then CDPATH="."; export CDPATH; fi
56 elif test -n "$BASH_VERSION"; then
60 if test -n "$CDPATH"; then CDPATH="."; export CDPATH; fi
71 program_transform_name=s,x,x,
82 SHELL=${CONFIG_SHELL-/bin/sh}
85 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
87 # File descriptor usage:
90 # 2 errors and warnings
91 # 3 some systems may open it to /dev/tty
92 # 4 used on the Kubota Titan
93 # 6 checking for... messages and results
94 # 5 compiler messages saved in config.log
95 if test "$silent" = yes; then
103 This file contains any messages produced by compilers while
104 running configure, to aid debugging if configure makes a mistake.
107 # Strip out --no-create and --no-recursion so they do not pile up.
108 # Also quote any args containing shell metacharacters.
113 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
114 | --no-cr | --no-c) ;;
115 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
116 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
117 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
118 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
119 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
124 # Only set these to C if already set. These must not be set unconditionally
125 # because not all systems understand e.g. LANG=C (notably SCO).
126 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
127 # Non-C LC_CTYPE values break the ctype check.
128 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
129 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
130 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
131 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
133 # confdefs.h avoids OS command line length limits that DEFS can exceed.
134 rm -rf conftest* confdefs.h
135 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
138 # A filename unique to this package, relative to the directory that
139 # configure is in, which we can look for to find out if srcdir is correct.
140 ac_unique_file=src/lisp.h
142 # Find the source files, if location was not specified.
143 if test -z "$srcdir"; then
144 ac_srcdir_defaulted=yes
145 # Try the directory containing this script, then its parent.
147 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
148 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
150 if test ! -r $srcdir/$ac_unique_file; then
154 ac_srcdir_defaulted=no
156 if test ! -r $srcdir/$ac_unique_file; then
157 if test "$ac_srcdir_defaulted" = yes; then
158 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
160 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
163 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
165 # Prefer explicitly selected file to automatically selected ones.
166 if test -z "$CONFIG_SITE"; then
167 if test "x$prefix" != xNONE; then
168 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
170 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
173 for ac_site_file in $CONFIG_SITE; do
174 if test -r "$ac_site_file"; then
175 echo "loading site script $ac_site_file"
182 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
183 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
184 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
185 ac_cpp='$CPP '"$xe_cppflags"
186 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
187 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
192 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
193 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
194 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
201 ac_n= ac_c='\c' ac_t=
205 progname="`echo $0 | sed 's:^\./\./:\./:'`"
208 MAKE_SUBDIR="$MAKE_SUBDIR lib-src" && if test "$extra_verbose" = "yes"; then echo " Appending \"lib-src\" to \$MAKE_SUBDIR"; fi
209 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
212 exec_prefix='${prefix}'
213 bindir='${exec_prefix}/bin'
214 datadir='${prefix}/lib'
215 statedir='${prefix}/lib'
216 libdir='${exec_prefix}/lib'
217 mandir='${prefix}/man/man1'
218 inststaticdir='${PROGNAME}'
219 instvardir='${PROGNAME}-${version}'
220 infodir='${datadir}/${instvardir}/info'
223 lispdir='${datadir}/${instvardir}/lisp'
224 moduledir='${datadir}/${instvardir}/${configuration}/modules'
225 sitelispdir='${datadir}/${inststaticdir}/site-lisp'
226 sitemoduledir='${datadir}/${inststaticdir}/site-modules'
227 pkgdir='${datadir}/${instvardir}/lisp'
229 etcdir='${datadir}/${instvardir}/etc'
230 archlibdir='${datadir}/${instvardir}/${configuration}'
231 docdir='${archlibdir}'
234 with_site_modules='yes'
240 cpp='' cppflags='' libs='' ldflags=''
246 with_system_malloc='default'
247 with_dlmalloc='default'
262 quoted_sed_magic=s/"'"/"'"'"'"'"'"'"'"/g
266 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
267 | --no-cr | --no-c) ;;
268 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
269 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
271 quoted_i="`echo '' $i | sed -e 's:^ ::' -e $quoted_sed_magic`"
272 quoted_arguments="$quoted_arguments '$quoted_i'" ;;
276 while test $# != 0; do
279 --no-create|--no-recursion) ;;
283 opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\([^=]*\)=.*$:\1:'`
284 val=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*[^=]*=\(.*\)$:\1:'`
288 opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\(.*\)$:\1:'`
289 val="yes" valomitted=yes
294 opt="`echo '' $opt | sed -e 's:^ ::' | tr - _`"
296 case "${valomitted}-${opt}" in yes-without_* )
297 opt=`echo $opt | sed 's/without/with/'`
298 valomitted="no" val="no" ;;
305 with_site_modules | \
357 memory_usage_stats | \
358 with_clash_detection | \
362 y | ye | yes ) val=yes ;;
364 * ) (echo "$progname: Usage error:"
365 echo " " "The \`--$optname' option requires a boolean value: \`yes' or \`no'."
366 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
368 eval "$opt=\"$val\"" ;;
386 site_runtime_libraries )
387 if test "$valomitted" = "yes" ; then
388 if test "$#" = 0 ; then
389 (echo "$progname: Usage error:"
390 echo " " "The \`--$optname' option requires a value."
391 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
400 with_debug_malloc | use_debug_malloc | \
401 with_system_malloc | use_system_malloc )
403 y | ye | yes ) val=yes ;;
405 d | de | def | defa | defau | defaul | default ) val=default ;;
406 * ) (echo "$progname: Usage error:"
407 echo " " "The \`--$optname' option requires one of these values:
408 \`yes', \`no', or \`default'."
409 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
411 case "$opt" in use_* ) opt="`echo $opt | sed s/use/with/`" ;; esac
416 with_database_berkdb=no
418 with_database_gdbm=no
419 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
422 b | be | ber | berk | berkd | berkdb ) with_database_berkdb=yes ;;
423 d | db | dbm ) with_database_dbm=yes ;;
424 g | gn | gnu | gnud | gnudb | gnudbm | gdbm) with_database_gdbm=yes ;;
425 * ) (echo "$progname: Usage error:"
426 echo " " "The \`--$optname' option value
427 must be either \`no' or a comma-separated list
428 of one or more of \`berkdb' and either \`dbm' or \`gnudbm'."
429 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
432 if test "$with_database_dbm" = "yes" -a \
433 "$with_database_gdbm" = "yes"; then
434 (echo "$progname: Usage error:"
435 echo " " "Only one of \`dbm' and \`gnudbm' may be specified
436 with the \`--$optname' option."
437 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
442 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
444 n | no | non | none ) new_sdefault=no ;;
445 a | al | all | both ) new_sdefault=yes ;;
447 native ) with_native_sound=yes ;;
448 nonative ) with_native_sound=no ;;
450 nas ) with_nas_sound=yes ;;
451 nonas ) with_nas_sound=no ;;
453 esd ) with_esd_sound=yes ;;
454 noesd ) with_esd_sound=no ;;
456 * ) bogus_sound=yes ;;
458 if test "$bogus_sound" -o \
459 \( -n "$new_sdefault" -a -n "$sound_notfirst" \) ; then
460 types="\`all', \`none', \`(no)native', \`no(nas)', \`(no)esd'."
461 (echo "$progname: Usage error:"
462 echo " " "Valid types for the \`--$optname' option are:
464 The default is to autodetect all sound support."
465 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
466 elif test -n "$new_sdefault" ; then
467 with_native_sound=$new_sdefault
468 with_nas_sound=$new_sdefault
469 with_esd_sound=$new_sdefault
470 new_sdefault= # reset this
478 xa | xaw ) val=xaw ;;
479 3 | 3d | xaw3d ) val=3d ;;
480 ne | nex | next | naxtaw) val=next ;;
481 9 | 95 | xaw95 ) val=95 ;;
482 xp | xpm | xawxpm ) val=xpm ;;
483 * ) (echo "$progname: Usage error:"
484 echo " " "The \`--$optname' option must have one of these values:
485 \`xaw', \`3d', \`next', \`95', or \`xpm'."
486 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
493 y | ye | yes ) val=yes ;;
494 n | no | non | none ) val=no ;;
495 x | xl | xli | xlib ) val=xlib ;;
496 m | mo | mot | moti | motif ) val=motif ;;
497 * ) (echo "$progname: Usage error:"
498 echo " " "The \`--$optname' option must have one of these values:
499 \`motif', \`xlib', \`yes', or \`no'."
500 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
509 file | dot ) val=file ;;
510 locking ) val=locking ;;
511 * ) (echo "$progname: Usage error:"
512 echo " " "The \`--$optname' option must have one of these values:
513 \`lockf', \`flock', \`file', \`locking', or \`mmdf'."
514 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
521 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
523 n | no | non | none ) new_default=no ;;
524 a | al | all ) new_default=yes ;;
526 extents ) error_check_extents=yes ;;
527 noextents ) error_check_extents=no ;;
529 typecheck ) error_check_typecheck=yes ;;
530 notypecheck ) error_check_typecheck=no ;;
532 bufpos ) error_check_bufpos=yes ;;
533 nobufpos ) error_check_bufpos=no ;;
535 gc ) error_check_gc=yes ;;
536 nogc ) error_check_gc=no ;;
538 malloc ) error_check_malloc=yes ;;
539 nomalloc ) error_check_malloc=no ;;
541 byte_code ) error_check_byte_code=yes ;;
542 nobyte_code ) error_check_byte_code=no ;;
544 glyphs ) error_check_glyphs=yes ;;
545 noglyphs ) error_check_glyphs=no ;;
547 * ) bogus_error_check=yes ;;
549 if test "$bogus_error_check" -o \
550 \( -n "$new_default" -a -n "$echeck_notfirst" \) ; then
551 if test "$error_check_default" = yes ; then
552 types="\`all' (default), \`none', \`noextents', \`notypecheck', \`nobufpos', \`nogc', \`nomalloc', \`noglyphs' and \`nobyte-code'."
554 types="\`all', \`none' (default), \`extents', \`typecheck', \`bufpos', \`gc', \`malloc', \`glyphs' and \`byte-code'."
556 (echo "$progname: Usage error:"
557 echo " " "Valid types for the \`--$optname' option are:
559 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
560 elif test -n "$new_default" ; then
561 error_check_extents=$new_default
562 error_check_typecheck=$new_default
563 error_check_bufpos=$new_default
564 error_check_gc=$new_default
565 error_check_malloc=$new_default
566 error_check_byte_code=$new_default
567 error_check_glyphs=$new_default
568 new_default= # reset this
575 prefix | exec_prefix | bindir | datadir | statedir | libdir | \
576 mandir | infodir | infopath | lispdir | etcdir | pkgdir | \
577 archlibdir | docdir | package_path )
578 if test "$valomitted" = "yes"; then
579 if test "$#" = 0; then
580 (echo "$progname: Usage error:"
581 echo " " "The \`--$optname' option requires a value."
582 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
589 exec_prefix ) { test "$extra_verbose" = "yes" && cat << \EOF
590 Defining EXEC_PREFIX_USER_DEFINED
592 cat >> confdefs.h <<\EOF
593 #define EXEC_PREFIX_USER_DEFINED 1
597 lispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
598 Defining LISPDIR_USER_DEFINED
600 cat >> confdefs.h <<\EOF
601 #define LISPDIR_USER_DEFINED 1
605 sitelispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
606 Defining SITELISPDIR_USER_DEFINED
608 cat >> confdefs.h <<\EOF
609 #define SITELISPDIR_USER_DEFINED 1
613 moduledir ) { test "$extra_verbose" = "yes" && cat << \EOF
614 Defining MODULEDIR_USER_DEFINED
616 cat >> confdefs.h <<\EOF
617 #define MODULEDIR_USER_DEFINED 1
621 etcdir ) { test "$extra_verbose" = "yes" && cat << \EOF
622 Defining ETCDIR_USER_DEFINED
624 cat >> confdefs.h <<\EOF
625 #define ETCDIR_USER_DEFINED 1
629 infodir ) { test "$extra_verbose" = "yes" && cat << \EOF
630 Defining INFODIR_USER_DEFINED
632 cat >> confdefs.h <<\EOF
633 #define INFODIR_USER_DEFINED 1
637 infopath ) { test "$extra_verbose" = "yes" && cat << \EOF
638 Defining INFOPATH_USER_DEFINED
640 cat >> confdefs.h <<\EOF
641 #define INFOPATH_USER_DEFINED 1
645 package_path ) { test "$extra_verbose" = "yes" && cat << \EOF
646 Defining PACKAGE_PATH_USER_DEFINED
648 cat >> confdefs.h <<\EOF
649 #define PACKAGE_PATH_USER_DEFINED 1
654 { test "$extra_verbose" = "yes" && cat << \EOF
655 Defining INFODIR_USER_DEFINED
657 cat >> confdefs.h <<\EOF
658 #define INFODIR_USER_DEFINED 1
662 { test "$extra_verbose" = "yes" && cat << \EOF
663 Defining LISPDIR_USER_DEFINED
665 cat >> confdefs.h <<\EOF
666 #define LISPDIR_USER_DEFINED 1
670 { test "$extra_verbose" = "yes" && cat << \EOF
671 Defining MODULEDIR_USER_DEFINED
673 cat >> confdefs.h <<\EOF
674 #define MODULEDIR_USER_DEFINED 1
678 { test "$extra_verbose" = "yes" && cat << \EOF
679 Defining ETCDIR_USER_DEFINED
681 cat >> confdefs.h <<\EOF
682 #define ETCDIR_USER_DEFINED 1
686 { test "$extra_verbose" = "yes" && cat << \EOF
687 Defining DOCDIR_USER_DEFINED
689 cat >> confdefs.h <<\EOF
690 #define DOCDIR_USER_DEFINED 1
694 { test "$extra_verbose" = "yes" && cat << \EOF
695 Defining ARCHLIBDIR_USER_DEFINED
697 cat >> confdefs.h <<\EOF
698 #define ARCHLIBDIR_USER_DEFINED 1
702 docdir ) { test "$extra_verbose" = "yes" && cat << \EOF
703 Defining DOCDIR_USER_DEFINED
705 cat >> confdefs.h <<\EOF
706 #define DOCDIR_USER_DEFINED 1
710 exec_prefix | libdir | archlibdir ) { test "$extra_verbose" = "yes" && cat << \EOF
711 Defining ARCHLIBDIR_USER_DEFINED
713 cat >> confdefs.h <<\EOF
714 #define ARCHLIBDIR_USER_DEFINED 1
723 "usage" | "help" ) ${PAGER-more} ${srcdir}/configure.usage; exit 0 ;;
726 "with_scrollbars" | \
730 l | lu | luc | luci | lucid ) val=lucid ;;
731 m | mo | mot | moti | motif ) val=motif ;;
732 a | at | ath | athe | athen | athena ) val=athena ;;
733 n | no | non | none ) val=no ;;
734 y | ye | yes ) val=yes ;;
735 m | ms | msw ) val=msw ;;
736 * ) (echo "$progname: Usage error:"
737 echo " " "The \`--$optname' option must have one of these values:
738 \`lucid', \`motif', \`athena', \`yes', or \`no'."
739 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
744 "use_minimal_tagbits" | \
745 "use_indexed_lrecord_implementation" | \
747 "const_is_losing" | \
749 echo "configure: warning: Obsolete option \`--$optname' ignored." 1>&2
752 * ) (echo "$progname: Usage error:"
753 echo " " "Unrecognized option: $arg"
754 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
759 *-*-*) configuration="$arg" ;;
761 *) (echo "$progname: Usage error:"
762 echo " " "Unrecognized argument: $arg"
763 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
769 test -n "$cpp" && CPP="$cpp"
770 test -n "$cppflags" && CPPFLAGS="$cppflags"
771 test -n "$libs" && LIBS="$libs"
772 test -n "$ldflags" && LDFLAGS="$ldflags"
774 eval set x "$quoted_arguments"; shift
776 test "$extra_verbose" = "yes" && verbose=yes
778 test -n "$with_x" && with_x11="$with_x"
780 if test "$with_purify" = "yes" -o "$with_quantify" = "yes"; then
781 test "$with_system_malloc" = "default" && with_system_malloc=yes
786 if test "$with_cde $with_tooltalk" = "yes no"; then
787 (echo "$progname: Usage error:"
788 echo " " "--with-cde requires --with-tooltalk"
789 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
790 elif test "$with_tooltalk" = "no" ; then with_cde=no
791 elif test "$with_cde" = "yes"; then with_tooltalk=yes
798 for dir in "`echo $0 | sed 's|//|/|' | sed 's|/[^/]*$||'`" "." ".." ; do
799 if test -f "$dir/src/lisp.h" -a \
800 -f "$dir/lisp/version.el" ; then
805 if test -z "$srcdir" ; then
806 (echo "$progname: Usage error:"
807 echo " " "Neither the current directory nor its parent seem to
808 contain the XEmacs sources. If you do not want to build XEmacs in its
809 source tree, you should run \`$progname' in the directory in which
810 you wish to build XEmacs, using the \`--srcdir' option to say where the
811 sources may be found."
812 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
817 if test ! -f "$srcdir/src/lisp.h" -o \
818 ! -f "$srcdir/lisp/version.el" ; then
819 (echo "$progname: Usage error:"
820 echo " " "The directory specified with the \`--srcdir' option,
821 \`$srcdir', doesn't seem to contain the XEmacs sources. You should
822 either run the \`$progname' script at the top of the XEmacs source
823 tree, or use the \`--srcdir' option to specify the XEmacs source directory."
824 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
829 if test -z "$configuration"; then
830 configuration=`${CONFIG_SHELL-/bin/sh} $srcdir/config.guess`
831 if test -z "$configuration"; then
832 (echo "$progname: Usage error:"
833 echo " " "XEmacs has not been ported to this host type.
834 Try explicitly specifying the CONFIGURATION when rerunning configure."
835 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
839 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
840 echo "configure:841: checking whether ln -s works" >&5
843 if ln -s X conftestdata 2>/dev/null
846 ac_cv_prog_LN_S="ln -s"
850 LN_S="$ac_cv_prog_LN_S"
851 if test "$ac_cv_prog_LN_S" = "ln -s"; then
852 echo "$ac_t""yes" 1>&6
854 echo "$ac_t""no" 1>&6
858 for dir in lisp etc man info tests; do
859 if test ! -d "$dir" ; then
860 echo Making symbolic link to "$srcdir/$dir"
861 ${LN_S} "$srcdir/$dir" "$dir"
866 absolute_pwd="`pwd`";
867 if test -n "$PWD" -a "`cd $PWD && pwd`" = "$absolute_pwd"
869 else blddir="$absolute_pwd"; if test -d "/net"; then
870 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi
871 blddir=`echo "$blddir" | \
872 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
879 . ) srcdir="$blddir" ;;
880 * ) srcdir="`cd $srcdir && pwd`"; if test -d "/net"; then
881 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi
882 srcdir=`echo "$srcdir" | \
883 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
887 if test `pwd` != `sh -c cd $srcdir && pwd` \
888 && test -f "$srcdir/src/config.h"; then
889 (echo "$progname: WARNING: The directory tree \`$srcdir' is being used"
890 echo " as a build directory right now; it has been configured in its own"
891 echo " right. To configure in another directory as well, you MUST"
892 echo " use GNU make. If you do not have GNU make, then you must"
893 echo " now do \`make distclean' in $srcdir,"
894 echo " and then run $progname again.") >&2
895 extrasub='/^VPATH[ ]*=/c\
901 vpath %.in $(srcdir)'
904 . "$srcdir/version.sh" || exit 1;
905 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
906 : "${extra_verbose=$beta}"
907 version="${emacs_major_version}.${emacs_minor_version}"
908 { test "$extra_verbose" = "yes" && cat << EOF
909 Defining EMACS_MAJOR_VERSION = $emacs_major_version
911 cat >> confdefs.h <<EOF
912 #define EMACS_MAJOR_VERSION $emacs_major_version
916 { test "$extra_verbose" = "yes" && cat << EOF
917 Defining EMACS_MINOR_VERSION = $emacs_minor_version
919 cat >> confdefs.h <<EOF
920 #define EMACS_MINOR_VERSION $emacs_minor_version
924 if test -n "$emacs_beta_version" ; then
925 if test "$beta" = "yes"; then
926 version="${version}-b${emacs_beta_version}"
927 { test "$extra_verbose" = "yes" && cat << EOF
928 Defining EMACS_BETA_VERSION = $emacs_beta_version
930 cat >> confdefs.h <<EOF
931 #define EMACS_BETA_VERSION $emacs_beta_version
936 version="${version}.${emacs_beta_version}"
937 { test "$extra_verbose" = "yes" && cat << EOF
938 Defining EMACS_PATCH_LEVEL = $emacs_beta_version
940 cat >> confdefs.h <<EOF
941 #define EMACS_PATCH_LEVEL $emacs_beta_version
947 { test "$extra_verbose" = "yes" && cat << EOF
948 Defining XEMACS_CODENAME = "$xemacs_codename"
950 cat >> confdefs.h <<EOF
951 #define XEMACS_CODENAME "$xemacs_codename"
955 { test "$extra_verbose" = "yes" && cat << EOF
956 Defining EMACS_VERSION = "$version"
958 cat >> confdefs.h <<EOF
959 #define EMACS_VERSION "$version"
964 if test "$with_infodock" = "yes"; then
965 if test ! -f ../../ID-INSTALL; then
966 echo "Cannot build InfoDock without InfoDock sources"
971 if test "$with_infodock" = "yes"; then
972 { test "$extra_verbose" = "yes" && cat << EOF
973 Defining INFODOCK_MAJOR_VERSION = $infodock_major_version
975 cat >> confdefs.h <<EOF
976 #define INFODOCK_MAJOR_VERSION $infodock_major_version
980 { test "$extra_verbose" = "yes" && cat << EOF
981 Defining INFODOCK_MINOR_VERSION = $infodock_minor_version
983 cat >> confdefs.h <<EOF
984 #define INFODOCK_MINOR_VERSION $infodock_minor_version
988 { test "$extra_verbose" = "yes" && cat << EOF
989 Defining INFODOCK_BUILD_VERSION = $infodock_build_version
991 cat >> confdefs.h <<EOF
992 #define INFODOCK_BUILD_VERSION $infodock_build_version
996 version=${infodock_major_version}.${infodock_minor_version}.${infodock_build_version}
998 CPPFLAGS="$CPPFLAGS -DINFODOCK"
1003 { test "$extra_verbose" = "yes" && cat << EOF
1004 Defining EMACS_PROGNAME = "$PROGNAME"
1006 cat >> confdefs.h <<EOF
1007 #define EMACS_PROGNAME "$PROGNAME"
1012 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
1013 test "${error_check_extents=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1014 Defining ERROR_CHECK_EXTENTS
1016 cat >> confdefs.h <<\EOF
1017 #define ERROR_CHECK_EXTENTS 1
1021 test "${error_check_typecheck=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1022 Defining ERROR_CHECK_TYPECHECK
1024 cat >> confdefs.h <<\EOF
1025 #define ERROR_CHECK_TYPECHECK 1
1029 test "${error_check_bufpos=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1030 Defining ERROR_CHECK_BUFPOS
1032 cat >> confdefs.h <<\EOF
1033 #define ERROR_CHECK_BUFPOS 1
1037 test "${error_check_gc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1038 Defining ERROR_CHECK_GC
1040 cat >> confdefs.h <<\EOF
1041 #define ERROR_CHECK_GC 1
1045 test "${error_check_malloc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1046 Defining ERROR_CHECK_MALLOC
1048 cat >> confdefs.h <<\EOF
1049 #define ERROR_CHECK_MALLOC 1
1053 test "${error_check_byte_code=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1054 Defining ERROR_CHECK_BYTE_CODE
1056 cat >> confdefs.h <<\EOF
1057 #define ERROR_CHECK_BYTE_CODE 1
1061 test "${error_check_glyphs=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1062 Defining ERROR_CHECK_GLYPHS
1064 cat >> confdefs.h <<\EOF
1065 #define ERROR_CHECK_GLYPHS 1
1069 if test "${debug:=$beta}" = "yes"; then
1070 use_assertions=yes memory_usage_stats=yes
1071 extra_objs="$extra_objs debug.o" && if test "$extra_verbose" = "yes"; then
1072 echo " xemacs will be linked with \"debug.o\""
1074 extra_objs="$extra_objs tests.o" && if test "$extra_verbose" = "yes"; then
1075 echo " xemacs will be linked with \"tests.o\""
1077 { test "$extra_verbose" = "yes" && cat << \EOF
1078 Defining DEBUG_XEMACS
1080 cat >> confdefs.h <<\EOF
1081 #define DEBUG_XEMACS 1
1086 test "$use_assertions" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
1087 Defining USE_ASSERTIONS
1089 cat >> confdefs.h <<\EOF
1090 #define USE_ASSERTIONS 1
1094 test "$memory_usage_stats" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
1095 Defining MEMORY_USAGE_STATS
1097 cat >> confdefs.h <<\EOF
1098 #define MEMORY_USAGE_STATS 1
1104 echo $ac_n "checking "host system type"""... $ac_c" 1>&6
1105 echo "configure:1106: checking "host system type"" >&5
1106 internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'`
1107 canonical=`${CONFIG_SHELL-/bin/sh} $srcdir/config.sub "$internal_configuration"`
1108 configuration=`echo "$configuration" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
1109 canonical=`echo "$canonical" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
1110 echo "$ac_t""$configuration" 1>&6
1118 case "$canonical" in
1119 sparc-*-* ) machine=sparc ;;
1120 alpha*-*-* ) machine=alpha ;;
1121 vax-*-* ) machine=vax ;;
1122 mips-dec-* ) machine=pmax ;;
1123 mips-sgi-irix6* ) machine=iris6d ;;
1124 mips-sgi-* ) machine=iris4d ;;
1125 mips*-linux ) machine=mips ;;
1126 romp-ibm-* ) machine=ibmrt ;;
1127 rs6000-ibm-aix* ) machine=ibmrs6000 ;;
1128 powerpc-ibm-aix* ) machine=ibmrs6000 ;;
1129 powerpc*-* ) machine=powerpc ;;
1130 hppa-*-* ) machine=hp800 ;;
1131 m88k-dg-* ) machine=aviion ;;
1132 m68*-sony-* ) machine=news ;;
1133 mips-sony-* ) machine=news-risc ;;
1134 clipper-* ) machine=clipper ;;
1135 arm* ) machine=arm ;;
1136 ns32k-* ) machine=ns32000 ;;
1139 case "$canonical" in
1140 *-*-linux* ) opsys=linux ;;
1141 *-*-netbsd* ) opsys=netbsd ;;
1142 *-*-openbsd* ) opsys=openbsd ;;
1143 *-*-nextstep* ) opsys=nextstep ;;
1144 *-*-vms ) opsys=vms ;;
1146 *-dec-osf1.3 | *-dec-osf2* ) opsys=decosf1-3 ;;
1147 *-dec-osf1.2 | *-dec-osf1* ) opsys=decosf1-2 ;;
1148 *-dec-osf3.[2-9] ) opsys=decosf3-2 ;;
1149 *-dec-osf3* ) opsys=decosf3-1 ;;
1150 *-dec-osf[4-9]* ) opsys=decosf4-0 ;;
1152 *-*-ultrix[0-3].* | *-*-ultrix4.0* ) opsys=bsd4-2 ;;
1153 *-*-ultrix4.[12]* ) opsys=bsd4-3 ;;
1154 *-*-ultrix* ) opsys=ultrix4-3 ;;
1156 *-*-aix3.1* ) opsys=aix3-1 ;;
1157 *-*-aix3.2.5 ) opsys=aix3-2-5 ;;
1158 *-*-aix3* ) opsys=aix3-2 ;;
1159 *-*-aix4.0* ) opsys=aix4 ;;
1160 *-*-aix4.1* ) opsys=aix4-1 ;;
1161 *-*-aix4* ) opsys=aix4-2 ;;
1163 *-gnu* ) opsys=gnu ;;
1164 *-*-bsd4.[01] ) opsys=bsd4-1 ;;
1165 *-*-bsd4.2 ) opsys=bsd4-2 ;;
1166 *-*-bsd4.3 ) opsys=bsd4-3 ;;
1167 *-*-aos4.2 ) opsys=bsd4-2 ;;
1168 *-*-aos* ) opsys=bsd4-3 ;;
1169 *-*-sysv0 | *-*-sysvr0 ) opsys=usg5-0 ;;
1170 *-*-sysv2 | *-*-sysvr2 ) opsys=usg5-2 ;;
1171 *-*-sysv2.2 | *-*-sysvr2.2 ) opsys=usg5-2-2 ;;
1172 *-*-sysv3* | *-*-sysvr3* ) opsys=usg5-3 ;;
1173 *-*-sysv4.1* | *-*-sysvr4.1* )opsys=usg5-4 NON_GNU_CPP=/usr/lib/cpp ;;
1174 *-*-sysv4.[2-9]* | *-sysvr4.[2-9]* )
1175 if test -z "$NON_GNU_CPP" ; then
1176 for prog in "/usr/ccs/lib/cpp" "/lib/cpp"; do
1177 if test -f "$prog"; then NON_GNU_CPP="$prog"; break; fi
1181 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
1182 *-*-mach_bsd4.3* ) opsys=mach-bsd4-3 ;;
1185 case "$canonical" in
1188 case "$canonical" in
1189 i[3-9]86-*-netbsd*) machine=intel386 ;;
1190 hp300-*-netbsd* | amiga-*-netbsd* | sun3-*-netbsd* | mac68k-*-netbsd* | da30-*-netbsd* | m68k-*-netbsd* )
1191 machine=hp9000s300 ;;
1192 pc532-*-netbsd* | ns32k-*-netbsd* ) machine=ns32000 ;;
1193 pmax-*-netbsd* | mips-*-netbsd* ) machine=pmax ;;
1198 case "${canonical}" in
1199 i386-*-openbsd*) machine=intel386 ;;
1200 m68k-*-openbsd*) machine=hp9000s300 ;;
1201 mipsel-*-openbsd*) machine=pmax ;;
1205 arm-acorn-riscix1.1* ) machine=acorn opsys=riscix1-1 ;;
1206 arm-acorn-riscix1.2* | arm-acorn-riscix ) machine=acorn opsys=riscix1-2 ;;
1208 fx80-alliant-* ) machine=alliant4 opsys=bsd4-2 ;;
1209 i860-alliant-* ) machine=alliant-2800 opsys=bsd4-3 ;;
1211 m68*-altos-sysv* ) machine=altos opsys=usg5-2 ;;
1213 580-amdahl-sysv* ) machine=amdahl opsys=usg5-2-2 ;;
1215 m68*-apollo-* ) machine=apollo opsys=bsd4-3 ;;
1217 we32k-att-sysv* ) machine=att3b opsys=usg5-2-2 ;;
1219 m68*-att-sysv* ) machine=7300 opsys=usg5-2-2 ;;
1221 rs6000-bull-bosx* ) machine=ibmrs6000 opsys=aix3-2 ;; # dpx20
1222 m68*-bull-sysv3* ) machine=dpx2 opsys=usg5-3 ;; # dpx2
1223 m68*-bull-sysv2* ) machine=sps7 opsys=usg5-2 ;; # sps7
1226 celerity-celerity-bsd* ) machine=celerity opsys=bsd4-2 ;;
1228 *-convex-bsd* | *-convex-convexos* )
1229 machine=convex opsys=bsd4-3
1230 NON_GNU_CPP="cc -E -P"
1233 i[3-9]86-cubix-sysv* ) machine=intel386 opsys=usg5-3 ;;
1235 i586-dg-dgux*R4* | i586-dg-dgux5.4.4* ) machine=aviion opsys=dgux5-4r4 ;;
1236 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) opsys=dgux5-4r3 ;;
1237 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) opsys=dgux5-4r2 ;;
1238 m88k-dg-dgux* ) opsys=dgux ;;
1240 m68k-motorola-sysv* | m68000-motorola-sysv* ) machine=delta opsys=usg5-3 ;;
1241 m88k-motorola-sysv4* )
1242 machine=delta88k opsys=usg5-4-2
1244 m88k-motorola-sysv* | m88k-motorola-m88kbcs* ) machine=delta88k opsys=usg5-3 ;;
1246 m68*-dual-sysv* ) machine=dual opsys=usg5-2 ;;
1247 m68*-dual-uniplus* ) machine=dual opsys=unipl5-2 ;;
1249 ns16k-encore-bsd* ) machine=ns16000 opsys=umax ;;
1251 pn-gould-bsd4.2* ) machine=gould opsys=bsd4-2 ;;
1252 pn-gould-bsd4.3* ) machine=gould opsys=bsd4-3 ;;
1253 np1-gould-bsd* ) machine=gould-np1 opsys=bsd4-3 ;;
1256 case "`uname -r`" in
1257 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
1258 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
1260 NON_GNU_CPP="/lib/cpp"
1262 m68k-harris-cxux* ) machine=nh3000 opsys=cxux ;;
1263 powerpc-harris-powerunix ) machine=nh6000 opsys=powerunix NON_GNU_CPP="cc -Xo -E -P" ;;
1265 xps*-honeywell-sysv* ) machine=xps100 opsys=usg5-2 ;;
1267 m68*-hp-bsd* ) machine=hp9000s300 opsys=bsd4-3 ;;
1270 case "$canonical" in
1271 m68* ) machine=hp9000s300 ;;
1272 hppa* ) machine=hp800 ;;
1275 case "$canonical" in
1276 *-hp-hpux7* ) opsys=hpux ;;
1277 *-hp-hpux8* ) opsys=hpux8 ;;
1278 *-hp-hpux9* ) opsys=hpux9 ;;
1279 *-hp-hpux10* ) opsys=hpux10 ;;
1280 *-hp-hpux11* ) opsys=hpux11 ;;
1284 case "$opsys" in hpux9 | hpux10 ) extra_objs="$extra_objs strcat.o" && if test "$extra_verbose" = "yes"; then
1285 echo " xemacs will be linked with \"strcat.o\""
1288 if test "$opsys" = "hpux10" -o "$opsys" = "hpux11"; then \
1289 ansi_flag="-Ae"; else ansi_flag="-Aa"; fi
1290 NON_GNU_CC="cc $ansi_flag" NON_GNU_CPP="cc $ansi_flag -E"
1292 case "$canonical" in *-hp-hpux*shr* ) opsys="${opsys}-shr" ;; esac
1295 orion-orion-bsd* ) machine=orion opsys=bsd4-2 ;;
1296 clipper-orion-bsd* ) machine=orion105 opsys=bsd4-2 ;;
1298 i[3-9]86-ibm-aix1.1* ) machine=ibmps2-aix opsys=usg5-2-2 ;;
1299 i[3-9]86-ibm-aix1.[23]* | i[3-9]86-ibm-aix* ) machine=ibmps2-aix opsys=usg5-3 ;;
1300 i370-ibm-aix*) machine=ibm370aix opsys=usg5-3 ;;
1301 romp-ibm-aos* ) opsys=bsd4-3 ;;
1302 romp-ibm-bsd* ) opsys=bsd4-3 ;;
1303 romp-ibm-mach* ) opsys=mach-bsd4-3 ;;
1305 m68*-isi-bsd4.2* ) machine=isi-ov opsys=bsd4-2 ;;
1306 m68*-isi-bsd4.3* ) machine=isi-ov opsys=bsd4-3 ;;
1308 i[3-9]86-intsys-sysv* ) machine=is386 opsys=usg5-2-2 ;;
1310 i[3-9]86-prime-sysv* ) machine=i386 opsys=usg5-3 ;;
1312 i[3-9]86-sequent-bsd* ) machine=symmetry opsys=bsd4-3 ;;
1314 i[3-9]86-sequent-ptx* ) machine=sequent-ptx opsys=ptx NON_GNU_CPP="/lib/cpp" ;;
1316 i[3-9]86-ncr-sysv* ) machine=ncr386 opsys=usg5-4-2 ;;
1318 i860-intel-osf1* ) machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp ;;
1320 i860-*-sysv4* ) machine=i860 opsys=usg5-4 NON_GNU_CC="/bin/cc" NON_GNU_CPP="/usr/ccs/lib/cpp" ;;
1322 m68*-masscomp-rtu* ) machine=masscomp opsys=rtu ;;
1324 m68*-megatest-bsd* ) machine=mega68 opsys=bsd4-2 ;;
1326 mips-mips-usg* ) machine=mips4 ;;
1329 NON_GNU_CC="cc -systype bsd43"
1330 NON_GNU_CPP="cc -systype bsd43 -E"
1331 case "$canonical" in
1332 mips-mips-riscos4* ) opsys=bsd4-3 ;;
1333 mips-mips-riscos5* ) opsys=riscos5 ;;
1336 mips-mips-bsd* ) machine=mips opsys=bsd4-3 ;;
1337 mips-mips-* ) machine=mips opsys=usg5-2-2 ;;
1339 m68*-next-* | m68k-*-nextstep* ) machine=m68k opsys=nextstep ;;
1341 ns32k-ns-genix* ) machine=ns32000 opsys=usg5-2 ;;
1343 m68*-ncr-sysv2* | m68*-ncr-sysvr2* ) machine=tower32 opsys=usg5-2-2 ;;
1344 m68*-ncr-sysv3* | m68*-ncr-sysvr3* ) machine=tower32v3 opsys=usg5-3 ;;
1346 m68*-nixdorf-sysv* ) machine=targon31 opsys=usg5-2-2 ;;
1348 m68*-nu-sysv* ) machine=nu opsys=usg5-2 ;;
1350 m68*-plexus-sysv* ) machine=plexus opsys=usg5-2 ;;
1352 pyramid-pyramid-bsd* ) machine=pyramid opsys=bsd4-2 ;;
1354 ns32k-sequent-bsd4.2* ) machine=sequent opsys=bsd4-2 ;;
1355 ns32k-sequent-bsd4.3* ) machine=sequent opsys=bsd4-3 ;;
1357 mips-siemens-sysv* | mips-sni-sysv*)
1358 machine=mips-siemens opsys=usg5-4
1359 NON_GNU_CC=/usr/ccs/bin/cc
1360 NON_GNU_CPP=/usr/ccs/lib/cpp
1365 NON_GNU_CC=/usr/ccs/bin/cc
1366 NON_GNU_CPP=/usr/ccs/lib/cpp
1369 m68*-sgi-iris3.5* ) machine=irist opsys=iris3-5 ;;
1370 m68*-sgi-iris3.6* | m68*-sgi-iris*) machine=irist opsys=iris3-6 ;;
1371 mips-sgi-irix3.* ) opsys=irix3-3 ;;
1372 mips-sgi-irix4.* ) opsys=irix4-0 ;;
1373 mips-sgi-irix6* ) opsys=irix6-0 ;;
1374 mips-sgi-irix5.1* ) opsys=irix5-1 ;;
1375 mips-sgi-irix5.2* ) opsys=irix5-2 ;;
1376 mips-sgi-irix5.* ) opsys=irix5-3 ;;
1377 mips-sgi-irix* ) opsys=irix5-0 ;;
1379 *-sony-newsos[34]* | *-sony-news[34]* ) opsys=bsd4-3 ;;
1380 *-sony-news* ) opsys=newsos5 ;;
1382 m68*-stride-sysv* ) machine=stride opsys=usg5-2 ;;
1384 *-*-solaris* | *-*-sunos* | *-sun-mach* | *-sun-bsd* )
1385 case "$canonical" in
1386 m68*-sunos1* ) machine=sun1 ;;
1387 m68*-sunos2* ) machine=sun2 ;;
1388 m68* ) machine=sun3 ;;
1389 i*86*-sun-sunos[34]* ) machine=sun386 ;;
1390 i*86-*-* ) machine=intel386 ;;
1391 rs6000* ) machine=rs6000 ;;
1394 case "$canonical" in *-sunos5*)
1395 canonical=`echo $canonical | sed -e s/sunos5/solaris2/`;;
1398 case "$canonical" in
1400 #test -f /usr/lib/cpp && NON_GNU_CPP=/usr/lib/cpp ;;
1403 #test -f /usr/ccs/lib/cpp && NON_GNU_CPP=/usr/ccs/lib/cpp
1407 case "$canonical" in
1410 os_release=`uname -r | sed -e 's/^\([0-9]\)\.\([0-9]\).*/\1\2/'`
1411 { test "$extra_verbose" = "yes" && cat << EOF
1412 Defining OS_RELEASE = $os_release
1414 cat >> confdefs.h <<EOF
1415 #define OS_RELEASE $os_release
1420 i*86-*-sunos4* ) opsys=sunos4-0 ;;
1421 *-sunos4.0* ) opsys=sunos4-0 ;;
1422 *-sunos4.1.2* ) opsys=sunos4-1-2 ;;
1423 *-sunos4.1.3* ) opsys=sunos4-1-3 ;;
1424 *-sunos4.1.[4-9]* ) opsys=sunos4-1-4 ;;
1425 *-sunos4* | *-sunos ) opsys=sunos4-1 ;;
1426 *-mach* ) opsys=mach-bsd4-3 ;;
1430 case "$canonical" in *-sunos4*shr* ) opsys="${opsys}-shr" ;; esac
1432 test "$opsys $CC" = "sol2 /usr/ucb/cc" && CC=""
1435 m68*-tadpole-sysv* ) machine=tad68k opsys=usg5-3 ;;
1437 tahoe-tahoe-bsd4.2* ) machine=tahoe opsys=bsd4-2 ;;
1438 tahoe-tahoe-bsd4.3* ) machine=tahoe opsys=bsd4-3 ;;
1440 mips-tandem-sysv* ) machine=tandem-s2 opsys=usg5-3 ;;
1442 m88k-tektronix-sysv3* ) machine=tekxd88 opsys=usg5-3 ;;
1444 ns16k-tektronix-bsd* ) machine=ns16000 opsys=bsd4-2 ;;
1445 m68*-tektronix-bsd* ) machine=tek4300 opsys=bsd4-3 ;;
1447 titan-titan-sysv* ) machine=titan opsys=usg5-3 ;;
1449 m68*-unisys-uniplus* ) machine=ustation opsystem=unipl5-2 ;;
1452 case "$canonical" in
1453 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
1454 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
1455 *-mach* ) opsys=mach-bsd4-3 ;;
1459 ns16k-whitechapel-* ) machine=mg1 ;;
1461 m68*-wicat-sysv* ) machine=wicat opsys=usg5-2 ;;
1465 case "$canonical" in
1466 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
1467 *-isc2.2* ) opsys=isc2-2 ;;
1468 *-isc4.0* ) opsys=isc4-0 ;;
1469 *-isc4.* ) opsys=isc4-1
1470 GCC_TEST_OPTIONS=-posix
1471 NON_GCC_TEST_OPTIONS=-Xp
1473 *-isc* ) opsys=isc3-0 ;;
1474 *-esix5* ) opsys=esix5r4 NON_GNU_CPP=/usr/lib/cpp ;;
1475 *-esix* ) opsys=esix ;;
1476 *-mach* ) opsys=mach-bsd4-3 ;;
1477 *-xenix* ) opsys=xenix ;;
1478 *-sco3.2v4* ) opsys=sco4 NON_GNU_CPP=/lib/cpp ;;
1479 *-bsd386* | *-bsdi1* ) opsys=bsd386 ;;
1480 *-bsdi4* ) opsys=bsdos4 ;;
1481 *-bsdi3* ) opsys=bsdos3 ;;
1482 *-bsdi2.1* ) opsys=bsdos2-1 ;;
1483 *-bsdi2* ) opsys=bsdos2 ;;
1484 *-sco3.2v5* ) opsys=sco5 ;
1485 if test "$dynamic" = "yes" ; then
1486 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE -D_SCO_ELF" ;
1488 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE" ;
1490 *-sysv5* ) opsys=sco7 ;;
1491 *-386bsd* ) opsys=386bsd ;;
1492 *-freebsd* ) opsys=freebsd ;;
1493 *-nextstep* ) opsys=nextstep ;;
1494 *-pc-cygwin* ) opsys=cygwin32 ;;
1495 *-pc-mingw* ) opsys=mingw32 ;
1496 test -z "$with_tty" && with_tty="no";;
1500 m68k-*-linux* ) machine=m68k opsys=linux ;;
1504 test -z "$machine" && machine=`echo $canonical | sed 's/-.*$//'`
1505 test -z "$opsys" && opsys=`echo $canonical | sed 's/^^-*-^-*-//'`
1507 if test -r "${srcdir}/src/m/${machine}.h"; then
1508 machfile="m/${machine}.h"
1509 { test "$extra_verbose" = "yes" && cat << EOF
1510 Defining config_machfile = "$machfile"
1512 cat >> confdefs.h <<EOF
1513 #define config_machfile "$machfile"
1518 echo "XEmacs has no builtin knowledge of \`$machine' machines."
1519 echo "Using configure-time autodetection only."
1522 if test -r "${srcdir}/src/s/${opsys}.h"; then
1523 opsysfile="s/${opsys}.h"
1524 { test "$extra_verbose" = "yes" && cat << EOF
1525 Defining config_opsysfile = "$opsysfile"
1527 cat >> confdefs.h <<EOF
1528 #define config_opsysfile "$opsysfile"
1533 echo "XEmacs has no builtin knowledge of \`$opsys' operating systems."
1534 echo "Using configure-time autodetection only."
1538 if test -z "$dynamic"; then
1540 hpux* | sunos4* ) dynamic=no ;;
1544 if test "$dynamic" = "yes"; then
1546 hpux* | sunos4* | sco5 ) opsys="${opsys}-shr" ;;
1547 decosf* ) ld_call_shared="-call_shared" ;;
1549 else case "$opsys" in
1551 echo "Static linking is not supported on Solaris 2."
1552 echo "Rerun configure without specifying --dynamic=no."
1554 linux ) ld_call_shared="-Bstatic" ;;
1555 decosf* ) ld_call_shared="-non_shared" ;;
1559 case "$opsys" in aix*) NON_GNU_CC=xlc ;; esac
1561 stack_trace_eye_catcher=`echo ${PROGNAME}_${version}_${canonical} | sed 'y/.-/__/'`
1562 { test "$extra_verbose" = "yes" && cat << EOF
1563 Defining STACK_TRACE_EYE_CATCHER = $stack_trace_eye_catcher
1565 cat >> confdefs.h <<EOF
1566 #define STACK_TRACE_EYE_CATCHER $stack_trace_eye_catcher
1572 test "$with_sparcworks" = "yes" && with_workshop=yes # compatibility alias
1573 if test "$with_workshop $with_tooltalk" = "yes no"; then
1574 (echo "$progname: Usage error:"
1575 echo " " "--with-workshop requires --with-tooltalk"
1576 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
1577 elif test "$with_tooltalk" = "no" ; then with_workshop=no
1578 elif test "$with_workshop" = "yes"; then with_tooltalk=yes
1581 if test "$with_workshop" = "yes"; then
1582 { test "$extra_verbose" = "yes" && cat << \EOF
1585 cat >> confdefs.h <<\EOF
1590 extra_objs="$extra_objs sunpro.o" && if test "$extra_verbose" = "yes"; then
1591 echo " xemacs will be linked with \"sunpro.o\""
1595 if test "$with_clash_detection" != "no"; then
1596 { test "$extra_verbose" = "yes" && cat << \EOF
1597 Defining CLASH_DETECTION
1599 cat >> confdefs.h <<\EOF
1600 #define CLASH_DETECTION 1
1604 extra_objs="$extra_objs filelock.o" && if test "$extra_verbose" = "yes"; then
1605 echo " xemacs will be linked with \"filelock.o\""
1609 test -n "$compiler" && CC="$compiler"
1610 if test "$with_gcc" = "no"; then case "$CC" in "" | *gcc* ) CC="${NON_GNU_CC-cc}" ;; esac
1613 test "${cflags-unset}" != unset && CFLAGS="$cflags"
1614 if test "${CFLAGS-unset}" != unset
1615 then cflags_specified=yes;
1616 else cflags_specified=no;
1619 xe_save_CFLAGS="$CFLAGS"
1621 # Extract the first word of "gcc", so it can be a program name with args.
1622 set dummy gcc; ac_word=$2
1623 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1624 echo "configure:1625: checking for $ac_word" >&5
1626 if test -n "$CC"; then
1627 ac_cv_prog_CC="$CC" # Let the user override the test.
1629 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1631 for ac_dir in $ac_dummy; do
1632 test -z "$ac_dir" && ac_dir=.
1633 if test -f $ac_dir/$ac_word; then
1641 if test -n "$CC"; then
1642 echo "$ac_t""$CC" 1>&6
1644 echo "$ac_t""no" 1>&6
1647 if test -z "$CC"; then
1648 # Extract the first word of "cc", so it can be a program name with args.
1649 set dummy cc; ac_word=$2
1650 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1651 echo "configure:1652: checking for $ac_word" >&5
1653 if test -n "$CC"; then
1654 ac_cv_prog_CC="$CC" # Let the user override the test.
1656 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1659 for ac_dir in $ac_dummy; do
1660 test -z "$ac_dir" && ac_dir=.
1661 if test -f $ac_dir/$ac_word; then
1662 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1663 ac_prog_rejected=yes
1671 if test $ac_prog_rejected = yes; then
1672 # We found a bogon in the path, so make sure we never use it.
1673 set dummy $ac_cv_prog_CC
1675 if test $# -gt 0; then
1676 # We chose a different compiler from the bogus one.
1677 # However, it has the same basename, so the bogon will be chosen
1678 # first if we set CC to just the basename; use the full file name.
1680 set dummy "$ac_dir/$ac_word" "$@"
1687 if test -n "$CC"; then
1688 echo "$ac_t""$CC" 1>&6
1690 echo "$ac_t""no" 1>&6
1693 if test -z "$CC"; then
1694 case "`uname -s`" in
1696 # Extract the first word of "cl", so it can be a program name with args.
1697 set dummy cl; ac_word=$2
1698 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1699 echo "configure:1700: checking for $ac_word" >&5
1701 if test -n "$CC"; then
1702 ac_cv_prog_CC="$CC" # Let the user override the test.
1704 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1706 for ac_dir in $ac_dummy; do
1707 test -z "$ac_dir" && ac_dir=.
1708 if test -f $ac_dir/$ac_word; then
1716 if test -n "$CC"; then
1717 echo "$ac_t""$CC" 1>&6
1719 echo "$ac_t""no" 1>&6
1724 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1727 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1728 echo "configure:1729: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1731 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1732 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1733 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1734 ac_cpp='$CPP '"$xe_cppflags"
1735 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1736 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1739 cat > conftest.$ac_ext << EOF
1741 #line 1742 "configure"
1742 #include "confdefs.h"
1746 if { (eval echo configure:1747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1747 ac_cv_prog_cc_works=yes
1748 # If we can't run a trivial program, we are probably using a cross compiler.
1749 if (./conftest; exit) 2>/dev/null; then
1750 ac_cv_prog_cc_cross=no
1752 ac_cv_prog_cc_cross=yes
1755 echo "configure: failed program was:" >&5
1756 cat conftest.$ac_ext >&5
1757 ac_cv_prog_cc_works=no
1761 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1762 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1763 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1764 ac_cpp='$CPP '"$xe_cppflags"
1765 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1766 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1769 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1770 if test $ac_cv_prog_cc_works = no; then
1771 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1773 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1774 echo "configure:1775: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1775 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1776 cross_compiling=$ac_cv_prog_cc_cross
1778 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1779 echo "configure:1780: checking whether we are using GNU C" >&5
1781 cat > conftest.c <<EOF
1786 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1787: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1792 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1794 if test $ac_cv_prog_gcc = yes; then
1800 ac_test_CFLAGS="${CFLAGS+set}"
1801 ac_save_CFLAGS="$CFLAGS"
1803 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1804 echo "configure:1805: checking whether ${CC-cc} accepts -g" >&5
1806 echo 'void f(){}' > conftest.c
1807 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1815 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1816 if test "$ac_test_CFLAGS" = set; then
1817 CFLAGS="$ac_save_CFLAGS"
1818 elif test $ac_cv_prog_cc_g = yes; then
1819 if test "$GCC" = yes; then
1825 if test "$GCC" = yes; then
1832 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then
1834 # Extract the first word of "gcc", so it can be a program name with args.
1835 set dummy gcc; ac_word=$2
1836 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1837 echo "configure:1838: checking for $ac_word" >&5
1839 if test -n "$CC"; then
1840 ac_cv_prog_CC="$CC" # Let the user override the test.
1842 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1844 for ac_dir in $ac_dummy; do
1845 test -z "$ac_dir" && ac_dir=.
1846 if test -f $ac_dir/$ac_word; then
1854 if test -n "$CC"; then
1855 echo "$ac_t""$CC" 1>&6
1857 echo "$ac_t""no" 1>&6
1860 if test -z "$CC"; then
1861 # Extract the first word of "cc", so it can be a program name with args.
1862 set dummy cc; ac_word=$2
1863 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1864 echo "configure:1865: checking for $ac_word" >&5
1866 if test -n "$CC"; then
1867 ac_cv_prog_CC="$CC" # Let the user override the test.
1869 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1872 for ac_dir in $ac_dummy; do
1873 test -z "$ac_dir" && ac_dir=.
1874 if test -f $ac_dir/$ac_word; then
1875 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1876 ac_prog_rejected=yes
1884 if test $ac_prog_rejected = yes; then
1885 # We found a bogon in the path, so make sure we never use it.
1886 set dummy $ac_cv_prog_CC
1888 if test $# -gt 0; then
1889 # We chose a different compiler from the bogus one.
1890 # However, it has the same basename, so the bogon will be chosen
1891 # first if we set CC to just the basename; use the full file name.
1893 set dummy "$ac_dir/$ac_word" "$@"
1900 if test -n "$CC"; then
1901 echo "$ac_t""$CC" 1>&6
1903 echo "$ac_t""no" 1>&6
1906 if test -z "$CC"; then
1907 case "`uname -s`" in
1909 # Extract the first word of "cl", so it can be a program name with args.
1910 set dummy cl; ac_word=$2
1911 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1912 echo "configure:1913: checking for $ac_word" >&5
1914 if test -n "$CC"; then
1915 ac_cv_prog_CC="$CC" # Let the user override the test.
1917 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1919 for ac_dir in $ac_dummy; do
1920 test -z "$ac_dir" && ac_dir=.
1921 if test -f $ac_dir/$ac_word; then
1929 if test -n "$CC"; then
1930 echo "$ac_t""$CC" 1>&6
1932 echo "$ac_t""no" 1>&6
1937 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1940 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1941 echo "configure:1942: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1944 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1945 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1946 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1947 ac_cpp='$CPP '"$xe_cppflags"
1948 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1949 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1952 cat > conftest.$ac_ext << EOF
1954 #line 1955 "configure"
1955 #include "confdefs.h"
1959 if { (eval echo configure:1960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1960 ac_cv_prog_cc_works=yes
1961 # If we can't run a trivial program, we are probably using a cross compiler.
1962 if (./conftest; exit) 2>/dev/null; then
1963 ac_cv_prog_cc_cross=no
1965 ac_cv_prog_cc_cross=yes
1968 echo "configure: failed program was:" >&5
1969 cat conftest.$ac_ext >&5
1970 ac_cv_prog_cc_works=no
1974 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1975 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1976 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1977 ac_cpp='$CPP '"$xe_cppflags"
1978 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1979 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1982 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1983 if test $ac_cv_prog_cc_works = no; then
1984 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1986 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1987 echo "configure:1988: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1988 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1989 cross_compiling=$ac_cv_prog_cc_cross
1991 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1992 echo "configure:1993: checking whether we are using GNU C" >&5
1994 cat > conftest.c <<EOF
1999 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2000: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2005 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2007 if test $ac_cv_prog_gcc = yes; then
2013 ac_test_CFLAGS="${CFLAGS+set}"
2014 ac_save_CFLAGS="$CFLAGS"
2016 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2017 echo "configure:2018: checking whether ${CC-cc} accepts -g" >&5
2019 echo 'void f(){}' > conftest.c
2020 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2028 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2029 if test "$ac_test_CFLAGS" = set; then
2030 CFLAGS="$ac_save_CFLAGS"
2031 elif test $ac_cv_prog_cc_g = yes; then
2032 if test "$GCC" = yes; then
2038 if test "$GCC" = yes; then
2045 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then
2047 # Extract the first word of "gcc", so it can be a program name with args.
2048 set dummy gcc; ac_word=$2
2049 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2050 echo "configure:2051: checking for $ac_word" >&5
2052 if test -n "$CC"; then
2053 ac_cv_prog_CC="$CC" # Let the user override the test.
2055 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2057 for ac_dir in $ac_dummy; do
2058 test -z "$ac_dir" && ac_dir=.
2059 if test -f $ac_dir/$ac_word; then
2067 if test -n "$CC"; then
2068 echo "$ac_t""$CC" 1>&6
2070 echo "$ac_t""no" 1>&6
2073 if test -z "$CC"; then
2074 # Extract the first word of "cc", so it can be a program name with args.
2075 set dummy cc; ac_word=$2
2076 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2077 echo "configure:2078: checking for $ac_word" >&5
2079 if test -n "$CC"; then
2080 ac_cv_prog_CC="$CC" # Let the user override the test.
2082 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2085 for ac_dir in $ac_dummy; do
2086 test -z "$ac_dir" && ac_dir=.
2087 if test -f $ac_dir/$ac_word; then
2088 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2089 ac_prog_rejected=yes
2097 if test $ac_prog_rejected = yes; then
2098 # We found a bogon in the path, so make sure we never use it.
2099 set dummy $ac_cv_prog_CC
2101 if test $# -gt 0; then
2102 # We chose a different compiler from the bogus one.
2103 # However, it has the same basename, so the bogon will be chosen
2104 # first if we set CC to just the basename; use the full file name.
2106 set dummy "$ac_dir/$ac_word" "$@"
2113 if test -n "$CC"; then
2114 echo "$ac_t""$CC" 1>&6
2116 echo "$ac_t""no" 1>&6
2119 if test -z "$CC"; then
2120 case "`uname -s`" in
2122 # Extract the first word of "cl", so it can be a program name with args.
2123 set dummy cl; ac_word=$2
2124 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2125 echo "configure:2126: checking for $ac_word" >&5
2127 if test -n "$CC"; then
2128 ac_cv_prog_CC="$CC" # Let the user override the test.
2130 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2132 for ac_dir in $ac_dummy; do
2133 test -z "$ac_dir" && ac_dir=.
2134 if test -f $ac_dir/$ac_word; then
2142 if test -n "$CC"; then
2143 echo "$ac_t""$CC" 1>&6
2145 echo "$ac_t""no" 1>&6
2150 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2153 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2154 echo "configure:2155: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2157 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2158 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2159 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
2160 ac_cpp='$CPP '"$xe_cppflags"
2161 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
2162 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2165 cat > conftest.$ac_ext << EOF
2167 #line 2168 "configure"
2168 #include "confdefs.h"
2172 if { (eval echo configure:2173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2173 ac_cv_prog_cc_works=yes
2174 # If we can't run a trivial program, we are probably using a cross compiler.
2175 if (./conftest; exit) 2>/dev/null; then
2176 ac_cv_prog_cc_cross=no
2178 ac_cv_prog_cc_cross=yes
2181 echo "configure: failed program was:" >&5
2182 cat conftest.$ac_ext >&5
2183 ac_cv_prog_cc_works=no
2187 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2188 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2189 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
2190 ac_cpp='$CPP '"$xe_cppflags"
2191 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
2192 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2195 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2196 if test $ac_cv_prog_cc_works = no; then
2197 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2199 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2200 echo "configure:2201: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2201 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2202 cross_compiling=$ac_cv_prog_cc_cross
2204 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2205 echo "configure:2206: checking whether we are using GNU C" >&5
2207 cat > conftest.c <<EOF
2212 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2213: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2218 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2220 if test $ac_cv_prog_gcc = yes; then
2226 ac_test_CFLAGS="${CFLAGS+set}"
2227 ac_save_CFLAGS="$CFLAGS"
2229 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2230 echo "configure:2231: checking whether ${CC-cc} accepts -g" >&5
2232 echo 'void f(){}' > conftest.c
2233 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2241 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2242 if test "$ac_test_CFLAGS" = set; then
2243 CFLAGS="$ac_save_CFLAGS"
2244 elif test $ac_cv_prog_cc_g = yes; then
2245 if test "$GCC" = yes; then
2251 if test "$GCC" = yes; then
2259 CFLAGS="$xe_save_CFLAGS"
2262 test -n "$CPP" -a -d "$CPP" && CPP=
2264 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP"
2266 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2267 echo "configure:2268: checking how to run the C preprocessor" >&5
2268 # On Suns, sometimes $CPP names a directory.
2269 if test -n "$CPP" && test -d "$CPP"; then
2272 if test -z "$CPP"; then
2274 # This must be in double quotes, not single quotes, because CPP may get
2275 # substituted into the Makefile and "${CC-cc}" will confuse make.
2277 # On the NeXT, cc -E runs the code through the compiler's parser,
2278 # not just through cpp.
2279 cat > conftest.$ac_ext <<EOF
2280 #line 2281 "configure"
2281 #include "confdefs.h"
2285 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2286 { (eval echo configure:2287: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2287 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2288 if test -z "$ac_err"; then
2292 echo "configure: failed program was:" >&5
2293 cat conftest.$ac_ext >&5
2295 CPP="${CC-cc} -E -traditional-cpp"
2296 cat > conftest.$ac_ext <<EOF
2297 #line 2298 "configure"
2298 #include "confdefs.h"
2302 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2303 { (eval echo configure:2304: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2304 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2305 if test -z "$ac_err"; then
2309 echo "configure: failed program was:" >&5
2310 cat conftest.$ac_ext >&5
2312 CPP="${CC-cc} -nologo -E"
2313 cat > conftest.$ac_ext <<EOF
2314 #line 2315 "configure"
2315 #include "confdefs.h"
2319 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2320 { (eval echo configure:2321: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2321 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2322 if test -z "$ac_err"; then
2326 echo "configure: failed program was:" >&5
2327 cat conftest.$ac_ext >&5
2336 ac_cv_prog_CPP="$CPP"
2337 CPP="$ac_cv_prog_CPP"
2339 ac_cv_prog_CPP="$CPP"
2341 echo "$ac_t""$CPP" 1>&6
2345 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2346 echo "configure:2347: checking for AIX" >&5
2347 cat > conftest.$ac_ext <<EOF
2348 #line 2349 "configure"
2349 #include "confdefs.h"
2355 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2356 egrep "yes" >/dev/null 2>&1; then
2358 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
2359 Defining _ALL_SOURCE
2361 cat >> confdefs.h <<\EOF
2362 #define _ALL_SOURCE 1
2368 echo "$ac_t""no" 1>&6
2374 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6
2375 echo "configure:2376: checking for GNU libc" >&5
2376 cat > conftest.$ac_ext <<EOF
2377 #line 2378 "configure"
2378 #include "confdefs.h"
2379 #include <features.h>
2382 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
2383 #error Not a GNU libc system :-(
2384 ******* ======= ******** &&&&&&&&
2389 if { (eval echo configure:2390: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2393 echo "configure: failed program was:" >&5
2394 cat conftest.$ac_ext >&5
2399 echo "$ac_t""$have_glibc" 1>&6
2400 test "$have_glibc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
2401 Defining _GNU_SOURCE
2403 cat >> confdefs.h <<\EOF
2404 #define _GNU_SOURCE 1
2411 { test "$extra_verbose" = "yes" && cat << \EOF
2412 Defining __EXTENSIONS__
2414 cat >> confdefs.h <<\EOF
2415 #define __EXTENSIONS__ 1
2419 if test "$os_release" -ge 55; then
2420 { test "$extra_verbose" = "yes" && cat << \EOF
2421 Defining _XOPEN_SOURCE = 500
2423 cat >> confdefs.h <<\EOF
2424 #define _XOPEN_SOURCE 500
2428 { test "$extra_verbose" = "yes" && cat << \EOF
2429 Defining _XOPEN_SOURCE_EXTENDED
2431 cat >> confdefs.h <<\EOF
2432 #define _XOPEN_SOURCE_EXTENDED 1
2438 { test "$extra_verbose" = "yes" && cat << \EOF
2439 Defining _POSIX_C_SOURCE = 199506L
2441 cat >> confdefs.h <<\EOF
2442 #define _POSIX_C_SOURCE 199506L
2446 { test "$extra_verbose" = "yes" && cat << \EOF
2447 Defining _XOPEN_SOURCE = 500
2449 cat >> confdefs.h <<\EOF
2450 #define _XOPEN_SOURCE 500
2454 { test "$extra_verbose" = "yes" && cat << \EOF
2455 Defining _XOPEN_SOURCE_EXTENDED
2457 cat >> confdefs.h <<\EOF
2458 #define _XOPEN_SOURCE_EXTENDED 1
2465 cat > conftest.$ac_ext <<EOF
2466 #line 2467 "configure"
2467 #include "confdefs.h"
2469 #if defined __SUNPRO_C
2471 #elif defined __DECC
2473 #elif defined __USLC__ && defined __SCO_VERSION__
2480 if { (eval echo configure:2481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
2485 echo "configure: failed program was:" >&5
2486 cat conftest.$ac_ext >&5
2488 case "$conftest_rc" in
2489 11) echo "You appear to be using the SunPro C compiler."; __SUNPRO_C=yes ;;
2490 12) echo "You appear to be using the DEC C compiler." ; __DECC=yes ;;
2491 13) echo "You appear to be using the SCO C compiler." ; __USLC__=yes ;;
2499 echo "Extracting information from the machine- and system-dependent headers..."
2501 tempcname="conftest.c"
2505 cat > $tempcname < confdefs.h
2506 cat >> $tempcname <<EOF
2508 #define C_SWITCH_SITE
2509 #define C_SWITCH_X_SITE
2510 #define LD_SWITCH_SITE
2511 #define LD_SWITCH_X_SITE
2512 #define LD_SWITCH_X_SITE_AUX
2513 #define OS_RELEASE $os_release
2515 #ifdef config_opsysfile
2516 #include "$srcdir/src/$opsysfile"
2519 #ifdef config_machfile
2520 #include "$srcdir/src/$machfile"
2523 #ifndef LIBS_MACHINE
2524 #define LIBS_MACHINE
2526 configure___ libs_machine=LIBS_MACHINE
2531 configure___ libs_system=LIBS_SYSTEM
2533 #ifndef LIBS_TERMCAP
2534 #define LIBS_TERMCAP
2536 configure___ libs_termcap=LIBS_TERMCAP
2538 #ifndef LIB_STANDARD
2539 #define LIB_STANDARD
2541 configure___ libs_standard=LIB_STANDARD
2544 #ifndef OBJECTS_MACHINE
2545 #define OBJECTS_MACHINE
2547 configure___ objects_machine=OBJECTS_MACHINE
2549 #ifndef OBJECTS_SYSTEM
2550 #define OBJECTS_SYSTEM
2552 configure___ objects_system=OBJECTS_SYSTEM
2555 #ifndef C_SWITCH_MACHINE
2556 #define C_SWITCH_MACHINE
2558 configure___ c_switch_machine=C_SWITCH_MACHINE
2560 #ifndef C_SWITCH_SYSTEM
2561 #define C_SWITCH_SYSTEM
2563 configure___ c_switch_system=C_SWITCH_SYSTEM
2566 #ifndef LD_SWITCH_MACHINE
2567 #define LD_SWITCH_MACHINE
2569 configure___ ld_switch_machine=LD_SWITCH_MACHINE
2571 #ifndef LD_SWITCH_SYSTEM
2572 #define LD_SWITCH_SYSTEM
2574 configure___ ld_switch_system=LD_SWITCH_SYSTEM
2578 #define UNEXEC "unexec.o"
2580 configure___ unexec=UNEXEC
2583 #ifndef LD_SWITCH_SHARED
2584 #define LD_SWITCH_SHARED "-c"
2586 configure___ ld_switch_shared=LD_SWITCH_SHARED
2589 #define ORDINARY_LD "\$(CC) \$(CFLAGS)"
2590 configure___ ordinary_ld=ORDINARY_LD
2592 #ifdef ORDINARY_LINK
2593 #define LD ORDINARY_LD
2594 #else /* no ORDINARY LINK */
2595 #ifdef COFF_ENCAPSULATE
2596 #define LD "\$(CC) -nostdlib"
2597 #else /* not COFF_ENCAPSULATE */
2600 #else /* ! defined (LINKER) */
2602 #endif /* ! defined (LINKER) */
2603 #endif /* ! defined (COFF_ENCAPSULATE) */
2604 #endif /* not ORDINARY_LINK */
2610 configure___ lib_gcc=LIB_GCC
2612 #ifndef LD_TEXT_START_ADDR
2613 #define LD_TEXT_START_ADDR
2615 configure___ ld_text_start_addr=LD_TEXT_START_ADDR
2618 #if ! defined (ORDINARY_LINK) && !defined (START_FILES)
2620 #ifdef COFF_ENCAPSULATE
2621 #define START_FILES "pre-crt0.o /usr/local/lib/gcc-crt0.o"
2622 #else /* ! defined (COFF_ENCAPSULATE) */
2623 #define START_FILES "pre-crt0.o /lib/crt0.o"
2624 #endif /* ! defined (COFF_ENCAPSULATE) */
2625 #else /* ! defined (NO_REMAP) */
2626 #define START_FILES "ecrt0.o"
2627 #endif /* ! defined (NO_REMAP) */
2628 #endif /* no ORDINARY_LINK */
2632 configure___ start_files=START_FILES
2634 #ifdef ORDINARY_LINK
2635 configure___ ordinary_link=yes
2637 configure___ ordinary_link=no
2640 #ifdef SYSTEM_MALLOC
2641 configure___ system_malloc=yes
2643 configure___ system_malloc=no
2647 configure___ have_terminfo=yes
2649 configure___ have_terminfo=no
2652 #ifdef MAIL_USE_FLOCK
2653 configure___ mail_use_flock=yes
2655 configure___ mail_use_flock=no
2658 #ifdef MAIL_USE_LOCKF
2659 configure___ mail_use_lockf=yes
2661 configure___ mail_use_lockf=no
2664 #ifdef MAIL_USE_LOCKING
2665 configure___ mail_use_locking=yes
2667 configure___ mail_use_locking=no
2670 #ifdef HAVE_WIN32_PROCESSES
2671 configure___ win32_processes=yes
2673 configure___ win32_processes=no
2678 CPP=`eval "echo $CPP $CPPFLAGS"`
2679 eval `$CPP -Isrc $tempcname \
2680 | sed -n -e "s/[ ]*=[ \"]*/='/" -e "s/[ \"]*\$/'/" -e "s/^configure___//p"`
2684 if test "$pdump" = "yes"; then
2693 test "$extra_verbose" = "yes" && \
2694 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 ""
2696 case "$opsys" in mingw* | cygwin*)
2697 cygwin_include=`eval "gcc -print-file-name=libc.a"` ;
2698 cygwin_include=`eval "dirname $cygwin_include"` ;
2699 cygwin_include="-I$cygwin_include/../include" ;
2700 extra_includes="$cygwin_include/mingw32 $cygwin_include/mingw $cygwin_include" ;
2701 case "$opsys" in mingw*)
2702 c_switch_system="$c_switch_system $extra_includes" && if test "$extra_verbose" = "yes"; then echo " Appending \"$extra_includes\" to \$c_switch_system"; fi ;;
2707 test "$ordinary_link" = "no" -a -z "$libs_standard" && libs_standard="-lc"
2710 test "$__DECC" = "yes" && c_switch_site="$c_switch_site -std1" && if test "$extra_verbose" = "yes"; then echo " Appending \"-std1\" to \$c_switch_site"; fi
2712 if test "$__USLC__" = yes; then
2713 echo $ac_n "checking for whether the -Kalloca compiler flag is needed""... $ac_c" 1>&6
2714 echo "configure:2715: checking for whether the -Kalloca compiler flag is needed" >&5
2716 cat > conftest.$ac_ext <<EOF
2717 #line 2718 "configure"
2718 #include "confdefs.h"
2721 void *x = alloca(4);
2724 if { (eval echo configure:2725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2728 echo "configure: failed program was:" >&5
2729 cat conftest.$ac_ext >&5
2732 xe_save_c_switch_system="$c_switch_system"
2733 c_switch_system="$c_switch_system -Kalloca"
2734 cat > conftest.$ac_ext <<EOF
2735 #line 2736 "configure"
2736 #include "confdefs.h"
2739 void *x = alloca(4);
2742 if { (eval echo configure:2743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2746 echo "configure: failed program was:" >&5
2747 cat conftest.$ac_ext >&5
2750 c_switch_system="$xe_save_c_switch_system"
2753 echo "$ac_t""$need_kalloca" 1>&6
2754 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
2757 if test "$cflags_specified" = "no"; then
2758 if test "$GCC" = "yes"; then
2759 CFLAGS="-g -O3 -Wall -Wno-switch -Winline -Wmissing-prototypes -Wshadow"
2760 test "$have_glibc" != "yes" && CFLAGS="$CFLAGS -Wpointer-arith"
2761 elif test "$__SUNPRO_C" = "yes"; then
2763 sol2 ) CFLAGS="-v -xO4" ;;
2764 sunos4* ) CFLAGS="-xO2";;
2766 elif test "$__DECC" = "yes"; then
2768 elif test "$CC" = "xlc"; then
2769 CFLAGS="-g -O3 -qstrict -qnoansialias -qlibansi -qinfo -qro -qmaxmem=20000"
2774 if test "$GCC" = "yes"; then
2775 echo $ac_n "checking for buggy gcc versions""... $ac_c" 1>&6
2776 echo "configure:2777: checking for buggy gcc versions" >&5
2777 GCC_VERSION=`$CC --version`
2778 case `uname -s`:`uname -m`:$GCC_VERSION in
2779 *:sun4*:2.8.1|*:sun4*:egcs-2.90.*)
2783 *-fno-schedule-insns*) ;;
2785 echo "$ac_t""yes" 1>&6
2786 echo "configure: warning: Don't use -O2 with gcc 2.8.1 and egcs 1.0 under SPARC architectures" 1>&2
2787 echo "configure: warning: without also using -fno-schedule-insns." 1>&2
2788 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2794 Linux:alpha:egcs-2.91.*)
2795 echo "$ac_t""yes" 1>&6
2796 echo "configure: warning: There have been reports of egcs-1.1 not compiling XEmacs correctly on" 1>&2
2797 echo "configure: warning: Alpha Linux. There have also been reports that egcs-1.0.3a is O.K." 1>&2
2798 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2803 case "$GCC_VERSION" in
2806 *-fno-strength-reduce*) ;;
2808 echo "$ac_t""yes" 1>&6
2809 echo "configure: warning: Don't use -O2 with gcc 2.7.2 under Intel/XXX without also using" 1>&2
2810 echo "configure: warning: -fno-strength-reduce." 1>&2
2811 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2817 *-fno-caller-saves*) ;;
2819 echo "$ac_t""yes" 1>&6
2820 echo "configure: warning: Don't use -O2 with gcc 2.7.2 under Intel/XXX without also using" 1>&2
2821 echo "configure: warning: -fno-caller-saves." 1>&2
2822 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2829 echo "$ac_t""no" 1>&6
2833 if test "$GCC" = "yes"; then
2834 set x $ld_switch_system; shift; ld_switch_system=""
2835 while test -n "$1"; do
2837 -L | -l | -u ) ld_switch_system="$ld_switch_system $1 $2"; shift ;;
2838 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_system="$ld_switch_system $1" ;;
2840 * ) ld_switch_system="$ld_switch_system -Xlinker $1" ;;
2846 if test "$GCC" = "yes"; then
2847 set x $ld_switch_machine; shift; ld_switch_machine=""
2848 while test -n "$1"; do
2850 -L | -l | -u ) ld_switch_machine="$ld_switch_machine $1 $2"; shift ;;
2851 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_machine="$ld_switch_machine $1" ;;
2853 * ) ld_switch_machine="$ld_switch_machine -Xlinker $1" ;;
2859 if test "$GCC" = "yes"; then
2860 set x $LDFLAGS; shift; LDFLAGS=""
2861 while test -n "$1"; do
2863 -L | -l | -u ) LDFLAGS="$LDFLAGS $1 $2"; shift ;;
2864 -L* | -l* | -u* | -Wl* | -pg ) LDFLAGS="$LDFLAGS $1" ;;
2866 * ) LDFLAGS="$LDFLAGS -Xlinker $1" ;;
2872 if test "$GCC" = "yes"; then
2873 set x $ld_call_shared; shift; ld_call_shared=""
2874 while test -n "$1"; do
2876 -L | -l | -u ) ld_call_shared="$ld_call_shared $1 $2"; shift ;;
2877 -L* | -l* | -u* | -Wl* | -pg ) ld_call_shared="$ld_call_shared $1" ;;
2879 * ) ld_call_shared="$ld_call_shared -Xlinker $1" ;;
2885 test -n "$objects_machine" && extra_objs="$extra_objs $objects_machine" && if test "$extra_verbose" = "yes"; then
2886 echo " xemacs will be linked with \"$objects_machine\""
2888 test -n "$objects_system" && extra_objs="$extra_objs $objects_system" && if test "$extra_verbose" = "yes"; then
2889 echo " xemacs will be linked with \"$objects_system\""
2891 test -n "$unexec" && test ! "$pdump" = "yes" && extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then
2892 echo " xemacs will be linked with \"$unexec\""
2894 test "$pdump" = "yes" && extra_objs="$extra_objs dumper.o" && if test "$extra_verbose" = "yes"; then
2895 echo " xemacs will be linked with \"dumper.o\""
2898 echo $ac_n "checking for dynodump""... $ac_c" 1>&6
2899 echo "configure:2900: checking for dynodump" >&5
2900 if test "$unexec" != "unexsol2.o"; then
2901 echo "$ac_t""no" 1>&6
2903 echo "$ac_t""yes" 1>&6
2904 { test "$extra_verbose" = "yes" && cat << \EOF
2907 cat >> confdefs.h <<\EOF
2912 MAKE_SUBDIR="$MAKE_SUBDIR dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$MAKE_SUBDIR"; fi
2913 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$SRC_SUBDIR_DEPS"; fi
2915 sparc ) dynodump_arch=sparc ;;
2916 *86* ) dynodump_arch=i386 ;;
2917 powerpc ) dynodump_arch=ppc ;;
2919 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
2923 test "$machine$opsys" = "powerpclinux" && start_flags="-T $srcdir/src/ppc.ldscript"
2925 if test "$unexec" = "unexaix.o"; then
2926 if test "$dynamic" = "no"; then
2927 start_flags="-Wl,-bnso,-bnodelcsect"
2928 test "$GCC" = "yes" && start_flags="-B/bin/ ${start_flags}"
2929 for f in "/lib/syscalls.exp" "/lib/threads.exp"; do
2930 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; fi
2932 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do
2933 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi
2936 echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6
2937 echo "configure:2938: checking for terminateAndUnload in -lC" >&5
2938 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'`
2940 xe_check_libs=" -lC "
2941 cat > conftest.$ac_ext <<EOF
2942 #line 2943 "configure"
2943 #include "confdefs.h"
2944 /* Override any gcc2 internal prototype to avoid an error. */
2945 /* We use char because int might match the return type of a gcc2
2946 builtin and then its argument prototype would still apply. */
2947 char terminateAndUnload();
2950 terminateAndUnload()
2953 if { (eval echo configure:2954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2955 eval "ac_cv_lib_$ac_lib_var=yes"
2957 echo "configure: failed program was:" >&5
2958 cat conftest.$ac_ext >&5
2960 eval "ac_cv_lib_$ac_lib_var=no"
2965 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
2966 echo "$ac_t""yes" 1>&6
2967 libs_system="$libs_system -lC" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lC\" to \$libs_system"; fi
2969 echo "$ac_t""no" 1>&6
2974 elif test -n "$ld_text_start_addr"; then
2975 start_flags="-T $ld_text_start_addr -e __start"
2981 if test "$ordinary_link" = "no" -a "$GCC" = "yes"; then
2982 test -z "$linker" && linker='$(CC) -nostdlib'
2983 test -z "$lib_gcc" && lib_gcc='`$(CC) -print-libgcc-file-name`'
2985 test "$GCC" != "yes" && lib_gcc=
2991 case "$site_libraries" in *:* ) site_libraries="`echo '' $site_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
2992 if test -n "$site_libraries"; then
2993 for arg in $site_libraries; do
2996 * ) test -d "$arg" || \
2997 { echo "Error:" "Invalid site library \`$arg': no such directory" >&2; exit 1; }
3000 ld_switch_site="$ld_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$ld_switch_site"; fi
3004 case "$site_includes" in *:* ) site_includes="`echo '' $site_includes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
3005 if test -n "$site_includes"; then
3006 for arg in $site_includes; do
3009 * ) test -d "$arg" || \
3010 { echo "Error:" "Invalid site include \`$arg': no such directory" >&2; exit 1; }
3013 c_switch_site="$c_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$c_switch_site"; fi
3017 case "$site_prefixes" in *:* ) site_prefixes="`echo '' $site_prefixes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
3018 if test -n "$site_prefixes"; then
3019 for dir in $site_prefixes; do
3020 lib_dir="${dir}/lib"
3021 inc_dir="${dir}/include"
3022 if test ! -d "$dir"; then
3023 { echo "Error:" "Invalid site prefix \`$dir': no such directory" >&2; exit 1; }
3024 elif test ! -d "$lib_dir"; then
3025 { echo "Error:" "Invalid site prefix \`$dir': no such directory \`$lib_dir'" >&2; exit 1; }
3027 if test -d "$inc_dir"; then
3028 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
3030 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
3036 for dir in "/usr/ccs/lib"; do
3037 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
3040 case "$site_runtime_libraries" in *:* ) site_runtime_libraries="`echo '' $site_runtime_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
3041 if test -n "$site_runtime_libraries"; then
3042 LD_RUN_PATH="`echo $site_runtime_libraries | sed -e 's/ */:/g'`"
3050 if test -n "$add_runtime_path"; then :;
3051 elif test "$dynamic" = "no"; then add_runtime_path=no
3052 elif test -n "$LD_RUN_PATH"; then add_runtime_path=yes
3053 else case "$opsys" in
3054 sol2 | irix* | *bsd* | decosf* ) add_runtime_path=yes ;;
3055 * ) add_runtime_path=no ;;
3059 if test "$add_runtime_path" = "yes"; then
3060 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6
3061 echo "configure:3062: checking "for runtime libraries flag"" >&5
3063 sol2 ) dash_r="-R" ;;
3064 decosf* | linux* | irix*) dash_r="-rpath " ;;
3067 for try_dash_r in "-R" "-R " "-rpath "; do
3068 xe_check_libs="${try_dash_r}/no/such/file-or-directory"
3070 if test "$GCC" = "yes"; then
3071 set x $xe_check_libs; shift; xe_check_libs=""
3072 while test -n "$1"; do
3074 -L | -l | -u ) xe_check_libs="$xe_check_libs $1 $2"; shift ;;
3075 -L* | -l* | -u* | -Wl* | -pg ) xe_check_libs="$xe_check_libs $1" ;;
3077 * ) xe_check_libs="$xe_check_libs -Xlinker $1" ;;
3082 cat > conftest.$ac_ext <<EOF
3083 #line 3084 "configure"
3084 #include "confdefs.h"
3090 if { (eval echo configure:3091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3092 dash_r="$try_dash_r"
3094 echo "configure: failed program was:" >&5
3095 cat conftest.$ac_ext >&5
3099 test -n "$dash_r" && break
3102 if test -n "$dash_r";
3103 then echo "$ac_t"""\"${dash_r}\""" 1>&6
3104 else echo "$ac_t""NONE" 1>&6
3108 xe_add_unique_runpath_dir='
3110 for xe_dir in $runpath_dirs; do test "$xe_dir" = "$xe_runpath_dir" && xe_add_p=no
3112 if test "$xe_add_p" = "yes"; then
3113 test -n "$runpath" && runpath="${runpath}:"
3114 runpath="${runpath}${xe_runpath_dir}"
3115 runpath_dirs="$runpath_dirs $xe_runpath_dir"
3121 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
3122 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
3123 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
3125 runpath="" runpath_dirs=""
3126 if test -n "$LD_RUN_PATH"; then
3127 runpath="$LD_RUN_PATH"
3128 elif test "$GCC" = "yes"; then
3129 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
3130 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
3131 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
3132 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
3133 case "$arg" in P,* | -L* | -R* )
3134 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
3136 xe_runpath_dir="$dir"
3137 test "$xe_runpath_dir" != "/lib" -a \
3138 "$xe_runpath_dir" != "/usr/lib" -a \
3139 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
3140 eval "$xe_add_unique_runpath_dir"
3145 ld_switch_run="$ld_switch_run_save"
3148 for arg in $ld_switch_site $ld_switch_x_site; do
3149 case "$arg" in -L*) {
3150 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
3151 test "$xe_runpath_dir" != "/lib" -a \
3152 "$xe_runpath_dir" != "/usr/lib" -a \
3153 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
3154 eval "$xe_add_unique_runpath_dir"
3157 if test "$opsys $need_motif" = "sol2 yes"; then
3158 xe_runpath_dir="/opt/SUNWdt/lib";
3159 eval "$xe_add_unique_runpath_dir";
3162 if test -n "$runpath"; then
3163 ld_switch_run="${dash_r}${runpath}"
3165 if test "$GCC" = "yes"; then
3166 set x $ld_switch_run; shift; ld_switch_run=""
3167 while test -n "$1"; do
3169 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
3170 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
3172 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
3177 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
3185 if test "$with_dlmalloc" != "no"; then
3190 after_morecore_hook_exists=yes
3191 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
3192 echo "configure:3193: checking for malloc_set_state" >&5
3194 cat > conftest.$ac_ext <<EOF
3195 #line 3196 "configure"
3196 #include "confdefs.h"
3197 /* System header to define __stub macros and hopefully few prototypes,
3198 which can conflict with char malloc_set_state(); below. */
3200 /* Override any gcc2 internal prototype to avoid an error. */
3201 /* We use char because int might match the return type of a gcc2
3202 builtin and then its argument prototype would still apply. */
3203 char malloc_set_state();
3207 /* The GNU C library defines this for functions which it implements
3208 to always fail with ENOSYS. Some functions are actually named
3209 something starting with __ and the normal name is an alias. */
3210 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
3218 if { (eval echo configure:3219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3220 eval "ac_cv_func_malloc_set_state=yes"
3222 echo "configure: failed program was:" >&5
3223 cat conftest.$ac_ext >&5
3225 eval "ac_cv_func_malloc_set_state=no"
3229 if eval "test \"`echo '$ac_cv_func_'malloc_set_state`\" = yes"; then
3230 echo "$ac_t""yes" 1>&6
3233 echo "$ac_t""no" 1>&6
3237 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
3238 echo "configure:3239: checking whether __after_morecore_hook exists" >&5
3239 cat > conftest.$ac_ext <<EOF
3240 #line 3241 "configure"
3241 #include "confdefs.h"
3242 extern void (* __after_morecore_hook)();
3244 __after_morecore_hook = 0
3247 if { (eval echo configure:3248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3249 echo "$ac_t""yes" 1>&6
3251 echo "configure: failed program was:" >&5
3252 cat conftest.$ac_ext >&5
3254 echo "$ac_t""no" 1>&6
3255 after_morecore_hook_exists=no
3258 if test "$system_malloc" = "yes" ; then
3261 - The GNU allocators don't work with this system configuration."
3262 elif test "$with_system_malloc" = "yes" ; then
3265 - User chose not to use GNU allocators."
3266 elif test "$with_debug_malloc" = "yes" ; then
3269 - User chose to use Debugging Malloc."
3272 if test "$doug_lea_malloc" = "yes" -a "$GNU_MALLOC" = "yes" ; then
3274 - Using Doug Lea's new malloc from the GNU C Library."
3275 { test "$extra_verbose" = "yes" && cat << \EOF
3276 Defining DOUG_LEA_MALLOC
3278 cat >> confdefs.h <<\EOF
3279 #define DOUG_LEA_MALLOC 1
3283 if test "$after_morecore_hook_exists" = "no" ; then
3285 - Using Doug Lea's new malloc from the Linux C Library."
3286 { test "$extra_verbose" = "yes" && cat << \EOF
3287 Defining _NO_MALLOC_WARNING_
3289 cat >> confdefs.h <<\EOF
3290 #define _NO_MALLOC_WARNING_ 1
3300 # Extract the first word of "ranlib", so it can be a program name with args.
3301 set dummy ranlib; ac_word=$2
3302 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3303 echo "configure:3304: checking for $ac_word" >&5
3305 if test -n "$RANLIB"; then
3306 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3308 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3310 for ac_dir in $ac_dummy; do
3311 test -z "$ac_dir" && ac_dir=.
3312 if test -f $ac_dir/$ac_word; then
3313 ac_cv_prog_RANLIB="ranlib"
3318 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
3320 RANLIB="$ac_cv_prog_RANLIB"
3321 if test -n "$RANLIB"; then
3322 echo "$ac_t""$RANLIB" 1>&6
3324 echo "$ac_t""no" 1>&6
3328 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3329 if test -f $ac_dir/install-sh; then
3331 ac_install_sh="$ac_aux_dir/install-sh -c"
3333 elif test -f $ac_dir/install.sh; then
3335 ac_install_sh="$ac_aux_dir/install.sh -c"
3339 if test -z "$ac_aux_dir"; then
3340 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
3342 ac_config_guess=$ac_aux_dir/config.guess
3343 ac_config_sub=$ac_aux_dir/config.sub
3344 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
3346 # Find a good install program. We prefer a C program (faster),
3347 # so one script is as good as another. But avoid the broken or
3348 # incompatible versions:
3349 # SysV /etc/install, /usr/sbin/install
3350 # SunOS /usr/etc/install
3351 # IRIX /sbin/install
3353 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3354 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3355 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3356 # ./install, which can be erroneously created by make from ./install.sh.
3357 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3358 echo "configure:3359: checking for a BSD compatible install" >&5
3359 if test -z "$INSTALL"; then
3361 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3362 for ac_dir in $PATH; do
3363 # Account for people who put trailing slashes in PATH elements.
3365 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3367 # OSF1 and SCO ODT 3.0 have their own names for install.
3368 # Don't use installbsd from OSF since it installs stuff as root
3370 for ac_prog in ginstall scoinst install; do
3371 if test -f $ac_dir/$ac_prog; then
3372 if test $ac_prog = install &&
3373 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3374 # AIX install. It has an incompatible calling convention.
3377 ac_cv_path_install="$ac_dir/$ac_prog -c"
3387 if test "${ac_cv_path_install+set}" = set; then
3388 INSTALL="$ac_cv_path_install"
3390 # As a last resort, use the slow shell script. We don't cache a
3391 # path for INSTALL within a source directory, because that will
3392 # break other packages using the cache if that directory is
3393 # removed, or if the path is relative.
3394 INSTALL="$ac_install_sh"
3397 echo "$ac_t""$INSTALL" 1>&6
3399 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3400 # It thinks the first close brace ends the variable substitution.
3401 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3403 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3405 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3407 for ac_prog in 'bison -y' byacc
3409 # Extract the first word of "$ac_prog", so it can be a program name with args.
3410 set dummy $ac_prog; ac_word=$2
3411 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3412 echo "configure:3413: checking for $ac_word" >&5
3414 if test -n "$YACC"; then
3415 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3417 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3419 for ac_dir in $ac_dummy; do
3420 test -z "$ac_dir" && ac_dir=.
3421 if test -f $ac_dir/$ac_word; then
3422 ac_cv_prog_YACC="$ac_prog"
3428 YACC="$ac_cv_prog_YACC"
3429 if test -n "$YACC"; then
3430 echo "$ac_t""$YACC" 1>&6
3432 echo "$ac_t""no" 1>&6
3435 test -n "$YACC" && break
3437 test -n "$YACC" || YACC="yacc"
3440 for ac_hdr in a.out.h elf.h cygwin/version.h fcntl.h inttypes.h libgen.h locale.h mach/mach.h sys/param.h sys/pstat.h sys/time.h sys/timeb.h sys/un.h ulimit.h unistd.h utime.h
3442 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3443 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3444 echo "configure:3445: checking for $ac_hdr" >&5
3446 cat > conftest.$ac_ext <<EOF
3447 #line 3448 "configure"
3448 #include "confdefs.h"
3451 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3452 { (eval echo configure:3453: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3453 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3454 if test -z "$ac_err"; then
3456 eval "ac_cv_header_$ac_safe=yes"
3459 echo "configure: failed program was:" >&5
3460 cat conftest.$ac_ext >&5
3462 eval "ac_cv_header_$ac_safe=no"
3465 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3466 echo "$ac_t""yes" 1>&6
3467 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3468 { test "$extra_verbose" = "yes" && cat << EOF
3471 cat >> confdefs.h <<EOF
3472 #define $ac_tr_hdr 1
3477 echo "$ac_t""no" 1>&6
3481 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
3482 echo "configure:3483: checking for sys/wait.h that is POSIX.1 compatible" >&5
3484 cat > conftest.$ac_ext <<EOF
3485 #line 3486 "configure"
3486 #include "confdefs.h"
3487 #include <sys/types.h>
3488 #include <sys/wait.h>
3490 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3493 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3498 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3501 if { (eval echo configure:3502: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3503 ac_cv_header_sys_wait_h=yes
3505 echo "configure: failed program was:" >&5
3506 cat conftest.$ac_ext >&5
3508 ac_cv_header_sys_wait_h=no
3512 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
3513 if test $ac_cv_header_sys_wait_h = yes; then
3514 { test "$extra_verbose" = "yes" && cat << \EOF
3515 Defining HAVE_SYS_WAIT_H
3517 cat >> confdefs.h <<\EOF
3518 #define HAVE_SYS_WAIT_H 1
3524 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3525 echo "configure:3526: checking for ANSI C header files" >&5
3527 cat > conftest.$ac_ext <<EOF
3528 #line 3529 "configure"
3529 #include "confdefs.h"
3535 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3536 { (eval echo configure:3537: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3537 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3538 if test -z "$ac_err"; then
3540 ac_cv_header_stdc=yes
3543 echo "configure: failed program was:" >&5
3544 cat conftest.$ac_ext >&5
3546 ac_cv_header_stdc=no
3550 if test $ac_cv_header_stdc = yes; then
3551 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3552 cat > conftest.$ac_ext <<EOF
3553 #line 3554 "configure"
3554 #include "confdefs.h"
3557 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3558 egrep "memchr" >/dev/null 2>&1; then
3562 ac_cv_header_stdc=no
3568 if test $ac_cv_header_stdc = yes; then
3569 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3570 cat > conftest.$ac_ext <<EOF
3571 #line 3572 "configure"
3572 #include "confdefs.h"
3575 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3576 egrep "free" >/dev/null 2>&1; then
3580 ac_cv_header_stdc=no
3586 if test $ac_cv_header_stdc = yes; then
3587 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3588 cat > conftest.$ac_ext <<EOF
3589 #line 3590 "configure"
3590 #include "confdefs.h"
3592 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3593 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3594 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3595 int main () { int i; for (i = 0; i < 256; i++)
3596 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3600 if { (eval echo configure:3601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
3605 echo "configure: failed program was:" >&5
3606 cat conftest.$ac_ext >&5
3608 ac_cv_header_stdc=no
3613 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3614 if test $ac_cv_header_stdc = yes; then
3615 { test "$extra_verbose" = "yes" && cat << \EOF
3616 Defining STDC_HEADERS
3618 cat >> confdefs.h <<\EOF
3619 #define STDC_HEADERS 1
3625 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3626 echo "configure:3627: checking whether time.h and sys/time.h may both be included" >&5
3628 cat > conftest.$ac_ext <<EOF
3629 #line 3630 "configure"
3630 #include "confdefs.h"
3631 #include <sys/types.h>
3632 #include <sys/time.h>
3638 if { (eval echo configure:3639: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3640 ac_cv_header_time=yes
3642 echo "configure: failed program was:" >&5
3643 cat conftest.$ac_ext >&5
3645 ac_cv_header_time=no
3649 echo "$ac_t""$ac_cv_header_time" 1>&6
3650 if test $ac_cv_header_time = yes; then
3651 { test "$extra_verbose" = "yes" && cat << \EOF
3652 Defining TIME_WITH_SYS_TIME
3654 cat >> confdefs.h <<\EOF
3655 #define TIME_WITH_SYS_TIME 1
3661 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
3662 echo "configure:3663: checking for sys_siglist declaration in signal.h or unistd.h" >&5
3664 cat > conftest.$ac_ext <<EOF
3665 #line 3666 "configure"
3666 #include "confdefs.h"
3667 #include <sys/types.h>
3669 /* NetBSD declares sys_siglist in unistd.h. */
3670 #ifdef HAVE_UNISTD_H
3674 char *msg = *(sys_siglist + 1);
3677 if { (eval echo configure:3678: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3679 ac_cv_decl_sys_siglist=yes
3681 echo "configure: failed program was:" >&5
3682 cat conftest.$ac_ext >&5
3684 ac_cv_decl_sys_siglist=no
3688 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
3689 if test $ac_cv_decl_sys_siglist = yes; then
3690 { test "$extra_verbose" = "yes" && cat << \EOF
3691 Defining SYS_SIGLIST_DECLARED
3693 cat >> confdefs.h <<\EOF
3694 #define SYS_SIGLIST_DECLARED 1
3701 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6
3702 echo "configure:3703: checking for struct utimbuf" >&5
3703 cat > conftest.$ac_ext <<EOF
3704 #line 3705 "configure"
3705 #include "confdefs.h"
3706 #ifdef TIME_WITH_SYS_TIME
3707 #include <sys/time.h>
3710 #ifdef HAVE_SYS_TIME_H
3711 #include <sys/time.h>
3720 static struct utimbuf x; x.actime = x.modtime;
3723 if { (eval echo configure:3724: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3725 echo "$ac_t""yes" 1>&6
3726 { test "$extra_verbose" = "yes" && cat << \EOF
3727 Defining HAVE_STRUCT_UTIMBUF
3729 cat >> confdefs.h <<\EOF
3730 #define HAVE_STRUCT_UTIMBUF 1
3735 echo "configure: failed program was:" >&5
3736 cat conftest.$ac_ext >&5
3738 echo "$ac_t""no" 1>&6
3742 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3743 echo "configure:3744: checking return type of signal handlers" >&5
3745 cat > conftest.$ac_ext <<EOF
3746 #line 3747 "configure"
3747 #include "confdefs.h"
3748 #include <sys/types.h>
3754 extern "C" void (*signal (int, void (*)(int)))(int);
3756 void (*signal ()) ();
3763 if { (eval echo configure:3764: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3765 ac_cv_type_signal=void
3767 echo "configure: failed program was:" >&5
3768 cat conftest.$ac_ext >&5
3770 ac_cv_type_signal=int
3774 echo "$ac_t""$ac_cv_type_signal" 1>&6
3775 { test "$extra_verbose" = "yes" && cat << EOF
3776 Defining RETSIGTYPE = $ac_cv_type_signal
3778 cat >> confdefs.h <<EOF
3779 #define RETSIGTYPE $ac_cv_type_signal
3784 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3785 echo "configure:3786: checking for size_t" >&5
3787 cat > conftest.$ac_ext <<EOF
3788 #line 3789 "configure"
3789 #include "confdefs.h"
3790 #include <sys/types.h>
3796 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3797 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3799 ac_cv_type_size_t=yes
3802 ac_cv_type_size_t=no
3806 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3807 if test $ac_cv_type_size_t = no; then
3808 { test "$extra_verbose" = "yes" && cat << \EOF
3809 Defining size_t = unsigned
3811 cat >> confdefs.h <<\EOF
3812 #define size_t unsigned
3818 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3819 echo "configure:3820: checking for pid_t" >&5
3821 cat > conftest.$ac_ext <<EOF
3822 #line 3823 "configure"
3823 #include "confdefs.h"
3824 #include <sys/types.h>
3830 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3831 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3833 ac_cv_type_pid_t=yes
3840 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3841 if test $ac_cv_type_pid_t = no; then
3842 { test "$extra_verbose" = "yes" && cat << \EOF
3843 Defining pid_t = int
3845 cat >> confdefs.h <<\EOF
3852 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3853 echo "configure:3854: checking for uid_t in sys/types.h" >&5
3855 cat > conftest.$ac_ext <<EOF
3856 #line 3857 "configure"
3857 #include "confdefs.h"
3858 #include <sys/types.h>
3860 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3861 egrep "uid_t" >/dev/null 2>&1; then
3863 ac_cv_type_uid_t=yes
3871 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3872 if test $ac_cv_type_uid_t = no; then
3873 { test "$extra_verbose" = "yes" && cat << \EOF
3874 Defining uid_t = int
3876 cat >> confdefs.h <<\EOF
3881 { test "$extra_verbose" = "yes" && cat << \EOF
3882 Defining gid_t = int
3884 cat >> confdefs.h <<\EOF
3891 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3892 echo "configure:3893: checking for mode_t" >&5
3894 cat > conftest.$ac_ext <<EOF
3895 #line 3896 "configure"
3896 #include "confdefs.h"
3897 #include <sys/types.h>
3903 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3904 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3906 ac_cv_type_mode_t=yes
3909 ac_cv_type_mode_t=no
3913 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3914 if test $ac_cv_type_mode_t = no; then
3915 { test "$extra_verbose" = "yes" && cat << \EOF
3916 Defining mode_t = int
3918 cat >> confdefs.h <<\EOF
3925 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3926 echo "configure:3927: checking for off_t" >&5
3928 cat > conftest.$ac_ext <<EOF
3929 #line 3930 "configure"
3930 #include "confdefs.h"
3931 #include <sys/types.h>
3937 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3938 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3940 ac_cv_type_off_t=yes
3947 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3948 if test $ac_cv_type_off_t = no; then
3949 { test "$extra_verbose" = "yes" && cat << \EOF
3950 Defining off_t = long
3952 cat >> confdefs.h <<\EOF
3959 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3960 echo "configure:3961: checking for ssize_t" >&5
3962 cat > conftest.$ac_ext <<EOF
3963 #line 3964 "configure"
3964 #include "confdefs.h"
3965 #include <sys/types.h>
3971 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3972 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3974 ac_cv_type_ssize_t=yes
3977 ac_cv_type_ssize_t=no
3981 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3982 if test $ac_cv_type_ssize_t = no; then
3983 { test "$extra_verbose" = "yes" && cat << \EOF
3984 Defining ssize_t = int
3986 cat >> confdefs.h <<\EOF
3994 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
3995 echo "configure:3996: checking for socklen_t" >&5
3996 cat > conftest.$ac_ext <<EOF
3997 #line 3998 "configure"
3998 #include "confdefs.h"
3999 #include <sys/socket.h>
4006 if { (eval echo configure:4007: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4008 echo "$ac_t""yes" 1>&6
4010 echo "configure: failed program was:" >&5
4011 cat conftest.$ac_ext >&5
4014 cat > conftest.$ac_ext <<EOF
4015 #line 4016 "configure"
4016 #include "confdefs.h"
4017 #include <sys/socket.h>
4018 int accept (int, struct sockaddr *, size_t *);
4024 if { (eval echo configure:4025: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4027 echo "$ac_t""size_t" 1>&6
4028 { test "$extra_verbose" = "yes" && cat << \EOF
4029 Defining socklen_t = size_t
4031 cat >> confdefs.h <<\EOF
4032 #define socklen_t size_t
4037 echo "configure: failed program was:" >&5
4038 cat conftest.$ac_ext >&5
4041 echo "$ac_t""int" 1>&6
4042 { test "$extra_verbose" = "yes" && cat << \EOF
4043 Defining socklen_t = int
4045 cat >> confdefs.h <<\EOF
4046 #define socklen_t int
4055 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
4056 echo "configure:4057: checking for struct timeval" >&5
4057 cat > conftest.$ac_ext <<EOF
4058 #line 4059 "configure"
4059 #include "confdefs.h"
4060 #ifdef TIME_WITH_SYS_TIME
4061 #include <sys/time.h>
4064 #ifdef HAVE_SYS_TIME_H
4065 #include <sys/time.h>
4071 static struct timeval x; x.tv_sec = x.tv_usec;
4074 if { (eval echo configure:4075: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4076 echo "$ac_t""yes" 1>&6
4078 { test "$extra_verbose" = "yes" && cat << \EOF
4079 Defining HAVE_TIMEVAL
4081 cat >> confdefs.h <<\EOF
4082 #define HAVE_TIMEVAL 1
4087 echo "configure: failed program was:" >&5
4088 cat conftest.$ac_ext >&5
4090 echo "$ac_t""no" 1>&6
4095 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
4096 echo "configure:4097: checking whether struct tm is in sys/time.h or time.h" >&5
4098 cat > conftest.$ac_ext <<EOF
4099 #line 4100 "configure"
4100 #include "confdefs.h"
4101 #include <sys/types.h>
4104 struct tm *tp; tp->tm_sec;
4107 if { (eval echo configure:4108: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4109 ac_cv_struct_tm=time.h
4111 echo "configure: failed program was:" >&5
4112 cat conftest.$ac_ext >&5
4114 ac_cv_struct_tm=sys/time.h
4118 echo "$ac_t""$ac_cv_struct_tm" 1>&6
4119 if test $ac_cv_struct_tm = sys/time.h; then
4120 { test "$extra_verbose" = "yes" && cat << \EOF
4121 Defining TM_IN_SYS_TIME
4123 cat >> confdefs.h <<\EOF
4124 #define TM_IN_SYS_TIME 1
4130 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
4131 echo "configure:4132: checking for tm_zone in struct tm" >&5
4133 cat > conftest.$ac_ext <<EOF
4134 #line 4135 "configure"
4135 #include "confdefs.h"
4136 #include <sys/types.h>
4137 #include <$ac_cv_struct_tm>
4139 struct tm tm; tm.tm_zone;
4142 if { (eval echo configure:4143: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4144 ac_cv_struct_tm_zone=yes
4146 echo "configure: failed program was:" >&5
4147 cat conftest.$ac_ext >&5
4149 ac_cv_struct_tm_zone=no
4153 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
4154 if test "$ac_cv_struct_tm_zone" = yes; then
4155 { test "$extra_verbose" = "yes" && cat << \EOF
4156 Defining HAVE_TM_ZONE
4158 cat >> confdefs.h <<\EOF
4159 #define HAVE_TM_ZONE 1
4164 echo $ac_n "checking for tzname""... $ac_c" 1>&6
4165 echo "configure:4166: checking for tzname" >&5
4167 cat > conftest.$ac_ext <<EOF
4168 #line 4169 "configure"
4169 #include "confdefs.h"
4171 #ifndef tzname /* For SGI. */
4172 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4178 if { (eval echo configure:4179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4180 ac_cv_var_tzname=yes
4182 echo "configure: failed program was:" >&5
4183 cat conftest.$ac_ext >&5
4189 echo "$ac_t""$ac_cv_var_tzname" 1>&6
4190 if test $ac_cv_var_tzname = yes; then
4191 { test "$extra_verbose" = "yes" && cat << \EOF
4192 Defining HAVE_TZNAME
4194 cat >> confdefs.h <<\EOF
4195 #define HAVE_TZNAME 1
4203 echo $ac_n "checking for working const""... $ac_c" 1>&6
4204 echo "configure:4205: checking for working const" >&5
4206 cat > conftest.$ac_ext <<EOF
4207 #line 4208 "configure"
4208 #include "confdefs.h"
4212 /* Ultrix mips cc rejects this. */
4213 typedef int charset[2]; const charset x;
4214 /* SunOS 4.1.1 cc rejects this. */
4215 char const *const *ccp;
4217 /* NEC SVR4.0.2 mips cc rejects this. */
4218 struct point {int x, y;};
4219 static struct point const zero = {0,0};
4220 /* AIX XL C 1.02.0.0 rejects this.
4221 It does not let you subtract one const X* pointer from another in an arm
4222 of an if-expression whose if-part is not a constant expression */
4223 const char *g = "string";
4224 ccp = &g + (g ? g-g : 0);
4225 /* HPUX 7.0 cc rejects these. */
4228 ccp = (char const *const *) p;
4229 { /* SCO 3.2v4 cc rejects this. */
4231 char const *s = 0 ? (char *) 0 : (char const *) 0;
4235 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4237 const int *foo = &x[0];
4240 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4241 typedef const int *iptr;
4245 { /* AIX XL C 1.02.0.0 rejects this saying
4246 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4247 struct s { int j; const int *ap[3]; };
4248 struct s *b; b->j = 5;
4250 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4256 if { (eval echo configure:4257: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4260 echo "configure: failed program was:" >&5
4261 cat conftest.$ac_ext >&5
4267 echo "$ac_t""$ac_cv_c_const" 1>&6
4268 if test $ac_cv_c_const = no; then
4269 { test "$extra_verbose" = "yes" && cat << \EOF
4272 cat >> confdefs.h <<\EOF
4280 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
4281 echo "configure:4282: checking whether ${MAKE-make} sets \${MAKE}" >&5
4282 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
4284 cat > conftestmake <<\EOF
4286 @echo 'ac_maketemp="${MAKE}"'
4288 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4289 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
4290 if test -n "$ac_maketemp"; then
4291 eval ac_cv_prog_make_${ac_make}_set=yes
4293 eval ac_cv_prog_make_${ac_make}_set=no
4296 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4297 echo "$ac_t""yes" 1>&6
4300 echo "$ac_t""no" 1>&6
4301 SET_MAKE="MAKE=${MAKE-make}"
4305 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
4306 echo "configure:4307: checking whether byte ordering is bigendian" >&5
4308 ac_cv_c_bigendian=unknown
4309 # See if sys/param.h defines the BYTE_ORDER macro.
4310 cat > conftest.$ac_ext <<EOF
4311 #line 4312 "configure"
4312 #include "confdefs.h"
4313 #include <sys/types.h>
4314 #include <sys/param.h>
4317 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4322 if { (eval echo configure:4323: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4324 # It does; now see whether it defined to BIG_ENDIAN or not.
4325 cat > conftest.$ac_ext <<EOF
4326 #line 4327 "configure"
4327 #include "confdefs.h"
4328 #include <sys/types.h>
4329 #include <sys/param.h>
4332 #if BYTE_ORDER != BIG_ENDIAN
4337 if { (eval echo configure:4338: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4339 ac_cv_c_bigendian=yes
4341 echo "configure: failed program was:" >&5
4342 cat conftest.$ac_ext >&5
4344 ac_cv_c_bigendian=no
4348 echo "configure: failed program was:" >&5
4349 cat conftest.$ac_ext >&5
4352 if test $ac_cv_c_bigendian = unknown; then
4353 cat > conftest.$ac_ext <<EOF
4354 #line 4355 "configure"
4355 #include "confdefs.h"
4357 /* Are we little or big endian? From Harbison&Steele. */
4361 char c[sizeof (long)];
4364 exit (u.c[sizeof (long) - 1] == 1);
4367 if { (eval echo configure:4368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4369 ac_cv_c_bigendian=no
4372 echo "configure: failed program was:" >&5
4373 cat conftest.$ac_ext >&5
4375 ac_cv_c_bigendian=yes
4380 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
4381 if test $ac_cv_c_bigendian = yes; then
4382 { test "$extra_verbose" = "yes" && cat << \EOF
4383 Defining WORDS_BIGENDIAN
4385 cat >> confdefs.h <<\EOF
4386 #define WORDS_BIGENDIAN 1
4393 echo $ac_n "checking size of short""... $ac_c" 1>&6
4394 echo "configure:4395: checking size of short" >&5
4396 cat > conftest.$ac_ext <<EOF
4397 #line 4398 "configure"
4398 #include "confdefs.h"
4400 #include <sys/types.h>
4403 FILE *f=fopen("conftestval", "w");
4405 fprintf(f, "%d\n", sizeof(short));
4409 if { (eval echo configure:4410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4411 ac_cv_sizeof_short=`cat conftestval`
4414 echo "configure: failed program was:" >&5
4415 cat conftest.$ac_ext >&5
4417 ac_cv_sizeof_short=0
4420 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
4421 { test "$extra_verbose" = "yes" && cat << EOF
4422 Defining SIZEOF_SHORT = $ac_cv_sizeof_short
4424 cat >> confdefs.h <<EOF
4425 #define SIZEOF_SHORT $ac_cv_sizeof_short
4430 if test "$ac_cv_sizeof_short" = 0; then
4432 echo "*** PANIC *** Configure tests are not working - compiler is broken."
4433 echo "*** PANIC *** Please examine config.log for compilation errors."
4436 echo $ac_n "checking size of int""... $ac_c" 1>&6
4437 echo "configure:4438: checking size of int" >&5
4439 cat > conftest.$ac_ext <<EOF
4440 #line 4441 "configure"
4441 #include "confdefs.h"
4443 #include <sys/types.h>
4446 FILE *f=fopen("conftestval", "w");
4448 fprintf(f, "%d\n", sizeof(int));
4452 if { (eval echo configure:4453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4454 ac_cv_sizeof_int=`cat conftestval`
4457 echo "configure: failed program was:" >&5
4458 cat conftest.$ac_ext >&5
4463 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
4464 { test "$extra_verbose" = "yes" && cat << EOF
4465 Defining SIZEOF_INT = $ac_cv_sizeof_int
4467 cat >> confdefs.h <<EOF
4468 #define SIZEOF_INT $ac_cv_sizeof_int
4473 echo $ac_n "checking size of long""... $ac_c" 1>&6
4474 echo "configure:4475: checking size of long" >&5
4476 cat > conftest.$ac_ext <<EOF
4477 #line 4478 "configure"
4478 #include "confdefs.h"
4480 #include <sys/types.h>
4483 FILE *f=fopen("conftestval", "w");
4485 fprintf(f, "%d\n", sizeof(long));
4489 if { (eval echo configure:4490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4491 ac_cv_sizeof_long=`cat conftestval`
4494 echo "configure: failed program was:" >&5
4495 cat conftest.$ac_ext >&5
4500 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
4501 { test "$extra_verbose" = "yes" && cat << EOF
4502 Defining SIZEOF_LONG = $ac_cv_sizeof_long
4504 cat >> confdefs.h <<EOF
4505 #define SIZEOF_LONG $ac_cv_sizeof_long
4510 echo $ac_n "checking size of long long""... $ac_c" 1>&6
4511 echo "configure:4512: checking size of long long" >&5
4513 cat > conftest.$ac_ext <<EOF
4514 #line 4515 "configure"
4515 #include "confdefs.h"
4517 #include <sys/types.h>
4520 FILE *f=fopen("conftestval", "w");
4522 fprintf(f, "%d\n", sizeof(long long));
4526 if { (eval echo configure:4527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4528 ac_cv_sizeof_long_long=`cat conftestval`
4531 echo "configure: failed program was:" >&5
4532 cat conftest.$ac_ext >&5
4534 ac_cv_sizeof_long_long=0
4537 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
4538 { test "$extra_verbose" = "yes" && cat << EOF
4539 Defining SIZEOF_LONG_LONG = $ac_cv_sizeof_long_long
4541 cat >> confdefs.h <<EOF
4542 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4547 echo $ac_n "checking size of void *""... $ac_c" 1>&6
4548 echo "configure:4549: checking size of void *" >&5
4550 cat > conftest.$ac_ext <<EOF
4551 #line 4552 "configure"
4552 #include "confdefs.h"
4554 #include <sys/types.h>
4557 FILE *f=fopen("conftestval", "w");
4559 fprintf(f, "%d\n", sizeof(void *));
4563 if { (eval echo configure:4564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4565 ac_cv_sizeof_void_p=`cat conftestval`
4568 echo "configure: failed program was:" >&5
4569 cat conftest.$ac_ext >&5
4571 ac_cv_sizeof_void_p=0
4574 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
4575 { test "$extra_verbose" = "yes" && cat << EOF
4576 Defining SIZEOF_VOID_P = $ac_cv_sizeof_void_p
4578 cat >> confdefs.h <<EOF
4579 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4585 echo $ac_n "checking for long file names""... $ac_c" 1>&6
4586 echo "configure:4587: checking for long file names" >&5
4588 ac_cv_sys_long_file_names=yes
4589 # Test for long file names in all the places we know might matter:
4590 # . the current directory, where building will happen
4591 # $prefix/lib where we will be installing things
4592 # $exec_prefix/lib likewise
4593 # eval it to expand exec_prefix.
4594 # $TMPDIR if set, where it might want to write temporary files
4595 # if $TMPDIR is not set:
4596 # /tmp where it might want to write temporary files
4599 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
4600 ac_tmpdirs="$TMPDIR"
4602 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
4604 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
4605 test -d $ac_dir || continue
4606 test -w $ac_dir || continue # It is less confusing to not echo anything here.
4607 (echo 1 > $ac_dir/conftest9012345) 2>/dev/null
4608 (echo 2 > $ac_dir/conftest9012346) 2>/dev/null
4609 val=`cat $ac_dir/conftest9012345 2>/dev/null`
4610 if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then
4611 ac_cv_sys_long_file_names=no
4612 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
4615 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
4618 echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
4619 if test $ac_cv_sys_long_file_names = yes; then
4620 { test "$extra_verbose" = "yes" && cat << \EOF
4621 Defining HAVE_LONG_FILE_NAMES
4623 cat >> confdefs.h <<\EOF
4624 #define HAVE_LONG_FILE_NAMES 1
4631 echo $ac_n "checking for sin""... $ac_c" 1>&6
4632 echo "configure:4633: checking for sin" >&5
4634 cat > conftest.$ac_ext <<EOF
4635 #line 4636 "configure"
4636 #include "confdefs.h"
4637 /* System header to define __stub macros and hopefully few prototypes,
4638 which can conflict with char sin(); below. */
4640 /* Override any gcc2 internal prototype to avoid an error. */
4641 /* We use char because int might match the return type of a gcc2
4642 builtin and then its argument prototype would still apply. */
4647 /* The GNU C library defines this for functions which it implements
4648 to always fail with ENOSYS. Some functions are actually named
4649 something starting with __ and the normal name is an alias. */
4650 #if defined (__stub_sin) || defined (__stub___sin)
4658 if { (eval echo configure:4659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4660 eval "ac_cv_func_sin=yes"
4662 echo "configure: failed program was:" >&5
4663 cat conftest.$ac_ext >&5
4665 eval "ac_cv_func_sin=no"
4669 if eval "test \"`echo '$ac_cv_func_'sin`\" = yes"; then
4670 echo "$ac_t""yes" 1>&6
4673 echo "$ac_t""no" 1>&6
4675 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
4676 echo "configure:4677: checking for sin in -lm" >&5
4677 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
4679 xe_check_libs=" -lm "
4680 cat > conftest.$ac_ext <<EOF
4681 #line 4682 "configure"
4682 #include "confdefs.h"
4683 /* Override any gcc2 internal prototype to avoid an error. */
4684 /* We use char because int might match the return type of a gcc2
4685 builtin and then its argument prototype would still apply. */
4692 if { (eval echo configure:4693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4694 eval "ac_cv_lib_$ac_lib_var=yes"
4696 echo "configure: failed program was:" >&5
4697 cat conftest.$ac_ext >&5
4699 eval "ac_cv_lib_$ac_lib_var=no"
4704 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4705 echo "$ac_t""yes" 1>&6
4706 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/^a-zA-Z0-9_/_/g' \
4707 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4708 { test "$extra_verbose" = "yes" && cat << EOF
4711 cat >> confdefs.h <<EOF
4712 #define $ac_tr_lib 1
4716 LIBS="-lm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lm\" to \$LIBS"; fi
4719 echo "$ac_t""no" 1>&6
4726 { test "$extra_verbose" = "yes" && cat << \EOF
4727 Defining LISP_FLOAT_TYPE
4729 cat >> confdefs.h <<\EOF
4730 #define LISP_FLOAT_TYPE 1
4735 cat > conftest.$ac_ext <<EOF
4736 #line 4737 "configure"
4737 #include "confdefs.h"
4740 return atanh(1.0) + asinh(1.0) + acosh(1.0);
4743 if { (eval echo configure:4744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4745 { test "$extra_verbose" = "yes" && cat << \EOF
4746 Defining HAVE_INVERSE_HYPERBOLIC
4748 cat >> confdefs.h <<\EOF
4749 #define HAVE_INVERSE_HYPERBOLIC 1
4754 echo "configure: failed program was:" >&5
4755 cat conftest.$ac_ext >&5
4759 echo "checking type of mail spool file locking" 1>&6
4760 echo "configure:4761: checking type of mail spool file locking" >&5
4761 for ac_func in lockf flock
4763 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4764 echo "configure:4765: checking for $ac_func" >&5
4766 cat > conftest.$ac_ext <<EOF
4767 #line 4768 "configure"
4768 #include "confdefs.h"
4769 /* System header to define __stub macros and hopefully few prototypes,
4770 which can conflict with char $ac_func(); below. */
4772 /* Override any gcc2 internal prototype to avoid an error. */
4773 /* We use char because int might match the return type of a gcc2
4774 builtin and then its argument prototype would still apply. */
4779 /* The GNU C library defines this for functions which it implements
4780 to always fail with ENOSYS. Some functions are actually named
4781 something starting with __ and the normal name is an alias. */
4782 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4790 if { (eval echo configure:4791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4792 eval "ac_cv_func_$ac_func=yes"
4794 echo "configure: failed program was:" >&5
4795 cat conftest.$ac_ext >&5
4797 eval "ac_cv_func_$ac_func=no"
4801 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4802 echo "$ac_t""yes" 1>&6
4803 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4804 { test "$extra_verbose" = "yes" && cat << EOF
4805 Defining $ac_tr_func
4807 cat >> confdefs.h <<EOF
4808 #define $ac_tr_func 1
4813 echo "$ac_t""no" 1>&6
4817 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock
4818 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf
4819 test -z "$mail_locking" -a "$mail_use_locking" = "yes" && mail_locking=locking
4820 if test -z "$mail_locking"; then
4821 case "$opsys" in cygwin* | mingw*)
4826 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF
4827 Defining MAIL_LOCK_LOCKF
4829 cat >> confdefs.h <<\EOF
4830 #define MAIL_LOCK_LOCKF 1
4834 elif test "$mail_locking" = "flock"; then { test "$extra_verbose" = "yes" && cat << \EOF
4835 Defining MAIL_LOCK_FLOCK
4837 cat >> confdefs.h <<\EOF
4838 #define MAIL_LOCK_FLOCK 1
4842 elif test "$mail_locking" = "locking"; then { test "$extra_verbose" = "yes" && cat << \EOF
4843 Defining MAIL_LOCK_LOCKING
4845 cat >> confdefs.h <<\EOF
4846 #define MAIL_LOCK_LOCKING 1
4850 elif test "$mail_locking" = "pop"; then
4853 else mail_locking="dot-locking"; { test "$extra_verbose" = "yes" && cat << \EOF
4854 Defining MAIL_LOCK_DOT
4856 cat >> confdefs.h <<\EOF
4857 #define MAIL_LOCK_DOT 1
4862 test "$mail_locking" = "lockf" -a "$ac_cv_func_lockf" != "yes" && \
4863 { echo "Error:" "lockf mail locking requested but not available." >&2; exit 1; }
4864 test "$mail_locking" = "flock" -a "$ac_cv_func_flock" != "yes" && \
4865 { echo "Error:" "flock mail locking requested but not available." >&2; exit 1; }
4866 test "$mail_locking" = "locking" -a "$ac_cv_func_locking" != "yes" && \
4867 { echo "Error:" "locking mail locking requested but not available." >&2; exit 1; }
4869 case "$opsys" in decosf*)
4871 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
4872 echo "configure:4873: checking for cma_open in -lpthreads" >&5
4873 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
4875 xe_check_libs=" -lpthreads "
4876 cat > conftest.$ac_ext <<EOF
4877 #line 4878 "configure"
4878 #include "confdefs.h"
4879 /* Override any gcc2 internal prototype to avoid an error. */
4880 /* We use char because int might match the return type of a gcc2
4881 builtin and then its argument prototype would still apply. */
4888 if { (eval echo configure:4889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4890 eval "ac_cv_lib_$ac_lib_var=yes"
4892 echo "configure: failed program was:" >&5
4893 cat conftest.$ac_ext >&5
4895 eval "ac_cv_lib_$ac_lib_var=no"
4900 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4901 echo "$ac_t""yes" 1>&6
4902 ac_tr_lib=HAVE_LIB`echo pthreads | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4903 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4904 { test "$extra_verbose" = "yes" && cat << EOF
4907 cat >> confdefs.h <<EOF
4908 #define $ac_tr_lib 1
4912 LIBS="-lpthreads $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpthreads\" to \$LIBS"; fi
4915 echo "$ac_t""no" 1>&6
4919 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \
4920 c_switch_site="$c_switch_site -threads" ;;
4923 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6
4924 echo "configure:4925: checking whether the -xildoff compiler flag is required" >&5
4925 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
4926 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ;
4927 then echo "$ac_t""no" 1>&6;
4928 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
4930 else echo "$ac_t""no" 1>&6
4933 if test "$opsys" = "sol2"; then
4934 if test "$os_release" -ge 56; then
4935 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6
4936 echo "configure:4937: checking for \"-z ignore\" linker flag" >&5
4937 case "`ld -h 2>&1`" in
4938 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6
4939 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;;
4940 *) echo "$ac_t""no" 1>&6 ;;
4946 echo "checking "for specified window system"" 1>&6
4947 echo "configure:4948: checking "for specified window system"" >&5
4949 if test "$with_x11" != "no"; then
4950 test "$x_includes $x_libraries" != "NONE NONE" && \
4951 window_system=x11 with_x11=yes
4954 if test "$x_includes $x_libraries" = "NONE NONE" \
4955 -a -n "$OPENWINHOME" \
4956 -a "$OPENWINHOME" != "/usr/openwin" \
4957 -a -d "$OPENWINHOME"; then
4958 test -d "$OPENWINHOME/lib" && x_libraries="$OPENWINHOME/lib"
4959 test -d "$OPENWINHOME/include" && x_includes="$OPENWINHOME/include"
4960 test -d "$OPENWINHOME/share/include" && x_includes="$OPENWINHOME/share/include"
4963 if test "$x_includes" = "NONE"; then
4964 for dir in "/usr/X11" "/usr/X11R6"; do
4965 if test -d "$dir/include/X11"; then x_includes="$dir/include"; break; fi
4969 if test "$x_libraries" = "NONE"; then
4970 for dir in "/usr/X11/lib" "/usr/X11R6/lib" "/usr/lib/X11R6"; do
4971 if test -r "$dir/libX11.a"; then x_libraries="$dir"; break; fi
4975 # If we find X, set shell vars x_includes and x_libraries to the
4976 # paths, otherwise set no_x=yes.
4977 # Uses ac_ vars as temps to allow command line to override cache and checks.
4978 # --without-x overrides everything else, but does not touch the cache.
4979 echo $ac_n "checking for X""... $ac_c" 1>&6
4980 echo "configure:4981: checking for X" >&5
4982 # Check whether --with-x or --without-x was given.
4983 if test "${with_x+set}" = set; then
4988 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4989 if test "x$with_x" = xno; then
4990 # The user explicitly disabled X.
4993 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
4994 # Both variables are already set.
4998 # One or both of the vars are not set, and there is no cached value.
4999 ac_x_includes=NO ac_x_libraries=NO
5001 if mkdir conftestdir; then
5003 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5004 cat > Imakefile <<'EOF'
5006 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5008 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5009 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5010 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5011 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5012 for ac_extension in a so sl; do
5013 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
5014 test -f $ac_im_libdir/libX11.$ac_extension; then
5015 ac_im_usrlibdir=$ac_im_libdir; break
5018 # Screen out bogus values from the imake configuration. They are
5019 # bogus both because they are the default anyway, and because
5020 # using them would break gcc on systems where it needs fixed includes.
5021 case "$ac_im_incroot" in
5023 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
5025 case "$ac_im_usrlibdir" in
5027 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
5034 if test "$ac_x_includes" = NO; then
5035 # Guess where to find include files, by looking for this one X11 .h file.
5036 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
5038 # First, try using that file with no special directory specified.
5039 cat > conftest.$ac_ext <<EOF
5040 #line 5041 "configure"
5041 #include "confdefs.h"
5042 #include <$x_direct_test_include>
5044 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5045 { (eval echo configure:5046: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5046 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5047 if test -z "$ac_err"; then
5049 # We can compile using X headers with no special include directory.
5053 echo "configure: failed program was:" >&5
5054 cat conftest.$ac_ext >&5
5056 # Look for the header file in a standard set of common directories.
5057 # Check X11 before X11Rn because it is often a symlink to the current release.
5060 /usr/X11R6/include \
5061 /usr/X11R5/include \
5062 /usr/X11R4/include \
5065 /usr/include/X11R6 \
5066 /usr/include/X11R5 \
5067 /usr/include/X11R4 \
5069 /usr/local/X11/include \
5070 /usr/local/X11R6/include \
5071 /usr/local/X11R5/include \
5072 /usr/local/X11R4/include \
5074 /usr/local/include/X11 \
5075 /usr/local/include/X11R6 \
5076 /usr/local/include/X11R5 \
5077 /usr/local/include/X11R4 \
5081 /usr/XFree86/include/X11 \
5084 /usr/local/include \
5085 /usr/unsupported/include \
5086 /usr/athena/include \
5087 /usr/local/x11r5/include \
5088 /usr/lpp/Xamples/include \
5090 /usr/openwin/include \
5091 /usr/openwin/share/include \
5094 if test -r "$ac_dir/$x_direct_test_include"; then
5095 ac_x_includes=$ac_dir
5101 fi # $ac_x_includes = NO
5103 if test "$ac_x_libraries" = NO; then
5104 # Check for the libraries.
5106 test -z "$x_direct_test_library" && x_direct_test_library=Xt
5107 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
5109 # See if we find them without any special options.
5110 # Don't add to $LIBS permanently.
5111 ac_save_LIBS="$LIBS"
5112 LIBS="-l$x_direct_test_library $LIBS"
5113 cat > conftest.$ac_ext <<EOF
5114 #line 5115 "configure"
5115 #include "confdefs.h"
5118 ${x_direct_test_function}()
5121 if { (eval echo configure:5122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5123 LIBS="$ac_save_LIBS"
5124 # We can link X programs with no special library path.
5127 echo "configure: failed program was:" >&5
5128 cat conftest.$ac_ext >&5
5130 LIBS="$ac_save_LIBS"
5131 # First see if replacing the include by lib works.
5132 # Check X11 before X11Rn because it is often a symlink to the current release.
5133 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
5144 /usr/local/X11/lib \
5145 /usr/local/X11R6/lib \
5146 /usr/local/X11R5/lib \
5147 /usr/local/X11R4/lib \
5149 /usr/local/lib/X11 \
5150 /usr/local/lib/X11R6 \
5151 /usr/local/lib/X11R5 \
5152 /usr/local/lib/X11R4 \
5156 /usr/XFree86/lib/X11 \
5160 /usr/unsupported/lib \
5162 /usr/local/x11r5/lib \
5163 /usr/lpp/Xamples/lib \
5167 /usr/openwin/share/lib \
5170 for ac_extension in a so sl; do
5171 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
5172 ac_x_libraries=$ac_dir
5179 fi # $ac_x_libraries = NO
5181 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
5182 # Didn't find X anywhere. Cache the known absence of X.
5183 ac_cv_have_x="have_x=no"
5185 # Record where we found X for the cache.
5186 ac_cv_have_x="have_x=yes \
5187 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5190 eval "$ac_cv_have_x"
5193 if test "$have_x" != yes; then
5194 echo "$ac_t""$have_x" 1>&6
5197 # If each of the values was on the command line, it overrides each guess.
5198 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5199 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5200 # Update the cache value to reflect the command line values.
5201 ac_cv_have_x="have_x=yes \
5202 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5203 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
5206 if test "$no_x" = yes; then
5207 # Not all programs may use this symbol, but it does not hurt to define it.
5208 { test "$extra_verbose" = "yes" && cat << \EOF
5209 Defining X_DISPLAY_MISSING
5211 cat >> confdefs.h <<\EOF
5212 #define X_DISPLAY_MISSING 1
5216 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5218 if test -n "$x_includes"; then
5219 X_CFLAGS="$X_CFLAGS -I$x_includes"
5222 # It would also be nice to do this for all -L options, not just this one.
5223 if test -n "$x_libraries"; then
5224 X_LIBS="$X_LIBS -L$x_libraries"
5225 # For Solaris; some versions of Sun CC require a space after -R and
5226 # others require no space. Words are not sufficient . . . .
5227 case "`(uname -sr) 2>/dev/null`" in
5229 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
5230 echo "configure:5231: checking whether -R must be followed by a space" >&5
5231 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
5232 cat > conftest.$ac_ext <<EOF
5233 #line 5234 "configure"
5234 #include "confdefs.h"
5240 if { (eval echo configure:5241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5244 echo "configure: failed program was:" >&5
5245 cat conftest.$ac_ext >&5
5250 if test $ac_R_nospace = yes; then
5251 echo "$ac_t""no" 1>&6
5252 X_LIBS="$X_LIBS -R$x_libraries"
5254 LIBS="$ac_xsave_LIBS -R $x_libraries"
5255 cat > conftest.$ac_ext <<EOF
5256 #line 5257 "configure"
5257 #include "confdefs.h"
5263 if { (eval echo configure:5264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5267 echo "configure: failed program was:" >&5
5268 cat conftest.$ac_ext >&5
5273 if test $ac_R_space = yes; then
5274 echo "$ac_t""yes" 1>&6
5275 X_LIBS="$X_LIBS -R $x_libraries"
5277 echo "$ac_t""neither works" 1>&6
5280 LIBS="$ac_xsave_LIBS"
5284 # Check for system-dependent libraries X programs must link with.
5285 # Do this before checking for the system-independent R6 libraries
5286 # (-lICE), since we may need -lsocket or whatever for X linking.
5288 if test "$ISC" = yes; then
5289 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5291 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
5292 # libraries were built with DECnet support. And karl@cs.umb.edu says
5293 # the Alpha needs dnet_stub (dnet does not exist).
5294 if test "$with_dnet" = "no" ; then
5295 ac_cv_lib_dnet_dnet_ntoa=no
5298 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
5299 echo "configure:5300: checking for dnet_ntoa in -ldnet" >&5
5300 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5302 xe_check_libs=" -ldnet "
5303 cat > conftest.$ac_ext <<EOF
5304 #line 5305 "configure"
5305 #include "confdefs.h"
5306 /* Override any gcc2 internal prototype to avoid an error. */
5307 /* We use char because int might match the return type of a gcc2
5308 builtin and then its argument prototype would still apply. */
5315 if { (eval echo configure:5316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5317 eval "ac_cv_lib_$ac_lib_var=yes"
5319 echo "configure: failed program was:" >&5
5320 cat conftest.$ac_ext >&5
5322 eval "ac_cv_lib_$ac_lib_var=no"
5327 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5328 echo "$ac_t""yes" 1>&6
5329 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5331 echo "$ac_t""no" 1>&6
5336 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5338 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
5339 echo "configure:5340: checking for dnet_ntoa in -ldnet_stub" >&5
5340 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5342 xe_check_libs=" -ldnet_stub "
5343 cat > conftest.$ac_ext <<EOF
5344 #line 5345 "configure"
5345 #include "confdefs.h"
5346 /* Override any gcc2 internal prototype to avoid an error. */
5347 /* We use char because int might match the return type of a gcc2
5348 builtin and then its argument prototype would still apply. */
5355 if { (eval echo configure:5356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5357 eval "ac_cv_lib_$ac_lib_var=yes"
5359 echo "configure: failed program was:" >&5
5360 cat conftest.$ac_ext >&5
5362 eval "ac_cv_lib_$ac_lib_var=no"
5367 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5368 echo "$ac_t""yes" 1>&6
5369 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5371 echo "$ac_t""no" 1>&6
5377 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5378 # to get the SysV transport functions.
5379 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
5381 # The nsl library prevents programs from opening the X display
5382 # on Irix 5.2, according to dickey@clark.net.
5383 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
5384 echo "configure:5385: checking for gethostbyname" >&5
5386 cat > conftest.$ac_ext <<EOF
5387 #line 5388 "configure"
5388 #include "confdefs.h"
5389 /* System header to define __stub macros and hopefully few prototypes,
5390 which can conflict with char gethostbyname(); below. */
5392 /* Override any gcc2 internal prototype to avoid an error. */
5393 /* We use char because int might match the return type of a gcc2
5394 builtin and then its argument prototype would still apply. */
5395 char gethostbyname();
5399 /* The GNU C library defines this for functions which it implements
5400 to always fail with ENOSYS. Some functions are actually named
5401 something starting with __ and the normal name is an alias. */
5402 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5410 if { (eval echo configure:5411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5412 eval "ac_cv_func_gethostbyname=yes"
5414 echo "configure: failed program was:" >&5
5415 cat conftest.$ac_ext >&5
5417 eval "ac_cv_func_gethostbyname=no"
5421 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
5422 echo "$ac_t""yes" 1>&6
5425 echo "$ac_t""no" 1>&6
5428 if test $ac_cv_func_gethostbyname = no; then
5430 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
5431 echo "configure:5432: checking for gethostbyname in -lnsl" >&5
5432 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
5434 xe_check_libs=" -lnsl "
5435 cat > conftest.$ac_ext <<EOF
5436 #line 5437 "configure"
5437 #include "confdefs.h"
5438 /* Override any gcc2 internal prototype to avoid an error. */
5439 /* We use char because int might match the return type of a gcc2
5440 builtin and then its argument prototype would still apply. */
5441 char gethostbyname();
5447 if { (eval echo configure:5448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5449 eval "ac_cv_lib_$ac_lib_var=yes"
5451 echo "configure: failed program was:" >&5
5452 cat conftest.$ac_ext >&5
5454 eval "ac_cv_lib_$ac_lib_var=no"
5459 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5460 echo "$ac_t""yes" 1>&6
5461 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5463 echo "$ac_t""no" 1>&6
5469 # lieder@skyler.mavd.honeywell.com says without -lsocket,
5470 # socket/setsockopt and other routines are undefined under SCO ODT
5471 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5472 # on later versions), says simon@lia.di.epfl.ch: it contains
5473 # gethostby* variants that don't use the nameserver (or something).
5474 # -lsocket must be given before -lnsl if both are needed.
5475 # We assume that if connect needs -lnsl, so does gethostbyname.
5476 echo $ac_n "checking for connect""... $ac_c" 1>&6
5477 echo "configure:5478: checking for connect" >&5
5479 cat > conftest.$ac_ext <<EOF
5480 #line 5481 "configure"
5481 #include "confdefs.h"
5482 /* System header to define __stub macros and hopefully few prototypes,
5483 which can conflict with char connect(); below. */
5485 /* Override any gcc2 internal prototype to avoid an error. */
5486 /* We use char because int might match the return type of a gcc2
5487 builtin and then its argument prototype would still apply. */
5492 /* The GNU C library defines this for functions which it implements
5493 to always fail with ENOSYS. Some functions are actually named
5494 something starting with __ and the normal name is an alias. */
5495 #if defined (__stub_connect) || defined (__stub___connect)
5503 if { (eval echo configure:5504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5505 eval "ac_cv_func_connect=yes"
5507 echo "configure: failed program was:" >&5
5508 cat conftest.$ac_ext >&5
5510 eval "ac_cv_func_connect=no"
5514 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
5515 echo "$ac_t""yes" 1>&6
5518 echo "$ac_t""no" 1>&6
5521 if test $ac_cv_func_connect = no; then
5523 xe_msg_checking="for connect in -lsocket"
5524 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
5525 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5526 echo "configure:5527: checking "$xe_msg_checking"" >&5
5527 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
5529 xe_check_libs=" -lsocket $X_EXTRA_LIBS"
5530 cat > conftest.$ac_ext <<EOF
5531 #line 5532 "configure"
5532 #include "confdefs.h"
5533 /* Override any gcc2 internal prototype to avoid an error. */
5534 /* We use char because int might match the return type of a gcc2
5535 builtin and then its argument prototype would still apply. */
5542 if { (eval echo configure:5543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5544 eval "ac_cv_lib_$ac_lib_var=yes"
5546 echo "configure: failed program was:" >&5
5547 cat conftest.$ac_ext >&5
5549 eval "ac_cv_lib_$ac_lib_var=no"
5554 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5555 echo "$ac_t""yes" 1>&6
5556 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5558 echo "$ac_t""no" 1>&6
5564 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
5565 echo $ac_n "checking for remove""... $ac_c" 1>&6
5566 echo "configure:5567: checking for remove" >&5
5568 cat > conftest.$ac_ext <<EOF
5569 #line 5570 "configure"
5570 #include "confdefs.h"
5571 /* System header to define __stub macros and hopefully few prototypes,
5572 which can conflict with char remove(); below. */
5574 /* Override any gcc2 internal prototype to avoid an error. */
5575 /* We use char because int might match the return type of a gcc2
5576 builtin and then its argument prototype would still apply. */
5581 /* The GNU C library defines this for functions which it implements
5582 to always fail with ENOSYS. Some functions are actually named
5583 something starting with __ and the normal name is an alias. */
5584 #if defined (__stub_remove) || defined (__stub___remove)
5592 if { (eval echo configure:5593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5594 eval "ac_cv_func_remove=yes"
5596 echo "configure: failed program was:" >&5
5597 cat conftest.$ac_ext >&5
5599 eval "ac_cv_func_remove=no"
5603 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
5604 echo "$ac_t""yes" 1>&6
5607 echo "$ac_t""no" 1>&6
5610 if test $ac_cv_func_remove = no; then
5612 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
5613 echo "configure:5614: checking for remove in -lposix" >&5
5614 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
5616 xe_check_libs=" -lposix "
5617 cat > conftest.$ac_ext <<EOF
5618 #line 5619 "configure"
5619 #include "confdefs.h"
5620 /* Override any gcc2 internal prototype to avoid an error. */
5621 /* We use char because int might match the return type of a gcc2
5622 builtin and then its argument prototype would still apply. */
5629 if { (eval echo configure:5630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5631 eval "ac_cv_lib_$ac_lib_var=yes"
5633 echo "configure: failed program was:" >&5
5634 cat conftest.$ac_ext >&5
5636 eval "ac_cv_lib_$ac_lib_var=no"
5641 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5642 echo "$ac_t""yes" 1>&6
5643 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5645 echo "$ac_t""no" 1>&6
5651 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5652 echo $ac_n "checking for shmat""... $ac_c" 1>&6
5653 echo "configure:5654: checking for shmat" >&5
5655 cat > conftest.$ac_ext <<EOF
5656 #line 5657 "configure"
5657 #include "confdefs.h"
5658 /* System header to define __stub macros and hopefully few prototypes,
5659 which can conflict with char shmat(); below. */
5661 /* Override any gcc2 internal prototype to avoid an error. */
5662 /* We use char because int might match the return type of a gcc2
5663 builtin and then its argument prototype would still apply. */
5668 /* The GNU C library defines this for functions which it implements
5669 to always fail with ENOSYS. Some functions are actually named
5670 something starting with __ and the normal name is an alias. */
5671 #if defined (__stub_shmat) || defined (__stub___shmat)
5679 if { (eval echo configure:5680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5681 eval "ac_cv_func_shmat=yes"
5683 echo "configure: failed program was:" >&5
5684 cat conftest.$ac_ext >&5
5686 eval "ac_cv_func_shmat=no"
5690 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
5691 echo "$ac_t""yes" 1>&6
5694 echo "$ac_t""no" 1>&6
5697 if test $ac_cv_func_shmat = no; then
5699 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
5700 echo "configure:5701: checking for shmat in -lipc" >&5
5701 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
5703 xe_check_libs=" -lipc "
5704 cat > conftest.$ac_ext <<EOF
5705 #line 5706 "configure"
5706 #include "confdefs.h"
5707 /* Override any gcc2 internal prototype to avoid an error. */
5708 /* We use char because int might match the return type of a gcc2
5709 builtin and then its argument prototype would still apply. */
5716 if { (eval echo configure:5717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5718 eval "ac_cv_lib_$ac_lib_var=yes"
5720 echo "configure: failed program was:" >&5
5721 cat conftest.$ac_ext >&5
5723 eval "ac_cv_lib_$ac_lib_var=no"
5728 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5729 echo "$ac_t""yes" 1>&6
5730 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5732 echo "$ac_t""no" 1>&6
5739 # Check for libraries that X11R6 Xt/Xaw programs need.
5740 ac_save_LDFLAGS="$LDFLAGS"
5741 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5742 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5743 # check for ICE first), but we must link in the order -lSM -lICE or
5744 # we get undefined symbols. So assume we have SM if we have ICE.
5745 # These have to be linked with before -lX11, unlike the other
5746 # libraries we check for below, so use a different variable.
5747 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
5749 xe_msg_checking="for IceConnectionNumber in -lICE"
5750 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
5751 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5752 echo "configure:5753: checking "$xe_msg_checking"" >&5
5753 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
5755 xe_check_libs=" -lICE $X_EXTRA_LIBS"
5756 cat > conftest.$ac_ext <<EOF
5757 #line 5758 "configure"
5758 #include "confdefs.h"
5759 /* Override any gcc2 internal prototype to avoid an error. */
5760 /* We use char because int might match the return type of a gcc2
5761 builtin and then its argument prototype would still apply. */
5762 char IceConnectionNumber();
5765 IceConnectionNumber()
5768 if { (eval echo configure:5769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5770 eval "ac_cv_lib_$ac_lib_var=yes"
5772 echo "configure: failed program was:" >&5
5773 cat conftest.$ac_ext >&5
5775 eval "ac_cv_lib_$ac_lib_var=no"
5780 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5781 echo "$ac_t""yes" 1>&6
5782 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5784 echo "$ac_t""no" 1>&6
5788 LDFLAGS="$ac_save_LDFLAGS"
5791 # Autoconf claims to find X library and include dirs for us.
5792 if test "$no_x" = "yes"
5793 then with_x11=no window_system=none HAVE_X_WINDOWS=no
5794 else with_x11=yes window_system=x11 HAVE_X_WINDOWS=yes
5799 yes ) window_system=x11 HAVE_X_WINDOWS=yes ;;
5800 no ) window_system=none HAVE_X_WINDOWS=no ;;
5803 if test "$with_x11" = "yes"; then
5804 { test "$extra_verbose" = "yes" && cat << \EOF
5805 Defining HAVE_X_WINDOWS
5807 cat >> confdefs.h <<\EOF
5808 #define HAVE_X_WINDOWS 1
5812 MAKE_SUBDIR="$MAKE_SUBDIR lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$MAKE_SUBDIR"; fi
5813 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$SRC_SUBDIR_DEPS"; fi
5815 for lib_dir in "/usr/dt/lib" "/usr/lib/Motif2.1" "/usr/lib/Motif1.2" "/usr/lib/Motif1.1"; do
5816 inc_dir=`echo $lib_dir | sed -e 's/lib/include/'`
5817 if test -d "$lib_dir" -a -d "$inc_dir"; then
5818 case "$x_libraries" in *"$lib_dir"* ) ;; *)
5819 x_libraries="$lib_dir $x_libraries"
5820 X_LIBS="-L${lib_dir} $X_LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-L${lib_dir}\" to \$X_LIBS"; fi ;;
5822 case "$x_includes" in "$inc_dir"* ) ;; *)
5823 x_includes="$inc_dir $x_includes"
5824 X_CFLAGS="-I${inc_dir} $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-I${inc_dir}\" to \$X_CFLAGS"; fi ;;
5829 for rel in "X11R6" "X11R5" "X11R4"; do
5830 lib_dir="/usr/contrib/$rel/lib" inc_dir="/usr/contrib/$rel/include"
5831 if test -d "$lib_dir" -a -d "$inc_dir"; then
5832 case "$x_libraries" in *"$lib_dir"* ) ;; *)
5833 x_libraries="$x_libraries $lib_dir"
5834 X_LIBS="$X_LIBS -L${lib_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L${lib_dir}\" to \$X_LIBS"; fi
5836 case "$x_includes" in "$inc_dir"* ) ;; *)
5837 x_includes="$x_includes $inc_dir"
5838 X_CFLAGS="$X_CFLAGS -I${inc_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-I${inc_dir}\" to \$X_CFLAGS"; fi
5844 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 ;;
5847 ld_switch_x_site="$X_LIBS"
5850 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
5851 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
5852 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
5854 runpath="" runpath_dirs=""
5855 if test -n "$LD_RUN_PATH"; then
5856 runpath="$LD_RUN_PATH"
5857 elif test "$GCC" = "yes"; then
5858 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
5859 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
5860 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
5861 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
5862 case "$arg" in P,* | -L* | -R* )
5863 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
5865 xe_runpath_dir="$dir"
5866 test "$xe_runpath_dir" != "/lib" -a \
5867 "$xe_runpath_dir" != "/usr/lib" -a \
5868 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
5869 eval "$xe_add_unique_runpath_dir"
5874 ld_switch_run="$ld_switch_run_save"
5877 for arg in $ld_switch_site $ld_switch_x_site; do
5878 case "$arg" in -L*) {
5879 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
5880 test "$xe_runpath_dir" != "/lib" -a \
5881 "$xe_runpath_dir" != "/usr/lib" -a \
5882 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
5883 eval "$xe_add_unique_runpath_dir"
5886 if test "$opsys $need_motif" = "sol2 yes"; then
5887 xe_runpath_dir="/opt/SUNWdt/lib";
5888 eval "$xe_add_unique_runpath_dir";
5891 if test -n "$runpath"; then
5892 ld_switch_run="${dash_r}${runpath}"
5894 if test "$GCC" = "yes"; then
5895 set x $ld_switch_run; shift; ld_switch_run=""
5896 while test -n "$1"; do
5898 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
5899 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
5901 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
5906 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
5911 if test "$extra_verbose" = "yes"; then
5912 echo; echo "X11 compilation variables:"
5913 for var in x_libraries x_includes X_CFLAGS X_LIBS X_PRE_LIBS X_EXTRA_LIBS; do eval "echo \"$var = '\$$var'\""; done
5918 if test "$x_includes" != NONE; then
5919 for i in $x_includes; do
5920 if test -d "$i/bitmaps"; then
5921 bitmapdirs="$i/bitmaps:$bitmapdirs"
5923 if test -d "$i/X11/bitmaps"; then
5924 bitmapdirs="$i/X11/bitmaps:$bitmapdirs"
5927 bitmapdirs=`echo "$bitmapdirs" | sed s/.$//`
5929 test ! -z "$bitmapdirs" && { test "$extra_verbose" = "yes" && cat << EOF
5930 Defining BITMAPDIR = "$bitmapdirs"
5932 cat >> confdefs.h <<EOF
5933 #define BITMAPDIR "$bitmapdirs"
5938 echo "checking for X defines extracted by xmkmf" 1>&6
5939 echo "configure:5940: checking for X defines extracted by xmkmf" >&5
5941 if mkdir conftestdir; then
5943 cat > Imakefile <<'EOF'
5945 @echo ${PROTO_DEFINES} ${STD_DEFINES}
5947 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5948 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5949 xmkmf_defines=`${MAKE-make} xetest 2>/dev/null | grep -v make`
5953 for word in $xmkmf_defines; do
5954 case "$word" in -D* )
5955 sym=`echo '' $word | sed -e 's:^ *-D::' -e 's:=.*::'`
5957 -D*=* ) val=`echo '' $word | sed -e 's:^.*=::'` ;;
5960 if grep "^#define $sym " confdefs.h >/dev/null; then :; else
5961 if test "$val" = "1"
5962 then { test "$extra_verbose" = "yes" && cat << EOF
5965 cat >> confdefs.h <<EOF
5970 else { test "$extra_verbose" = "yes" && cat << EOF
5971 Defining $sym = $val
5973 cat >> confdefs.h <<EOF
5984 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
5985 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
5986 echo "configure:5987: checking for X11/Intrinsic.h" >&5
5988 cat > conftest.$ac_ext <<EOF
5989 #line 5990 "configure"
5990 #include "confdefs.h"
5991 #include <X11/Intrinsic.h>
5993 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5994 { (eval echo configure:5995: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5995 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5996 if test -z "$ac_err"; then
5998 eval "ac_cv_header_$ac_safe=yes"
6001 echo "configure: failed program was:" >&5
6002 cat conftest.$ac_ext >&5
6004 eval "ac_cv_header_$ac_safe=no"
6007 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6008 echo "$ac_t""yes" 1>&6
6011 echo "$ac_t""no" 1>&6
6012 { echo "configure: error: "Unable to find X11 header files."" 1>&2; exit 1; }
6017 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
6018 echo "configure:6019: checking for XOpenDisplay in -lX11" >&5
6019 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
6021 xe_check_libs=" -lX11 "
6022 cat > conftest.$ac_ext <<EOF
6023 #line 6024 "configure"
6024 #include "confdefs.h"
6025 /* Override any gcc2 internal prototype to avoid an error. */
6026 /* We use char because int might match the return type of a gcc2
6027 builtin and then its argument prototype would still apply. */
6028 char XOpenDisplay();
6034 if { (eval echo configure:6035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6036 eval "ac_cv_lib_$ac_lib_var=yes"
6038 echo "configure: failed program was:" >&5
6039 cat conftest.$ac_ext >&5
6041 eval "ac_cv_lib_$ac_lib_var=no"
6046 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6047 echo "$ac_t""yes" 1>&6
6050 echo "$ac_t""no" 1>&6
6054 if test "$have_lib_x11" != "yes"; then
6056 xe_msg_checking="for XGetFontProperty in -lX11"
6057 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout"
6058 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6059 echo "configure:6060: checking "$xe_msg_checking"" >&5
6060 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
6062 xe_check_libs=" -lX11 -b i486-linuxaout"
6063 cat > conftest.$ac_ext <<EOF
6064 #line 6065 "configure"
6065 #include "confdefs.h"
6066 /* Override any gcc2 internal prototype to avoid an error. */
6067 /* We use char because int might match the return type of a gcc2
6068 builtin and then its argument prototype would still apply. */
6069 char XGetFontProperty();
6075 if { (eval echo configure:6076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6077 eval "ac_cv_lib_$ac_lib_var=yes"
6079 echo "configure: failed program was:" >&5
6080 cat conftest.$ac_ext >&5
6082 eval "ac_cv_lib_$ac_lib_var=no"
6087 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6088 echo "$ac_t""yes" 1>&6
6089 ld_switch_x_site="-b i486-linuxaout $ld_switch_x_site"
6091 echo "$ac_t""no" 1>&6
6092 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
6098 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
6101 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
6102 echo "configure:6103: checking for XShapeSelectInput in -lXext" >&5
6103 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
6105 xe_check_libs=" -lXext "
6106 cat > conftest.$ac_ext <<EOF
6107 #line 6108 "configure"
6108 #include "confdefs.h"
6109 /* Override any gcc2 internal prototype to avoid an error. */
6110 /* We use char because int might match the return type of a gcc2
6111 builtin and then its argument prototype would still apply. */
6112 char XShapeSelectInput();
6118 if { (eval echo configure:6119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6120 eval "ac_cv_lib_$ac_lib_var=yes"
6122 echo "configure: failed program was:" >&5
6123 cat conftest.$ac_ext >&5
6125 eval "ac_cv_lib_$ac_lib_var=no"
6130 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6131 echo "$ac_t""yes" 1>&6
6132 libs_x="-lXext $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXext\" to \$libs_x"; fi
6134 echo "$ac_t""no" 1>&6
6140 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6
6141 echo "configure:6142: checking for XtOpenDisplay in -lXt" >&5
6142 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
6144 xe_check_libs=" -lXt "
6145 cat > conftest.$ac_ext <<EOF
6146 #line 6147 "configure"
6147 #include "confdefs.h"
6148 /* Override any gcc2 internal prototype to avoid an error. */
6149 /* We use char because int might match the return type of a gcc2
6150 builtin and then its argument prototype would still apply. */
6151 char XtOpenDisplay();
6157 if { (eval echo configure:6158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6159 eval "ac_cv_lib_$ac_lib_var=yes"
6161 echo "configure: failed program was:" >&5
6162 cat conftest.$ac_ext >&5
6164 eval "ac_cv_lib_$ac_lib_var=no"
6169 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6170 echo "$ac_t""yes" 1>&6
6171 libs_x="-lXt $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXt\" to \$libs_x"; fi
6173 echo "$ac_t""no" 1>&6
6174 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
6179 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6
6180 echo "configure:6181: checking the version of X11 being used" >&5
6181 cat > conftest.$ac_ext <<EOF
6182 #line 6183 "configure"
6183 #include "confdefs.h"
6184 #include <X11/Intrinsic.h>
6185 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; }
6187 if { (eval echo configure:6188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6189 ./conftest foobar; x11_release=$?
6192 echo "configure: failed program was:" >&5
6193 cat conftest.$ac_ext >&5
6198 echo "$ac_t""R${x11_release}" 1>&6
6199 { test "$extra_verbose" = "yes" && cat << EOF
6200 Defining THIS_IS_X11R${x11_release}
6202 cat >> confdefs.h <<EOF
6203 #define THIS_IS_X11R${x11_release} 1
6208 if test "${x11_release}" = "4"; then
6209 case "$with_widgets" in
6210 "" | "no") with_widgets=no ;;
6211 *) { echo "Error:" "Widget support requires X11R5 or greater" >&2; exit 1; } ;;
6215 for ac_func in XConvertCase
6217 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6218 echo "configure:6219: checking for $ac_func" >&5
6220 cat > conftest.$ac_ext <<EOF
6221 #line 6222 "configure"
6222 #include "confdefs.h"
6223 /* System header to define __stub macros and hopefully few prototypes,
6224 which can conflict with char $ac_func(); below. */
6226 /* Override any gcc2 internal prototype to avoid an error. */
6227 /* We use char because int might match the return type of a gcc2
6228 builtin and then its argument prototype would still apply. */
6233 /* The GNU C library defines this for functions which it implements
6234 to always fail with ENOSYS. Some functions are actually named
6235 something starting with __ and the normal name is an alias. */
6236 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6244 if { (eval echo configure:6245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6246 eval "ac_cv_func_$ac_func=yes"
6248 echo "configure: failed program was:" >&5
6249 cat conftest.$ac_ext >&5
6251 eval "ac_cv_func_$ac_func=no"
6255 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6256 echo "$ac_t""yes" 1>&6
6257 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6258 { test "$extra_verbose" = "yes" && cat << EOF
6259 Defining $ac_tr_func
6261 cat >> confdefs.h <<EOF
6262 #define $ac_tr_func 1
6267 echo "$ac_t""no" 1>&6
6272 for ac_hdr in X11/Xlocale.h
6274 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6275 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6276 echo "configure:6277: checking for $ac_hdr" >&5
6278 cat > conftest.$ac_ext <<EOF
6279 #line 6280 "configure"
6280 #include "confdefs.h"
6283 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6284 { (eval echo configure:6285: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6285 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6286 if test -z "$ac_err"; then
6288 eval "ac_cv_header_$ac_safe=yes"
6291 echo "configure: failed program was:" >&5
6292 cat conftest.$ac_ext >&5
6294 eval "ac_cv_header_$ac_safe=no"
6297 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6298 echo "$ac_t""yes" 1>&6
6299 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6300 { test "$extra_verbose" = "yes" && cat << EOF
6303 cat >> confdefs.h <<EOF
6304 #define $ac_tr_hdr 1
6309 echo "$ac_t""no" 1>&6
6314 for ac_func in XRegisterIMInstantiateCallback
6316 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6317 echo "configure:6318: checking for $ac_func" >&5
6319 cat > conftest.$ac_ext <<EOF
6320 #line 6321 "configure"
6321 #include "confdefs.h"
6322 /* System header to define __stub macros and hopefully few prototypes,
6323 which can conflict with char $ac_func(); below. */
6325 /* Override any gcc2 internal prototype to avoid an error. */
6326 /* We use char because int might match the return type of a gcc2
6327 builtin and then its argument prototype would still apply. */
6332 /* The GNU C library defines this for functions which it implements
6333 to always fail with ENOSYS. Some functions are actually named
6334 something starting with __ and the normal name is an alias. */
6335 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6343 if { (eval echo configure:6344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6345 eval "ac_cv_func_$ac_func=yes"
6347 echo "configure: failed program was:" >&5
6348 cat conftest.$ac_ext >&5
6350 eval "ac_cv_func_$ac_func=no"
6354 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6355 echo "$ac_t""yes" 1>&6
6356 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6357 { test "$extra_verbose" = "yes" && cat << EOF
6358 Defining $ac_tr_func
6360 cat >> confdefs.h <<EOF
6361 #define $ac_tr_func 1
6366 echo "$ac_t""no" 1>&6
6370 echo $ac_n "checking for standard XRegisterIMInstantiateCallback prototype""... $ac_c" 1>&6
6371 echo "configure:6372: checking for standard XRegisterIMInstantiateCallback prototype" >&5
6372 cat > conftest.$ac_ext <<EOF
6373 #line 6374 "configure"
6374 #include "confdefs.h"
6376 #define NeedFunctionPrototypes 1
6377 #include <X11/Xlib.h>
6378 extern Bool XRegisterIMInstantiateCallback(
6379 Display*, struct _XrmHashBucketRec*, char*, char*, XIMProc, XPointer*);
6385 if { (eval echo configure:6386: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6387 echo "$ac_t""yes" 1>&6
6389 echo "configure: failed program was:" >&5
6390 cat conftest.$ac_ext >&5
6392 echo "$ac_t""no" 1>&6
6393 { test "$extra_verbose" = "yes" && cat << \EOF
6394 Defining XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE
6396 cat >> confdefs.h <<\EOF
6397 #define XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE 1
6404 test -z "$with_xmu" && {
6405 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6
6406 echo "configure:6407: checking for XmuReadBitmapDataFromFile in -lXmu" >&5
6407 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'`
6409 xe_check_libs=" -lXmu "
6410 cat > conftest.$ac_ext <<EOF
6411 #line 6412 "configure"
6412 #include "confdefs.h"
6413 /* Override any gcc2 internal prototype to avoid an error. */
6414 /* We use char because int might match the return type of a gcc2
6415 builtin and then its argument prototype would still apply. */
6416 char XmuReadBitmapDataFromFile();
6419 XmuReadBitmapDataFromFile()
6422 if { (eval echo configure:6423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6424 eval "ac_cv_lib_$ac_lib_var=yes"
6426 echo "configure: failed program was:" >&5
6427 cat conftest.$ac_ext >&5
6429 eval "ac_cv_lib_$ac_lib_var=no"
6434 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6435 echo "$ac_t""yes" 1>&6
6438 echo "$ac_t""no" 1>&6
6443 if test "$with_xmu" = "no"; then
6444 extra_objs="$extra_objs xmu.o" && if test "$extra_verbose" = "yes"; then
6445 echo " xemacs will be linked with \"xmu.o\""
6448 libs_x="-lXmu $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXmu\" to \$libs_x"; fi
6449 { test "$extra_verbose" = "yes" && cat << \EOF
6452 cat >> confdefs.h <<\EOF
6460 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
6461 echo "configure:6462: checking for main in -lXbsd" >&5
6462 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
6464 xe_check_libs=" -lXbsd "
6465 cat > conftest.$ac_ext <<EOF
6466 #line 6467 "configure"
6467 #include "confdefs.h"
6473 if { (eval echo configure:6474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6475 eval "ac_cv_lib_$ac_lib_var=yes"
6477 echo "configure: failed program was:" >&5
6478 cat conftest.$ac_ext >&5
6480 eval "ac_cv_lib_$ac_lib_var=no"
6485 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6486 echo "$ac_t""yes" 1>&6
6487 libs_x="-lXbsd $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXbsd\" to \$libs_x"; fi
6489 echo "$ac_t""no" 1>&6
6494 if test "$unexec" = "unexaix.o" -a "$x11_release" = "6"; then
6495 if test "$GCC" = "yes"; then
6496 X_CFLAGS="-mthreads $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$X_CFLAGS"; fi
6497 libs_x="-mthreads $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$libs_x"; fi
6500 "xlc" ) CC="xlc_r" ;;
6501 "xlC" ) CC="xlC_r" ;;
6508 if test "$with_msw" != "no"; then
6509 echo "checking for MS-Windows" 1>&6
6510 echo "configure:6511: checking for MS-Windows" >&5
6512 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6
6513 echo "configure:6514: checking for main in -lgdi32" >&5
6514 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'`
6516 xe_check_libs=" -lgdi32 "
6517 cat > conftest.$ac_ext <<EOF
6518 #line 6519 "configure"
6519 #include "confdefs.h"
6525 if { (eval echo configure:6526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6527 eval "ac_cv_lib_$ac_lib_var=yes"
6529 echo "configure: failed program was:" >&5
6530 cat conftest.$ac_ext >&5
6532 eval "ac_cv_lib_$ac_lib_var=no"
6537 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6538 echo "$ac_t""yes" 1>&6
6541 echo "$ac_t""no" 1>&6
6545 if test "$with_msw" = "yes"; then
6546 { test "$extra_verbose" = "yes" && cat << \EOF
6547 Defining HAVE_MS_WINDOWS
6549 cat >> confdefs.h <<\EOF
6550 #define HAVE_MS_WINDOWS 1
6555 MAKE_SUBDIR="$MAKE_SUBDIR netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$MAKE_SUBDIR"; fi
6556 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$SRC_SUBDIR_DEPS"; fi
6557 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
6559 install_pp="$blddir/lib-src/installexe.sh"
6560 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
6561 test "$with_dragndrop" != no && dragndrop_proto="$dragndrop_proto msw" && if test "$extra_verbose" = "yes"; then echo " Appending \"msw\" to \$dragndrop_proto"; fi
6562 if test "$window_system" != x11; then
6564 test "$with_scrollbars" != "no" && with_scrollbars=msw \
6565 && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
6566 echo " xemacs will be linked with \"scrollbar-msw.o\""
6568 test "$with_menubars" != "no" && with_menubars=msw \
6569 && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
6570 echo " xemacs will be linked with \"menubar-msw.o\""
6572 test "$with_toolbars" != "no" && with_toolbars=msw \
6573 && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
6574 echo " xemacs will be linked with \"toolbar-msw.o\""
6576 test "$with_dialogs" != "no" && with_dialogs=msw \
6577 && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
6578 echo " xemacs will be linked with \"dialog-msw.o\""
6580 test "$with_widgets" != "no" && with_widgets=msw
6582 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
6583 echo " xemacs will be linked with \"scrollbar-msw.o\""
6585 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
6586 echo " xemacs will be linked with \"menubar-msw.o\""
6588 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
6589 echo " xemacs will be linked with \"toolbar-msw.o\""
6591 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
6592 echo " xemacs will be linked with \"dialog-msw.o\""
6595 cat > conftest.$ac_ext <<EOF
6596 #line 6597 "configure"
6597 #include "confdefs.h"
6599 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; }
6601 if { (eval echo configure:6602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6603 { test "$extra_verbose" = "yes" && cat << \EOF
6604 Defining HAVE_MSG_SELECT
6606 cat >> confdefs.h <<\EOF
6607 #define HAVE_MSG_SELECT 1
6613 echo "configure: failed program was:" >&5
6614 cat conftest.$ac_ext >&5
6617 with_file_coding=yes
6618 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
6619 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\""
6626 test -z "$window_system" && window_system="none"
6628 if test "$window_system" = "none"; then
6629 for feature in menubars scrollbars toolbars dialogs dragndrop xface
6631 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
6632 echo "configure: warning: --with-$feature ignored: Not valid without window system support" 1>&2
6634 eval "with_${feature}=no"
6637 test -z "$with_toolbars" && with_toolbars=yes
6640 if test "$with_msw" != "yes"; then
6641 for feature in MARTIN_IS_CLUELESS_ABOUT_MSW_FEATURES
6643 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
6644 echo "configure: warning: --with-$feature ignored: Not valid without MS-Windows support" 1>&2
6646 eval "with_${feature}=no"
6652 if test "$with_x11" != "yes"; then
6653 for feature in tooltalk cde offix wmcommand xim xmu nas_sound
6655 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
6656 echo "configure: warning: --with-$feature ignored: Not valid without X support" 1>&2
6658 eval "with_${feature}=no"
6662 if test "$with_x11" = "yes"; then
6663 ac_safe=`echo "X11/extensions/shape.h" | sed 'y%./+-%__p_%'`
6664 echo $ac_n "checking for X11/extensions/shape.h""... $ac_c" 1>&6
6665 echo "configure:6666: checking for X11/extensions/shape.h" >&5
6667 cat > conftest.$ac_ext <<EOF
6668 #line 6669 "configure"
6669 #include "confdefs.h"
6670 #include <X11/extensions/shape.h>
6672 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6673 { (eval echo configure:6674: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6674 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6675 if test -z "$ac_err"; then
6677 eval "ac_cv_header_$ac_safe=yes"
6680 echo "configure: failed program was:" >&5
6681 cat conftest.$ac_ext >&5
6683 eval "ac_cv_header_$ac_safe=no"
6686 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6687 echo "$ac_t""yes" 1>&6
6689 { test "$extra_verbose" = "yes" && cat << \EOF
6690 Defining HAVE_BALLOON_HELP
6692 cat >> confdefs.h <<\EOF
6693 #define HAVE_BALLOON_HELP 1
6697 extra_objs="$extra_objs balloon_help.o balloon-x.o" && if test "$extra_verbose" = "yes"; then
6698 echo " xemacs will be linked with \"balloon_help.o balloon-x.o\""
6701 echo "$ac_t""no" 1>&6
6708 case "$window_system" in
6709 x11 ) HAVE_X_WINDOWS=yes; echo " Using X11." ;;
6710 msw ) HAVE_X_WINDOWS=no ; echo " Using MS-Windows." ;;
6711 none ) HAVE_X_WINDOWS=no ; echo " Using no window system." ;;
6714 case "$x_libraries" in *X11R4* )
6715 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h"
6716 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h"
6719 echo "checking for WM_COMMAND option" 1>&6
6720 echo "configure:6721: checking for WM_COMMAND option" >&5;
6721 if test "$with_wmcommand" != "no"; then
6722 { test "$extra_verbose" = "yes" && cat << \EOF
6723 Defining HAVE_WMCOMMAND
6725 cat >> confdefs.h <<\EOF
6726 #define HAVE_WMCOMMAND 1
6732 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
6733 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'`
6734 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
6735 echo "configure:6736: checking for X11/Xauth.h" >&5
6737 cat > conftest.$ac_ext <<EOF
6738 #line 6739 "configure"
6739 #include "confdefs.h"
6740 #include <X11/Xauth.h>
6742 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6743 { (eval echo configure:6744: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6744 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6745 if test -z "$ac_err"; then
6747 eval "ac_cv_header_$ac_safe=yes"
6750 echo "configure: failed program was:" >&5
6751 cat conftest.$ac_ext >&5
6753 eval "ac_cv_header_$ac_safe=no"
6756 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6757 echo "$ac_t""yes" 1>&6
6760 echo "$ac_t""no" 1>&6
6764 test -z "$with_xauth" && {
6765 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
6766 echo "configure:6767: checking for XauGetAuthByAddr in -lXau" >&5
6767 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
6769 xe_check_libs=" -lXau "
6770 cat > conftest.$ac_ext <<EOF
6771 #line 6772 "configure"
6772 #include "confdefs.h"
6773 /* Override any gcc2 internal prototype to avoid an error. */
6774 /* We use char because int might match the return type of a gcc2
6775 builtin and then its argument prototype would still apply. */
6776 char XauGetAuthByAddr();
6782 if { (eval echo configure:6783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6784 eval "ac_cv_lib_$ac_lib_var=yes"
6786 echo "configure: failed program was:" >&5
6787 cat conftest.$ac_ext >&5
6789 eval "ac_cv_lib_$ac_lib_var=no"
6794 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6795 echo "$ac_t""yes" 1>&6
6798 echo "$ac_t""no" 1>&6
6803 test -z "$with_xauth" && with_xauth=yes
6804 if test "$with_xauth" = "yes"; then
6805 { test "$extra_verbose" = "yes" && cat << \EOF
6808 cat >> confdefs.h <<\EOF
6809 #define HAVE_XAUTH 1
6815 for W in $X_EXTRA_LIBS -lXau $libs_x $X_PRE_LIBS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
6823 if test "$with_tooltalk" != "no" ; then
6824 for dir in "" "Tt/" "desktop/" ; do
6825 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
6826 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
6827 echo "configure:6828: checking for ${dir}tt_c.h" >&5
6829 cat > conftest.$ac_ext <<EOF
6830 #line 6831 "configure"
6831 #include "confdefs.h"
6832 #include <${dir}tt_c.h>
6834 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6835 { (eval echo configure:6836: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6836 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6837 if test -z "$ac_err"; then
6839 eval "ac_cv_header_$ac_safe=yes"
6842 echo "configure: failed program was:" >&5
6843 cat conftest.$ac_ext >&5
6845 eval "ac_cv_header_$ac_safe=no"
6848 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6849 echo "$ac_t""yes" 1>&6
6850 tt_c_h_file="${dir}tt_c.h"; break
6852 echo "$ac_t""no" 1>&6
6856 if test -z "$tt_c_h_file"; then
6857 if test "$with_tooltalk" = "yes"; then
6858 (echo "$progname: Usage error:"
6859 echo " " "Unable to find required tooltalk header files."
6860 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
6865 if test "$with_tooltalk" != "no" ; then
6866 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
6868 xe_msg_checking="for tt_message_create in -ltt"
6869 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
6870 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6871 echo "configure:6872: checking "$xe_msg_checking"" >&5
6872 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
6874 xe_check_libs=" -ltt $extra_libs"
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 tt_message_create();
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
6901 tt_libs="-ltt $extra_libs"; break
6903 echo "$ac_t""no" 1>&6
6909 if test -z "$tt_libs"; then
6910 if test "$with_tooltalk" = "yes"; then
6911 (echo "$progname: Usage error:"
6912 echo " " "Unable to find required tooltalk libraries."
6913 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
6918 test -z "$with_tooltalk" && with_tooltalk=yes
6919 if test "$with_tooltalk" = "yes"; then
6920 { test "$extra_verbose" = "yes" && cat << \EOF
6923 cat >> confdefs.h <<\EOF
6928 { test "$extra_verbose" = "yes" && cat << EOF
6929 Defining TT_C_H_FILE = "$tt_c_h_file"
6931 cat >> confdefs.h <<EOF
6932 #define TT_C_H_FILE "$tt_c_h_file"
6936 libs_x="$tt_libs $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$tt_libs\" to \$libs_x"; fi
6937 extra_objs="$extra_objs tooltalk.o" && if test "$extra_verbose" = "yes"; then
6938 echo " xemacs will be linked with \"tooltalk.o\""
6942 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'`
6943 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
6944 echo "configure:6945: checking for Dt/Dt.h" >&5
6946 cat > conftest.$ac_ext <<EOF
6947 #line 6948 "configure"
6948 #include "confdefs.h"
6951 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6952 { (eval echo configure:6953: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6953 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6954 if test -z "$ac_err"; then
6956 eval "ac_cv_header_$ac_safe=yes"
6959 echo "configure: failed program was:" >&5
6960 cat conftest.$ac_ext >&5
6962 eval "ac_cv_header_$ac_safe=no"
6965 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6966 echo "$ac_t""yes" 1>&6
6969 echo "$ac_t""no" 1>&6
6973 test -z "$with_cde" && {
6974 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
6975 echo "configure:6976: checking for DtDndDragStart in -lDtSvc" >&5
6976 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
6978 xe_check_libs=" -lDtSvc "
6979 cat > conftest.$ac_ext <<EOF
6980 #line 6981 "configure"
6981 #include "confdefs.h"
6982 /* Override any gcc2 internal prototype to avoid an error. */
6983 /* We use char because int might match the return type of a gcc2
6984 builtin and then its argument prototype would still apply. */
6985 char DtDndDragStart();
6991 if { (eval echo configure:6992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6993 eval "ac_cv_lib_$ac_lib_var=yes"
6995 echo "configure: failed program was:" >&5
6996 cat conftest.$ac_ext >&5
6998 eval "ac_cv_lib_$ac_lib_var=no"
7003 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7004 echo "$ac_t""yes" 1>&6
7007 echo "$ac_t""no" 1>&6
7012 test -z "$with_cde" && with_cde=yes
7013 if test "$with_dragndrop" = no; then
7014 echo "configure: warning: No CDE without generic Drag'n'Drop support" 1>&2
7017 if test "$with_cde" = "yes" ; then
7018 { test "$extra_verbose" = "yes" && cat << \EOF
7021 cat >> confdefs.h <<\EOF
7026 libs_x="-lDtSvc $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lDtSvc\" to \$libs_x"; fi
7027 dragndrop_proto="$dragndrop_proto CDE" && if test "$extra_verbose" = "yes"; then echo " Appending \"CDE\" to \$dragndrop_proto"; fi
7028 with_tooltalk=yes # CDE requires Tooltalk
7029 need_motif=yes # CDE requires Motif
7032 test "$window_system" != "x11" && with_offix=no
7033 if test "$with_xmu" != yes -a "$with_x11" = yes; then
7034 echo "configure: warning: No OffiX without real Xmu support" 1>&2
7037 if test "$with_dragndrop" = no; then
7038 echo "configure: warning: No OffiX without generic Drag'n'Drop support" 1>&2
7041 if test "$with_cde" = yes; then
7042 echo "configure: warning: CDE already found, disabling OffiX support" 1>&2
7045 test -z "$with_offix" && with_offix=no
7046 if test "$with_offix" = "yes"; then
7047 { test "$extra_verbose" = "yes" && cat << \EOF
7048 Defining HAVE_OFFIX_DND
7050 cat >> confdefs.h <<\EOF
7051 #define HAVE_OFFIX_DND 1
7055 dnd_objs="$dnd_objs offix.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"offix.o\" to \$dnd_objs"; fi
7056 dragndrop_proto="$dragndrop_proto OffiX" && if test "$extra_verbose" = "yes"; then echo " Appending \"OffiX\" to \$dragndrop_proto"; fi
7059 if test "$with_dragndrop" != "no" ; then
7060 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6
7061 echo "configure:7062: checking if drag and drop API is needed" >&5
7062 if test -n "$dragndrop_proto" ; then
7064 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6
7065 { test "$extra_verbose" = "yes" && cat << \EOF
7066 Defining HAVE_DRAGNDROP
7068 cat >> confdefs.h <<\EOF
7069 #define HAVE_DRAGNDROP 1
7073 extra_objs="$extra_objs dragdrop.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"dragdrop.o\" to \$extra_objs"; fi
7076 echo "$ac_t""no" 1>&6
7080 echo "checking for LDAP" 1>&6
7081 echo "configure:7082: checking for LDAP" >&5
7082 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'`
7083 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6
7084 echo "configure:7085: checking for ldap.h" >&5
7086 cat > conftest.$ac_ext <<EOF
7087 #line 7088 "configure"
7088 #include "confdefs.h"
7091 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7092 { (eval echo configure:7093: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7093 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7094 if test -z "$ac_err"; then
7096 eval "ac_cv_header_$ac_safe=yes"
7099 echo "configure: failed program was:" >&5
7100 cat conftest.$ac_ext >&5
7102 eval "ac_cv_header_$ac_safe=no"
7105 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7106 echo "$ac_t""yes" 1>&6
7109 echo "$ac_t""no" 1>&6
7113 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'`
7114 echo $ac_n "checking for lber.h""... $ac_c" 1>&6
7115 echo "configure:7116: checking for lber.h" >&5
7117 cat > conftest.$ac_ext <<EOF
7118 #line 7119 "configure"
7119 #include "confdefs.h"
7122 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7123 { (eval echo configure:7124: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7124 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7125 if test -z "$ac_err"; then
7127 eval "ac_cv_header_$ac_safe=yes"
7130 echo "configure: failed program was:" >&5
7131 cat conftest.$ac_ext >&5
7133 eval "ac_cv_header_$ac_safe=no"
7136 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7137 echo "$ac_t""yes" 1>&6
7140 echo "$ac_t""no" 1>&6
7144 if test "$with_ldap" != "no"; then
7146 echo $ac_n "checking for ldap_search in -lldap""... $ac_c" 1>&6
7147 echo "configure:7148: checking for ldap_search in -lldap" >&5
7148 ac_lib_var=`echo ldap'_'ldap_search | sed 'y%./+-%__p_%'`
7150 xe_check_libs=" -lldap "
7151 cat > conftest.$ac_ext <<EOF
7152 #line 7153 "configure"
7153 #include "confdefs.h"
7154 /* Override any gcc2 internal prototype to avoid an error. */
7155 /* We use char because int might match the return type of a gcc2
7156 builtin and then its argument prototype would still apply. */
7163 if { (eval echo configure:7164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7165 eval "ac_cv_lib_$ac_lib_var=yes"
7167 echo "configure: failed program was:" >&5
7168 cat conftest.$ac_ext >&5
7170 eval "ac_cv_lib_$ac_lib_var=no"
7175 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7176 echo "$ac_t""yes" 1>&6
7177 with_ldap_nolber=yes
7179 echo "$ac_t""no" 1>&6
7184 test "$with_ldap_nolber" = "no" && {
7185 xe_msg_checking="for ldap_open in -lldap"
7186 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber"
7187 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7188 echo "configure:7189: checking "$xe_msg_checking"" >&5
7189 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7191 xe_check_libs=" -lldap -llber"
7192 cat > conftest.$ac_ext <<EOF
7193 #line 7194 "configure"
7194 #include "confdefs.h"
7195 /* Override any gcc2 internal prototype to avoid an error. */
7196 /* We use char because int might match the return type of a gcc2
7197 builtin and then its argument prototype would still apply. */
7204 if { (eval echo configure:7205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7206 eval "ac_cv_lib_$ac_lib_var=yes"
7208 echo "configure: failed program was:" >&5
7209 cat conftest.$ac_ext >&5
7211 eval "ac_cv_lib_$ac_lib_var=no"
7216 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7217 echo "$ac_t""yes" 1>&6
7220 echo "$ac_t""no" 1>&6
7225 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" && {
7226 xe_msg_checking="for ldap_open in -lldap"
7227 test -n "-llber -lkrb" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb"
7228 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7229 echo "configure:7230: checking "$xe_msg_checking"" >&5
7230 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7232 xe_check_libs=" -lldap -llber -lkrb"
7233 cat > conftest.$ac_ext <<EOF
7234 #line 7235 "configure"
7235 #include "confdefs.h"
7236 /* Override any gcc2 internal prototype to avoid an error. */
7237 /* We use char because int might match the return type of a gcc2
7238 builtin and then its argument prototype would still apply. */
7245 if { (eval echo configure:7246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7247 eval "ac_cv_lib_$ac_lib_var=yes"
7249 echo "configure: failed program was:" >&5
7250 cat conftest.$ac_ext >&5
7252 eval "ac_cv_lib_$ac_lib_var=no"
7257 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7258 echo "$ac_t""yes" 1>&6
7261 echo "$ac_t""no" 1>&6
7266 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" -a "$with_ldap_krb" = "no" && {
7267 xe_msg_checking="for ldap_open in -lldap"
7268 test -n "-llber -lkrb -ldes" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb -ldes"
7269 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7270 echo "configure:7271: checking "$xe_msg_checking"" >&5
7271 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7273 xe_check_libs=" -lldap -llber -lkrb -ldes"
7274 cat > conftest.$ac_ext <<EOF
7275 #line 7276 "configure"
7276 #include "confdefs.h"
7277 /* Override any gcc2 internal prototype to avoid an error. */
7278 /* We use char because int might match the return type of a gcc2
7279 builtin and then its argument prototype would still apply. */
7286 if { (eval echo configure:7287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7288 eval "ac_cv_lib_$ac_lib_var=yes"
7290 echo "configure: failed program was:" >&5
7291 cat conftest.$ac_ext >&5
7293 eval "ac_cv_lib_$ac_lib_var=no"
7298 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7299 echo "$ac_t""yes" 1>&6
7300 with_ldap_krbdes=yes
7302 echo "$ac_t""no" 1>&6
7307 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
7309 if test "$with_ldap" = "yes"; then
7310 { test "$extra_verbose" = "yes" && cat << \EOF
7313 cat >> confdefs.h <<\EOF
7318 extra_objs="$extra_objs eldap.o" && if test "$extra_verbose" = "yes"; then
7319 echo " xemacs will be linked with \"eldap.o\""
7321 if test "$with_ldap_nolber" = "yes" ; then
7322 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
7324 if test "$with_ldap_krb" = "yes" ; then
7325 LIBS="-lkrb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$LIBS"; fi
7327 if test "$with_ldap_krbdes" = "yes" ; then
7328 LIBS="-ldes $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldes\" to \$LIBS"; fi
7329 LIBS="-lkrb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$LIBS"; fi
7331 LIBS="-llber $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-llber\" to \$LIBS"; fi
7332 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
7334 for ac_func in ldap_set_option ldap_get_lderrno ldap_result2error ldap_parse_result
7336 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7337 echo "configure:7338: checking for $ac_func" >&5
7339 cat > conftest.$ac_ext <<EOF
7340 #line 7341 "configure"
7341 #include "confdefs.h"
7342 /* System header to define __stub macros and hopefully few prototypes,
7343 which can conflict with char $ac_func(); below. */
7345 /* Override any gcc2 internal prototype to avoid an error. */
7346 /* We use char because int might match the return type of a gcc2
7347 builtin and then its argument prototype would still apply. */
7352 /* The GNU C library defines this for functions which it implements
7353 to always fail with ENOSYS. Some functions are actually named
7354 something starting with __ and the normal name is an alias. */
7355 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7363 if { (eval echo configure:7364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7365 eval "ac_cv_func_$ac_func=yes"
7367 echo "configure: failed program was:" >&5
7368 cat conftest.$ac_ext >&5
7370 eval "ac_cv_func_$ac_func=no"
7374 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7375 echo "$ac_t""yes" 1>&6
7376 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7377 { test "$extra_verbose" = "yes" && cat << EOF
7378 Defining $ac_tr_func
7380 cat >> confdefs.h <<EOF
7381 #define $ac_tr_func 1
7386 echo "$ac_t""no" 1>&6
7392 if test "$with_postgresql" != "no"; then
7393 echo "checking for PostgreSQL" 1>&6
7394 echo "configure:7395: checking for PostgreSQL" >&5
7396 for header_dir in "" "pgsql/" "postgresql/"; do
7397 ac_safe=`echo "${header_dir}libpq-fe.h" | sed 'y%./+-%__p_%'`
7398 echo $ac_n "checking for ${header_dir}libpq-fe.h""... $ac_c" 1>&6
7399 echo "configure:7400: checking for ${header_dir}libpq-fe.h" >&5
7401 cat > conftest.$ac_ext <<EOF
7402 #line 7403 "configure"
7403 #include "confdefs.h"
7404 #include <${header_dir}libpq-fe.h>
7406 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7407 { (eval echo configure:7408: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7408 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7409 if test -z "$ac_err"; then
7411 eval "ac_cv_header_$ac_safe=yes"
7414 echo "configure: failed program was:" >&5
7415 cat conftest.$ac_ext >&5
7417 eval "ac_cv_header_$ac_safe=no"
7420 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7421 echo "$ac_t""yes" 1>&6
7422 libpq_fe_h_file=${header_dir}libpq-fe.h; break
7424 echo "$ac_t""no" 1>&6
7429 test -n "$libpq_fe_h_file" && {
7430 echo $ac_n "checking for PQconnectdb in -lpq""... $ac_c" 1>&6
7431 echo "configure:7432: checking for PQconnectdb in -lpq" >&5
7432 ac_lib_var=`echo pq'_'PQconnectdb | sed 'y%./+-%__p_%'`
7434 xe_check_libs=" -lpq "
7435 cat > conftest.$ac_ext <<EOF
7436 #line 7437 "configure"
7437 #include "confdefs.h"
7438 /* Override any gcc2 internal prototype to avoid an error. */
7439 /* We use char because int might match the return type of a gcc2
7440 builtin and then its argument prototype would still apply. */
7447 if { (eval echo configure:7448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7449 eval "ac_cv_lib_$ac_lib_var=yes"
7451 echo "configure: failed program was:" >&5
7452 cat conftest.$ac_ext >&5
7454 eval "ac_cv_lib_$ac_lib_var=no"
7459 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7460 echo "$ac_t""yes" 1>&6
7463 echo "$ac_t""no" 1>&6
7468 if test -n "$libpq_fe_h_file" -a "$have_libpq" = "yes"; then
7470 { test "$extra_verbose" = "yes" && cat << \EOF
7471 Defining HAVE_POSTGRESQL
7473 cat >> confdefs.h <<\EOF
7474 #define HAVE_POSTGRESQL 1
7479 echo $ac_n "checking for PQconnectStart in -lpq""... $ac_c" 1>&6
7480 echo "configure:7481: checking for PQconnectStart in -lpq" >&5
7481 ac_lib_var=`echo pq'_'PQconnectStart | sed 'y%./+-%__p_%'`
7483 xe_check_libs=" -lpq "
7484 cat > conftest.$ac_ext <<EOF
7485 #line 7486 "configure"
7486 #include "confdefs.h"
7487 /* Override any gcc2 internal prototype to avoid an error. */
7488 /* We use char because int might match the return type of a gcc2
7489 builtin and then its argument prototype would still apply. */
7490 char PQconnectStart();
7496 if { (eval echo configure:7497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7498 eval "ac_cv_lib_$ac_lib_var=yes"
7500 echo "configure: failed program was:" >&5
7501 cat conftest.$ac_ext >&5
7503 eval "ac_cv_lib_$ac_lib_var=no"
7508 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7509 echo "$ac_t""yes" 1>&6
7510 with_postgresqlv7=yes;
7511 { test "$extra_verbose" = "yes" && cat << \EOF
7512 Defining HAVE_POSTGRESQLV7
7514 cat >> confdefs.h <<\EOF
7515 #define HAVE_POSTGRESQLV7 1
7520 echo "$ac_t""no" 1>&6
7524 { test "$extra_verbose" = "yes" && cat << EOF
7525 Defining LIBPQ_FE_H_FILE = "$libpq_fe_h_file"
7527 cat >> confdefs.h <<EOF
7528 #define LIBPQ_FE_H_FILE "$libpq_fe_h_file"
7532 LIBS="-lpq $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpq\" to \$LIBS"; fi
7533 extra_objs="$extra_objs postgresql.o" && if test "$extra_verbose" = "yes"; then
7534 echo " xemacs will be linked with \"postgresql.o\""
7536 elif test "$with_postgresql" = "yes"; then
7537 { echo "Error:" "Required PostgreSQL support cannot be provided. Check --site-prefixes." >&2; exit 1; }
7542 if test "$window_system" != "none"; then
7543 echo "checking for graphics libraries" 1>&6
7544 echo "configure:7545: checking for graphics libraries" >&5
7547 if test -z "$with_xpm"; then
7548 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6
7549 echo "configure:7550: checking for Xpm - no older than 3.4f" >&5
7551 cat > conftest.$ac_ext <<EOF
7552 #line 7553 "configure"
7553 #include "confdefs.h"
7555 #include <X11/xpm.h>
7556 int main(int c, char **v) {
7558 XpmIncludeVersion != XpmLibraryVersion() ? 1 :
7559 XpmIncludeVersion < 30406 ? 2 : 0 ;}
7561 if { (eval echo configure:7562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
7563 ./conftest dummy_arg; xpm_status=$?;
7564 if test "$xpm_status" = "0"; then
7568 if test "$xpm_status" = "1"; then
7569 xpm_problem="Xpm library version and header file version don't match!"
7570 elif test "$xpm_status" = "2"; then
7571 xpm_problem="Xpm library version is too old!"
7573 xpm_problem="Internal xpm detection logic error!"
7576 *** WARNING *** $xpm_problem
7577 I'm not touching that with a 10-foot pole!
7578 If you really want to use the installed version of Xpm, rerun
7579 configure and add '--with-xpm=yes', but don't blame me if XEmacs crashes!"
7583 echo "configure: failed program was:" >&5
7584 cat conftest.$ac_ext >&5
7590 echo "$ac_t""$with_xpm" 1>&6
7592 if test "$with_xpm" = "yes"; then
7593 { test "$extra_verbose" = "yes" && cat << \EOF
7596 cat >> confdefs.h <<\EOF
7601 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
7602 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6
7603 echo "configure:7604: checking for \"FOR_MSW\" xpm" >&5
7605 cat > conftest.$ac_ext <<EOF
7606 #line 7607 "configure"
7607 #include "confdefs.h"
7610 XpmCreatePixmapFromData()
7613 if { (eval echo configure:7614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7617 echo "configure: failed program was:" >&5
7618 cat conftest.$ac_ext >&5
7624 echo "$ac_t""$xpm_for_msw" 1>&6
7625 if test "$xpm_for_msw" = "yes"; then
7626 { test "$extra_verbose" = "yes" && cat << \EOF
7629 cat >> confdefs.h <<\EOF
7637 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
7638 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
7639 echo "configure:7640: checking for compface.h" >&5
7641 cat > conftest.$ac_ext <<EOF
7642 #line 7643 "configure"
7643 #include "confdefs.h"
7644 #include <compface.h>
7646 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7647 { (eval echo configure:7648: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7648 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7649 if test -z "$ac_err"; then
7651 eval "ac_cv_header_$ac_safe=yes"
7654 echo "configure: failed program was:" >&5
7655 cat conftest.$ac_ext >&5
7657 eval "ac_cv_header_$ac_safe=no"
7660 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7661 echo "$ac_t""yes" 1>&6
7664 echo "$ac_t""no" 1>&6
7668 test -z "$with_xface" && {
7669 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
7670 echo "configure:7671: checking for UnGenFace in -lcompface" >&5
7671 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
7673 xe_check_libs=" -lcompface "
7674 cat > conftest.$ac_ext <<EOF
7675 #line 7676 "configure"
7676 #include "confdefs.h"
7677 /* Override any gcc2 internal prototype to avoid an error. */
7678 /* We use char because int might match the return type of a gcc2
7679 builtin and then its argument prototype would still apply. */
7686 if { (eval echo configure:7687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7688 eval "ac_cv_lib_$ac_lib_var=yes"
7690 echo "configure: failed program was:" >&5
7691 cat conftest.$ac_ext >&5
7693 eval "ac_cv_lib_$ac_lib_var=no"
7698 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7699 echo "$ac_t""yes" 1>&6
7702 echo "$ac_t""no" 1>&6
7707 test -z "$with_xface" && with_xface=yes
7708 if test "$with_xface" = "yes"; then
7709 { test "$extra_verbose" = "yes" && cat << \EOF
7712 cat >> confdefs.h <<\EOF
7713 #define HAVE_XFACE 1
7717 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi
7720 if test "$with_gif" != "no"; then
7722 { test "$extra_verbose" = "yes" && cat << \EOF
7725 cat >> confdefs.h <<\EOF
7730 extra_objs="$extra_objs dgif_lib.o gif_io.o" && if test "$extra_verbose" = "yes"; then
7731 echo " xemacs will be linked with \"dgif_lib.o gif_io.o\""
7735 if test "$with_png $with_tiff" != "no no"; then
7737 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6
7738 echo "configure:7739: checking for inflate in -lc" >&5
7739 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'`
7741 xe_check_libs=" -lc "
7742 cat > conftest.$ac_ext <<EOF
7743 #line 7744 "configure"
7744 #include "confdefs.h"
7745 /* Override any gcc2 internal prototype to avoid an error. */
7746 /* We use char because int might match the return type of a gcc2
7747 builtin and then its argument prototype would still apply. */
7754 if { (eval echo configure:7755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7756 eval "ac_cv_lib_$ac_lib_var=yes"
7758 echo "configure: failed program was:" >&5
7759 cat conftest.$ac_ext >&5
7761 eval "ac_cv_lib_$ac_lib_var=no"
7766 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7767 echo "$ac_t""yes" 1>&6
7770 echo "$ac_t""no" 1>&6
7772 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
7773 echo "configure:7774: checking for inflate in -lz" >&5
7774 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
7776 xe_check_libs=" -lz "
7777 cat > conftest.$ac_ext <<EOF
7778 #line 7779 "configure"
7779 #include "confdefs.h"
7780 /* Override any gcc2 internal prototype to avoid an error. */
7781 /* We use char because int might match the return type of a gcc2
7782 builtin and then its argument prototype would still apply. */
7789 if { (eval echo configure:7790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7791 eval "ac_cv_lib_$ac_lib_var=yes"
7793 echo "configure: failed program was:" >&5
7794 cat conftest.$ac_ext >&5
7796 eval "ac_cv_lib_$ac_lib_var=no"
7801 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7802 echo "$ac_t""yes" 1>&6
7803 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi
7805 echo "$ac_t""no" 1>&6
7807 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6
7808 echo "configure:7809: checking for inflate in -lgz" >&5
7809 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'`
7811 xe_check_libs=" -lgz "
7812 cat > conftest.$ac_ext <<EOF
7813 #line 7814 "configure"
7814 #include "confdefs.h"
7815 /* Override any gcc2 internal prototype to avoid an error. */
7816 /* We use char because int might match the return type of a gcc2
7817 builtin and then its argument prototype would still apply. */
7824 if { (eval echo configure:7825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7826 eval "ac_cv_lib_$ac_lib_var=yes"
7828 echo "configure: failed program was:" >&5
7829 cat conftest.$ac_ext >&5
7831 eval "ac_cv_lib_$ac_lib_var=no"
7836 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7837 echo "$ac_t""yes" 1>&6
7838 libs_x="-lgz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgz\" to \$libs_x"; fi
7840 echo "$ac_t""no" 1>&6
7852 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
7853 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
7854 echo "configure:7855: checking for jpeglib.h" >&5
7856 cat > conftest.$ac_ext <<EOF
7857 #line 7858 "configure"
7858 #include "confdefs.h"
7859 #include <jpeglib.h>
7861 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7862 { (eval echo configure:7863: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7863 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7864 if test -z "$ac_err"; then
7866 eval "ac_cv_header_$ac_safe=yes"
7869 echo "configure: failed program was:" >&5
7870 cat conftest.$ac_ext >&5
7872 eval "ac_cv_header_$ac_safe=no"
7875 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7876 echo "$ac_t""yes" 1>&6
7879 echo "$ac_t""no" 1>&6
7883 test -z "$with_jpeg" && {
7884 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6
7885 echo "configure:7886: checking for jpeg_destroy_decompress in -ljpeg" >&5
7886 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'`
7888 xe_check_libs=" -ljpeg "
7889 cat > conftest.$ac_ext <<EOF
7890 #line 7891 "configure"
7891 #include "confdefs.h"
7892 /* Override any gcc2 internal prototype to avoid an error. */
7893 /* We use char because int might match the return type of a gcc2
7894 builtin and then its argument prototype would still apply. */
7895 char jpeg_destroy_decompress();
7898 jpeg_destroy_decompress()
7901 if { (eval echo configure:7902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7903 eval "ac_cv_lib_$ac_lib_var=yes"
7905 echo "configure: failed program was:" >&5
7906 cat conftest.$ac_ext >&5
7908 eval "ac_cv_lib_$ac_lib_var=no"
7913 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7914 echo "$ac_t""yes" 1>&6
7917 echo "$ac_t""no" 1>&6
7922 test -z "$with_jpeg" && with_jpeg=yes
7923 if test "$with_jpeg" = "yes"; then
7924 { test "$extra_verbose" = "yes" && cat << \EOF
7927 cat >> confdefs.h <<\EOF
7932 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi
7936 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6
7937 echo "configure:7938: checking for pow" >&5
7939 cat > conftest.$ac_ext <<EOF
7940 #line 7941 "configure"
7941 #include "confdefs.h"
7942 /* System header to define __stub macros and hopefully few prototypes,
7943 which can conflict with char pow(); below. */
7945 /* Override any gcc2 internal prototype to avoid an error. */
7946 /* We use char because int might match the return type of a gcc2
7947 builtin and then its argument prototype would still apply. */
7952 /* The GNU C library defines this for functions which it implements
7953 to always fail with ENOSYS. Some functions are actually named
7954 something starting with __ and the normal name is an alias. */
7955 #if defined (__stub_pow) || defined (__stub___pow)
7963 if { (eval echo configure:7964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7965 eval "ac_cv_func_pow=yes"
7967 echo "configure: failed program was:" >&5
7968 cat conftest.$ac_ext >&5
7970 eval "ac_cv_func_pow=no"
7974 if eval "test \"`echo '$ac_cv_func_'pow`\" = yes"; then
7975 echo "$ac_t""yes" 1>&6
7978 echo "$ac_t""no" 1>&6
7982 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
7983 echo $ac_n "checking for png.h""... $ac_c" 1>&6
7984 echo "configure:7985: checking for png.h" >&5
7986 cat > conftest.$ac_ext <<EOF
7987 #line 7988 "configure"
7988 #include "confdefs.h"
7991 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7992 { (eval echo configure:7993: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7993 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7994 if test -z "$ac_err"; then
7996 eval "ac_cv_header_$ac_safe=yes"
7999 echo "configure: failed program was:" >&5
8000 cat conftest.$ac_ext >&5
8002 eval "ac_cv_header_$ac_safe=no"
8005 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8006 echo "$ac_t""yes" 1>&6
8009 echo "$ac_t""no" 1>&6
8013 test -z "$with_png" && {
8014 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6
8015 echo "configure:8016: checking for png_read_image in -lpng" >&5
8016 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
8018 xe_check_libs=" -lpng "
8019 cat > conftest.$ac_ext <<EOF
8020 #line 8021 "configure"
8021 #include "confdefs.h"
8022 /* Override any gcc2 internal prototype to avoid an error. */
8023 /* We use char because int might match the return type of a gcc2
8024 builtin and then its argument prototype would still apply. */
8025 char png_read_image();
8031 if { (eval echo configure:8032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8033 eval "ac_cv_lib_$ac_lib_var=yes"
8035 echo "configure: failed program was:" >&5
8036 cat conftest.$ac_ext >&5
8038 eval "ac_cv_lib_$ac_lib_var=no"
8043 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8044 echo "$ac_t""yes" 1>&6
8047 echo "$ac_t""no" 1>&6
8052 if test -z "$with_png"; then
8053 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6
8054 echo "configure:8055: checking for workable png version information" >&5
8055 xe_check_libs="-lpng -lz"
8056 cat > conftest.$ac_ext <<EOF
8057 #line 8058 "configure"
8058 #include "confdefs.h"
8060 int main(int c, char **v) {
8061 if (c == 1) return 0;
8062 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1;
8063 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;}
8065 if { (eval echo configure:8066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
8067 ./conftest dummy_arg; png_status=$?;
8068 if test "$png_status" = "0"; then
8072 if test "$png_status" = "1"; then
8073 png_problem="PNG library version and header file don't match!"
8074 elif test "$png_status" = "2"; then
8075 png_problem="PNG library version too old (pre 1.0.2)!"
8078 *** WARNING *** $png_problem
8079 I'm not touching that with a 10-foot pole!
8080 If you really want to use the installed version of libPNG, rerun
8081 configure and add '--with-png=yes', but don't blame me if XEmacs crashes!"
8085 echo "configure: failed program was:" >&5
8086 cat conftest.$ac_ext >&5
8092 echo "$ac_t""$with_png" 1>&6
8094 if test "$with_png" = "yes"; then
8095 { test "$extra_verbose" = "yes" && cat << \EOF
8098 cat >> confdefs.h <<\EOF
8103 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi
8106 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
8107 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
8108 echo "configure:8109: checking for tiffio.h" >&5
8110 cat > conftest.$ac_ext <<EOF
8111 #line 8112 "configure"
8112 #include "confdefs.h"
8115 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8116 { (eval echo configure:8117: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8117 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8118 if test -z "$ac_err"; then
8120 eval "ac_cv_header_$ac_safe=yes"
8123 echo "configure: failed program was:" >&5
8124 cat conftest.$ac_ext >&5
8126 eval "ac_cv_header_$ac_safe=no"
8129 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8130 echo "$ac_t""yes" 1>&6
8133 echo "$ac_t""no" 1>&6
8137 test -z "$with_tiff" && {
8138 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6
8139 echo "configure:8140: checking for TIFFClientOpen in -ltiff" >&5
8140 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'`
8142 xe_check_libs=" -ltiff "
8143 cat > conftest.$ac_ext <<EOF
8144 #line 8145 "configure"
8145 #include "confdefs.h"
8146 /* Override any gcc2 internal prototype to avoid an error. */
8147 /* We use char because int might match the return type of a gcc2
8148 builtin and then its argument prototype would still apply. */
8149 char TIFFClientOpen();
8155 if { (eval echo configure:8156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8157 eval "ac_cv_lib_$ac_lib_var=yes"
8159 echo "configure: failed program was:" >&5
8160 cat conftest.$ac_ext >&5
8162 eval "ac_cv_lib_$ac_lib_var=no"
8167 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8168 echo "$ac_t""yes" 1>&6
8171 echo "$ac_t""no" 1>&6
8176 test -z "$with_tiff" && with_tiff=yes
8177 if test "$with_tiff" = "yes"; then
8178 { test "$extra_verbose" = "yes" && cat << \EOF
8181 cat >> confdefs.h <<\EOF
8186 libs_x="-ltiff $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltiff\" to \$libs_x"; fi
8191 if test "$with_x11" = "yes"; then
8193 echo "checking for X11 graphics libraries" 1>&6
8194 echo "configure:8195: checking for X11 graphics libraries" >&5
8196 echo "checking for the Athena widgets" 1>&6
8197 echo "configure:8198: checking for the Athena widgets" >&5
8199 case "$with_athena" in
8200 "xaw" | "") athena_variant=Xaw athena_3d=no ;;
8201 "3d") athena_variant=Xaw3d athena_3d=yes ;;
8202 "next") athena_variant=neXtaw athena_3d=yes ;;
8203 "95") athena_variant=Xaw95 athena_3d=yes ;;
8204 "xpm") athena_variant=XawXpm athena_3d=yes ;;
8205 *) { echo "Error:" "Unknown Athena widget set \`$with_athena'. This should not happen." >&2; exit 1; } ;;
8208 if test "$athena_3d" = "no"; then
8210 echo $ac_n "checking for XawScrollbarSetThumb in -l$athena_variant""... $ac_c" 1>&6
8211 echo "configure:8212: checking for XawScrollbarSetThumb in -l$athena_variant" >&5
8212 ac_lib_var=`echo $athena_variant'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
8214 xe_check_libs=" -l$athena_variant "
8215 cat > conftest.$ac_ext <<EOF
8216 #line 8217 "configure"
8217 #include "confdefs.h"
8218 /* Override any gcc2 internal prototype to avoid an error. */
8219 /* We use char because int might match the return type of a gcc2
8220 builtin and then its argument prototype would still apply. */
8221 char XawScrollbarSetThumb();
8224 XawScrollbarSetThumb()
8227 if { (eval echo configure:8228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8229 eval "ac_cv_lib_$ac_lib_var=yes"
8231 echo "configure: failed program was:" >&5
8232 cat conftest.$ac_ext >&5
8234 eval "ac_cv_lib_$ac_lib_var=no"
8239 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8240 echo "$ac_t""yes" 1>&6
8242 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
8243 echo "configure:8244: checking for threeDClassRec in -l$athena_variant" >&5
8244 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
8246 xe_check_libs=" -l$athena_variant "
8247 cat > conftest.$ac_ext <<EOF
8248 #line 8249 "configure"
8249 #include "confdefs.h"
8250 /* Override any gcc2 internal prototype to avoid an error. */
8251 /* We use char because int might match the return type of a gcc2
8252 builtin and then its argument prototype would still apply. */
8253 char threeDClassRec();
8259 if { (eval echo configure:8260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8261 eval "ac_cv_lib_$ac_lib_var=yes"
8263 echo "configure: failed program was:" >&5
8264 cat conftest.$ac_ext >&5
8266 eval "ac_cv_lib_$ac_lib_var=no"
8271 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8272 echo "$ac_t""yes" 1>&6
8273 echo "configure: warning: "Could not find a non-3d Athena widget library."" 1>&2
8275 echo "$ac_t""no" 1>&6
8276 athena_lib=$athena_variant
8282 echo "$ac_t""no" 1>&6
8283 echo "configure: warning: "Could not find an Athena widget library."" 1>&2
8289 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
8290 echo "configure:8291: checking for threeDClassRec in -l$athena_variant" >&5
8291 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
8293 xe_check_libs=" -l$athena_variant "
8294 cat > conftest.$ac_ext <<EOF
8295 #line 8296 "configure"
8296 #include "confdefs.h"
8297 /* Override any gcc2 internal prototype to avoid an error. */
8298 /* We use char because int might match the return type of a gcc2
8299 builtin and then its argument prototype would still apply. */
8300 char threeDClassRec();
8306 if { (eval echo configure:8307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8308 eval "ac_cv_lib_$ac_lib_var=yes"
8310 echo "configure: failed program was:" >&5
8311 cat conftest.$ac_ext >&5
8313 eval "ac_cv_lib_$ac_lib_var=no"
8318 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8319 echo "$ac_t""yes" 1>&6
8320 athena_lib=$athena_variant
8322 echo "$ac_t""no" 1>&6
8323 echo $ac_n "checking for threeDClassRec in -lXaw""... $ac_c" 1>&6
8324 echo "configure:8325: checking for threeDClassRec in -lXaw" >&5
8325 ac_lib_var=`echo Xaw'_'threeDClassRec | sed 'y%./+-%__p_%'`
8327 xe_check_libs=" -lXaw "
8328 cat > conftest.$ac_ext <<EOF
8329 #line 8330 "configure"
8330 #include "confdefs.h"
8331 /* Override any gcc2 internal prototype to avoid an error. */
8332 /* We use char because int might match the return type of a gcc2
8333 builtin and then its argument prototype would still apply. */
8334 char threeDClassRec();
8340 if { (eval echo configure:8341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8342 eval "ac_cv_lib_$ac_lib_var=yes"
8344 echo "configure: failed program was:" >&5
8345 cat conftest.$ac_ext >&5
8347 eval "ac_cv_lib_$ac_lib_var=no"
8352 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8353 echo "$ac_t""yes" 1>&6
8355 echo "configure: warning: "Assuming that libXaw is actually $athena_variant."" 1>&2;
8358 echo "$ac_t""no" 1>&6
8359 echo "configure: warning: "Could not find a 3d Athena widget library that looked like $athena_variant."" 1>&2
8368 if test "$athena_3d" = "no"; then
8369 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
8370 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
8371 echo "configure:8372: checking for X11/Xaw/ThreeD.h" >&5
8373 cat > conftest.$ac_ext <<EOF
8374 #line 8375 "configure"
8375 #include "confdefs.h"
8376 #include <X11/Xaw/ThreeD.h>
8378 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8379 { (eval echo configure:8380: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8380 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8381 if test -z "$ac_err"; then
8383 eval "ac_cv_header_$ac_safe=yes"
8386 echo "configure: failed program was:" >&5
8387 cat conftest.$ac_ext >&5
8389 eval "ac_cv_header_$ac_safe=no"
8392 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8393 echo "$ac_t""yes" 1>&6
8394 echo "configure: warning: "Could not find a non-3d Athena header set."" 1>&2
8396 echo "$ac_t""no" 1>&6
8397 ac_safe=`echo "X11/Xaw/XawInit.h" | sed 'y%./+-%__p_%'`
8398 echo $ac_n "checking for X11/Xaw/XawInit.h""... $ac_c" 1>&6
8399 echo "configure:8400: checking for X11/Xaw/XawInit.h" >&5
8401 cat > conftest.$ac_ext <<EOF
8402 #line 8403 "configure"
8403 #include "confdefs.h"
8404 #include <X11/Xaw/XawInit.h>
8406 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8407 { (eval echo configure:8408: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8408 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8409 if test -z "$ac_err"; then
8411 eval "ac_cv_header_$ac_safe=yes"
8414 echo "configure: failed program was:" >&5
8415 cat conftest.$ac_ext >&5
8417 eval "ac_cv_header_$ac_safe=no"
8420 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8421 echo "$ac_t""yes" 1>&6
8422 athena_h_path=X11/Xaw
8424 echo "$ac_t""no" 1>&6
8425 echo "configure: warning: "Could not find a non-3d Athena header set."" 1>&2
8431 ac_safe=`echo "X11/$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
8432 echo $ac_n "checking for X11/$athena_variant/XawInit.h""... $ac_c" 1>&6
8433 echo "configure:8434: checking for X11/$athena_variant/XawInit.h" >&5
8435 cat > conftest.$ac_ext <<EOF
8436 #line 8437 "configure"
8437 #include "confdefs.h"
8438 #include <X11/$athena_variant/XawInit.h>
8440 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8441 { (eval echo configure:8442: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8442 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8443 if test -z "$ac_err"; then
8445 eval "ac_cv_header_$ac_safe=yes"
8448 echo "configure: failed program was:" >&5
8449 cat conftest.$ac_ext >&5
8451 eval "ac_cv_header_$ac_safe=no"
8454 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8455 echo "$ac_t""yes" 1>&6
8456 ac_safe=`echo "X11/$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
8457 echo $ac_n "checking for X11/$athena_variant/ThreeD.h""... $ac_c" 1>&6
8458 echo "configure:8459: checking for X11/$athena_variant/ThreeD.h" >&5
8460 cat > conftest.$ac_ext <<EOF
8461 #line 8462 "configure"
8462 #include "confdefs.h"
8463 #include <X11/$athena_variant/ThreeD.h>
8465 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8466 { (eval echo configure:8467: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8467 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8468 if test -z "$ac_err"; then
8470 eval "ac_cv_header_$ac_safe=yes"
8473 echo "configure: failed program was:" >&5
8474 cat conftest.$ac_ext >&5
8476 eval "ac_cv_header_$ac_safe=no"
8479 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8480 echo "$ac_t""yes" 1>&6
8481 athena_h_path=X11/$athena_variant
8483 echo "$ac_t""no" 1>&6
8487 echo "$ac_t""no" 1>&6
8491 if test -z "$athena_h_path"; then
8492 ac_safe=`echo "$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
8493 echo $ac_n "checking for $athena_variant/XawInit.h""... $ac_c" 1>&6
8494 echo "configure:8495: checking for $athena_variant/XawInit.h" >&5
8496 cat > conftest.$ac_ext <<EOF
8497 #line 8498 "configure"
8498 #include "confdefs.h"
8499 #include <$athena_variant/XawInit.h>
8501 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8502 { (eval echo configure:8503: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8503 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8504 if test -z "$ac_err"; then
8506 eval "ac_cv_header_$ac_safe=yes"
8509 echo "configure: failed program was:" >&5
8510 cat conftest.$ac_ext >&5
8512 eval "ac_cv_header_$ac_safe=no"
8515 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8516 echo "$ac_t""yes" 1>&6
8517 ac_safe=`echo "$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
8518 echo $ac_n "checking for $athena_variant/ThreeD.h""... $ac_c" 1>&6
8519 echo "configure:8520: checking for $athena_variant/ThreeD.h" >&5
8521 cat > conftest.$ac_ext <<EOF
8522 #line 8523 "configure"
8523 #include "confdefs.h"
8524 #include <$athena_variant/ThreeD.h>
8526 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8527 { (eval echo configure:8528: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8528 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8529 if test -z "$ac_err"; then
8531 eval "ac_cv_header_$ac_safe=yes"
8534 echo "configure: failed program was:" >&5
8535 cat conftest.$ac_ext >&5
8537 eval "ac_cv_header_$ac_safe=no"
8540 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8541 echo "$ac_t""yes" 1>&6
8542 athena_h_path=$athena_variant
8544 echo "$ac_t""no" 1>&6
8548 echo "$ac_t""no" 1>&6
8553 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
8554 ac_safe=`echo "X11/Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
8555 echo $ac_n "checking for X11/Xaw3d/XawInit.h""... $ac_c" 1>&6
8556 echo "configure:8557: checking for X11/Xaw3d/XawInit.h" >&5
8558 cat > conftest.$ac_ext <<EOF
8559 #line 8560 "configure"
8560 #include "confdefs.h"
8561 #include <X11/Xaw3d/XawInit.h>
8563 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8564 { (eval echo configure:8565: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8565 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8566 if test -z "$ac_err"; then
8568 eval "ac_cv_header_$ac_safe=yes"
8571 echo "configure: failed program was:" >&5
8572 cat conftest.$ac_ext >&5
8574 eval "ac_cv_header_$ac_safe=no"
8577 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8578 echo "$ac_t""yes" 1>&6
8579 ac_safe=`echo "X11/Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
8580 echo $ac_n "checking for X11/Xaw3d/ThreeD.h""... $ac_c" 1>&6
8581 echo "configure:8582: checking for X11/Xaw3d/ThreeD.h" >&5
8583 cat > conftest.$ac_ext <<EOF
8584 #line 8585 "configure"
8585 #include "confdefs.h"
8586 #include <X11/Xaw3d/ThreeD.h>
8588 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8589 { (eval echo configure:8590: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8590 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8591 if test -z "$ac_err"; then
8593 eval "ac_cv_header_$ac_safe=yes"
8596 echo "configure: failed program was:" >&5
8597 cat conftest.$ac_ext >&5
8599 eval "ac_cv_header_$ac_safe=no"
8602 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8603 echo "$ac_t""yes" 1>&6
8605 echo "configure: warning: "Assuming that X11/Xaw3d headers are suitable for $athena_variant."" 1>&2
8606 athena_h_path=X11/Xaw3d
8609 echo "$ac_t""no" 1>&6
8613 echo "$ac_t""no" 1>&6
8618 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
8619 ac_safe=`echo "Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
8620 echo $ac_n "checking for Xaw3d/XawInit.h""... $ac_c" 1>&6
8621 echo "configure:8622: checking for Xaw3d/XawInit.h" >&5
8623 cat > conftest.$ac_ext <<EOF
8624 #line 8625 "configure"
8625 #include "confdefs.h"
8626 #include <Xaw3d/XawInit.h>
8628 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8629 { (eval echo configure:8630: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8630 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8631 if test -z "$ac_err"; then
8633 eval "ac_cv_header_$ac_safe=yes"
8636 echo "configure: failed program was:" >&5
8637 cat conftest.$ac_ext >&5
8639 eval "ac_cv_header_$ac_safe=no"
8642 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8643 echo "$ac_t""yes" 1>&6
8644 ac_safe=`echo "Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
8645 echo $ac_n "checking for Xaw3d/ThreeD.h""... $ac_c" 1>&6
8646 echo "configure:8647: checking for Xaw3d/ThreeD.h" >&5
8648 cat > conftest.$ac_ext <<EOF
8649 #line 8650 "configure"
8650 #include "confdefs.h"
8651 #include <Xaw3d/ThreeD.h>
8653 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8654 { (eval echo configure:8655: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8655 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8656 if test -z "$ac_err"; then
8658 eval "ac_cv_header_$ac_safe=yes"
8661 echo "configure: failed program was:" >&5
8662 cat conftest.$ac_ext >&5
8664 eval "ac_cv_header_$ac_safe=no"
8667 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8668 echo "$ac_t""yes" 1>&6
8670 echo "configure: warning: "Assuming that Xaw3d headers are suitable for $athena_variant."" 1>&2
8674 echo "$ac_t""no" 1>&6
8678 echo "$ac_t""no" 1>&6
8683 if test -z "$athena_h_path"; then
8684 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
8685 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
8686 echo "configure:8687: checking for X11/Xaw/ThreeD.h" >&5
8688 cat > conftest.$ac_ext <<EOF
8689 #line 8690 "configure"
8690 #include "confdefs.h"
8691 #include <X11/Xaw/ThreeD.h>
8693 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8694 { (eval echo configure:8695: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8695 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8696 if test -z "$ac_err"; then
8698 eval "ac_cv_header_$ac_safe=yes"
8701 echo "configure: failed program was:" >&5
8702 cat conftest.$ac_ext >&5
8704 eval "ac_cv_header_$ac_safe=no"
8707 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8708 echo "$ac_t""yes" 1>&6
8710 echo "configure: warning: "Assuming that X11/Xaw headers are suitable for $athena_variant."" 1>&2
8711 athena_h_path=X11/Xaw
8714 echo "$ac_t""no" 1>&6
8715 echo "configure: warning: "Could not find a suitable 3d Athena header set."" 1>&2
8721 if test -n "$athena_lib" -a -n "$athena_h_path"; then
8727 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
8728 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
8729 echo "configure:8730: checking for Xm/Xm.h" >&5
8731 cat > conftest.$ac_ext <<EOF
8732 #line 8733 "configure"
8733 #include "confdefs.h"
8736 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8737 { (eval echo configure:8738: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8738 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8739 if test -z "$ac_err"; then
8741 eval "ac_cv_header_$ac_safe=yes"
8744 echo "configure: failed program was:" >&5
8745 cat conftest.$ac_ext >&5
8747 eval "ac_cv_header_$ac_safe=no"
8750 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8751 echo "$ac_t""yes" 1>&6
8753 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
8754 echo "configure:8755: checking for XmStringFree in -lXm" >&5
8755 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
8757 xe_check_libs=" -lXm "
8758 cat > conftest.$ac_ext <<EOF
8759 #line 8760 "configure"
8760 #include "confdefs.h"
8761 /* Override any gcc2 internal prototype to avoid an error. */
8762 /* We use char because int might match the return type of a gcc2
8763 builtin and then its argument prototype would still apply. */
8764 char XmStringFree();
8770 if { (eval echo configure:8771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8772 eval "ac_cv_lib_$ac_lib_var=yes"
8774 echo "configure: failed program was:" >&5
8775 cat conftest.$ac_ext >&5
8777 eval "ac_cv_lib_$ac_lib_var=no"
8782 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8783 echo "$ac_t""yes" 1>&6
8786 echo "$ac_t""no" 1>&6
8792 echo "$ac_t""no" 1>&6
8797 if test "$have_motif" = "yes"; then
8798 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6
8799 echo "configure:8800: checking for Lesstif" >&5
8800 cat > conftest.$ac_ext <<EOF
8801 #line 8802 "configure"
8802 #include "confdefs.h"
8804 #ifdef LESSTIF_VERSION
8809 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8810 egrep "yes" >/dev/null 2>&1; then
8819 echo "$ac_t""$have_lesstif" 1>&6
8824 case "$with_menubars" in "" | "yes" | "athena" )
8825 with_menubars="lucid" ;;
8827 case "$with_dialogs" in "" | "yes" | "lucid" )
8828 if test "$have_motif" = "yes"; then with_dialogs="motif"
8829 elif test "$have_xaw" = "yes"; then with_dialogs="athena"
8830 else with_dialogs=no
8833 case "$with_scrollbars" in "" | "yes" )
8834 with_scrollbars="lucid" ;;
8836 case "$with_widgets" in "" | "yes" | "lucid")
8837 if test "$have_motif" = "yes"; then with_widgets="motif"
8838 elif test "$have_xaw" = "yes"; then with_widgets="athena"
8839 else with_widgets=no
8843 all_widgets="$with_menubars $with_scrollbars $with_dialogs $with_toolbars $with_widgets"
8845 case "$all_widgets" in
8847 if test "$have_xaw" != "yes"; then
8848 { echo "Error:" "Could not find a suitable Athena library to build with." >&2; exit 1; }
8851 lwlib_objs="$lwlib_objs lwlib-Xaw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xaw.o\" to \$lwlib_objs"; fi
8853 libs_x="-l$athena_lib $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$athena_lib\" to \$libs_x"; fi
8855 { test "$extra_verbose" = "yes" && cat << EOF
8856 Defining ATHENA_Scrollbar_h_ = "$athena_h_path/Scrollbar.h"
8858 cat >> confdefs.h <<EOF
8859 #define ATHENA_Scrollbar_h_ "$athena_h_path/Scrollbar.h"
8863 { test "$extra_verbose" = "yes" && cat << EOF
8864 Defining ATHENA_Dialog_h_ = "$athena_h_path/Dialog.h"
8866 cat >> confdefs.h <<EOF
8867 #define ATHENA_Dialog_h_ "$athena_h_path/Dialog.h"
8871 { test "$extra_verbose" = "yes" && cat << EOF
8872 Defining ATHENA_Form_h_ = "$athena_h_path/Form.h"
8874 cat >> confdefs.h <<EOF
8875 #define ATHENA_Form_h_ "$athena_h_path/Form.h"
8879 { test "$extra_verbose" = "yes" && cat << EOF
8880 Defining ATHENA_Command_h_ = "$athena_h_path/Command.h"
8882 cat >> confdefs.h <<EOF
8883 #define ATHENA_Command_h_ "$athena_h_path/Command.h"
8887 { test "$extra_verbose" = "yes" && cat << EOF
8888 Defining ATHENA_Label_h_ = "$athena_h_path/Label.h"
8890 cat >> confdefs.h <<EOF
8891 #define ATHENA_Label_h_ "$athena_h_path/Label.h"
8895 { test "$extra_verbose" = "yes" && cat << EOF
8896 Defining ATHENA_LabelP_h_ = "$athena_h_path/LabelP.h"
8898 cat >> confdefs.h <<EOF
8899 #define ATHENA_LabelP_h_ "$athena_h_path/LabelP.h"
8903 { test "$extra_verbose" = "yes" && cat << EOF
8904 Defining ATHENA_Toggle_h_ = "$athena_h_path/Toggle.h"
8906 cat >> confdefs.h <<EOF
8907 #define ATHENA_Toggle_h_ "$athena_h_path/Toggle.h"
8911 { test "$extra_verbose" = "yes" && cat << EOF
8912 Defining ATHENA_ToggleP_h_ = "$athena_h_path/ToggleP.h"
8914 cat >> confdefs.h <<EOF
8915 #define ATHENA_ToggleP_h_ "$athena_h_path/ToggleP.h"
8919 { test "$extra_verbose" = "yes" && cat << EOF
8920 Defining ATHENA_AsciiText_h_ = "$athena_h_path/AsciiText.h"
8922 cat >> confdefs.h <<EOF
8923 #define ATHENA_AsciiText_h_ "$athena_h_path/AsciiText.h"
8927 { test "$extra_verbose" = "yes" && cat << EOF
8928 Defining ATHENA_XawInit_h_ = "$athena_h_path/XawInit.h"
8930 cat >> confdefs.h <<EOF
8931 #define ATHENA_XawInit_h_ "$athena_h_path/XawInit.h"
8936 { test "$extra_verbose" = "yes" && cat << \EOF
8937 Defining LWLIB_USES_ATHENA
8939 cat >> confdefs.h <<\EOF
8940 #define LWLIB_USES_ATHENA 1
8944 { test "$extra_verbose" = "yes" && cat << \EOF
8945 Defining NEED_ATHENA
8947 cat >> confdefs.h <<\EOF
8948 #define NEED_ATHENA 1
8954 if test "$athena_3d" = "yes"; then
8955 { test "$extra_verbose" = "yes" && cat << \EOF
8956 Defining HAVE_ATHENA_3D
8958 cat >> confdefs.h <<\EOF
8959 #define HAVE_ATHENA_3D 1
8967 case "$all_widgets" in *motif* )
8968 { test "$extra_verbose" = "yes" && cat << \EOF
8969 Defining LWLIB_USES_MOTIF
8971 cat >> confdefs.h <<\EOF
8972 #define LWLIB_USES_MOTIF 1
8976 { test "$extra_verbose" = "yes" && cat << \EOF
8979 cat >> confdefs.h <<\EOF
8980 #define NEED_MOTIF 1
8984 lwlib_objs="$lwlib_objs lwlib-Xm.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xm.o\" to \$lwlib_objs"; fi
8988 test "$with_menubars" = "lucid" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
8989 test "$with_menubars" = "motif" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
8990 test "$with_scrollbars" = "lucid" && lwlib_objs="$lwlib_objs xlwscrollbar.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwscrollbar.o\" to \$lwlib_objs"; fi
8991 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
8992 lwlib_objs="$lwlib_objs xlwtabs.o xlwgcs.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwtabs.o xlwgcs.o\" to \$lwlib_objs"; fi
8993 case "$with_widgets" in athena* )
8994 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;;
8996 case "$all_widgets" in *lucid* )
8997 { test "$extra_verbose" = "yes" && cat << \EOF
9000 cat >> confdefs.h <<\EOF
9001 #define NEED_LUCID 1
9005 lwlib_objs="$lwlib_objs lwlib-Xlw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xlw.o\" to \$lwlib_objs"; fi ;;
9010 test "$with_scrollbars" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
9011 Defining LWLIB_SCROLLBARS_ATHENA
9013 cat >> confdefs.h <<\EOF
9014 #define LWLIB_SCROLLBARS_ATHENA 1
9018 test "$with_dialogs" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
9019 Defining LWLIB_DIALOGS_ATHENA
9021 cat >> confdefs.h <<\EOF
9022 #define LWLIB_DIALOGS_ATHENA 1
9027 if test "$athena_3d" = "yes"; then
9028 test "$with_scrollbars" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
9029 Defining LWLIB_SCROLLBARS_ATHENA3D
9031 cat >> confdefs.h <<\EOF
9032 #define LWLIB_SCROLLBARS_ATHENA3D 1
9036 test "$with_dialogs" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
9037 Defining LWLIB_DIALOGS_ATHENA3D
9039 cat >> confdefs.h <<\EOF
9040 #define LWLIB_DIALOGS_ATHENA3D 1
9046 case "$with_widgets" in athena* ) { test "$extra_verbose" = "yes" && cat << \EOF
9047 Defining LWLIB_WIDGETS_ATHENA
9049 cat >> confdefs.h <<\EOF
9050 #define LWLIB_WIDGETS_ATHENA 1
9054 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
9055 { test "$extra_verbose" = "yes" && cat << \EOF
9056 Defining LWLIB_TABS_LUCID
9058 cat >> confdefs.h <<\EOF
9059 #define LWLIB_TABS_LUCID 1
9064 test "$with_menubars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9065 Defining HAVE_MENUBARS
9067 cat >> confdefs.h <<\EOF
9068 #define HAVE_MENUBARS 1
9072 test "$with_scrollbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9073 Defining HAVE_SCROLLBARS
9075 cat >> confdefs.h <<\EOF
9076 #define HAVE_SCROLLBARS 1
9080 test "$with_dialogs" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9081 Defining HAVE_DIALOGS
9083 cat >> confdefs.h <<\EOF
9084 #define HAVE_DIALOGS 1
9088 test "$with_toolbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9089 Defining HAVE_TOOLBARS
9091 cat >> confdefs.h <<\EOF
9092 #define HAVE_TOOLBARS 1
9096 test "$with_widgets" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9097 Defining HAVE_WIDGETS
9099 cat >> confdefs.h <<\EOF
9100 #define HAVE_WIDGETS 1
9105 test "$with_menubars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
9106 Defining LWLIB_MENUBARS_LUCID
9108 cat >> confdefs.h <<\EOF
9109 #define LWLIB_MENUBARS_LUCID 1
9113 test "$with_scrollbars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
9114 Defining LWLIB_SCROLLBARS_LUCID
9116 cat >> confdefs.h <<\EOF
9117 #define LWLIB_SCROLLBARS_LUCID 1
9122 test "$with_menubars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9123 Defining LWLIB_MENUBARS_MOTIF
9125 cat >> confdefs.h <<\EOF
9126 #define LWLIB_MENUBARS_MOTIF 1
9130 test "$with_scrollbars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9131 Defining LWLIB_SCROLLBARS_MOTIF
9133 cat >> confdefs.h <<\EOF
9134 #define LWLIB_SCROLLBARS_MOTIF 1
9138 test "$with_dialogs" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9139 Defining LWLIB_DIALOGS_MOTIF
9141 cat >> confdefs.h <<\EOF
9142 #define LWLIB_DIALOGS_MOTIF 1
9146 test "$with_widgets" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9147 Defining LWLIB_WIDGETS_MOTIF
9149 cat >> confdefs.h <<\EOF
9150 #define LWLIB_WIDGETS_MOTIF 1
9155 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar.o" && if test "$extra_verbose" = "yes"; then
9156 echo " xemacs will be linked with \"menubar.o\""
9158 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar.o" && if test "$extra_verbose" = "yes"; then
9159 echo " xemacs will be linked with \"scrollbar.o\""
9161 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog.o" && if test "$extra_verbose" = "yes"; then
9162 echo " xemacs will be linked with \"dialog.o\""
9164 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar.o" && if test "$extra_verbose" = "yes"; then
9165 echo " xemacs will be linked with \"toolbar.o\""
9168 if test "$with_x11" = "yes"; then
9169 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-x.o" && if test "$extra_verbose" = "yes"; then
9170 echo " xemacs will be linked with \"menubar-x.o\""
9172 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-x.o" && if test "$extra_verbose" = "yes"; then
9173 echo " xemacs will be linked with \"scrollbar-x.o\""
9175 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-x.o" && if test "$extra_verbose" = "yes"; then
9176 echo " xemacs will be linked with \"dialog-x.o\""
9178 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-x.o" && if test "$extra_verbose" = "yes"; then
9179 echo " xemacs will be linked with \"toolbar-x.o\""
9181 test "$all_widgets" != "no no no no no" && extra_objs="$extra_objs gui-x.o" && if test "$extra_verbose" = "yes"; then
9182 echo " xemacs will be linked with \"gui-x.o\""
9187 test -z "$with_mule" && with_mule=no
9188 test -z "$with_file_coding" && with_file_coding=no
9191 if test "$with_file_coding" = "yes" && test "$with_mule" = "no"; then
9192 { test "$extra_verbose" = "yes" && cat << \EOF
9193 Defining FILE_CODING
9195 cat >> confdefs.h <<\EOF
9196 #define FILE_CODING 1
9200 extra_objs="$extra_objs file-coding.o" && if test "$extra_verbose" = "yes"; then
9201 echo " xemacs will be linked with \"file-coding.o\""
9205 if test "$with_mule" = "yes" ; then
9206 echo "checking for Mule-related features" 1>&6
9207 echo "configure:9208: checking for Mule-related features" >&5
9208 { test "$extra_verbose" = "yes" && cat << \EOF
9211 cat >> confdefs.h <<\EOF
9216 { test "$extra_verbose" = "yes" && cat << \EOF
9217 Defining FILE_CODING
9219 cat >> confdefs.h <<\EOF
9220 #define FILE_CODING 1
9224 extra_objs="$extra_objs mule.o mule-ccl.o mule-charset.o" && if test "$extra_verbose" = "yes"; then
9225 echo " xemacs will be linked with \"mule.o mule-ccl.o mule-charset.o\""
9227 if test "$with_utf_2000" = "yes" && test "$with_text_coding" = "yes"; then
9228 { test "$extra_verbose" = "yes" && cat << \EOF
9229 Defining TEXT_CODING
9231 cat >> confdefs.h <<\EOF
9232 #define TEXT_CODING 1
9236 extra_objs="$extra_objs text-coding.o" && if test "$extra_verbose" = "yes"; then
9237 echo " xemacs will be linked with \"text-coding.o\""
9240 extra_objs="$extra_objs file-coding.o" && if test "$extra_verbose" = "yes"; then
9241 echo " xemacs will be linked with \"file-coding.o\""
9244 for ac_hdr in libintl.h
9246 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9247 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9248 echo "configure:9249: checking for $ac_hdr" >&5
9250 cat > conftest.$ac_ext <<EOF
9251 #line 9252 "configure"
9252 #include "confdefs.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
9271 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9272 { test "$extra_verbose" = "yes" && cat << EOF
9275 cat >> confdefs.h <<EOF
9276 #define $ac_tr_hdr 1
9281 echo "$ac_t""no" 1>&6
9286 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
9287 echo "configure:9288: checking for strerror in -lintl" >&5
9288 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
9290 xe_check_libs=" -lintl "
9291 cat > conftest.$ac_ext <<EOF
9292 #line 9293 "configure"
9293 #include "confdefs.h"
9294 /* Override any gcc2 internal prototype to avoid an error. */
9295 /* We use char because int might match the return type of a gcc2
9296 builtin and then its argument prototype would still apply. */
9303 if { (eval echo configure:9304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9305 eval "ac_cv_lib_$ac_lib_var=yes"
9307 echo "configure: failed program was:" >&5
9308 cat conftest.$ac_ext >&5
9310 eval "ac_cv_lib_$ac_lib_var=no"
9315 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9316 echo "$ac_t""yes" 1>&6
9317 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9318 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9319 { test "$extra_verbose" = "yes" && cat << EOF
9322 cat >> confdefs.h <<EOF
9323 #define $ac_tr_lib 1
9327 LIBS="-lintl $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lintl\" to \$LIBS"; fi
9330 echo "$ac_t""no" 1>&6
9335 if test "$with_utf_2000" = "yes" ; then
9336 { test "$extra_verbose" = "yes" && cat << \EOF
9337 Defining CHAR_IS_UCS4
9339 cat >> confdefs.h <<\EOF
9340 #define CHAR_IS_UCS4 1
9344 { test "$extra_verbose" = "yes" && cat << \EOF
9347 cat >> confdefs.h <<\EOF
9354 echo "checking for Mule input methods" 1>&6
9355 echo "configure:9356: checking for Mule input methods" >&5
9356 case "$with_xim" in "" | "yes" )
9357 echo "checking for XIM" 1>&6
9358 echo "configure:9359: checking for XIM" >&5
9360 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6
9361 echo "configure:9362: checking for XOpenIM in -lX11" >&5
9362 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'`
9364 xe_check_libs=" -lX11 "
9365 cat > conftest.$ac_ext <<EOF
9366 #line 9367 "configure"
9367 #include "confdefs.h"
9368 /* Override any gcc2 internal prototype to avoid an error. */
9369 /* We use char because int might match the return type of a gcc2
9370 builtin and then its argument prototype would still apply. */
9377 if { (eval echo configure:9378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9379 eval "ac_cv_lib_$ac_lib_var=yes"
9381 echo "configure: failed program was:" >&5
9382 cat conftest.$ac_ext >&5
9384 eval "ac_cv_lib_$ac_lib_var=no"
9389 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9390 echo "$ac_t""yes" 1>&6
9393 echo "$ac_t""no" 1>&6
9398 if test "$have_motif $have_lesstif" = "yes no"; then
9400 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
9401 echo "configure:9402: checking for XmImMbLookupString in -lXm" >&5
9402 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
9404 xe_check_libs=" -lXm "
9405 cat > conftest.$ac_ext <<EOF
9406 #line 9407 "configure"
9407 #include "confdefs.h"
9408 /* Override any gcc2 internal prototype to avoid an error. */
9409 /* We use char because int might match the return type of a gcc2
9410 builtin and then its argument prototype would still apply. */
9411 char XmImMbLookupString();
9414 XmImMbLookupString()
9417 if { (eval echo configure:9418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9419 eval "ac_cv_lib_$ac_lib_var=yes"
9421 echo "configure: failed program was:" >&5
9422 cat conftest.$ac_ext >&5
9424 eval "ac_cv_lib_$ac_lib_var=no"
9429 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9430 echo "$ac_t""yes" 1>&6
9433 echo "$ac_t""no" 1>&6
9439 if test "$with_xim" != "no"; then
9440 { test "$extra_verbose" = "yes" && cat << \EOF
9443 cat >> confdefs.h <<\EOF
9448 if test "$with_xim" = "xlib"; then
9449 { test "$extra_verbose" = "yes" && cat << \EOF
9452 cat >> confdefs.h <<\EOF
9457 extra_objs="$extra_objs input-method-xlib.o" && if test "$extra_verbose" = "yes"; then
9458 echo " xemacs will be linked with \"input-method-xlib.o\""
9461 if test "$with_xim" = "motif"; then
9462 { test "$extra_verbose" = "yes" && cat << \EOF
9465 cat >> confdefs.h <<\EOF
9471 extra_objs="$extra_objs input-method-motif.o" && if test "$extra_verbose" = "yes"; then
9472 echo " xemacs will be linked with \"input-method-motif.o\""
9475 if test "$with_xim" = "motif"; then
9480 if test "$with_xfs" = "yes" ; then
9481 echo "checking for XFontSet" 1>&6
9482 echo "configure:9483: checking for XFontSet" >&5
9484 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6
9485 echo "configure:9486: checking for XmbDrawString in -lX11" >&5
9486 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
9488 xe_check_libs=" -lX11 "
9489 cat > conftest.$ac_ext <<EOF
9490 #line 9491 "configure"
9491 #include "confdefs.h"
9492 /* Override any gcc2 internal prototype to avoid an error. */
9493 /* We use char because int might match the return type of a gcc2
9494 builtin and then its argument prototype would still apply. */
9495 char XmbDrawString();
9501 if { (eval echo configure:9502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9503 eval "ac_cv_lib_$ac_lib_var=yes"
9505 echo "configure: failed program was:" >&5
9506 cat conftest.$ac_ext >&5
9508 eval "ac_cv_lib_$ac_lib_var=no"
9513 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9514 echo "$ac_t""yes" 1>&6
9517 echo "$ac_t""no" 1>&6
9522 if test "$with_xfs" = "yes" && test "$with_menubars" = "lucid"; then
9523 { test "$extra_verbose" = "yes" && cat << \EOF
9524 Defining USE_XFONTSET
9526 cat >> confdefs.h <<\EOF
9527 #define USE_XFONTSET 1
9531 if test "$with_xim" = "no" ; then
9532 extra_objs="$extra_objs input-method-xlib.o" && if test "$extra_verbose" = "yes"; then
9533 echo " xemacs will be linked with \"input-method-xlib.o\""
9538 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
9539 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
9540 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
9541 echo "configure:9542: checking for wnn/jllib.h" >&5
9543 cat > conftest.$ac_ext <<EOF
9544 #line 9545 "configure"
9545 #include "confdefs.h"
9546 #include <wnn/jllib.h>
9548 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9549 { (eval echo configure:9550: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9550 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9551 if test -z "$ac_err"; then
9553 eval "ac_cv_header_$ac_safe=yes"
9556 echo "configure: failed program was:" >&5
9557 cat conftest.$ac_ext >&5
9559 eval "ac_cv_header_$ac_safe=no"
9562 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9563 echo "$ac_t""yes" 1>&6
9566 echo "$ac_t""no" 1>&6
9570 test -z "$with_wnn" && { ac_safe=`echo "wnn/commonhd.h" | sed 'y%./+-%__p_%'`
9571 echo $ac_n "checking for wnn/commonhd.h""... $ac_c" 1>&6
9572 echo "configure:9573: checking for wnn/commonhd.h" >&5
9574 cat > conftest.$ac_ext <<EOF
9575 #line 9576 "configure"
9576 #include "confdefs.h"
9577 #include <wnn/commonhd.h>
9579 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9580 { (eval echo configure:9581: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9581 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9582 if test -z "$ac_err"; then
9584 eval "ac_cv_header_$ac_safe=yes"
9587 echo "configure: failed program was:" >&5
9588 cat conftest.$ac_ext >&5
9590 eval "ac_cv_header_$ac_safe=no"
9593 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9594 echo "$ac_t""yes" 1>&6
9597 echo "$ac_t""no" 1>&6
9601 if test "$with_wnn" != "no"; then
9602 for ac_func in crypt
9604 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9605 echo "configure:9606: checking for $ac_func" >&5
9607 cat > conftest.$ac_ext <<EOF
9608 #line 9609 "configure"
9609 #include "confdefs.h"
9610 /* System header to define __stub macros and hopefully few prototypes,
9611 which can conflict with char $ac_func(); below. */
9613 /* Override any gcc2 internal prototype to avoid an error. */
9614 /* We use char because int might match the return type of a gcc2
9615 builtin and then its argument prototype would still apply. */
9620 /* The GNU C library defines this for functions which it implements
9621 to always fail with ENOSYS. Some functions are actually named
9622 something starting with __ and the normal name is an alias. */
9623 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9631 if { (eval echo configure:9632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9633 eval "ac_cv_func_$ac_func=yes"
9635 echo "configure: failed program was:" >&5
9636 cat conftest.$ac_ext >&5
9638 eval "ac_cv_func_$ac_func=no"
9642 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9643 echo "$ac_t""yes" 1>&6
9644 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9645 { test "$extra_verbose" = "yes" && cat << EOF
9646 Defining $ac_tr_func
9648 cat >> confdefs.h <<EOF
9649 #define $ac_tr_func 1
9654 echo "$ac_t""no" 1>&6
9658 test "$ac_cv_func_crypt" != "yes" && {
9659 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
9660 echo "configure:9661: checking for crypt in -lcrypt" >&5
9661 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
9663 xe_check_libs=" -lcrypt "
9664 cat > conftest.$ac_ext <<EOF
9665 #line 9666 "configure"
9666 #include "confdefs.h"
9667 /* Override any gcc2 internal prototype to avoid an error. */
9668 /* We use char because int might match the return type of a gcc2
9669 builtin and then its argument prototype would still apply. */
9676 if { (eval echo configure:9677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9678 eval "ac_cv_lib_$ac_lib_var=yes"
9680 echo "configure: failed program was:" >&5
9681 cat conftest.$ac_ext >&5
9683 eval "ac_cv_lib_$ac_lib_var=no"
9688 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9689 echo "$ac_t""yes" 1>&6
9690 ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9691 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9692 { test "$extra_verbose" = "yes" && cat << EOF
9695 cat >> confdefs.h <<EOF
9696 #define $ac_tr_lib 1
9700 LIBS="-lcrypt $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcrypt\" to \$LIBS"; fi
9703 echo "$ac_t""no" 1>&6
9708 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then
9710 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
9711 echo "configure:9712: checking for jl_dic_list_e in -lwnn" >&5
9712 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
9714 xe_check_libs=" -lwnn "
9715 cat > conftest.$ac_ext <<EOF
9716 #line 9717 "configure"
9717 #include "confdefs.h"
9718 /* Override any gcc2 internal prototype to avoid an error. */
9719 /* We use char because int might match the return type of a gcc2
9720 builtin and then its argument prototype would still apply. */
9721 char jl_dic_list_e();
9727 if { (eval echo configure:9728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9729 eval "ac_cv_lib_$ac_lib_var=yes"
9731 echo "configure: failed program was:" >&5
9732 cat conftest.$ac_ext >&5
9734 eval "ac_cv_lib_$ac_lib_var=no"
9739 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9740 echo "$ac_t""yes" 1>&6
9743 echo "$ac_t""no" 1>&6
9744 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6
9745 echo "configure:9746: checking for jl_dic_list_e in -lwnn4" >&5
9746 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
9748 xe_check_libs=" -lwnn4 "
9749 cat > conftest.$ac_ext <<EOF
9750 #line 9751 "configure"
9751 #include "confdefs.h"
9752 /* Override any gcc2 internal prototype to avoid an error. */
9753 /* We use char because int might match the return type of a gcc2
9754 builtin and then its argument prototype would still apply. */
9755 char jl_dic_list_e();
9761 if { (eval echo configure:9762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9763 eval "ac_cv_lib_$ac_lib_var=yes"
9765 echo "configure: failed program was:" >&5
9766 cat conftest.$ac_ext >&5
9768 eval "ac_cv_lib_$ac_lib_var=no"
9773 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9774 echo "$ac_t""yes" 1>&6
9777 echo "$ac_t""no" 1>&6
9778 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6
9779 echo "configure:9780: checking for jl_dic_list_e in -lwnn6" >&5
9780 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
9782 xe_check_libs=" -lwnn6 "
9783 cat > conftest.$ac_ext <<EOF
9784 #line 9785 "configure"
9785 #include "confdefs.h"
9786 /* Override any gcc2 internal prototype to avoid an error. */
9787 /* We use char because int might match the return type of a gcc2
9788 builtin and then its argument prototype would still apply. */
9789 char jl_dic_list_e();
9795 if { (eval echo configure:9796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9797 eval "ac_cv_lib_$ac_lib_var=yes"
9799 echo "configure: failed program was:" >&5
9800 cat conftest.$ac_ext >&5
9802 eval "ac_cv_lib_$ac_lib_var=no"
9807 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9808 echo "$ac_t""yes" 1>&6
9811 echo "$ac_t""no" 1>&6
9812 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6
9813 echo "configure:9814: checking for dic_list_e in -lwnn6_fromsrc" >&5
9814 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'`
9816 xe_check_libs=" -lwnn6_fromsrc "
9817 cat > conftest.$ac_ext <<EOF
9818 #line 9819 "configure"
9819 #include "confdefs.h"
9820 /* Override any gcc2 internal prototype to avoid an error. */
9821 /* We use char because int might match the return type of a gcc2
9822 builtin and then its argument prototype would still apply. */
9829 if { (eval echo configure:9830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9831 eval "ac_cv_lib_$ac_lib_var=yes"
9833 echo "configure: failed program was:" >&5
9834 cat conftest.$ac_ext >&5
9836 eval "ac_cv_lib_$ac_lib_var=no"
9841 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9842 echo "$ac_t""yes" 1>&6
9845 echo "$ac_t""no" 1>&6
9860 test -z "$with_wnn" && with_wnn=yes
9861 if test "$with_wnn" = "yes"; then
9862 { test "$extra_verbose" = "yes" && cat << \EOF
9865 cat >> confdefs.h <<\EOF
9870 libs_x="-l$libwnn $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$libwnn\" to \$libs_x"; fi
9871 extra_objs="$extra_objs mule-wnnfns.o" && if test "$extra_verbose" = "yes"; then
9872 echo " xemacs will be linked with \"mule-wnnfns.o\""
9874 if test "$with_wnn6" != "no"; then
9876 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6
9877 echo "configure:9878: checking for jl_fi_dic_list in -l$libwnn" >&5
9878 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
9880 xe_check_libs=" -l$libwnn "
9881 cat > conftest.$ac_ext <<EOF
9882 #line 9883 "configure"
9883 #include "confdefs.h"
9884 /* Override any gcc2 internal prototype to avoid an error. */
9885 /* We use char because int might match the return type of a gcc2
9886 builtin and then its argument prototype would still apply. */
9887 char jl_fi_dic_list();
9893 if { (eval echo configure:9894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9895 eval "ac_cv_lib_$ac_lib_var=yes"
9897 echo "configure: failed program was:" >&5
9898 cat conftest.$ac_ext >&5
9900 eval "ac_cv_lib_$ac_lib_var=no"
9905 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9906 echo "$ac_t""yes" 1>&6
9909 echo "$ac_t""no" 1>&6
9913 test "$with_wnn6" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
9916 cat >> confdefs.h <<\EOF
9924 canna_includes_found=no
9925 if test "$with_canna" != "no"; then
9926 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
9927 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
9928 echo "configure:9929: checking for canna/jrkanji.h" >&5
9930 cat > conftest.$ac_ext <<EOF
9931 #line 9932 "configure"
9932 #include "confdefs.h"
9933 #include <canna/jrkanji.h>
9935 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9936 { (eval echo configure:9937: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9937 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9938 if test -z "$ac_err"; then
9940 eval "ac_cv_header_$ac_safe=yes"
9943 echo "configure: failed program was:" >&5
9944 cat conftest.$ac_ext >&5
9946 eval "ac_cv_header_$ac_safe=no"
9949 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9950 echo "$ac_t""yes" 1>&6
9951 canna_includes_found=yes
9953 echo "$ac_t""no" 1>&6
9957 if test "$canna_includes_found" = "no" -a "$with_canna" != "no" -a \
9958 -d "/usr/local/canna/include"; then
9959 save_c_switch_site="$c_switch_site"
9960 c_switch_site="$c_switch_site -I/usr/local/canna/include"
9961 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
9962 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
9963 echo "configure:9964: checking for canna/jrkanji.h" >&5
9965 cat > conftest.$ac_ext <<EOF
9966 #line 9967 "configure"
9967 #include "confdefs.h"
9968 #include <canna/jrkanji.h>
9970 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9971 { (eval echo configure:9972: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9972 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9973 if test -z "$ac_err"; then
9975 eval "ac_cv_header_$ac_safe=yes"
9978 echo "configure: failed program was:" >&5
9979 cat conftest.$ac_ext >&5
9981 eval "ac_cv_header_$ac_safe=no"
9984 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9985 echo "$ac_t""yes" 1>&6
9986 canna_includes_found=yes
9988 echo "$ac_t""no" 1>&6
9991 if test "$canna_includes_found" != "yes"; then
9992 c_switch_site="$save_c_switch_site"
9997 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
9998 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
9999 echo "configure:10000: checking for canna/RK.h" >&5
10001 cat > conftest.$ac_ext <<EOF
10002 #line 10003 "configure"
10003 #include "confdefs.h"
10004 #include <canna/RK.h>
10006 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10007 { (eval echo configure:10008: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10008 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10009 if test -z "$ac_err"; then
10011 eval "ac_cv_header_$ac_safe=yes"
10014 echo "configure: failed program was:" >&5
10015 cat conftest.$ac_ext >&5
10017 eval "ac_cv_header_$ac_safe=no"
10020 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10021 echo "$ac_t""yes" 1>&6
10024 echo "$ac_t""no" 1>&6
10028 test -z "$with_canna" && {
10029 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
10030 echo "configure:10031: checking for RkBgnBun in -lRKC" >&5
10031 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
10033 xe_check_libs=" -lRKC "
10034 cat > conftest.$ac_ext <<EOF
10035 #line 10036 "configure"
10036 #include "confdefs.h"
10037 /* Override any gcc2 internal prototype to avoid an error. */
10038 /* We use char because int might match the return type of a gcc2
10039 builtin and then its argument prototype would still apply. */
10046 if { (eval echo configure:10047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10048 eval "ac_cv_lib_$ac_lib_var=yes"
10050 echo "configure: failed program was:" >&5
10051 cat conftest.$ac_ext >&5
10053 eval "ac_cv_lib_$ac_lib_var=no"
10058 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10059 echo "$ac_t""yes" 1>&6
10062 echo "$ac_t""no" 1>&6
10067 test -z "$with_canna" && {
10068 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
10069 echo "configure:10070: checking for jrKanjiControl in -lcanna" >&5
10070 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
10072 xe_check_libs=" -lcanna "
10073 cat > conftest.$ac_ext <<EOF
10074 #line 10075 "configure"
10075 #include "confdefs.h"
10076 /* Override any gcc2 internal prototype to avoid an error. */
10077 /* We use char because int might match the return type of a gcc2
10078 builtin and then its argument prototype would still apply. */
10079 char jrKanjiControl();
10085 if { (eval echo configure:10086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10087 eval "ac_cv_lib_$ac_lib_var=yes"
10089 echo "configure: failed program was:" >&5
10090 cat conftest.$ac_ext >&5
10092 eval "ac_cv_lib_$ac_lib_var=no"
10097 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10098 echo "$ac_t""yes" 1>&6
10101 echo "$ac_t""no" 1>&6
10106 test -z "$with_canna" && with_canna=yes
10107 if test "$with_canna" = "yes"; then
10108 { test "$extra_verbose" = "yes" && cat << \EOF
10109 Defining HAVE_CANNA
10111 cat >> confdefs.h <<\EOF
10112 #define HAVE_CANNA 1
10116 libs_x="-lcanna -lRKC $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcanna -lRKC\" to \$libs_x"; fi
10117 extra_objs="$extra_objs mule-canna.o" && if test "$extra_verbose" = "yes"; then
10118 echo " xemacs will be linked with \"mule-canna.o\""
10122 else for feature in xim canna wnn; do
10123 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
10124 echo "configure: warning: "--with-${feature} ignored: Not valid without Mule support"" 1>&2
10126 eval "with_${feature}=no"
10130 if test "$need_motif" = "yes" ; then
10131 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi
10133 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6
10134 echo "configure:10135: checking for layout_object_getvalue in -li18n" >&5
10135 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'`
10137 xe_check_libs=" -li18n "
10138 cat > conftest.$ac_ext <<EOF
10139 #line 10140 "configure"
10140 #include "confdefs.h"
10141 /* Override any gcc2 internal prototype to avoid an error. */
10142 /* We use char because int might match the return type of a gcc2
10143 builtin and then its argument prototype would still apply. */
10144 char layout_object_getvalue();
10147 layout_object_getvalue()
10150 if { (eval echo configure:10151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10152 eval "ac_cv_lib_$ac_lib_var=yes"
10154 echo "configure: failed program was:" >&5
10155 cat conftest.$ac_ext >&5
10157 eval "ac_cv_lib_$ac_lib_var=no"
10162 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10163 echo "$ac_t""yes" 1>&6
10164 libs_x="-li18n $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-li18n\" to \$libs_x"; fi
10166 echo "$ac_t""no" 1>&6
10171 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
10172 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
10173 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
10175 runpath="" runpath_dirs=""
10176 if test -n "$LD_RUN_PATH"; then
10177 runpath="$LD_RUN_PATH"
10178 elif test "$GCC" = "yes"; then
10179 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
10180 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
10181 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
10182 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
10183 case "$arg" in P,* | -L* | -R* )
10184 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
10186 xe_runpath_dir="$dir"
10187 test "$xe_runpath_dir" != "/lib" -a \
10188 "$xe_runpath_dir" != "/usr/lib" -a \
10189 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
10190 eval "$xe_add_unique_runpath_dir"
10195 ld_switch_run="$ld_switch_run_save"
10198 for arg in $ld_switch_site $ld_switch_x_site; do
10199 case "$arg" in -L*) {
10200 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
10201 test "$xe_runpath_dir" != "/lib" -a \
10202 "$xe_runpath_dir" != "/usr/lib" -a \
10203 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
10204 eval "$xe_add_unique_runpath_dir"
10207 if test "$opsys $need_motif" = "sol2 yes"; then
10208 xe_runpath_dir="/opt/SUNWdt/lib";
10209 eval "$xe_add_unique_runpath_dir";
10212 if test -n "$runpath"; then
10213 ld_switch_run="${dash_r}${runpath}"
10215 if test "$GCC" = "yes"; then
10216 set x $ld_switch_run; shift; ld_switch_run=""
10217 while test -n "$1"; do
10219 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
10220 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
10222 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
10227 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
10233 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 utimes waitpid vsnprintf fsync ftruncate umask
10235 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10236 echo "configure:10237: checking for $ac_func" >&5
10238 cat > conftest.$ac_ext <<EOF
10239 #line 10240 "configure"
10240 #include "confdefs.h"
10241 /* System header to define __stub macros and hopefully few prototypes,
10242 which can conflict with char $ac_func(); below. */
10243 #include <assert.h>
10244 /* Override any gcc2 internal prototype to avoid an error. */
10245 /* We use char because int might match the return type of a gcc2
10246 builtin and then its argument prototype would still apply. */
10251 /* The GNU C library defines this for functions which it implements
10252 to always fail with ENOSYS. Some functions are actually named
10253 something starting with __ and the normal name is an alias. */
10254 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10262 if { (eval echo configure:10263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10264 eval "ac_cv_func_$ac_func=yes"
10266 echo "configure: failed program was:" >&5
10267 cat conftest.$ac_ext >&5
10269 eval "ac_cv_func_$ac_func=no"
10273 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10274 echo "$ac_t""yes" 1>&6
10275 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10276 { test "$extra_verbose" = "yes" && cat << EOF
10277 Defining $ac_tr_func
10279 cat >> confdefs.h <<EOF
10280 #define $ac_tr_func 1
10285 echo "$ac_t""no" 1>&6
10291 for ac_func in getpt _getpty grantpt unlockpt ptsname killpg tcgetpgrp
10293 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10294 echo "configure:10295: checking for $ac_func" >&5
10296 cat > conftest.$ac_ext <<EOF
10297 #line 10298 "configure"
10298 #include "confdefs.h"
10299 /* System header to define __stub macros and hopefully few prototypes,
10300 which can conflict with char $ac_func(); below. */
10301 #include <assert.h>
10302 /* Override any gcc2 internal prototype to avoid an error. */
10303 /* We use char because int might match the return type of a gcc2
10304 builtin and then its argument prototype would still apply. */
10309 /* The GNU C library defines this for functions which it implements
10310 to always fail with ENOSYS. Some functions are actually named
10311 something starting with __ and the normal name is an alias. */
10312 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10320 if { (eval echo configure:10321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10322 eval "ac_cv_func_$ac_func=yes"
10324 echo "configure: failed program was:" >&5
10325 cat conftest.$ac_ext >&5
10327 eval "ac_cv_func_$ac_func=no"
10331 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10332 echo "$ac_t""yes" 1>&6
10333 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10334 { test "$extra_verbose" = "yes" && cat << EOF
10335 Defining $ac_tr_func
10337 cat >> confdefs.h <<EOF
10338 #define $ac_tr_func 1
10343 echo "$ac_t""no" 1>&6
10348 echo $ac_n "checking for openpty""... $ac_c" 1>&6
10349 echo "configure:10350: checking for openpty" >&5
10351 cat > conftest.$ac_ext <<EOF
10352 #line 10353 "configure"
10353 #include "confdefs.h"
10354 /* System header to define __stub macros and hopefully few prototypes,
10355 which can conflict with char openpty(); below. */
10356 #include <assert.h>
10357 /* Override any gcc2 internal prototype to avoid an error. */
10358 /* We use char because int might match the return type of a gcc2
10359 builtin and then its argument prototype would still apply. */
10364 /* The GNU C library defines this for functions which it implements
10365 to always fail with ENOSYS. Some functions are actually named
10366 something starting with __ and the normal name is an alias. */
10367 #if defined (__stub_openpty) || defined (__stub___openpty)
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_func_openpty=yes"
10379 echo "configure: failed program was:" >&5
10380 cat conftest.$ac_ext >&5
10382 eval "ac_cv_func_openpty=no"
10386 if eval "test \"`echo '$ac_cv_func_'openpty`\" = yes"; then
10387 echo "$ac_t""yes" 1>&6
10390 echo "$ac_t""no" 1>&6
10393 echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6
10394 echo "configure:10395: checking for openpty in -lutil" >&5
10395 ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'`
10397 xe_check_libs=" -lutil "
10398 cat > conftest.$ac_ext <<EOF
10399 #line 10400 "configure"
10400 #include "confdefs.h"
10401 /* Override any gcc2 internal prototype to avoid an error. */
10402 /* We use char because int might match the return type of a gcc2
10403 builtin and then its argument prototype would still apply. */
10410 if { (eval echo configure:10411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10412 eval "ac_cv_lib_$ac_lib_var=yes"
10414 echo "configure: failed program was:" >&5
10415 cat conftest.$ac_ext >&5
10417 eval "ac_cv_lib_$ac_lib_var=no"
10422 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10423 echo "$ac_t""yes" 1>&6
10424 have_openpty=yes need_libutil=yes
10426 echo "$ac_t""no" 1>&6
10432 if test "$have_openpty" = "yes"; then
10433 { test "$extra_verbose" = "yes" && cat << \EOF
10434 Defining HAVE_OPENPTY
10436 cat >> confdefs.h <<\EOF
10437 #define HAVE_OPENPTY 1
10441 for ac_hdr in pty.h libutil.h util.h
10443 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10444 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10445 echo "configure:10446: checking for $ac_hdr" >&5
10447 cat > conftest.$ac_ext <<EOF
10448 #line 10449 "configure"
10449 #include "confdefs.h"
10452 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10453 { (eval echo configure:10454: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10454 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10455 if test -z "$ac_err"; then
10457 eval "ac_cv_header_$ac_safe=yes"
10460 echo "configure: failed program was:" >&5
10461 cat conftest.$ac_ext >&5
10463 eval "ac_cv_header_$ac_safe=no"
10466 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10467 echo "$ac_t""yes" 1>&6
10468 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10469 { test "$extra_verbose" = "yes" && cat << EOF
10470 Defining $ac_tr_hdr
10472 cat >> confdefs.h <<EOF
10473 #define $ac_tr_hdr 1
10478 echo "$ac_t""no" 1>&6
10482 test "$need_libutil" = "yes" && libs_system="$libs_system -lutil" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lutil\" to \$libs_system"; fi
10485 for ac_hdr in stropts.h
10487 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10488 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10489 echo "configure:10490: checking for $ac_hdr" >&5
10491 cat > conftest.$ac_ext <<EOF
10492 #line 10493 "configure"
10493 #include "confdefs.h"
10496 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10497 { (eval echo configure:10498: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10498 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10499 if test -z "$ac_err"; then
10501 eval "ac_cv_header_$ac_safe=yes"
10504 echo "configure: failed program was:" >&5
10505 cat conftest.$ac_ext >&5
10507 eval "ac_cv_header_$ac_safe=no"
10510 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10511 echo "$ac_t""yes" 1>&6
10512 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10513 { test "$extra_verbose" = "yes" && cat << EOF
10514 Defining $ac_tr_hdr
10516 cat >> confdefs.h <<EOF
10517 #define $ac_tr_hdr 1
10522 echo "$ac_t""no" 1>&6
10526 if test "$ac_cv_header_stropts_h" = "yes"; then
10527 for ac_func in isastream
10529 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10530 echo "configure:10531: checking for $ac_func" >&5
10532 cat > conftest.$ac_ext <<EOF
10533 #line 10534 "configure"
10534 #include "confdefs.h"
10535 /* System header to define __stub macros and hopefully few prototypes,
10536 which can conflict with char $ac_func(); below. */
10537 #include <assert.h>
10538 /* Override any gcc2 internal prototype to avoid an error. */
10539 /* We use char because int might match the return type of a gcc2
10540 builtin and then its argument prototype would still apply. */
10545 /* The GNU C library defines this for functions which it implements
10546 to always fail with ENOSYS. Some functions are actually named
10547 something starting with __ and the normal name is an alias. */
10548 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10556 if { (eval echo configure:10557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10558 eval "ac_cv_func_$ac_func=yes"
10560 echo "configure: failed program was:" >&5
10561 cat conftest.$ac_ext >&5
10563 eval "ac_cv_func_$ac_func=no"
10567 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10568 echo "$ac_t""yes" 1>&6
10569 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10570 { test "$extra_verbose" = "yes" && cat << EOF
10571 Defining $ac_tr_func
10573 cat >> confdefs.h <<EOF
10574 #define $ac_tr_func 1
10579 echo "$ac_t""no" 1>&6
10583 for ac_hdr in strtio.h
10585 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10586 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10587 echo "configure:10588: checking for $ac_hdr" >&5
10589 cat > conftest.$ac_ext <<EOF
10590 #line 10591 "configure"
10591 #include "confdefs.h"
10594 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10595 { (eval echo configure:10596: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10596 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10597 if test -z "$ac_err"; then
10599 eval "ac_cv_header_$ac_safe=yes"
10602 echo "configure: failed program was:" >&5
10603 cat conftest.$ac_ext >&5
10605 eval "ac_cv_header_$ac_safe=no"
10608 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10609 echo "$ac_t""yes" 1>&6
10610 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10611 { test "$extra_verbose" = "yes" && cat << EOF
10612 Defining $ac_tr_hdr
10614 cat >> confdefs.h <<EOF
10615 #define $ac_tr_hdr 1
10620 echo "$ac_t""no" 1>&6
10625 extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
10626 echo " xemacs will be linked with \"realpath.o\""
10629 for ac_func in getloadavg
10631 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10632 echo "configure:10633: checking for $ac_func" >&5
10634 cat > conftest.$ac_ext <<EOF
10635 #line 10636 "configure"
10636 #include "confdefs.h"
10637 /* System header to define __stub macros and hopefully few prototypes,
10638 which can conflict with char $ac_func(); below. */
10639 #include <assert.h>
10640 /* Override any gcc2 internal prototype to avoid an error. */
10641 /* We use char because int might match the return type of a gcc2
10642 builtin and then its argument prototype would still apply. */
10647 /* The GNU C library defines this for functions which it implements
10648 to always fail with ENOSYS. Some functions are actually named
10649 something starting with __ and the normal name is an alias. */
10650 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10658 if { (eval echo configure:10659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10660 eval "ac_cv_func_$ac_func=yes"
10662 echo "configure: failed program was:" >&5
10663 cat conftest.$ac_ext >&5
10665 eval "ac_cv_func_$ac_func=no"
10669 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10670 echo "$ac_t""yes" 1>&6
10671 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10672 { test "$extra_verbose" = "yes" && cat << EOF
10673 Defining $ac_tr_func
10675 cat >> confdefs.h <<EOF
10676 #define $ac_tr_func 1
10681 echo "$ac_t""no" 1>&6
10686 if test "$ac_cv_func_getloadavg" = "yes"; then
10687 for ac_hdr in sys/loadavg.h
10689 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10690 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10691 echo "configure:10692: checking for $ac_hdr" >&5
10693 cat > conftest.$ac_ext <<EOF
10694 #line 10695 "configure"
10695 #include "confdefs.h"
10698 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10699 { (eval echo configure:10700: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10700 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10701 if test -z "$ac_err"; then
10703 eval "ac_cv_header_$ac_safe=yes"
10706 echo "configure: failed program was:" >&5
10707 cat conftest.$ac_ext >&5
10709 eval "ac_cv_header_$ac_safe=no"
10712 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10713 echo "$ac_t""yes" 1>&6
10714 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10715 { test "$extra_verbose" = "yes" && cat << EOF
10716 Defining $ac_tr_hdr
10718 cat >> confdefs.h <<EOF
10719 #define $ac_tr_hdr 1
10724 echo "$ac_t""no" 1>&6
10729 extra_objs="$extra_objs getloadavg.o" && if test "$extra_verbose" = "yes"; then
10730 echo " xemacs will be linked with \"getloadavg.o\""
10734 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
10735 echo "configure:10736: checking for kstat_open in -lkstat" >&5
10736 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
10738 xe_check_libs=" -lkstat "
10739 cat > conftest.$ac_ext <<EOF
10740 #line 10741 "configure"
10741 #include "confdefs.h"
10742 /* Override any gcc2 internal prototype to avoid an error. */
10743 /* We use char because int might match the return type of a gcc2
10744 builtin and then its argument prototype would still apply. */
10751 if { (eval echo configure:10752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10753 eval "ac_cv_lib_$ac_lib_var=yes"
10755 echo "configure: failed program was:" >&5
10756 cat conftest.$ac_ext >&5
10758 eval "ac_cv_lib_$ac_lib_var=no"
10763 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10764 echo "$ac_t""yes" 1>&6
10765 ac_tr_lib=HAVE_LIB`echo kstat | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10766 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10767 { test "$extra_verbose" = "yes" && cat << EOF
10768 Defining $ac_tr_lib
10770 cat >> confdefs.h <<EOF
10771 #define $ac_tr_lib 1
10775 LIBS="-lkstat $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkstat\" to \$LIBS"; fi
10778 echo "$ac_t""no" 1>&6
10782 for ac_hdr in kstat.h
10784 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10785 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10786 echo "configure:10787: checking for $ac_hdr" >&5
10788 cat > conftest.$ac_ext <<EOF
10789 #line 10790 "configure"
10790 #include "confdefs.h"
10793 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10794 { (eval echo configure:10795: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10795 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10796 if test -z "$ac_err"; then
10798 eval "ac_cv_header_$ac_safe=yes"
10801 echo "configure: failed program was:" >&5
10802 cat conftest.$ac_ext >&5
10804 eval "ac_cv_header_$ac_safe=no"
10807 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10808 echo "$ac_t""yes" 1>&6
10809 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10810 { test "$extra_verbose" = "yes" && cat << EOF
10811 Defining $ac_tr_hdr
10813 cat >> confdefs.h <<EOF
10814 #define $ac_tr_hdr 1
10819 echo "$ac_t""no" 1>&6
10825 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
10826 echo "configure:10827: checking for kvm_read in -lkvm" >&5
10827 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
10829 xe_check_libs=" -lkvm "
10830 cat > conftest.$ac_ext <<EOF
10831 #line 10832 "configure"
10832 #include "confdefs.h"
10833 /* Override any gcc2 internal prototype to avoid an error. */
10834 /* We use char because int might match the return type of a gcc2
10835 builtin and then its argument prototype would still apply. */
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_lib_$ac_lib_var=yes"
10846 echo "configure: failed program was:" >&5
10847 cat conftest.$ac_ext >&5
10849 eval "ac_cv_lib_$ac_lib_var=no"
10854 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10855 echo "$ac_t""yes" 1>&6
10856 ac_tr_lib=HAVE_LIB`echo kvm | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10857 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10858 { test "$extra_verbose" = "yes" && cat << EOF
10859 Defining $ac_tr_lib
10861 cat >> confdefs.h <<EOF
10862 #define $ac_tr_lib 1
10866 LIBS="-lkvm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkvm\" to \$LIBS"; fi
10869 echo "$ac_t""no" 1>&6
10875 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
10876 echo "configure:10877: checking whether netdb declares h_errno" >&5
10877 cat > conftest.$ac_ext <<EOF
10878 #line 10879 "configure"
10879 #include "confdefs.h"
10885 if { (eval echo configure:10886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10887 echo "$ac_t""yes" 1>&6
10888 { test "$extra_verbose" = "yes" && cat << \EOF
10889 Defining HAVE_H_ERRNO
10891 cat >> confdefs.h <<\EOF
10892 #define HAVE_H_ERRNO 1
10897 echo "configure: failed program was:" >&5
10898 cat conftest.$ac_ext >&5
10900 echo "$ac_t""no" 1>&6
10904 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
10905 echo "configure:10906: checking for sigsetjmp" >&5
10906 cat > conftest.$ac_ext <<EOF
10907 #line 10908 "configure"
10908 #include "confdefs.h"
10909 #include <setjmp.h>
10911 sigjmp_buf bar; sigsetjmp (bar, 0);
10914 if { (eval echo configure:10915: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10916 echo "$ac_t""yes" 1>&6
10917 { test "$extra_verbose" = "yes" && cat << \EOF
10918 Defining HAVE_SIGSETJMP
10920 cat >> confdefs.h <<\EOF
10921 #define HAVE_SIGSETJMP 1
10926 echo "configure: failed program was:" >&5
10927 cat conftest.$ac_ext >&5
10929 echo "$ac_t""no" 1>&6
10933 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
10934 echo "configure:10935: checking whether localtime caches TZ" >&5
10936 if test "$ac_cv_func_tzset" = "yes"; then
10937 cat > conftest.$ac_ext <<EOF
10938 #line 10939 "configure"
10939 #include "confdefs.h"
10942 # include <stdlib.h>
10944 extern char **environ;
10948 for (to = from = environ; (*to = *from); from++)
10949 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
10952 char TZ_GMT0[] = "TZ=GMT0";
10953 char TZ_PST8[] = "TZ=PST8";
10956 time_t now = time ((time_t *) 0);
10957 int hour_GMT0, hour_unset;
10958 if (putenv (TZ_GMT0) != 0)
10960 hour_GMT0 = localtime (&now)->tm_hour;
10962 hour_unset = localtime (&now)->tm_hour;
10963 if (putenv (TZ_PST8) != 0)
10965 if (localtime (&now)->tm_hour == hour_GMT0)
10968 if (localtime (&now)->tm_hour != hour_unset)
10973 if { (eval echo configure:10974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
10975 emacs_cv_localtime_cache=no
10978 echo "configure: failed program was:" >&5
10979 cat conftest.$ac_ext >&5
10981 emacs_cv_localtime_cache=yes
10985 # If we lack tzset, report that localtime does not cache TZ,
10986 # since we can't invalidate the cache if we don't have tzset.
10987 emacs_cv_localtime_cache=no
10989 echo "$ac_t""$emacs_cv_localtime_cache" 1>&6
10990 if test $emacs_cv_localtime_cache = yes; then
10991 { test "$extra_verbose" = "yes" && cat << \EOF
10992 Defining LOCALTIME_CACHE
10994 cat >> confdefs.h <<\EOF
10995 #define LOCALTIME_CACHE 1
11001 if test "$HAVE_TIMEVAL" = "yes"; then
11002 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6
11003 echo "configure:11004: checking whether gettimeofday accepts one or two arguments" >&5
11004 cat > conftest.$ac_ext <<EOF
11005 #line 11006 "configure"
11006 #include "confdefs.h"
11008 #ifdef TIME_WITH_SYS_TIME
11009 #include <sys/time.h>
11012 #ifdef HAVE_SYS_TIME_H
11013 #include <sys/time.h>
11021 struct timeval time;
11022 gettimeofday (&time, 0);
11026 if { (eval echo configure:11027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11028 echo "$ac_t""two" 1>&6
11030 echo "configure: failed program was:" >&5
11031 cat conftest.$ac_ext >&5
11033 echo "$ac_t""one" 1>&6
11034 { test "$extra_verbose" = "yes" && cat << \EOF
11035 Defining GETTIMEOFDAY_ONE_ARGUMENT
11037 cat >> confdefs.h <<\EOF
11038 #define GETTIMEOFDAY_ONE_ARGUMENT 1
11047 echo $ac_n "checking for inline""... $ac_c" 1>&6
11048 echo "configure:11049: checking for inline" >&5
11051 for ac_kw in inline __inline__ __inline; do
11052 cat > conftest.$ac_ext <<EOF
11053 #line 11054 "configure"
11054 #include "confdefs.h"
11060 if { (eval echo configure:11061: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11062 ac_cv_c_inline=$ac_kw; break
11064 echo "configure: failed program was:" >&5
11065 cat conftest.$ac_ext >&5
11071 echo "$ac_t""$ac_cv_c_inline" 1>&6
11072 case "$ac_cv_c_inline" in
11074 no) { test "$extra_verbose" = "yes" && cat << \EOF
11077 cat >> confdefs.h <<\EOF
11082 *) { test "$extra_verbose" = "yes" && cat << EOF
11083 Defining inline = $ac_cv_c_inline
11085 cat >> confdefs.h <<EOF
11086 #define inline $ac_cv_c_inline
11092 test "$ac_cv_c_inline" != "no" -a "$GCC" = "yes" && extra_objs="$extra_objs inline.o" && if test "$extra_verbose" = "yes"; then
11093 echo " xemacs will be linked with \"inline.o\""
11097 if test "$__DECC" != "yes"; then
11098 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11099 # for constant arguments. Useless!
11100 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
11101 echo "configure:11102: checking for working alloca.h" >&5
11103 cat > conftest.$ac_ext <<EOF
11104 #line 11105 "configure"
11105 #include "confdefs.h"
11106 #include <alloca.h>
11108 char *p = alloca(2 * sizeof(int));
11111 if { (eval echo configure:11112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11113 ac_cv_header_alloca_h=yes
11115 echo "configure: failed program was:" >&5
11116 cat conftest.$ac_ext >&5
11118 ac_cv_header_alloca_h=no
11122 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
11123 if test $ac_cv_header_alloca_h = yes; then
11124 { test "$extra_verbose" = "yes" && cat << \EOF
11125 Defining HAVE_ALLOCA_H
11127 cat >> confdefs.h <<\EOF
11128 #define HAVE_ALLOCA_H 1
11134 echo $ac_n "checking for alloca""... $ac_c" 1>&6
11135 echo "configure:11136: checking for alloca" >&5
11137 cat > conftest.$ac_ext <<EOF
11138 #line 11139 "configure"
11139 #include "confdefs.h"
11142 # define alloca __builtin_alloca
11145 # include <malloc.h>
11146 # define alloca _alloca
11149 # include <alloca.h>
11154 # ifndef alloca /* predefined by HP cc +Olibcalls */
11163 char *p = (char *) alloca(1);
11166 if { (eval echo configure:11167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11168 ac_cv_func_alloca_works=yes
11170 echo "configure: failed program was:" >&5
11171 cat conftest.$ac_ext >&5
11173 ac_cv_func_alloca_works=no
11177 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
11178 if test $ac_cv_func_alloca_works = yes; then
11179 { test "$extra_verbose" = "yes" && cat << \EOF
11180 Defining HAVE_ALLOCA
11182 cat >> confdefs.h <<\EOF
11183 #define HAVE_ALLOCA 1
11189 if test $ac_cv_func_alloca_works = no; then
11190 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11191 # that cause trouble. Some versions do not even contain alloca or
11192 # contain a buggy version. If you still want to use their alloca,
11193 # use ar to extract alloca.o from them instead of compiling alloca.c.
11194 ALLOCA=alloca.${ac_objext}
11195 { test "$extra_verbose" = "yes" && cat << \EOF
11198 cat >> confdefs.h <<\EOF
11204 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
11205 echo "configure:11206: checking whether alloca needs Cray hooks" >&5
11207 cat > conftest.$ac_ext <<EOF
11208 #line 11209 "configure"
11209 #include "confdefs.h"
11210 #if defined(CRAY) && ! defined(CRAY2)
11217 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11218 egrep "webecray" >/dev/null 2>&1; then
11228 echo "$ac_t""$ac_cv_os_cray" 1>&6
11229 if test $ac_cv_os_cray = yes; then
11230 for ac_func in _getb67 GETB67 getb67; do
11231 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11232 echo "configure:11233: checking for $ac_func" >&5
11234 cat > conftest.$ac_ext <<EOF
11235 #line 11236 "configure"
11236 #include "confdefs.h"
11237 /* System header to define __stub macros and hopefully few prototypes,
11238 which can conflict with char $ac_func(); below. */
11239 #include <assert.h>
11240 /* Override any gcc2 internal prototype to avoid an error. */
11241 /* We use char because int might match the return type of a gcc2
11242 builtin and then its argument prototype would still apply. */
11247 /* The GNU C library defines this for functions which it implements
11248 to always fail with ENOSYS. Some functions are actually named
11249 something starting with __ and the normal name is an alias. */
11250 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11258 if { (eval echo configure:11259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11260 eval "ac_cv_func_$ac_func=yes"
11262 echo "configure: failed program was:" >&5
11263 cat conftest.$ac_ext >&5
11265 eval "ac_cv_func_$ac_func=no"
11269 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11270 echo "$ac_t""yes" 1>&6
11271 { test "$extra_verbose" = "yes" && cat << EOF
11272 Defining CRAY_STACKSEG_END = $ac_func
11274 cat >> confdefs.h <<EOF
11275 #define CRAY_STACKSEG_END $ac_func
11281 echo "$ac_t""no" 1>&6
11287 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
11288 echo "configure:11289: checking stack direction for C alloca" >&5
11290 cat > conftest.$ac_ext <<EOF
11291 #line 11292 "configure"
11292 #include "confdefs.h"
11293 find_stack_direction ()
11295 static char *addr = 0;
11300 return find_stack_direction ();
11303 return (&dummy > addr) ? 1 : -1;
11307 exit (find_stack_direction() < 0);
11310 if { (eval echo configure:11311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11312 ac_cv_c_stack_direction=1
11315 echo "configure: failed program was:" >&5
11316 cat conftest.$ac_ext >&5
11318 ac_cv_c_stack_direction=-1
11322 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
11323 { test "$extra_verbose" = "yes" && cat << EOF
11324 Defining STACK_DIRECTION = $ac_cv_c_stack_direction
11326 cat >> confdefs.h <<EOF
11327 #define STACK_DIRECTION $ac_cv_c_stack_direction
11333 test -n "$ALLOCA" && extra_objs="$extra_objs $ALLOCA" && if test "$extra_verbose" = "yes"; then
11334 echo " xemacs will be linked with \"$ALLOCA\""
11338 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
11339 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
11340 echo "configure:11341: checking for vfork.h" >&5
11342 cat > conftest.$ac_ext <<EOF
11343 #line 11344 "configure"
11344 #include "confdefs.h"
11347 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11348 { (eval echo configure:11349: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11349 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11350 if test -z "$ac_err"; then
11352 eval "ac_cv_header_$ac_safe=yes"
11355 echo "configure: failed program was:" >&5
11356 cat conftest.$ac_ext >&5
11358 eval "ac_cv_header_$ac_safe=no"
11361 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11362 echo "$ac_t""yes" 1>&6
11363 { test "$extra_verbose" = "yes" && cat << \EOF
11364 Defining HAVE_VFORK_H
11366 cat >> confdefs.h <<\EOF
11367 #define HAVE_VFORK_H 1
11372 echo "$ac_t""no" 1>&6
11375 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
11376 echo "configure:11377: checking for working vfork" >&5
11378 cat > conftest.$ac_ext <<EOF
11379 #line 11380 "configure"
11380 #include "confdefs.h"
11381 /* Thanks to Paul Eggert for this test. */
11383 #include <sys/types.h>
11384 #include <sys/stat.h>
11385 #ifdef HAVE_UNISTD_H
11386 #include <unistd.h>
11388 #ifdef HAVE_VFORK_H
11391 /* On some sparc systems, changes by the child to local and incoming
11392 argument registers are propagated back to the parent.
11393 The compiler is told about this with #include <vfork.h>,
11394 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
11395 Test for this by using a static variable whose address
11396 is put into a register that is clobbered by the vfork. */
11399 sparc_address_test (int arg)
11401 sparc_address_test (arg) int arg;
11404 static pid_t child;
11419 pid_t parent = getpid ();
11422 sparc_address_test ();
11427 /* Here is another test for sparc vfork register problems.
11428 This test uses lots of local variables, at least
11429 as many local variables as main has allocated so far
11430 including compiler temporaries. 4 locals are enough for
11431 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
11432 A buggy compiler should reuse the register of parent
11433 for one of the local variables, since it will think that
11434 parent can't possibly be used any more in this routine.
11435 Assigning to the local variable will thus munge parent
11436 in the parent process. */
11438 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11439 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11440 /* Convince the compiler that p..p7 are live; otherwise, it might
11441 use the same hardware register for all 8 local variables. */
11442 if (p != p1 || p != p2 || p != p3 || p != p4
11443 || p != p5 || p != p6 || p != p7)
11446 /* On some systems (e.g. IRIX 3.3),
11447 vfork doesn't separate parent from child file descriptors.
11448 If the child closes a descriptor before it execs or exits,
11449 this munges the parent's descriptor as well.
11450 Test for this by closing stdout in the child. */
11451 _exit(close(fileno(stdout)) != 0);
11456 while (wait(&status) != child)
11459 /* Was there some problem with vforking? */
11462 /* Did the child fail? (This shouldn't happen.) */
11465 /* Did the vfork/compiler bug occur? */
11466 || parent != getpid()
11468 /* Did the file descriptor bug occur? */
11469 || fstat(fileno(stdout), &st) != 0
11474 if { (eval echo configure:11475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11476 ac_cv_func_vfork_works=yes
11479 echo "configure: failed program was:" >&5
11480 cat conftest.$ac_ext >&5
11482 ac_cv_func_vfork_works=no
11486 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
11487 if test $ac_cv_func_vfork_works = no; then
11488 { test "$extra_verbose" = "yes" && cat << \EOF
11489 Defining vfork = fork
11491 cat >> confdefs.h <<\EOF
11499 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
11500 echo "configure:11501: checking for working strcoll" >&5
11502 cat > conftest.$ac_ext <<EOF
11503 #line 11504 "configure"
11504 #include "confdefs.h"
11505 #include <string.h>
11508 exit (strcoll ("abc", "def") >= 0 ||
11509 strcoll ("ABC", "DEF") >= 0 ||
11510 strcoll ("123", "456") >= 0);
11513 if { (eval echo configure:11514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11515 ac_cv_func_strcoll_works=yes
11518 echo "configure: failed program was:" >&5
11519 cat conftest.$ac_ext >&5
11521 ac_cv_func_strcoll_works=no
11525 echo "$ac_t""$ac_cv_func_strcoll_works" 1>&6
11526 if test $ac_cv_func_strcoll_works = yes; then
11527 { test "$extra_verbose" = "yes" && cat << \EOF
11528 Defining HAVE_STRCOLL
11530 cat >> confdefs.h <<\EOF
11531 #define HAVE_STRCOLL 1
11538 for ac_func in getpgrp
11540 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11541 echo "configure:11542: checking for $ac_func" >&5
11543 cat > conftest.$ac_ext <<EOF
11544 #line 11545 "configure"
11545 #include "confdefs.h"
11546 /* System header to define __stub macros and hopefully few prototypes,
11547 which can conflict with char $ac_func(); below. */
11548 #include <assert.h>
11549 /* Override any gcc2 internal prototype to avoid an error. */
11550 /* We use char because int might match the return type of a gcc2
11551 builtin and then its argument prototype would still apply. */
11556 /* The GNU C library defines this for functions which it implements
11557 to always fail with ENOSYS. Some functions are actually named
11558 something starting with __ and the normal name is an alias. */
11559 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11567 if { (eval echo configure:11568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11569 eval "ac_cv_func_$ac_func=yes"
11571 echo "configure: failed program was:" >&5
11572 cat conftest.$ac_ext >&5
11574 eval "ac_cv_func_$ac_func=no"
11578 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11579 echo "$ac_t""yes" 1>&6
11580 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11581 { test "$extra_verbose" = "yes" && cat << EOF
11582 Defining $ac_tr_func
11584 cat >> confdefs.h <<EOF
11585 #define $ac_tr_func 1
11590 echo "$ac_t""no" 1>&6
11594 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
11595 echo "configure:11596: checking whether getpgrp takes no argument" >&5
11597 cat > conftest.$ac_ext <<EOF
11598 #line 11599 "configure"
11599 #include "confdefs.h"
11602 * If this system has a BSD-style getpgrp(),
11603 * which takes a pid argument, exit unsuccessfully.
11605 * Snarfed from Chet Ramey's bash pgrp.c test program
11608 #include <sys/types.h>
11611 int pg1, pg2, pg3, pg4;
11612 int ng, np, s, child;
11619 pg3 = getpgrp(pid);
11623 * If all of these values are the same, it's pretty sure that
11624 * we're on a system that ignores getpgrp's first argument.
11626 if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3)
11632 else if (child == 0) {
11635 * If this is Sys V, this will not work; pgrp will be
11636 * set to np because setpgrp just changes a pgrp to be
11637 * the same as the pid.
11640 ng = getpgrp(0); /* Same result for Sys V and BSD */
11653 if { (eval echo configure:11654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11655 ac_cv_func_getpgrp_void=yes
11658 echo "configure: failed program was:" >&5
11659 cat conftest.$ac_ext >&5
11661 ac_cv_func_getpgrp_void=no
11666 echo "$ac_t""$ac_cv_func_getpgrp_void" 1>&6
11667 if test $ac_cv_func_getpgrp_void = yes; then
11668 { test "$extra_verbose" = "yes" && cat << \EOF
11669 Defining GETPGRP_VOID
11671 cat >> confdefs.h <<\EOF
11672 #define GETPGRP_VOID 1
11679 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
11680 echo "configure:11681: checking for working mmap" >&5
11681 case "$opsys" in ultrix* ) have_mmap=no ;; *)
11682 cat > conftest.$ac_ext <<EOF
11683 #line 11684 "configure"
11684 #include "confdefs.h"
11686 #include <unistd.h>
11688 #include <sys/mman.h>
11690 #ifndef MAP_VARIABLE
11691 #define MAP_VARIABLE 0
11695 #define MAP_FAILED -1
11698 int main (int argc, char *argv[])
11702 #ifndef MAP_ANONYMOUS
11703 fd = open ("/dev/zero", O_RDWR);
11706 #define MAP_ANONYMOUS 0
11708 if (mmap(0, 1024, PROT_READ | PROT_WRITE,
11709 MAP_PRIVATE | MAP_VARIABLE | MAP_ANONYMOUS,
11710 fd, 0) != (void *) MAP_FAILED)
11712 perror ("conftest: mmap failed");
11716 if { (eval echo configure:11717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11721 echo "configure: failed program was:" >&5
11722 cat conftest.$ac_ext >&5
11726 rm -fr conftest* ;;
11728 echo "$ac_t""$have_mmap" 1>&6
11729 test "$have_mmap" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
11732 cat >> confdefs.h <<\EOF
11733 #define HAVE_MMAP 1
11738 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no
11739 if test "$rel_alloc $have_mmap" = "default yes"; then
11740 if test "$doug_lea_malloc" = "yes"; then
11741 echo $ac_n "checking for M_MMAP_THRESHOLD""... $ac_c" 1>&6
11742 echo "configure:11743: checking for M_MMAP_THRESHOLD" >&5
11743 cat > conftest.$ac_ext <<EOF
11744 #line 11745 "configure"
11745 #include "confdefs.h"
11746 #include <malloc.h>
11749 #ifndef M_MMAP_THRESHOLD
11750 #error No M_MMAP_THRESHOLD :-(
11751 !@+$%^&*_)(_ - unlikely to compile...
11756 if { (eval echo configure:11757: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11758 rel_alloc=no; echo "$ac_t""yes" 1>&6;
11760 echo "configure: failed program was:" >&5
11761 cat conftest.$ac_ext >&5
11763 rel_alloc=yes; echo "$ac_t""no" 1>&6;
11770 test "$rel_alloc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
11773 cat >> confdefs.h <<\EOF
11774 #define REL_ALLOC 1
11779 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
11780 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
11781 echo "configure:11782: checking for termios.h" >&5
11783 cat > conftest.$ac_ext <<EOF
11784 #line 11785 "configure"
11785 #include "confdefs.h"
11786 #include <termios.h>
11788 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11789 { (eval echo configure:11790: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11790 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11791 if test -z "$ac_err"; then
11793 eval "ac_cv_header_$ac_safe=yes"
11796 echo "configure: failed program was:" >&5
11797 cat conftest.$ac_ext >&5
11799 eval "ac_cv_header_$ac_safe=no"
11802 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11803 echo "$ac_t""yes" 1>&6
11804 { test "$extra_verbose" = "yes" && cat << \EOF
11805 Defining HAVE_TERMIOS
11807 cat >> confdefs.h <<\EOF
11808 #define HAVE_TERMIOS 1
11812 { test "$extra_verbose" = "yes" && cat << \EOF
11813 Defining SIGNALS_VIA_CHARACTERS
11815 cat >> confdefs.h <<\EOF
11816 #define SIGNALS_VIA_CHARACTERS 1
11820 { test "$extra_verbose" = "yes" && cat << \EOF
11823 cat >> confdefs.h <<\EOF
11824 #define NO_TERMIO 1
11829 echo "$ac_t""no" 1>&6
11830 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
11831 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
11832 echo "configure:11833: checking for termio.h" >&5
11834 cat > conftest.$ac_ext <<EOF
11835 #line 11836 "configure"
11836 #include "confdefs.h"
11837 #include <termio.h>
11839 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11840 { (eval echo configure:11841: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11841 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11842 if test -z "$ac_err"; then
11844 eval "ac_cv_header_$ac_safe=yes"
11847 echo "configure: failed program was:" >&5
11848 cat conftest.$ac_ext >&5
11850 eval "ac_cv_header_$ac_safe=no"
11853 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11854 echo "$ac_t""yes" 1>&6
11855 { test "$extra_verbose" = "yes" && cat << \EOF
11856 Defining HAVE_TERMIO
11858 cat >> confdefs.h <<\EOF
11859 #define HAVE_TERMIO 1
11864 echo "$ac_t""no" 1>&6
11871 echo $ac_n "checking for socket""... $ac_c" 1>&6
11872 echo "configure:11873: checking for socket" >&5
11874 cat > conftest.$ac_ext <<EOF
11875 #line 11876 "configure"
11876 #include "confdefs.h"
11877 /* System header to define __stub macros and hopefully few prototypes,
11878 which can conflict with char socket(); below. */
11879 #include <assert.h>
11880 /* Override any gcc2 internal prototype to avoid an error. */
11881 /* We use char because int might match the return type of a gcc2
11882 builtin and then its argument prototype would still apply. */
11887 /* The GNU C library defines this for functions which it implements
11888 to always fail with ENOSYS. Some functions are actually named
11889 something starting with __ and the normal name is an alias. */
11890 #if defined (__stub_socket) || defined (__stub___socket)
11898 if { (eval echo configure:11899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11900 eval "ac_cv_func_socket=yes"
11902 echo "configure: failed program was:" >&5
11903 cat conftest.$ac_ext >&5
11905 eval "ac_cv_func_socket=no"
11909 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
11910 echo "$ac_t""yes" 1>&6
11911 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
11912 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
11913 echo "configure:11914: checking for netinet/in.h" >&5
11915 cat > conftest.$ac_ext <<EOF
11916 #line 11917 "configure"
11917 #include "confdefs.h"
11918 #include <netinet/in.h>
11920 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11921 { (eval echo configure:11922: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11922 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11923 if test -z "$ac_err"; then
11925 eval "ac_cv_header_$ac_safe=yes"
11928 echo "configure: failed program was:" >&5
11929 cat conftest.$ac_ext >&5
11931 eval "ac_cv_header_$ac_safe=no"
11934 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11935 echo "$ac_t""yes" 1>&6
11936 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
11937 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
11938 echo "configure:11939: checking for arpa/inet.h" >&5
11940 cat > conftest.$ac_ext <<EOF
11941 #line 11942 "configure"
11942 #include "confdefs.h"
11943 #include <arpa/inet.h>
11945 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11946 { (eval echo configure:11947: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11947 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11948 if test -z "$ac_err"; then
11950 eval "ac_cv_header_$ac_safe=yes"
11953 echo "configure: failed program was:" >&5
11954 cat conftest.$ac_ext >&5
11956 eval "ac_cv_header_$ac_safe=no"
11959 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11960 echo "$ac_t""yes" 1>&6
11962 { test "$extra_verbose" = "yes" && cat << \EOF
11963 Defining HAVE_SOCKETS
11965 cat >> confdefs.h <<\EOF
11966 #define HAVE_SOCKETS 1
11970 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
11971 echo "configure:11972: checking "for sun_len member in struct sockaddr_un"" >&5
11972 cat > conftest.$ac_ext <<EOF
11973 #line 11974 "configure"
11974 #include "confdefs.h"
11976 #include <sys/types.h>
11977 #include <sys/socket.h>
11978 #include <sys/un.h>
11981 static struct sockaddr_un x; x.sun_len = 1;
11984 if { (eval echo configure:11985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11986 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
11987 Defining HAVE_SOCKADDR_SUN_LEN
11989 cat >> confdefs.h <<\EOF
11990 #define HAVE_SOCKADDR_SUN_LEN 1
11995 echo "configure: failed program was:" >&5
11996 cat conftest.$ac_ext >&5
11998 echo "$ac_t""no" 1>&6
12001 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6
12002 echo "configure:12003: checking "for ip_mreq struct in netinet/in.h"" >&5
12003 cat > conftest.$ac_ext <<EOF
12004 #line 12005 "configure"
12005 #include "confdefs.h"
12007 #include <sys/types.h>
12008 #include <netinet/in.h>
12011 static struct ip_mreq x;
12014 if { (eval echo configure:12015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12016 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
12017 Defining HAVE_MULTICAST
12019 cat >> confdefs.h <<\EOF
12020 #define HAVE_MULTICAST 1
12025 echo "configure: failed program was:" >&5
12026 cat conftest.$ac_ext >&5
12028 echo "$ac_t""no" 1>&6
12032 echo "$ac_t""no" 1>&6
12036 echo "$ac_t""no" 1>&6
12040 echo "$ac_t""no" 1>&6
12044 echo $ac_n "checking for msgget""... $ac_c" 1>&6
12045 echo "configure:12046: checking for msgget" >&5
12047 cat > conftest.$ac_ext <<EOF
12048 #line 12049 "configure"
12049 #include "confdefs.h"
12050 /* System header to define __stub macros and hopefully few prototypes,
12051 which can conflict with char msgget(); below. */
12052 #include <assert.h>
12053 /* Override any gcc2 internal prototype to avoid an error. */
12054 /* We use char because int might match the return type of a gcc2
12055 builtin and then its argument prototype would still apply. */
12060 /* The GNU C library defines this for functions which it implements
12061 to always fail with ENOSYS. Some functions are actually named
12062 something starting with __ and the normal name is an alias. */
12063 #if defined (__stub_msgget) || defined (__stub___msgget)
12071 if { (eval echo configure:12072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12073 eval "ac_cv_func_msgget=yes"
12075 echo "configure: failed program was:" >&5
12076 cat conftest.$ac_ext >&5
12078 eval "ac_cv_func_msgget=no"
12082 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
12083 echo "$ac_t""yes" 1>&6
12084 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
12085 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
12086 echo "configure:12087: checking for sys/ipc.h" >&5
12088 cat > conftest.$ac_ext <<EOF
12089 #line 12090 "configure"
12090 #include "confdefs.h"
12091 #include <sys/ipc.h>
12093 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12094 { (eval echo configure:12095: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12095 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12096 if test -z "$ac_err"; then
12098 eval "ac_cv_header_$ac_safe=yes"
12101 echo "configure: failed program was:" >&5
12102 cat conftest.$ac_ext >&5
12104 eval "ac_cv_header_$ac_safe=no"
12107 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12108 echo "$ac_t""yes" 1>&6
12109 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
12110 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
12111 echo "configure:12112: checking for sys/msg.h" >&5
12113 cat > conftest.$ac_ext <<EOF
12114 #line 12115 "configure"
12115 #include "confdefs.h"
12116 #include <sys/msg.h>
12118 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12119 { (eval echo configure:12120: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12120 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12121 if test -z "$ac_err"; then
12123 eval "ac_cv_header_$ac_safe=yes"
12126 echo "configure: failed program was:" >&5
12127 cat conftest.$ac_ext >&5
12129 eval "ac_cv_header_$ac_safe=no"
12132 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12133 echo "$ac_t""yes" 1>&6
12134 { test "$extra_verbose" = "yes" && cat << \EOF
12135 Defining HAVE_SYSVIPC
12137 cat >> confdefs.h <<\EOF
12138 #define HAVE_SYSVIPC 1
12143 echo "$ac_t""no" 1>&6
12147 echo "$ac_t""no" 1>&6
12151 echo "$ac_t""no" 1>&6
12155 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
12156 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
12157 echo "configure:12158: checking for dirent.h" >&5
12159 cat > conftest.$ac_ext <<EOF
12160 #line 12161 "configure"
12161 #include "confdefs.h"
12162 #include <dirent.h>
12164 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12165 { (eval echo configure:12166: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12166 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12167 if test -z "$ac_err"; then
12169 eval "ac_cv_header_$ac_safe=yes"
12172 echo "configure: failed program was:" >&5
12173 cat conftest.$ac_ext >&5
12175 eval "ac_cv_header_$ac_safe=no"
12178 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12179 echo "$ac_t""yes" 1>&6
12180 { test "$extra_verbose" = "yes" && cat << \EOF
12181 Defining SYSV_SYSTEM_DIR
12183 cat >> confdefs.h <<\EOF
12184 #define SYSV_SYSTEM_DIR 1
12189 echo "$ac_t""no" 1>&6
12190 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
12191 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
12192 echo "configure:12193: checking for sys/dir.h" >&5
12194 cat > conftest.$ac_ext <<EOF
12195 #line 12196 "configure"
12196 #include "confdefs.h"
12197 #include <sys/dir.h>
12199 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12200 { (eval echo configure:12201: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12201 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12202 if test -z "$ac_err"; then
12204 eval "ac_cv_header_$ac_safe=yes"
12207 echo "configure: failed program was:" >&5
12208 cat conftest.$ac_ext >&5
12210 eval "ac_cv_header_$ac_safe=no"
12213 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12214 echo "$ac_t""yes" 1>&6
12217 echo "$ac_t""no" 1>&6
12218 { test "$extra_verbose" = "yes" && cat << \EOF
12219 Defining NONSYSTEM_DIR_LIBRARY
12221 cat >> confdefs.h <<\EOF
12222 #define NONSYSTEM_DIR_LIBRARY 1
12231 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
12232 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
12233 echo "configure:12234: checking for nlist.h" >&5
12235 cat > conftest.$ac_ext <<EOF
12236 #line 12237 "configure"
12237 #include "confdefs.h"
12240 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12241 { (eval echo configure:12242: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12242 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12243 if test -z "$ac_err"; then
12245 eval "ac_cv_header_$ac_safe=yes"
12248 echo "configure: failed program was:" >&5
12249 cat conftest.$ac_ext >&5
12251 eval "ac_cv_header_$ac_safe=no"
12254 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12255 echo "$ac_t""yes" 1>&6
12256 { test "$extra_verbose" = "yes" && cat << \EOF
12257 Defining NLIST_STRUCT
12259 cat >> confdefs.h <<\EOF
12260 #define NLIST_STRUCT 1
12265 echo "$ac_t""no" 1>&6
12270 echo "checking "for sound support"" 1>&6
12271 echo "configure:12272: checking "for sound support"" >&5
12272 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
12274 if test "$with_native_sound" != "no"; then
12275 if test -n "$native_sound_lib"; then
12276 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
12277 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
12278 echo "configure:12279: checking for multimedia/audio_device.h" >&5
12280 cat > conftest.$ac_ext <<EOF
12281 #line 12282 "configure"
12282 #include "confdefs.h"
12283 #include <multimedia/audio_device.h>
12285 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12286 { (eval echo configure:12287: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12287 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12288 if test -z "$ac_err"; then
12290 eval "ac_cv_header_$ac_safe=yes"
12293 echo "configure: failed program was:" >&5
12294 cat conftest.$ac_ext >&5
12296 eval "ac_cv_header_$ac_safe=no"
12299 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12300 echo "$ac_t""yes" 1>&6
12301 sound_found=yes sound_cflags=""
12302 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
12303 echo " xemacs will be linked with \"sunplay.o\""
12306 echo "$ac_t""no" 1>&6
12311 if test -z "$sound_found" -a -d "/usr/demo/SOUND"; then
12313 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
12314 echo " xemacs will be linked with \"sunplay.o\""
12316 if test -d "/usr/demo/SOUND/include"
12317 then sound_cflags="-I/usr/demo/SOUND/include"
12318 else sound_cflags="-I/usr/demo/SOUND"
12320 if test -z "$native_sound_lib" ; then
12321 if test -r "/usr/demo/SOUND/lib/libaudio.a"
12322 then native_sound_lib="/usr/demo/SOUND/lib/libaudio.a"
12323 else native_sound_lib="/usr/demo/SOUND/libaudio.a"
12328 if test -z "$sound_found"; then
12329 case "$canonical" in
12331 if test -z "$native_sound_lib"; then
12333 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
12334 echo "configure:12335: checking for ALopenport in -laudio" >&5
12335 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
12337 xe_check_libs=" -laudio "
12338 cat > conftest.$ac_ext <<EOF
12339 #line 12340 "configure"
12340 #include "confdefs.h"
12341 /* Override any gcc2 internal prototype to avoid an error. */
12342 /* We use char because int might match the return type of a gcc2
12343 builtin and then its argument prototype would still apply. */
12350 if { (eval echo configure:12351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12352 eval "ac_cv_lib_$ac_lib_var=yes"
12354 echo "configure: failed program was:" >&5
12355 cat conftest.$ac_ext >&5
12357 eval "ac_cv_lib_$ac_lib_var=no"
12362 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12363 echo "$ac_t""yes" 1>&6
12364 native_sound_lib="-laudio"
12366 echo "$ac_t""no" 1>&6
12371 if test -n "$native_sound_lib"; then
12372 sound_found=yes sound_cflags=""
12373 extra_objs="$extra_objs sgiplay.o" && if test "$extra_verbose" = "yes"; then
12374 echo " xemacs will be linked with \"sgiplay.o\""
12378 if test -z "$native_sound_lib"; then
12380 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
12381 echo "configure:12382: checking for AOpenAudio in -lAlib" >&5
12382 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
12384 xe_check_libs=" -lAlib "
12385 cat > conftest.$ac_ext <<EOF
12386 #line 12387 "configure"
12387 #include "confdefs.h"
12388 /* Override any gcc2 internal prototype to avoid an error. */
12389 /* We use char because int might match the return type of a gcc2
12390 builtin and then its argument prototype would still apply. */
12397 if { (eval echo configure:12398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12399 eval "ac_cv_lib_$ac_lib_var=yes"
12401 echo "configure: failed program was:" >&5
12402 cat conftest.$ac_ext >&5
12404 eval "ac_cv_lib_$ac_lib_var=no"
12409 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12410 echo "$ac_t""yes" 1>&6
12411 native_sound_lib="-lAlib"
12413 echo "$ac_t""no" 1>&6
12418 if test -n "$native_sound_lib"; then
12420 extra_objs="$extra_objs hpplay.o" && if test "$extra_verbose" = "yes"; then
12421 echo " xemacs will be linked with \"hpplay.o\""
12423 if test "$GCC" = "yes" # Kludge city
12424 then sound_cflags="-Dconst= -Dvolatile= -I/usr/audio/examples"
12425 else sound_cflags="+e -I/usr/audio/examples"
12431 if test -z "$sound_found"; then
12432 for dir in "machine" "sys" "linux"; do
12433 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
12434 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
12435 echo "configure:12436: checking for ${dir}/soundcard.h" >&5
12437 cat > conftest.$ac_ext <<EOF
12438 #line 12439 "configure"
12439 #include "confdefs.h"
12440 #include <${dir}/soundcard.h>
12442 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12443 { (eval echo configure:12444: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12444 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12445 if test -z "$ac_err"; then
12447 eval "ac_cv_header_$ac_safe=yes"
12450 echo "configure: failed program was:" >&5
12451 cat conftest.$ac_ext >&5
12453 eval "ac_cv_header_$ac_safe=no"
12456 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12457 echo "$ac_t""yes" 1>&6
12460 extra_objs="$extra_objs linuxplay.o" && if test "$extra_verbose" = "yes"; then
12461 echo " xemacs will be linked with \"linuxplay.o\""
12463 { test "$extra_verbose" = "yes" && cat << EOF
12464 Defining SOUNDCARD_H_FILE = "${dir}/soundcard.h"
12466 cat >> confdefs.h <<EOF
12467 #define SOUNDCARD_H_FILE "${dir}/soundcard.h"
12473 echo "$ac_t""no" 1>&6
12479 if test -z "$sound_found"; then
12480 if test "$with_msw" = "yes"; then
12486 test "$sound_found" = "yes" && with_native_sound=yes
12489 if test "$with_native_sound" = "yes"; then
12490 { test "$extra_verbose" = "yes" && cat << \EOF
12491 Defining HAVE_NATIVE_SOUND
12493 cat >> confdefs.h <<\EOF
12494 #define HAVE_NATIVE_SOUND 1
12498 test -n "$native_sound_lib" && LIBS="$native_sound_lib $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$native_sound_lib\" to \$LIBS"; fi
12501 if test "$with_nas_sound" != "no"; then
12502 ac_safe=`echo "audio/audiolib.h" | sed 'y%./+-%__p_%'`
12503 echo $ac_n "checking for audio/audiolib.h""... $ac_c" 1>&6
12504 echo "configure:12505: checking for audio/audiolib.h" >&5
12506 cat > conftest.$ac_ext <<EOF
12507 #line 12508 "configure"
12508 #include "confdefs.h"
12509 #include <audio/audiolib.h>
12511 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12512 { (eval echo configure:12513: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12513 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12514 if test -z "$ac_err"; then
12516 eval "ac_cv_header_$ac_safe=yes"
12519 echo "configure: failed program was:" >&5
12520 cat conftest.$ac_ext >&5
12522 eval "ac_cv_header_$ac_safe=no"
12525 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12526 echo "$ac_t""yes" 1>&6
12529 echo $ac_n "checking for AuOpenServer in -laudio""... $ac_c" 1>&6
12530 echo "configure:12531: checking for AuOpenServer in -laudio" >&5
12531 ac_lib_var=`echo audio'_'AuOpenServer | sed 'y%./+-%__p_%'`
12533 xe_check_libs=" -laudio "
12534 cat > conftest.$ac_ext <<EOF
12535 #line 12536 "configure"
12536 #include "confdefs.h"
12537 /* Override any gcc2 internal prototype to avoid an error. */
12538 /* We use char because int might match the return type of a gcc2
12539 builtin and then its argument prototype would still apply. */
12540 char AuOpenServer();
12546 if { (eval echo configure:12547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12548 eval "ac_cv_lib_$ac_lib_var=yes"
12550 echo "configure: failed program was:" >&5
12551 cat conftest.$ac_ext >&5
12553 eval "ac_cv_lib_$ac_lib_var=no"
12558 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12559 echo "$ac_t""yes" 1>&6
12562 echo "$ac_t""no" 1>&6
12567 echo "$ac_t""no" 1>&6
12570 if test "$have_nas_sound" = "yes"; then
12572 { test "$extra_verbose" = "yes" && cat << \EOF
12573 Defining HAVE_NAS_SOUND
12575 cat >> confdefs.h <<\EOF
12576 #define HAVE_NAS_SOUND 1
12580 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
12581 echo " xemacs will be linked with \"nas.o\""
12583 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi
12584 cat > conftest.$ac_ext <<EOF
12585 #line 12586 "configure"
12586 #include "confdefs.h"
12587 #include <audio/Xtutil.h>
12589 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12590 egrep "AuXtErrorJump" >/dev/null 2>&1; then
12594 old_nas=yes; { test "$extra_verbose" = "yes" && cat << \EOF
12595 Defining NAS_NO_ERROR_JUMP
12597 cat >> confdefs.h <<\EOF
12598 #define NAS_NO_ERROR_JUMP 1
12606 test "$with_nas_sound" = "yes" && \
12607 { echo "Error:" "Required NAS sound support cannot be provided." >&2; exit 1; }
12612 if test "$with_esd_sound" != "no"; then
12613 # Extract the first word of "esd-config", so it can be a program name with args.
12614 set dummy esd-config; ac_word=$2
12615 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12616 echo "configure:12617: checking for $ac_word" >&5
12618 if test -n "$have_esd_config"; then
12619 ac_cv_prog_have_esd_config="$have_esd_config" # Let the user override the test.
12621 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12623 for ac_dir in $ac_dummy; do
12624 test -z "$ac_dir" && ac_dir=.
12625 if test -f $ac_dir/$ac_word; then
12626 ac_cv_prog_have_esd_config="yes"
12631 test -z "$ac_cv_prog_have_esd_config" && ac_cv_prog_have_esd_config="no"
12633 have_esd_config="$ac_cv_prog_have_esd_config"
12634 if test -n "$have_esd_config"; then
12635 echo "$ac_t""$have_esd_config" 1>&6
12637 echo "$ac_t""no" 1>&6
12640 if test "$have_esd_config" = "yes"; then
12641 save_c_switch_site="$c_switch_site" save_LIBS="$LIBS"
12642 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
12643 LIBS="`esd-config --libs` $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"`esd-config --libs`\" to \$LIBS"; fi
12644 echo $ac_n "checking for esd_play_stream""... $ac_c" 1>&6
12645 echo "configure:12646: checking for esd_play_stream" >&5
12647 cat > conftest.$ac_ext <<EOF
12648 #line 12649 "configure"
12649 #include "confdefs.h"
12650 /* System header to define __stub macros and hopefully few prototypes,
12651 which can conflict with char esd_play_stream(); below. */
12652 #include <assert.h>
12653 /* Override any gcc2 internal prototype to avoid an error. */
12654 /* We use char because int might match the return type of a gcc2
12655 builtin and then its argument prototype would still apply. */
12656 char esd_play_stream();
12660 /* The GNU C library defines this for functions which it implements
12661 to always fail with ENOSYS. Some functions are actually named
12662 something starting with __ and the normal name is an alias. */
12663 #if defined (__stub_esd_play_stream) || defined (__stub___esd_play_stream)
12671 if { (eval echo configure:12672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12673 eval "ac_cv_func_esd_play_stream=yes"
12675 echo "configure: failed program was:" >&5
12676 cat conftest.$ac_ext >&5
12678 eval "ac_cv_func_esd_play_stream=no"
12682 if eval "test \"`echo '$ac_cv_func_'esd_play_stream`\" = yes"; then
12683 echo "$ac_t""yes" 1>&6
12686 echo "$ac_t""no" 1>&6
12687 c_switch_site="$save_c_switch_site" LIBS="$save_LIBS"
12692 if test "$have_esd_sound" = "yes"; then
12695 extra_objs="$extra_objs esd.o" && if test "$extra_verbose" = "yes"; then
12696 echo " xemacs will be linked with \"esd.o\""
12698 { test "$extra_verbose" = "yes" && cat << \EOF
12699 Defining HAVE_ESD_SOUND
12701 cat >> confdefs.h <<\EOF
12702 #define HAVE_ESD_SOUND 1
12707 test "$with_esd_sound" = "yes" && \
12708 { echo "Error:" "Required ESD sound support cannot be provided." >&2; exit 1; }
12713 test "$need_miscplay" = "yes" && extra_objs="$extra_objs miscplay.o" && if test "$extra_verbose" = "yes"; then
12714 echo " xemacs will be linked with \"miscplay.o\""
12718 test -z "$with_tty" && with_tty=yes
12720 if test "$with_tty" = "yes" ; then
12721 echo "checking for TTY-related features" 1>&6
12722 echo "configure:12723: checking for TTY-related features" >&5
12723 { test "$extra_verbose" = "yes" && cat << \EOF
12726 cat >> confdefs.h <<\EOF
12731 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
12732 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\""
12735 if test -z "$with_ncurses"; then
12737 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
12738 echo "configure:12739: checking for tgetent in -lncurses" >&5
12739 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
12741 xe_check_libs=" -lncurses "
12742 cat > conftest.$ac_ext <<EOF
12743 #line 12744 "configure"
12744 #include "confdefs.h"
12745 /* Override any gcc2 internal prototype to avoid an error. */
12746 /* We use char because int might match the return type of a gcc2
12747 builtin and then its argument prototype would still apply. */
12754 if { (eval echo configure:12755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12756 eval "ac_cv_lib_$ac_lib_var=yes"
12758 echo "configure: failed program was:" >&5
12759 cat conftest.$ac_ext >&5
12761 eval "ac_cv_lib_$ac_lib_var=no"
12766 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12767 echo "$ac_t""yes" 1>&6
12770 echo "$ac_t""no" 1>&6
12776 if test "$with_ncurses" = "yes"; then
12777 { test "$extra_verbose" = "yes" && cat << \EOF
12778 Defining HAVE_NCURSES
12780 cat >> confdefs.h <<\EOF
12781 #define HAVE_NCURSES 1
12785 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
12786 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
12787 echo "configure:12788: checking for ncurses/curses.h" >&5
12789 cat > conftest.$ac_ext <<EOF
12790 #line 12791 "configure"
12791 #include "confdefs.h"
12792 #include <ncurses/curses.h>
12794 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12795 { (eval echo configure:12796: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12796 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12797 if test -z "$ac_err"; then
12799 eval "ac_cv_header_$ac_safe=yes"
12802 echo "configure: failed program was:" >&5
12803 cat conftest.$ac_ext >&5
12805 eval "ac_cv_header_$ac_safe=no"
12808 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12809 echo "$ac_t""yes" 1>&6
12810 curses_h_file=ncurses/curses.h
12812 echo "$ac_t""no" 1>&6
12815 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
12816 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
12817 echo "configure:12818: checking for ncurses/term.h" >&5
12819 cat > conftest.$ac_ext <<EOF
12820 #line 12821 "configure"
12821 #include "confdefs.h"
12822 #include <ncurses/term.h>
12824 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12825 { (eval echo configure:12826: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12826 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12827 if test -z "$ac_err"; then
12829 eval "ac_cv_header_$ac_safe=yes"
12832 echo "configure: failed program was:" >&5
12833 cat conftest.$ac_ext >&5
12835 eval "ac_cv_header_$ac_safe=no"
12838 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12839 echo "$ac_t""yes" 1>&6
12840 term_h_file=ncurses/term.h
12842 echo "$ac_t""no" 1>&6
12845 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
12846 echo " xemacs will be linked with \"terminfo.o\""
12848 LIBS="-lncurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lncurses\" to \$LIBS"; fi
12850 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
12851 save_c_switch_site="$c_switch_site"
12852 c_switch_site="$c_switch_site -I/usr/include/ncurses"
12853 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
12854 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
12855 echo "configure:12856: checking for ncurses/curses.h" >&5
12857 cat > conftest.$ac_ext <<EOF
12858 #line 12859 "configure"
12859 #include "confdefs.h"
12860 #include <ncurses/curses.h>
12862 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12863 { (eval echo configure:12864: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12864 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12865 if test -z "$ac_err"; then
12867 eval "ac_cv_header_$ac_safe=yes"
12870 echo "configure: failed program was:" >&5
12871 cat conftest.$ac_ext >&5
12873 eval "ac_cv_header_$ac_safe=no"
12876 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12877 echo "$ac_t""yes" 1>&6
12878 curses_h_file=ncurses/curses.h
12880 echo "$ac_t""no" 1>&6
12883 if test "$ac_cv_header_ncurses_curses_h" = "yes"
12884 then echo "configure: warning: "Your system has the bogus ncurses include bug."" 1>&2
12885 else c_switch_site="$save_c_switch_site"
12888 else if test "$have_terminfo" = "yes"; then
12889 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
12890 echo " xemacs will be linked with \"terminfo.o\""
12892 if test -n "$libs_termcap"; then
12893 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
12895 for lib in curses termlib termcap; do
12897 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
12898 echo "configure:12899: checking for tgetent in -l$lib" >&5
12899 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
12901 xe_check_libs=" -l$lib "
12902 cat > conftest.$ac_ext <<EOF
12903 #line 12904 "configure"
12904 #include "confdefs.h"
12905 /* Override any gcc2 internal prototype to avoid an error. */
12906 /* We use char because int might match the return type of a gcc2
12907 builtin and then its argument prototype would still apply. */
12914 if { (eval echo configure:12915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12916 eval "ac_cv_lib_$ac_lib_var=yes"
12918 echo "configure: failed program was:" >&5
12919 cat conftest.$ac_ext >&5
12921 eval "ac_cv_lib_$ac_lib_var=no"
12926 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12927 echo "$ac_t""yes" 1>&6
12928 LIBS="-l${lib} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${lib}\" to \$LIBS"; fi; break
12930 echo "$ac_t""no" 1>&6
12936 else extra_objs="$extra_objs tparam.o" && if test "$extra_verbose" = "yes"; then
12937 echo " xemacs will be linked with \"tparam.o\""
12939 case "$opsys" in *-hp-hpux* ) libs_termcap="-ltermcap" ;; esac
12940 if test -n "$libs_termcap"; then
12941 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
12944 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
12945 echo "configure:12946: checking for tgetent in -lcurses" >&5
12946 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
12948 xe_check_libs=" -lcurses "
12949 cat > conftest.$ac_ext <<EOF
12950 #line 12951 "configure"
12951 #include "confdefs.h"
12952 /* Override any gcc2 internal prototype to avoid an error. */
12953 /* We use char because int might match the return type of a gcc2
12954 builtin and then its argument prototype would still apply. */
12961 if { (eval echo configure:12962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12963 eval "ac_cv_lib_$ac_lib_var=yes"
12965 echo "configure: failed program was:" >&5
12966 cat conftest.$ac_ext >&5
12968 eval "ac_cv_lib_$ac_lib_var=no"
12973 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12974 echo "$ac_t""yes" 1>&6
12975 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
12977 echo "$ac_t""no" 1>&6
12978 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
12979 echo "configure:12980: checking for tgetent in -ltermcap" >&5
12980 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
12982 xe_check_libs=" -ltermcap "
12983 cat > conftest.$ac_ext <<EOF
12984 #line 12985 "configure"
12985 #include "confdefs.h"
12986 /* Override any gcc2 internal prototype to avoid an error. */
12987 /* We use char because int might match the return type of a gcc2
12988 builtin and then its argument prototype would still apply. */
12995 if { (eval echo configure:12996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12997 eval "ac_cv_lib_$ac_lib_var=yes"
12999 echo "configure: failed program was:" >&5
13000 cat conftest.$ac_ext >&5
13002 eval "ac_cv_lib_$ac_lib_var=no"
13007 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13008 echo "$ac_t""yes" 1>&6
13009 LIBS="-ltermcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltermcap\" to \$LIBS"; fi
13011 echo "$ac_t""no" 1>&6
13012 extra_objs="$extra_objs termcap.o" && if test "$extra_verbose" = "yes"; then
13013 echo " xemacs will be linked with \"termcap.o\""
13024 { test "$extra_verbose" = "yes" && cat << EOF
13025 Defining CURSES_H_FILE = "${curses_h_file-curses.h}"
13027 cat >> confdefs.h <<EOF
13028 #define CURSES_H_FILE "${curses_h_file-curses.h}"
13032 { test "$extra_verbose" = "yes" && cat << EOF
13033 Defining TERM_H_FILE = "${term_h_file-term.h}"
13035 cat >> confdefs.h <<EOF
13036 #define TERM_H_FILE "${term_h_file-term.h}"
13041 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
13042 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
13043 echo "configure:13044: checking for gpm.h" >&5
13045 cat > conftest.$ac_ext <<EOF
13046 #line 13047 "configure"
13047 #include "confdefs.h"
13050 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13051 { (eval echo configure:13052: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13052 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13053 if test -z "$ac_err"; then
13055 eval "ac_cv_header_$ac_safe=yes"
13058 echo "configure: failed program was:" >&5
13059 cat conftest.$ac_ext >&5
13061 eval "ac_cv_header_$ac_safe=no"
13064 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13065 echo "$ac_t""yes" 1>&6
13068 echo "$ac_t""no" 1>&6
13072 test -z "$with_gpm" && {
13073 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
13074 echo "configure:13075: checking for Gpm_Open in -lgpm" >&5
13075 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
13077 xe_check_libs=" -lgpm "
13078 cat > conftest.$ac_ext <<EOF
13079 #line 13080 "configure"
13080 #include "confdefs.h"
13081 /* Override any gcc2 internal prototype to avoid an error. */
13082 /* We use char because int might match the return type of a gcc2
13083 builtin and then its argument prototype would still apply. */
13090 if { (eval echo configure:13091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13092 eval "ac_cv_lib_$ac_lib_var=yes"
13094 echo "configure: failed program was:" >&5
13095 cat conftest.$ac_ext >&5
13097 eval "ac_cv_lib_$ac_lib_var=no"
13102 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13103 echo "$ac_t""yes" 1>&6
13106 echo "$ac_t""no" 1>&6
13111 if test "$with_gpm" = "yes"; then
13112 { test "$extra_verbose" = "yes" && cat << \EOF
13115 cat >> confdefs.h <<\EOF
13120 extra_objs="$extra_objs gpmevent.o" && if test "$extra_verbose" = "yes"; then
13121 echo " xemacs will be linked with \"gpmevent.o\""
13123 LIBS="-lgpm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgpm\" to \$LIBS"; fi
13126 else for feature in ncurses gpm; do
13127 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
13128 echo "configure: warning: "--with-${feature} ignored: Not valid without TTY support"" 1>&2
13130 eval "with_${feature}=no"
13133 test "$with_x11" = "yes" -o "$with_tty" = "yes" && extra_objs="$extra_objs event-unixoid.o" && if test "$extra_verbose" = "yes"; then
13134 echo " xemacs will be linked with \"event-unixoid.o\""
13138 test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
13139 != "no no no" && echo "checking for database support" 1>&6
13140 echo "configure:13141: checking for database support" >&5
13142 if test "$with_database_gdbm $with_database_dbm" != "no no"; then
13143 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'`
13144 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6
13145 echo "configure:13146: checking for ndbm.h" >&5
13147 cat > conftest.$ac_ext <<EOF
13148 #line 13149 "configure"
13149 #include "confdefs.h"
13152 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13153 { (eval echo configure:13154: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13154 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13155 if test -z "$ac_err"; then
13157 eval "ac_cv_header_$ac_safe=yes"
13160 echo "configure: failed program was:" >&5
13161 cat conftest.$ac_ext >&5
13163 eval "ac_cv_header_$ac_safe=no"
13166 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13167 echo "$ac_t""yes" 1>&6
13170 echo "$ac_t""no" 1>&6
13172 test "$with_database_gdbm" = "yes" -o \
13173 "$with_database_dbm" = "yes" && \
13174 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
13175 with_database_gdbm=no with_database_dbm=no
13180 if test "$with_database_gdbm" != "no"; then
13182 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
13183 echo "configure:13184: checking for dbm_open in -lgdbm" >&5
13184 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
13186 xe_check_libs=" -lgdbm "
13187 cat > conftest.$ac_ext <<EOF
13188 #line 13189 "configure"
13189 #include "confdefs.h"
13190 /* Override any gcc2 internal prototype to avoid an error. */
13191 /* We use char because int might match the return type of a gcc2
13192 builtin and then its argument prototype would still apply. */
13199 if { (eval echo configure:13200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13201 eval "ac_cv_lib_$ac_lib_var=yes"
13203 echo "configure: failed program was:" >&5
13204 cat conftest.$ac_ext >&5
13206 eval "ac_cv_lib_$ac_lib_var=no"
13211 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13212 echo "$ac_t""yes" 1>&6
13213 with_database_gdbm=yes with_database_dbm=no libdbm=-lgdbm
13215 echo "$ac_t""no" 1>&6
13216 if test "$with_database_gdbm" = "yes"; then
13217 { echo "Error:" "Required GNU DBM support cannot be provided." >&2; exit 1; }
13219 with_database_gdbm=no
13225 if test "$with_database_dbm" != "no"; then
13226 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
13227 echo "configure:13228: checking for dbm_open" >&5
13229 cat > conftest.$ac_ext <<EOF
13230 #line 13231 "configure"
13231 #include "confdefs.h"
13232 /* System header to define __stub macros and hopefully few prototypes,
13233 which can conflict with char dbm_open(); below. */
13234 #include <assert.h>
13235 /* Override any gcc2 internal prototype to avoid an error. */
13236 /* We use char because int might match the return type of a gcc2
13237 builtin and then its argument prototype would still apply. */
13242 /* The GNU C library defines this for functions which it implements
13243 to always fail with ENOSYS. Some functions are actually named
13244 something starting with __ and the normal name is an alias. */
13245 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
13253 if { (eval echo configure:13254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13255 eval "ac_cv_func_dbm_open=yes"
13257 echo "configure: failed program was:" >&5
13258 cat conftest.$ac_ext >&5
13260 eval "ac_cv_func_dbm_open=no"
13264 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
13265 echo "$ac_t""yes" 1>&6
13266 with_database_dbm=yes libdbm=
13268 echo "$ac_t""no" 1>&6
13271 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
13272 echo "configure:13273: checking for dbm_open in -ldbm" >&5
13273 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
13275 xe_check_libs=" -ldbm "
13276 cat > conftest.$ac_ext <<EOF
13277 #line 13278 "configure"
13278 #include "confdefs.h"
13279 /* Override any gcc2 internal prototype to avoid an error. */
13280 /* We use char because int might match the return type of a gcc2
13281 builtin and then its argument prototype would still apply. */
13288 if { (eval echo configure:13289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13290 eval "ac_cv_lib_$ac_lib_var=yes"
13292 echo "configure: failed program was:" >&5
13293 cat conftest.$ac_ext >&5
13295 eval "ac_cv_lib_$ac_lib_var=no"
13300 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13301 echo "$ac_t""yes" 1>&6
13302 with_database_dbm=yes libdbm=-ldbm
13304 echo "$ac_t""no" 1>&6
13305 test "$with_database_dbm" = "yes" && \
13306 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
13307 with_database_dbm=no
13315 test -n "$libdbm" && LIBS=""$libdbm" $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libdbm"\" to \$LIBS"; fi
13316 test "$with_database_gdbm" = "yes" -o \
13317 "$with_database_dbm" = "yes" && \
13318 { test "$extra_verbose" = "yes" && cat << \EOF
13321 cat >> confdefs.h <<\EOF
13327 if test "$with_database_berkdb" != "no"; then
13328 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6
13329 echo "configure:13330: checking for Berkeley db.h" >&5
13330 for header in "db/db.h" "db.h"; do
13331 cat > conftest.$ac_ext <<EOF
13332 #line 13333 "configure"
13333 #include "confdefs.h"
13335 #include <stdlib.h>
13336 #if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1)
13337 #ifdef HAVE_INTTYPES_H
13338 #define __BIT_TYPES_DEFINED__
13339 #include <inttypes.h>
13340 typedef uint8_t u_int8_t;
13341 typedef uint16_t u_int16_t;
13342 typedef uint32_t u_int32_t;
13343 #ifdef WE_DONT_NEED_QUADS
13344 typedef uint64_t u_int64_t;
13354 if { (eval echo configure:13355: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13356 db_h_file="$header"; break
13358 echo "configure: failed program was:" >&5
13359 cat conftest.$ac_ext >&5
13363 if test -z "$db_h_file"
13364 then echo "$ac_t""no" 1>&6; with_database_berkdb=no
13365 else echo "$ac_t""$db_h_file" 1>&6
13368 if test "$with_database_berkdb" != "no"; then
13369 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6
13370 echo "configure:13371: checking for Berkeley DB version" >&5
13371 cat > conftest.$ac_ext <<EOF
13372 #line 13373 "configure"
13373 #include "confdefs.h"
13374 #include <$db_h_file>
13375 #if DB_VERSION_MAJOR > 1
13380 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13381 egrep "yes" >/dev/null 2>&1; then
13383 cat > conftest.$ac_ext <<EOF
13384 #line 13385 "configure"
13385 #include "confdefs.h"
13386 #include <$db_h_file>
13387 #if DB_VERSION_MAJOR > 2
13392 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13393 egrep "yes" >/dev/null 2>&1; then
13395 echo "$ac_t""3" 1>&6; dbfunc=db_create
13399 echo "$ac_t""2" 1>&6; dbfunc=db_open
13406 echo "$ac_t""1" 1>&6; dbfunc=dbopen
13410 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6
13411 echo "configure:13412: checking for $dbfunc" >&5
13413 cat > conftest.$ac_ext <<EOF
13414 #line 13415 "configure"
13415 #include "confdefs.h"
13416 /* System header to define __stub macros and hopefully few prototypes,
13417 which can conflict with char $dbfunc(); below. */
13418 #include <assert.h>
13419 /* Override any gcc2 internal prototype to avoid an error. */
13420 /* We use char because int might match the return type of a gcc2
13421 builtin and then its argument prototype would still apply. */
13426 /* The GNU C library defines this for functions which it implements
13427 to always fail with ENOSYS. Some functions are actually named
13428 something starting with __ and the normal name is an alias. */
13429 #if defined (__stub_$dbfunc) || defined (__stub___$dbfunc)
13437 if { (eval echo configure:13438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13439 eval "ac_cv_func_$dbfunc=yes"
13441 echo "configure: failed program was:" >&5
13442 cat conftest.$ac_ext >&5
13444 eval "ac_cv_func_$dbfunc=no"
13448 if eval "test \"`echo '$ac_cv_func_'$dbfunc`\" = yes"; then
13449 echo "$ac_t""yes" 1>&6
13450 with_database_berkdb=yes need_libdb=no
13452 echo "$ac_t""no" 1>&6
13455 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6
13456 echo "configure:13457: checking for $dbfunc in -ldb" >&5
13457 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'`
13459 xe_check_libs=" -ldb "
13460 cat > conftest.$ac_ext <<EOF
13461 #line 13462 "configure"
13462 #include "confdefs.h"
13463 /* Override any gcc2 internal prototype to avoid an error. */
13464 /* We use char because int might match the return type of a gcc2
13465 builtin and then its argument prototype would still apply. */
13472 if { (eval echo configure:13473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13474 eval "ac_cv_lib_$ac_lib_var=yes"
13476 echo "configure: failed program was:" >&5
13477 cat conftest.$ac_ext >&5
13479 eval "ac_cv_lib_$ac_lib_var=no"
13484 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13485 echo "$ac_t""yes" 1>&6
13486 with_database_berkdb=yes need_libdb=yes
13488 echo "$ac_t""no" 1>&6
13496 if test "$with_database_berkdb" = "yes"; then
13497 { test "$extra_verbose" = "yes" && cat << EOF
13498 Defining DB_H_FILE = "$db_h_file"
13500 cat >> confdefs.h <<EOF
13501 #define DB_H_FILE "$db_h_file"
13505 { test "$extra_verbose" = "yes" && cat << \EOF
13506 Defining HAVE_BERKELEY_DB
13508 cat >> confdefs.h <<\EOF
13509 #define HAVE_BERKELEY_DB 1
13513 test "$need_libdb" = "yes" && LIBS="-ldb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldb\" to \$LIBS"; fi
13514 else with_database_berkdb=no
13518 if test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
13519 != "no no no"; then
13520 { test "$extra_verbose" = "yes" && cat << \EOF
13521 Defining HAVE_DATABASE
13523 cat >> confdefs.h <<\EOF
13524 #define HAVE_DATABASE 1
13528 extra_objs="$extra_objs database.o" && if test "$extra_verbose" = "yes"; then
13529 echo " xemacs will be linked with \"database.o\""
13531 if test "$with_utf_2000" = "yes"; then
13532 { test "$extra_verbose" = "yes" && cat << \EOF
13533 Defining HAVE_CHISE_CLIENT
13535 cat >> confdefs.h <<\EOF
13536 #define HAVE_CHISE_CLIENT 1
13543 if test "$with_socks" = "yes"; then
13545 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
13546 echo "configure:13547: checking for SOCKSinit in -lsocks" >&5
13547 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
13549 xe_check_libs=" -lsocks "
13550 cat > conftest.$ac_ext <<EOF
13551 #line 13552 "configure"
13552 #include "confdefs.h"
13553 /* Override any gcc2 internal prototype to avoid an error. */
13554 /* We use char because int might match the return type of a gcc2
13555 builtin and then its argument prototype would still apply. */
13562 if { (eval echo configure:13563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13564 eval "ac_cv_lib_$ac_lib_var=yes"
13566 echo "configure: failed program was:" >&5
13567 cat conftest.$ac_ext >&5
13569 eval "ac_cv_lib_$ac_lib_var=no"
13574 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13575 echo "$ac_t""yes" 1>&6
13576 ac_tr_lib=HAVE_LIB`echo socks | sed -e 's/[^a-zA-Z0-9_]/_/g' \
13577 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
13578 { test "$extra_verbose" = "yes" && cat << EOF
13579 Defining $ac_tr_lib
13581 cat >> confdefs.h <<EOF
13582 #define $ac_tr_lib 1
13586 LIBS="-lsocks $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lsocks\" to \$LIBS"; fi
13589 echo "$ac_t""no" 1>&6
13593 test -n "$ac_cv_lib_socks_SOCKSinit" && { test "$extra_verbose" = "yes" && cat << \EOF
13594 Defining HAVE_SOCKS
13596 cat >> confdefs.h <<\EOF
13597 #define HAVE_SOCKS 1
13603 if test "$usage_tracking" = "yes"; then
13604 { test "$extra_verbose" = "yes" && cat << \EOF
13605 Defining USAGE_TRACKING
13607 cat >> confdefs.h <<\EOF
13608 #define USAGE_TRACKING 1
13612 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi
13615 if test "$with_modules" != "no"; then
13616 echo "checking for module support" 1>&6
13617 echo "configure:13618: checking for module support" >&5
13619 if test "$with_msw" = "yes"; then
13622 ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'`
13623 echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6
13624 echo "configure:13625: checking for dlfcn.h" >&5
13626 cat > conftest.$ac_ext <<EOF
13627 #line 13628 "configure"
13628 #include "confdefs.h"
13631 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13632 { (eval echo configure:13633: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13633 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13634 if test -z "$ac_err"; then
13636 eval "ac_cv_header_$ac_safe=yes"
13639 echo "configure: failed program was:" >&5
13640 cat conftest.$ac_ext >&5
13642 eval "ac_cv_header_$ac_safe=no"
13645 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13646 echo "$ac_t""yes" 1>&6
13648 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6
13649 echo "configure:13650: checking for dlopen in -lc" >&5
13650 cat > conftest.$ac_ext <<EOF
13651 #line 13652 "configure"
13652 #include "confdefs.h"
13658 if { (eval echo configure:13659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13662 echo "configure: failed program was:" >&5
13663 cat conftest.$ac_ext >&5
13666 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
13667 echo "configure:13668: checking for dlopen in -ldl" >&5
13668 ac_save_LIBS="$LIBS"
13670 cat > conftest.$ac_ext <<EOF
13671 #line 13672 "configure"
13672 #include "confdefs.h"
13678 if { (eval echo configure:13679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13682 echo "configure: failed program was:" >&5
13683 cat conftest.$ac_ext >&5
13685 LIBS="$ac_save_LIBS"
13692 echo "$ac_t""no" 1>&6
13695 if test -n "$have_dl"; then
13696 { test "$extra_verbose" = "yes" && cat << \EOF
13697 Defining HAVE_DLOPEN
13699 cat >> confdefs.h <<\EOF
13700 #define HAVE_DLOPEN 1
13706 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
13707 echo "configure:13708: checking for shl_load in -ldld" >&5
13708 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
13710 xe_check_libs=" -ldld "
13711 cat > conftest.$ac_ext <<EOF
13712 #line 13713 "configure"
13713 #include "confdefs.h"
13714 /* Override any gcc2 internal prototype to avoid an error. */
13715 /* We use char because int might match the return type of a gcc2
13716 builtin and then its argument prototype would still apply. */
13723 if { (eval echo configure:13724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13725 eval "ac_cv_lib_$ac_lib_var=yes"
13727 echo "configure: failed program was:" >&5
13728 cat conftest.$ac_ext >&5
13730 eval "ac_cv_lib_$ac_lib_var=no"
13735 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13736 echo "$ac_t""yes" 1>&6
13737 libdl=dld have_dl=yes;
13738 { test "$extra_verbose" = "yes" && cat << \EOF
13739 Defining HAVE_SHL_LOAD
13741 cat >> confdefs.h <<\EOF
13742 #define HAVE_SHL_LOAD 1
13747 echo "$ac_t""no" 1>&6
13749 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6
13750 echo "configure:13751: checking for dld_init in -ldld" >&5
13751 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'`
13753 xe_check_libs=" -ldld "
13754 cat > conftest.$ac_ext <<EOF
13755 #line 13756 "configure"
13756 #include "confdefs.h"
13757 /* Override any gcc2 internal prototype to avoid an error. */
13758 /* We use char because int might match the return type of a gcc2
13759 builtin and then its argument prototype would still apply. */
13766 if { (eval echo configure:13767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13768 eval "ac_cv_lib_$ac_lib_var=yes"
13770 echo "configure: failed program was:" >&5
13771 cat conftest.$ac_ext >&5
13773 eval "ac_cv_lib_$ac_lib_var=no"
13778 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13779 echo "$ac_t""yes" 1>&6
13780 libdl=dld have_dl=yes;
13781 { test "$extra_verbose" = "yes" && cat << \EOF
13782 Defining HAVE_DLD_INIT
13784 cat >> confdefs.h <<\EOF
13785 #define HAVE_DLD_INIT 1
13790 echo "$ac_t""no" 1>&6
13799 if test -n "$have_dl"; then
13806 ld_dynamic_link_flags=
13808 xealias=$internal_configuration
13810 echo "checking how to build dynamic libraries for ${xehost}" 1>&6
13811 echo "configure:13812: checking how to build dynamic libraries for ${xehost}" >&5
13812 # Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts.
13815 *-*-linux*) xehost=`echo $xehost | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
13818 xehost_cpu=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
13819 xehost_vendor=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
13820 xehost_os=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
13822 case "$xehost_os" in
13824 # AIX sometimes has problems with the GCC collect2 program. For some
13825 # reason, if we set the COLLECT_NAMES environment variable, the problems
13826 # vanish in a puff of smoke.
13827 if test "${COLLECT_NAMES+set}" != set; then
13829 export COLLECT_NAMES
13834 # Now see if the compiler is really GCC.
13835 if test "$GCC" = "yes"; then
13838 echo $ac_n "checking checking whether we are using GNU C""... $ac_c" 1>&6
13839 echo "configure:13840: checking checking whether we are using GNU C" >&5
13840 cat > conftest.$ac_ext <<EOF
13841 #line 13842 "configure"
13842 #include "confdefs.h"
13849 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13850 egrep "yes" >/dev/null 2>&1; then
13859 echo "$ac_t""${XEGCC}" 1>&6
13862 echo $ac_n "checking how to produce PIC code""... $ac_c" 1>&6
13863 echo "configure:13864: checking how to produce PIC code" >&5
13866 can_build_shared=yes
13867 if test "$XEGCC" = yes; then
13870 case "$xehost_os" in
13871 aix3* | aix4* | irix5* | irix6* | osf3* | osf4*)
13872 # PIC is the default for these OSes.
13875 aix3* | aix4* | os2*)
13876 # We can build DLLs from non-PIC.
13879 # FIXME: we need at least 68020 code to build shared libraries, but
13880 # adding the `-m68020' flag to GCC prevents building anything better,
13882 dll_cflags='-m68020 -resident32 -malways-restore-a4'
13884 *cygwin* | *mingw* )
13885 # PIC is the default
13892 # PORTME Check for PIC flags for the system compiler.
13893 case "$xehost_os" in
13894 hpux9* | hpux1[0-9]*)
13895 # Is there a better link_static_flag that works with the bundled CC?
13902 # PIC (with -KPIC) is the default.
13906 # We can build DLLs from non-PIC.
13910 # All OSF/1 code is PIC.
13915 dll_cflags='-belf -Kpic'
13949 can_build_shared=no
13954 if test -n "$dll_cflags"; then
13955 echo "$ac_t""${dll_cflags}" 1>&6
13957 # Check to make sure the dll_cflags actually works.
13958 echo $ac_n "checking if PIC flag ${dll_cflags} really works""... $ac_c" 1>&6
13959 echo "configure:13960: checking if PIC flag ${dll_cflags} really works" >&5
13960 save_CFLAGS="$CFLAGS"
13961 CFLAGS="$CFLAGS $dll_cflags -DPIC"
13962 cat > conftest.$ac_ext <<EOF
13963 #line 13964 "configure"
13964 #include "confdefs.h"
13970 if { (eval echo configure:13971: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13973 # On HP-UX, the stripped-down bundled CC doesn't accept +Z, but also
13974 # reports no error. So, we need to grep stderr for (Bundled).
13975 if grep '(Bundled)' config.log >/dev/null; then
13976 echo "$ac_t""no" 1>&6
13977 can_build_shared=no
13980 echo "$ac_t""yes" 1>&6
13983 echo "configure: failed program was:" >&5
13984 cat conftest.$ac_ext >&5
13986 echo "$ac_t""no" 1>&6
13987 can_build_shared=no
13991 CFLAGS="$save_CFLAGS"
13993 echo "$ac_t""none" 1>&6
13996 if test "$can_build_shared" = "yes"; then
14000 echo $ac_n "checking if C compiler can produce shared libraries""... $ac_c" 1>&6
14001 echo "configure:14002: checking if C compiler can produce shared libraries" >&5
14002 if test "$XEGCC" = yes; then
14005 else # Not using GCC
14006 case "$xehost_os" in
14008 xldf="-bE:ELLSONAME.exp -H512 -T512 -bhalt:4 -bM:SRE -bnoentry -lc"
14009 xcldf="${wl}-bE:ELLSONAME.exp ${wl}-H512 ${wl}-T512 ${wl}-bhalt:4 ${wl}-bM:SRE ${wl}-bnoentry ${wl}-lc"
14012 freebsd2* | netbsd* | openbsd*)
14014 xcldf="${wl}-Bshareable"
14023 xcldf="${wl}-b ${wl}+s"
14026 irix5* | irix6* | osf3* | osf4*)
14027 xcldf="${wl}-shared"
14031 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7* | uts4*)
14037 xcldf="${wl}-assert ${wl}pure-text ${wl}-Bstatic"
14038 xldf="-assert pure-text -Bstatic"
14041 fi # End if if we are using gcc
14043 if test -n "$xcldf"; then
14044 save_LDFLAGS=$LDFLAGS
14046 save_xe_libs=$xe_libs
14047 LDFLAGS="$xcldf $LDFLAGS"
14050 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
14051 cat > conftest.$ac_ext <<EOF
14052 #line 14053 "configure"
14053 #include "confdefs.h"
14059 if { (eval echo configure:14060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14063 echo "configure: failed program was:" >&5
14064 cat conftest.$ac_ext >&5
14069 LDFLAGS=$save_LDFLAGS
14071 xe_libs=$save_xe_libs
14072 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
14076 echo "$ac_t""${cc_produces_so}" 1>&6
14079 if test -z "$LTLD"; then
14081 if test "$XEGCC" = yes; then
14082 # Check if gcc -print-prog-name=ld gives a path.
14083 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
14084 echo "configure:14085: checking for ld used by GCC" >&5
14085 ac_prog=`($CC -print-prog-name=ld) 2>&5`
14087 # Accept absolute paths.
14089 if test -z "$LTLD"; then
14091 *gcc-lib*) LTLD="$CC"
14099 # If it fails, then pretend we aren't using GCC.
14103 # If it is relative, then search for the first ld in PATH.
14104 with_gnu_ld=unknown
14108 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
14109 echo "configure:14110: checking for GNU ld" >&5
14112 if test -z "$LTLD"; then
14113 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
14114 for ac_dir in $PATH; do
14115 test -z "$ac_dir" && ac_dir=.
14116 if test -f "$ac_dir/$ac_prog"; then
14117 LTLD="$ac_dir/$ac_prog"
14118 # Check to see if the program is GNU ld. I'd rather use --version,
14119 # but apparently some GNU ld's only accept -v.
14120 # Break only if it was the GNU/non-GNU ld that we prefer.
14121 if "$LTLD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
14131 if test -n "$LTLD"; then
14132 echo "$ac_t""${LTLD}" 1>&6
14134 echo "$ac_t""no" 1>&6
14137 if test -z "$LTLD" -a "$cc_produces_so" = no; then
14138 { echo "configure: error: no acceptable linker found in \$PATH" 1>&2; exit 1; }
14143 ld_dynamic_link_flags=
14145 # Check to see if it really is or isn't GNU ld.
14146 echo $ac_n "checking if the linker is GNU ld""... $ac_c" 1>&6
14147 echo "configure:14148: checking if the linker is GNU ld" >&5
14148 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
14149 if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
14154 echo "$ac_t""${xe_gnu_ld}" 1>&6
14156 case "$xehost_os" in
14157 amigaos* | sunos4*)
14158 # On these operating systems, we should treat GNU ld like the system ld.
14159 gnu_ld_acts_native=yes
14162 gnu_ld_acts_native=no
14166 if test "$cc_produces_so" = "yes"; then
14169 can_build_shared=yes
14172 # OK - only NOW do we futz about with ld.
14173 # See if the linker supports building shared libraries.
14174 echo $ac_n "checking whether the linker supports shared libraries""... $ac_c" 1>&6
14175 echo "configure:14176: checking whether the linker supports shared libraries" >&5
14177 dll_ldflags=$LDFLAGS
14179 can_build_shared=yes
14180 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then
14181 # See if GNU ld supports shared libraries.
14182 if $LTLD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
14184 dll_ldflags="-shared"
14190 # PORTME fill in a description of your system's linker (not GNU ld)
14191 case "$xehost_os" in
14201 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14202 # support. Future versions do this automatically, but an explicit c++rt0.o
14203 # doesn't break anything, and helps significantly (at the cost of a little
14208 dll_post="/usr/lib/c++rt0.o"
14211 # Unfortunately, older versions of FreeBSD 2 don't have this feature.
14214 dll_ldflags="-Bshareable"
14217 # FreeBSD 3, at last, uses gcc -shared to do shared libraries.
14219 dll_ldflags="-shared"
14233 # Tested with NetBSD 1.2 ld
14248 # For both SCO and Solaris we MAY want to have LDFLAGS include -z text
14249 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7*)
14252 *gcc*) dll_ldflags="-shared"
14255 *) dll_ldflags="-G"
14261 if test "$XEGCC" = yes; then
14281 can_build_shared=no
14285 echo "$ac_t""${ld_shlibs}" 1>&6
14286 if test "$ld_shlibs" = "no"; then
14287 can_build_shared=no
14289 fi # End of if cc_produces_so = no
14292 if test "$xe_gnu_ld" = yes; then
14293 if test "$ld_shlibs" = yes; then
14294 ld_dynamic_link_flags="${wl}-export-dynamic"
14298 if test -z "$ld_dynamic_link_flags"; then
14299 case "$xehost_os" in
14301 ld_dynamic_link_flags=
14305 ld_dynamic_link_flags=
14309 ld_dynamic_link_flags=
14313 ld_dynamic_link_flags=
14317 ld_dynamic_link_flags=
14321 ld_dynamic_link_flags="${wl}-E"
14325 ld_dynamic_link_flags=
14329 ld_dynamic_link_flags=
14333 ld_dynamic_link_flags=
14337 ld_dynamic_link_flags=
14340 solaris2* | solaris7*)
14341 ld_dynamic_link_flags=
14344 sco3.2v5* | unixware* | sysv5* | sysv4*)
14345 ld_dynamic_link_flags="${wl}-Bexport"
14349 ld_dynamic_link_flags=
14353 ld_dynamic_link_flags=
14357 ld_dynamic_link_flags=
14361 fi # End of if -z ld_dynamic_link_flags
14362 fi # End of if test "$can_build_shared" = "yes"
14373 if test "$can_build_shared" = "yes"; then
14374 { test "$extra_verbose" = "yes" && cat << \EOF
14375 Defining HAVE_SHLIB
14377 cat >> confdefs.h <<\EOF
14378 #define HAVE_SHLIB 1
14382 extra_objs="$extra_objs sysdll.o emodules.o" && if test "$extra_verbose" = "yes"; then
14383 echo " xemacs will be linked with \"sysdll.o emodules.o\""
14385 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
14386 test -n "$libdl" && LIBS="-l${libdl} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${libdl}\" to \$LIBS"; fi
14387 for ac_func in dlerror _dlerror
14389 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14390 echo "configure:14391: checking for $ac_func" >&5
14392 cat > conftest.$ac_ext <<EOF
14393 #line 14394 "configure"
14394 #include "confdefs.h"
14395 /* System header to define __stub macros and hopefully few prototypes,
14396 which can conflict with char $ac_func(); below. */
14397 #include <assert.h>
14398 /* Override any gcc2 internal prototype to avoid an error. */
14399 /* We use char because int might match the return type of a gcc2
14400 builtin and then its argument prototype would still apply. */
14405 /* The GNU C library defines this for functions which it implements
14406 to always fail with ENOSYS. Some functions are actually named
14407 something starting with __ and the normal name is an alias. */
14408 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14416 if { (eval echo configure:14417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14418 eval "ac_cv_func_$ac_func=yes"
14420 echo "configure: failed program was:" >&5
14421 cat conftest.$ac_ext >&5
14423 eval "ac_cv_func_$ac_func=no"
14427 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14428 echo "$ac_t""yes" 1>&6
14429 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14430 { test "$extra_verbose" = "yes" && cat << EOF
14431 Defining $ac_tr_func
14433 cat >> confdefs.h <<EOF
14434 #define $ac_tr_func 1
14439 echo "$ac_t""no" 1>&6
14445 if test "$with_modules" = "yes"; then
14446 { echo "Error:" "Required module support cannot be provided." >&2; exit 1; }
14448 echo "configure: warning: "Module support cannot be provided."" 1>&2
14454 cat > conftest.$ac_ext <<EOF
14455 #line 14456 "configure"
14456 #include "confdefs.h"
14457 int main(int c,char *v[]){return 0;}
14459 if { (eval echo configure:14460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
14464 echo "configure: failed program was:" >&5
14465 cat conftest.$ac_ext >&5
14469 echo "*** PANIC *** The C compiler can no longer build working executables."
14470 echo "*** PANIC *** Please examine the tail of config.log for runtime errors."
14471 echo "*** PANIC *** The most likely reason for this problem is that configure"
14472 echo "*** PANIC *** links with shared libraries, but those libraries cannot be"
14473 echo "*** PANIC *** found at run time."
14474 echo "*** PANIC ***"
14475 echo "*** PANIC *** On a Linux system, edit /etc/ld.so.conf and re-run ldconfig."
14476 echo "*** PANIC *** On other systems, try telling configure where to find the"
14477 echo "*** PANIC *** shared libraries using the --site-runtime-libraries option"
14478 echo "*** PANIC ***"
14479 echo "*** PANIC *** Another way to shoot yourself in the foot is to specify"
14480 echo "*** PANIC *** --with-FEATURE when FEATURE is not actually installed"
14481 echo "*** PANIC *** on your system. Don't do that."
14486 if test "$win32_processes" = "yes"; then
14487 extra_objs="$extra_objs process-nt.o" && if test "$extra_verbose" = "yes"; then
14488 echo " xemacs will be linked with \"process-nt.o\""
14491 { test "$extra_verbose" = "yes" && cat << \EOF
14492 Defining HAVE_UNIX_PROCESSES
14494 cat >> confdefs.h <<\EOF
14495 #define HAVE_UNIX_PROCESSES 1
14499 extra_objs="$extra_objs process-unix.o" && if test "$extra_verbose" = "yes"; then
14500 echo " xemacs will be linked with \"process-unix.o\""
14507 for W in $CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
14512 for W in $extra_objs; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
14517 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
14518 c_switch_general="$T"
14522 for W in $c_switch_x_site $X_CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
14523 c_switch_window_system="$T"
14527 for W in $c_switch_general $c_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
14532 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
14533 ld_switch_general="$T"
14537 for W in $ld_switch_x_site; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
14538 ld_switch_window_system="$T"
14542 for W in $ld_switch_general $ld_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
14547 for W in $LIBS $libs_machine $libs_system $libs_standard; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
14548 ld_libs_general="$T"
14552 for W in $X_EXTRA_LIBS $libs_x $X_PRE_LIBS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
14553 ld_libs_window_system="$T"
14557 for W in $ld_libs_window_system $ld_libs_general; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
14562 MAKE_SUBDIR="$MAKE_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$MAKE_SUBDIR"; fi
14563 internal_makefile_list="Makefile.in"
14564 SUBDIR_MAKEFILES=''
14565 test -d lock || mkdir lock
14566 for dir in $MAKE_SUBDIR; do
14567 case "$dir" in */* ) ( for d in `echo $dir | sed 's:/: :g'` ; do
14568 test -d "$d" || mkdir "$d"; cd "$d"
14570 * ) test -d "$dir" || mkdir "$dir" ;;
14574 for W in $SUBDIR_MAKEFILES $dir/Makefile $dir/GNUmakefile; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
14575 SUBDIR_MAKEFILES="$T"
14579 for W in $internal_makefile_list $dir/Makefile.in; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
14580 internal_makefile_list="$T"
14587 for dir in src/s src/m; do
14588 if test ! -d "$dir" ; then
14589 echo Making symbolic link to "$srcdir/$dir"
14590 ${LN_S} "$srcdir/$dir" "$dir"
14594 if test "$extra_verbose" = "yes"; then
14596 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
14601 if test -f "$srcdir/src/.gdbinit" -a ! -f "src/.gdbinit"; then
14602 test "$extra_verbose" = "yes" && echo "creating src/.gdbinit"
14603 echo "source $srcdir/src/.gdbinit" > "src/.gdbinit"
14606 if test -f "$srcdir/src/.dbxrc" -a ! -f "src/.dbxrc"; then
14607 test "$extra_verbose" = "yes" && echo "creating src/.dbxrc"
14608 echo ". $srcdir/src/.dbxrc" > "src/.dbxrc"
14611 if test -f "$srcdir/TAGS" -a ! -f "TAGS"; then
14612 test "$extra_verbose" = "yes" && echo "creating TAGS"
14614 $srcdir/TAGS,include" > "TAGS"
14617 if test "$__SUNPRO_C" = "yes"; then
14618 test "$extra_verbose" = "yes" && echo "creating .sbinit"
14619 ( echo "# For use with Sun WorkShop's Source browser."
14620 echo "# See sbquery(1) and sbinit(4) for more information"
14621 for dir in $MAKE_SUBDIR; do echo "import $dir"; done
14649 *\$* ) eval "PREFIX=$PREFIX" ;;
14657 EXEC_PREFIX=$exec_prefix
14659 case "$EXEC_PREFIX" in
14660 *\$* ) eval "EXEC_PREFIX=$EXEC_PREFIX" ;;
14671 *\$* ) eval "INFODIR=$INFODIR" ;;
14681 case "$INFOPATH" in
14682 *\$* ) eval "INFOPATH=$INFOPATH" ;;
14690 PACKAGE_PATH=$package_path
14692 case "$PACKAGE_PATH" in
14693 *\$* ) eval "PACKAGE_PATH=$PACKAGE_PATH" ;;
14704 *\$* ) eval "LISPDIR=$LISPDIR" ;;
14712 MODULEDIR=$moduledir
14714 case "$MODULEDIR" in
14715 *\$* ) eval "MODULEDIR=$MODULEDIR" ;;
14723 SITELISPDIR=$sitelispdir
14725 case "$SITELISPDIR" in
14726 *\$* ) eval "SITELISPDIR=$SITELISPDIR" ;;
14734 SITEMODULEDIR=$sitemoduledir
14736 case "$SITEMODULEDIR" in
14737 *\$* ) eval "SITEMODULEDIR=$SITEMODULEDIR" ;;
14748 *\$* ) eval "ETCDIR=$ETCDIR" ;;
14759 *\$* ) eval "DOCDIR=$DOCDIR" ;;
14767 ARCHLIBDIR=$archlibdir
14769 case "$ARCHLIBDIR" in
14770 *\$* ) eval "ARCHLIBDIR=$ARCHLIBDIR" ;;
14794 RECURSIVE_MAKE="\$(MAKE) \$(MFLAGS) CC='\$(CC)' CFLAGS='\$(CFLAGS)' LDFLAGS='\$(LDFLAGS)' CPPFLAGS='\$(CPPFLAGS)'"
14802 : ${XEMACS_CC:=$CC}
14805 if test "$with_prefix" = "yes"; then
14806 { test "$extra_verbose" = "yes" && cat << \EOF
14807 Defining PREFIX_USER_DEFINED
14809 cat >> confdefs.h <<\EOF
14810 #define PREFIX_USER_DEFINED 1
14816 if test "$with_site_lisp" = "no"; then
14817 { test "$extra_verbose" = "yes" && cat << \EOF
14818 Defining INHIBIT_SITE_LISP
14820 cat >> confdefs.h <<\EOF
14821 #define INHIBIT_SITE_LISP 1
14826 if test "$with_site_modules" = "no"; then
14827 { test "$extra_verbose" = "yes" && cat << \EOF
14828 Defining INHIBIT_SITE_MODULES
14830 cat >> confdefs.h <<\EOF
14831 #define INHIBIT_SITE_MODULES 1
14839 for W in $ac_configure_args; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
14840 ac_configure_args="$T"
14842 { test "$extra_verbose" = "yes" && cat << EOF
14843 Defining EMACS_CONFIGURATION = "$configuration"
14845 cat >> confdefs.h <<EOF
14846 #define EMACS_CONFIGURATION "$configuration"
14850 { test "$extra_verbose" = "yes" && cat << EOF
14851 Defining EMACS_CONFIG_OPTIONS = "$ac_configure_args"
14853 cat >> confdefs.h <<EOF
14854 #define EMACS_CONFIG_OPTIONS "$ac_configure_args"
14861 { test "$extra_verbose" = "yes" && cat << EOF
14862 Defining LD_SWITCH_X_SITE = $null_string
14864 cat >> confdefs.h <<EOF
14865 #define LD_SWITCH_X_SITE $null_string
14869 { test "$extra_verbose" = "yes" && cat << EOF
14870 Defining LD_SWITCH_X_SITE_AUX = $null_string
14872 cat >> confdefs.h <<EOF
14873 #define LD_SWITCH_X_SITE_AUX $null_string
14877 { test "$extra_verbose" = "yes" && cat << EOF
14878 Defining C_SWITCH_X_SITE = $null_string
14880 cat >> confdefs.h <<EOF
14881 #define C_SWITCH_X_SITE $null_string
14885 { test "$extra_verbose" = "yes" && cat << EOF
14886 Defining LD_SWITCH_SITE = $null_string
14888 cat >> confdefs.h <<EOF
14889 #define LD_SWITCH_SITE $null_string
14893 { test "$extra_verbose" = "yes" && cat << EOF
14894 Defining C_SWITCH_SITE = $null_string
14896 cat >> confdefs.h <<EOF
14897 #define C_SWITCH_SITE $null_string
14903 if test "$GNU_MALLOC" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
14904 Defining GNU_MALLOC
14906 cat >> confdefs.h <<\EOF
14907 #define GNU_MALLOC 1
14911 elif test "$with_system_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
14912 Defining USE_SYSTEM_MALLOC
14914 cat >> confdefs.h <<\EOF
14915 #define USE_SYSTEM_MALLOC 1
14919 elif test "$with_debug_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
14920 Defining USE_DEBUG_MALLOC
14922 cat >> confdefs.h <<\EOF
14923 #define USE_DEBUG_MALLOC 1
14927 { test "$extra_verbose" = "yes" && cat << \EOF
14928 Defining USE_SYSTEM_MALLOC
14930 cat >> confdefs.h <<\EOF
14931 #define USE_SYSTEM_MALLOC 1
14936 test "$with_i18n3" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14939 cat >> confdefs.h <<\EOF
14944 test "$GCC" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14947 cat >> confdefs.h <<\EOF
14952 test "$external_widget" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14953 Defining EXTERNAL_WIDGET
14955 cat >> confdefs.h <<\EOF
14956 #define EXTERNAL_WIDGET 1
14960 test "$quick_build" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14961 Defining QUICK_BUILD
14963 cat >> confdefs.h <<\EOF
14964 #define QUICK_BUILD 1
14968 test "$with_purify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14971 cat >> confdefs.h <<\EOF
14976 test "$with_quantify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14979 cat >> confdefs.h <<\EOF
14984 test "$with_pop" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14985 Defining MAIL_USE_POP
14987 cat >> confdefs.h <<\EOF
14988 #define MAIL_USE_POP 1
14992 test "$with_kerberos" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14995 cat >> confdefs.h <<\EOF
15000 test "$with_hesiod" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15003 cat >> confdefs.h <<\EOF
15008 test "$use_union_type" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15009 Defining USE_UNION_TYPE
15011 cat >> confdefs.h <<\EOF
15012 #define USE_UNION_TYPE 1
15016 test "$pdump" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15019 cat >> confdefs.h <<\EOF
15027 if test -f /etc/osversion; then echo "osversion: `cat /etc/osversion`"
15029 echo "uname -a: `uname -a`"
15032 echo "$0 $quoted_arguments"
15035 if test ! -z ${emacs_beta_version} ; then
15036 if test -z "${emacs_is_beta}" ; then
15037 xemacs_betaname=".${emacs_beta_version}"
15039 xemacs_betaname="-b${emacs_beta_version}"
15048 XEmacs ${emacs_major_version}.${emacs_minor_version}${xemacs_betaname} \"$xemacs_codename\" configured for \`$canonical'.
15051 Compilation / Installation:"
15052 echo " Source code location: $srcdir"
15053 echo " Installation prefix: $prefix"
15054 if test -n "$site_includes"; then
15055 echo " Additional header files: $site_includes"
15057 if test -n "$site_libraries"; then
15058 echo " Additional libraries: $site_libraries"
15060 if test -n "$site_prefixes"; then
15061 echo " Additional prefixes: $site_prefixes"
15063 if test -n "$runpath"; then
15064 echo " Runtime library search path: $runpath"
15067 if test -n "$opsysfile"
15068 then echo " Operating system description file: \`$opsysfile'"
15069 else echo " Not using any operating system description file"
15071 if test -n "$machfile"
15072 then echo " Machine description file: \`$machfile'"
15073 else echo " Not using any machine description file"
15076 echo " Compiler: $CC $CFLAGS"
15077 echo " Relocating allocator for buffers: $rel_alloc"
15078 echo " GNU version of malloc: ${GNU_MALLOC}${GNU_MALLOC_reason}"
15082 if test "$with_msw" = "yes"; then
15083 echo " Compiling in support for the Microsoft window system."
15085 if test "$with_x11" = "yes"; then
15086 echo " Compiling in support for the X window system:"
15087 echo " - X Windows headers location: $x_includes"
15088 echo " - X Windows libraries location: $x_libraries"
15089 if test "$with_xauth" != yes; then
15090 echo " - Xau (X authority) not available."
15092 if test "$with_xmu" != yes; then
15093 echo " - Xmu library not available; substituting equivalent routines."
15095 if test "$with_wmcommand" != no; then
15096 echo " - Handling WM_COMMAND properly."
15099 if test "$need_athena" = "yes"; then
15100 echo " Compiling in support for the Athena widget set:"
15101 echo " - Athena headers location: $athena_h_path"
15102 echo " - Athena library to link: $athena_lib"
15104 case "$with_menubars" in
15105 lucid ) echo " Using Lucid menubars." ;;
15106 motif ) echo " Using Motif menubars."
15107 echo " *WARNING* The Motif menubar implementation is currently buggy."
15108 echo " We recommend using the Lucid menubar instead."
15109 echo " Re-run configure with --with-menubars='lucid'." ;;
15110 msw ) echo " Using MS-Windows menubars." ;;
15112 case "$with_scrollbars" in
15113 lucid ) echo " Using Lucid scrollbars." ;;
15114 motif ) echo " Using Motif scrollbars." ;;
15115 athena ) echo " Using Athena scrollbars." ;;
15116 msw ) echo " Using MS-Windows scrollbars." ;;
15118 case "$with_dialogs" in
15119 motif ) echo " Using Motif dialog boxes."
15120 if test "$unexec" = "unexaix.o"; then if test "`uname -v`" = 4 -a "`uname -r`" -ge 3; then
15121 echo " *WARNING* The Motif dialog boxes cause problems on AIX 4.3 and higher."
15122 echo " We recommend using the Athena dialog boxes instead."
15123 echo " Install libXaw and re-run configure with --with-dialogs='athena'."
15124 echo " Read the PROBLEMS file for more information."
15126 athena ) echo " Using Athena dialog boxes." ;;
15127 msw ) echo " Using MS-Windows dialog boxes." ;;
15129 case "$with_widgets" in
15130 motif ) echo " Using Motif native widgets." ;;
15131 athena ) echo " Using Athena native widgets." ;;
15132 msw ) echo " Using MS-Windows native widgets." ;;
15134 if test "$with_dragndrop" = yes; then
15135 echo " Compiling in support for Drag'n'Drop (EXPERIMENTAL)."
15136 echo " - Drag'n'Drop prototype: $dragndrop_proto."
15141 test "$with_ncurses" = yes && echo " Compiling in support for ncurses."
15142 test "$with_gpm" = yes && echo " Compiling in support for GPM (General Purpose Mouse)."
15146 test "$with_gif" = yes && echo " Compiling in support for GIF images (builtin)."
15147 if test "$with_xpm" = yes; then
15148 echo " Compiling in support for XPM images."
15149 elif test "$with_x11" = yes; then
15150 echo " WARNING: -----------------------------------------------------------"
15151 echo " WARNING: Compiling without XPM image support."
15152 if test "$xpm_problem" != ""; then
15153 echo " Reason: $xpm_problem"
15155 echo " WARNING: You should strongly consider installing XPM."
15156 echo " WARNING: Otherwise toolbars and other graphics will look suboptimal."
15157 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
15158 echo " WARNING: -----------------------------------------------------------"
15160 if test "$with_png" = yes; then
15161 echo " Compiling in support for PNG images."
15162 elif test "$window_system" != "none"; then
15163 echo " WARNING: -----------------------------------------------------------"
15164 echo " WARNING: Compiling without PNG image support."
15165 if test "$png_problem" != ""; then
15166 echo " Reason: $png_problem"
15168 echo " WARNING: You should strongly consider installing the PNG libraries."
15169 echo " WARNING: Otherwise certain images and glyphs may not display."
15170 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
15171 echo " WARNING: -----------------------------------------------------------"
15173 test "$with_jpeg" = yes && echo " Compiling in support for JPEG images."
15174 test "$with_tiff" = yes && echo " Compiling in support for TIFF images."
15175 test "$with_xface" = yes && echo " Compiling in support for X-Face message headers."
15179 test "$with_native_sound" = yes && echo " Compiling in support for sound (native)."
15180 test "$with_nas_sound" = yes && echo " Compiling in support for NAS (network audio system)."
15181 test "$old_nas" = yes && echo " - NAS library lacks error trapping; will play synchronously."
15182 test "$with_esd_sound" = yes && echo " Compiling in support for ESD (Enlightened Sound Daemon)."
15186 test "$with_database_berkdb" = yes && echo " Compiling in support for Berkeley database."
15187 test "$with_database_dbm" = yes && echo " Compiling in support for DBM."
15188 test "$with_database_gdbm" = yes && echo " Compiling in support for GNU DBM."
15189 test "$with_ldap" = yes && echo " Compiling in support for LDAP."
15190 if test "$with_postgresql" = yes; then
15191 echo " Compiling in support for PostgreSQL."
15192 echo " - Using PostgreSQL header file: $libpq_fe_h_file"
15193 test "$with_postgresqlv7" = yes && echo " - Using PostgreSQL V7 bindings."
15197 Internationalization:"
15198 test "$with_mule" = yes && echo " Compiling in support for Mule (multi-lingual Emacs)."
15199 test "$with_utf_2000" = yes && echo " Using UTF-2000 (UTF-8) buffer/string representation."
15200 test "$with_text_coding" = yes && echo " Compiling in support for text coding."
15201 test "$with_file_coding" = yes && echo " Compiling in support for file coding."
15202 test "$with_xim" != no && echo " Compiling in support for XIM (X11R5+ I18N input method)."
15203 test "$with_xim" = motif && echo " - Using Motif to provide XIM support."
15204 test "$with_xim" = xlib && echo " - Using raw Xlib to provide XIM support."
15205 test "$with_xfs" = yes && echo " - Using XFontSet to provide bilingual menubar."
15206 test "$with_canna" = yes && echo " Compiling in support for Canna on Mule."
15207 if test "$with_wnn" = yes; then
15208 echo " Compiling in support for the WNN input method on Mule."
15209 test "$with_wnn6" = yes && echo " - Using WNN version 6."
15211 test "$with_i18n3" = yes && echo " Compiling in support for I18N level 3 (doesn't currently work)."
15215 test "$with_pop" = yes && echo " Compiling in support for POP mail retrieval."
15216 test "$with_kerberos" = yes && echo " Compiling in support for Kerberos POP authentication."
15217 test "$with_hesiod" = yes && echo " Compiling in support for Hesiod POP server access."
15218 test -n "$mail_locking" && echo " Compiling in support for \"$mail_locking\" mail spool file locking method."
15222 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk."
15223 test "$with_workshop" = yes && echo " Compiling in support for Sun WorkShop."
15224 test "$with_socks" = yes && echo " Compiling in support for SOCKS."
15225 test "$with_dnet" = yes && echo " Compiling in support for DNET."
15226 test "$with_modules" = "yes" && echo " Compiling in support for dynamic shared object modules."
15227 test "$use_union_type" = yes && echo " Using the union type for Lisp_Objects."
15228 test "$pdump" = yes && echo " Using the new portable dumper."
15229 test "$debug" = yes && echo " Compiling in support for extra debugging code."
15230 test "$usage_tracking" = yes && echo " Compiling in support for active usage tracking (Sun internal)."
15231 if test "$error_check_extents $error_check_typecheck $error_check_bufpos $error_check_gc $error_check_malloc $error_check_glyphs" \
15232 != "no no no no no no"; then
15233 echo " WARNING: ---------------------------------------------------------"
15234 echo " WARNING: Compiling in support for runtime error checking."
15235 echo " WARNING: XEmacs will run noticeably more slowly as a result."
15236 echo " WARNING: Error checking is on by default for XEmacs beta releases."
15237 echo " WARNING: ---------------------------------------------------------"
15240 ) | tee -a Installation
15244 # Remove any trailing slashes in these variables.
15245 test -n "$prefix" &&
15246 prefix=`echo '' "$prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
15247 test -n "$exec_prefix" &&
15248 exec_prefix=`echo '' "$exec_prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
15251 for file in $internal_makefile_list; do
15252 test "$file" = src/Makefile.in && \
15253 file="src/Makefile.in:src/Makefile.in.in:src/depend"
15254 ac_output_files="$ac_output_files $file" && if test "$extra_verbose" = "yes"; then echo " Appending \"$file\" to \$ac_output_files"; fi
15256 ac_output_files="$ac_output_files src/paths.h lib-src/config.values"
15257 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
15261 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
15263 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15264 # Let make expand exec_prefix.
15265 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15267 # Any assignment to VPATH causes Sun make to only execute
15268 # the first set of double-colon rules, so remove it if not needed.
15269 # If there is a colon in the path, we need to keep it.
15270 if test "x$srcdir" = x.; then
15271 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
15274 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
15276 DEFS=-DHAVE_CONFIG_H
15278 # Without the "./", some shells look in PATH for config.status.
15279 : ${CONFIG_STATUS=./config.status}
15281 echo creating $CONFIG_STATUS
15282 rm -f $CONFIG_STATUS
15283 cat > $CONFIG_STATUS <<EOF
15285 # Generated automatically by configure.
15286 # Run this file to recreate the current configuration.
15287 # This directory was configured as follows,
15288 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15290 # $0 $ac_configure_args
15292 # Compiler output produced by configure, useful for debugging
15293 # configure, is in ./config.log if it exists.
15295 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
15298 case "\$ac_option" in
15299 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15300 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
15301 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
15302 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
15303 echo "$CONFIG_STATUS generated by autoconf version 2.13"
15305 -help | --help | --hel | --he | --h)
15306 echo "\$ac_cs_usage"; exit 0 ;;
15307 *) echo "\$ac_cs_usage"; exit 1 ;;
15311 ac_given_srcdir=$srcdir
15312 ac_given_INSTALL="$INSTALL"
15314 trap 'rm -fr `echo "$ac_output_files src/config.h lwlib/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
15316 cat >> $CONFIG_STATUS <<EOF
15318 # Protect against being on the right side of a sed subst in config.status.
15319 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
15320 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
15324 s%@CFLAGS@%$CFLAGS%g
15325 s%@CPPFLAGS@%$CPPFLAGS%g
15326 s%@CXXFLAGS@%$CXXFLAGS%g
15327 s%@FFLAGS@%$FFLAGS%g
15329 s%@LDFLAGS@%$LDFLAGS%g
15331 s%@exec_prefix@%$exec_prefix%g
15332 s%@prefix@%$prefix%g
15333 s%@program_transform_name@%$program_transform_name%g
15334 s%@bindir@%$bindir%g
15335 s%@sbindir@%$sbindir%g
15336 s%@libexecdir@%$libexecdir%g
15337 s%@datadir@%$datadir%g
15338 s%@sysconfdir@%$sysconfdir%g
15339 s%@sharedstatedir@%$sharedstatedir%g
15340 s%@localstatedir@%$localstatedir%g
15341 s%@libdir@%$libdir%g
15342 s%@includedir@%$includedir%g
15343 s%@oldincludedir@%$oldincludedir%g
15344 s%@infodir@%$infodir%g
15345 s%@mandir@%$mandir%g
15347 s%@blddir@%$blddir%g
15350 s%@start_flags@%$start_flags%g
15351 s%@ld_switch_shared@%$ld_switch_shared%g
15352 s%@start_files@%$start_files%g
15354 s%@lib_gcc@%$lib_gcc%g
15355 s%@RANLIB@%$RANLIB%g
15356 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
15357 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
15358 s%@INSTALL_DATA@%$INSTALL_DATA%g
15360 s%@SET_MAKE@%$SET_MAKE%g
15361 s%@X_CFLAGS@%$X_CFLAGS%g
15362 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
15363 s%@X_LIBS@%$X_LIBS%g
15364 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
15365 s%@install_pp@%$install_pp%g
15366 s%@libs_xauth@%$libs_xauth%g
15367 s%@dnd_objs@%$dnd_objs%g
15368 s%@lwlib_objs@%$lwlib_objs%g
15369 s%@ALLOCA@%$ALLOCA%g
15370 s%@have_esd_config@%$have_esd_config%g
15371 s%@dll_ld@%$dll_ld%g
15372 s%@dll_cflags@%$dll_cflags%g
15373 s%@dll_ldflags@%$dll_ldflags%g
15374 s%@dll_post@%$dll_post%g
15375 s%@dll_ldo@%$dll_ldo%g
15376 s%@ld_dynamic_link_flags@%$ld_dynamic_link_flags%g
15377 s%@SRC_SUBDIR_DEPS@%$SRC_SUBDIR_DEPS%g
15378 s%@INSTALL_ARCH_DEP_SUBDIR@%$INSTALL_ARCH_DEP_SUBDIR%g
15379 s%@MAKE_SUBDIR@%$MAKE_SUBDIR%g
15380 s%@SUBDIR_MAKEFILES@%$SUBDIR_MAKEFILES%g
15381 s%@PROGNAME@%$PROGNAME%g
15382 s%@version@%$version%g
15383 s%@configuration@%$configuration%g
15384 s%@canonical@%$canonical%g
15385 s%@inststaticdir@%$inststaticdir%g
15386 s%@instvardir@%$instvardir%g
15387 s%@srcdir@%$srcdir%g
15388 s%@pkgdir@%$pkgdir%g
15389 s%@statedir@%$statedir%g
15390 s%@extra_includes@%$extra_includes%g
15391 s%@PREFIX_USER_DEFINED@%$PREFIX_USER_DEFINED%g
15392 s%@PREFIX@%$PREFIX%g
15393 s%@EXEC_PREFIX_USER_DEFINED@%$EXEC_PREFIX_USER_DEFINED%g
15394 s%@EXEC_PREFIX@%$EXEC_PREFIX%g
15395 s%@INFODIR_USER_DEFINED@%$INFODIR_USER_DEFINED%g
15396 s%@INFODIR@%$INFODIR%g
15397 s%@infopath@%$infopath%g
15398 s%@INFOPATH_USER_DEFINED@%$INFOPATH_USER_DEFINED%g
15399 s%@INFOPATH@%$INFOPATH%g
15400 s%@package_path@%$package_path%g
15401 s%@PACKAGE_PATH_USER_DEFINED@%$PACKAGE_PATH_USER_DEFINED%g
15402 s%@PACKAGE_PATH@%$PACKAGE_PATH%g
15403 s%@lispdir@%$lispdir%g
15404 s%@LISPDIR_USER_DEFINED@%$LISPDIR_USER_DEFINED%g
15405 s%@LISPDIR@%$LISPDIR%g
15406 s%@moduledir@%$moduledir%g
15407 s%@MODULEDIR_USER_DEFINED@%$MODULEDIR_USER_DEFINED%g
15408 s%@MODULEDIR@%$MODULEDIR%g
15409 s%@sitelispdir@%$sitelispdir%g
15410 s%@SITELISPDIR_USER_DEFINED@%$SITELISPDIR_USER_DEFINED%g
15411 s%@SITELISPDIR@%$SITELISPDIR%g
15412 s%@sitemoduledir@%$sitemoduledir%g
15413 s%@SITEMODULEDIR_USER_DEFINED@%$SITEMODULEDIR_USER_DEFINED%g
15414 s%@SITEMODULEDIR@%$SITEMODULEDIR%g
15415 s%@etcdir@%$etcdir%g
15416 s%@ETCDIR_USER_DEFINED@%$ETCDIR_USER_DEFINED%g
15417 s%@ETCDIR@%$ETCDIR%g
15418 s%@docdir@%$docdir%g
15419 s%@DOCDIR_USER_DEFINED@%$DOCDIR_USER_DEFINED%g
15420 s%@DOCDIR@%$DOCDIR%g
15421 s%@archlibdir@%$archlibdir%g
15422 s%@ARCHLIBDIR_USER_DEFINED@%$ARCHLIBDIR_USER_DEFINED%g
15423 s%@ARCHLIBDIR@%$ARCHLIBDIR%g
15424 s%@bitmapdir@%$bitmapdir%g
15425 s%@extra_objs@%$extra_objs%g
15426 s%@machfile@%$machfile%g
15427 s%@opsysfile@%$opsysfile%g
15428 s%@c_switch_general@%$c_switch_general%g
15429 s%@c_switch_window_system@%$c_switch_window_system%g
15430 s%@c_switch_all@%$c_switch_all%g
15431 s%@ld_switch_general@%$ld_switch_general%g
15432 s%@ld_switch_window_system@%$ld_switch_window_system%g
15433 s%@ld_switch_all@%$ld_switch_all%g
15434 s%@ld_libs_general@%$ld_libs_general%g
15435 s%@ld_libs_window_system@%$ld_libs_window_system%g
15436 s%@ld_libs_all@%$ld_libs_all%g
15437 s%@RECURSIVE_MAKE@%$RECURSIVE_MAKE%g
15438 s%@native_sound_lib@%$native_sound_lib%g
15439 s%@sound_cflags@%$sound_cflags%g
15440 s%@dynodump_arch@%$dynodump_arch%g
15441 s%@XEMACS_CC@%$XEMACS_CC%g
15442 s%@internal_makefile_list@%$internal_makefile_list%g
15447 cat >> $CONFIG_STATUS <<\EOF
15449 # Split the substitutions into bite-sized pieces for seds with
15450 # small command number limits, like on Digital OSF/1 and HP-UX.
15451 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
15452 ac_file=1 # Number of current file.
15453 ac_beg=1 # First line for current file.
15454 ac_end=$ac_max_sed_cmds # Line after last line for current file.
15457 while $ac_more_lines; do
15458 if test $ac_beg -gt 1; then
15459 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
15461 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
15463 if test ! -s conftest.s$ac_file; then
15464 ac_more_lines=false
15465 rm -f conftest.s$ac_file
15467 if test -z "$ac_sed_cmds"; then
15468 ac_sed_cmds="sed -f conftest.s$ac_file"
15470 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
15472 ac_file=`expr $ac_file + 1`
15474 ac_end=`expr $ac_end + $ac_max_sed_cmds`
15477 if test -z "$ac_sed_cmds"; then
15482 cat >> $CONFIG_STATUS <<EOF
15484 CONFIG_FILES=\${CONFIG_FILES-"$ac_output_files"}
15486 cat >> $CONFIG_STATUS <<\EOF
15487 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
15488 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15490 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
15491 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15492 *) ac_file_in="${ac_file}.in" ;;
15495 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
15497 # Remove last slash and all that follows it. Not all systems have dirname.
15498 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
15499 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
15500 # The file is in a subdirectory.
15501 test ! -d "$ac_dir" && mkdir "$ac_dir"
15502 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
15503 # A "../" for each directory in $ac_dir_suffix.
15504 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
15506 ac_dir_suffix= ac_dots=
15509 case "$ac_given_srcdir" in
15511 if test -z "$ac_dots"; then top_srcdir=.
15512 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
15513 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
15514 *) # Relative path.
15515 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
15516 top_srcdir="$ac_dots$ac_given_srcdir" ;;
15519 case "$ac_given_INSTALL" in
15520 [/$]*) INSTALL="$ac_given_INSTALL" ;;
15521 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
15524 echo creating "$ac_file"
15526 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
15528 *Makefile*) ac_comsub="1i\\
15529 # $configure_input" ;;
15533 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
15535 s%@configure_input@%$configure_input%g
15536 s%@srcdir@%$srcdir%g
15537 s%@top_srcdir@%$top_srcdir%g
15538 s%@INSTALL@%$INSTALL%g
15539 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
15543 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
15544 # NAME is the cpp macro being defined and VALUE is the value it is being given.
15546 # ac_d sets the value in "#define NAME VALUE" lines.
15547 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
15548 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
15551 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
15552 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15553 ac_uB='\([ ]\)%\1#\2define\3'
15556 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
15557 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15558 ac_eB='$%\1#\2define\3'
15562 if test "${CONFIG_HEADERS+set}" != set; then
15564 cat >> $CONFIG_STATUS <<EOF
15565 CONFIG_HEADERS="src/config.h lwlib/config.h"
15567 cat >> $CONFIG_STATUS <<\EOF
15569 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
15570 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15572 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
15573 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15574 *) ac_file_in="${ac_file}.in" ;;
15577 echo creating $ac_file
15579 rm -f conftest.frag conftest.in conftest.out
15580 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
15581 cat $ac_file_inputs > conftest.in
15585 # Transform confdefs.h into a sed script conftest.vals that substitutes
15586 # the proper values into config.h.in to produce config.h. And first:
15587 # Protect against being on the right side of a sed subst in config.status.
15588 # Protect against being in an unquoted here document in config.status.
15589 rm -f conftest.vals
15590 cat > conftest.hdr <<\EOF
15593 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
15597 sed -n -f conftest.hdr confdefs.h > conftest.vals
15600 # This sed command replaces #undef with comments. This is necessary, for
15601 # example, in the case of _POSIX_SOURCE, which is predefined and required
15602 # on some systems where configure will not decide to define it.
15603 cat >> conftest.vals <<\EOF
15604 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
15607 # Break up conftest.vals because some shells have a limit on
15608 # the size of here documents, and old seds have small limits too.
15610 rm -f conftest.tail
15613 ac_lines=`grep -c . conftest.vals`
15614 # grep -c gives empty output for an empty file on some AIX systems.
15615 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
15616 # Write a limited-size here document to conftest.frag.
15617 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
15618 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
15620 sed -f conftest.frag conftest.in > conftest.out
15622 mv conftest.out conftest.in
15623 ' >> $CONFIG_STATUS
15624 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
15625 rm -f conftest.vals
15626 mv conftest.tail conftest.vals
15628 rm -f conftest.vals
15630 cat >> $CONFIG_STATUS <<\EOF
15631 rm -f conftest.frag conftest.h
15632 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
15633 cat conftest.in >> conftest.h
15635 if cmp -s $ac_file conftest.h 2>/dev/null; then
15636 echo "$ac_file is unchanged"
15639 # Remove last slash and all that follows it. Not all systems have dirname.
15640 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
15641 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
15642 # The file is in a subdirectory.
15643 test ! -d "$ac_dir" && mkdir "$ac_dir"
15646 mv conftest.h $ac_file
15651 cat >> $CONFIG_STATUS <<EOF
15653 top_srcdir="$srcdir"
15654 MAKE_SUBDIR="$MAKE_SUBDIR"
15657 cat >> $CONFIG_STATUS <<\EOF
15658 for dir in . $MAKE_SUBDIR; do
15663 sed -e '/^# Generated/d' \
15664 -e 's%/\*\*/#.*%%' \
15679 echo creating $dir/Makefile
15680 $CPP -I. -I${top_srcdir}/src junk.c \
15681 | sed -e 's/^\#.*//' \
15682 -e 's/^[ ][ ]*$//'\
15690 chmod 444 Makefile.new
15691 mv -f Makefile.new Makefile
15693 echo creating $dir/GNUmakefile
15694 $CPP -I. -I${top_srcdir}/src -DUSE_GNU_MAKE junk.c \
15695 | sed -e 's/^\#.*//' \
15696 -e 's/^[ ][ ]*$//'\
15704 chmod 444 Makefile.new
15705 mv -f Makefile.new GNUmakefile
15711 sed < config.status >> lib-src/config.values \
15712 -e '/{ac_dA}.*{ac_dB}.*{ac_dC}.*{ac_dD}$/!d' \
15713 -e 's/\${ac_dA}\(.*\)\${ac_dB}.*\${ac_dC}\(.*\)\${ac_dD}/\1 \2/' \
15714 -e 's/^\([^ ]*\) $/\1 ""/' \
15720 chmod +x $CONFIG_STATUS
15721 rm -fr confdefs* $ac_clean_files
15722 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1