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 | \
355 memory_usage_stats | \
356 with_clash_detection | \
360 y | ye | yes ) val=yes ;;
362 * ) (echo "$progname: Usage error:"
363 echo " " "The \`--$optname' option requires a boolean value: \`yes' or \`no'."
364 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
366 eval "$opt=\"$val\"" ;;
384 site_runtime_libraries )
385 if test "$valomitted" = "yes" ; then
386 if test "$#" = 0 ; then
387 (echo "$progname: Usage error:"
388 echo " " "The \`--$optname' option requires a value."
389 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
398 with_debug_malloc | use_debug_malloc | \
399 with_system_malloc | use_system_malloc )
401 y | ye | yes ) val=yes ;;
403 d | de | def | defa | defau | defaul | default ) val=default ;;
404 * ) (echo "$progname: Usage error:"
405 echo " " "The \`--$optname' option requires one of these values:
406 \`yes', \`no', or \`default'."
407 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
409 case "$opt" in use_* ) opt="`echo $opt | sed s/use/with/`" ;; esac
414 with_database_berkdb=no
416 with_database_gdbm=no
417 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
420 b | be | ber | berk | berkd | berkdb ) with_database_berkdb=yes ;;
421 d | db | dbm ) with_database_dbm=yes ;;
422 g | gn | gnu | gnud | gnudb | gnudbm | gdbm) with_database_gdbm=yes ;;
423 * ) (echo "$progname: Usage error:"
424 echo " " "The \`--$optname' option value
425 must be either \`no' or a comma-separated list
426 of one or more of \`berkdb' and either \`dbm' or \`gnudbm'."
427 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
430 if test "$with_database_dbm" = "yes" -a \
431 "$with_database_gdbm" = "yes"; then
432 (echo "$progname: Usage error:"
433 echo " " "Only one of \`dbm' and \`gnudbm' may be specified
434 with the \`--$optname' option."
435 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
440 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
442 n | no | non | none ) new_sdefault=no ;;
443 a | al | all | both ) new_sdefault=yes ;;
445 native ) with_native_sound=yes ;;
446 nonative ) with_native_sound=no ;;
448 nas ) with_nas_sound=yes ;;
449 nonas ) with_nas_sound=no ;;
451 esd ) with_esd_sound=yes ;;
452 noesd ) with_esd_sound=no ;;
454 * ) bogus_sound=yes ;;
456 if test "$bogus_sound" -o \
457 \( -n "$new_sdefault" -a -n "$sound_notfirst" \) ; then
458 types="\`all', \`none', \`(no)native', \`no(nas)', \`(no)esd'."
459 (echo "$progname: Usage error:"
460 echo " " "Valid types for the \`--$optname' option are:
462 The default is to autodetect all sound support."
463 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
464 elif test -n "$new_sdefault" ; then
465 with_native_sound=$new_sdefault
466 with_nas_sound=$new_sdefault
467 with_esd_sound=$new_sdefault
468 new_sdefault= # reset this
476 xa | xaw ) val=xaw ;;
477 3 | 3d | xaw3d ) val=3d ;;
478 ne | nex | next | naxtaw) val=next ;;
479 9 | 95 | xaw95 ) val=95 ;;
480 xp | xpm | xawxpm ) val=xpm ;;
481 * ) (echo "$progname: Usage error:"
482 echo " " "The \`--$optname' option must have one of these values:
483 \`xaw', \`3d', \`next', \`95', or \`xpm'."
484 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
491 y | ye | yes ) val=yes ;;
492 n | no | non | none ) val=no ;;
493 x | xl | xli | xlib ) val=xlib ;;
494 m | mo | mot | moti | motif ) val=motif ;;
495 * ) (echo "$progname: Usage error:"
496 echo " " "The \`--$optname' option must have one of these values:
497 \`motif', \`xlib', \`yes', or \`no'."
498 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
507 file | dot ) val=file ;;
508 locking ) val=locking ;;
509 * ) (echo "$progname: Usage error:"
510 echo " " "The \`--$optname' option must have one of these values:
511 \`lockf', \`flock', \`file', \`locking', or \`mmdf'."
512 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
519 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
521 n | no | non | none ) new_default=no ;;
522 a | al | all ) new_default=yes ;;
524 extents ) error_check_extents=yes ;;
525 noextents ) error_check_extents=no ;;
527 typecheck ) error_check_typecheck=yes ;;
528 notypecheck ) error_check_typecheck=no ;;
530 bufpos ) error_check_bufpos=yes ;;
531 nobufpos ) error_check_bufpos=no ;;
533 gc ) error_check_gc=yes ;;
534 nogc ) error_check_gc=no ;;
536 malloc ) error_check_malloc=yes ;;
537 nomalloc ) error_check_malloc=no ;;
539 byte_code ) error_check_byte_code=yes ;;
540 nobyte_code ) error_check_byte_code=no ;;
542 glyphs ) error_check_glyphs=yes ;;
543 noglyphs ) error_check_glyphs=no ;;
545 * ) bogus_error_check=yes ;;
547 if test "$bogus_error_check" -o \
548 \( -n "$new_default" -a -n "$echeck_notfirst" \) ; then
549 if test "$error_check_default" = yes ; then
550 types="\`all' (default), \`none', \`noextents', \`notypecheck', \`nobufpos', \`nogc', \`nomalloc', \`noglyphs' and \`nobyte-code'."
552 types="\`all', \`none' (default), \`extents', \`typecheck', \`bufpos', \`gc', \`malloc', \`glyphs' and \`byte-code'."
554 (echo "$progname: Usage error:"
555 echo " " "Valid types for the \`--$optname' option are:
557 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
558 elif test -n "$new_default" ; then
559 error_check_extents=$new_default
560 error_check_typecheck=$new_default
561 error_check_bufpos=$new_default
562 error_check_gc=$new_default
563 error_check_malloc=$new_default
564 error_check_byte_code=$new_default
565 error_check_glyphs=$new_default
566 new_default= # reset this
573 prefix | exec_prefix | bindir | datadir | statedir | libdir | \
574 mandir | infodir | infopath | lispdir | etcdir | pkgdir | \
575 archlibdir | docdir | package_path )
576 if test "$valomitted" = "yes"; then
577 if test "$#" = 0; then
578 (echo "$progname: Usage error:"
579 echo " " "The \`--$optname' option requires a value."
580 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
587 exec_prefix ) { test "$extra_verbose" = "yes" && cat << \EOF
588 Defining EXEC_PREFIX_USER_DEFINED
590 cat >> confdefs.h <<\EOF
591 #define EXEC_PREFIX_USER_DEFINED 1
595 lispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
596 Defining LISPDIR_USER_DEFINED
598 cat >> confdefs.h <<\EOF
599 #define LISPDIR_USER_DEFINED 1
603 sitelispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
604 Defining SITELISPDIR_USER_DEFINED
606 cat >> confdefs.h <<\EOF
607 #define SITELISPDIR_USER_DEFINED 1
611 moduledir ) { test "$extra_verbose" = "yes" && cat << \EOF
612 Defining MODULEDIR_USER_DEFINED
614 cat >> confdefs.h <<\EOF
615 #define MODULEDIR_USER_DEFINED 1
619 etcdir ) { test "$extra_verbose" = "yes" && cat << \EOF
620 Defining ETCDIR_USER_DEFINED
622 cat >> confdefs.h <<\EOF
623 #define ETCDIR_USER_DEFINED 1
627 infodir ) { test "$extra_verbose" = "yes" && cat << \EOF
628 Defining INFODIR_USER_DEFINED
630 cat >> confdefs.h <<\EOF
631 #define INFODIR_USER_DEFINED 1
635 infopath ) { test "$extra_verbose" = "yes" && cat << \EOF
636 Defining INFOPATH_USER_DEFINED
638 cat >> confdefs.h <<\EOF
639 #define INFOPATH_USER_DEFINED 1
643 package_path ) { test "$extra_verbose" = "yes" && cat << \EOF
644 Defining PACKAGE_PATH_USER_DEFINED
646 cat >> confdefs.h <<\EOF
647 #define PACKAGE_PATH_USER_DEFINED 1
652 { test "$extra_verbose" = "yes" && cat << \EOF
653 Defining INFODIR_USER_DEFINED
655 cat >> confdefs.h <<\EOF
656 #define INFODIR_USER_DEFINED 1
660 { test "$extra_verbose" = "yes" && cat << \EOF
661 Defining LISPDIR_USER_DEFINED
663 cat >> confdefs.h <<\EOF
664 #define LISPDIR_USER_DEFINED 1
668 { test "$extra_verbose" = "yes" && cat << \EOF
669 Defining MODULEDIR_USER_DEFINED
671 cat >> confdefs.h <<\EOF
672 #define MODULEDIR_USER_DEFINED 1
676 { test "$extra_verbose" = "yes" && cat << \EOF
677 Defining ETCDIR_USER_DEFINED
679 cat >> confdefs.h <<\EOF
680 #define ETCDIR_USER_DEFINED 1
684 { test "$extra_verbose" = "yes" && cat << \EOF
685 Defining DOCDIR_USER_DEFINED
687 cat >> confdefs.h <<\EOF
688 #define DOCDIR_USER_DEFINED 1
692 { test "$extra_verbose" = "yes" && cat << \EOF
693 Defining ARCHLIBDIR_USER_DEFINED
695 cat >> confdefs.h <<\EOF
696 #define ARCHLIBDIR_USER_DEFINED 1
700 docdir ) { test "$extra_verbose" = "yes" && cat << \EOF
701 Defining DOCDIR_USER_DEFINED
703 cat >> confdefs.h <<\EOF
704 #define DOCDIR_USER_DEFINED 1
708 exec_prefix | libdir | archlibdir ) { test "$extra_verbose" = "yes" && cat << \EOF
709 Defining ARCHLIBDIR_USER_DEFINED
711 cat >> confdefs.h <<\EOF
712 #define ARCHLIBDIR_USER_DEFINED 1
721 "usage" | "help" ) ${PAGER-more} ${srcdir}/configure.usage; exit 0 ;;
724 "with_scrollbars" | \
728 l | lu | luc | luci | lucid ) val=lucid ;;
729 m | mo | mot | moti | motif ) val=motif ;;
730 a | at | ath | athe | athen | athena ) val=athena ;;
731 n | no | non | none ) val=no ;;
732 y | ye | yes ) val=yes ;;
733 m | ms | msw ) val=msw ;;
734 * ) (echo "$progname: Usage error:"
735 echo " " "The \`--$optname' option must have one of these values:
736 \`lucid', \`motif', \`athena', \`yes', or \`no'."
737 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
742 "use_minimal_tagbits" | \
743 "use_indexed_lrecord_implementation" | \
745 "const_is_losing" | \
747 echo "configure: warning: Obsolete option \`--$optname' ignored." 1>&2
750 * ) (echo "$progname: Usage error:"
751 echo " " "Unrecognized option: $arg"
752 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
757 *-*-*) configuration="$arg" ;;
759 *) (echo "$progname: Usage error:"
760 echo " " "Unrecognized argument: $arg"
761 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
767 test -n "$cpp" && CPP="$cpp"
768 test -n "$cppflags" && CPPFLAGS="$cppflags"
769 test -n "$libs" && LIBS="$libs"
770 test -n "$ldflags" && LDFLAGS="$ldflags"
772 eval set x "$quoted_arguments"; shift
774 test "$extra_verbose" = "yes" && verbose=yes
776 test -n "$with_x" && with_x11="$with_x"
778 if test "$with_purify" = "yes" -o "$with_quantify" = "yes"; then
779 test "$with_system_malloc" = "default" && with_system_malloc=yes
784 if test "$with_cde $with_tooltalk" = "yes no"; then
785 (echo "$progname: Usage error:"
786 echo " " "--with-cde requires --with-tooltalk"
787 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
788 elif test "$with_tooltalk" = "no" ; then with_cde=no
789 elif test "$with_cde" = "yes"; then with_tooltalk=yes
796 for dir in "`echo $0 | sed 's|//|/|' | sed 's|/[^/]*$||'`" "." ".." ; do
797 if test -f "$dir/src/lisp.h" -a \
798 -f "$dir/lisp/version.el" ; then
803 if test -z "$srcdir" ; then
804 (echo "$progname: Usage error:"
805 echo " " "Neither the current directory nor its parent seem to
806 contain the XEmacs sources. If you do not want to build XEmacs in its
807 source tree, you should run \`$progname' in the directory in which
808 you wish to build XEmacs, using the \`--srcdir' option to say where the
809 sources may be found."
810 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
815 if test ! -f "$srcdir/src/lisp.h" -o \
816 ! -f "$srcdir/lisp/version.el" ; then
817 (echo "$progname: Usage error:"
818 echo " " "The directory specified with the \`--srcdir' option,
819 \`$srcdir', doesn't seem to contain the XEmacs sources. You should
820 either run the \`$progname' script at the top of the XEmacs source
821 tree, or use the \`--srcdir' option to specify the XEmacs source directory."
822 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
827 if test -z "$configuration"; then
828 configuration=`${CONFIG_SHELL-/bin/sh} $srcdir/config.guess`
829 if test -z "$configuration"; then
830 (echo "$progname: Usage error:"
831 echo " " "XEmacs has not been ported to this host type.
832 Try explicitly specifying the CONFIGURATION when rerunning configure."
833 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
837 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
838 echo "configure:839: checking whether ln -s works" >&5
841 if ln -s X conftestdata 2>/dev/null
844 ac_cv_prog_LN_S="ln -s"
848 LN_S="$ac_cv_prog_LN_S"
849 if test "$ac_cv_prog_LN_S" = "ln -s"; then
850 echo "$ac_t""yes" 1>&6
852 echo "$ac_t""no" 1>&6
856 for dir in lisp etc man info tests; do
857 if test ! -d "$dir" ; then
858 echo Making symbolic link to "$srcdir/$dir"
859 ${LN_S} "$srcdir/$dir" "$dir"
864 absolute_pwd="`pwd`";
865 if test -n "$PWD" -a "`cd $PWD && pwd`" = "$absolute_pwd"
867 else blddir="$absolute_pwd"; if test -d "/net"; then
868 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi
869 blddir=`echo "$blddir" | \
870 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
877 . ) srcdir="$blddir" ;;
878 * ) srcdir="`cd $srcdir && pwd`"; if test -d "/net"; then
879 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi
880 srcdir=`echo "$srcdir" | \
881 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
885 if test `pwd` != `sh -c cd $srcdir && pwd` \
886 && test -f "$srcdir/src/config.h"; then
887 (echo "$progname: WARNING: The directory tree \`$srcdir' is being used"
888 echo " as a build directory right now; it has been configured in its own"
889 echo " right. To configure in another directory as well, you MUST"
890 echo " use GNU make. If you do not have GNU make, then you must"
891 echo " now do \`make distclean' in $srcdir,"
892 echo " and then run $progname again.") >&2
893 extrasub='/^VPATH[ ]*=/c\
899 vpath %.in $(srcdir)'
902 . "$srcdir/version.sh" || exit 1;
903 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
904 : "${extra_verbose=$beta}"
905 version="${emacs_major_version}.${emacs_minor_version}"
906 { test "$extra_verbose" = "yes" && cat << EOF
907 Defining EMACS_MAJOR_VERSION = $emacs_major_version
909 cat >> confdefs.h <<EOF
910 #define EMACS_MAJOR_VERSION $emacs_major_version
914 { test "$extra_verbose" = "yes" && cat << EOF
915 Defining EMACS_MINOR_VERSION = $emacs_minor_version
917 cat >> confdefs.h <<EOF
918 #define EMACS_MINOR_VERSION $emacs_minor_version
922 if test -n "$emacs_beta_version" ; then
923 if test "$beta" = "yes"; then
924 version="${version}-b${emacs_beta_version}"
925 { test "$extra_verbose" = "yes" && cat << EOF
926 Defining EMACS_BETA_VERSION = $emacs_beta_version
928 cat >> confdefs.h <<EOF
929 #define EMACS_BETA_VERSION $emacs_beta_version
934 version="${version}.${emacs_beta_version}"
935 { test "$extra_verbose" = "yes" && cat << EOF
936 Defining EMACS_PATCH_LEVEL = $emacs_beta_version
938 cat >> confdefs.h <<EOF
939 #define EMACS_PATCH_LEVEL $emacs_beta_version
945 { test "$extra_verbose" = "yes" && cat << EOF
946 Defining XEMACS_CODENAME = "$xemacs_codename"
948 cat >> confdefs.h <<EOF
949 #define XEMACS_CODENAME "$xemacs_codename"
953 { test "$extra_verbose" = "yes" && cat << EOF
954 Defining EMACS_VERSION = "$version"
956 cat >> confdefs.h <<EOF
957 #define EMACS_VERSION "$version"
962 if test "$with_infodock" = "yes"; then
963 if test ! -f ../../ID-INSTALL; then
964 echo "Cannot build InfoDock without InfoDock sources"
969 if test "$with_infodock" = "yes"; then
970 { test "$extra_verbose" = "yes" && cat << EOF
971 Defining INFODOCK_MAJOR_VERSION = $infodock_major_version
973 cat >> confdefs.h <<EOF
974 #define INFODOCK_MAJOR_VERSION $infodock_major_version
978 { test "$extra_verbose" = "yes" && cat << EOF
979 Defining INFODOCK_MINOR_VERSION = $infodock_minor_version
981 cat >> confdefs.h <<EOF
982 #define INFODOCK_MINOR_VERSION $infodock_minor_version
986 { test "$extra_verbose" = "yes" && cat << EOF
987 Defining INFODOCK_BUILD_VERSION = $infodock_build_version
989 cat >> confdefs.h <<EOF
990 #define INFODOCK_BUILD_VERSION $infodock_build_version
994 version=${infodock_major_version}.${infodock_minor_version}.${infodock_build_version}
996 CPPFLAGS="$CPPFLAGS -DINFODOCK"
1001 { test "$extra_verbose" = "yes" && cat << EOF
1002 Defining EMACS_PROGNAME = "$PROGNAME"
1004 cat >> confdefs.h <<EOF
1005 #define EMACS_PROGNAME "$PROGNAME"
1010 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
1011 test "${error_check_extents=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1012 Defining ERROR_CHECK_EXTENTS
1014 cat >> confdefs.h <<\EOF
1015 #define ERROR_CHECK_EXTENTS 1
1019 test "${error_check_typecheck=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1020 Defining ERROR_CHECK_TYPECHECK
1022 cat >> confdefs.h <<\EOF
1023 #define ERROR_CHECK_TYPECHECK 1
1027 test "${error_check_bufpos=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1028 Defining ERROR_CHECK_BUFPOS
1030 cat >> confdefs.h <<\EOF
1031 #define ERROR_CHECK_BUFPOS 1
1035 test "${error_check_gc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1036 Defining ERROR_CHECK_GC
1038 cat >> confdefs.h <<\EOF
1039 #define ERROR_CHECK_GC 1
1043 test "${error_check_malloc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1044 Defining ERROR_CHECK_MALLOC
1046 cat >> confdefs.h <<\EOF
1047 #define ERROR_CHECK_MALLOC 1
1051 test "${error_check_byte_code=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1052 Defining ERROR_CHECK_BYTE_CODE
1054 cat >> confdefs.h <<\EOF
1055 #define ERROR_CHECK_BYTE_CODE 1
1059 test "${error_check_glyphs=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1060 Defining ERROR_CHECK_GLYPHS
1062 cat >> confdefs.h <<\EOF
1063 #define ERROR_CHECK_GLYPHS 1
1067 if test "${debug:=$beta}" = "yes"; then
1068 use_assertions=yes memory_usage_stats=yes
1069 extra_objs="$extra_objs debug.o" && if test "$extra_verbose" = "yes"; then
1070 echo " xemacs will be linked with \"debug.o\""
1072 extra_objs="$extra_objs tests.o" && if test "$extra_verbose" = "yes"; then
1073 echo " xemacs will be linked with \"tests.o\""
1075 { test "$extra_verbose" = "yes" && cat << \EOF
1076 Defining DEBUG_XEMACS
1078 cat >> confdefs.h <<\EOF
1079 #define DEBUG_XEMACS 1
1084 test "$use_assertions" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
1085 Defining USE_ASSERTIONS
1087 cat >> confdefs.h <<\EOF
1088 #define USE_ASSERTIONS 1
1092 test "$memory_usage_stats" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
1093 Defining MEMORY_USAGE_STATS
1095 cat >> confdefs.h <<\EOF
1096 #define MEMORY_USAGE_STATS 1
1102 echo $ac_n "checking "host system type"""... $ac_c" 1>&6
1103 echo "configure:1104: checking "host system type"" >&5
1104 internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'`
1105 canonical=`${CONFIG_SHELL-/bin/sh} $srcdir/config.sub "$internal_configuration"`
1106 configuration=`echo "$configuration" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
1107 canonical=`echo "$canonical" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
1108 echo "$ac_t""$configuration" 1>&6
1116 case "$canonical" in
1117 sparc-*-* ) machine=sparc ;;
1118 alpha*-*-* ) machine=alpha ;;
1119 vax-*-* ) machine=vax ;;
1120 mips-dec-* ) machine=pmax ;;
1121 mips-sgi-irix6* ) machine=iris6d ;;
1122 mips-sgi-* ) machine=iris4d ;;
1123 mips*-linux ) machine=mips ;;
1124 romp-ibm-* ) machine=ibmrt ;;
1125 rs6000-ibm-aix* ) machine=ibmrs6000 ;;
1126 powerpc-ibm-aix* ) machine=ibmrs6000 ;;
1127 powerpc*-* ) machine=powerpc ;;
1128 hppa-*-* ) machine=hp800 ;;
1129 m88k-dg-* ) machine=aviion ;;
1130 m68*-sony-* ) machine=news ;;
1131 mips-sony-* ) machine=news-risc ;;
1132 clipper-* ) machine=clipper ;;
1133 arm* ) machine=arm ;;
1134 ns32k-* ) machine=ns32000 ;;
1137 case "$canonical" in
1138 *-*-linux* ) opsys=linux ;;
1139 *-*-netbsd* ) opsys=netbsd ;;
1140 *-*-openbsd* ) opsys=openbsd ;;
1141 *-*-nextstep* ) opsys=nextstep ;;
1142 *-*-vms ) opsys=vms ;;
1144 *-dec-osf1.3 | *-dec-osf2* ) opsys=decosf1-3 ;;
1145 *-dec-osf1.2 | *-dec-osf1* ) opsys=decosf1-2 ;;
1146 *-dec-osf3.[2-9] ) opsys=decosf3-2 ;;
1147 *-dec-osf3* ) opsys=decosf3-1 ;;
1148 *-dec-osf[4-9]* ) opsys=decosf4-0 ;;
1150 *-*-ultrix[0-3].* | *-*-ultrix4.0* ) opsys=bsd4-2 ;;
1151 *-*-ultrix4.[12]* ) opsys=bsd4-3 ;;
1152 *-*-ultrix* ) opsys=ultrix4-3 ;;
1154 *-*-aix3.1* ) opsys=aix3-1 ;;
1155 *-*-aix3.2.5 ) opsys=aix3-2-5 ;;
1156 *-*-aix3* ) opsys=aix3-2 ;;
1157 *-*-aix4.0* ) opsys=aix4 ;;
1158 *-*-aix4.1* ) opsys=aix4-1 ;;
1159 *-*-aix4* ) opsys=aix4-2 ;;
1161 *-gnu* ) opsys=gnu ;;
1162 *-*-bsd4.[01] ) opsys=bsd4-1 ;;
1163 *-*-bsd4.2 ) opsys=bsd4-2 ;;
1164 *-*-bsd4.3 ) opsys=bsd4-3 ;;
1165 *-*-aos4.2 ) opsys=bsd4-2 ;;
1166 *-*-aos* ) opsys=bsd4-3 ;;
1167 *-*-sysv0 | *-*-sysvr0 ) opsys=usg5-0 ;;
1168 *-*-sysv2 | *-*-sysvr2 ) opsys=usg5-2 ;;
1169 *-*-sysv2.2 | *-*-sysvr2.2 ) opsys=usg5-2-2 ;;
1170 *-*-sysv3* | *-*-sysvr3* ) opsys=usg5-3 ;;
1171 *-*-sysv4.1* | *-*-sysvr4.1* )opsys=usg5-4 NON_GNU_CPP=/usr/lib/cpp ;;
1172 *-*-sysv4.[2-9]* | *-sysvr4.[2-9]* )
1173 if test -z "$NON_GNU_CPP" ; then
1174 for prog in "/usr/ccs/lib/cpp" "/lib/cpp"; do
1175 if test -f "$prog"; then NON_GNU_CPP="$prog"; break; fi
1179 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
1180 *-*-mach_bsd4.3* ) opsys=mach-bsd4-3 ;;
1183 case "$canonical" in
1186 case "$canonical" in
1187 i[3-9]86-*-netbsd*) machine=intel386 ;;
1188 hp300-*-netbsd* | amiga-*-netbsd* | sun3-*-netbsd* | mac68k-*-netbsd* | da30-*-netbsd* | m68k-*-netbsd* )
1189 machine=hp9000s300 ;;
1190 pc532-*-netbsd* | ns32k-*-netbsd* ) machine=ns32000 ;;
1191 pmax-*-netbsd* | mips-*-netbsd* ) machine=pmax ;;
1196 case "${canonical}" in
1197 i386-*-openbsd*) machine=intel386 ;;
1198 m68k-*-openbsd*) machine=hp9000s300 ;;
1199 mipsel-*-openbsd*) machine=pmax ;;
1203 arm-acorn-riscix1.1* ) machine=acorn opsys=riscix1-1 ;;
1204 arm-acorn-riscix1.2* | arm-acorn-riscix ) machine=acorn opsys=riscix1-2 ;;
1206 fx80-alliant-* ) machine=alliant4 opsys=bsd4-2 ;;
1207 i860-alliant-* ) machine=alliant-2800 opsys=bsd4-3 ;;
1209 m68*-altos-sysv* ) machine=altos opsys=usg5-2 ;;
1211 580-amdahl-sysv* ) machine=amdahl opsys=usg5-2-2 ;;
1213 m68*-apollo-* ) machine=apollo opsys=bsd4-3 ;;
1215 we32k-att-sysv* ) machine=att3b opsys=usg5-2-2 ;;
1217 m68*-att-sysv* ) machine=7300 opsys=usg5-2-2 ;;
1219 rs6000-bull-bosx* ) machine=ibmrs6000 opsys=aix3-2 ;; # dpx20
1220 m68*-bull-sysv3* ) machine=dpx2 opsys=usg5-3 ;; # dpx2
1221 m68*-bull-sysv2* ) machine=sps7 opsys=usg5-2 ;; # sps7
1224 celerity-celerity-bsd* ) machine=celerity opsys=bsd4-2 ;;
1226 *-convex-bsd* | *-convex-convexos* )
1227 machine=convex opsys=bsd4-3
1228 NON_GNU_CPP="cc -E -P"
1231 i[3-9]86-cubix-sysv* ) machine=intel386 opsys=usg5-3 ;;
1233 i586-dg-dgux*R4* | i586-dg-dgux5.4.4* ) machine=aviion opsys=dgux5-4r4 ;;
1234 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) opsys=dgux5-4r3 ;;
1235 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) opsys=dgux5-4r2 ;;
1236 m88k-dg-dgux* ) opsys=dgux ;;
1238 m68k-motorola-sysv* | m68000-motorola-sysv* ) machine=delta opsys=usg5-3 ;;
1239 m88k-motorola-sysv4* )
1240 machine=delta88k opsys=usg5-4-2
1242 m88k-motorola-sysv* | m88k-motorola-m88kbcs* ) machine=delta88k opsys=usg5-3 ;;
1244 m68*-dual-sysv* ) machine=dual opsys=usg5-2 ;;
1245 m68*-dual-uniplus* ) machine=dual opsys=unipl5-2 ;;
1247 ns16k-encore-bsd* ) machine=ns16000 opsys=umax ;;
1249 pn-gould-bsd4.2* ) machine=gould opsys=bsd4-2 ;;
1250 pn-gould-bsd4.3* ) machine=gould opsys=bsd4-3 ;;
1251 np1-gould-bsd* ) machine=gould-np1 opsys=bsd4-3 ;;
1254 case "`uname -r`" in
1255 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
1256 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
1258 NON_GNU_CPP="/lib/cpp"
1260 m68k-harris-cxux* ) machine=nh3000 opsys=cxux ;;
1261 powerpc-harris-powerunix ) machine=nh6000 opsys=powerunix NON_GNU_CPP="cc -Xo -E -P" ;;
1263 xps*-honeywell-sysv* ) machine=xps100 opsys=usg5-2 ;;
1265 m68*-hp-bsd* ) machine=hp9000s300 opsys=bsd4-3 ;;
1268 case "$canonical" in
1269 m68* ) machine=hp9000s300 ;;
1270 hppa* ) machine=hp800 ;;
1273 case "$canonical" in
1274 *-hp-hpux7* ) opsys=hpux ;;
1275 *-hp-hpux8* ) opsys=hpux8 ;;
1276 *-hp-hpux9* ) opsys=hpux9 ;;
1277 *-hp-hpux10* ) opsys=hpux10 ;;
1278 *-hp-hpux11* ) opsys=hpux11 ;;
1282 case "$opsys" in hpux9 | hpux10 ) extra_objs="$extra_objs strcat.o" && if test "$extra_verbose" = "yes"; then
1283 echo " xemacs will be linked with \"strcat.o\""
1286 if test "$opsys" = "hpux10" -o "$opsys" = "hpux11"; then \
1287 ansi_flag="-Ae"; else ansi_flag="-Aa"; fi
1288 NON_GNU_CC="cc $ansi_flag" NON_GNU_CPP="cc $ansi_flag -E"
1290 case "$canonical" in *-hp-hpux*shr* ) opsys="${opsys}-shr" ;; esac
1293 orion-orion-bsd* ) machine=orion opsys=bsd4-2 ;;
1294 clipper-orion-bsd* ) machine=orion105 opsys=bsd4-2 ;;
1296 i[3-9]86-ibm-aix1.1* ) machine=ibmps2-aix opsys=usg5-2-2 ;;
1297 i[3-9]86-ibm-aix1.[23]* | i[3-9]86-ibm-aix* ) machine=ibmps2-aix opsys=usg5-3 ;;
1298 i370-ibm-aix*) machine=ibm370aix opsys=usg5-3 ;;
1299 romp-ibm-aos* ) opsys=bsd4-3 ;;
1300 romp-ibm-bsd* ) opsys=bsd4-3 ;;
1301 romp-ibm-mach* ) opsys=mach-bsd4-3 ;;
1303 m68*-isi-bsd4.2* ) machine=isi-ov opsys=bsd4-2 ;;
1304 m68*-isi-bsd4.3* ) machine=isi-ov opsys=bsd4-3 ;;
1306 i[3-9]86-intsys-sysv* ) machine=is386 opsys=usg5-2-2 ;;
1308 i[3-9]86-prime-sysv* ) machine=i386 opsys=usg5-3 ;;
1310 i[3-9]86-sequent-bsd* ) machine=symmetry opsys=bsd4-3 ;;
1312 i[3-9]86-sequent-ptx* ) machine=sequent-ptx opsys=ptx NON_GNU_CPP="/lib/cpp" ;;
1314 i[3-9]86-ncr-sysv* ) machine=ncr386 opsys=usg5-4-2 ;;
1316 i860-intel-osf1* ) machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp ;;
1318 i860-*-sysv4* ) machine=i860 opsys=usg5-4 NON_GNU_CC="/bin/cc" NON_GNU_CPP="/usr/ccs/lib/cpp" ;;
1320 m68*-masscomp-rtu* ) machine=masscomp opsys=rtu ;;
1322 m68*-megatest-bsd* ) machine=mega68 opsys=bsd4-2 ;;
1324 mips-mips-usg* ) machine=mips4 ;;
1327 NON_GNU_CC="cc -systype bsd43"
1328 NON_GNU_CPP="cc -systype bsd43 -E"
1329 case "$canonical" in
1330 mips-mips-riscos4* ) opsys=bsd4-3 ;;
1331 mips-mips-riscos5* ) opsys=riscos5 ;;
1334 mips-mips-bsd* ) machine=mips opsys=bsd4-3 ;;
1335 mips-mips-* ) machine=mips opsys=usg5-2-2 ;;
1337 m68*-next-* | m68k-*-nextstep* ) machine=m68k opsys=nextstep ;;
1339 ns32k-ns-genix* ) machine=ns32000 opsys=usg5-2 ;;
1341 m68*-ncr-sysv2* | m68*-ncr-sysvr2* ) machine=tower32 opsys=usg5-2-2 ;;
1342 m68*-ncr-sysv3* | m68*-ncr-sysvr3* ) machine=tower32v3 opsys=usg5-3 ;;
1344 m68*-nixdorf-sysv* ) machine=targon31 opsys=usg5-2-2 ;;
1346 m68*-nu-sysv* ) machine=nu opsys=usg5-2 ;;
1348 m68*-plexus-sysv* ) machine=plexus opsys=usg5-2 ;;
1350 pyramid-pyramid-bsd* ) machine=pyramid opsys=bsd4-2 ;;
1352 ns32k-sequent-bsd4.2* ) machine=sequent opsys=bsd4-2 ;;
1353 ns32k-sequent-bsd4.3* ) machine=sequent opsys=bsd4-3 ;;
1355 mips-siemens-sysv* | mips-sni-sysv*)
1356 machine=mips-siemens opsys=usg5-4
1357 NON_GNU_CC=/usr/ccs/bin/cc
1358 NON_GNU_CPP=/usr/ccs/lib/cpp
1363 NON_GNU_CC=/usr/ccs/bin/cc
1364 NON_GNU_CPP=/usr/ccs/lib/cpp
1367 m68*-sgi-iris3.5* ) machine=irist opsys=iris3-5 ;;
1368 m68*-sgi-iris3.6* | m68*-sgi-iris*) machine=irist opsys=iris3-6 ;;
1369 mips-sgi-irix3.* ) opsys=irix3-3 ;;
1370 mips-sgi-irix4.* ) opsys=irix4-0 ;;
1371 mips-sgi-irix6* ) opsys=irix6-0 ;;
1372 mips-sgi-irix5.1* ) opsys=irix5-1 ;;
1373 mips-sgi-irix5.2* ) opsys=irix5-2 ;;
1374 mips-sgi-irix5.* ) opsys=irix5-3 ;;
1375 mips-sgi-irix* ) opsys=irix5-0 ;;
1377 *-sony-newsos[34]* | *-sony-news[34]* ) opsys=bsd4-3 ;;
1378 *-sony-news* ) opsys=newsos5 ;;
1380 m68*-stride-sysv* ) machine=stride opsys=usg5-2 ;;
1382 *-*-solaris* | *-*-sunos* | *-sun-mach* | *-sun-bsd* )
1383 case "$canonical" in
1384 m68*-sunos1* ) machine=sun1 ;;
1385 m68*-sunos2* ) machine=sun2 ;;
1386 m68* ) machine=sun3 ;;
1387 i*86*-sun-sunos[34]* ) machine=sun386 ;;
1388 i*86-*-* ) machine=intel386 ;;
1389 rs6000* ) machine=rs6000 ;;
1392 case "$canonical" in *-sunos5*)
1393 canonical=`echo $canonical | sed -e s/sunos5/solaris2/`;;
1396 case "$canonical" in
1398 #test -f /usr/lib/cpp && NON_GNU_CPP=/usr/lib/cpp ;;
1401 #test -f /usr/ccs/lib/cpp && NON_GNU_CPP=/usr/ccs/lib/cpp
1405 case "$canonical" in
1408 os_release=`uname -r | sed -e 's/^\([0-9]\)\.\([0-9]\).*/\1\2/'`
1409 { test "$extra_verbose" = "yes" && cat << EOF
1410 Defining OS_RELEASE = $os_release
1412 cat >> confdefs.h <<EOF
1413 #define OS_RELEASE $os_release
1418 i*86-*-sunos4* ) opsys=sunos4-0 ;;
1419 *-sunos4.0* ) opsys=sunos4-0 ;;
1420 *-sunos4.1.2* ) opsys=sunos4-1-2 ;;
1421 *-sunos4.1.3* ) opsys=sunos4-1-3 ;;
1422 *-sunos4.1.[4-9]* ) opsys=sunos4-1-4 ;;
1423 *-sunos4* | *-sunos ) opsys=sunos4-1 ;;
1424 *-mach* ) opsys=mach-bsd4-3 ;;
1428 case "$canonical" in *-sunos4*shr* ) opsys="${opsys}-shr" ;; esac
1430 test "$opsys $CC" = "sol2 /usr/ucb/cc" && CC=""
1433 m68*-tadpole-sysv* ) machine=tad68k opsys=usg5-3 ;;
1435 tahoe-tahoe-bsd4.2* ) machine=tahoe opsys=bsd4-2 ;;
1436 tahoe-tahoe-bsd4.3* ) machine=tahoe opsys=bsd4-3 ;;
1438 mips-tandem-sysv* ) machine=tandem-s2 opsys=usg5-3 ;;
1440 m88k-tektronix-sysv3* ) machine=tekxd88 opsys=usg5-3 ;;
1442 ns16k-tektronix-bsd* ) machine=ns16000 opsys=bsd4-2 ;;
1443 m68*-tektronix-bsd* ) machine=tek4300 opsys=bsd4-3 ;;
1445 titan-titan-sysv* ) machine=titan opsys=usg5-3 ;;
1447 m68*-unisys-uniplus* ) machine=ustation opsystem=unipl5-2 ;;
1450 case "$canonical" in
1451 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
1452 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
1453 *-mach* ) opsys=mach-bsd4-3 ;;
1457 ns16k-whitechapel-* ) machine=mg1 ;;
1459 m68*-wicat-sysv* ) machine=wicat opsys=usg5-2 ;;
1463 case "$canonical" in
1464 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
1465 *-isc2.2* ) opsys=isc2-2 ;;
1466 *-isc4.0* ) opsys=isc4-0 ;;
1467 *-isc4.* ) opsys=isc4-1
1468 GCC_TEST_OPTIONS=-posix
1469 NON_GCC_TEST_OPTIONS=-Xp
1471 *-isc* ) opsys=isc3-0 ;;
1472 *-esix5* ) opsys=esix5r4 NON_GNU_CPP=/usr/lib/cpp ;;
1473 *-esix* ) opsys=esix ;;
1474 *-mach* ) opsys=mach-bsd4-3 ;;
1475 *-xenix* ) opsys=xenix ;;
1476 *-sco3.2v4* ) opsys=sco4 NON_GNU_CPP=/lib/cpp ;;
1477 *-bsd386* | *-bsdi1* ) opsys=bsd386 ;;
1478 *-bsdi4* ) opsys=bsdos4 ;;
1479 *-bsdi3* ) opsys=bsdos3 ;;
1480 *-bsdi2.1* ) opsys=bsdos2-1 ;;
1481 *-bsdi2* ) opsys=bsdos2 ;;
1482 *-sco3.2v5* ) opsys=sco5 ;
1483 if test "$dynamic" = "yes" ; then
1484 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE -D_SCO_ELF" ;
1486 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE" ;
1488 *-sysv5* ) opsys=sco7 ;;
1489 *-386bsd* ) opsys=386bsd ;;
1490 *-freebsd* ) opsys=freebsd ;;
1491 *-nextstep* ) opsys=nextstep ;;
1492 *-pc-cygwin* ) opsys=cygwin32 ;;
1493 *-pc-mingw* ) opsys=mingw32 ;
1494 test -z "$with_tty" && with_tty="no";;
1498 m68k-*-linux* ) machine=m68k opsys=linux ;;
1502 test -z "$machine" && machine=`echo $canonical | sed 's/-.*$//'`
1503 test -z "$opsys" && opsys=`echo $canonical | sed 's/^^-*-^-*-//'`
1505 if test -r "${srcdir}/src/m/${machine}.h"; then
1506 machfile="m/${machine}.h"
1507 { test "$extra_verbose" = "yes" && cat << EOF
1508 Defining config_machfile = "$machfile"
1510 cat >> confdefs.h <<EOF
1511 #define config_machfile "$machfile"
1516 echo "XEmacs has no builtin knowledge of \`$machine' machines."
1517 echo "Using configure-time autodetection only."
1520 if test -r "${srcdir}/src/s/${opsys}.h"; then
1521 opsysfile="s/${opsys}.h"
1522 { test "$extra_verbose" = "yes" && cat << EOF
1523 Defining config_opsysfile = "$opsysfile"
1525 cat >> confdefs.h <<EOF
1526 #define config_opsysfile "$opsysfile"
1531 echo "XEmacs has no builtin knowledge of \`$opsys' operating systems."
1532 echo "Using configure-time autodetection only."
1536 if test -z "$dynamic"; then
1538 hpux* | sunos4* ) dynamic=no ;;
1542 if test "$dynamic" = "yes"; then
1544 hpux* | sunos4* | sco5 ) opsys="${opsys}-shr" ;;
1545 decosf* ) ld_call_shared="-call_shared" ;;
1547 else case "$opsys" in
1549 echo "Static linking is not supported on Solaris 2."
1550 echo "Rerun configure without specifying --dynamic=no."
1552 linux ) ld_call_shared="-Bstatic" ;;
1553 decosf* ) ld_call_shared="-non_shared" ;;
1557 case "$opsys" in aix*) NON_GNU_CC=xlc ;; esac
1559 stack_trace_eye_catcher=`echo ${PROGNAME}_${version}_${canonical} | sed 'y/.-/__/'`
1560 { test "$extra_verbose" = "yes" && cat << EOF
1561 Defining STACK_TRACE_EYE_CATCHER = $stack_trace_eye_catcher
1563 cat >> confdefs.h <<EOF
1564 #define STACK_TRACE_EYE_CATCHER $stack_trace_eye_catcher
1570 test "$with_sparcworks" = "yes" && with_workshop=yes # compatibility alias
1571 if test "$with_workshop $with_tooltalk" = "yes no"; then
1572 (echo "$progname: Usage error:"
1573 echo " " "--with-workshop requires --with-tooltalk"
1574 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
1575 elif test "$with_tooltalk" = "no" ; then with_workshop=no
1576 elif test "$with_workshop" = "yes"; then with_tooltalk=yes
1579 if test "$with_workshop" = "yes"; then
1580 { test "$extra_verbose" = "yes" && cat << \EOF
1583 cat >> confdefs.h <<\EOF
1588 extra_objs="$extra_objs sunpro.o" && if test "$extra_verbose" = "yes"; then
1589 echo " xemacs will be linked with \"sunpro.o\""
1593 if test "$with_clash_detection" != "no"; then
1594 { test "$extra_verbose" = "yes" && cat << \EOF
1595 Defining CLASH_DETECTION
1597 cat >> confdefs.h <<\EOF
1598 #define CLASH_DETECTION 1
1602 extra_objs="$extra_objs filelock.o" && if test "$extra_verbose" = "yes"; then
1603 echo " xemacs will be linked with \"filelock.o\""
1607 test -n "$compiler" && CC="$compiler"
1608 if test "$with_gcc" = "no"; then case "$CC" in "" | *gcc* ) CC="${NON_GNU_CC-cc}" ;; esac
1611 test "${cflags-unset}" != unset && CFLAGS="$cflags"
1612 if test "${CFLAGS-unset}" != unset
1613 then cflags_specified=yes;
1614 else cflags_specified=no;
1617 xe_save_CFLAGS="$CFLAGS"
1619 # Extract the first word of "gcc", so it can be a program name with args.
1620 set dummy gcc; ac_word=$2
1621 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1622 echo "configure:1623: checking for $ac_word" >&5
1624 if test -n "$CC"; then
1625 ac_cv_prog_CC="$CC" # Let the user override the test.
1627 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1629 for ac_dir in $ac_dummy; do
1630 test -z "$ac_dir" && ac_dir=.
1631 if test -f $ac_dir/$ac_word; then
1639 if test -n "$CC"; then
1640 echo "$ac_t""$CC" 1>&6
1642 echo "$ac_t""no" 1>&6
1645 if test -z "$CC"; then
1646 # Extract the first word of "cc", so it can be a program name with args.
1647 set dummy cc; ac_word=$2
1648 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1649 echo "configure:1650: checking for $ac_word" >&5
1651 if test -n "$CC"; then
1652 ac_cv_prog_CC="$CC" # Let the user override the test.
1654 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1657 for ac_dir in $ac_dummy; do
1658 test -z "$ac_dir" && ac_dir=.
1659 if test -f $ac_dir/$ac_word; then
1660 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1661 ac_prog_rejected=yes
1669 if test $ac_prog_rejected = yes; then
1670 # We found a bogon in the path, so make sure we never use it.
1671 set dummy $ac_cv_prog_CC
1673 if test $# -gt 0; then
1674 # We chose a different compiler from the bogus one.
1675 # However, it has the same basename, so the bogon will be chosen
1676 # first if we set CC to just the basename; use the full file name.
1678 set dummy "$ac_dir/$ac_word" "$@"
1685 if test -n "$CC"; then
1686 echo "$ac_t""$CC" 1>&6
1688 echo "$ac_t""no" 1>&6
1691 if test -z "$CC"; then
1692 case "`uname -s`" in
1694 # Extract the first word of "cl", so it can be a program name with args.
1695 set dummy cl; ac_word=$2
1696 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1697 echo "configure:1698: checking for $ac_word" >&5
1699 if test -n "$CC"; then
1700 ac_cv_prog_CC="$CC" # Let the user override the test.
1702 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1704 for ac_dir in $ac_dummy; do
1705 test -z "$ac_dir" && ac_dir=.
1706 if test -f $ac_dir/$ac_word; then
1714 if test -n "$CC"; then
1715 echo "$ac_t""$CC" 1>&6
1717 echo "$ac_t""no" 1>&6
1722 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1725 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1726 echo "configure:1727: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1729 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1730 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1731 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1732 ac_cpp='$CPP '"$xe_cppflags"
1733 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1734 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1737 cat > conftest.$ac_ext << EOF
1739 #line 1740 "configure"
1740 #include "confdefs.h"
1744 if { (eval echo configure:1745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1745 ac_cv_prog_cc_works=yes
1746 # If we can't run a trivial program, we are probably using a cross compiler.
1747 if (./conftest; exit) 2>/dev/null; then
1748 ac_cv_prog_cc_cross=no
1750 ac_cv_prog_cc_cross=yes
1753 echo "configure: failed program was:" >&5
1754 cat conftest.$ac_ext >&5
1755 ac_cv_prog_cc_works=no
1759 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1760 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1761 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1762 ac_cpp='$CPP '"$xe_cppflags"
1763 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1764 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1767 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1768 if test $ac_cv_prog_cc_works = no; then
1769 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1771 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1772 echo "configure:1773: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1773 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1774 cross_compiling=$ac_cv_prog_cc_cross
1776 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1777 echo "configure:1778: checking whether we are using GNU C" >&5
1779 cat > conftest.c <<EOF
1784 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1785: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1790 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1792 if test $ac_cv_prog_gcc = yes; then
1798 ac_test_CFLAGS="${CFLAGS+set}"
1799 ac_save_CFLAGS="$CFLAGS"
1801 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1802 echo "configure:1803: checking whether ${CC-cc} accepts -g" >&5
1804 echo 'void f(){}' > conftest.c
1805 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1813 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1814 if test "$ac_test_CFLAGS" = set; then
1815 CFLAGS="$ac_save_CFLAGS"
1816 elif test $ac_cv_prog_cc_g = yes; then
1817 if test "$GCC" = yes; then
1823 if test "$GCC" = yes; then
1830 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then
1832 # Extract the first word of "gcc", so it can be a program name with args.
1833 set dummy gcc; ac_word=$2
1834 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1835 echo "configure:1836: checking for $ac_word" >&5
1837 if test -n "$CC"; then
1838 ac_cv_prog_CC="$CC" # Let the user override the test.
1840 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1842 for ac_dir in $ac_dummy; do
1843 test -z "$ac_dir" && ac_dir=.
1844 if test -f $ac_dir/$ac_word; then
1852 if test -n "$CC"; then
1853 echo "$ac_t""$CC" 1>&6
1855 echo "$ac_t""no" 1>&6
1858 if test -z "$CC"; then
1859 # Extract the first word of "cc", so it can be a program name with args.
1860 set dummy cc; ac_word=$2
1861 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1862 echo "configure:1863: checking for $ac_word" >&5
1864 if test -n "$CC"; then
1865 ac_cv_prog_CC="$CC" # Let the user override the test.
1867 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1870 for ac_dir in $ac_dummy; do
1871 test -z "$ac_dir" && ac_dir=.
1872 if test -f $ac_dir/$ac_word; then
1873 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1874 ac_prog_rejected=yes
1882 if test $ac_prog_rejected = yes; then
1883 # We found a bogon in the path, so make sure we never use it.
1884 set dummy $ac_cv_prog_CC
1886 if test $# -gt 0; then
1887 # We chose a different compiler from the bogus one.
1888 # However, it has the same basename, so the bogon will be chosen
1889 # first if we set CC to just the basename; use the full file name.
1891 set dummy "$ac_dir/$ac_word" "$@"
1898 if test -n "$CC"; then
1899 echo "$ac_t""$CC" 1>&6
1901 echo "$ac_t""no" 1>&6
1904 if test -z "$CC"; then
1905 case "`uname -s`" in
1907 # Extract the first word of "cl", so it can be a program name with args.
1908 set dummy cl; ac_word=$2
1909 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1910 echo "configure:1911: checking for $ac_word" >&5
1912 if test -n "$CC"; then
1913 ac_cv_prog_CC="$CC" # Let the user override the test.
1915 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1917 for ac_dir in $ac_dummy; do
1918 test -z "$ac_dir" && ac_dir=.
1919 if test -f $ac_dir/$ac_word; then
1927 if test -n "$CC"; then
1928 echo "$ac_t""$CC" 1>&6
1930 echo "$ac_t""no" 1>&6
1935 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1938 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1939 echo "configure:1940: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1942 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1943 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1944 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1945 ac_cpp='$CPP '"$xe_cppflags"
1946 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1947 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1950 cat > conftest.$ac_ext << EOF
1952 #line 1953 "configure"
1953 #include "confdefs.h"
1957 if { (eval echo configure:1958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1958 ac_cv_prog_cc_works=yes
1959 # If we can't run a trivial program, we are probably using a cross compiler.
1960 if (./conftest; exit) 2>/dev/null; then
1961 ac_cv_prog_cc_cross=no
1963 ac_cv_prog_cc_cross=yes
1966 echo "configure: failed program was:" >&5
1967 cat conftest.$ac_ext >&5
1968 ac_cv_prog_cc_works=no
1972 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1973 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1974 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1975 ac_cpp='$CPP '"$xe_cppflags"
1976 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1977 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1980 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1981 if test $ac_cv_prog_cc_works = no; then
1982 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1984 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1985 echo "configure:1986: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1986 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1987 cross_compiling=$ac_cv_prog_cc_cross
1989 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1990 echo "configure:1991: checking whether we are using GNU C" >&5
1992 cat > conftest.c <<EOF
1997 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1998: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2003 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2005 if test $ac_cv_prog_gcc = yes; then
2011 ac_test_CFLAGS="${CFLAGS+set}"
2012 ac_save_CFLAGS="$CFLAGS"
2014 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2015 echo "configure:2016: checking whether ${CC-cc} accepts -g" >&5
2017 echo 'void f(){}' > conftest.c
2018 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2026 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2027 if test "$ac_test_CFLAGS" = set; then
2028 CFLAGS="$ac_save_CFLAGS"
2029 elif test $ac_cv_prog_cc_g = yes; then
2030 if test "$GCC" = yes; then
2036 if test "$GCC" = yes; then
2043 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then
2045 # Extract the first word of "gcc", so it can be a program name with args.
2046 set dummy gcc; ac_word=$2
2047 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2048 echo "configure:2049: checking for $ac_word" >&5
2050 if test -n "$CC"; then
2051 ac_cv_prog_CC="$CC" # Let the user override the test.
2053 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2055 for ac_dir in $ac_dummy; do
2056 test -z "$ac_dir" && ac_dir=.
2057 if test -f $ac_dir/$ac_word; then
2065 if test -n "$CC"; then
2066 echo "$ac_t""$CC" 1>&6
2068 echo "$ac_t""no" 1>&6
2071 if test -z "$CC"; then
2072 # Extract the first word of "cc", so it can be a program name with args.
2073 set dummy cc; ac_word=$2
2074 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2075 echo "configure:2076: checking for $ac_word" >&5
2077 if test -n "$CC"; then
2078 ac_cv_prog_CC="$CC" # Let the user override the test.
2080 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2083 for ac_dir in $ac_dummy; do
2084 test -z "$ac_dir" && ac_dir=.
2085 if test -f $ac_dir/$ac_word; then
2086 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2087 ac_prog_rejected=yes
2095 if test $ac_prog_rejected = yes; then
2096 # We found a bogon in the path, so make sure we never use it.
2097 set dummy $ac_cv_prog_CC
2099 if test $# -gt 0; then
2100 # We chose a different compiler from the bogus one.
2101 # However, it has the same basename, so the bogon will be chosen
2102 # first if we set CC to just the basename; use the full file name.
2104 set dummy "$ac_dir/$ac_word" "$@"
2111 if test -n "$CC"; then
2112 echo "$ac_t""$CC" 1>&6
2114 echo "$ac_t""no" 1>&6
2117 if test -z "$CC"; then
2118 case "`uname -s`" in
2120 # Extract the first word of "cl", so it can be a program name with args.
2121 set dummy cl; ac_word=$2
2122 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2123 echo "configure:2124: checking for $ac_word" >&5
2125 if test -n "$CC"; then
2126 ac_cv_prog_CC="$CC" # Let the user override the test.
2128 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2130 for ac_dir in $ac_dummy; do
2131 test -z "$ac_dir" && ac_dir=.
2132 if test -f $ac_dir/$ac_word; then
2140 if test -n "$CC"; then
2141 echo "$ac_t""$CC" 1>&6
2143 echo "$ac_t""no" 1>&6
2148 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2151 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2152 echo "configure:2153: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2155 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2156 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2157 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
2158 ac_cpp='$CPP '"$xe_cppflags"
2159 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
2160 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2163 cat > conftest.$ac_ext << EOF
2165 #line 2166 "configure"
2166 #include "confdefs.h"
2170 if { (eval echo configure:2171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2171 ac_cv_prog_cc_works=yes
2172 # If we can't run a trivial program, we are probably using a cross compiler.
2173 if (./conftest; exit) 2>/dev/null; then
2174 ac_cv_prog_cc_cross=no
2176 ac_cv_prog_cc_cross=yes
2179 echo "configure: failed program was:" >&5
2180 cat conftest.$ac_ext >&5
2181 ac_cv_prog_cc_works=no
2185 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2186 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2187 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
2188 ac_cpp='$CPP '"$xe_cppflags"
2189 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
2190 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2193 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2194 if test $ac_cv_prog_cc_works = no; then
2195 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2197 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2198 echo "configure:2199: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2199 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2200 cross_compiling=$ac_cv_prog_cc_cross
2202 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2203 echo "configure:2204: checking whether we are using GNU C" >&5
2205 cat > conftest.c <<EOF
2210 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2211: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2216 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2218 if test $ac_cv_prog_gcc = yes; then
2224 ac_test_CFLAGS="${CFLAGS+set}"
2225 ac_save_CFLAGS="$CFLAGS"
2227 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2228 echo "configure:2229: checking whether ${CC-cc} accepts -g" >&5
2230 echo 'void f(){}' > conftest.c
2231 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2239 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2240 if test "$ac_test_CFLAGS" = set; then
2241 CFLAGS="$ac_save_CFLAGS"
2242 elif test $ac_cv_prog_cc_g = yes; then
2243 if test "$GCC" = yes; then
2249 if test "$GCC" = yes; then
2257 CFLAGS="$xe_save_CFLAGS"
2260 test -n "$CPP" -a -d "$CPP" && CPP=
2262 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP"
2264 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2265 echo "configure:2266: checking how to run the C preprocessor" >&5
2266 # On Suns, sometimes $CPP names a directory.
2267 if test -n "$CPP" && test -d "$CPP"; then
2270 if test -z "$CPP"; then
2272 # This must be in double quotes, not single quotes, because CPP may get
2273 # substituted into the Makefile and "${CC-cc}" will confuse make.
2275 # On the NeXT, cc -E runs the code through the compiler's parser,
2276 # not just through cpp.
2277 cat > conftest.$ac_ext <<EOF
2278 #line 2279 "configure"
2279 #include "confdefs.h"
2283 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2284 { (eval echo configure:2285: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2285 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2286 if test -z "$ac_err"; then
2290 echo "configure: failed program was:" >&5
2291 cat conftest.$ac_ext >&5
2293 CPP="${CC-cc} -E -traditional-cpp"
2294 cat > conftest.$ac_ext <<EOF
2295 #line 2296 "configure"
2296 #include "confdefs.h"
2300 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2301 { (eval echo configure:2302: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2302 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2303 if test -z "$ac_err"; then
2307 echo "configure: failed program was:" >&5
2308 cat conftest.$ac_ext >&5
2310 CPP="${CC-cc} -nologo -E"
2311 cat > conftest.$ac_ext <<EOF
2312 #line 2313 "configure"
2313 #include "confdefs.h"
2317 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2318 { (eval echo configure:2319: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2319 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2320 if test -z "$ac_err"; then
2324 echo "configure: failed program was:" >&5
2325 cat conftest.$ac_ext >&5
2334 ac_cv_prog_CPP="$CPP"
2335 CPP="$ac_cv_prog_CPP"
2337 ac_cv_prog_CPP="$CPP"
2339 echo "$ac_t""$CPP" 1>&6
2343 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2344 echo "configure:2345: checking for AIX" >&5
2345 cat > conftest.$ac_ext <<EOF
2346 #line 2347 "configure"
2347 #include "confdefs.h"
2353 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2354 egrep "yes" >/dev/null 2>&1; then
2356 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
2357 Defining _ALL_SOURCE
2359 cat >> confdefs.h <<\EOF
2360 #define _ALL_SOURCE 1
2366 echo "$ac_t""no" 1>&6
2372 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6
2373 echo "configure:2374: checking for GNU libc" >&5
2374 cat > conftest.$ac_ext <<EOF
2375 #line 2376 "configure"
2376 #include "confdefs.h"
2377 #include <features.h>
2380 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
2381 #error Not a GNU libc system :-(
2382 ******* ======= ******** &&&&&&&&
2387 if { (eval echo configure:2388: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2391 echo "configure: failed program was:" >&5
2392 cat conftest.$ac_ext >&5
2397 echo "$ac_t""$have_glibc" 1>&6
2398 test "$have_glibc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
2399 Defining _GNU_SOURCE
2401 cat >> confdefs.h <<\EOF
2402 #define _GNU_SOURCE 1
2409 { test "$extra_verbose" = "yes" && cat << \EOF
2410 Defining __EXTENSIONS__
2412 cat >> confdefs.h <<\EOF
2413 #define __EXTENSIONS__ 1
2417 if test "$os_release" -ge 55; then
2418 { test "$extra_verbose" = "yes" && cat << \EOF
2419 Defining _XOPEN_SOURCE = 500
2421 cat >> confdefs.h <<\EOF
2422 #define _XOPEN_SOURCE 500
2426 { test "$extra_verbose" = "yes" && cat << \EOF
2427 Defining _XOPEN_SOURCE_EXTENDED
2429 cat >> confdefs.h <<\EOF
2430 #define _XOPEN_SOURCE_EXTENDED 1
2436 { test "$extra_verbose" = "yes" && cat << \EOF
2437 Defining _POSIX_C_SOURCE = 199506L
2439 cat >> confdefs.h <<\EOF
2440 #define _POSIX_C_SOURCE 199506L
2444 { test "$extra_verbose" = "yes" && cat << \EOF
2445 Defining _XOPEN_SOURCE = 500
2447 cat >> confdefs.h <<\EOF
2448 #define _XOPEN_SOURCE 500
2452 { test "$extra_verbose" = "yes" && cat << \EOF
2453 Defining _XOPEN_SOURCE_EXTENDED
2455 cat >> confdefs.h <<\EOF
2456 #define _XOPEN_SOURCE_EXTENDED 1
2463 cat > conftest.$ac_ext <<EOF
2464 #line 2465 "configure"
2465 #include "confdefs.h"
2467 #if defined __SUNPRO_C
2469 #elif defined __DECC
2471 #elif defined __USLC__ && defined __SCO_VERSION__
2478 if { (eval echo configure:2479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
2483 echo "configure: failed program was:" >&5
2484 cat conftest.$ac_ext >&5
2486 case "$conftest_rc" in
2487 11) echo "You appear to be using the SunPro C compiler."; __SUNPRO_C=yes ;;
2488 12) echo "You appear to be using the DEC C compiler." ; __DECC=yes ;;
2489 13) echo "You appear to be using the SCO C compiler." ; __USLC__=yes ;;
2497 echo "Extracting information from the machine- and system-dependent headers..."
2499 tempcname="conftest.c"
2503 cat > $tempcname < confdefs.h
2504 cat >> $tempcname <<EOF
2506 #define C_SWITCH_SITE
2507 #define C_SWITCH_X_SITE
2508 #define LD_SWITCH_SITE
2509 #define LD_SWITCH_X_SITE
2510 #define LD_SWITCH_X_SITE_AUX
2511 #define OS_RELEASE $os_release
2513 #ifdef config_opsysfile
2514 #include "$srcdir/src/$opsysfile"
2517 #ifdef config_machfile
2518 #include "$srcdir/src/$machfile"
2521 #ifndef LIBS_MACHINE
2522 #define LIBS_MACHINE
2524 configure___ libs_machine=LIBS_MACHINE
2529 configure___ libs_system=LIBS_SYSTEM
2531 #ifndef LIBS_TERMCAP
2532 #define LIBS_TERMCAP
2534 configure___ libs_termcap=LIBS_TERMCAP
2536 #ifndef LIB_STANDARD
2537 #define LIB_STANDARD
2539 configure___ libs_standard=LIB_STANDARD
2542 #ifndef OBJECTS_MACHINE
2543 #define OBJECTS_MACHINE
2545 configure___ objects_machine=OBJECTS_MACHINE
2547 #ifndef OBJECTS_SYSTEM
2548 #define OBJECTS_SYSTEM
2550 configure___ objects_system=OBJECTS_SYSTEM
2553 #ifndef C_SWITCH_MACHINE
2554 #define C_SWITCH_MACHINE
2556 configure___ c_switch_machine=C_SWITCH_MACHINE
2558 #ifndef C_SWITCH_SYSTEM
2559 #define C_SWITCH_SYSTEM
2561 configure___ c_switch_system=C_SWITCH_SYSTEM
2564 #ifndef LD_SWITCH_MACHINE
2565 #define LD_SWITCH_MACHINE
2567 configure___ ld_switch_machine=LD_SWITCH_MACHINE
2569 #ifndef LD_SWITCH_SYSTEM
2570 #define LD_SWITCH_SYSTEM
2572 configure___ ld_switch_system=LD_SWITCH_SYSTEM
2576 #define UNEXEC "unexec.o"
2578 configure___ unexec=UNEXEC
2581 #ifndef LD_SWITCH_SHARED
2582 #define LD_SWITCH_SHARED "-c"
2584 configure___ ld_switch_shared=LD_SWITCH_SHARED
2587 #define ORDINARY_LD "\$(CC) \$(CFLAGS)"
2588 configure___ ordinary_ld=ORDINARY_LD
2590 #ifdef ORDINARY_LINK
2591 #define LD ORDINARY_LD
2592 #else /* no ORDINARY LINK */
2593 #ifdef COFF_ENCAPSULATE
2594 #define LD "\$(CC) -nostdlib"
2595 #else /* not COFF_ENCAPSULATE */
2598 #else /* ! defined (LINKER) */
2600 #endif /* ! defined (LINKER) */
2601 #endif /* ! defined (COFF_ENCAPSULATE) */
2602 #endif /* not ORDINARY_LINK */
2608 configure___ lib_gcc=LIB_GCC
2610 #ifndef LD_TEXT_START_ADDR
2611 #define LD_TEXT_START_ADDR
2613 configure___ ld_text_start_addr=LD_TEXT_START_ADDR
2616 #if ! defined (ORDINARY_LINK) && !defined (START_FILES)
2618 #ifdef COFF_ENCAPSULATE
2619 #define START_FILES "pre-crt0.o /usr/local/lib/gcc-crt0.o"
2620 #else /* ! defined (COFF_ENCAPSULATE) */
2621 #define START_FILES "pre-crt0.o /lib/crt0.o"
2622 #endif /* ! defined (COFF_ENCAPSULATE) */
2623 #else /* ! defined (NO_REMAP) */
2624 #define START_FILES "ecrt0.o"
2625 #endif /* ! defined (NO_REMAP) */
2626 #endif /* no ORDINARY_LINK */
2630 configure___ start_files=START_FILES
2632 #ifdef ORDINARY_LINK
2633 configure___ ordinary_link=yes
2635 configure___ ordinary_link=no
2638 #ifdef SYSTEM_MALLOC
2639 configure___ system_malloc=yes
2641 configure___ system_malloc=no
2645 configure___ have_terminfo=yes
2647 configure___ have_terminfo=no
2650 #ifdef MAIL_USE_FLOCK
2651 configure___ mail_use_flock=yes
2653 configure___ mail_use_flock=no
2656 #ifdef MAIL_USE_LOCKF
2657 configure___ mail_use_lockf=yes
2659 configure___ mail_use_lockf=no
2662 #ifdef MAIL_USE_LOCKING
2663 configure___ mail_use_locking=yes
2665 configure___ mail_use_locking=no
2668 #ifdef HAVE_WIN32_PROCESSES
2669 configure___ win32_processes=yes
2671 configure___ win32_processes=no
2676 CPP=`eval "echo $CPP $CPPFLAGS"`
2677 eval `$CPP -Isrc $tempcname \
2678 | sed -n -e "s/[ ]*=[ \"]*/='/" -e "s/[ \"]*\$/'/" -e "s/^configure___//p"`
2682 if test "$pdump" = "yes"; then
2691 test "$extra_verbose" = "yes" && \
2692 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 ""
2694 case "$opsys" in mingw* | cygwin*)
2695 cygwin_include=`eval "gcc -print-file-name=libc.a"` ;
2696 cygwin_include=`eval "dirname $cygwin_include"` ;
2697 cygwin_include="-I$cygwin_include/../include" ;
2698 extra_includes="$cygwin_include/mingw32 $cygwin_include/mingw $cygwin_include" ;
2699 case "$opsys" in mingw*)
2700 c_switch_system="$c_switch_system $extra_includes" && if test "$extra_verbose" = "yes"; then echo " Appending \"$extra_includes\" to \$c_switch_system"; fi ;;
2705 test "$ordinary_link" = "no" -a -z "$libs_standard" && libs_standard="-lc"
2708 test "$__DECC" = "yes" && c_switch_site="$c_switch_site -std1" && if test "$extra_verbose" = "yes"; then echo " Appending \"-std1\" to \$c_switch_site"; fi
2710 if test "$__USLC__" = yes; then
2711 echo $ac_n "checking for whether the -Kalloca compiler flag is needed""... $ac_c" 1>&6
2712 echo "configure:2713: checking for whether the -Kalloca compiler flag is needed" >&5
2714 cat > conftest.$ac_ext <<EOF
2715 #line 2716 "configure"
2716 #include "confdefs.h"
2719 void *x = alloca(4);
2722 if { (eval echo configure:2723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2726 echo "configure: failed program was:" >&5
2727 cat conftest.$ac_ext >&5
2730 xe_save_c_switch_system="$c_switch_system"
2731 c_switch_system="$c_switch_system -Kalloca"
2732 cat > conftest.$ac_ext <<EOF
2733 #line 2734 "configure"
2734 #include "confdefs.h"
2737 void *x = alloca(4);
2740 if { (eval echo configure:2741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2744 echo "configure: failed program was:" >&5
2745 cat conftest.$ac_ext >&5
2748 c_switch_system="$xe_save_c_switch_system"
2751 echo "$ac_t""$need_kalloca" 1>&6
2752 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
2755 if test "$cflags_specified" = "no"; then
2756 if test "$GCC" = "yes"; then
2757 CFLAGS="-g -O3 -Wall -Wno-switch -Winline -Wmissing-prototypes -Wshadow"
2758 test "$have_glibc" != "yes" && CFLAGS="$CFLAGS -Wpointer-arith"
2759 elif test "$__SUNPRO_C" = "yes"; then
2761 sol2 ) CFLAGS="-v -xO4" ;;
2762 sunos4* ) CFLAGS="-xO2";;
2764 elif test "$__DECC" = "yes"; then
2766 elif test "$CC" = "xlc"; then
2767 CFLAGS="-g -O3 -qstrict -qnoansialias -qlibansi -qinfo -qro -qmaxmem=20000"
2772 if test "$GCC" = "yes"; then
2773 echo $ac_n "checking for buggy gcc versions""... $ac_c" 1>&6
2774 echo "configure:2775: checking for buggy gcc versions" >&5
2775 GCC_VERSION=`$CC --version`
2776 case `uname -s`:`uname -m`:$GCC_VERSION in
2777 *:sun4*:2.8.1|*:sun4*:egcs-2.90.*)
2781 *-fno-schedule-insns*) ;;
2783 echo "$ac_t""yes" 1>&6
2784 echo "configure: warning: Don't use -O2 with gcc 2.8.1 and egcs 1.0 under SPARC architectures" 1>&2
2785 echo "configure: warning: without also using -fno-schedule-insns." 1>&2
2786 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2792 Linux:alpha:egcs-2.91.*)
2793 echo "$ac_t""yes" 1>&6
2794 echo "configure: warning: There have been reports of egcs-1.1 not compiling XEmacs correctly on" 1>&2
2795 echo "configure: warning: Alpha Linux. There have also been reports that egcs-1.0.3a is O.K." 1>&2
2796 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2801 case "$GCC_VERSION" in
2804 *-fno-strength-reduce*) ;;
2806 echo "$ac_t""yes" 1>&6
2807 echo "configure: warning: Don't use -O2 with gcc 2.7.2 under Intel/XXX without also using" 1>&2
2808 echo "configure: warning: -fno-strength-reduce." 1>&2
2809 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2815 *-fno-caller-saves*) ;;
2817 echo "$ac_t""yes" 1>&6
2818 echo "configure: warning: Don't use -O2 with gcc 2.7.2 under Intel/XXX without also using" 1>&2
2819 echo "configure: warning: -fno-caller-saves." 1>&2
2820 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2827 echo "$ac_t""no" 1>&6
2831 if test "$GCC" = "yes"; then
2832 set x $ld_switch_system; shift; ld_switch_system=""
2833 while test -n "$1"; do
2835 -L | -l | -u ) ld_switch_system="$ld_switch_system $1 $2"; shift ;;
2836 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_system="$ld_switch_system $1" ;;
2838 * ) ld_switch_system="$ld_switch_system -Xlinker $1" ;;
2844 if test "$GCC" = "yes"; then
2845 set x $ld_switch_machine; shift; ld_switch_machine=""
2846 while test -n "$1"; do
2848 -L | -l | -u ) ld_switch_machine="$ld_switch_machine $1 $2"; shift ;;
2849 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_machine="$ld_switch_machine $1" ;;
2851 * ) ld_switch_machine="$ld_switch_machine -Xlinker $1" ;;
2857 if test "$GCC" = "yes"; then
2858 set x $LDFLAGS; shift; LDFLAGS=""
2859 while test -n "$1"; do
2861 -L | -l | -u ) LDFLAGS="$LDFLAGS $1 $2"; shift ;;
2862 -L* | -l* | -u* | -Wl* | -pg ) LDFLAGS="$LDFLAGS $1" ;;
2864 * ) LDFLAGS="$LDFLAGS -Xlinker $1" ;;
2870 if test "$GCC" = "yes"; then
2871 set x $ld_call_shared; shift; ld_call_shared=""
2872 while test -n "$1"; do
2874 -L | -l | -u ) ld_call_shared="$ld_call_shared $1 $2"; shift ;;
2875 -L* | -l* | -u* | -Wl* | -pg ) ld_call_shared="$ld_call_shared $1" ;;
2877 * ) ld_call_shared="$ld_call_shared -Xlinker $1" ;;
2883 test -n "$objects_machine" && extra_objs="$extra_objs $objects_machine" && if test "$extra_verbose" = "yes"; then
2884 echo " xemacs will be linked with \"$objects_machine\""
2886 test -n "$objects_system" && extra_objs="$extra_objs $objects_system" && if test "$extra_verbose" = "yes"; then
2887 echo " xemacs will be linked with \"$objects_system\""
2889 test -n "$unexec" && test ! "$pdump" = "yes" && extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then
2890 echo " xemacs will be linked with \"$unexec\""
2892 test "$pdump" = "yes" && extra_objs="$extra_objs dumper.o" && if test "$extra_verbose" = "yes"; then
2893 echo " xemacs will be linked with \"dumper.o\""
2896 echo $ac_n "checking for dynodump""... $ac_c" 1>&6
2897 echo "configure:2898: checking for dynodump" >&5
2898 if test "$unexec" != "unexsol2.o"; then
2899 echo "$ac_t""no" 1>&6
2901 echo "$ac_t""yes" 1>&6
2902 { test "$extra_verbose" = "yes" && cat << \EOF
2905 cat >> confdefs.h <<\EOF
2910 MAKE_SUBDIR="$MAKE_SUBDIR dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$MAKE_SUBDIR"; fi
2911 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$SRC_SUBDIR_DEPS"; fi
2913 sparc ) dynodump_arch=sparc ;;
2914 *86* ) dynodump_arch=i386 ;;
2915 powerpc ) dynodump_arch=ppc ;;
2917 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
2921 test "$machine$opsys" = "powerpclinux" && start_flags="-T $srcdir/src/ppc.ldscript"
2923 if test "$unexec" = "unexaix.o"; then
2924 if test "$dynamic" = "no"; then
2925 start_flags="-Wl,-bnso,-bnodelcsect"
2926 test "$GCC" = "yes" && start_flags="-B/bin/ ${start_flags}"
2927 for f in "/lib/syscalls.exp" "/lib/threads.exp"; do
2928 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; fi
2930 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do
2931 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi
2934 echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6
2935 echo "configure:2936: checking for terminateAndUnload in -lC" >&5
2936 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'`
2938 xe_check_libs=" -lC "
2939 cat > conftest.$ac_ext <<EOF
2940 #line 2941 "configure"
2941 #include "confdefs.h"
2942 /* Override any gcc2 internal prototype to avoid an error. */
2943 /* We use char because int might match the return type of a gcc2
2944 builtin and then its argument prototype would still apply. */
2945 char terminateAndUnload();
2948 terminateAndUnload()
2951 if { (eval echo configure:2952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2953 eval "ac_cv_lib_$ac_lib_var=yes"
2955 echo "configure: failed program was:" >&5
2956 cat conftest.$ac_ext >&5
2958 eval "ac_cv_lib_$ac_lib_var=no"
2963 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
2964 echo "$ac_t""yes" 1>&6
2965 libs_system="$libs_system -lC" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lC\" to \$libs_system"; fi
2967 echo "$ac_t""no" 1>&6
2972 elif test -n "$ld_text_start_addr"; then
2973 start_flags="-T $ld_text_start_addr -e __start"
2979 if test "$ordinary_link" = "no" -a "$GCC" = "yes"; then
2980 test -z "$linker" && linker='$(CC) -nostdlib'
2981 test -z "$lib_gcc" && lib_gcc='`$(CC) -print-libgcc-file-name`'
2983 test "$GCC" != "yes" && lib_gcc=
2989 case "$site_libraries" in *:* ) site_libraries="`echo '' $site_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
2990 if test -n "$site_libraries"; then
2991 for arg in $site_libraries; do
2994 * ) test -d "$arg" || \
2995 { echo "Error:" "Invalid site library \`$arg': no such directory" >&2; exit 1; }
2998 ld_switch_site="$ld_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$ld_switch_site"; fi
3002 case "$site_includes" in *:* ) site_includes="`echo '' $site_includes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
3003 if test -n "$site_includes"; then
3004 for arg in $site_includes; do
3007 * ) test -d "$arg" || \
3008 { echo "Error:" "Invalid site include \`$arg': no such directory" >&2; exit 1; }
3011 c_switch_site="$c_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$c_switch_site"; fi
3015 case "$site_prefixes" in *:* ) site_prefixes="`echo '' $site_prefixes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
3016 if test -n "$site_prefixes"; then
3017 for dir in $site_prefixes; do
3018 lib_dir="${dir}/lib"
3019 inc_dir="${dir}/include"
3020 if test ! -d "$dir"; then
3021 { echo "Error:" "Invalid site prefix \`$dir': no such directory" >&2; exit 1; }
3022 elif test ! -d "$lib_dir"; then
3023 { echo "Error:" "Invalid site prefix \`$dir': no such directory \`$lib_dir'" >&2; exit 1; }
3025 if test -d "$inc_dir"; then
3026 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
3028 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
3034 for dir in "/usr/ccs/lib"; do
3035 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
3038 case "$site_runtime_libraries" in *:* ) site_runtime_libraries="`echo '' $site_runtime_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
3039 if test -n "$site_runtime_libraries"; then
3040 LD_RUN_PATH="`echo $site_runtime_libraries | sed -e 's/ */:/g'`"
3048 if test -n "$add_runtime_path"; then :;
3049 elif test "$dynamic" = "no"; then add_runtime_path=no
3050 elif test -n "$LD_RUN_PATH"; then add_runtime_path=yes
3051 else case "$opsys" in
3052 sol2 | irix* | *bsd* | decosf* ) add_runtime_path=yes ;;
3053 * ) add_runtime_path=no ;;
3057 if test "$add_runtime_path" = "yes"; then
3058 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6
3059 echo "configure:3060: checking "for runtime libraries flag"" >&5
3061 sol2 ) dash_r="-R" ;;
3062 decosf* | linux* | irix*) dash_r="-rpath " ;;
3065 for try_dash_r in "-R" "-R " "-rpath "; do
3066 xe_check_libs="${try_dash_r}/no/such/file-or-directory"
3068 if test "$GCC" = "yes"; then
3069 set x $xe_check_libs; shift; xe_check_libs=""
3070 while test -n "$1"; do
3072 -L | -l | -u ) xe_check_libs="$xe_check_libs $1 $2"; shift ;;
3073 -L* | -l* | -u* | -Wl* | -pg ) xe_check_libs="$xe_check_libs $1" ;;
3075 * ) xe_check_libs="$xe_check_libs -Xlinker $1" ;;
3080 cat > conftest.$ac_ext <<EOF
3081 #line 3082 "configure"
3082 #include "confdefs.h"
3088 if { (eval echo configure:3089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3090 dash_r="$try_dash_r"
3092 echo "configure: failed program was:" >&5
3093 cat conftest.$ac_ext >&5
3097 test -n "$dash_r" && break
3100 if test -n "$dash_r";
3101 then echo "$ac_t"""\"${dash_r}\""" 1>&6
3102 else echo "$ac_t""NONE" 1>&6
3106 xe_add_unique_runpath_dir='
3108 for xe_dir in $runpath_dirs; do test "$xe_dir" = "$xe_runpath_dir" && xe_add_p=no
3110 if test "$xe_add_p" = "yes"; then
3111 test -n "$runpath" && runpath="${runpath}:"
3112 runpath="${runpath}${xe_runpath_dir}"
3113 runpath_dirs="$runpath_dirs $xe_runpath_dir"
3119 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
3120 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
3121 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
3123 runpath="" runpath_dirs=""
3124 if test -n "$LD_RUN_PATH"; then
3125 runpath="$LD_RUN_PATH"
3126 elif test "$GCC" = "yes"; then
3127 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
3128 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
3129 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
3130 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
3131 case "$arg" in P,* | -L* | -R* )
3132 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
3134 xe_runpath_dir="$dir"
3135 test "$xe_runpath_dir" != "/lib" -a \
3136 "$xe_runpath_dir" != "/usr/lib" -a \
3137 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
3138 eval "$xe_add_unique_runpath_dir"
3143 ld_switch_run="$ld_switch_run_save"
3146 for arg in $ld_switch_site $ld_switch_x_site; do
3147 case "$arg" in -L*) {
3148 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
3149 test "$xe_runpath_dir" != "/lib" -a \
3150 "$xe_runpath_dir" != "/usr/lib" -a \
3151 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
3152 eval "$xe_add_unique_runpath_dir"
3155 if test "$opsys $need_motif" = "sol2 yes"; then
3156 xe_runpath_dir="/opt/SUNWdt/lib";
3157 eval "$xe_add_unique_runpath_dir";
3160 if test -n "$runpath"; then
3161 ld_switch_run="${dash_r}${runpath}"
3163 if test "$GCC" = "yes"; then
3164 set x $ld_switch_run; shift; ld_switch_run=""
3165 while test -n "$1"; do
3167 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
3168 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
3170 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
3175 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
3183 if test "$with_dlmalloc" != "no"; then
3188 after_morecore_hook_exists=yes
3189 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
3190 echo "configure:3191: checking for malloc_set_state" >&5
3192 cat > conftest.$ac_ext <<EOF
3193 #line 3194 "configure"
3194 #include "confdefs.h"
3195 /* System header to define __stub macros and hopefully few prototypes,
3196 which can conflict with char malloc_set_state(); below. */
3198 /* Override any gcc2 internal prototype to avoid an error. */
3199 /* We use char because int might match the return type of a gcc2
3200 builtin and then its argument prototype would still apply. */
3201 char malloc_set_state();
3205 /* The GNU C library defines this for functions which it implements
3206 to always fail with ENOSYS. Some functions are actually named
3207 something starting with __ and the normal name is an alias. */
3208 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
3216 if { (eval echo configure:3217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3218 eval "ac_cv_func_malloc_set_state=yes"
3220 echo "configure: failed program was:" >&5
3221 cat conftest.$ac_ext >&5
3223 eval "ac_cv_func_malloc_set_state=no"
3227 if eval "test \"`echo '$ac_cv_func_'malloc_set_state`\" = yes"; then
3228 echo "$ac_t""yes" 1>&6
3231 echo "$ac_t""no" 1>&6
3235 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
3236 echo "configure:3237: checking whether __after_morecore_hook exists" >&5
3237 cat > conftest.$ac_ext <<EOF
3238 #line 3239 "configure"
3239 #include "confdefs.h"
3240 extern void (* __after_morecore_hook)();
3242 __after_morecore_hook = 0
3245 if { (eval echo configure:3246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3247 echo "$ac_t""yes" 1>&6
3249 echo "configure: failed program was:" >&5
3250 cat conftest.$ac_ext >&5
3252 echo "$ac_t""no" 1>&6
3253 after_morecore_hook_exists=no
3256 if test "$system_malloc" = "yes" ; then
3259 - The GNU allocators don't work with this system configuration."
3260 elif test "$with_system_malloc" = "yes" ; then
3263 - User chose not to use GNU allocators."
3264 elif test "$with_debug_malloc" = "yes" ; then
3267 - User chose to use Debugging Malloc."
3270 if test "$doug_lea_malloc" = "yes" -a "$GNU_MALLOC" = "yes" ; then
3272 - Using Doug Lea's new malloc from the GNU C Library."
3273 { test "$extra_verbose" = "yes" && cat << \EOF
3274 Defining DOUG_LEA_MALLOC
3276 cat >> confdefs.h <<\EOF
3277 #define DOUG_LEA_MALLOC 1
3281 if test "$after_morecore_hook_exists" = "no" ; then
3283 - Using Doug Lea's new malloc from the Linux C Library."
3284 { test "$extra_verbose" = "yes" && cat << \EOF
3285 Defining _NO_MALLOC_WARNING_
3287 cat >> confdefs.h <<\EOF
3288 #define _NO_MALLOC_WARNING_ 1
3298 # Extract the first word of "ranlib", so it can be a program name with args.
3299 set dummy ranlib; ac_word=$2
3300 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3301 echo "configure:3302: checking for $ac_word" >&5
3303 if test -n "$RANLIB"; then
3304 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3306 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3308 for ac_dir in $ac_dummy; do
3309 test -z "$ac_dir" && ac_dir=.
3310 if test -f $ac_dir/$ac_word; then
3311 ac_cv_prog_RANLIB="ranlib"
3316 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
3318 RANLIB="$ac_cv_prog_RANLIB"
3319 if test -n "$RANLIB"; then
3320 echo "$ac_t""$RANLIB" 1>&6
3322 echo "$ac_t""no" 1>&6
3326 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3327 if test -f $ac_dir/install-sh; then
3329 ac_install_sh="$ac_aux_dir/install-sh -c"
3331 elif test -f $ac_dir/install.sh; then
3333 ac_install_sh="$ac_aux_dir/install.sh -c"
3337 if test -z "$ac_aux_dir"; then
3338 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
3340 ac_config_guess=$ac_aux_dir/config.guess
3341 ac_config_sub=$ac_aux_dir/config.sub
3342 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
3344 # Find a good install program. We prefer a C program (faster),
3345 # so one script is as good as another. But avoid the broken or
3346 # incompatible versions:
3347 # SysV /etc/install, /usr/sbin/install
3348 # SunOS /usr/etc/install
3349 # IRIX /sbin/install
3351 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3352 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3353 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3354 # ./install, which can be erroneously created by make from ./install.sh.
3355 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3356 echo "configure:3357: checking for a BSD compatible install" >&5
3357 if test -z "$INSTALL"; then
3359 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3360 for ac_dir in $PATH; do
3361 # Account for people who put trailing slashes in PATH elements.
3363 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3365 # OSF1 and SCO ODT 3.0 have their own names for install.
3366 # Don't use installbsd from OSF since it installs stuff as root
3368 for ac_prog in ginstall scoinst install; do
3369 if test -f $ac_dir/$ac_prog; then
3370 if test $ac_prog = install &&
3371 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3372 # AIX install. It has an incompatible calling convention.
3375 ac_cv_path_install="$ac_dir/$ac_prog -c"
3385 if test "${ac_cv_path_install+set}" = set; then
3386 INSTALL="$ac_cv_path_install"
3388 # As a last resort, use the slow shell script. We don't cache a
3389 # path for INSTALL within a source directory, because that will
3390 # break other packages using the cache if that directory is
3391 # removed, or if the path is relative.
3392 INSTALL="$ac_install_sh"
3395 echo "$ac_t""$INSTALL" 1>&6
3397 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3398 # It thinks the first close brace ends the variable substitution.
3399 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3401 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3403 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3405 for ac_prog in 'bison -y' byacc
3407 # Extract the first word of "$ac_prog", so it can be a program name with args.
3408 set dummy $ac_prog; ac_word=$2
3409 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3410 echo "configure:3411: checking for $ac_word" >&5
3412 if test -n "$YACC"; then
3413 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3415 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3417 for ac_dir in $ac_dummy; do
3418 test -z "$ac_dir" && ac_dir=.
3419 if test -f $ac_dir/$ac_word; then
3420 ac_cv_prog_YACC="$ac_prog"
3426 YACC="$ac_cv_prog_YACC"
3427 if test -n "$YACC"; then
3428 echo "$ac_t""$YACC" 1>&6
3430 echo "$ac_t""no" 1>&6
3433 test -n "$YACC" && break
3435 test -n "$YACC" || YACC="yacc"
3438 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
3440 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3441 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3442 echo "configure:3443: checking for $ac_hdr" >&5
3444 cat > conftest.$ac_ext <<EOF
3445 #line 3446 "configure"
3446 #include "confdefs.h"
3449 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3450 { (eval echo configure:3451: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3451 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3452 if test -z "$ac_err"; then
3454 eval "ac_cv_header_$ac_safe=yes"
3457 echo "configure: failed program was:" >&5
3458 cat conftest.$ac_ext >&5
3460 eval "ac_cv_header_$ac_safe=no"
3463 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3464 echo "$ac_t""yes" 1>&6
3465 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3466 { test "$extra_verbose" = "yes" && cat << EOF
3469 cat >> confdefs.h <<EOF
3470 #define $ac_tr_hdr 1
3475 echo "$ac_t""no" 1>&6
3479 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
3480 echo "configure:3481: checking for sys/wait.h that is POSIX.1 compatible" >&5
3482 cat > conftest.$ac_ext <<EOF
3483 #line 3484 "configure"
3484 #include "confdefs.h"
3485 #include <sys/types.h>
3486 #include <sys/wait.h>
3488 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3491 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3496 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3499 if { (eval echo configure:3500: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3501 ac_cv_header_sys_wait_h=yes
3503 echo "configure: failed program was:" >&5
3504 cat conftest.$ac_ext >&5
3506 ac_cv_header_sys_wait_h=no
3510 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
3511 if test $ac_cv_header_sys_wait_h = yes; then
3512 { test "$extra_verbose" = "yes" && cat << \EOF
3513 Defining HAVE_SYS_WAIT_H
3515 cat >> confdefs.h <<\EOF
3516 #define HAVE_SYS_WAIT_H 1
3522 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3523 echo "configure:3524: checking for ANSI C header files" >&5
3525 cat > conftest.$ac_ext <<EOF
3526 #line 3527 "configure"
3527 #include "confdefs.h"
3533 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3534 { (eval echo configure:3535: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3535 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3536 if test -z "$ac_err"; then
3538 ac_cv_header_stdc=yes
3541 echo "configure: failed program was:" >&5
3542 cat conftest.$ac_ext >&5
3544 ac_cv_header_stdc=no
3548 if test $ac_cv_header_stdc = yes; then
3549 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3550 cat > conftest.$ac_ext <<EOF
3551 #line 3552 "configure"
3552 #include "confdefs.h"
3555 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3556 egrep "memchr" >/dev/null 2>&1; then
3560 ac_cv_header_stdc=no
3566 if test $ac_cv_header_stdc = yes; then
3567 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3568 cat > conftest.$ac_ext <<EOF
3569 #line 3570 "configure"
3570 #include "confdefs.h"
3573 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3574 egrep "free" >/dev/null 2>&1; then
3578 ac_cv_header_stdc=no
3584 if test $ac_cv_header_stdc = yes; then
3585 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3586 cat > conftest.$ac_ext <<EOF
3587 #line 3588 "configure"
3588 #include "confdefs.h"
3590 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3591 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3592 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3593 int main () { int i; for (i = 0; i < 256; i++)
3594 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3598 if { (eval echo configure:3599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
3603 echo "configure: failed program was:" >&5
3604 cat conftest.$ac_ext >&5
3606 ac_cv_header_stdc=no
3611 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3612 if test $ac_cv_header_stdc = yes; then
3613 { test "$extra_verbose" = "yes" && cat << \EOF
3614 Defining STDC_HEADERS
3616 cat >> confdefs.h <<\EOF
3617 #define STDC_HEADERS 1
3623 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3624 echo "configure:3625: checking whether time.h and sys/time.h may both be included" >&5
3626 cat > conftest.$ac_ext <<EOF
3627 #line 3628 "configure"
3628 #include "confdefs.h"
3629 #include <sys/types.h>
3630 #include <sys/time.h>
3636 if { (eval echo configure:3637: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3638 ac_cv_header_time=yes
3640 echo "configure: failed program was:" >&5
3641 cat conftest.$ac_ext >&5
3643 ac_cv_header_time=no
3647 echo "$ac_t""$ac_cv_header_time" 1>&6
3648 if test $ac_cv_header_time = yes; then
3649 { test "$extra_verbose" = "yes" && cat << \EOF
3650 Defining TIME_WITH_SYS_TIME
3652 cat >> confdefs.h <<\EOF
3653 #define TIME_WITH_SYS_TIME 1
3659 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
3660 echo "configure:3661: checking for sys_siglist declaration in signal.h or unistd.h" >&5
3662 cat > conftest.$ac_ext <<EOF
3663 #line 3664 "configure"
3664 #include "confdefs.h"
3665 #include <sys/types.h>
3667 /* NetBSD declares sys_siglist in unistd.h. */
3668 #ifdef HAVE_UNISTD_H
3672 char *msg = *(sys_siglist + 1);
3675 if { (eval echo configure:3676: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3677 ac_cv_decl_sys_siglist=yes
3679 echo "configure: failed program was:" >&5
3680 cat conftest.$ac_ext >&5
3682 ac_cv_decl_sys_siglist=no
3686 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
3687 if test $ac_cv_decl_sys_siglist = yes; then
3688 { test "$extra_verbose" = "yes" && cat << \EOF
3689 Defining SYS_SIGLIST_DECLARED
3691 cat >> confdefs.h <<\EOF
3692 #define SYS_SIGLIST_DECLARED 1
3699 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6
3700 echo "configure:3701: checking for struct utimbuf" >&5
3701 cat > conftest.$ac_ext <<EOF
3702 #line 3703 "configure"
3703 #include "confdefs.h"
3704 #ifdef TIME_WITH_SYS_TIME
3705 #include <sys/time.h>
3708 #ifdef HAVE_SYS_TIME_H
3709 #include <sys/time.h>
3718 static struct utimbuf x; x.actime = x.modtime;
3721 if { (eval echo configure:3722: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3723 echo "$ac_t""yes" 1>&6
3724 { test "$extra_verbose" = "yes" && cat << \EOF
3725 Defining HAVE_STRUCT_UTIMBUF
3727 cat >> confdefs.h <<\EOF
3728 #define HAVE_STRUCT_UTIMBUF 1
3733 echo "configure: failed program was:" >&5
3734 cat conftest.$ac_ext >&5
3736 echo "$ac_t""no" 1>&6
3740 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3741 echo "configure:3742: checking return type of signal handlers" >&5
3743 cat > conftest.$ac_ext <<EOF
3744 #line 3745 "configure"
3745 #include "confdefs.h"
3746 #include <sys/types.h>
3752 extern "C" void (*signal (int, void (*)(int)))(int);
3754 void (*signal ()) ();
3761 if { (eval echo configure:3762: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3763 ac_cv_type_signal=void
3765 echo "configure: failed program was:" >&5
3766 cat conftest.$ac_ext >&5
3768 ac_cv_type_signal=int
3772 echo "$ac_t""$ac_cv_type_signal" 1>&6
3773 { test "$extra_verbose" = "yes" && cat << EOF
3774 Defining RETSIGTYPE = $ac_cv_type_signal
3776 cat >> confdefs.h <<EOF
3777 #define RETSIGTYPE $ac_cv_type_signal
3782 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3783 echo "configure:3784: checking for size_t" >&5
3785 cat > conftest.$ac_ext <<EOF
3786 #line 3787 "configure"
3787 #include "confdefs.h"
3788 #include <sys/types.h>
3794 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3795 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3797 ac_cv_type_size_t=yes
3800 ac_cv_type_size_t=no
3804 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3805 if test $ac_cv_type_size_t = no; then
3806 { test "$extra_verbose" = "yes" && cat << \EOF
3807 Defining size_t = unsigned
3809 cat >> confdefs.h <<\EOF
3810 #define size_t unsigned
3816 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3817 echo "configure:3818: checking for pid_t" >&5
3819 cat > conftest.$ac_ext <<EOF
3820 #line 3821 "configure"
3821 #include "confdefs.h"
3822 #include <sys/types.h>
3828 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3829 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3831 ac_cv_type_pid_t=yes
3838 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3839 if test $ac_cv_type_pid_t = no; then
3840 { test "$extra_verbose" = "yes" && cat << \EOF
3841 Defining pid_t = int
3843 cat >> confdefs.h <<\EOF
3850 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3851 echo "configure:3852: checking for uid_t in sys/types.h" >&5
3853 cat > conftest.$ac_ext <<EOF
3854 #line 3855 "configure"
3855 #include "confdefs.h"
3856 #include <sys/types.h>
3858 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3859 egrep "uid_t" >/dev/null 2>&1; then
3861 ac_cv_type_uid_t=yes
3869 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3870 if test $ac_cv_type_uid_t = no; then
3871 { test "$extra_verbose" = "yes" && cat << \EOF
3872 Defining uid_t = int
3874 cat >> confdefs.h <<\EOF
3879 { test "$extra_verbose" = "yes" && cat << \EOF
3880 Defining gid_t = int
3882 cat >> confdefs.h <<\EOF
3889 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3890 echo "configure:3891: checking for mode_t" >&5
3892 cat > conftest.$ac_ext <<EOF
3893 #line 3894 "configure"
3894 #include "confdefs.h"
3895 #include <sys/types.h>
3901 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3902 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3904 ac_cv_type_mode_t=yes
3907 ac_cv_type_mode_t=no
3911 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3912 if test $ac_cv_type_mode_t = no; then
3913 { test "$extra_verbose" = "yes" && cat << \EOF
3914 Defining mode_t = int
3916 cat >> confdefs.h <<\EOF
3923 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3924 echo "configure:3925: checking for off_t" >&5
3926 cat > conftest.$ac_ext <<EOF
3927 #line 3928 "configure"
3928 #include "confdefs.h"
3929 #include <sys/types.h>
3935 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3936 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3938 ac_cv_type_off_t=yes
3945 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3946 if test $ac_cv_type_off_t = no; then
3947 { test "$extra_verbose" = "yes" && cat << \EOF
3948 Defining off_t = long
3950 cat >> confdefs.h <<\EOF
3957 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3958 echo "configure:3959: checking for ssize_t" >&5
3960 cat > conftest.$ac_ext <<EOF
3961 #line 3962 "configure"
3962 #include "confdefs.h"
3963 #include <sys/types.h>
3969 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3970 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3972 ac_cv_type_ssize_t=yes
3975 ac_cv_type_ssize_t=no
3979 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3980 if test $ac_cv_type_ssize_t = no; then
3981 { test "$extra_verbose" = "yes" && cat << \EOF
3982 Defining ssize_t = int
3984 cat >> confdefs.h <<\EOF
3992 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
3993 echo "configure:3994: checking for socklen_t" >&5
3994 cat > conftest.$ac_ext <<EOF
3995 #line 3996 "configure"
3996 #include "confdefs.h"
3997 #include <sys/socket.h>
4004 if { (eval echo configure:4005: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4006 echo "$ac_t""yes" 1>&6
4008 echo "configure: failed program was:" >&5
4009 cat conftest.$ac_ext >&5
4012 cat > conftest.$ac_ext <<EOF
4013 #line 4014 "configure"
4014 #include "confdefs.h"
4015 #include <sys/socket.h>
4016 int accept (int, struct sockaddr *, size_t *);
4022 if { (eval echo configure:4023: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4025 echo "$ac_t""size_t" 1>&6
4026 { test "$extra_verbose" = "yes" && cat << \EOF
4027 Defining socklen_t = size_t
4029 cat >> confdefs.h <<\EOF
4030 #define socklen_t size_t
4035 echo "configure: failed program was:" >&5
4036 cat conftest.$ac_ext >&5
4039 echo "$ac_t""int" 1>&6
4040 { test "$extra_verbose" = "yes" && cat << \EOF
4041 Defining socklen_t = int
4043 cat >> confdefs.h <<\EOF
4044 #define socklen_t int
4053 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
4054 echo "configure:4055: checking for struct timeval" >&5
4055 cat > conftest.$ac_ext <<EOF
4056 #line 4057 "configure"
4057 #include "confdefs.h"
4058 #ifdef TIME_WITH_SYS_TIME
4059 #include <sys/time.h>
4062 #ifdef HAVE_SYS_TIME_H
4063 #include <sys/time.h>
4069 static struct timeval x; x.tv_sec = x.tv_usec;
4072 if { (eval echo configure:4073: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4074 echo "$ac_t""yes" 1>&6
4076 { test "$extra_verbose" = "yes" && cat << \EOF
4077 Defining HAVE_TIMEVAL
4079 cat >> confdefs.h <<\EOF
4080 #define HAVE_TIMEVAL 1
4085 echo "configure: failed program was:" >&5
4086 cat conftest.$ac_ext >&5
4088 echo "$ac_t""no" 1>&6
4093 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
4094 echo "configure:4095: checking whether struct tm is in sys/time.h or time.h" >&5
4096 cat > conftest.$ac_ext <<EOF
4097 #line 4098 "configure"
4098 #include "confdefs.h"
4099 #include <sys/types.h>
4102 struct tm *tp; tp->tm_sec;
4105 if { (eval echo configure:4106: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4107 ac_cv_struct_tm=time.h
4109 echo "configure: failed program was:" >&5
4110 cat conftest.$ac_ext >&5
4112 ac_cv_struct_tm=sys/time.h
4116 echo "$ac_t""$ac_cv_struct_tm" 1>&6
4117 if test $ac_cv_struct_tm = sys/time.h; then
4118 { test "$extra_verbose" = "yes" && cat << \EOF
4119 Defining TM_IN_SYS_TIME
4121 cat >> confdefs.h <<\EOF
4122 #define TM_IN_SYS_TIME 1
4128 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
4129 echo "configure:4130: checking for tm_zone in struct tm" >&5
4131 cat > conftest.$ac_ext <<EOF
4132 #line 4133 "configure"
4133 #include "confdefs.h"
4134 #include <sys/types.h>
4135 #include <$ac_cv_struct_tm>
4137 struct tm tm; tm.tm_zone;
4140 if { (eval echo configure:4141: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4142 ac_cv_struct_tm_zone=yes
4144 echo "configure: failed program was:" >&5
4145 cat conftest.$ac_ext >&5
4147 ac_cv_struct_tm_zone=no
4151 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
4152 if test "$ac_cv_struct_tm_zone" = yes; then
4153 { test "$extra_verbose" = "yes" && cat << \EOF
4154 Defining HAVE_TM_ZONE
4156 cat >> confdefs.h <<\EOF
4157 #define HAVE_TM_ZONE 1
4162 echo $ac_n "checking for tzname""... $ac_c" 1>&6
4163 echo "configure:4164: checking for tzname" >&5
4165 cat > conftest.$ac_ext <<EOF
4166 #line 4167 "configure"
4167 #include "confdefs.h"
4169 #ifndef tzname /* For SGI. */
4170 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4176 if { (eval echo configure:4177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4178 ac_cv_var_tzname=yes
4180 echo "configure: failed program was:" >&5
4181 cat conftest.$ac_ext >&5
4187 echo "$ac_t""$ac_cv_var_tzname" 1>&6
4188 if test $ac_cv_var_tzname = yes; then
4189 { test "$extra_verbose" = "yes" && cat << \EOF
4190 Defining HAVE_TZNAME
4192 cat >> confdefs.h <<\EOF
4193 #define HAVE_TZNAME 1
4201 echo $ac_n "checking for working const""... $ac_c" 1>&6
4202 echo "configure:4203: checking for working const" >&5
4204 cat > conftest.$ac_ext <<EOF
4205 #line 4206 "configure"
4206 #include "confdefs.h"
4210 /* Ultrix mips cc rejects this. */
4211 typedef int charset[2]; const charset x;
4212 /* SunOS 4.1.1 cc rejects this. */
4213 char const *const *ccp;
4215 /* NEC SVR4.0.2 mips cc rejects this. */
4216 struct point {int x, y;};
4217 static struct point const zero = {0,0};
4218 /* AIX XL C 1.02.0.0 rejects this.
4219 It does not let you subtract one const X* pointer from another in an arm
4220 of an if-expression whose if-part is not a constant expression */
4221 const char *g = "string";
4222 ccp = &g + (g ? g-g : 0);
4223 /* HPUX 7.0 cc rejects these. */
4226 ccp = (char const *const *) p;
4227 { /* SCO 3.2v4 cc rejects this. */
4229 char const *s = 0 ? (char *) 0 : (char const *) 0;
4233 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4235 const int *foo = &x[0];
4238 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4239 typedef const int *iptr;
4243 { /* AIX XL C 1.02.0.0 rejects this saying
4244 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4245 struct s { int j; const int *ap[3]; };
4246 struct s *b; b->j = 5;
4248 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4254 if { (eval echo configure:4255: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4258 echo "configure: failed program was:" >&5
4259 cat conftest.$ac_ext >&5
4265 echo "$ac_t""$ac_cv_c_const" 1>&6
4266 if test $ac_cv_c_const = no; then
4267 { test "$extra_verbose" = "yes" && cat << \EOF
4270 cat >> confdefs.h <<\EOF
4278 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
4279 echo "configure:4280: checking whether ${MAKE-make} sets \${MAKE}" >&5
4280 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
4282 cat > conftestmake <<\EOF
4284 @echo 'ac_maketemp="${MAKE}"'
4286 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4287 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
4288 if test -n "$ac_maketemp"; then
4289 eval ac_cv_prog_make_${ac_make}_set=yes
4291 eval ac_cv_prog_make_${ac_make}_set=no
4294 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4295 echo "$ac_t""yes" 1>&6
4298 echo "$ac_t""no" 1>&6
4299 SET_MAKE="MAKE=${MAKE-make}"
4303 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
4304 echo "configure:4305: checking whether byte ordering is bigendian" >&5
4306 ac_cv_c_bigendian=unknown
4307 # See if sys/param.h defines the BYTE_ORDER macro.
4308 cat > conftest.$ac_ext <<EOF
4309 #line 4310 "configure"
4310 #include "confdefs.h"
4311 #include <sys/types.h>
4312 #include <sys/param.h>
4315 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4320 if { (eval echo configure:4321: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4322 # It does; now see whether it defined to BIG_ENDIAN or not.
4323 cat > conftest.$ac_ext <<EOF
4324 #line 4325 "configure"
4325 #include "confdefs.h"
4326 #include <sys/types.h>
4327 #include <sys/param.h>
4330 #if BYTE_ORDER != BIG_ENDIAN
4335 if { (eval echo configure:4336: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4337 ac_cv_c_bigendian=yes
4339 echo "configure: failed program was:" >&5
4340 cat conftest.$ac_ext >&5
4342 ac_cv_c_bigendian=no
4346 echo "configure: failed program was:" >&5
4347 cat conftest.$ac_ext >&5
4350 if test $ac_cv_c_bigendian = unknown; then
4351 cat > conftest.$ac_ext <<EOF
4352 #line 4353 "configure"
4353 #include "confdefs.h"
4355 /* Are we little or big endian? From Harbison&Steele. */
4359 char c[sizeof (long)];
4362 exit (u.c[sizeof (long) - 1] == 1);
4365 if { (eval echo configure:4366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4367 ac_cv_c_bigendian=no
4370 echo "configure: failed program was:" >&5
4371 cat conftest.$ac_ext >&5
4373 ac_cv_c_bigendian=yes
4378 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
4379 if test $ac_cv_c_bigendian = yes; then
4380 { test "$extra_verbose" = "yes" && cat << \EOF
4381 Defining WORDS_BIGENDIAN
4383 cat >> confdefs.h <<\EOF
4384 #define WORDS_BIGENDIAN 1
4391 echo $ac_n "checking size of short""... $ac_c" 1>&6
4392 echo "configure:4393: checking size of short" >&5
4394 cat > conftest.$ac_ext <<EOF
4395 #line 4396 "configure"
4396 #include "confdefs.h"
4400 FILE *f=fopen("conftestval", "w");
4402 fprintf(f, "%d\n", sizeof(short));
4406 if { (eval echo configure:4407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4408 ac_cv_sizeof_short=`cat conftestval`
4411 echo "configure: failed program was:" >&5
4412 cat conftest.$ac_ext >&5
4414 ac_cv_sizeof_short=0
4417 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
4418 { test "$extra_verbose" = "yes" && cat << EOF
4419 Defining SIZEOF_SHORT = $ac_cv_sizeof_short
4421 cat >> confdefs.h <<EOF
4422 #define SIZEOF_SHORT $ac_cv_sizeof_short
4427 if test "$ac_cv_sizeof_short" = 0; then
4429 echo "*** PANIC *** Configure tests are not working - compiler is broken."
4430 echo "*** PANIC *** Please examine config.log for compilation errors."
4433 echo $ac_n "checking size of int""... $ac_c" 1>&6
4434 echo "configure:4435: checking size of int" >&5
4436 cat > conftest.$ac_ext <<EOF
4437 #line 4438 "configure"
4438 #include "confdefs.h"
4442 FILE *f=fopen("conftestval", "w");
4444 fprintf(f, "%d\n", sizeof(int));
4448 if { (eval echo configure:4449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4450 ac_cv_sizeof_int=`cat conftestval`
4453 echo "configure: failed program was:" >&5
4454 cat conftest.$ac_ext >&5
4459 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
4460 { test "$extra_verbose" = "yes" && cat << EOF
4461 Defining SIZEOF_INT = $ac_cv_sizeof_int
4463 cat >> confdefs.h <<EOF
4464 #define SIZEOF_INT $ac_cv_sizeof_int
4469 echo $ac_n "checking size of long""... $ac_c" 1>&6
4470 echo "configure:4471: checking size of long" >&5
4472 cat > conftest.$ac_ext <<EOF
4473 #line 4474 "configure"
4474 #include "confdefs.h"
4478 FILE *f=fopen("conftestval", "w");
4480 fprintf(f, "%d\n", sizeof(long));
4484 if { (eval echo configure:4485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4486 ac_cv_sizeof_long=`cat conftestval`
4489 echo "configure: failed program was:" >&5
4490 cat conftest.$ac_ext >&5
4495 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
4496 { test "$extra_verbose" = "yes" && cat << EOF
4497 Defining SIZEOF_LONG = $ac_cv_sizeof_long
4499 cat >> confdefs.h <<EOF
4500 #define SIZEOF_LONG $ac_cv_sizeof_long
4505 echo $ac_n "checking size of long long""... $ac_c" 1>&6
4506 echo "configure:4507: checking size of long long" >&5
4508 cat > conftest.$ac_ext <<EOF
4509 #line 4510 "configure"
4510 #include "confdefs.h"
4514 FILE *f=fopen("conftestval", "w");
4516 fprintf(f, "%d\n", sizeof(long long));
4520 if { (eval echo configure:4521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4522 ac_cv_sizeof_long_long=`cat conftestval`
4525 echo "configure: failed program was:" >&5
4526 cat conftest.$ac_ext >&5
4528 ac_cv_sizeof_long_long=0
4531 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
4532 { test "$extra_verbose" = "yes" && cat << EOF
4533 Defining SIZEOF_LONG_LONG = $ac_cv_sizeof_long_long
4535 cat >> confdefs.h <<EOF
4536 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4541 echo $ac_n "checking size of void *""... $ac_c" 1>&6
4542 echo "configure:4543: checking size of void *" >&5
4544 cat > conftest.$ac_ext <<EOF
4545 #line 4546 "configure"
4546 #include "confdefs.h"
4550 FILE *f=fopen("conftestval", "w");
4552 fprintf(f, "%d\n", sizeof(void *));
4556 if { (eval echo configure:4557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4558 ac_cv_sizeof_void_p=`cat conftestval`
4561 echo "configure: failed program was:" >&5
4562 cat conftest.$ac_ext >&5
4564 ac_cv_sizeof_void_p=0
4567 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
4568 { test "$extra_verbose" = "yes" && cat << EOF
4569 Defining SIZEOF_VOID_P = $ac_cv_sizeof_void_p
4571 cat >> confdefs.h <<EOF
4572 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4578 echo $ac_n "checking for long file names""... $ac_c" 1>&6
4579 echo "configure:4580: checking for long file names" >&5
4581 ac_cv_sys_long_file_names=yes
4582 # Test for long file names in all the places we know might matter:
4583 # . the current directory, where building will happen
4584 # $prefix/lib where we will be installing things
4585 # $exec_prefix/lib likewise
4586 # eval it to expand exec_prefix.
4587 # $TMPDIR if set, where it might want to write temporary files
4588 # if $TMPDIR is not set:
4589 # /tmp where it might want to write temporary files
4592 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
4593 ac_tmpdirs="$TMPDIR"
4595 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
4597 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
4598 test -d $ac_dir || continue
4599 test -w $ac_dir || continue # It is less confusing to not echo anything here.
4600 (echo 1 > $ac_dir/conftest9012345) 2>/dev/null
4601 (echo 2 > $ac_dir/conftest9012346) 2>/dev/null
4602 val=`cat $ac_dir/conftest9012345 2>/dev/null`
4603 if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then
4604 ac_cv_sys_long_file_names=no
4605 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
4608 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
4611 echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
4612 if test $ac_cv_sys_long_file_names = yes; then
4613 { test "$extra_verbose" = "yes" && cat << \EOF
4614 Defining HAVE_LONG_FILE_NAMES
4616 cat >> confdefs.h <<\EOF
4617 #define HAVE_LONG_FILE_NAMES 1
4624 echo $ac_n "checking for sin""... $ac_c" 1>&6
4625 echo "configure:4626: checking for sin" >&5
4627 cat > conftest.$ac_ext <<EOF
4628 #line 4629 "configure"
4629 #include "confdefs.h"
4630 /* System header to define __stub macros and hopefully few prototypes,
4631 which can conflict with char sin(); below. */
4633 /* Override any gcc2 internal prototype to avoid an error. */
4634 /* We use char because int might match the return type of a gcc2
4635 builtin and then its argument prototype would still apply. */
4640 /* The GNU C library defines this for functions which it implements
4641 to always fail with ENOSYS. Some functions are actually named
4642 something starting with __ and the normal name is an alias. */
4643 #if defined (__stub_sin) || defined (__stub___sin)
4651 if { (eval echo configure:4652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4653 eval "ac_cv_func_sin=yes"
4655 echo "configure: failed program was:" >&5
4656 cat conftest.$ac_ext >&5
4658 eval "ac_cv_func_sin=no"
4662 if eval "test \"`echo '$ac_cv_func_'sin`\" = yes"; then
4663 echo "$ac_t""yes" 1>&6
4666 echo "$ac_t""no" 1>&6
4668 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
4669 echo "configure:4670: checking for sin in -lm" >&5
4670 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
4672 xe_check_libs=" -lm "
4673 cat > conftest.$ac_ext <<EOF
4674 #line 4675 "configure"
4675 #include "confdefs.h"
4676 /* Override any gcc2 internal prototype to avoid an error. */
4677 /* We use char because int might match the return type of a gcc2
4678 builtin and then its argument prototype would still apply. */
4685 if { (eval echo configure:4686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4687 eval "ac_cv_lib_$ac_lib_var=yes"
4689 echo "configure: failed program was:" >&5
4690 cat conftest.$ac_ext >&5
4692 eval "ac_cv_lib_$ac_lib_var=no"
4697 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4698 echo "$ac_t""yes" 1>&6
4699 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/^a-zA-Z0-9_/_/g' \
4700 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4701 { test "$extra_verbose" = "yes" && cat << EOF
4704 cat >> confdefs.h <<EOF
4705 #define $ac_tr_lib 1
4709 LIBS="-lm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lm\" to \$LIBS"; fi
4712 echo "$ac_t""no" 1>&6
4719 { test "$extra_verbose" = "yes" && cat << \EOF
4720 Defining LISP_FLOAT_TYPE
4722 cat >> confdefs.h <<\EOF
4723 #define LISP_FLOAT_TYPE 1
4728 cat > conftest.$ac_ext <<EOF
4729 #line 4730 "configure"
4730 #include "confdefs.h"
4733 return atanh(1.0) + asinh(1.0) + acosh(1.0);
4736 if { (eval echo configure:4737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4738 { test "$extra_verbose" = "yes" && cat << \EOF
4739 Defining HAVE_INVERSE_HYPERBOLIC
4741 cat >> confdefs.h <<\EOF
4742 #define HAVE_INVERSE_HYPERBOLIC 1
4747 echo "configure: failed program was:" >&5
4748 cat conftest.$ac_ext >&5
4752 echo "checking type of mail spool file locking" 1>&6
4753 echo "configure:4754: checking type of mail spool file locking" >&5
4754 for ac_func in lockf flock
4756 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4757 echo "configure:4758: checking for $ac_func" >&5
4759 cat > conftest.$ac_ext <<EOF
4760 #line 4761 "configure"
4761 #include "confdefs.h"
4762 /* System header to define __stub macros and hopefully few prototypes,
4763 which can conflict with char $ac_func(); below. */
4765 /* Override any gcc2 internal prototype to avoid an error. */
4766 /* We use char because int might match the return type of a gcc2
4767 builtin and then its argument prototype would still apply. */
4772 /* The GNU C library defines this for functions which it implements
4773 to always fail with ENOSYS. Some functions are actually named
4774 something starting with __ and the normal name is an alias. */
4775 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4783 if { (eval echo configure:4784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4785 eval "ac_cv_func_$ac_func=yes"
4787 echo "configure: failed program was:" >&5
4788 cat conftest.$ac_ext >&5
4790 eval "ac_cv_func_$ac_func=no"
4794 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4795 echo "$ac_t""yes" 1>&6
4796 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4797 { test "$extra_verbose" = "yes" && cat << EOF
4798 Defining $ac_tr_func
4800 cat >> confdefs.h <<EOF
4801 #define $ac_tr_func 1
4806 echo "$ac_t""no" 1>&6
4810 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock
4811 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf
4812 test -z "$mail_locking" -a "$mail_use_locking" = "yes" && mail_locking=locking
4813 if test -z "$mail_locking"; then
4814 case "$opsys" in cygwin* | mingw*)
4819 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF
4820 Defining MAIL_LOCK_LOCKF
4822 cat >> confdefs.h <<\EOF
4823 #define MAIL_LOCK_LOCKF 1
4827 elif test "$mail_locking" = "flock"; then { test "$extra_verbose" = "yes" && cat << \EOF
4828 Defining MAIL_LOCK_FLOCK
4830 cat >> confdefs.h <<\EOF
4831 #define MAIL_LOCK_FLOCK 1
4835 elif test "$mail_locking" = "locking"; then { test "$extra_verbose" = "yes" && cat << \EOF
4836 Defining MAIL_LOCK_LOCKING
4838 cat >> confdefs.h <<\EOF
4839 #define MAIL_LOCK_LOCKING 1
4843 elif test "$mail_locking" = "pop"; then
4846 else mail_locking="dot-locking"; { test "$extra_verbose" = "yes" && cat << \EOF
4847 Defining MAIL_LOCK_DOT
4849 cat >> confdefs.h <<\EOF
4850 #define MAIL_LOCK_DOT 1
4855 test "$mail_locking" = "lockf" -a "$ac_cv_func_lockf" != "yes" && \
4856 { echo "Error:" "lockf mail locking requested but not available." >&2; exit 1; }
4857 test "$mail_locking" = "flock" -a "$ac_cv_func_flock" != "yes" && \
4858 { echo "Error:" "flock mail locking requested but not available." >&2; exit 1; }
4859 test "$mail_locking" = "locking" -a "$ac_cv_func_locking" != "yes" && \
4860 { echo "Error:" "locking mail locking requested but not available." >&2; exit 1; }
4862 case "$opsys" in decosf*)
4864 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
4865 echo "configure:4866: checking for cma_open in -lpthreads" >&5
4866 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
4868 xe_check_libs=" -lpthreads "
4869 cat > conftest.$ac_ext <<EOF
4870 #line 4871 "configure"
4871 #include "confdefs.h"
4872 /* Override any gcc2 internal prototype to avoid an error. */
4873 /* We use char because int might match the return type of a gcc2
4874 builtin and then its argument prototype would still apply. */
4881 if { (eval echo configure:4882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4883 eval "ac_cv_lib_$ac_lib_var=yes"
4885 echo "configure: failed program was:" >&5
4886 cat conftest.$ac_ext >&5
4888 eval "ac_cv_lib_$ac_lib_var=no"
4893 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4894 echo "$ac_t""yes" 1>&6
4895 ac_tr_lib=HAVE_LIB`echo pthreads | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4896 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4897 { test "$extra_verbose" = "yes" && cat << EOF
4900 cat >> confdefs.h <<EOF
4901 #define $ac_tr_lib 1
4905 LIBS="-lpthreads $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpthreads\" to \$LIBS"; fi
4908 echo "$ac_t""no" 1>&6
4912 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \
4913 c_switch_site="$c_switch_site -threads" ;;
4916 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6
4917 echo "configure:4918: checking whether the -xildoff compiler flag is required" >&5
4918 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
4919 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ;
4920 then echo "$ac_t""no" 1>&6;
4921 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
4923 else echo "$ac_t""no" 1>&6
4926 if test "$opsys" = "sol2"; then
4927 if test "$os_release" -ge 56; then
4928 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6
4929 echo "configure:4930: checking for \"-z ignore\" linker flag" >&5
4930 case "`ld -h 2>&1`" in
4931 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6
4932 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;;
4933 *) echo "$ac_t""no" 1>&6 ;;
4939 echo "checking "for specified window system"" 1>&6
4940 echo "configure:4941: checking "for specified window system"" >&5
4942 if test "$with_x11" != "no"; then
4943 test "$x_includes $x_libraries" != "NONE NONE" && \
4944 window_system=x11 with_x11=yes
4947 if test "$x_includes $x_libraries" = "NONE NONE" \
4948 -a -n "$OPENWINHOME" \
4949 -a "$OPENWINHOME" != "/usr/openwin" \
4950 -a -d "$OPENWINHOME"; then
4951 test -d "$OPENWINHOME/lib" && x_libraries="$OPENWINHOME/lib"
4952 test -d "$OPENWINHOME/include" && x_includes="$OPENWINHOME/include"
4953 test -d "$OPENWINHOME/share/include" && x_includes="$OPENWINHOME/share/include"
4956 if test "$x_includes" = "NONE"; then
4957 for dir in "/usr/X11" "/usr/X11R6"; do
4958 if test -d "$dir/include/X11"; then x_includes="$dir/include"; break; fi
4962 if test "$x_libraries" = "NONE"; then
4963 for dir in "/usr/X11/lib" "/usr/X11R6/lib" "/usr/lib/X11R6"; do
4964 if test -r "$dir/libX11.a"; then x_libraries="$dir"; break; fi
4968 # If we find X, set shell vars x_includes and x_libraries to the
4969 # paths, otherwise set no_x=yes.
4970 # Uses ac_ vars as temps to allow command line to override cache and checks.
4971 # --without-x overrides everything else, but does not touch the cache.
4972 echo $ac_n "checking for X""... $ac_c" 1>&6
4973 echo "configure:4974: checking for X" >&5
4975 # Check whether --with-x or --without-x was given.
4976 if test "${with_x+set}" = set; then
4981 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4982 if test "x$with_x" = xno; then
4983 # The user explicitly disabled X.
4986 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
4987 # Both variables are already set.
4991 # One or both of the vars are not set, and there is no cached value.
4992 ac_x_includes=NO ac_x_libraries=NO
4994 if mkdir conftestdir; then
4996 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
4997 cat > Imakefile <<'EOF'
4999 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5001 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5002 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5003 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5004 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5005 for ac_extension in a so sl; do
5006 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
5007 test -f $ac_im_libdir/libX11.$ac_extension; then
5008 ac_im_usrlibdir=$ac_im_libdir; break
5011 # Screen out bogus values from the imake configuration. They are
5012 # bogus both because they are the default anyway, and because
5013 # using them would break gcc on systems where it needs fixed includes.
5014 case "$ac_im_incroot" in
5016 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
5018 case "$ac_im_usrlibdir" in
5020 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
5027 if test "$ac_x_includes" = NO; then
5028 # Guess where to find include files, by looking for this one X11 .h file.
5029 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
5031 # First, try using that file with no special directory specified.
5032 cat > conftest.$ac_ext <<EOF
5033 #line 5034 "configure"
5034 #include "confdefs.h"
5035 #include <$x_direct_test_include>
5037 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5038 { (eval echo configure:5039: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5039 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5040 if test -z "$ac_err"; then
5042 # We can compile using X headers with no special include directory.
5046 echo "configure: failed program was:" >&5
5047 cat conftest.$ac_ext >&5
5049 # Look for the header file in a standard set of common directories.
5050 # Check X11 before X11Rn because it is often a symlink to the current release.
5053 /usr/X11R6/include \
5054 /usr/X11R5/include \
5055 /usr/X11R4/include \
5058 /usr/include/X11R6 \
5059 /usr/include/X11R5 \
5060 /usr/include/X11R4 \
5062 /usr/local/X11/include \
5063 /usr/local/X11R6/include \
5064 /usr/local/X11R5/include \
5065 /usr/local/X11R4/include \
5067 /usr/local/include/X11 \
5068 /usr/local/include/X11R6 \
5069 /usr/local/include/X11R5 \
5070 /usr/local/include/X11R4 \
5074 /usr/XFree86/include/X11 \
5077 /usr/local/include \
5078 /usr/unsupported/include \
5079 /usr/athena/include \
5080 /usr/local/x11r5/include \
5081 /usr/lpp/Xamples/include \
5083 /usr/openwin/include \
5084 /usr/openwin/share/include \
5087 if test -r "$ac_dir/$x_direct_test_include"; then
5088 ac_x_includes=$ac_dir
5094 fi # $ac_x_includes = NO
5096 if test "$ac_x_libraries" = NO; then
5097 # Check for the libraries.
5099 test -z "$x_direct_test_library" && x_direct_test_library=Xt
5100 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
5102 # See if we find them without any special options.
5103 # Don't add to $LIBS permanently.
5104 ac_save_LIBS="$LIBS"
5105 LIBS="-l$x_direct_test_library $LIBS"
5106 cat > conftest.$ac_ext <<EOF
5107 #line 5108 "configure"
5108 #include "confdefs.h"
5111 ${x_direct_test_function}()
5114 if { (eval echo configure:5115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5116 LIBS="$ac_save_LIBS"
5117 # We can link X programs with no special library path.
5120 echo "configure: failed program was:" >&5
5121 cat conftest.$ac_ext >&5
5123 LIBS="$ac_save_LIBS"
5124 # First see if replacing the include by lib works.
5125 # Check X11 before X11Rn because it is often a symlink to the current release.
5126 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
5137 /usr/local/X11/lib \
5138 /usr/local/X11R6/lib \
5139 /usr/local/X11R5/lib \
5140 /usr/local/X11R4/lib \
5142 /usr/local/lib/X11 \
5143 /usr/local/lib/X11R6 \
5144 /usr/local/lib/X11R5 \
5145 /usr/local/lib/X11R4 \
5149 /usr/XFree86/lib/X11 \
5153 /usr/unsupported/lib \
5155 /usr/local/x11r5/lib \
5156 /usr/lpp/Xamples/lib \
5160 /usr/openwin/share/lib \
5163 for ac_extension in a so sl; do
5164 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
5165 ac_x_libraries=$ac_dir
5172 fi # $ac_x_libraries = NO
5174 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
5175 # Didn't find X anywhere. Cache the known absence of X.
5176 ac_cv_have_x="have_x=no"
5178 # Record where we found X for the cache.
5179 ac_cv_have_x="have_x=yes \
5180 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5183 eval "$ac_cv_have_x"
5186 if test "$have_x" != yes; then
5187 echo "$ac_t""$have_x" 1>&6
5190 # If each of the values was on the command line, it overrides each guess.
5191 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5192 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5193 # Update the cache value to reflect the command line values.
5194 ac_cv_have_x="have_x=yes \
5195 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5196 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
5199 if test "$no_x" = yes; then
5200 # Not all programs may use this symbol, but it does not hurt to define it.
5201 { test "$extra_verbose" = "yes" && cat << \EOF
5202 Defining X_DISPLAY_MISSING
5204 cat >> confdefs.h <<\EOF
5205 #define X_DISPLAY_MISSING 1
5209 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5211 if test -n "$x_includes"; then
5212 X_CFLAGS="$X_CFLAGS -I$x_includes"
5215 # It would also be nice to do this for all -L options, not just this one.
5216 if test -n "$x_libraries"; then
5217 X_LIBS="$X_LIBS -L$x_libraries"
5218 # For Solaris; some versions of Sun CC require a space after -R and
5219 # others require no space. Words are not sufficient . . . .
5220 case "`(uname -sr) 2>/dev/null`" in
5222 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
5223 echo "configure:5224: checking whether -R must be followed by a space" >&5
5224 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
5225 cat > conftest.$ac_ext <<EOF
5226 #line 5227 "configure"
5227 #include "confdefs.h"
5233 if { (eval echo configure:5234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5237 echo "configure: failed program was:" >&5
5238 cat conftest.$ac_ext >&5
5243 if test $ac_R_nospace = yes; then
5244 echo "$ac_t""no" 1>&6
5245 X_LIBS="$X_LIBS -R$x_libraries"
5247 LIBS="$ac_xsave_LIBS -R $x_libraries"
5248 cat > conftest.$ac_ext <<EOF
5249 #line 5250 "configure"
5250 #include "confdefs.h"
5256 if { (eval echo configure:5257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5260 echo "configure: failed program was:" >&5
5261 cat conftest.$ac_ext >&5
5266 if test $ac_R_space = yes; then
5267 echo "$ac_t""yes" 1>&6
5268 X_LIBS="$X_LIBS -R $x_libraries"
5270 echo "$ac_t""neither works" 1>&6
5273 LIBS="$ac_xsave_LIBS"
5277 # Check for system-dependent libraries X programs must link with.
5278 # Do this before checking for the system-independent R6 libraries
5279 # (-lICE), since we may need -lsocket or whatever for X linking.
5281 if test "$ISC" = yes; then
5282 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5284 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
5285 # libraries were built with DECnet support. And karl@cs.umb.edu says
5286 # the Alpha needs dnet_stub (dnet does not exist).
5287 if test "$with_dnet" = "no" ; then
5288 ac_cv_lib_dnet_dnet_ntoa=no
5291 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
5292 echo "configure:5293: checking for dnet_ntoa in -ldnet" >&5
5293 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5295 xe_check_libs=" -ldnet "
5296 cat > conftest.$ac_ext <<EOF
5297 #line 5298 "configure"
5298 #include "confdefs.h"
5299 /* Override any gcc2 internal prototype to avoid an error. */
5300 /* We use char because int might match the return type of a gcc2
5301 builtin and then its argument prototype would still apply. */
5308 if { (eval echo configure:5309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5310 eval "ac_cv_lib_$ac_lib_var=yes"
5312 echo "configure: failed program was:" >&5
5313 cat conftest.$ac_ext >&5
5315 eval "ac_cv_lib_$ac_lib_var=no"
5320 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5321 echo "$ac_t""yes" 1>&6
5322 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5324 echo "$ac_t""no" 1>&6
5329 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5331 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
5332 echo "configure:5333: checking for dnet_ntoa in -ldnet_stub" >&5
5333 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5335 xe_check_libs=" -ldnet_stub "
5336 cat > conftest.$ac_ext <<EOF
5337 #line 5338 "configure"
5338 #include "confdefs.h"
5339 /* Override any gcc2 internal prototype to avoid an error. */
5340 /* We use char because int might match the return type of a gcc2
5341 builtin and then its argument prototype would still apply. */
5348 if { (eval echo configure:5349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5350 eval "ac_cv_lib_$ac_lib_var=yes"
5352 echo "configure: failed program was:" >&5
5353 cat conftest.$ac_ext >&5
5355 eval "ac_cv_lib_$ac_lib_var=no"
5360 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5361 echo "$ac_t""yes" 1>&6
5362 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5364 echo "$ac_t""no" 1>&6
5370 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5371 # to get the SysV transport functions.
5372 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
5374 # The nsl library prevents programs from opening the X display
5375 # on Irix 5.2, according to dickey@clark.net.
5376 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
5377 echo "configure:5378: checking for gethostbyname" >&5
5379 cat > conftest.$ac_ext <<EOF
5380 #line 5381 "configure"
5381 #include "confdefs.h"
5382 /* System header to define __stub macros and hopefully few prototypes,
5383 which can conflict with char gethostbyname(); below. */
5385 /* Override any gcc2 internal prototype to avoid an error. */
5386 /* We use char because int might match the return type of a gcc2
5387 builtin and then its argument prototype would still apply. */
5388 char gethostbyname();
5392 /* The GNU C library defines this for functions which it implements
5393 to always fail with ENOSYS. Some functions are actually named
5394 something starting with __ and the normal name is an alias. */
5395 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5403 if { (eval echo configure:5404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5405 eval "ac_cv_func_gethostbyname=yes"
5407 echo "configure: failed program was:" >&5
5408 cat conftest.$ac_ext >&5
5410 eval "ac_cv_func_gethostbyname=no"
5414 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
5415 echo "$ac_t""yes" 1>&6
5418 echo "$ac_t""no" 1>&6
5421 if test $ac_cv_func_gethostbyname = no; then
5423 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
5424 echo "configure:5425: checking for gethostbyname in -lnsl" >&5
5425 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
5427 xe_check_libs=" -lnsl "
5428 cat > conftest.$ac_ext <<EOF
5429 #line 5430 "configure"
5430 #include "confdefs.h"
5431 /* Override any gcc2 internal prototype to avoid an error. */
5432 /* We use char because int might match the return type of a gcc2
5433 builtin and then its argument prototype would still apply. */
5434 char gethostbyname();
5440 if { (eval echo configure:5441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5442 eval "ac_cv_lib_$ac_lib_var=yes"
5444 echo "configure: failed program was:" >&5
5445 cat conftest.$ac_ext >&5
5447 eval "ac_cv_lib_$ac_lib_var=no"
5452 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5453 echo "$ac_t""yes" 1>&6
5454 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5456 echo "$ac_t""no" 1>&6
5462 # lieder@skyler.mavd.honeywell.com says without -lsocket,
5463 # socket/setsockopt and other routines are undefined under SCO ODT
5464 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5465 # on later versions), says simon@lia.di.epfl.ch: it contains
5466 # gethostby* variants that don't use the nameserver (or something).
5467 # -lsocket must be given before -lnsl if both are needed.
5468 # We assume that if connect needs -lnsl, so does gethostbyname.
5469 echo $ac_n "checking for connect""... $ac_c" 1>&6
5470 echo "configure:5471: checking for connect" >&5
5472 cat > conftest.$ac_ext <<EOF
5473 #line 5474 "configure"
5474 #include "confdefs.h"
5475 /* System header to define __stub macros and hopefully few prototypes,
5476 which can conflict with char connect(); below. */
5478 /* Override any gcc2 internal prototype to avoid an error. */
5479 /* We use char because int might match the return type of a gcc2
5480 builtin and then its argument prototype would still apply. */
5485 /* The GNU C library defines this for functions which it implements
5486 to always fail with ENOSYS. Some functions are actually named
5487 something starting with __ and the normal name is an alias. */
5488 #if defined (__stub_connect) || defined (__stub___connect)
5496 if { (eval echo configure:5497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5498 eval "ac_cv_func_connect=yes"
5500 echo "configure: failed program was:" >&5
5501 cat conftest.$ac_ext >&5
5503 eval "ac_cv_func_connect=no"
5507 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
5508 echo "$ac_t""yes" 1>&6
5511 echo "$ac_t""no" 1>&6
5514 if test $ac_cv_func_connect = no; then
5516 xe_msg_checking="for connect in -lsocket"
5517 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
5518 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5519 echo "configure:5520: checking "$xe_msg_checking"" >&5
5520 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
5522 xe_check_libs=" -lsocket $X_EXTRA_LIBS"
5523 cat > conftest.$ac_ext <<EOF
5524 #line 5525 "configure"
5525 #include "confdefs.h"
5526 /* Override any gcc2 internal prototype to avoid an error. */
5527 /* We use char because int might match the return type of a gcc2
5528 builtin and then its argument prototype would still apply. */
5535 if { (eval echo configure:5536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5537 eval "ac_cv_lib_$ac_lib_var=yes"
5539 echo "configure: failed program was:" >&5
5540 cat conftest.$ac_ext >&5
5542 eval "ac_cv_lib_$ac_lib_var=no"
5547 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5548 echo "$ac_t""yes" 1>&6
5549 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5551 echo "$ac_t""no" 1>&6
5557 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
5558 echo $ac_n "checking for remove""... $ac_c" 1>&6
5559 echo "configure:5560: checking for remove" >&5
5561 cat > conftest.$ac_ext <<EOF
5562 #line 5563 "configure"
5563 #include "confdefs.h"
5564 /* System header to define __stub macros and hopefully few prototypes,
5565 which can conflict with char remove(); below. */
5567 /* Override any gcc2 internal prototype to avoid an error. */
5568 /* We use char because int might match the return type of a gcc2
5569 builtin and then its argument prototype would still apply. */
5574 /* The GNU C library defines this for functions which it implements
5575 to always fail with ENOSYS. Some functions are actually named
5576 something starting with __ and the normal name is an alias. */
5577 #if defined (__stub_remove) || defined (__stub___remove)
5585 if { (eval echo configure:5586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5587 eval "ac_cv_func_remove=yes"
5589 echo "configure: failed program was:" >&5
5590 cat conftest.$ac_ext >&5
5592 eval "ac_cv_func_remove=no"
5596 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
5597 echo "$ac_t""yes" 1>&6
5600 echo "$ac_t""no" 1>&6
5603 if test $ac_cv_func_remove = no; then
5605 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
5606 echo "configure:5607: checking for remove in -lposix" >&5
5607 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
5609 xe_check_libs=" -lposix "
5610 cat > conftest.$ac_ext <<EOF
5611 #line 5612 "configure"
5612 #include "confdefs.h"
5613 /* Override any gcc2 internal prototype to avoid an error. */
5614 /* We use char because int might match the return type of a gcc2
5615 builtin and then its argument prototype would still apply. */
5622 if { (eval echo configure:5623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5624 eval "ac_cv_lib_$ac_lib_var=yes"
5626 echo "configure: failed program was:" >&5
5627 cat conftest.$ac_ext >&5
5629 eval "ac_cv_lib_$ac_lib_var=no"
5634 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5635 echo "$ac_t""yes" 1>&6
5636 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5638 echo "$ac_t""no" 1>&6
5644 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5645 echo $ac_n "checking for shmat""... $ac_c" 1>&6
5646 echo "configure:5647: checking for shmat" >&5
5648 cat > conftest.$ac_ext <<EOF
5649 #line 5650 "configure"
5650 #include "confdefs.h"
5651 /* System header to define __stub macros and hopefully few prototypes,
5652 which can conflict with char shmat(); below. */
5654 /* Override any gcc2 internal prototype to avoid an error. */
5655 /* We use char because int might match the return type of a gcc2
5656 builtin and then its argument prototype would still apply. */
5661 /* The GNU C library defines this for functions which it implements
5662 to always fail with ENOSYS. Some functions are actually named
5663 something starting with __ and the normal name is an alias. */
5664 #if defined (__stub_shmat) || defined (__stub___shmat)
5672 if { (eval echo configure:5673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5674 eval "ac_cv_func_shmat=yes"
5676 echo "configure: failed program was:" >&5
5677 cat conftest.$ac_ext >&5
5679 eval "ac_cv_func_shmat=no"
5683 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
5684 echo "$ac_t""yes" 1>&6
5687 echo "$ac_t""no" 1>&6
5690 if test $ac_cv_func_shmat = no; then
5692 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
5693 echo "configure:5694: checking for shmat in -lipc" >&5
5694 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
5696 xe_check_libs=" -lipc "
5697 cat > conftest.$ac_ext <<EOF
5698 #line 5699 "configure"
5699 #include "confdefs.h"
5700 /* Override any gcc2 internal prototype to avoid an error. */
5701 /* We use char because int might match the return type of a gcc2
5702 builtin and then its argument prototype would still apply. */
5709 if { (eval echo configure:5710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5711 eval "ac_cv_lib_$ac_lib_var=yes"
5713 echo "configure: failed program was:" >&5
5714 cat conftest.$ac_ext >&5
5716 eval "ac_cv_lib_$ac_lib_var=no"
5721 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5722 echo "$ac_t""yes" 1>&6
5723 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5725 echo "$ac_t""no" 1>&6
5732 # Check for libraries that X11R6 Xt/Xaw programs need.
5733 ac_save_LDFLAGS="$LDFLAGS"
5734 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5735 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5736 # check for ICE first), but we must link in the order -lSM -lICE or
5737 # we get undefined symbols. So assume we have SM if we have ICE.
5738 # These have to be linked with before -lX11, unlike the other
5739 # libraries we check for below, so use a different variable.
5740 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
5742 xe_msg_checking="for IceConnectionNumber in -lICE"
5743 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
5744 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5745 echo "configure:5746: checking "$xe_msg_checking"" >&5
5746 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
5748 xe_check_libs=" -lICE $X_EXTRA_LIBS"
5749 cat > conftest.$ac_ext <<EOF
5750 #line 5751 "configure"
5751 #include "confdefs.h"
5752 /* Override any gcc2 internal prototype to avoid an error. */
5753 /* We use char because int might match the return type of a gcc2
5754 builtin and then its argument prototype would still apply. */
5755 char IceConnectionNumber();
5758 IceConnectionNumber()
5761 if { (eval echo configure:5762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5763 eval "ac_cv_lib_$ac_lib_var=yes"
5765 echo "configure: failed program was:" >&5
5766 cat conftest.$ac_ext >&5
5768 eval "ac_cv_lib_$ac_lib_var=no"
5773 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5774 echo "$ac_t""yes" 1>&6
5775 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5777 echo "$ac_t""no" 1>&6
5781 LDFLAGS="$ac_save_LDFLAGS"
5784 # Autoconf claims to find X library and include dirs for us.
5785 if test "$no_x" = "yes"
5786 then with_x11=no window_system=none HAVE_X_WINDOWS=no
5787 else with_x11=yes window_system=x11 HAVE_X_WINDOWS=yes
5792 yes ) window_system=x11 HAVE_X_WINDOWS=yes ;;
5793 no ) window_system=none HAVE_X_WINDOWS=no ;;
5796 if test "$with_x11" = "yes"; then
5797 { test "$extra_verbose" = "yes" && cat << \EOF
5798 Defining HAVE_X_WINDOWS
5800 cat >> confdefs.h <<\EOF
5801 #define HAVE_X_WINDOWS 1
5805 MAKE_SUBDIR="$MAKE_SUBDIR lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$MAKE_SUBDIR"; fi
5806 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$SRC_SUBDIR_DEPS"; fi
5808 for lib_dir in "/usr/dt/lib" "/usr/lib/Motif2.1" "/usr/lib/Motif1.2" "/usr/lib/Motif1.1"; do
5809 inc_dir=`echo $lib_dir | sed -e 's/lib/include/'`
5810 if test -d "$lib_dir" -a -d "$inc_dir"; then
5811 case "$x_libraries" in *"$lib_dir"* ) ;; *)
5812 x_libraries="$lib_dir $x_libraries"
5813 X_LIBS="-L${lib_dir} $X_LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-L${lib_dir}\" to \$X_LIBS"; fi ;;
5815 case "$x_includes" in "$inc_dir"* ) ;; *)
5816 x_includes="$inc_dir $x_includes"
5817 X_CFLAGS="-I${inc_dir} $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-I${inc_dir}\" to \$X_CFLAGS"; fi ;;
5822 for rel in "X11R6" "X11R5" "X11R4"; do
5823 lib_dir="/usr/contrib/$rel/lib" inc_dir="/usr/contrib/$rel/include"
5824 if test -d "$lib_dir" -a -d "$inc_dir"; then
5825 case "$x_libraries" in *"$lib_dir"* ) ;; *)
5826 x_libraries="$x_libraries $lib_dir"
5827 X_LIBS="$X_LIBS -L${lib_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L${lib_dir}\" to \$X_LIBS"; fi
5829 case "$x_includes" in "$inc_dir"* ) ;; *)
5830 x_includes="$x_includes $inc_dir"
5831 X_CFLAGS="$X_CFLAGS -I${inc_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-I${inc_dir}\" to \$X_CFLAGS"; fi
5837 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 ;;
5840 ld_switch_x_site="$X_LIBS"
5843 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
5844 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
5845 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
5847 runpath="" runpath_dirs=""
5848 if test -n "$LD_RUN_PATH"; then
5849 runpath="$LD_RUN_PATH"
5850 elif test "$GCC" = "yes"; then
5851 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
5852 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
5853 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
5854 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
5855 case "$arg" in P,* | -L* | -R* )
5856 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
5858 xe_runpath_dir="$dir"
5859 test "$xe_runpath_dir" != "/lib" -a \
5860 "$xe_runpath_dir" != "/usr/lib" -a \
5861 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
5862 eval "$xe_add_unique_runpath_dir"
5867 ld_switch_run="$ld_switch_run_save"
5870 for arg in $ld_switch_site $ld_switch_x_site; do
5871 case "$arg" in -L*) {
5872 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
5873 test "$xe_runpath_dir" != "/lib" -a \
5874 "$xe_runpath_dir" != "/usr/lib" -a \
5875 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
5876 eval "$xe_add_unique_runpath_dir"
5879 if test "$opsys $need_motif" = "sol2 yes"; then
5880 xe_runpath_dir="/opt/SUNWdt/lib";
5881 eval "$xe_add_unique_runpath_dir";
5884 if test -n "$runpath"; then
5885 ld_switch_run="${dash_r}${runpath}"
5887 if test "$GCC" = "yes"; then
5888 set x $ld_switch_run; shift; ld_switch_run=""
5889 while test -n "$1"; do
5891 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
5892 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
5894 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
5899 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
5904 if test "$extra_verbose" = "yes"; then
5905 echo; echo "X11 compilation variables:"
5906 for var in x_libraries x_includes X_CFLAGS X_LIBS X_PRE_LIBS X_EXTRA_LIBS; do eval "echo \"$var = '\$$var'\""; done
5911 if test "$x_includes" != NONE; then
5912 for i in $x_includes; do
5913 if test -d "$i/bitmaps"; then
5914 bitmapdirs="$i/bitmaps:$bitmapdirs"
5916 if test -d "$i/X11/bitmaps"; then
5917 bitmapdirs="$i/X11/bitmaps:$bitmapdirs"
5920 bitmapdirs=`echo "$bitmapdirs" | sed s/.$//`
5922 test ! -z "$bitmapdirs" && { test "$extra_verbose" = "yes" && cat << EOF
5923 Defining BITMAPDIR = "$bitmapdirs"
5925 cat >> confdefs.h <<EOF
5926 #define BITMAPDIR "$bitmapdirs"
5931 echo "checking for X defines extracted by xmkmf" 1>&6
5932 echo "configure:5933: checking for X defines extracted by xmkmf" >&5
5934 if mkdir conftestdir; then
5936 cat > Imakefile <<'EOF'
5938 @echo ${PROTO_DEFINES} ${STD_DEFINES}
5940 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5941 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5942 xmkmf_defines=`${MAKE-make} xetest 2>/dev/null | grep -v make`
5946 for word in $xmkmf_defines; do
5947 case "$word" in -D* )
5948 sym=`echo '' $word | sed -e 's:^ *-D::' -e 's:=.*::'`
5950 -D*=* ) val=`echo '' $word | sed -e 's:^.*=::'` ;;
5953 if grep "^#define $sym " confdefs.h >/dev/null; then :; else
5954 if test "$val" = "1"
5955 then { test "$extra_verbose" = "yes" && cat << EOF
5958 cat >> confdefs.h <<EOF
5963 else { test "$extra_verbose" = "yes" && cat << EOF
5964 Defining $sym = $val
5966 cat >> confdefs.h <<EOF
5977 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
5978 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
5979 echo "configure:5980: checking for X11/Intrinsic.h" >&5
5981 cat > conftest.$ac_ext <<EOF
5982 #line 5983 "configure"
5983 #include "confdefs.h"
5984 #include <X11/Intrinsic.h>
5986 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5987 { (eval echo configure:5988: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5988 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5989 if test -z "$ac_err"; then
5991 eval "ac_cv_header_$ac_safe=yes"
5994 echo "configure: failed program was:" >&5
5995 cat conftest.$ac_ext >&5
5997 eval "ac_cv_header_$ac_safe=no"
6000 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6001 echo "$ac_t""yes" 1>&6
6004 echo "$ac_t""no" 1>&6
6005 { echo "configure: error: "Unable to find X11 header files."" 1>&2; exit 1; }
6010 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
6011 echo "configure:6012: checking for XOpenDisplay in -lX11" >&5
6012 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
6014 xe_check_libs=" -lX11 "
6015 cat > conftest.$ac_ext <<EOF
6016 #line 6017 "configure"
6017 #include "confdefs.h"
6018 /* Override any gcc2 internal prototype to avoid an error. */
6019 /* We use char because int might match the return type of a gcc2
6020 builtin and then its argument prototype would still apply. */
6021 char XOpenDisplay();
6027 if { (eval echo configure:6028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6029 eval "ac_cv_lib_$ac_lib_var=yes"
6031 echo "configure: failed program was:" >&5
6032 cat conftest.$ac_ext >&5
6034 eval "ac_cv_lib_$ac_lib_var=no"
6039 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6040 echo "$ac_t""yes" 1>&6
6043 echo "$ac_t""no" 1>&6
6047 if test "$have_lib_x11" != "yes"; then
6049 xe_msg_checking="for XGetFontProperty in -lX11"
6050 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout"
6051 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6052 echo "configure:6053: checking "$xe_msg_checking"" >&5
6053 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
6055 xe_check_libs=" -lX11 -b i486-linuxaout"
6056 cat > conftest.$ac_ext <<EOF
6057 #line 6058 "configure"
6058 #include "confdefs.h"
6059 /* Override any gcc2 internal prototype to avoid an error. */
6060 /* We use char because int might match the return type of a gcc2
6061 builtin and then its argument prototype would still apply. */
6062 char XGetFontProperty();
6068 if { (eval echo configure:6069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6070 eval "ac_cv_lib_$ac_lib_var=yes"
6072 echo "configure: failed program was:" >&5
6073 cat conftest.$ac_ext >&5
6075 eval "ac_cv_lib_$ac_lib_var=no"
6080 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6081 echo "$ac_t""yes" 1>&6
6082 ld_switch_x_site="-b i486-linuxaout $ld_switch_x_site"
6084 echo "$ac_t""no" 1>&6
6085 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
6091 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
6094 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
6095 echo "configure:6096: checking for XShapeSelectInput in -lXext" >&5
6096 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
6098 xe_check_libs=" -lXext "
6099 cat > conftest.$ac_ext <<EOF
6100 #line 6101 "configure"
6101 #include "confdefs.h"
6102 /* Override any gcc2 internal prototype to avoid an error. */
6103 /* We use char because int might match the return type of a gcc2
6104 builtin and then its argument prototype would still apply. */
6105 char XShapeSelectInput();
6111 if { (eval echo configure:6112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6113 eval "ac_cv_lib_$ac_lib_var=yes"
6115 echo "configure: failed program was:" >&5
6116 cat conftest.$ac_ext >&5
6118 eval "ac_cv_lib_$ac_lib_var=no"
6123 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6124 echo "$ac_t""yes" 1>&6
6125 libs_x="-lXext $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXext\" to \$libs_x"; fi
6127 echo "$ac_t""no" 1>&6
6133 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6
6134 echo "configure:6135: checking for XtOpenDisplay in -lXt" >&5
6135 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
6137 xe_check_libs=" -lXt "
6138 cat > conftest.$ac_ext <<EOF
6139 #line 6140 "configure"
6140 #include "confdefs.h"
6141 /* Override any gcc2 internal prototype to avoid an error. */
6142 /* We use char because int might match the return type of a gcc2
6143 builtin and then its argument prototype would still apply. */
6144 char XtOpenDisplay();
6150 if { (eval echo configure:6151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6152 eval "ac_cv_lib_$ac_lib_var=yes"
6154 echo "configure: failed program was:" >&5
6155 cat conftest.$ac_ext >&5
6157 eval "ac_cv_lib_$ac_lib_var=no"
6162 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6163 echo "$ac_t""yes" 1>&6
6164 libs_x="-lXt $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXt\" to \$libs_x"; fi
6166 echo "$ac_t""no" 1>&6
6167 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
6172 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6
6173 echo "configure:6174: checking the version of X11 being used" >&5
6174 cat > conftest.$ac_ext <<EOF
6175 #line 6176 "configure"
6176 #include "confdefs.h"
6177 #include <X11/Intrinsic.h>
6178 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; }
6180 if { (eval echo configure:6181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6182 ./conftest foobar; x11_release=$?
6185 echo "configure: failed program was:" >&5
6186 cat conftest.$ac_ext >&5
6191 echo "$ac_t""R${x11_release}" 1>&6
6192 { test "$extra_verbose" = "yes" && cat << EOF
6193 Defining THIS_IS_X11R${x11_release}
6195 cat >> confdefs.h <<EOF
6196 #define THIS_IS_X11R${x11_release} 1
6201 if test "${x11_release}" = "4"; then
6202 case "$with_widgets" in
6203 "" | "no") with_widgets=no ;;
6204 *) { echo "Error:" "Widget support requires X11R5 or greater" >&2; exit 1; } ;;
6208 for ac_func in XConvertCase
6210 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6211 echo "configure:6212: checking for $ac_func" >&5
6213 cat > conftest.$ac_ext <<EOF
6214 #line 6215 "configure"
6215 #include "confdefs.h"
6216 /* System header to define __stub macros and hopefully few prototypes,
6217 which can conflict with char $ac_func(); below. */
6219 /* Override any gcc2 internal prototype to avoid an error. */
6220 /* We use char because int might match the return type of a gcc2
6221 builtin and then its argument prototype would still apply. */
6226 /* The GNU C library defines this for functions which it implements
6227 to always fail with ENOSYS. Some functions are actually named
6228 something starting with __ and the normal name is an alias. */
6229 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6237 if { (eval echo configure:6238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6239 eval "ac_cv_func_$ac_func=yes"
6241 echo "configure: failed program was:" >&5
6242 cat conftest.$ac_ext >&5
6244 eval "ac_cv_func_$ac_func=no"
6248 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6249 echo "$ac_t""yes" 1>&6
6250 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6251 { test "$extra_verbose" = "yes" && cat << EOF
6252 Defining $ac_tr_func
6254 cat >> confdefs.h <<EOF
6255 #define $ac_tr_func 1
6260 echo "$ac_t""no" 1>&6
6265 for ac_hdr in X11/Xlocale.h
6267 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6268 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6269 echo "configure:6270: checking for $ac_hdr" >&5
6271 cat > conftest.$ac_ext <<EOF
6272 #line 6273 "configure"
6273 #include "confdefs.h"
6276 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6277 { (eval echo configure:6278: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6278 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6279 if test -z "$ac_err"; then
6281 eval "ac_cv_header_$ac_safe=yes"
6284 echo "configure: failed program was:" >&5
6285 cat conftest.$ac_ext >&5
6287 eval "ac_cv_header_$ac_safe=no"
6290 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6291 echo "$ac_t""yes" 1>&6
6292 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6293 { test "$extra_verbose" = "yes" && cat << EOF
6296 cat >> confdefs.h <<EOF
6297 #define $ac_tr_hdr 1
6302 echo "$ac_t""no" 1>&6
6307 for ac_func in XRegisterIMInstantiateCallback
6309 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6310 echo "configure:6311: checking for $ac_func" >&5
6312 cat > conftest.$ac_ext <<EOF
6313 #line 6314 "configure"
6314 #include "confdefs.h"
6315 /* System header to define __stub macros and hopefully few prototypes,
6316 which can conflict with char $ac_func(); below. */
6318 /* Override any gcc2 internal prototype to avoid an error. */
6319 /* We use char because int might match the return type of a gcc2
6320 builtin and then its argument prototype would still apply. */
6325 /* The GNU C library defines this for functions which it implements
6326 to always fail with ENOSYS. Some functions are actually named
6327 something starting with __ and the normal name is an alias. */
6328 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6336 if { (eval echo configure:6337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6338 eval "ac_cv_func_$ac_func=yes"
6340 echo "configure: failed program was:" >&5
6341 cat conftest.$ac_ext >&5
6343 eval "ac_cv_func_$ac_func=no"
6347 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6348 echo "$ac_t""yes" 1>&6
6349 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6350 { test "$extra_verbose" = "yes" && cat << EOF
6351 Defining $ac_tr_func
6353 cat >> confdefs.h <<EOF
6354 #define $ac_tr_func 1
6359 echo "$ac_t""no" 1>&6
6363 echo $ac_n "checking for standard XRegisterIMInstantiateCallback prototype""... $ac_c" 1>&6
6364 echo "configure:6365: checking for standard XRegisterIMInstantiateCallback prototype" >&5
6365 cat > conftest.$ac_ext <<EOF
6366 #line 6367 "configure"
6367 #include "confdefs.h"
6369 #define NeedFunctionPrototypes 1
6370 #include <X11/Xlib.h>
6371 extern Bool XRegisterIMInstantiateCallback(
6372 Display*, struct _XrmHashBucketRec*, char*, char*, XIMProc, XPointer*);
6378 if { (eval echo configure:6379: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6380 echo "$ac_t""yes" 1>&6
6382 echo "configure: failed program was:" >&5
6383 cat conftest.$ac_ext >&5
6385 echo "$ac_t""no" 1>&6
6386 { test "$extra_verbose" = "yes" && cat << \EOF
6387 Defining XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE
6389 cat >> confdefs.h <<\EOF
6390 #define XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE 1
6397 test -z "$with_xmu" && {
6398 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6
6399 echo "configure:6400: checking for XmuReadBitmapDataFromFile in -lXmu" >&5
6400 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'`
6402 xe_check_libs=" -lXmu "
6403 cat > conftest.$ac_ext <<EOF
6404 #line 6405 "configure"
6405 #include "confdefs.h"
6406 /* Override any gcc2 internal prototype to avoid an error. */
6407 /* We use char because int might match the return type of a gcc2
6408 builtin and then its argument prototype would still apply. */
6409 char XmuReadBitmapDataFromFile();
6412 XmuReadBitmapDataFromFile()
6415 if { (eval echo configure:6416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6417 eval "ac_cv_lib_$ac_lib_var=yes"
6419 echo "configure: failed program was:" >&5
6420 cat conftest.$ac_ext >&5
6422 eval "ac_cv_lib_$ac_lib_var=no"
6427 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6428 echo "$ac_t""yes" 1>&6
6431 echo "$ac_t""no" 1>&6
6436 if test "$with_xmu" = "no"; then
6437 extra_objs="$extra_objs xmu.o" && if test "$extra_verbose" = "yes"; then
6438 echo " xemacs will be linked with \"xmu.o\""
6441 libs_x="-lXmu $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXmu\" to \$libs_x"; fi
6442 { test "$extra_verbose" = "yes" && cat << \EOF
6445 cat >> confdefs.h <<\EOF
6453 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
6454 echo "configure:6455: checking for main in -lXbsd" >&5
6455 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
6457 xe_check_libs=" -lXbsd "
6458 cat > conftest.$ac_ext <<EOF
6459 #line 6460 "configure"
6460 #include "confdefs.h"
6466 if { (eval echo configure:6467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6468 eval "ac_cv_lib_$ac_lib_var=yes"
6470 echo "configure: failed program was:" >&5
6471 cat conftest.$ac_ext >&5
6473 eval "ac_cv_lib_$ac_lib_var=no"
6478 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6479 echo "$ac_t""yes" 1>&6
6480 libs_x="-lXbsd $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXbsd\" to \$libs_x"; fi
6482 echo "$ac_t""no" 1>&6
6487 if test "$unexec" = "unexaix.o" -a "$x11_release" = "6"; then
6488 if test "$GCC" = "yes"; then
6489 X_CFLAGS="-mthreads $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$X_CFLAGS"; fi
6490 libs_x="-mthreads $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$libs_x"; fi
6493 "xlc" ) CC="xlc_r" ;;
6494 "xlC" ) CC="xlC_r" ;;
6501 if test "$with_msw" != "no"; then
6502 echo "checking for MS-Windows" 1>&6
6503 echo "configure:6504: checking for MS-Windows" >&5
6505 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6
6506 echo "configure:6507: checking for main in -lgdi32" >&5
6507 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'`
6509 xe_check_libs=" -lgdi32 "
6510 cat > conftest.$ac_ext <<EOF
6511 #line 6512 "configure"
6512 #include "confdefs.h"
6518 if { (eval echo configure:6519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6520 eval "ac_cv_lib_$ac_lib_var=yes"
6522 echo "configure: failed program was:" >&5
6523 cat conftest.$ac_ext >&5
6525 eval "ac_cv_lib_$ac_lib_var=no"
6530 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6531 echo "$ac_t""yes" 1>&6
6534 echo "$ac_t""no" 1>&6
6538 if test "$with_msw" = "yes"; then
6539 { test "$extra_verbose" = "yes" && cat << \EOF
6540 Defining HAVE_MS_WINDOWS
6542 cat >> confdefs.h <<\EOF
6543 #define HAVE_MS_WINDOWS 1
6548 MAKE_SUBDIR="$MAKE_SUBDIR netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$MAKE_SUBDIR"; fi
6549 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$SRC_SUBDIR_DEPS"; fi
6550 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
6552 install_pp="$blddir/lib-src/installexe.sh"
6553 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
6554 test "$with_dragndrop" != no && dragndrop_proto="$dragndrop_proto msw" && if test "$extra_verbose" = "yes"; then echo " Appending \"msw\" to \$dragndrop_proto"; fi
6555 if test "$window_system" != x11; then
6557 test "$with_scrollbars" != "no" && with_scrollbars=msw \
6558 && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
6559 echo " xemacs will be linked with \"scrollbar-msw.o\""
6561 test "$with_menubars" != "no" && with_menubars=msw \
6562 && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
6563 echo " xemacs will be linked with \"menubar-msw.o\""
6565 test "$with_toolbars" != "no" && with_toolbars=msw \
6566 && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
6567 echo " xemacs will be linked with \"toolbar-msw.o\""
6569 test "$with_dialogs" != "no" && with_dialogs=msw \
6570 && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
6571 echo " xemacs will be linked with \"dialog-msw.o\""
6573 test "$with_widgets" != "no" && with_widgets=msw
6575 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
6576 echo " xemacs will be linked with \"scrollbar-msw.o\""
6578 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
6579 echo " xemacs will be linked with \"menubar-msw.o\""
6581 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
6582 echo " xemacs will be linked with \"toolbar-msw.o\""
6584 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
6585 echo " xemacs will be linked with \"dialog-msw.o\""
6588 cat > conftest.$ac_ext <<EOF
6589 #line 6590 "configure"
6590 #include "confdefs.h"
6592 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; }
6594 if { (eval echo configure:6595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6596 { test "$extra_verbose" = "yes" && cat << \EOF
6597 Defining HAVE_MSG_SELECT
6599 cat >> confdefs.h <<\EOF
6600 #define HAVE_MSG_SELECT 1
6606 echo "configure: failed program was:" >&5
6607 cat conftest.$ac_ext >&5
6610 with_file_coding=yes
6611 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
6612 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\""
6619 test -z "$window_system" && window_system="none"
6621 if test "$window_system" = "none"; then
6622 for feature in menubars scrollbars toolbars dialogs dragndrop xface
6624 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
6625 echo "configure: warning: --with-$feature ignored: Not valid without window system support" 1>&2
6627 eval "with_${feature}=no"
6630 test -z "$with_toolbars" && with_toolbars=yes
6633 if test "$with_msw" != "yes"; then
6634 for feature in MARTIN_IS_CLUELESS_ABOUT_MSW_FEATURES
6636 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
6637 echo "configure: warning: --with-$feature ignored: Not valid without MS-Windows support" 1>&2
6639 eval "with_${feature}=no"
6645 if test "$with_x11" != "yes"; then
6646 for feature in tooltalk cde offix wmcommand xim xmu nas_sound
6648 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
6649 echo "configure: warning: --with-$feature ignored: Not valid without X support" 1>&2
6651 eval "with_${feature}=no"
6655 if test "$with_x11" = "yes"; then
6656 ac_safe=`echo "X11/extensions/shape.h" | sed 'y%./+-%__p_%'`
6657 echo $ac_n "checking for X11/extensions/shape.h""... $ac_c" 1>&6
6658 echo "configure:6659: checking for X11/extensions/shape.h" >&5
6660 cat > conftest.$ac_ext <<EOF
6661 #line 6662 "configure"
6662 #include "confdefs.h"
6663 #include <X11/extensions/shape.h>
6665 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6666 { (eval echo configure:6667: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6667 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6668 if test -z "$ac_err"; then
6670 eval "ac_cv_header_$ac_safe=yes"
6673 echo "configure: failed program was:" >&5
6674 cat conftest.$ac_ext >&5
6676 eval "ac_cv_header_$ac_safe=no"
6679 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6680 echo "$ac_t""yes" 1>&6
6682 { test "$extra_verbose" = "yes" && cat << \EOF
6683 Defining HAVE_BALLOON_HELP
6685 cat >> confdefs.h <<\EOF
6686 #define HAVE_BALLOON_HELP 1
6690 extra_objs="$extra_objs balloon_help.o balloon-x.o" && if test "$extra_verbose" = "yes"; then
6691 echo " xemacs will be linked with \"balloon_help.o balloon-x.o\""
6694 echo "$ac_t""no" 1>&6
6701 case "$window_system" in
6702 x11 ) HAVE_X_WINDOWS=yes; echo " Using X11." ;;
6703 msw ) HAVE_X_WINDOWS=no ; echo " Using MS-Windows." ;;
6704 none ) HAVE_X_WINDOWS=no ; echo " Using no window system." ;;
6707 case "$x_libraries" in *X11R4* )
6708 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h"
6709 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h"
6712 echo "checking for WM_COMMAND option" 1>&6
6713 echo "configure:6714: checking for WM_COMMAND option" >&5;
6714 if test "$with_wmcommand" != "no"; then
6715 { test "$extra_verbose" = "yes" && cat << \EOF
6716 Defining HAVE_WMCOMMAND
6718 cat >> confdefs.h <<\EOF
6719 #define HAVE_WMCOMMAND 1
6725 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
6726 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'`
6727 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
6728 echo "configure:6729: checking for X11/Xauth.h" >&5
6730 cat > conftest.$ac_ext <<EOF
6731 #line 6732 "configure"
6732 #include "confdefs.h"
6733 #include <X11/Xauth.h>
6735 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6736 { (eval echo configure:6737: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6737 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6738 if test -z "$ac_err"; then
6740 eval "ac_cv_header_$ac_safe=yes"
6743 echo "configure: failed program was:" >&5
6744 cat conftest.$ac_ext >&5
6746 eval "ac_cv_header_$ac_safe=no"
6749 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6750 echo "$ac_t""yes" 1>&6
6753 echo "$ac_t""no" 1>&6
6757 test -z "$with_xauth" && {
6758 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
6759 echo "configure:6760: checking for XauGetAuthByAddr in -lXau" >&5
6760 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
6762 xe_check_libs=" -lXau "
6763 cat > conftest.$ac_ext <<EOF
6764 #line 6765 "configure"
6765 #include "confdefs.h"
6766 /* Override any gcc2 internal prototype to avoid an error. */
6767 /* We use char because int might match the return type of a gcc2
6768 builtin and then its argument prototype would still apply. */
6769 char XauGetAuthByAddr();
6775 if { (eval echo configure:6776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6777 eval "ac_cv_lib_$ac_lib_var=yes"
6779 echo "configure: failed program was:" >&5
6780 cat conftest.$ac_ext >&5
6782 eval "ac_cv_lib_$ac_lib_var=no"
6787 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6788 echo "$ac_t""yes" 1>&6
6791 echo "$ac_t""no" 1>&6
6796 test -z "$with_xauth" && with_xauth=yes
6797 if test "$with_xauth" = "yes"; then
6798 { test "$extra_verbose" = "yes" && cat << \EOF
6801 cat >> confdefs.h <<\EOF
6802 #define HAVE_XAUTH 1
6808 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
6816 if test "$with_tooltalk" != "no" ; then
6817 for dir in "" "Tt/" "desktop/" ; do
6818 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
6819 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
6820 echo "configure:6821: checking for ${dir}tt_c.h" >&5
6822 cat > conftest.$ac_ext <<EOF
6823 #line 6824 "configure"
6824 #include "confdefs.h"
6825 #include <${dir}tt_c.h>
6827 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6828 { (eval echo configure:6829: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6829 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6830 if test -z "$ac_err"; then
6832 eval "ac_cv_header_$ac_safe=yes"
6835 echo "configure: failed program was:" >&5
6836 cat conftest.$ac_ext >&5
6838 eval "ac_cv_header_$ac_safe=no"
6841 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6842 echo "$ac_t""yes" 1>&6
6843 tt_c_h_file="${dir}tt_c.h"; break
6845 echo "$ac_t""no" 1>&6
6849 if test -z "$tt_c_h_file"; then
6850 if test "$with_tooltalk" = "yes"; then
6851 (echo "$progname: Usage error:"
6852 echo " " "Unable to find required tooltalk header files."
6853 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
6858 if test "$with_tooltalk" != "no" ; then
6859 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
6861 xe_msg_checking="for tt_message_create in -ltt"
6862 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
6863 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6864 echo "configure:6865: checking "$xe_msg_checking"" >&5
6865 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
6867 xe_check_libs=" -ltt $extra_libs"
6868 cat > conftest.$ac_ext <<EOF
6869 #line 6870 "configure"
6870 #include "confdefs.h"
6871 /* Override any gcc2 internal prototype to avoid an error. */
6872 /* We use char because int might match the return type of a gcc2
6873 builtin and then its argument prototype would still apply. */
6874 char tt_message_create();
6880 if { (eval echo configure:6881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6882 eval "ac_cv_lib_$ac_lib_var=yes"
6884 echo "configure: failed program was:" >&5
6885 cat conftest.$ac_ext >&5
6887 eval "ac_cv_lib_$ac_lib_var=no"
6892 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6893 echo "$ac_t""yes" 1>&6
6894 tt_libs="-ltt $extra_libs"; break
6896 echo "$ac_t""no" 1>&6
6902 if test -z "$tt_libs"; then
6903 if test "$with_tooltalk" = "yes"; then
6904 (echo "$progname: Usage error:"
6905 echo " " "Unable to find required tooltalk libraries."
6906 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
6911 test -z "$with_tooltalk" && with_tooltalk=yes
6912 if test "$with_tooltalk" = "yes"; then
6913 { test "$extra_verbose" = "yes" && cat << \EOF
6916 cat >> confdefs.h <<\EOF
6921 { test "$extra_verbose" = "yes" && cat << EOF
6922 Defining TT_C_H_FILE = "$tt_c_h_file"
6924 cat >> confdefs.h <<EOF
6925 #define TT_C_H_FILE "$tt_c_h_file"
6929 libs_x="$tt_libs $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$tt_libs\" to \$libs_x"; fi
6930 extra_objs="$extra_objs tooltalk.o" && if test "$extra_verbose" = "yes"; then
6931 echo " xemacs will be linked with \"tooltalk.o\""
6935 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'`
6936 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
6937 echo "configure:6938: checking for Dt/Dt.h" >&5
6939 cat > conftest.$ac_ext <<EOF
6940 #line 6941 "configure"
6941 #include "confdefs.h"
6944 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6945 { (eval echo configure:6946: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6946 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6947 if test -z "$ac_err"; then
6949 eval "ac_cv_header_$ac_safe=yes"
6952 echo "configure: failed program was:" >&5
6953 cat conftest.$ac_ext >&5
6955 eval "ac_cv_header_$ac_safe=no"
6958 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6959 echo "$ac_t""yes" 1>&6
6962 echo "$ac_t""no" 1>&6
6966 test -z "$with_cde" && {
6967 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
6968 echo "configure:6969: checking for DtDndDragStart in -lDtSvc" >&5
6969 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
6971 xe_check_libs=" -lDtSvc "
6972 cat > conftest.$ac_ext <<EOF
6973 #line 6974 "configure"
6974 #include "confdefs.h"
6975 /* Override any gcc2 internal prototype to avoid an error. */
6976 /* We use char because int might match the return type of a gcc2
6977 builtin and then its argument prototype would still apply. */
6978 char DtDndDragStart();
6984 if { (eval echo configure:6985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6986 eval "ac_cv_lib_$ac_lib_var=yes"
6988 echo "configure: failed program was:" >&5
6989 cat conftest.$ac_ext >&5
6991 eval "ac_cv_lib_$ac_lib_var=no"
6996 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6997 echo "$ac_t""yes" 1>&6
7000 echo "$ac_t""no" 1>&6
7005 test -z "$with_cde" && with_cde=yes
7006 if test "$with_dragndrop" = no; then
7007 echo "configure: warning: No CDE without generic Drag'n'Drop support" 1>&2
7010 if test "$with_cde" = "yes" ; then
7011 { test "$extra_verbose" = "yes" && cat << \EOF
7014 cat >> confdefs.h <<\EOF
7019 libs_x="-lDtSvc $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lDtSvc\" to \$libs_x"; fi
7020 dragndrop_proto="$dragndrop_proto CDE" && if test "$extra_verbose" = "yes"; then echo " Appending \"CDE\" to \$dragndrop_proto"; fi
7021 with_tooltalk=yes # CDE requires Tooltalk
7022 need_motif=yes # CDE requires Motif
7025 test "$window_system" != "x11" && with_offix=no
7026 if test "$with_xmu" != yes -a "$with_x11" = yes; then
7027 echo "configure: warning: No OffiX without real Xmu support" 1>&2
7030 if test "$with_dragndrop" = no; then
7031 echo "configure: warning: No OffiX without generic Drag'n'Drop support" 1>&2
7034 if test "$with_cde" = yes; then
7035 echo "configure: warning: CDE already found, disabling OffiX support" 1>&2
7038 test -z "$with_offix" && with_offix=no
7039 if test "$with_offix" = "yes"; then
7040 { test "$extra_verbose" = "yes" && cat << \EOF
7041 Defining HAVE_OFFIX_DND
7043 cat >> confdefs.h <<\EOF
7044 #define HAVE_OFFIX_DND 1
7048 dnd_objs="$dnd_objs offix.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"offix.o\" to \$dnd_objs"; fi
7049 dragndrop_proto="$dragndrop_proto OffiX" && if test "$extra_verbose" = "yes"; then echo " Appending \"OffiX\" to \$dragndrop_proto"; fi
7052 if test "$with_dragndrop" != "no" ; then
7053 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6
7054 echo "configure:7055: checking if drag and drop API is needed" >&5
7055 if test -n "$dragndrop_proto" ; then
7057 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6
7058 { test "$extra_verbose" = "yes" && cat << \EOF
7059 Defining HAVE_DRAGNDROP
7061 cat >> confdefs.h <<\EOF
7062 #define HAVE_DRAGNDROP 1
7066 extra_objs="$extra_objs dragdrop.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"dragdrop.o\" to \$extra_objs"; fi
7069 echo "$ac_t""no" 1>&6
7073 echo "checking for LDAP" 1>&6
7074 echo "configure:7075: checking for LDAP" >&5
7075 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'`
7076 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6
7077 echo "configure:7078: checking for ldap.h" >&5
7079 cat > conftest.$ac_ext <<EOF
7080 #line 7081 "configure"
7081 #include "confdefs.h"
7084 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7085 { (eval echo configure:7086: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7086 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7087 if test -z "$ac_err"; then
7089 eval "ac_cv_header_$ac_safe=yes"
7092 echo "configure: failed program was:" >&5
7093 cat conftest.$ac_ext >&5
7095 eval "ac_cv_header_$ac_safe=no"
7098 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7099 echo "$ac_t""yes" 1>&6
7102 echo "$ac_t""no" 1>&6
7106 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'`
7107 echo $ac_n "checking for lber.h""... $ac_c" 1>&6
7108 echo "configure:7109: checking for lber.h" >&5
7110 cat > conftest.$ac_ext <<EOF
7111 #line 7112 "configure"
7112 #include "confdefs.h"
7115 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7116 { (eval echo configure:7117: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7117 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7118 if test -z "$ac_err"; then
7120 eval "ac_cv_header_$ac_safe=yes"
7123 echo "configure: failed program was:" >&5
7124 cat conftest.$ac_ext >&5
7126 eval "ac_cv_header_$ac_safe=no"
7129 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7130 echo "$ac_t""yes" 1>&6
7133 echo "$ac_t""no" 1>&6
7137 if test "$with_ldap" != "no"; then
7139 echo $ac_n "checking for ldap_search in -lldap""... $ac_c" 1>&6
7140 echo "configure:7141: checking for ldap_search in -lldap" >&5
7141 ac_lib_var=`echo ldap'_'ldap_search | sed 'y%./+-%__p_%'`
7143 xe_check_libs=" -lldap "
7144 cat > conftest.$ac_ext <<EOF
7145 #line 7146 "configure"
7146 #include "confdefs.h"
7147 /* Override any gcc2 internal prototype to avoid an error. */
7148 /* We use char because int might match the return type of a gcc2
7149 builtin and then its argument prototype would still apply. */
7156 if { (eval echo configure:7157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7158 eval "ac_cv_lib_$ac_lib_var=yes"
7160 echo "configure: failed program was:" >&5
7161 cat conftest.$ac_ext >&5
7163 eval "ac_cv_lib_$ac_lib_var=no"
7168 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7169 echo "$ac_t""yes" 1>&6
7170 with_ldap_nolber=yes
7172 echo "$ac_t""no" 1>&6
7177 test "$with_ldap_nolber" = "no" && {
7178 xe_msg_checking="for ldap_open in -lldap"
7179 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber"
7180 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7181 echo "configure:7182: checking "$xe_msg_checking"" >&5
7182 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7184 xe_check_libs=" -lldap -llber"
7185 cat > conftest.$ac_ext <<EOF
7186 #line 7187 "configure"
7187 #include "confdefs.h"
7188 /* Override any gcc2 internal prototype to avoid an error. */
7189 /* We use char because int might match the return type of a gcc2
7190 builtin and then its argument prototype would still apply. */
7197 if { (eval echo configure:7198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7199 eval "ac_cv_lib_$ac_lib_var=yes"
7201 echo "configure: failed program was:" >&5
7202 cat conftest.$ac_ext >&5
7204 eval "ac_cv_lib_$ac_lib_var=no"
7209 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7210 echo "$ac_t""yes" 1>&6
7213 echo "$ac_t""no" 1>&6
7218 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" && {
7219 xe_msg_checking="for ldap_open in -lldap"
7220 test -n "-llber -lkrb" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb"
7221 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7222 echo "configure:7223: checking "$xe_msg_checking"" >&5
7223 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7225 xe_check_libs=" -lldap -llber -lkrb"
7226 cat > conftest.$ac_ext <<EOF
7227 #line 7228 "configure"
7228 #include "confdefs.h"
7229 /* Override any gcc2 internal prototype to avoid an error. */
7230 /* We use char because int might match the return type of a gcc2
7231 builtin and then its argument prototype would still apply. */
7238 if { (eval echo configure:7239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7240 eval "ac_cv_lib_$ac_lib_var=yes"
7242 echo "configure: failed program was:" >&5
7243 cat conftest.$ac_ext >&5
7245 eval "ac_cv_lib_$ac_lib_var=no"
7250 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7251 echo "$ac_t""yes" 1>&6
7254 echo "$ac_t""no" 1>&6
7259 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" -a "$with_ldap_krb" = "no" && {
7260 xe_msg_checking="for ldap_open in -lldap"
7261 test -n "-llber -lkrb -ldes" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb -ldes"
7262 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7263 echo "configure:7264: checking "$xe_msg_checking"" >&5
7264 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7266 xe_check_libs=" -lldap -llber -lkrb -ldes"
7267 cat > conftest.$ac_ext <<EOF
7268 #line 7269 "configure"
7269 #include "confdefs.h"
7270 /* Override any gcc2 internal prototype to avoid an error. */
7271 /* We use char because int might match the return type of a gcc2
7272 builtin and then its argument prototype would still apply. */
7279 if { (eval echo configure:7280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7281 eval "ac_cv_lib_$ac_lib_var=yes"
7283 echo "configure: failed program was:" >&5
7284 cat conftest.$ac_ext >&5
7286 eval "ac_cv_lib_$ac_lib_var=no"
7291 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7292 echo "$ac_t""yes" 1>&6
7293 with_ldap_krbdes=yes
7295 echo "$ac_t""no" 1>&6
7300 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
7302 if test "$with_ldap" = "yes"; then
7303 { test "$extra_verbose" = "yes" && cat << \EOF
7306 cat >> confdefs.h <<\EOF
7311 extra_objs="$extra_objs eldap.o" && if test "$extra_verbose" = "yes"; then
7312 echo " xemacs will be linked with \"eldap.o\""
7314 if test "$with_ldap_nolber" = "yes" ; then
7315 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
7317 if test "$with_ldap_krb" = "yes" ; then
7318 LIBS="-lkrb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$LIBS"; fi
7320 if test "$with_ldap_krbdes" = "yes" ; then
7321 LIBS="-ldes $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldes\" to \$LIBS"; fi
7322 LIBS="-lkrb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$LIBS"; fi
7324 LIBS="-llber $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-llber\" to \$LIBS"; fi
7325 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
7327 for ac_func in ldap_set_option ldap_get_lderrno ldap_result2error ldap_parse_result
7329 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7330 echo "configure:7331: checking for $ac_func" >&5
7332 cat > conftest.$ac_ext <<EOF
7333 #line 7334 "configure"
7334 #include "confdefs.h"
7335 /* System header to define __stub macros and hopefully few prototypes,
7336 which can conflict with char $ac_func(); below. */
7338 /* Override any gcc2 internal prototype to avoid an error. */
7339 /* We use char because int might match the return type of a gcc2
7340 builtin and then its argument prototype would still apply. */
7345 /* The GNU C library defines this for functions which it implements
7346 to always fail with ENOSYS. Some functions are actually named
7347 something starting with __ and the normal name is an alias. */
7348 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7356 if { (eval echo configure:7357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7358 eval "ac_cv_func_$ac_func=yes"
7360 echo "configure: failed program was:" >&5
7361 cat conftest.$ac_ext >&5
7363 eval "ac_cv_func_$ac_func=no"
7367 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7368 echo "$ac_t""yes" 1>&6
7369 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7370 { test "$extra_verbose" = "yes" && cat << EOF
7371 Defining $ac_tr_func
7373 cat >> confdefs.h <<EOF
7374 #define $ac_tr_func 1
7379 echo "$ac_t""no" 1>&6
7385 if test "$with_postgresql" != "no"; then
7386 echo "checking for PostgreSQL" 1>&6
7387 echo "configure:7388: checking for PostgreSQL" >&5
7389 for header_dir in "" "pgsql/" "postgresql/"; do
7390 ac_safe=`echo "${header_dir}libpq-fe.h" | sed 'y%./+-%__p_%'`
7391 echo $ac_n "checking for ${header_dir}libpq-fe.h""... $ac_c" 1>&6
7392 echo "configure:7393: checking for ${header_dir}libpq-fe.h" >&5
7394 cat > conftest.$ac_ext <<EOF
7395 #line 7396 "configure"
7396 #include "confdefs.h"
7397 #include <${header_dir}libpq-fe.h>
7399 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7400 { (eval echo configure:7401: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7401 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7402 if test -z "$ac_err"; then
7404 eval "ac_cv_header_$ac_safe=yes"
7407 echo "configure: failed program was:" >&5
7408 cat conftest.$ac_ext >&5
7410 eval "ac_cv_header_$ac_safe=no"
7413 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7414 echo "$ac_t""yes" 1>&6
7415 libpq_fe_h_file=${header_dir}libpq-fe.h; break
7417 echo "$ac_t""no" 1>&6
7422 test -n "$libpq_fe_h_file" && {
7423 echo $ac_n "checking for PQconnectdb in -lpq""... $ac_c" 1>&6
7424 echo "configure:7425: checking for PQconnectdb in -lpq" >&5
7425 ac_lib_var=`echo pq'_'PQconnectdb | sed 'y%./+-%__p_%'`
7427 xe_check_libs=" -lpq "
7428 cat > conftest.$ac_ext <<EOF
7429 #line 7430 "configure"
7430 #include "confdefs.h"
7431 /* Override any gcc2 internal prototype to avoid an error. */
7432 /* We use char because int might match the return type of a gcc2
7433 builtin and then its argument prototype would still apply. */
7440 if { (eval echo configure:7441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7442 eval "ac_cv_lib_$ac_lib_var=yes"
7444 echo "configure: failed program was:" >&5
7445 cat conftest.$ac_ext >&5
7447 eval "ac_cv_lib_$ac_lib_var=no"
7452 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7453 echo "$ac_t""yes" 1>&6
7456 echo "$ac_t""no" 1>&6
7461 if test -n "$libpq_fe_h_file" -a "$have_libpq" = "yes"; then
7463 { test "$extra_verbose" = "yes" && cat << \EOF
7464 Defining HAVE_POSTGRESQL
7466 cat >> confdefs.h <<\EOF
7467 #define HAVE_POSTGRESQL 1
7472 echo $ac_n "checking for PQconnectStart in -lpq""... $ac_c" 1>&6
7473 echo "configure:7474: checking for PQconnectStart in -lpq" >&5
7474 ac_lib_var=`echo pq'_'PQconnectStart | sed 'y%./+-%__p_%'`
7476 xe_check_libs=" -lpq "
7477 cat > conftest.$ac_ext <<EOF
7478 #line 7479 "configure"
7479 #include "confdefs.h"
7480 /* Override any gcc2 internal prototype to avoid an error. */
7481 /* We use char because int might match the return type of a gcc2
7482 builtin and then its argument prototype would still apply. */
7483 char PQconnectStart();
7489 if { (eval echo configure:7490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7491 eval "ac_cv_lib_$ac_lib_var=yes"
7493 echo "configure: failed program was:" >&5
7494 cat conftest.$ac_ext >&5
7496 eval "ac_cv_lib_$ac_lib_var=no"
7501 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7502 echo "$ac_t""yes" 1>&6
7503 with_postgresqlv7=yes;
7504 { test "$extra_verbose" = "yes" && cat << \EOF
7505 Defining HAVE_POSTGRESQLV7
7507 cat >> confdefs.h <<\EOF
7508 #define HAVE_POSTGRESQLV7 1
7513 echo "$ac_t""no" 1>&6
7517 { test "$extra_verbose" = "yes" && cat << EOF
7518 Defining LIBPQ_FE_H_FILE = "$libpq_fe_h_file"
7520 cat >> confdefs.h <<EOF
7521 #define LIBPQ_FE_H_FILE "$libpq_fe_h_file"
7525 LIBS="-lpq $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpq\" to \$LIBS"; fi
7526 extra_objs="$extra_objs postgresql.o" && if test "$extra_verbose" = "yes"; then
7527 echo " xemacs will be linked with \"postgresql.o\""
7529 elif test "$with_postgresql" = "yes"; then
7530 { echo "Error:" "Required PostgreSQL support cannot be provided. Check --site-prefixes." >&2; exit 1; }
7535 if test "$window_system" != "none"; then
7536 echo "checking for graphics libraries" 1>&6
7537 echo "configure:7538: checking for graphics libraries" >&5
7540 if test -z "$with_xpm"; then
7541 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6
7542 echo "configure:7543: checking for Xpm - no older than 3.4f" >&5
7544 cat > conftest.$ac_ext <<EOF
7545 #line 7546 "configure"
7546 #include "confdefs.h"
7548 #include <X11/xpm.h>
7549 int main(int c, char **v) {
7551 XpmIncludeVersion != XpmLibraryVersion() ? 1 :
7552 XpmIncludeVersion < 30406 ? 2 : 0 ;}
7554 if { (eval echo configure:7555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
7556 ./conftest dummy_arg; xpm_status=$?;
7557 if test "$xpm_status" = "0"; then
7561 if test "$xpm_status" = "1"; then
7562 xpm_problem="Xpm library version and header file version don't match!"
7563 elif test "$xpm_status" = "2"; then
7564 xpm_problem="Xpm library version is too old!"
7566 xpm_problem="Internal xpm detection logic error!"
7569 *** WARNING *** $xpm_problem
7570 I'm not touching that with a 10-foot pole!
7571 If you really want to use the installed version of Xpm, rerun
7572 configure and add '--with-xpm=yes', but don't blame me if XEmacs crashes!"
7576 echo "configure: failed program was:" >&5
7577 cat conftest.$ac_ext >&5
7583 echo "$ac_t""$with_xpm" 1>&6
7585 if test "$with_xpm" = "yes"; then
7586 { test "$extra_verbose" = "yes" && cat << \EOF
7589 cat >> confdefs.h <<\EOF
7594 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
7595 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6
7596 echo "configure:7597: checking for \"FOR_MSW\" xpm" >&5
7598 cat > conftest.$ac_ext <<EOF
7599 #line 7600 "configure"
7600 #include "confdefs.h"
7603 XpmCreatePixmapFromData()
7606 if { (eval echo configure:7607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7610 echo "configure: failed program was:" >&5
7611 cat conftest.$ac_ext >&5
7617 echo "$ac_t""$xpm_for_msw" 1>&6
7618 if test "$xpm_for_msw" = "yes"; then
7619 { test "$extra_verbose" = "yes" && cat << \EOF
7622 cat >> confdefs.h <<\EOF
7630 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
7631 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
7632 echo "configure:7633: checking for compface.h" >&5
7634 cat > conftest.$ac_ext <<EOF
7635 #line 7636 "configure"
7636 #include "confdefs.h"
7637 #include <compface.h>
7639 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7640 { (eval echo configure:7641: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7641 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7642 if test -z "$ac_err"; then
7644 eval "ac_cv_header_$ac_safe=yes"
7647 echo "configure: failed program was:" >&5
7648 cat conftest.$ac_ext >&5
7650 eval "ac_cv_header_$ac_safe=no"
7653 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7654 echo "$ac_t""yes" 1>&6
7657 echo "$ac_t""no" 1>&6
7661 test -z "$with_xface" && {
7662 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
7663 echo "configure:7664: checking for UnGenFace in -lcompface" >&5
7664 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
7666 xe_check_libs=" -lcompface "
7667 cat > conftest.$ac_ext <<EOF
7668 #line 7669 "configure"
7669 #include "confdefs.h"
7670 /* Override any gcc2 internal prototype to avoid an error. */
7671 /* We use char because int might match the return type of a gcc2
7672 builtin and then its argument prototype would still apply. */
7679 if { (eval echo configure:7680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7681 eval "ac_cv_lib_$ac_lib_var=yes"
7683 echo "configure: failed program was:" >&5
7684 cat conftest.$ac_ext >&5
7686 eval "ac_cv_lib_$ac_lib_var=no"
7691 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7692 echo "$ac_t""yes" 1>&6
7695 echo "$ac_t""no" 1>&6
7700 test -z "$with_xface" && with_xface=yes
7701 if test "$with_xface" = "yes"; then
7702 { test "$extra_verbose" = "yes" && cat << \EOF
7705 cat >> confdefs.h <<\EOF
7706 #define HAVE_XFACE 1
7710 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi
7713 if test "$with_gif" != "no"; then
7715 { test "$extra_verbose" = "yes" && cat << \EOF
7718 cat >> confdefs.h <<\EOF
7723 extra_objs="$extra_objs dgif_lib.o gif_io.o" && if test "$extra_verbose" = "yes"; then
7724 echo " xemacs will be linked with \"dgif_lib.o gif_io.o\""
7728 if test "$with_png $with_tiff" != "no no"; then
7730 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6
7731 echo "configure:7732: checking for inflate in -lc" >&5
7732 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'`
7734 xe_check_libs=" -lc "
7735 cat > conftest.$ac_ext <<EOF
7736 #line 7737 "configure"
7737 #include "confdefs.h"
7738 /* Override any gcc2 internal prototype to avoid an error. */
7739 /* We use char because int might match the return type of a gcc2
7740 builtin and then its argument prototype would still apply. */
7747 if { (eval echo configure:7748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7749 eval "ac_cv_lib_$ac_lib_var=yes"
7751 echo "configure: failed program was:" >&5
7752 cat conftest.$ac_ext >&5
7754 eval "ac_cv_lib_$ac_lib_var=no"
7759 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7760 echo "$ac_t""yes" 1>&6
7763 echo "$ac_t""no" 1>&6
7765 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
7766 echo "configure:7767: checking for inflate in -lz" >&5
7767 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
7769 xe_check_libs=" -lz "
7770 cat > conftest.$ac_ext <<EOF
7771 #line 7772 "configure"
7772 #include "confdefs.h"
7773 /* Override any gcc2 internal prototype to avoid an error. */
7774 /* We use char because int might match the return type of a gcc2
7775 builtin and then its argument prototype would still apply. */
7782 if { (eval echo configure:7783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7784 eval "ac_cv_lib_$ac_lib_var=yes"
7786 echo "configure: failed program was:" >&5
7787 cat conftest.$ac_ext >&5
7789 eval "ac_cv_lib_$ac_lib_var=no"
7794 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7795 echo "$ac_t""yes" 1>&6
7796 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi
7798 echo "$ac_t""no" 1>&6
7800 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6
7801 echo "configure:7802: checking for inflate in -lgz" >&5
7802 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'`
7804 xe_check_libs=" -lgz "
7805 cat > conftest.$ac_ext <<EOF
7806 #line 7807 "configure"
7807 #include "confdefs.h"
7808 /* Override any gcc2 internal prototype to avoid an error. */
7809 /* We use char because int might match the return type of a gcc2
7810 builtin and then its argument prototype would still apply. */
7817 if { (eval echo configure:7818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7819 eval "ac_cv_lib_$ac_lib_var=yes"
7821 echo "configure: failed program was:" >&5
7822 cat conftest.$ac_ext >&5
7824 eval "ac_cv_lib_$ac_lib_var=no"
7829 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7830 echo "$ac_t""yes" 1>&6
7831 libs_x="-lgz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgz\" to \$libs_x"; fi
7833 echo "$ac_t""no" 1>&6
7845 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
7846 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
7847 echo "configure:7848: checking for jpeglib.h" >&5
7849 cat > conftest.$ac_ext <<EOF
7850 #line 7851 "configure"
7851 #include "confdefs.h"
7852 #include <jpeglib.h>
7854 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7855 { (eval echo configure:7856: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7856 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7857 if test -z "$ac_err"; then
7859 eval "ac_cv_header_$ac_safe=yes"
7862 echo "configure: failed program was:" >&5
7863 cat conftest.$ac_ext >&5
7865 eval "ac_cv_header_$ac_safe=no"
7868 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7869 echo "$ac_t""yes" 1>&6
7872 echo "$ac_t""no" 1>&6
7876 test -z "$with_jpeg" && {
7877 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6
7878 echo "configure:7879: checking for jpeg_destroy_decompress in -ljpeg" >&5
7879 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'`
7881 xe_check_libs=" -ljpeg "
7882 cat > conftest.$ac_ext <<EOF
7883 #line 7884 "configure"
7884 #include "confdefs.h"
7885 /* Override any gcc2 internal prototype to avoid an error. */
7886 /* We use char because int might match the return type of a gcc2
7887 builtin and then its argument prototype would still apply. */
7888 char jpeg_destroy_decompress();
7891 jpeg_destroy_decompress()
7894 if { (eval echo configure:7895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7896 eval "ac_cv_lib_$ac_lib_var=yes"
7898 echo "configure: failed program was:" >&5
7899 cat conftest.$ac_ext >&5
7901 eval "ac_cv_lib_$ac_lib_var=no"
7906 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7907 echo "$ac_t""yes" 1>&6
7910 echo "$ac_t""no" 1>&6
7915 test -z "$with_jpeg" && with_jpeg=yes
7916 if test "$with_jpeg" = "yes"; then
7917 { test "$extra_verbose" = "yes" && cat << \EOF
7920 cat >> confdefs.h <<\EOF
7925 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi
7929 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6
7930 echo "configure:7931: checking for pow" >&5
7932 cat > conftest.$ac_ext <<EOF
7933 #line 7934 "configure"
7934 #include "confdefs.h"
7935 /* System header to define __stub macros and hopefully few prototypes,
7936 which can conflict with char pow(); below. */
7938 /* Override any gcc2 internal prototype to avoid an error. */
7939 /* We use char because int might match the return type of a gcc2
7940 builtin and then its argument prototype would still apply. */
7945 /* The GNU C library defines this for functions which it implements
7946 to always fail with ENOSYS. Some functions are actually named
7947 something starting with __ and the normal name is an alias. */
7948 #if defined (__stub_pow) || defined (__stub___pow)
7956 if { (eval echo configure:7957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7958 eval "ac_cv_func_pow=yes"
7960 echo "configure: failed program was:" >&5
7961 cat conftest.$ac_ext >&5
7963 eval "ac_cv_func_pow=no"
7967 if eval "test \"`echo '$ac_cv_func_'pow`\" = yes"; then
7968 echo "$ac_t""yes" 1>&6
7971 echo "$ac_t""no" 1>&6
7975 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
7976 echo $ac_n "checking for png.h""... $ac_c" 1>&6
7977 echo "configure:7978: checking for png.h" >&5
7979 cat > conftest.$ac_ext <<EOF
7980 #line 7981 "configure"
7981 #include "confdefs.h"
7984 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7985 { (eval echo configure:7986: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7986 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7987 if test -z "$ac_err"; then
7989 eval "ac_cv_header_$ac_safe=yes"
7992 echo "configure: failed program was:" >&5
7993 cat conftest.$ac_ext >&5
7995 eval "ac_cv_header_$ac_safe=no"
7998 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7999 echo "$ac_t""yes" 1>&6
8002 echo "$ac_t""no" 1>&6
8006 test -z "$with_png" && {
8007 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6
8008 echo "configure:8009: checking for png_read_image in -lpng" >&5
8009 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
8011 xe_check_libs=" -lpng "
8012 cat > conftest.$ac_ext <<EOF
8013 #line 8014 "configure"
8014 #include "confdefs.h"
8015 /* Override any gcc2 internal prototype to avoid an error. */
8016 /* We use char because int might match the return type of a gcc2
8017 builtin and then its argument prototype would still apply. */
8018 char png_read_image();
8024 if { (eval echo configure:8025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8026 eval "ac_cv_lib_$ac_lib_var=yes"
8028 echo "configure: failed program was:" >&5
8029 cat conftest.$ac_ext >&5
8031 eval "ac_cv_lib_$ac_lib_var=no"
8036 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8037 echo "$ac_t""yes" 1>&6
8040 echo "$ac_t""no" 1>&6
8045 if test -z "$with_png"; then
8046 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6
8047 echo "configure:8048: checking for workable png version information" >&5
8048 xe_check_libs="-lpng -lz"
8049 cat > conftest.$ac_ext <<EOF
8050 #line 8051 "configure"
8051 #include "confdefs.h"
8053 int main(int c, char **v) {
8054 if (c == 1) return 0;
8055 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1;
8056 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;}
8058 if { (eval echo configure:8059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
8060 ./conftest dummy_arg; png_status=$?;
8061 if test "$png_status" = "0"; then
8065 if test "$png_status" = "1"; then
8066 png_problem="PNG library version and header file don't match!"
8067 elif test "$png_status" = "2"; then
8068 png_problem="PNG library version too old (pre 1.0.2)!"
8071 *** WARNING *** $png_problem
8072 I'm not touching that with a 10-foot pole!
8073 If you really want to use the installed version of libPNG, rerun
8074 configure and add '--with-png=yes', but don't blame me if XEmacs crashes!"
8078 echo "configure: failed program was:" >&5
8079 cat conftest.$ac_ext >&5
8085 echo "$ac_t""$with_png" 1>&6
8087 if test "$with_png" = "yes"; then
8088 { test "$extra_verbose" = "yes" && cat << \EOF
8091 cat >> confdefs.h <<\EOF
8096 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi
8099 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
8100 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
8101 echo "configure:8102: checking for tiffio.h" >&5
8103 cat > conftest.$ac_ext <<EOF
8104 #line 8105 "configure"
8105 #include "confdefs.h"
8108 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8109 { (eval echo configure:8110: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8110 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8111 if test -z "$ac_err"; then
8113 eval "ac_cv_header_$ac_safe=yes"
8116 echo "configure: failed program was:" >&5
8117 cat conftest.$ac_ext >&5
8119 eval "ac_cv_header_$ac_safe=no"
8122 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8123 echo "$ac_t""yes" 1>&6
8126 echo "$ac_t""no" 1>&6
8130 test -z "$with_tiff" && {
8131 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6
8132 echo "configure:8133: checking for TIFFClientOpen in -ltiff" >&5
8133 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'`
8135 xe_check_libs=" -ltiff "
8136 cat > conftest.$ac_ext <<EOF
8137 #line 8138 "configure"
8138 #include "confdefs.h"
8139 /* Override any gcc2 internal prototype to avoid an error. */
8140 /* We use char because int might match the return type of a gcc2
8141 builtin and then its argument prototype would still apply. */
8142 char TIFFClientOpen();
8148 if { (eval echo configure:8149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8150 eval "ac_cv_lib_$ac_lib_var=yes"
8152 echo "configure: failed program was:" >&5
8153 cat conftest.$ac_ext >&5
8155 eval "ac_cv_lib_$ac_lib_var=no"
8160 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8161 echo "$ac_t""yes" 1>&6
8164 echo "$ac_t""no" 1>&6
8169 test -z "$with_tiff" && with_tiff=yes
8170 if test "$with_tiff" = "yes"; then
8171 { test "$extra_verbose" = "yes" && cat << \EOF
8174 cat >> confdefs.h <<\EOF
8179 libs_x="-ltiff $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltiff\" to \$libs_x"; fi
8184 if test "$with_x11" = "yes"; then
8186 echo "checking for X11 graphics libraries" 1>&6
8187 echo "configure:8188: checking for X11 graphics libraries" >&5
8189 echo "checking for the Athena widgets" 1>&6
8190 echo "configure:8191: checking for the Athena widgets" >&5
8192 case "$with_athena" in
8193 "xaw" | "") athena_variant=Xaw athena_3d=no ;;
8194 "3d") athena_variant=Xaw3d athena_3d=yes ;;
8195 "next") athena_variant=neXtaw athena_3d=yes ;;
8196 "95") athena_variant=Xaw95 athena_3d=yes ;;
8197 "xpm") athena_variant=XawXpm athena_3d=yes ;;
8198 *) { echo "Error:" "Unknown Athena widget set \`$with_athena'. This should not happen." >&2; exit 1; } ;;
8201 if test "$athena_3d" = "no"; then
8203 echo $ac_n "checking for XawScrollbarSetThumb in -l$athena_variant""... $ac_c" 1>&6
8204 echo "configure:8205: checking for XawScrollbarSetThumb in -l$athena_variant" >&5
8205 ac_lib_var=`echo $athena_variant'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
8207 xe_check_libs=" -l$athena_variant "
8208 cat > conftest.$ac_ext <<EOF
8209 #line 8210 "configure"
8210 #include "confdefs.h"
8211 /* Override any gcc2 internal prototype to avoid an error. */
8212 /* We use char because int might match the return type of a gcc2
8213 builtin and then its argument prototype would still apply. */
8214 char XawScrollbarSetThumb();
8217 XawScrollbarSetThumb()
8220 if { (eval echo configure:8221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8222 eval "ac_cv_lib_$ac_lib_var=yes"
8224 echo "configure: failed program was:" >&5
8225 cat conftest.$ac_ext >&5
8227 eval "ac_cv_lib_$ac_lib_var=no"
8232 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8233 echo "$ac_t""yes" 1>&6
8235 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
8236 echo "configure:8237: checking for threeDClassRec in -l$athena_variant" >&5
8237 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
8239 xe_check_libs=" -l$athena_variant "
8240 cat > conftest.$ac_ext <<EOF
8241 #line 8242 "configure"
8242 #include "confdefs.h"
8243 /* Override any gcc2 internal prototype to avoid an error. */
8244 /* We use char because int might match the return type of a gcc2
8245 builtin and then its argument prototype would still apply. */
8246 char threeDClassRec();
8252 if { (eval echo configure:8253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8254 eval "ac_cv_lib_$ac_lib_var=yes"
8256 echo "configure: failed program was:" >&5
8257 cat conftest.$ac_ext >&5
8259 eval "ac_cv_lib_$ac_lib_var=no"
8264 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8265 echo "$ac_t""yes" 1>&6
8266 echo "configure: warning: "Could not find a non-3d Athena widget library."" 1>&2
8268 echo "$ac_t""no" 1>&6
8269 athena_lib=$athena_variant
8275 echo "$ac_t""no" 1>&6
8276 echo "configure: warning: "Could not find an Athena widget library."" 1>&2
8282 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
8283 echo "configure:8284: checking for threeDClassRec in -l$athena_variant" >&5
8284 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
8286 xe_check_libs=" -l$athena_variant "
8287 cat > conftest.$ac_ext <<EOF
8288 #line 8289 "configure"
8289 #include "confdefs.h"
8290 /* Override any gcc2 internal prototype to avoid an error. */
8291 /* We use char because int might match the return type of a gcc2
8292 builtin and then its argument prototype would still apply. */
8293 char threeDClassRec();
8299 if { (eval echo configure:8300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8301 eval "ac_cv_lib_$ac_lib_var=yes"
8303 echo "configure: failed program was:" >&5
8304 cat conftest.$ac_ext >&5
8306 eval "ac_cv_lib_$ac_lib_var=no"
8311 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8312 echo "$ac_t""yes" 1>&6
8313 athena_lib=$athena_variant
8315 echo "$ac_t""no" 1>&6
8316 echo $ac_n "checking for threeDClassRec in -lXaw""... $ac_c" 1>&6
8317 echo "configure:8318: checking for threeDClassRec in -lXaw" >&5
8318 ac_lib_var=`echo Xaw'_'threeDClassRec | sed 'y%./+-%__p_%'`
8320 xe_check_libs=" -lXaw "
8321 cat > conftest.$ac_ext <<EOF
8322 #line 8323 "configure"
8323 #include "confdefs.h"
8324 /* Override any gcc2 internal prototype to avoid an error. */
8325 /* We use char because int might match the return type of a gcc2
8326 builtin and then its argument prototype would still apply. */
8327 char threeDClassRec();
8333 if { (eval echo configure:8334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8335 eval "ac_cv_lib_$ac_lib_var=yes"
8337 echo "configure: failed program was:" >&5
8338 cat conftest.$ac_ext >&5
8340 eval "ac_cv_lib_$ac_lib_var=no"
8345 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8346 echo "$ac_t""yes" 1>&6
8348 echo "configure: warning: "Assuming that libXaw is actually $athena_variant."" 1>&2;
8351 echo "$ac_t""no" 1>&6
8352 echo "configure: warning: "Could not find a 3d Athena widget library that looked like $athena_variant."" 1>&2
8361 if test "$athena_3d" = "no"; then
8362 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
8363 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
8364 echo "configure:8365: checking for X11/Xaw/ThreeD.h" >&5
8366 cat > conftest.$ac_ext <<EOF
8367 #line 8368 "configure"
8368 #include "confdefs.h"
8369 #include <X11/Xaw/ThreeD.h>
8371 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8372 { (eval echo configure:8373: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8373 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8374 if test -z "$ac_err"; then
8376 eval "ac_cv_header_$ac_safe=yes"
8379 echo "configure: failed program was:" >&5
8380 cat conftest.$ac_ext >&5
8382 eval "ac_cv_header_$ac_safe=no"
8385 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8386 echo "$ac_t""yes" 1>&6
8387 echo "configure: warning: "Could not find a non-3d Athena header set."" 1>&2
8389 echo "$ac_t""no" 1>&6
8390 ac_safe=`echo "X11/Xaw/XawInit.h" | sed 'y%./+-%__p_%'`
8391 echo $ac_n "checking for X11/Xaw/XawInit.h""... $ac_c" 1>&6
8392 echo "configure:8393: checking for X11/Xaw/XawInit.h" >&5
8394 cat > conftest.$ac_ext <<EOF
8395 #line 8396 "configure"
8396 #include "confdefs.h"
8397 #include <X11/Xaw/XawInit.h>
8399 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8400 { (eval echo configure:8401: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8401 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8402 if test -z "$ac_err"; then
8404 eval "ac_cv_header_$ac_safe=yes"
8407 echo "configure: failed program was:" >&5
8408 cat conftest.$ac_ext >&5
8410 eval "ac_cv_header_$ac_safe=no"
8413 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8414 echo "$ac_t""yes" 1>&6
8415 athena_h_path=X11/Xaw
8417 echo "$ac_t""no" 1>&6
8418 echo "configure: warning: "Could not find a non-3d Athena header set."" 1>&2
8424 ac_safe=`echo "X11/$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
8425 echo $ac_n "checking for X11/$athena_variant/XawInit.h""... $ac_c" 1>&6
8426 echo "configure:8427: checking for X11/$athena_variant/XawInit.h" >&5
8428 cat > conftest.$ac_ext <<EOF
8429 #line 8430 "configure"
8430 #include "confdefs.h"
8431 #include <X11/$athena_variant/XawInit.h>
8433 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8434 { (eval echo configure:8435: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8435 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8436 if test -z "$ac_err"; then
8438 eval "ac_cv_header_$ac_safe=yes"
8441 echo "configure: failed program was:" >&5
8442 cat conftest.$ac_ext >&5
8444 eval "ac_cv_header_$ac_safe=no"
8447 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8448 echo "$ac_t""yes" 1>&6
8449 ac_safe=`echo "X11/$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
8450 echo $ac_n "checking for X11/$athena_variant/ThreeD.h""... $ac_c" 1>&6
8451 echo "configure:8452: checking for X11/$athena_variant/ThreeD.h" >&5
8453 cat > conftest.$ac_ext <<EOF
8454 #line 8455 "configure"
8455 #include "confdefs.h"
8456 #include <X11/$athena_variant/ThreeD.h>
8458 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8459 { (eval echo configure:8460: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8460 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8461 if test -z "$ac_err"; then
8463 eval "ac_cv_header_$ac_safe=yes"
8466 echo "configure: failed program was:" >&5
8467 cat conftest.$ac_ext >&5
8469 eval "ac_cv_header_$ac_safe=no"
8472 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8473 echo "$ac_t""yes" 1>&6
8474 athena_h_path=X11/$athena_variant
8476 echo "$ac_t""no" 1>&6
8480 echo "$ac_t""no" 1>&6
8484 if test -z "$athena_h_path"; then
8485 ac_safe=`echo "$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
8486 echo $ac_n "checking for $athena_variant/XawInit.h""... $ac_c" 1>&6
8487 echo "configure:8488: checking for $athena_variant/XawInit.h" >&5
8489 cat > conftest.$ac_ext <<EOF
8490 #line 8491 "configure"
8491 #include "confdefs.h"
8492 #include <$athena_variant/XawInit.h>
8494 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8495 { (eval echo configure:8496: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8496 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8497 if test -z "$ac_err"; then
8499 eval "ac_cv_header_$ac_safe=yes"
8502 echo "configure: failed program was:" >&5
8503 cat conftest.$ac_ext >&5
8505 eval "ac_cv_header_$ac_safe=no"
8508 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8509 echo "$ac_t""yes" 1>&6
8510 ac_safe=`echo "$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
8511 echo $ac_n "checking for $athena_variant/ThreeD.h""... $ac_c" 1>&6
8512 echo "configure:8513: checking for $athena_variant/ThreeD.h" >&5
8514 cat > conftest.$ac_ext <<EOF
8515 #line 8516 "configure"
8516 #include "confdefs.h"
8517 #include <$athena_variant/ThreeD.h>
8519 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8520 { (eval echo configure:8521: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8521 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8522 if test -z "$ac_err"; then
8524 eval "ac_cv_header_$ac_safe=yes"
8527 echo "configure: failed program was:" >&5
8528 cat conftest.$ac_ext >&5
8530 eval "ac_cv_header_$ac_safe=no"
8533 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8534 echo "$ac_t""yes" 1>&6
8535 athena_h_path=$athena_variant
8537 echo "$ac_t""no" 1>&6
8541 echo "$ac_t""no" 1>&6
8546 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
8547 ac_safe=`echo "X11/Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
8548 echo $ac_n "checking for X11/Xaw3d/XawInit.h""... $ac_c" 1>&6
8549 echo "configure:8550: checking for X11/Xaw3d/XawInit.h" >&5
8551 cat > conftest.$ac_ext <<EOF
8552 #line 8553 "configure"
8553 #include "confdefs.h"
8554 #include <X11/Xaw3d/XawInit.h>
8556 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8557 { (eval echo configure:8558: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8558 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8559 if test -z "$ac_err"; then
8561 eval "ac_cv_header_$ac_safe=yes"
8564 echo "configure: failed program was:" >&5
8565 cat conftest.$ac_ext >&5
8567 eval "ac_cv_header_$ac_safe=no"
8570 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8571 echo "$ac_t""yes" 1>&6
8572 ac_safe=`echo "X11/Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
8573 echo $ac_n "checking for X11/Xaw3d/ThreeD.h""... $ac_c" 1>&6
8574 echo "configure:8575: checking for X11/Xaw3d/ThreeD.h" >&5
8576 cat > conftest.$ac_ext <<EOF
8577 #line 8578 "configure"
8578 #include "confdefs.h"
8579 #include <X11/Xaw3d/ThreeD.h>
8581 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8582 { (eval echo configure:8583: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8583 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8584 if test -z "$ac_err"; then
8586 eval "ac_cv_header_$ac_safe=yes"
8589 echo "configure: failed program was:" >&5
8590 cat conftest.$ac_ext >&5
8592 eval "ac_cv_header_$ac_safe=no"
8595 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8596 echo "$ac_t""yes" 1>&6
8598 echo "configure: warning: "Assuming that X11/Xaw3d headers are suitable for $athena_variant."" 1>&2
8599 athena_h_path=X11/Xaw3d
8602 echo "$ac_t""no" 1>&6
8606 echo "$ac_t""no" 1>&6
8611 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
8612 ac_safe=`echo "Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
8613 echo $ac_n "checking for Xaw3d/XawInit.h""... $ac_c" 1>&6
8614 echo "configure:8615: checking for Xaw3d/XawInit.h" >&5
8616 cat > conftest.$ac_ext <<EOF
8617 #line 8618 "configure"
8618 #include "confdefs.h"
8619 #include <Xaw3d/XawInit.h>
8621 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8622 { (eval echo configure:8623: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8623 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8624 if test -z "$ac_err"; then
8626 eval "ac_cv_header_$ac_safe=yes"
8629 echo "configure: failed program was:" >&5
8630 cat conftest.$ac_ext >&5
8632 eval "ac_cv_header_$ac_safe=no"
8635 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8636 echo "$ac_t""yes" 1>&6
8637 ac_safe=`echo "Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
8638 echo $ac_n "checking for Xaw3d/ThreeD.h""... $ac_c" 1>&6
8639 echo "configure:8640: checking for Xaw3d/ThreeD.h" >&5
8641 cat > conftest.$ac_ext <<EOF
8642 #line 8643 "configure"
8643 #include "confdefs.h"
8644 #include <Xaw3d/ThreeD.h>
8646 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8647 { (eval echo configure:8648: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8648 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8649 if test -z "$ac_err"; then
8651 eval "ac_cv_header_$ac_safe=yes"
8654 echo "configure: failed program was:" >&5
8655 cat conftest.$ac_ext >&5
8657 eval "ac_cv_header_$ac_safe=no"
8660 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8661 echo "$ac_t""yes" 1>&6
8663 echo "configure: warning: "Assuming that Xaw3d headers are suitable for $athena_variant."" 1>&2
8667 echo "$ac_t""no" 1>&6
8671 echo "$ac_t""no" 1>&6
8676 if test -z "$athena_h_path"; then
8677 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
8678 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
8679 echo "configure:8680: checking for X11/Xaw/ThreeD.h" >&5
8681 cat > conftest.$ac_ext <<EOF
8682 #line 8683 "configure"
8683 #include "confdefs.h"
8684 #include <X11/Xaw/ThreeD.h>
8686 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8687 { (eval echo configure:8688: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8688 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8689 if test -z "$ac_err"; then
8691 eval "ac_cv_header_$ac_safe=yes"
8694 echo "configure: failed program was:" >&5
8695 cat conftest.$ac_ext >&5
8697 eval "ac_cv_header_$ac_safe=no"
8700 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8701 echo "$ac_t""yes" 1>&6
8703 echo "configure: warning: "Assuming that X11/Xaw headers are suitable for $athena_variant."" 1>&2
8704 athena_h_path=X11/Xaw
8707 echo "$ac_t""no" 1>&6
8708 echo "configure: warning: "Could not find a suitable 3d Athena header set."" 1>&2
8714 if test -n "$athena_lib" -a -n "$athena_h_path"; then
8720 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
8721 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
8722 echo "configure:8723: checking for Xm/Xm.h" >&5
8724 cat > conftest.$ac_ext <<EOF
8725 #line 8726 "configure"
8726 #include "confdefs.h"
8729 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8730 { (eval echo configure:8731: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8731 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8732 if test -z "$ac_err"; then
8734 eval "ac_cv_header_$ac_safe=yes"
8737 echo "configure: failed program was:" >&5
8738 cat conftest.$ac_ext >&5
8740 eval "ac_cv_header_$ac_safe=no"
8743 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8744 echo "$ac_t""yes" 1>&6
8746 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
8747 echo "configure:8748: checking for XmStringFree in -lXm" >&5
8748 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
8750 xe_check_libs=" -lXm "
8751 cat > conftest.$ac_ext <<EOF
8752 #line 8753 "configure"
8753 #include "confdefs.h"
8754 /* Override any gcc2 internal prototype to avoid an error. */
8755 /* We use char because int might match the return type of a gcc2
8756 builtin and then its argument prototype would still apply. */
8757 char XmStringFree();
8763 if { (eval echo configure:8764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8765 eval "ac_cv_lib_$ac_lib_var=yes"
8767 echo "configure: failed program was:" >&5
8768 cat conftest.$ac_ext >&5
8770 eval "ac_cv_lib_$ac_lib_var=no"
8775 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8776 echo "$ac_t""yes" 1>&6
8779 echo "$ac_t""no" 1>&6
8785 echo "$ac_t""no" 1>&6
8790 if test "$have_motif" = "yes"; then
8791 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6
8792 echo "configure:8793: checking for Lesstif" >&5
8793 cat > conftest.$ac_ext <<EOF
8794 #line 8795 "configure"
8795 #include "confdefs.h"
8797 #ifdef LESSTIF_VERSION
8802 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8803 egrep "yes" >/dev/null 2>&1; then
8812 echo "$ac_t""$have_lesstif" 1>&6
8817 case "$with_menubars" in "" | "yes" | "athena" )
8818 with_menubars="lucid" ;;
8820 case "$with_dialogs" in "" | "yes" | "lucid" )
8821 if test "$have_motif" = "yes"; then with_dialogs="motif"
8822 elif test "$have_xaw" = "yes"; then with_dialogs="athena"
8823 else with_dialogs=no
8826 case "$with_scrollbars" in "" | "yes" )
8827 with_scrollbars="lucid" ;;
8829 case "$with_widgets" in "" | "yes" | "lucid")
8830 if test "$have_motif" = "yes"; then with_widgets="motif"
8831 elif test "$have_xaw" = "yes"; then with_widgets="athena"
8832 else with_widgets=no
8836 all_widgets="$with_menubars $with_scrollbars $with_dialogs $with_toolbars $with_widgets"
8838 case "$all_widgets" in
8840 if test "$have_xaw" != "yes"; then
8841 { echo "Error:" "Could not find a suitable Athena library to build with." >&2; exit 1; }
8844 lwlib_objs="$lwlib_objs lwlib-Xaw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xaw.o\" to \$lwlib_objs"; fi
8846 libs_x="-l$athena_lib $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$athena_lib\" to \$libs_x"; fi
8848 { test "$extra_verbose" = "yes" && cat << EOF
8849 Defining ATHENA_Scrollbar_h_ = "$athena_h_path/Scrollbar.h"
8851 cat >> confdefs.h <<EOF
8852 #define ATHENA_Scrollbar_h_ "$athena_h_path/Scrollbar.h"
8856 { test "$extra_verbose" = "yes" && cat << EOF
8857 Defining ATHENA_Dialog_h_ = "$athena_h_path/Dialog.h"
8859 cat >> confdefs.h <<EOF
8860 #define ATHENA_Dialog_h_ "$athena_h_path/Dialog.h"
8864 { test "$extra_verbose" = "yes" && cat << EOF
8865 Defining ATHENA_Form_h_ = "$athena_h_path/Form.h"
8867 cat >> confdefs.h <<EOF
8868 #define ATHENA_Form_h_ "$athena_h_path/Form.h"
8872 { test "$extra_verbose" = "yes" && cat << EOF
8873 Defining ATHENA_Command_h_ = "$athena_h_path/Command.h"
8875 cat >> confdefs.h <<EOF
8876 #define ATHENA_Command_h_ "$athena_h_path/Command.h"
8880 { test "$extra_verbose" = "yes" && cat << EOF
8881 Defining ATHENA_Label_h_ = "$athena_h_path/Label.h"
8883 cat >> confdefs.h <<EOF
8884 #define ATHENA_Label_h_ "$athena_h_path/Label.h"
8888 { test "$extra_verbose" = "yes" && cat << EOF
8889 Defining ATHENA_LabelP_h_ = "$athena_h_path/LabelP.h"
8891 cat >> confdefs.h <<EOF
8892 #define ATHENA_LabelP_h_ "$athena_h_path/LabelP.h"
8896 { test "$extra_verbose" = "yes" && cat << EOF
8897 Defining ATHENA_Toggle_h_ = "$athena_h_path/Toggle.h"
8899 cat >> confdefs.h <<EOF
8900 #define ATHENA_Toggle_h_ "$athena_h_path/Toggle.h"
8904 { test "$extra_verbose" = "yes" && cat << EOF
8905 Defining ATHENA_ToggleP_h_ = "$athena_h_path/ToggleP.h"
8907 cat >> confdefs.h <<EOF
8908 #define ATHENA_ToggleP_h_ "$athena_h_path/ToggleP.h"
8912 { test "$extra_verbose" = "yes" && cat << EOF
8913 Defining ATHENA_AsciiText_h_ = "$athena_h_path/AsciiText.h"
8915 cat >> confdefs.h <<EOF
8916 #define ATHENA_AsciiText_h_ "$athena_h_path/AsciiText.h"
8920 { test "$extra_verbose" = "yes" && cat << EOF
8921 Defining ATHENA_XawInit_h_ = "$athena_h_path/XawInit.h"
8923 cat >> confdefs.h <<EOF
8924 #define ATHENA_XawInit_h_ "$athena_h_path/XawInit.h"
8929 { test "$extra_verbose" = "yes" && cat << \EOF
8930 Defining LWLIB_USES_ATHENA
8932 cat >> confdefs.h <<\EOF
8933 #define LWLIB_USES_ATHENA 1
8937 { test "$extra_verbose" = "yes" && cat << \EOF
8938 Defining NEED_ATHENA
8940 cat >> confdefs.h <<\EOF
8941 #define NEED_ATHENA 1
8947 if test "$athena_3d" = "yes"; then
8948 { test "$extra_verbose" = "yes" && cat << \EOF
8949 Defining HAVE_ATHENA_3D
8951 cat >> confdefs.h <<\EOF
8952 #define HAVE_ATHENA_3D 1
8960 case "$all_widgets" in *motif* )
8961 { test "$extra_verbose" = "yes" && cat << \EOF
8962 Defining LWLIB_USES_MOTIF
8964 cat >> confdefs.h <<\EOF
8965 #define LWLIB_USES_MOTIF 1
8969 { test "$extra_verbose" = "yes" && cat << \EOF
8972 cat >> confdefs.h <<\EOF
8973 #define NEED_MOTIF 1
8977 lwlib_objs="$lwlib_objs lwlib-Xm.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xm.o\" to \$lwlib_objs"; fi
8981 test "$with_menubars" = "lucid" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
8982 test "$with_menubars" = "motif" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
8983 test "$with_scrollbars" = "lucid" && lwlib_objs="$lwlib_objs xlwscrollbar.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwscrollbar.o\" to \$lwlib_objs"; fi
8984 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
8985 lwlib_objs="$lwlib_objs xlwtabs.o xlwgcs.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwtabs.o xlwgcs.o\" to \$lwlib_objs"; fi
8986 case "$with_widgets" in athena* )
8987 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;;
8989 case "$all_widgets" in *lucid* )
8990 { test "$extra_verbose" = "yes" && cat << \EOF
8993 cat >> confdefs.h <<\EOF
8994 #define NEED_LUCID 1
8998 lwlib_objs="$lwlib_objs lwlib-Xlw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xlw.o\" to \$lwlib_objs"; fi ;;
9003 test "$with_scrollbars" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
9004 Defining LWLIB_SCROLLBARS_ATHENA
9006 cat >> confdefs.h <<\EOF
9007 #define LWLIB_SCROLLBARS_ATHENA 1
9011 test "$with_dialogs" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
9012 Defining LWLIB_DIALOGS_ATHENA
9014 cat >> confdefs.h <<\EOF
9015 #define LWLIB_DIALOGS_ATHENA 1
9020 if test "$athena_3d" = "yes"; then
9021 test "$with_scrollbars" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
9022 Defining LWLIB_SCROLLBARS_ATHENA3D
9024 cat >> confdefs.h <<\EOF
9025 #define LWLIB_SCROLLBARS_ATHENA3D 1
9029 test "$with_dialogs" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
9030 Defining LWLIB_DIALOGS_ATHENA3D
9032 cat >> confdefs.h <<\EOF
9033 #define LWLIB_DIALOGS_ATHENA3D 1
9039 case "$with_widgets" in athena* ) { test "$extra_verbose" = "yes" && cat << \EOF
9040 Defining LWLIB_WIDGETS_ATHENA
9042 cat >> confdefs.h <<\EOF
9043 #define LWLIB_WIDGETS_ATHENA 1
9047 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
9048 { test "$extra_verbose" = "yes" && cat << \EOF
9049 Defining LWLIB_TABS_LUCID
9051 cat >> confdefs.h <<\EOF
9052 #define LWLIB_TABS_LUCID 1
9057 test "$with_menubars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9058 Defining HAVE_MENUBARS
9060 cat >> confdefs.h <<\EOF
9061 #define HAVE_MENUBARS 1
9065 test "$with_scrollbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9066 Defining HAVE_SCROLLBARS
9068 cat >> confdefs.h <<\EOF
9069 #define HAVE_SCROLLBARS 1
9073 test "$with_dialogs" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9074 Defining HAVE_DIALOGS
9076 cat >> confdefs.h <<\EOF
9077 #define HAVE_DIALOGS 1
9081 test "$with_toolbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9082 Defining HAVE_TOOLBARS
9084 cat >> confdefs.h <<\EOF
9085 #define HAVE_TOOLBARS 1
9089 test "$with_widgets" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9090 Defining HAVE_WIDGETS
9092 cat >> confdefs.h <<\EOF
9093 #define HAVE_WIDGETS 1
9098 test "$with_menubars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
9099 Defining LWLIB_MENUBARS_LUCID
9101 cat >> confdefs.h <<\EOF
9102 #define LWLIB_MENUBARS_LUCID 1
9106 test "$with_scrollbars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
9107 Defining LWLIB_SCROLLBARS_LUCID
9109 cat >> confdefs.h <<\EOF
9110 #define LWLIB_SCROLLBARS_LUCID 1
9115 test "$with_menubars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9116 Defining LWLIB_MENUBARS_MOTIF
9118 cat >> confdefs.h <<\EOF
9119 #define LWLIB_MENUBARS_MOTIF 1
9123 test "$with_scrollbars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9124 Defining LWLIB_SCROLLBARS_MOTIF
9126 cat >> confdefs.h <<\EOF
9127 #define LWLIB_SCROLLBARS_MOTIF 1
9131 test "$with_dialogs" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9132 Defining LWLIB_DIALOGS_MOTIF
9134 cat >> confdefs.h <<\EOF
9135 #define LWLIB_DIALOGS_MOTIF 1
9139 test "$with_widgets" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9140 Defining LWLIB_WIDGETS_MOTIF
9142 cat >> confdefs.h <<\EOF
9143 #define LWLIB_WIDGETS_MOTIF 1
9148 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar.o" && if test "$extra_verbose" = "yes"; then
9149 echo " xemacs will be linked with \"menubar.o\""
9151 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar.o" && if test "$extra_verbose" = "yes"; then
9152 echo " xemacs will be linked with \"scrollbar.o\""
9154 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog.o" && if test "$extra_verbose" = "yes"; then
9155 echo " xemacs will be linked with \"dialog.o\""
9157 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar.o" && if test "$extra_verbose" = "yes"; then
9158 echo " xemacs will be linked with \"toolbar.o\""
9161 if test "$with_x11" = "yes"; then
9162 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-x.o" && if test "$extra_verbose" = "yes"; then
9163 echo " xemacs will be linked with \"menubar-x.o\""
9165 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-x.o" && if test "$extra_verbose" = "yes"; then
9166 echo " xemacs will be linked with \"scrollbar-x.o\""
9168 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-x.o" && if test "$extra_verbose" = "yes"; then
9169 echo " xemacs will be linked with \"dialog-x.o\""
9171 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-x.o" && if test "$extra_verbose" = "yes"; then
9172 echo " xemacs will be linked with \"toolbar-x.o\""
9174 test "$all_widgets" != "no no no no no" && extra_objs="$extra_objs gui-x.o" && if test "$extra_verbose" = "yes"; then
9175 echo " xemacs will be linked with \"gui-x.o\""
9180 test -z "$with_mule" && with_mule=no
9181 test -z "$with_file_coding" && with_file_coding=no
9184 if test "$with_file_coding" = "yes" && test "$with_mule" = "no"; then
9185 { test "$extra_verbose" = "yes" && cat << \EOF
9186 Defining FILE_CODING
9188 cat >> confdefs.h <<\EOF
9189 #define FILE_CODING 1
9193 extra_objs="$extra_objs file-coding.o" && if test "$extra_verbose" = "yes"; then
9194 echo " xemacs will be linked with \"file-coding.o\""
9198 if test "$with_mule" = "yes" ; then
9199 echo "checking for Mule-related features" 1>&6
9200 echo "configure:9201: checking for Mule-related features" >&5
9201 { test "$extra_verbose" = "yes" && cat << \EOF
9204 cat >> confdefs.h <<\EOF
9209 { test "$extra_verbose" = "yes" && cat << \EOF
9210 Defining FILE_CODING
9212 cat >> confdefs.h <<\EOF
9213 #define FILE_CODING 1
9217 extra_objs="$extra_objs mule.o mule-ccl.o mule-charset.o file-coding.o" && if test "$extra_verbose" = "yes"; then
9218 echo " xemacs will be linked with \"mule.o mule-ccl.o mule-charset.o file-coding.o\""
9221 for ac_hdr in libintl.h
9223 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9224 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9225 echo "configure:9226: checking for $ac_hdr" >&5
9227 cat > conftest.$ac_ext <<EOF
9228 #line 9229 "configure"
9229 #include "confdefs.h"
9232 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9233 { (eval echo configure:9234: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9234 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9235 if test -z "$ac_err"; then
9237 eval "ac_cv_header_$ac_safe=yes"
9240 echo "configure: failed program was:" >&5
9241 cat conftest.$ac_ext >&5
9243 eval "ac_cv_header_$ac_safe=no"
9246 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9247 echo "$ac_t""yes" 1>&6
9248 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9249 { test "$extra_verbose" = "yes" && cat << EOF
9252 cat >> confdefs.h <<EOF
9253 #define $ac_tr_hdr 1
9258 echo "$ac_t""no" 1>&6
9263 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
9264 echo "configure:9265: checking for strerror in -lintl" >&5
9265 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
9267 xe_check_libs=" -lintl "
9268 cat > conftest.$ac_ext <<EOF
9269 #line 9270 "configure"
9270 #include "confdefs.h"
9271 /* Override any gcc2 internal prototype to avoid an error. */
9272 /* We use char because int might match the return type of a gcc2
9273 builtin and then its argument prototype would still apply. */
9280 if { (eval echo configure:9281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9282 eval "ac_cv_lib_$ac_lib_var=yes"
9284 echo "configure: failed program was:" >&5
9285 cat conftest.$ac_ext >&5
9287 eval "ac_cv_lib_$ac_lib_var=no"
9292 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9293 echo "$ac_t""yes" 1>&6
9294 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9295 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9296 { test "$extra_verbose" = "yes" && cat << EOF
9299 cat >> confdefs.h <<EOF
9300 #define $ac_tr_lib 1
9304 LIBS="-lintl $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lintl\" to \$LIBS"; fi
9307 echo "$ac_t""no" 1>&6
9312 echo "checking for Mule input methods" 1>&6
9313 echo "configure:9314: checking for Mule input methods" >&5
9314 case "$with_xim" in "" | "yes" )
9315 echo "checking for XIM" 1>&6
9316 echo "configure:9317: checking for XIM" >&5
9318 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6
9319 echo "configure:9320: checking for XOpenIM in -lX11" >&5
9320 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'`
9322 xe_check_libs=" -lX11 "
9323 cat > conftest.$ac_ext <<EOF
9324 #line 9325 "configure"
9325 #include "confdefs.h"
9326 /* Override any gcc2 internal prototype to avoid an error. */
9327 /* We use char because int might match the return type of a gcc2
9328 builtin and then its argument prototype would still apply. */
9335 if { (eval echo configure:9336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9337 eval "ac_cv_lib_$ac_lib_var=yes"
9339 echo "configure: failed program was:" >&5
9340 cat conftest.$ac_ext >&5
9342 eval "ac_cv_lib_$ac_lib_var=no"
9347 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9348 echo "$ac_t""yes" 1>&6
9351 echo "$ac_t""no" 1>&6
9356 if test "$have_motif $have_lesstif" = "yes no"; then
9358 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
9359 echo "configure:9360: checking for XmImMbLookupString in -lXm" >&5
9360 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
9362 xe_check_libs=" -lXm "
9363 cat > conftest.$ac_ext <<EOF
9364 #line 9365 "configure"
9365 #include "confdefs.h"
9366 /* Override any gcc2 internal prototype to avoid an error. */
9367 /* We use char because int might match the return type of a gcc2
9368 builtin and then its argument prototype would still apply. */
9369 char XmImMbLookupString();
9372 XmImMbLookupString()
9375 if { (eval echo configure:9376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9377 eval "ac_cv_lib_$ac_lib_var=yes"
9379 echo "configure: failed program was:" >&5
9380 cat conftest.$ac_ext >&5
9382 eval "ac_cv_lib_$ac_lib_var=no"
9387 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9388 echo "$ac_t""yes" 1>&6
9391 echo "$ac_t""no" 1>&6
9397 if test "$with_xim" != "no"; then
9398 { test "$extra_verbose" = "yes" && cat << \EOF
9401 cat >> confdefs.h <<\EOF
9406 if test "$with_xim" = "xlib"; then
9407 { test "$extra_verbose" = "yes" && cat << \EOF
9410 cat >> confdefs.h <<\EOF
9415 extra_objs="$extra_objs input-method-xlib.o" && if test "$extra_verbose" = "yes"; then
9416 echo " xemacs will be linked with \"input-method-xlib.o\""
9419 if test "$with_xim" = "motif"; then
9420 { test "$extra_verbose" = "yes" && cat << \EOF
9423 cat >> confdefs.h <<\EOF
9429 extra_objs="$extra_objs input-method-motif.o" && if test "$extra_verbose" = "yes"; then
9430 echo " xemacs will be linked with \"input-method-motif.o\""
9433 if test "$with_xim" = "motif"; then
9438 if test "$with_xfs" = "yes" ; then
9439 echo "checking for XFontSet" 1>&6
9440 echo "configure:9441: checking for XFontSet" >&5
9442 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6
9443 echo "configure:9444: checking for XmbDrawString in -lX11" >&5
9444 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
9446 xe_check_libs=" -lX11 "
9447 cat > conftest.$ac_ext <<EOF
9448 #line 9449 "configure"
9449 #include "confdefs.h"
9450 /* Override any gcc2 internal prototype to avoid an error. */
9451 /* We use char because int might match the return type of a gcc2
9452 builtin and then its argument prototype would still apply. */
9453 char XmbDrawString();
9459 if { (eval echo configure:9460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9461 eval "ac_cv_lib_$ac_lib_var=yes"
9463 echo "configure: failed program was:" >&5
9464 cat conftest.$ac_ext >&5
9466 eval "ac_cv_lib_$ac_lib_var=no"
9471 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9472 echo "$ac_t""yes" 1>&6
9475 echo "$ac_t""no" 1>&6
9480 if test "$with_xfs" = "yes" && test "$with_menubars" = "lucid"; then
9481 { test "$extra_verbose" = "yes" && cat << \EOF
9482 Defining USE_XFONTSET
9484 cat >> confdefs.h <<\EOF
9485 #define USE_XFONTSET 1
9489 if test "$with_xim" = "no" ; then
9490 extra_objs="$extra_objs input-method-xlib.o" && if test "$extra_verbose" = "yes"; then
9491 echo " xemacs will be linked with \"input-method-xlib.o\""
9496 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
9497 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
9498 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
9499 echo "configure:9500: checking for wnn/jllib.h" >&5
9501 cat > conftest.$ac_ext <<EOF
9502 #line 9503 "configure"
9503 #include "confdefs.h"
9504 #include <wnn/jllib.h>
9506 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9507 { (eval echo configure:9508: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9508 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9509 if test -z "$ac_err"; then
9511 eval "ac_cv_header_$ac_safe=yes"
9514 echo "configure: failed program was:" >&5
9515 cat conftest.$ac_ext >&5
9517 eval "ac_cv_header_$ac_safe=no"
9520 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9521 echo "$ac_t""yes" 1>&6
9524 echo "$ac_t""no" 1>&6
9528 test -z "$with_wnn" && { ac_safe=`echo "wnn/commonhd.h" | sed 'y%./+-%__p_%'`
9529 echo $ac_n "checking for wnn/commonhd.h""... $ac_c" 1>&6
9530 echo "configure:9531: checking for wnn/commonhd.h" >&5
9532 cat > conftest.$ac_ext <<EOF
9533 #line 9534 "configure"
9534 #include "confdefs.h"
9535 #include <wnn/commonhd.h>
9537 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9538 { (eval echo configure:9539: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9539 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9540 if test -z "$ac_err"; then
9542 eval "ac_cv_header_$ac_safe=yes"
9545 echo "configure: failed program was:" >&5
9546 cat conftest.$ac_ext >&5
9548 eval "ac_cv_header_$ac_safe=no"
9551 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9552 echo "$ac_t""yes" 1>&6
9555 echo "$ac_t""no" 1>&6
9559 if test "$with_wnn" != "no"; then
9560 for ac_func in crypt
9562 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9563 echo "configure:9564: checking for $ac_func" >&5
9565 cat > conftest.$ac_ext <<EOF
9566 #line 9567 "configure"
9567 #include "confdefs.h"
9568 /* System header to define __stub macros and hopefully few prototypes,
9569 which can conflict with char $ac_func(); below. */
9571 /* Override any gcc2 internal prototype to avoid an error. */
9572 /* We use char because int might match the return type of a gcc2
9573 builtin and then its argument prototype would still apply. */
9578 /* The GNU C library defines this for functions which it implements
9579 to always fail with ENOSYS. Some functions are actually named
9580 something starting with __ and the normal name is an alias. */
9581 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9589 if { (eval echo configure:9590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9591 eval "ac_cv_func_$ac_func=yes"
9593 echo "configure: failed program was:" >&5
9594 cat conftest.$ac_ext >&5
9596 eval "ac_cv_func_$ac_func=no"
9600 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9601 echo "$ac_t""yes" 1>&6
9602 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9603 { test "$extra_verbose" = "yes" && cat << EOF
9604 Defining $ac_tr_func
9606 cat >> confdefs.h <<EOF
9607 #define $ac_tr_func 1
9612 echo "$ac_t""no" 1>&6
9616 test "$ac_cv_func_crypt" != "yes" && {
9617 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
9618 echo "configure:9619: checking for crypt in -lcrypt" >&5
9619 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
9621 xe_check_libs=" -lcrypt "
9622 cat > conftest.$ac_ext <<EOF
9623 #line 9624 "configure"
9624 #include "confdefs.h"
9625 /* Override any gcc2 internal prototype to avoid an error. */
9626 /* We use char because int might match the return type of a gcc2
9627 builtin and then its argument prototype would still apply. */
9634 if { (eval echo configure:9635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9636 eval "ac_cv_lib_$ac_lib_var=yes"
9638 echo "configure: failed program was:" >&5
9639 cat conftest.$ac_ext >&5
9641 eval "ac_cv_lib_$ac_lib_var=no"
9646 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9647 echo "$ac_t""yes" 1>&6
9648 ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9649 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9650 { test "$extra_verbose" = "yes" && cat << EOF
9653 cat >> confdefs.h <<EOF
9654 #define $ac_tr_lib 1
9658 LIBS="-lcrypt $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcrypt\" to \$LIBS"; fi
9661 echo "$ac_t""no" 1>&6
9666 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then
9668 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
9669 echo "configure:9670: checking for jl_dic_list_e in -lwnn" >&5
9670 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
9672 xe_check_libs=" -lwnn "
9673 cat > conftest.$ac_ext <<EOF
9674 #line 9675 "configure"
9675 #include "confdefs.h"
9676 /* Override any gcc2 internal prototype to avoid an error. */
9677 /* We use char because int might match the return type of a gcc2
9678 builtin and then its argument prototype would still apply. */
9679 char jl_dic_list_e();
9685 if { (eval echo configure:9686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9687 eval "ac_cv_lib_$ac_lib_var=yes"
9689 echo "configure: failed program was:" >&5
9690 cat conftest.$ac_ext >&5
9692 eval "ac_cv_lib_$ac_lib_var=no"
9697 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9698 echo "$ac_t""yes" 1>&6
9701 echo "$ac_t""no" 1>&6
9702 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6
9703 echo "configure:9704: checking for jl_dic_list_e in -lwnn4" >&5
9704 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
9706 xe_check_libs=" -lwnn4 "
9707 cat > conftest.$ac_ext <<EOF
9708 #line 9709 "configure"
9709 #include "confdefs.h"
9710 /* Override any gcc2 internal prototype to avoid an error. */
9711 /* We use char because int might match the return type of a gcc2
9712 builtin and then its argument prototype would still apply. */
9713 char jl_dic_list_e();
9719 if { (eval echo configure:9720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9721 eval "ac_cv_lib_$ac_lib_var=yes"
9723 echo "configure: failed program was:" >&5
9724 cat conftest.$ac_ext >&5
9726 eval "ac_cv_lib_$ac_lib_var=no"
9731 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9732 echo "$ac_t""yes" 1>&6
9735 echo "$ac_t""no" 1>&6
9736 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6
9737 echo "configure:9738: checking for jl_dic_list_e in -lwnn6" >&5
9738 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
9740 xe_check_libs=" -lwnn6 "
9741 cat > conftest.$ac_ext <<EOF
9742 #line 9743 "configure"
9743 #include "confdefs.h"
9744 /* Override any gcc2 internal prototype to avoid an error. */
9745 /* We use char because int might match the return type of a gcc2
9746 builtin and then its argument prototype would still apply. */
9747 char jl_dic_list_e();
9753 if { (eval echo configure:9754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9755 eval "ac_cv_lib_$ac_lib_var=yes"
9757 echo "configure: failed program was:" >&5
9758 cat conftest.$ac_ext >&5
9760 eval "ac_cv_lib_$ac_lib_var=no"
9765 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9766 echo "$ac_t""yes" 1>&6
9769 echo "$ac_t""no" 1>&6
9770 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6
9771 echo "configure:9772: checking for dic_list_e in -lwnn6_fromsrc" >&5
9772 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'`
9774 xe_check_libs=" -lwnn6_fromsrc "
9775 cat > conftest.$ac_ext <<EOF
9776 #line 9777 "configure"
9777 #include "confdefs.h"
9778 /* Override any gcc2 internal prototype to avoid an error. */
9779 /* We use char because int might match the return type of a gcc2
9780 builtin and then its argument prototype would still apply. */
9787 if { (eval echo configure:9788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9789 eval "ac_cv_lib_$ac_lib_var=yes"
9791 echo "configure: failed program was:" >&5
9792 cat conftest.$ac_ext >&5
9794 eval "ac_cv_lib_$ac_lib_var=no"
9799 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9800 echo "$ac_t""yes" 1>&6
9803 echo "$ac_t""no" 1>&6
9818 test -z "$with_wnn" && with_wnn=yes
9819 if test "$with_wnn" = "yes"; then
9820 { test "$extra_verbose" = "yes" && cat << \EOF
9823 cat >> confdefs.h <<\EOF
9828 libs_x="-l$libwnn $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$libwnn\" to \$libs_x"; fi
9829 extra_objs="$extra_objs mule-wnnfns.o" && if test "$extra_verbose" = "yes"; then
9830 echo " xemacs will be linked with \"mule-wnnfns.o\""
9832 if test "$with_wnn6" != "no"; then
9834 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6
9835 echo "configure:9836: checking for jl_fi_dic_list in -l$libwnn" >&5
9836 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
9838 xe_check_libs=" -l$libwnn "
9839 cat > conftest.$ac_ext <<EOF
9840 #line 9841 "configure"
9841 #include "confdefs.h"
9842 /* Override any gcc2 internal prototype to avoid an error. */
9843 /* We use char because int might match the return type of a gcc2
9844 builtin and then its argument prototype would still apply. */
9845 char jl_fi_dic_list();
9851 if { (eval echo configure:9852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9853 eval "ac_cv_lib_$ac_lib_var=yes"
9855 echo "configure: failed program was:" >&5
9856 cat conftest.$ac_ext >&5
9858 eval "ac_cv_lib_$ac_lib_var=no"
9863 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9864 echo "$ac_t""yes" 1>&6
9867 echo "$ac_t""no" 1>&6
9871 test "$with_wnn6" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
9874 cat >> confdefs.h <<\EOF
9882 canna_includes_found=no
9883 if test "$with_canna" != "no"; then
9884 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
9885 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
9886 echo "configure:9887: checking for canna/jrkanji.h" >&5
9888 cat > conftest.$ac_ext <<EOF
9889 #line 9890 "configure"
9890 #include "confdefs.h"
9891 #include <canna/jrkanji.h>
9893 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9894 { (eval echo configure:9895: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9895 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9896 if test -z "$ac_err"; then
9898 eval "ac_cv_header_$ac_safe=yes"
9901 echo "configure: failed program was:" >&5
9902 cat conftest.$ac_ext >&5
9904 eval "ac_cv_header_$ac_safe=no"
9907 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9908 echo "$ac_t""yes" 1>&6
9909 canna_includes_found=yes
9911 echo "$ac_t""no" 1>&6
9915 if test "$canna_includes_found" = "no" -a "$with_canna" != "no" -a \
9916 -d "/usr/local/canna/include"; then
9917 save_c_switch_site="$c_switch_site"
9918 c_switch_site="$c_switch_site -I/usr/local/canna/include"
9919 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
9920 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
9921 echo "configure:9922: checking for canna/jrkanji.h" >&5
9923 cat > conftest.$ac_ext <<EOF
9924 #line 9925 "configure"
9925 #include "confdefs.h"
9926 #include <canna/jrkanji.h>
9928 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9929 { (eval echo configure:9930: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9930 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9931 if test -z "$ac_err"; then
9933 eval "ac_cv_header_$ac_safe=yes"
9936 echo "configure: failed program was:" >&5
9937 cat conftest.$ac_ext >&5
9939 eval "ac_cv_header_$ac_safe=no"
9942 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9943 echo "$ac_t""yes" 1>&6
9944 canna_includes_found=yes
9946 echo "$ac_t""no" 1>&6
9949 if test "$canna_includes_found" != "yes"; then
9950 c_switch_site="$save_c_switch_site"
9955 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
9956 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
9957 echo "configure:9958: checking for canna/RK.h" >&5
9959 cat > conftest.$ac_ext <<EOF
9960 #line 9961 "configure"
9961 #include "confdefs.h"
9962 #include <canna/RK.h>
9964 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9965 { (eval echo configure:9966: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9966 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9967 if test -z "$ac_err"; then
9969 eval "ac_cv_header_$ac_safe=yes"
9972 echo "configure: failed program was:" >&5
9973 cat conftest.$ac_ext >&5
9975 eval "ac_cv_header_$ac_safe=no"
9978 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9979 echo "$ac_t""yes" 1>&6
9982 echo "$ac_t""no" 1>&6
9986 test -z "$with_canna" && {
9987 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
9988 echo "configure:9989: checking for RkBgnBun in -lRKC" >&5
9989 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
9991 xe_check_libs=" -lRKC "
9992 cat > conftest.$ac_ext <<EOF
9993 #line 9994 "configure"
9994 #include "confdefs.h"
9995 /* Override any gcc2 internal prototype to avoid an error. */
9996 /* We use char because int might match the return type of a gcc2
9997 builtin and then its argument prototype would still apply. */
10004 if { (eval echo configure:10005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10006 eval "ac_cv_lib_$ac_lib_var=yes"
10008 echo "configure: failed program was:" >&5
10009 cat conftest.$ac_ext >&5
10011 eval "ac_cv_lib_$ac_lib_var=no"
10016 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10017 echo "$ac_t""yes" 1>&6
10020 echo "$ac_t""no" 1>&6
10025 test -z "$with_canna" && {
10026 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
10027 echo "configure:10028: checking for jrKanjiControl in -lcanna" >&5
10028 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
10030 xe_check_libs=" -lcanna "
10031 cat > conftest.$ac_ext <<EOF
10032 #line 10033 "configure"
10033 #include "confdefs.h"
10034 /* Override any gcc2 internal prototype to avoid an error. */
10035 /* We use char because int might match the return type of a gcc2
10036 builtin and then its argument prototype would still apply. */
10037 char jrKanjiControl();
10043 if { (eval echo configure:10044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10045 eval "ac_cv_lib_$ac_lib_var=yes"
10047 echo "configure: failed program was:" >&5
10048 cat conftest.$ac_ext >&5
10050 eval "ac_cv_lib_$ac_lib_var=no"
10055 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10056 echo "$ac_t""yes" 1>&6
10059 echo "$ac_t""no" 1>&6
10064 test -z "$with_canna" && with_canna=yes
10065 if test "$with_canna" = "yes"; then
10066 { test "$extra_verbose" = "yes" && cat << \EOF
10067 Defining HAVE_CANNA
10069 cat >> confdefs.h <<\EOF
10070 #define HAVE_CANNA 1
10074 libs_x="-lcanna -lRKC $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcanna -lRKC\" to \$libs_x"; fi
10075 extra_objs="$extra_objs mule-canna.o" && if test "$extra_verbose" = "yes"; then
10076 echo " xemacs will be linked with \"mule-canna.o\""
10080 else for feature in xim canna wnn; do
10081 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
10082 echo "configure: warning: "--with-${feature} ignored: Not valid without Mule support"" 1>&2
10084 eval "with_${feature}=no"
10088 if test "$need_motif" = "yes" ; then
10089 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi
10091 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6
10092 echo "configure:10093: checking for layout_object_getvalue in -li18n" >&5
10093 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'`
10095 xe_check_libs=" -li18n "
10096 cat > conftest.$ac_ext <<EOF
10097 #line 10098 "configure"
10098 #include "confdefs.h"
10099 /* Override any gcc2 internal prototype to avoid an error. */
10100 /* We use char because int might match the return type of a gcc2
10101 builtin and then its argument prototype would still apply. */
10102 char layout_object_getvalue();
10105 layout_object_getvalue()
10108 if { (eval echo configure:10109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10110 eval "ac_cv_lib_$ac_lib_var=yes"
10112 echo "configure: failed program was:" >&5
10113 cat conftest.$ac_ext >&5
10115 eval "ac_cv_lib_$ac_lib_var=no"
10120 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10121 echo "$ac_t""yes" 1>&6
10122 libs_x="-li18n $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-li18n\" to \$libs_x"; fi
10124 echo "$ac_t""no" 1>&6
10129 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
10130 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
10131 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
10133 runpath="" runpath_dirs=""
10134 if test -n "$LD_RUN_PATH"; then
10135 runpath="$LD_RUN_PATH"
10136 elif test "$GCC" = "yes"; then
10137 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
10138 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
10139 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
10140 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
10141 case "$arg" in P,* | -L* | -R* )
10142 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
10144 xe_runpath_dir="$dir"
10145 test "$xe_runpath_dir" != "/lib" -a \
10146 "$xe_runpath_dir" != "/usr/lib" -a \
10147 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
10148 eval "$xe_add_unique_runpath_dir"
10153 ld_switch_run="$ld_switch_run_save"
10156 for arg in $ld_switch_site $ld_switch_x_site; do
10157 case "$arg" in -L*) {
10158 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
10159 test "$xe_runpath_dir" != "/lib" -a \
10160 "$xe_runpath_dir" != "/usr/lib" -a \
10161 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
10162 eval "$xe_add_unique_runpath_dir"
10165 if test "$opsys $need_motif" = "sol2 yes"; then
10166 xe_runpath_dir="/opt/SUNWdt/lib";
10167 eval "$xe_add_unique_runpath_dir";
10170 if test -n "$runpath"; then
10171 ld_switch_run="${dash_r}${runpath}"
10173 if test "$GCC" = "yes"; then
10174 set x $ld_switch_run; shift; ld_switch_run=""
10175 while test -n "$1"; do
10177 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
10178 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
10180 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
10185 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
10191 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
10193 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10194 echo "configure:10195: checking for $ac_func" >&5
10196 cat > conftest.$ac_ext <<EOF
10197 #line 10198 "configure"
10198 #include "confdefs.h"
10199 /* System header to define __stub macros and hopefully few prototypes,
10200 which can conflict with char $ac_func(); below. */
10201 #include <assert.h>
10202 /* Override any gcc2 internal prototype to avoid an error. */
10203 /* We use char because int might match the return type of a gcc2
10204 builtin and then its argument prototype would still apply. */
10209 /* The GNU C library defines this for functions which it implements
10210 to always fail with ENOSYS. Some functions are actually named
10211 something starting with __ and the normal name is an alias. */
10212 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10220 if { (eval echo configure:10221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10222 eval "ac_cv_func_$ac_func=yes"
10224 echo "configure: failed program was:" >&5
10225 cat conftest.$ac_ext >&5
10227 eval "ac_cv_func_$ac_func=no"
10231 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10232 echo "$ac_t""yes" 1>&6
10233 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10234 { test "$extra_verbose" = "yes" && cat << EOF
10235 Defining $ac_tr_func
10237 cat >> confdefs.h <<EOF
10238 #define $ac_tr_func 1
10243 echo "$ac_t""no" 1>&6
10249 for ac_func in getpt _getpty grantpt unlockpt ptsname killpg tcgetpgrp
10251 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10252 echo "configure:10253: checking for $ac_func" >&5
10254 cat > conftest.$ac_ext <<EOF
10255 #line 10256 "configure"
10256 #include "confdefs.h"
10257 /* System header to define __stub macros and hopefully few prototypes,
10258 which can conflict with char $ac_func(); below. */
10259 #include <assert.h>
10260 /* Override any gcc2 internal prototype to avoid an error. */
10261 /* We use char because int might match the return type of a gcc2
10262 builtin and then its argument prototype would still apply. */
10267 /* The GNU C library defines this for functions which it implements
10268 to always fail with ENOSYS. Some functions are actually named
10269 something starting with __ and the normal name is an alias. */
10270 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10278 if { (eval echo configure:10279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10280 eval "ac_cv_func_$ac_func=yes"
10282 echo "configure: failed program was:" >&5
10283 cat conftest.$ac_ext >&5
10285 eval "ac_cv_func_$ac_func=no"
10289 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10290 echo "$ac_t""yes" 1>&6
10291 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10292 { test "$extra_verbose" = "yes" && cat << EOF
10293 Defining $ac_tr_func
10295 cat >> confdefs.h <<EOF
10296 #define $ac_tr_func 1
10301 echo "$ac_t""no" 1>&6
10306 echo $ac_n "checking for openpty""... $ac_c" 1>&6
10307 echo "configure:10308: checking for openpty" >&5
10309 cat > conftest.$ac_ext <<EOF
10310 #line 10311 "configure"
10311 #include "confdefs.h"
10312 /* System header to define __stub macros and hopefully few prototypes,
10313 which can conflict with char openpty(); below. */
10314 #include <assert.h>
10315 /* Override any gcc2 internal prototype to avoid an error. */
10316 /* We use char because int might match the return type of a gcc2
10317 builtin and then its argument prototype would still apply. */
10322 /* The GNU C library defines this for functions which it implements
10323 to always fail with ENOSYS. Some functions are actually named
10324 something starting with __ and the normal name is an alias. */
10325 #if defined (__stub_openpty) || defined (__stub___openpty)
10333 if { (eval echo configure:10334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10335 eval "ac_cv_func_openpty=yes"
10337 echo "configure: failed program was:" >&5
10338 cat conftest.$ac_ext >&5
10340 eval "ac_cv_func_openpty=no"
10344 if eval "test \"`echo '$ac_cv_func_'openpty`\" = yes"; then
10345 echo "$ac_t""yes" 1>&6
10348 echo "$ac_t""no" 1>&6
10351 echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6
10352 echo "configure:10353: checking for openpty in -lutil" >&5
10353 ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'`
10355 xe_check_libs=" -lutil "
10356 cat > conftest.$ac_ext <<EOF
10357 #line 10358 "configure"
10358 #include "confdefs.h"
10359 /* Override any gcc2 internal prototype to avoid an error. */
10360 /* We use char because int might match the return type of a gcc2
10361 builtin and then its argument prototype would still apply. */
10368 if { (eval echo configure:10369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10370 eval "ac_cv_lib_$ac_lib_var=yes"
10372 echo "configure: failed program was:" >&5
10373 cat conftest.$ac_ext >&5
10375 eval "ac_cv_lib_$ac_lib_var=no"
10380 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10381 echo "$ac_t""yes" 1>&6
10382 have_openpty=yes need_libutil=yes
10384 echo "$ac_t""no" 1>&6
10390 if test "$have_openpty" = "yes"; then
10391 { test "$extra_verbose" = "yes" && cat << \EOF
10392 Defining HAVE_OPENPTY
10394 cat >> confdefs.h <<\EOF
10395 #define HAVE_OPENPTY 1
10399 for ac_hdr in pty.h libutil.h util.h
10401 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10402 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10403 echo "configure:10404: checking for $ac_hdr" >&5
10405 cat > conftest.$ac_ext <<EOF
10406 #line 10407 "configure"
10407 #include "confdefs.h"
10410 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10411 { (eval echo configure:10412: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10412 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10413 if test -z "$ac_err"; then
10415 eval "ac_cv_header_$ac_safe=yes"
10418 echo "configure: failed program was:" >&5
10419 cat conftest.$ac_ext >&5
10421 eval "ac_cv_header_$ac_safe=no"
10424 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10425 echo "$ac_t""yes" 1>&6
10426 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10427 { test "$extra_verbose" = "yes" && cat << EOF
10428 Defining $ac_tr_hdr
10430 cat >> confdefs.h <<EOF
10431 #define $ac_tr_hdr 1
10436 echo "$ac_t""no" 1>&6
10440 test "$need_libutil" = "yes" && libs_system="$libs_system -lutil" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lutil\" to \$libs_system"; fi
10443 for ac_hdr in stropts.h
10445 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10446 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10447 echo "configure:10448: checking for $ac_hdr" >&5
10449 cat > conftest.$ac_ext <<EOF
10450 #line 10451 "configure"
10451 #include "confdefs.h"
10454 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10455 { (eval echo configure:10456: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10456 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10457 if test -z "$ac_err"; then
10459 eval "ac_cv_header_$ac_safe=yes"
10462 echo "configure: failed program was:" >&5
10463 cat conftest.$ac_ext >&5
10465 eval "ac_cv_header_$ac_safe=no"
10468 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10469 echo "$ac_t""yes" 1>&6
10470 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10471 { test "$extra_verbose" = "yes" && cat << EOF
10472 Defining $ac_tr_hdr
10474 cat >> confdefs.h <<EOF
10475 #define $ac_tr_hdr 1
10480 echo "$ac_t""no" 1>&6
10484 if test "$ac_cv_header_stropts_h" = "yes"; then
10485 for ac_func in isastream
10487 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10488 echo "configure:10489: checking for $ac_func" >&5
10490 cat > conftest.$ac_ext <<EOF
10491 #line 10492 "configure"
10492 #include "confdefs.h"
10493 /* System header to define __stub macros and hopefully few prototypes,
10494 which can conflict with char $ac_func(); below. */
10495 #include <assert.h>
10496 /* Override any gcc2 internal prototype to avoid an error. */
10497 /* We use char because int might match the return type of a gcc2
10498 builtin and then its argument prototype would still apply. */
10503 /* The GNU C library defines this for functions which it implements
10504 to always fail with ENOSYS. Some functions are actually named
10505 something starting with __ and the normal name is an alias. */
10506 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10514 if { (eval echo configure:10515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10516 eval "ac_cv_func_$ac_func=yes"
10518 echo "configure: failed program was:" >&5
10519 cat conftest.$ac_ext >&5
10521 eval "ac_cv_func_$ac_func=no"
10525 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10526 echo "$ac_t""yes" 1>&6
10527 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10528 { test "$extra_verbose" = "yes" && cat << EOF
10529 Defining $ac_tr_func
10531 cat >> confdefs.h <<EOF
10532 #define $ac_tr_func 1
10537 echo "$ac_t""no" 1>&6
10541 for ac_hdr in strtio.h
10543 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10544 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10545 echo "configure:10546: checking for $ac_hdr" >&5
10547 cat > conftest.$ac_ext <<EOF
10548 #line 10549 "configure"
10549 #include "confdefs.h"
10552 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10553 { (eval echo configure:10554: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10554 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10555 if test -z "$ac_err"; then
10557 eval "ac_cv_header_$ac_safe=yes"
10560 echo "configure: failed program was:" >&5
10561 cat conftest.$ac_ext >&5
10563 eval "ac_cv_header_$ac_safe=no"
10566 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10567 echo "$ac_t""yes" 1>&6
10568 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10569 { test "$extra_verbose" = "yes" && cat << EOF
10570 Defining $ac_tr_hdr
10572 cat >> confdefs.h <<EOF
10573 #define $ac_tr_hdr 1
10578 echo "$ac_t""no" 1>&6
10583 extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
10584 echo " xemacs will be linked with \"realpath.o\""
10587 for ac_func in getloadavg
10589 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10590 echo "configure:10591: checking for $ac_func" >&5
10592 cat > conftest.$ac_ext <<EOF
10593 #line 10594 "configure"
10594 #include "confdefs.h"
10595 /* System header to define __stub macros and hopefully few prototypes,
10596 which can conflict with char $ac_func(); below. */
10597 #include <assert.h>
10598 /* Override any gcc2 internal prototype to avoid an error. */
10599 /* We use char because int might match the return type of a gcc2
10600 builtin and then its argument prototype would still apply. */
10605 /* The GNU C library defines this for functions which it implements
10606 to always fail with ENOSYS. Some functions are actually named
10607 something starting with __ and the normal name is an alias. */
10608 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10616 if { (eval echo configure:10617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10618 eval "ac_cv_func_$ac_func=yes"
10620 echo "configure: failed program was:" >&5
10621 cat conftest.$ac_ext >&5
10623 eval "ac_cv_func_$ac_func=no"
10627 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10628 echo "$ac_t""yes" 1>&6
10629 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10630 { test "$extra_verbose" = "yes" && cat << EOF
10631 Defining $ac_tr_func
10633 cat >> confdefs.h <<EOF
10634 #define $ac_tr_func 1
10639 echo "$ac_t""no" 1>&6
10644 if test "$ac_cv_func_getloadavg" = "yes"; then
10645 for ac_hdr in sys/loadavg.h
10647 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10648 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10649 echo "configure:10650: checking for $ac_hdr" >&5
10651 cat > conftest.$ac_ext <<EOF
10652 #line 10653 "configure"
10653 #include "confdefs.h"
10656 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10657 { (eval echo configure:10658: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10658 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10659 if test -z "$ac_err"; then
10661 eval "ac_cv_header_$ac_safe=yes"
10664 echo "configure: failed program was:" >&5
10665 cat conftest.$ac_ext >&5
10667 eval "ac_cv_header_$ac_safe=no"
10670 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10671 echo "$ac_t""yes" 1>&6
10672 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10673 { test "$extra_verbose" = "yes" && cat << EOF
10674 Defining $ac_tr_hdr
10676 cat >> confdefs.h <<EOF
10677 #define $ac_tr_hdr 1
10682 echo "$ac_t""no" 1>&6
10687 extra_objs="$extra_objs getloadavg.o" && if test "$extra_verbose" = "yes"; then
10688 echo " xemacs will be linked with \"getloadavg.o\""
10692 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
10693 echo "configure:10694: checking for kstat_open in -lkstat" >&5
10694 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
10696 xe_check_libs=" -lkstat "
10697 cat > conftest.$ac_ext <<EOF
10698 #line 10699 "configure"
10699 #include "confdefs.h"
10700 /* Override any gcc2 internal prototype to avoid an error. */
10701 /* We use char because int might match the return type of a gcc2
10702 builtin and then its argument prototype would still apply. */
10709 if { (eval echo configure:10710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10711 eval "ac_cv_lib_$ac_lib_var=yes"
10713 echo "configure: failed program was:" >&5
10714 cat conftest.$ac_ext >&5
10716 eval "ac_cv_lib_$ac_lib_var=no"
10721 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10722 echo "$ac_t""yes" 1>&6
10723 ac_tr_lib=HAVE_LIB`echo kstat | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10724 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10725 { test "$extra_verbose" = "yes" && cat << EOF
10726 Defining $ac_tr_lib
10728 cat >> confdefs.h <<EOF
10729 #define $ac_tr_lib 1
10733 LIBS="-lkstat $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkstat\" to \$LIBS"; fi
10736 echo "$ac_t""no" 1>&6
10740 for ac_hdr in kstat.h
10742 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10743 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10744 echo "configure:10745: checking for $ac_hdr" >&5
10746 cat > conftest.$ac_ext <<EOF
10747 #line 10748 "configure"
10748 #include "confdefs.h"
10751 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10752 { (eval echo configure:10753: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10753 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10754 if test -z "$ac_err"; then
10756 eval "ac_cv_header_$ac_safe=yes"
10759 echo "configure: failed program was:" >&5
10760 cat conftest.$ac_ext >&5
10762 eval "ac_cv_header_$ac_safe=no"
10765 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10766 echo "$ac_t""yes" 1>&6
10767 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10768 { test "$extra_verbose" = "yes" && cat << EOF
10769 Defining $ac_tr_hdr
10771 cat >> confdefs.h <<EOF
10772 #define $ac_tr_hdr 1
10777 echo "$ac_t""no" 1>&6
10783 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
10784 echo "configure:10785: checking for kvm_read in -lkvm" >&5
10785 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
10787 xe_check_libs=" -lkvm "
10788 cat > conftest.$ac_ext <<EOF
10789 #line 10790 "configure"
10790 #include "confdefs.h"
10791 /* Override any gcc2 internal prototype to avoid an error. */
10792 /* We use char because int might match the return type of a gcc2
10793 builtin and then its argument prototype would still apply. */
10800 if { (eval echo configure:10801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10802 eval "ac_cv_lib_$ac_lib_var=yes"
10804 echo "configure: failed program was:" >&5
10805 cat conftest.$ac_ext >&5
10807 eval "ac_cv_lib_$ac_lib_var=no"
10812 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10813 echo "$ac_t""yes" 1>&6
10814 ac_tr_lib=HAVE_LIB`echo kvm | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10815 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10816 { test "$extra_verbose" = "yes" && cat << EOF
10817 Defining $ac_tr_lib
10819 cat >> confdefs.h <<EOF
10820 #define $ac_tr_lib 1
10824 LIBS="-lkvm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkvm\" to \$LIBS"; fi
10827 echo "$ac_t""no" 1>&6
10833 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
10834 echo "configure:10835: checking whether netdb declares h_errno" >&5
10835 cat > conftest.$ac_ext <<EOF
10836 #line 10837 "configure"
10837 #include "confdefs.h"
10843 if { (eval echo configure:10844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10845 echo "$ac_t""yes" 1>&6
10846 { test "$extra_verbose" = "yes" && cat << \EOF
10847 Defining HAVE_H_ERRNO
10849 cat >> confdefs.h <<\EOF
10850 #define HAVE_H_ERRNO 1
10855 echo "configure: failed program was:" >&5
10856 cat conftest.$ac_ext >&5
10858 echo "$ac_t""no" 1>&6
10862 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
10863 echo "configure:10864: checking for sigsetjmp" >&5
10864 cat > conftest.$ac_ext <<EOF
10865 #line 10866 "configure"
10866 #include "confdefs.h"
10867 #include <setjmp.h>
10869 sigjmp_buf bar; sigsetjmp (bar, 0);
10872 if { (eval echo configure:10873: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10874 echo "$ac_t""yes" 1>&6
10875 { test "$extra_verbose" = "yes" && cat << \EOF
10876 Defining HAVE_SIGSETJMP
10878 cat >> confdefs.h <<\EOF
10879 #define HAVE_SIGSETJMP 1
10884 echo "configure: failed program was:" >&5
10885 cat conftest.$ac_ext >&5
10887 echo "$ac_t""no" 1>&6
10891 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
10892 echo "configure:10893: checking whether localtime caches TZ" >&5
10894 if test "$ac_cv_func_tzset" = "yes"; then
10895 cat > conftest.$ac_ext <<EOF
10896 #line 10897 "configure"
10897 #include "confdefs.h"
10900 # include <stdlib.h>
10902 extern char **environ;
10906 for (to = from = environ; (*to = *from); from++)
10907 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
10910 char TZ_GMT0[] = "TZ=GMT0";
10911 char TZ_PST8[] = "TZ=PST8";
10914 time_t now = time ((time_t *) 0);
10915 int hour_GMT0, hour_unset;
10916 if (putenv (TZ_GMT0) != 0)
10918 hour_GMT0 = localtime (&now)->tm_hour;
10920 hour_unset = localtime (&now)->tm_hour;
10921 if (putenv (TZ_PST8) != 0)
10923 if (localtime (&now)->tm_hour == hour_GMT0)
10926 if (localtime (&now)->tm_hour != hour_unset)
10931 if { (eval echo configure:10932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
10933 emacs_cv_localtime_cache=no
10936 echo "configure: failed program was:" >&5
10937 cat conftest.$ac_ext >&5
10939 emacs_cv_localtime_cache=yes
10943 # If we lack tzset, report that localtime does not cache TZ,
10944 # since we can't invalidate the cache if we don't have tzset.
10945 emacs_cv_localtime_cache=no
10947 echo "$ac_t""$emacs_cv_localtime_cache" 1>&6
10948 if test $emacs_cv_localtime_cache = yes; then
10949 { test "$extra_verbose" = "yes" && cat << \EOF
10950 Defining LOCALTIME_CACHE
10952 cat >> confdefs.h <<\EOF
10953 #define LOCALTIME_CACHE 1
10959 if test "$HAVE_TIMEVAL" = "yes"; then
10960 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6
10961 echo "configure:10962: checking whether gettimeofday accepts one or two arguments" >&5
10962 cat > conftest.$ac_ext <<EOF
10963 #line 10964 "configure"
10964 #include "confdefs.h"
10966 #ifdef TIME_WITH_SYS_TIME
10967 #include <sys/time.h>
10970 #ifdef HAVE_SYS_TIME_H
10971 #include <sys/time.h>
10979 struct timeval time;
10980 gettimeofday (&time, 0);
10984 if { (eval echo configure:10985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10986 echo "$ac_t""two" 1>&6
10988 echo "configure: failed program was:" >&5
10989 cat conftest.$ac_ext >&5
10991 echo "$ac_t""one" 1>&6
10992 { test "$extra_verbose" = "yes" && cat << \EOF
10993 Defining GETTIMEOFDAY_ONE_ARGUMENT
10995 cat >> confdefs.h <<\EOF
10996 #define GETTIMEOFDAY_ONE_ARGUMENT 1
11005 echo $ac_n "checking for inline""... $ac_c" 1>&6
11006 echo "configure:11007: checking for inline" >&5
11009 for ac_kw in inline __inline__ __inline; do
11010 cat > conftest.$ac_ext <<EOF
11011 #line 11012 "configure"
11012 #include "confdefs.h"
11018 if { (eval echo configure:11019: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11020 ac_cv_c_inline=$ac_kw; break
11022 echo "configure: failed program was:" >&5
11023 cat conftest.$ac_ext >&5
11029 echo "$ac_t""$ac_cv_c_inline" 1>&6
11030 case "$ac_cv_c_inline" in
11032 no) { test "$extra_verbose" = "yes" && cat << \EOF
11035 cat >> confdefs.h <<\EOF
11040 *) { test "$extra_verbose" = "yes" && cat << EOF
11041 Defining inline = $ac_cv_c_inline
11043 cat >> confdefs.h <<EOF
11044 #define inline $ac_cv_c_inline
11050 test "$ac_cv_c_inline" != "no" -a "$GCC" = "yes" && extra_objs="$extra_objs inline.o" && if test "$extra_verbose" = "yes"; then
11051 echo " xemacs will be linked with \"inline.o\""
11055 if test "$__DECC" != "yes"; then
11056 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11057 # for constant arguments. Useless!
11058 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
11059 echo "configure:11060: checking for working alloca.h" >&5
11061 cat > conftest.$ac_ext <<EOF
11062 #line 11063 "configure"
11063 #include "confdefs.h"
11064 #include <alloca.h>
11066 char *p = alloca(2 * sizeof(int));
11069 if { (eval echo configure:11070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11071 ac_cv_header_alloca_h=yes
11073 echo "configure: failed program was:" >&5
11074 cat conftest.$ac_ext >&5
11076 ac_cv_header_alloca_h=no
11080 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
11081 if test $ac_cv_header_alloca_h = yes; then
11082 { test "$extra_verbose" = "yes" && cat << \EOF
11083 Defining HAVE_ALLOCA_H
11085 cat >> confdefs.h <<\EOF
11086 #define HAVE_ALLOCA_H 1
11092 echo $ac_n "checking for alloca""... $ac_c" 1>&6
11093 echo "configure:11094: checking for alloca" >&5
11095 cat > conftest.$ac_ext <<EOF
11096 #line 11097 "configure"
11097 #include "confdefs.h"
11100 # define alloca __builtin_alloca
11103 # include <malloc.h>
11104 # define alloca _alloca
11107 # include <alloca.h>
11112 # ifndef alloca /* predefined by HP cc +Olibcalls */
11121 char *p = (char *) alloca(1);
11124 if { (eval echo configure:11125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11126 ac_cv_func_alloca_works=yes
11128 echo "configure: failed program was:" >&5
11129 cat conftest.$ac_ext >&5
11131 ac_cv_func_alloca_works=no
11135 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
11136 if test $ac_cv_func_alloca_works = yes; then
11137 { test "$extra_verbose" = "yes" && cat << \EOF
11138 Defining HAVE_ALLOCA
11140 cat >> confdefs.h <<\EOF
11141 #define HAVE_ALLOCA 1
11147 if test $ac_cv_func_alloca_works = no; then
11148 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11149 # that cause trouble. Some versions do not even contain alloca or
11150 # contain a buggy version. If you still want to use their alloca,
11151 # use ar to extract alloca.o from them instead of compiling alloca.c.
11152 ALLOCA=alloca.${ac_objext}
11153 { test "$extra_verbose" = "yes" && cat << \EOF
11156 cat >> confdefs.h <<\EOF
11162 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
11163 echo "configure:11164: checking whether alloca needs Cray hooks" >&5
11165 cat > conftest.$ac_ext <<EOF
11166 #line 11167 "configure"
11167 #include "confdefs.h"
11168 #if defined(CRAY) && ! defined(CRAY2)
11175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11176 egrep "webecray" >/dev/null 2>&1; then
11186 echo "$ac_t""$ac_cv_os_cray" 1>&6
11187 if test $ac_cv_os_cray = yes; then
11188 for ac_func in _getb67 GETB67 getb67; do
11189 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11190 echo "configure:11191: checking for $ac_func" >&5
11192 cat > conftest.$ac_ext <<EOF
11193 #line 11194 "configure"
11194 #include "confdefs.h"
11195 /* System header to define __stub macros and hopefully few prototypes,
11196 which can conflict with char $ac_func(); below. */
11197 #include <assert.h>
11198 /* Override any gcc2 internal prototype to avoid an error. */
11199 /* We use char because int might match the return type of a gcc2
11200 builtin and then its argument prototype would still apply. */
11205 /* The GNU C library defines this for functions which it implements
11206 to always fail with ENOSYS. Some functions are actually named
11207 something starting with __ and the normal name is an alias. */
11208 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11216 if { (eval echo configure:11217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11218 eval "ac_cv_func_$ac_func=yes"
11220 echo "configure: failed program was:" >&5
11221 cat conftest.$ac_ext >&5
11223 eval "ac_cv_func_$ac_func=no"
11227 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11228 echo "$ac_t""yes" 1>&6
11229 { test "$extra_verbose" = "yes" && cat << EOF
11230 Defining CRAY_STACKSEG_END = $ac_func
11232 cat >> confdefs.h <<EOF
11233 #define CRAY_STACKSEG_END $ac_func
11239 echo "$ac_t""no" 1>&6
11245 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
11246 echo "configure:11247: checking stack direction for C alloca" >&5
11248 cat > conftest.$ac_ext <<EOF
11249 #line 11250 "configure"
11250 #include "confdefs.h"
11251 find_stack_direction ()
11253 static char *addr = 0;
11258 return find_stack_direction ();
11261 return (&dummy > addr) ? 1 : -1;
11265 exit (find_stack_direction() < 0);
11268 if { (eval echo configure:11269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11270 ac_cv_c_stack_direction=1
11273 echo "configure: failed program was:" >&5
11274 cat conftest.$ac_ext >&5
11276 ac_cv_c_stack_direction=-1
11280 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
11281 { test "$extra_verbose" = "yes" && cat << EOF
11282 Defining STACK_DIRECTION = $ac_cv_c_stack_direction
11284 cat >> confdefs.h <<EOF
11285 #define STACK_DIRECTION $ac_cv_c_stack_direction
11291 test -n "$ALLOCA" && extra_objs="$extra_objs $ALLOCA" && if test "$extra_verbose" = "yes"; then
11292 echo " xemacs will be linked with \"$ALLOCA\""
11296 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
11297 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
11298 echo "configure:11299: checking for vfork.h" >&5
11300 cat > conftest.$ac_ext <<EOF
11301 #line 11302 "configure"
11302 #include "confdefs.h"
11305 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11306 { (eval echo configure:11307: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11307 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11308 if test -z "$ac_err"; then
11310 eval "ac_cv_header_$ac_safe=yes"
11313 echo "configure: failed program was:" >&5
11314 cat conftest.$ac_ext >&5
11316 eval "ac_cv_header_$ac_safe=no"
11319 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11320 echo "$ac_t""yes" 1>&6
11321 { test "$extra_verbose" = "yes" && cat << \EOF
11322 Defining HAVE_VFORK_H
11324 cat >> confdefs.h <<\EOF
11325 #define HAVE_VFORK_H 1
11330 echo "$ac_t""no" 1>&6
11333 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
11334 echo "configure:11335: checking for working vfork" >&5
11336 cat > conftest.$ac_ext <<EOF
11337 #line 11338 "configure"
11338 #include "confdefs.h"
11339 /* Thanks to Paul Eggert for this test. */
11341 #include <sys/types.h>
11342 #include <sys/stat.h>
11343 #ifdef HAVE_UNISTD_H
11344 #include <unistd.h>
11346 #ifdef HAVE_VFORK_H
11349 /* On some sparc systems, changes by the child to local and incoming
11350 argument registers are propagated back to the parent.
11351 The compiler is told about this with #include <vfork.h>,
11352 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
11353 Test for this by using a static variable whose address
11354 is put into a register that is clobbered by the vfork. */
11357 sparc_address_test (int arg)
11359 sparc_address_test (arg) int arg;
11362 static pid_t child;
11377 pid_t parent = getpid ();
11380 sparc_address_test ();
11385 /* Here is another test for sparc vfork register problems.
11386 This test uses lots of local variables, at least
11387 as many local variables as main has allocated so far
11388 including compiler temporaries. 4 locals are enough for
11389 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
11390 A buggy compiler should reuse the register of parent
11391 for one of the local variables, since it will think that
11392 parent can't possibly be used any more in this routine.
11393 Assigning to the local variable will thus munge parent
11394 in the parent process. */
11396 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11397 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11398 /* Convince the compiler that p..p7 are live; otherwise, it might
11399 use the same hardware register for all 8 local variables. */
11400 if (p != p1 || p != p2 || p != p3 || p != p4
11401 || p != p5 || p != p6 || p != p7)
11404 /* On some systems (e.g. IRIX 3.3),
11405 vfork doesn't separate parent from child file descriptors.
11406 If the child closes a descriptor before it execs or exits,
11407 this munges the parent's descriptor as well.
11408 Test for this by closing stdout in the child. */
11409 _exit(close(fileno(stdout)) != 0);
11414 while (wait(&status) != child)
11417 /* Was there some problem with vforking? */
11420 /* Did the child fail? (This shouldn't happen.) */
11423 /* Did the vfork/compiler bug occur? */
11424 || parent != getpid()
11426 /* Did the file descriptor bug occur? */
11427 || fstat(fileno(stdout), &st) != 0
11432 if { (eval echo configure:11433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11434 ac_cv_func_vfork_works=yes
11437 echo "configure: failed program was:" >&5
11438 cat conftest.$ac_ext >&5
11440 ac_cv_func_vfork_works=no
11444 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
11445 if test $ac_cv_func_vfork_works = no; then
11446 { test "$extra_verbose" = "yes" && cat << \EOF
11447 Defining vfork = fork
11449 cat >> confdefs.h <<\EOF
11457 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
11458 echo "configure:11459: checking for working strcoll" >&5
11460 cat > conftest.$ac_ext <<EOF
11461 #line 11462 "configure"
11462 #include "confdefs.h"
11463 #include <string.h>
11466 exit (strcoll ("abc", "def") >= 0 ||
11467 strcoll ("ABC", "DEF") >= 0 ||
11468 strcoll ("123", "456") >= 0);
11471 if { (eval echo configure:11472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11473 ac_cv_func_strcoll_works=yes
11476 echo "configure: failed program was:" >&5
11477 cat conftest.$ac_ext >&5
11479 ac_cv_func_strcoll_works=no
11483 echo "$ac_t""$ac_cv_func_strcoll_works" 1>&6
11484 if test $ac_cv_func_strcoll_works = yes; then
11485 { test "$extra_verbose" = "yes" && cat << \EOF
11486 Defining HAVE_STRCOLL
11488 cat >> confdefs.h <<\EOF
11489 #define HAVE_STRCOLL 1
11496 for ac_func in getpgrp
11498 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11499 echo "configure:11500: checking for $ac_func" >&5
11501 cat > conftest.$ac_ext <<EOF
11502 #line 11503 "configure"
11503 #include "confdefs.h"
11504 /* System header to define __stub macros and hopefully few prototypes,
11505 which can conflict with char $ac_func(); below. */
11506 #include <assert.h>
11507 /* Override any gcc2 internal prototype to avoid an error. */
11508 /* We use char because int might match the return type of a gcc2
11509 builtin and then its argument prototype would still apply. */
11514 /* The GNU C library defines this for functions which it implements
11515 to always fail with ENOSYS. Some functions are actually named
11516 something starting with __ and the normal name is an alias. */
11517 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11525 if { (eval echo configure:11526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11527 eval "ac_cv_func_$ac_func=yes"
11529 echo "configure: failed program was:" >&5
11530 cat conftest.$ac_ext >&5
11532 eval "ac_cv_func_$ac_func=no"
11536 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11537 echo "$ac_t""yes" 1>&6
11538 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11539 { test "$extra_verbose" = "yes" && cat << EOF
11540 Defining $ac_tr_func
11542 cat >> confdefs.h <<EOF
11543 #define $ac_tr_func 1
11548 echo "$ac_t""no" 1>&6
11552 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
11553 echo "configure:11554: checking whether getpgrp takes no argument" >&5
11555 cat > conftest.$ac_ext <<EOF
11556 #line 11557 "configure"
11557 #include "confdefs.h"
11560 * If this system has a BSD-style getpgrp(),
11561 * which takes a pid argument, exit unsuccessfully.
11563 * Snarfed from Chet Ramey's bash pgrp.c test program
11566 #include <sys/types.h>
11569 int pg1, pg2, pg3, pg4;
11570 int ng, np, s, child;
11577 pg3 = getpgrp(pid);
11581 * If all of these values are the same, it's pretty sure that
11582 * we're on a system that ignores getpgrp's first argument.
11584 if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3)
11590 else if (child == 0) {
11593 * If this is Sys V, this will not work; pgrp will be
11594 * set to np because setpgrp just changes a pgrp to be
11595 * the same as the pid.
11598 ng = getpgrp(0); /* Same result for Sys V and BSD */
11611 if { (eval echo configure:11612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11613 ac_cv_func_getpgrp_void=yes
11616 echo "configure: failed program was:" >&5
11617 cat conftest.$ac_ext >&5
11619 ac_cv_func_getpgrp_void=no
11624 echo "$ac_t""$ac_cv_func_getpgrp_void" 1>&6
11625 if test $ac_cv_func_getpgrp_void = yes; then
11626 { test "$extra_verbose" = "yes" && cat << \EOF
11627 Defining GETPGRP_VOID
11629 cat >> confdefs.h <<\EOF
11630 #define GETPGRP_VOID 1
11637 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
11638 echo "configure:11639: checking for working mmap" >&5
11639 case "$opsys" in ultrix* ) have_mmap=no ;; *)
11640 cat > conftest.$ac_ext <<EOF
11641 #line 11642 "configure"
11642 #include "confdefs.h"
11644 #include <unistd.h>
11646 #include <sys/mman.h>
11648 #ifndef MAP_VARIABLE
11649 #define MAP_VARIABLE 0
11653 #define MAP_FAILED -1
11656 int main (int argc, char *argv[])
11660 #ifndef MAP_ANONYMOUS
11661 fd = open ("/dev/zero", O_RDWR);
11664 #define MAP_ANONYMOUS 0
11666 if (mmap(0, 1024, PROT_READ | PROT_WRITE,
11667 MAP_PRIVATE | MAP_VARIABLE | MAP_ANONYMOUS,
11668 fd, 0) != (void *) MAP_FAILED)
11670 perror ("conftest: mmap failed");
11674 if { (eval echo configure:11675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11679 echo "configure: failed program was:" >&5
11680 cat conftest.$ac_ext >&5
11684 rm -fr conftest* ;;
11686 echo "$ac_t""$have_mmap" 1>&6
11687 test "$have_mmap" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
11690 cat >> confdefs.h <<\EOF
11691 #define HAVE_MMAP 1
11696 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no
11697 if test "$rel_alloc $have_mmap" = "default yes"; then
11698 if test "$doug_lea_malloc" = "yes"; then
11699 echo $ac_n "checking for M_MMAP_THRESHOLD""... $ac_c" 1>&6
11700 echo "configure:11701: checking for M_MMAP_THRESHOLD" >&5
11701 cat > conftest.$ac_ext <<EOF
11702 #line 11703 "configure"
11703 #include "confdefs.h"
11704 #include <malloc.h>
11707 #ifndef M_MMAP_THRESHOLD
11708 #error No M_MMAP_THRESHOLD :-(
11709 !@+$%^&*_)(_ - unlikely to compile...
11714 if { (eval echo configure:11715: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11716 rel_alloc=no; echo "$ac_t""yes" 1>&6;
11718 echo "configure: failed program was:" >&5
11719 cat conftest.$ac_ext >&5
11721 rel_alloc=yes; echo "$ac_t""no" 1>&6;
11728 test "$rel_alloc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
11731 cat >> confdefs.h <<\EOF
11732 #define REL_ALLOC 1
11737 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
11738 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
11739 echo "configure:11740: checking for termios.h" >&5
11741 cat > conftest.$ac_ext <<EOF
11742 #line 11743 "configure"
11743 #include "confdefs.h"
11744 #include <termios.h>
11746 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11747 { (eval echo configure:11748: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11748 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11749 if test -z "$ac_err"; then
11751 eval "ac_cv_header_$ac_safe=yes"
11754 echo "configure: failed program was:" >&5
11755 cat conftest.$ac_ext >&5
11757 eval "ac_cv_header_$ac_safe=no"
11760 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11761 echo "$ac_t""yes" 1>&6
11762 { test "$extra_verbose" = "yes" && cat << \EOF
11763 Defining HAVE_TERMIOS
11765 cat >> confdefs.h <<\EOF
11766 #define HAVE_TERMIOS 1
11770 { test "$extra_verbose" = "yes" && cat << \EOF
11771 Defining SIGNALS_VIA_CHARACTERS
11773 cat >> confdefs.h <<\EOF
11774 #define SIGNALS_VIA_CHARACTERS 1
11778 { test "$extra_verbose" = "yes" && cat << \EOF
11781 cat >> confdefs.h <<\EOF
11782 #define NO_TERMIO 1
11787 echo "$ac_t""no" 1>&6
11788 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
11789 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
11790 echo "configure:11791: checking for termio.h" >&5
11792 cat > conftest.$ac_ext <<EOF
11793 #line 11794 "configure"
11794 #include "confdefs.h"
11795 #include <termio.h>
11797 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11798 { (eval echo configure:11799: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11799 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11800 if test -z "$ac_err"; then
11802 eval "ac_cv_header_$ac_safe=yes"
11805 echo "configure: failed program was:" >&5
11806 cat conftest.$ac_ext >&5
11808 eval "ac_cv_header_$ac_safe=no"
11811 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11812 echo "$ac_t""yes" 1>&6
11813 { test "$extra_verbose" = "yes" && cat << \EOF
11814 Defining HAVE_TERMIO
11816 cat >> confdefs.h <<\EOF
11817 #define HAVE_TERMIO 1
11822 echo "$ac_t""no" 1>&6
11829 echo $ac_n "checking for socket""... $ac_c" 1>&6
11830 echo "configure:11831: checking for socket" >&5
11832 cat > conftest.$ac_ext <<EOF
11833 #line 11834 "configure"
11834 #include "confdefs.h"
11835 /* System header to define __stub macros and hopefully few prototypes,
11836 which can conflict with char socket(); below. */
11837 #include <assert.h>
11838 /* Override any gcc2 internal prototype to avoid an error. */
11839 /* We use char because int might match the return type of a gcc2
11840 builtin and then its argument prototype would still apply. */
11845 /* The GNU C library defines this for functions which it implements
11846 to always fail with ENOSYS. Some functions are actually named
11847 something starting with __ and the normal name is an alias. */
11848 #if defined (__stub_socket) || defined (__stub___socket)
11856 if { (eval echo configure:11857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11858 eval "ac_cv_func_socket=yes"
11860 echo "configure: failed program was:" >&5
11861 cat conftest.$ac_ext >&5
11863 eval "ac_cv_func_socket=no"
11867 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
11868 echo "$ac_t""yes" 1>&6
11869 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
11870 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
11871 echo "configure:11872: checking for netinet/in.h" >&5
11873 cat > conftest.$ac_ext <<EOF
11874 #line 11875 "configure"
11875 #include "confdefs.h"
11876 #include <netinet/in.h>
11878 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11879 { (eval echo configure:11880: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11880 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11881 if test -z "$ac_err"; then
11883 eval "ac_cv_header_$ac_safe=yes"
11886 echo "configure: failed program was:" >&5
11887 cat conftest.$ac_ext >&5
11889 eval "ac_cv_header_$ac_safe=no"
11892 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11893 echo "$ac_t""yes" 1>&6
11894 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
11895 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
11896 echo "configure:11897: checking for arpa/inet.h" >&5
11898 cat > conftest.$ac_ext <<EOF
11899 #line 11900 "configure"
11900 #include "confdefs.h"
11901 #include <arpa/inet.h>
11903 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11904 { (eval echo configure:11905: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11905 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11906 if test -z "$ac_err"; then
11908 eval "ac_cv_header_$ac_safe=yes"
11911 echo "configure: failed program was:" >&5
11912 cat conftest.$ac_ext >&5
11914 eval "ac_cv_header_$ac_safe=no"
11917 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11918 echo "$ac_t""yes" 1>&6
11920 { test "$extra_verbose" = "yes" && cat << \EOF
11921 Defining HAVE_SOCKETS
11923 cat >> confdefs.h <<\EOF
11924 #define HAVE_SOCKETS 1
11928 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
11929 echo "configure:11930: checking "for sun_len member in struct sockaddr_un"" >&5
11930 cat > conftest.$ac_ext <<EOF
11931 #line 11932 "configure"
11932 #include "confdefs.h"
11934 #include <sys/types.h>
11935 #include <sys/socket.h>
11936 #include <sys/un.h>
11939 static struct sockaddr_un x; x.sun_len = 1;
11942 if { (eval echo configure:11943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11944 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
11945 Defining HAVE_SOCKADDR_SUN_LEN
11947 cat >> confdefs.h <<\EOF
11948 #define HAVE_SOCKADDR_SUN_LEN 1
11953 echo "configure: failed program was:" >&5
11954 cat conftest.$ac_ext >&5
11956 echo "$ac_t""no" 1>&6
11959 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6
11960 echo "configure:11961: checking "for ip_mreq struct in netinet/in.h"" >&5
11961 cat > conftest.$ac_ext <<EOF
11962 #line 11963 "configure"
11963 #include "confdefs.h"
11965 #include <sys/types.h>
11966 #include <netinet/in.h>
11969 static struct ip_mreq x;
11972 if { (eval echo configure:11973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11974 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
11975 Defining HAVE_MULTICAST
11977 cat >> confdefs.h <<\EOF
11978 #define HAVE_MULTICAST 1
11983 echo "configure: failed program was:" >&5
11984 cat conftest.$ac_ext >&5
11986 echo "$ac_t""no" 1>&6
11990 echo "$ac_t""no" 1>&6
11994 echo "$ac_t""no" 1>&6
11998 echo "$ac_t""no" 1>&6
12002 echo $ac_n "checking for msgget""... $ac_c" 1>&6
12003 echo "configure:12004: checking for msgget" >&5
12005 cat > conftest.$ac_ext <<EOF
12006 #line 12007 "configure"
12007 #include "confdefs.h"
12008 /* System header to define __stub macros and hopefully few prototypes,
12009 which can conflict with char msgget(); below. */
12010 #include <assert.h>
12011 /* Override any gcc2 internal prototype to avoid an error. */
12012 /* We use char because int might match the return type of a gcc2
12013 builtin and then its argument prototype would still apply. */
12018 /* The GNU C library defines this for functions which it implements
12019 to always fail with ENOSYS. Some functions are actually named
12020 something starting with __ and the normal name is an alias. */
12021 #if defined (__stub_msgget) || defined (__stub___msgget)
12029 if { (eval echo configure:12030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12031 eval "ac_cv_func_msgget=yes"
12033 echo "configure: failed program was:" >&5
12034 cat conftest.$ac_ext >&5
12036 eval "ac_cv_func_msgget=no"
12040 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
12041 echo "$ac_t""yes" 1>&6
12042 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
12043 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
12044 echo "configure:12045: checking for sys/ipc.h" >&5
12046 cat > conftest.$ac_ext <<EOF
12047 #line 12048 "configure"
12048 #include "confdefs.h"
12049 #include <sys/ipc.h>
12051 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12052 { (eval echo configure:12053: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12053 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12054 if test -z "$ac_err"; then
12056 eval "ac_cv_header_$ac_safe=yes"
12059 echo "configure: failed program was:" >&5
12060 cat conftest.$ac_ext >&5
12062 eval "ac_cv_header_$ac_safe=no"
12065 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12066 echo "$ac_t""yes" 1>&6
12067 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
12068 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
12069 echo "configure:12070: checking for sys/msg.h" >&5
12071 cat > conftest.$ac_ext <<EOF
12072 #line 12073 "configure"
12073 #include "confdefs.h"
12074 #include <sys/msg.h>
12076 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12077 { (eval echo configure:12078: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12078 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12079 if test -z "$ac_err"; then
12081 eval "ac_cv_header_$ac_safe=yes"
12084 echo "configure: failed program was:" >&5
12085 cat conftest.$ac_ext >&5
12087 eval "ac_cv_header_$ac_safe=no"
12090 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12091 echo "$ac_t""yes" 1>&6
12092 { test "$extra_verbose" = "yes" && cat << \EOF
12093 Defining HAVE_SYSVIPC
12095 cat >> confdefs.h <<\EOF
12096 #define HAVE_SYSVIPC 1
12101 echo "$ac_t""no" 1>&6
12105 echo "$ac_t""no" 1>&6
12109 echo "$ac_t""no" 1>&6
12113 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
12114 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
12115 echo "configure:12116: checking for dirent.h" >&5
12117 cat > conftest.$ac_ext <<EOF
12118 #line 12119 "configure"
12119 #include "confdefs.h"
12120 #include <dirent.h>
12122 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12123 { (eval echo configure:12124: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12124 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12125 if test -z "$ac_err"; then
12127 eval "ac_cv_header_$ac_safe=yes"
12130 echo "configure: failed program was:" >&5
12131 cat conftest.$ac_ext >&5
12133 eval "ac_cv_header_$ac_safe=no"
12136 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12137 echo "$ac_t""yes" 1>&6
12138 { test "$extra_verbose" = "yes" && cat << \EOF
12139 Defining SYSV_SYSTEM_DIR
12141 cat >> confdefs.h <<\EOF
12142 #define SYSV_SYSTEM_DIR 1
12147 echo "$ac_t""no" 1>&6
12148 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
12149 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
12150 echo "configure:12151: checking for sys/dir.h" >&5
12152 cat > conftest.$ac_ext <<EOF
12153 #line 12154 "configure"
12154 #include "confdefs.h"
12155 #include <sys/dir.h>
12157 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12158 { (eval echo configure:12159: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12159 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12160 if test -z "$ac_err"; then
12162 eval "ac_cv_header_$ac_safe=yes"
12165 echo "configure: failed program was:" >&5
12166 cat conftest.$ac_ext >&5
12168 eval "ac_cv_header_$ac_safe=no"
12171 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12172 echo "$ac_t""yes" 1>&6
12175 echo "$ac_t""no" 1>&6
12176 { test "$extra_verbose" = "yes" && cat << \EOF
12177 Defining NONSYSTEM_DIR_LIBRARY
12179 cat >> confdefs.h <<\EOF
12180 #define NONSYSTEM_DIR_LIBRARY 1
12189 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
12190 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
12191 echo "configure:12192: checking for nlist.h" >&5
12193 cat > conftest.$ac_ext <<EOF
12194 #line 12195 "configure"
12195 #include "confdefs.h"
12198 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12199 { (eval echo configure:12200: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12200 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12201 if test -z "$ac_err"; then
12203 eval "ac_cv_header_$ac_safe=yes"
12206 echo "configure: failed program was:" >&5
12207 cat conftest.$ac_ext >&5
12209 eval "ac_cv_header_$ac_safe=no"
12212 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12213 echo "$ac_t""yes" 1>&6
12214 { test "$extra_verbose" = "yes" && cat << \EOF
12215 Defining NLIST_STRUCT
12217 cat >> confdefs.h <<\EOF
12218 #define NLIST_STRUCT 1
12223 echo "$ac_t""no" 1>&6
12228 echo "checking "for sound support"" 1>&6
12229 echo "configure:12230: checking "for sound support"" >&5
12230 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
12232 if test "$with_native_sound" != "no"; then
12233 if test -n "$native_sound_lib"; then
12234 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
12235 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
12236 echo "configure:12237: checking for multimedia/audio_device.h" >&5
12238 cat > conftest.$ac_ext <<EOF
12239 #line 12240 "configure"
12240 #include "confdefs.h"
12241 #include <multimedia/audio_device.h>
12243 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12244 { (eval echo configure:12245: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12245 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12246 if test -z "$ac_err"; then
12248 eval "ac_cv_header_$ac_safe=yes"
12251 echo "configure: failed program was:" >&5
12252 cat conftest.$ac_ext >&5
12254 eval "ac_cv_header_$ac_safe=no"
12257 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12258 echo "$ac_t""yes" 1>&6
12259 sound_found=yes sound_cflags=""
12260 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
12261 echo " xemacs will be linked with \"sunplay.o\""
12264 echo "$ac_t""no" 1>&6
12269 if test -z "$sound_found" -a -d "/usr/demo/SOUND"; then
12271 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
12272 echo " xemacs will be linked with \"sunplay.o\""
12274 if test -d "/usr/demo/SOUND/include"
12275 then sound_cflags="-I/usr/demo/SOUND/include"
12276 else sound_cflags="-I/usr/demo/SOUND"
12278 if test -z "$native_sound_lib" ; then
12279 if test -r "/usr/demo/SOUND/lib/libaudio.a"
12280 then native_sound_lib="/usr/demo/SOUND/lib/libaudio.a"
12281 else native_sound_lib="/usr/demo/SOUND/libaudio.a"
12286 if test -z "$sound_found"; then
12287 case "$canonical" in
12289 if test -z "$native_sound_lib"; then
12291 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
12292 echo "configure:12293: checking for ALopenport in -laudio" >&5
12293 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
12295 xe_check_libs=" -laudio "
12296 cat > conftest.$ac_ext <<EOF
12297 #line 12298 "configure"
12298 #include "confdefs.h"
12299 /* Override any gcc2 internal prototype to avoid an error. */
12300 /* We use char because int might match the return type of a gcc2
12301 builtin and then its argument prototype would still apply. */
12308 if { (eval echo configure:12309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12310 eval "ac_cv_lib_$ac_lib_var=yes"
12312 echo "configure: failed program was:" >&5
12313 cat conftest.$ac_ext >&5
12315 eval "ac_cv_lib_$ac_lib_var=no"
12320 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12321 echo "$ac_t""yes" 1>&6
12322 native_sound_lib="-laudio"
12324 echo "$ac_t""no" 1>&6
12329 if test -n "$native_sound_lib"; then
12330 sound_found=yes sound_cflags=""
12331 extra_objs="$extra_objs sgiplay.o" && if test "$extra_verbose" = "yes"; then
12332 echo " xemacs will be linked with \"sgiplay.o\""
12336 if test -z "$native_sound_lib"; then
12338 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
12339 echo "configure:12340: checking for AOpenAudio in -lAlib" >&5
12340 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
12342 xe_check_libs=" -lAlib "
12343 cat > conftest.$ac_ext <<EOF
12344 #line 12345 "configure"
12345 #include "confdefs.h"
12346 /* Override any gcc2 internal prototype to avoid an error. */
12347 /* We use char because int might match the return type of a gcc2
12348 builtin and then its argument prototype would still apply. */
12355 if { (eval echo configure:12356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12357 eval "ac_cv_lib_$ac_lib_var=yes"
12359 echo "configure: failed program was:" >&5
12360 cat conftest.$ac_ext >&5
12362 eval "ac_cv_lib_$ac_lib_var=no"
12367 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12368 echo "$ac_t""yes" 1>&6
12369 native_sound_lib="-lAlib"
12371 echo "$ac_t""no" 1>&6
12376 if test -n "$native_sound_lib"; then
12378 extra_objs="$extra_objs hpplay.o" && if test "$extra_verbose" = "yes"; then
12379 echo " xemacs will be linked with \"hpplay.o\""
12381 if test "$GCC" = "yes" # Kludge city
12382 then sound_cflags="-Dconst= -Dvolatile= -I/usr/audio/examples"
12383 else sound_cflags="+e -I/usr/audio/examples"
12389 if test -z "$sound_found"; then
12390 for dir in "machine" "sys" "linux"; do
12391 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
12392 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
12393 echo "configure:12394: checking for ${dir}/soundcard.h" >&5
12395 cat > conftest.$ac_ext <<EOF
12396 #line 12397 "configure"
12397 #include "confdefs.h"
12398 #include <${dir}/soundcard.h>
12400 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12401 { (eval echo configure:12402: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12402 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12403 if test -z "$ac_err"; then
12405 eval "ac_cv_header_$ac_safe=yes"
12408 echo "configure: failed program was:" >&5
12409 cat conftest.$ac_ext >&5
12411 eval "ac_cv_header_$ac_safe=no"
12414 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12415 echo "$ac_t""yes" 1>&6
12418 extra_objs="$extra_objs linuxplay.o" && if test "$extra_verbose" = "yes"; then
12419 echo " xemacs will be linked with \"linuxplay.o\""
12421 { test "$extra_verbose" = "yes" && cat << EOF
12422 Defining SOUNDCARD_H_FILE = "${dir}/soundcard.h"
12424 cat >> confdefs.h <<EOF
12425 #define SOUNDCARD_H_FILE "${dir}/soundcard.h"
12431 echo "$ac_t""no" 1>&6
12437 if test -z "$sound_found"; then
12438 if test "$with_msw" = "yes"; then
12444 test "$sound_found" = "yes" && with_native_sound=yes
12447 if test "$with_native_sound" = "yes"; then
12448 { test "$extra_verbose" = "yes" && cat << \EOF
12449 Defining HAVE_NATIVE_SOUND
12451 cat >> confdefs.h <<\EOF
12452 #define HAVE_NATIVE_SOUND 1
12456 test -n "$native_sound_lib" && LIBS="$native_sound_lib $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$native_sound_lib\" to \$LIBS"; fi
12459 if test "$with_nas_sound" != "no"; then
12460 ac_safe=`echo "audio/audiolib.h" | sed 'y%./+-%__p_%'`
12461 echo $ac_n "checking for audio/audiolib.h""... $ac_c" 1>&6
12462 echo "configure:12463: checking for audio/audiolib.h" >&5
12464 cat > conftest.$ac_ext <<EOF
12465 #line 12466 "configure"
12466 #include "confdefs.h"
12467 #include <audio/audiolib.h>
12469 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12470 { (eval echo configure:12471: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12471 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12472 if test -z "$ac_err"; then
12474 eval "ac_cv_header_$ac_safe=yes"
12477 echo "configure: failed program was:" >&5
12478 cat conftest.$ac_ext >&5
12480 eval "ac_cv_header_$ac_safe=no"
12483 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12484 echo "$ac_t""yes" 1>&6
12487 echo $ac_n "checking for AuOpenServer in -laudio""... $ac_c" 1>&6
12488 echo "configure:12489: checking for AuOpenServer in -laudio" >&5
12489 ac_lib_var=`echo audio'_'AuOpenServer | sed 'y%./+-%__p_%'`
12491 xe_check_libs=" -laudio "
12492 cat > conftest.$ac_ext <<EOF
12493 #line 12494 "configure"
12494 #include "confdefs.h"
12495 /* Override any gcc2 internal prototype to avoid an error. */
12496 /* We use char because int might match the return type of a gcc2
12497 builtin and then its argument prototype would still apply. */
12498 char AuOpenServer();
12504 if { (eval echo configure:12505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12506 eval "ac_cv_lib_$ac_lib_var=yes"
12508 echo "configure: failed program was:" >&5
12509 cat conftest.$ac_ext >&5
12511 eval "ac_cv_lib_$ac_lib_var=no"
12516 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12517 echo "$ac_t""yes" 1>&6
12520 echo "$ac_t""no" 1>&6
12525 echo "$ac_t""no" 1>&6
12528 if test "$have_nas_sound" = "yes"; then
12530 { test "$extra_verbose" = "yes" && cat << \EOF
12531 Defining HAVE_NAS_SOUND
12533 cat >> confdefs.h <<\EOF
12534 #define HAVE_NAS_SOUND 1
12538 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
12539 echo " xemacs will be linked with \"nas.o\""
12541 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi
12542 cat > conftest.$ac_ext <<EOF
12543 #line 12544 "configure"
12544 #include "confdefs.h"
12545 #include <audio/Xtutil.h>
12547 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12548 egrep "AuXtErrorJump" >/dev/null 2>&1; then
12552 old_nas=yes; { test "$extra_verbose" = "yes" && cat << \EOF
12553 Defining NAS_NO_ERROR_JUMP
12555 cat >> confdefs.h <<\EOF
12556 #define NAS_NO_ERROR_JUMP 1
12564 test "$with_nas_sound" = "yes" && \
12565 { echo "Error:" "Required NAS sound support cannot be provided." >&2; exit 1; }
12570 if test "$with_esd_sound" != "no"; then
12571 # Extract the first word of "esd-config", so it can be a program name with args.
12572 set dummy esd-config; ac_word=$2
12573 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12574 echo "configure:12575: checking for $ac_word" >&5
12576 if test -n "$have_esd_config"; then
12577 ac_cv_prog_have_esd_config="$have_esd_config" # Let the user override the test.
12579 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12581 for ac_dir in $ac_dummy; do
12582 test -z "$ac_dir" && ac_dir=.
12583 if test -f $ac_dir/$ac_word; then
12584 ac_cv_prog_have_esd_config="yes"
12589 test -z "$ac_cv_prog_have_esd_config" && ac_cv_prog_have_esd_config="no"
12591 have_esd_config="$ac_cv_prog_have_esd_config"
12592 if test -n "$have_esd_config"; then
12593 echo "$ac_t""$have_esd_config" 1>&6
12595 echo "$ac_t""no" 1>&6
12598 if test "$have_esd_config" = "yes"; then
12599 save_c_switch_site="$c_switch_site" save_LIBS="$LIBS"
12600 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
12601 LIBS="`esd-config --libs` $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"`esd-config --libs`\" to \$LIBS"; fi
12602 echo $ac_n "checking for esd_play_stream""... $ac_c" 1>&6
12603 echo "configure:12604: checking for esd_play_stream" >&5
12605 cat > conftest.$ac_ext <<EOF
12606 #line 12607 "configure"
12607 #include "confdefs.h"
12608 /* System header to define __stub macros and hopefully few prototypes,
12609 which can conflict with char esd_play_stream(); below. */
12610 #include <assert.h>
12611 /* Override any gcc2 internal prototype to avoid an error. */
12612 /* We use char because int might match the return type of a gcc2
12613 builtin and then its argument prototype would still apply. */
12614 char esd_play_stream();
12618 /* The GNU C library defines this for functions which it implements
12619 to always fail with ENOSYS. Some functions are actually named
12620 something starting with __ and the normal name is an alias. */
12621 #if defined (__stub_esd_play_stream) || defined (__stub___esd_play_stream)
12629 if { (eval echo configure:12630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12631 eval "ac_cv_func_esd_play_stream=yes"
12633 echo "configure: failed program was:" >&5
12634 cat conftest.$ac_ext >&5
12636 eval "ac_cv_func_esd_play_stream=no"
12640 if eval "test \"`echo '$ac_cv_func_'esd_play_stream`\" = yes"; then
12641 echo "$ac_t""yes" 1>&6
12644 echo "$ac_t""no" 1>&6
12645 c_switch_site="$save_c_switch_site" LIBS="$save_LIBS"
12650 if test "$have_esd_sound" = "yes"; then
12653 extra_objs="$extra_objs esd.o" && if test "$extra_verbose" = "yes"; then
12654 echo " xemacs will be linked with \"esd.o\""
12656 { test "$extra_verbose" = "yes" && cat << \EOF
12657 Defining HAVE_ESD_SOUND
12659 cat >> confdefs.h <<\EOF
12660 #define HAVE_ESD_SOUND 1
12665 test "$with_esd_sound" = "yes" && \
12666 { echo "Error:" "Required ESD sound support cannot be provided." >&2; exit 1; }
12671 test "$need_miscplay" = "yes" && extra_objs="$extra_objs miscplay.o" && if test "$extra_verbose" = "yes"; then
12672 echo " xemacs will be linked with \"miscplay.o\""
12676 test -z "$with_tty" && with_tty=yes
12678 if test "$with_tty" = "yes" ; then
12679 echo "checking for TTY-related features" 1>&6
12680 echo "configure:12681: checking for TTY-related features" >&5
12681 { test "$extra_verbose" = "yes" && cat << \EOF
12684 cat >> confdefs.h <<\EOF
12689 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
12690 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\""
12693 if test -z "$with_ncurses"; then
12695 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
12696 echo "configure:12697: checking for tgetent in -lncurses" >&5
12697 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
12699 xe_check_libs=" -lncurses "
12700 cat > conftest.$ac_ext <<EOF
12701 #line 12702 "configure"
12702 #include "confdefs.h"
12703 /* Override any gcc2 internal prototype to avoid an error. */
12704 /* We use char because int might match the return type of a gcc2
12705 builtin and then its argument prototype would still apply. */
12712 if { (eval echo configure:12713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12714 eval "ac_cv_lib_$ac_lib_var=yes"
12716 echo "configure: failed program was:" >&5
12717 cat conftest.$ac_ext >&5
12719 eval "ac_cv_lib_$ac_lib_var=no"
12724 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12725 echo "$ac_t""yes" 1>&6
12728 echo "$ac_t""no" 1>&6
12734 if test "$with_ncurses" = "yes"; then
12735 { test "$extra_verbose" = "yes" && cat << \EOF
12736 Defining HAVE_NCURSES
12738 cat >> confdefs.h <<\EOF
12739 #define HAVE_NCURSES 1
12743 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
12744 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
12745 echo "configure:12746: checking for ncurses/curses.h" >&5
12747 cat > conftest.$ac_ext <<EOF
12748 #line 12749 "configure"
12749 #include "confdefs.h"
12750 #include <ncurses/curses.h>
12752 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12753 { (eval echo configure:12754: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12754 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12755 if test -z "$ac_err"; then
12757 eval "ac_cv_header_$ac_safe=yes"
12760 echo "configure: failed program was:" >&5
12761 cat conftest.$ac_ext >&5
12763 eval "ac_cv_header_$ac_safe=no"
12766 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12767 echo "$ac_t""yes" 1>&6
12768 curses_h_file=ncurses/curses.h
12770 echo "$ac_t""no" 1>&6
12773 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
12774 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
12775 echo "configure:12776: checking for ncurses/term.h" >&5
12777 cat > conftest.$ac_ext <<EOF
12778 #line 12779 "configure"
12779 #include "confdefs.h"
12780 #include <ncurses/term.h>
12782 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12783 { (eval echo configure:12784: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12784 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12785 if test -z "$ac_err"; then
12787 eval "ac_cv_header_$ac_safe=yes"
12790 echo "configure: failed program was:" >&5
12791 cat conftest.$ac_ext >&5
12793 eval "ac_cv_header_$ac_safe=no"
12796 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12797 echo "$ac_t""yes" 1>&6
12798 term_h_file=ncurses/term.h
12800 echo "$ac_t""no" 1>&6
12803 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
12804 echo " xemacs will be linked with \"terminfo.o\""
12806 LIBS="-lncurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lncurses\" to \$LIBS"; fi
12808 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
12809 save_c_switch_site="$c_switch_site"
12810 c_switch_site="$c_switch_site -I/usr/include/ncurses"
12811 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
12812 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
12813 echo "configure:12814: checking for ncurses/curses.h" >&5
12815 cat > conftest.$ac_ext <<EOF
12816 #line 12817 "configure"
12817 #include "confdefs.h"
12818 #include <ncurses/curses.h>
12820 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12821 { (eval echo configure:12822: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12822 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12823 if test -z "$ac_err"; then
12825 eval "ac_cv_header_$ac_safe=yes"
12828 echo "configure: failed program was:" >&5
12829 cat conftest.$ac_ext >&5
12831 eval "ac_cv_header_$ac_safe=no"
12834 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12835 echo "$ac_t""yes" 1>&6
12836 curses_h_file=ncurses/curses.h
12838 echo "$ac_t""no" 1>&6
12841 if test "$ac_cv_header_ncurses_curses_h" = "yes"
12842 then echo "configure: warning: "Your system has the bogus ncurses include bug."" 1>&2
12843 else c_switch_site="$save_c_switch_site"
12846 else if test "$have_terminfo" = "yes"; then
12847 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
12848 echo " xemacs will be linked with \"terminfo.o\""
12850 if test -n "$libs_termcap"; then
12851 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
12853 for lib in curses termlib termcap; do
12855 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
12856 echo "configure:12857: checking for tgetent in -l$lib" >&5
12857 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
12859 xe_check_libs=" -l$lib "
12860 cat > conftest.$ac_ext <<EOF
12861 #line 12862 "configure"
12862 #include "confdefs.h"
12863 /* Override any gcc2 internal prototype to avoid an error. */
12864 /* We use char because int might match the return type of a gcc2
12865 builtin and then its argument prototype would still apply. */
12872 if { (eval echo configure:12873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12874 eval "ac_cv_lib_$ac_lib_var=yes"
12876 echo "configure: failed program was:" >&5
12877 cat conftest.$ac_ext >&5
12879 eval "ac_cv_lib_$ac_lib_var=no"
12884 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12885 echo "$ac_t""yes" 1>&6
12886 LIBS="-l${lib} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${lib}\" to \$LIBS"; fi; break
12888 echo "$ac_t""no" 1>&6
12894 else extra_objs="$extra_objs tparam.o" && if test "$extra_verbose" = "yes"; then
12895 echo " xemacs will be linked with \"tparam.o\""
12897 case "$opsys" in *-hp-hpux* ) libs_termcap="-ltermcap" ;; esac
12898 if test -n "$libs_termcap"; then
12899 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
12902 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
12903 echo "configure:12904: checking for tgetent in -lcurses" >&5
12904 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
12906 xe_check_libs=" -lcurses "
12907 cat > conftest.$ac_ext <<EOF
12908 #line 12909 "configure"
12909 #include "confdefs.h"
12910 /* Override any gcc2 internal prototype to avoid an error. */
12911 /* We use char because int might match the return type of a gcc2
12912 builtin and then its argument prototype would still apply. */
12919 if { (eval echo configure:12920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12921 eval "ac_cv_lib_$ac_lib_var=yes"
12923 echo "configure: failed program was:" >&5
12924 cat conftest.$ac_ext >&5
12926 eval "ac_cv_lib_$ac_lib_var=no"
12931 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12932 echo "$ac_t""yes" 1>&6
12933 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
12935 echo "$ac_t""no" 1>&6
12936 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
12937 echo "configure:12938: checking for tgetent in -ltermcap" >&5
12938 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
12940 xe_check_libs=" -ltermcap "
12941 cat > conftest.$ac_ext <<EOF
12942 #line 12943 "configure"
12943 #include "confdefs.h"
12944 /* Override any gcc2 internal prototype to avoid an error. */
12945 /* We use char because int might match the return type of a gcc2
12946 builtin and then its argument prototype would still apply. */
12953 if { (eval echo configure:12954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12955 eval "ac_cv_lib_$ac_lib_var=yes"
12957 echo "configure: failed program was:" >&5
12958 cat conftest.$ac_ext >&5
12960 eval "ac_cv_lib_$ac_lib_var=no"
12965 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12966 echo "$ac_t""yes" 1>&6
12967 LIBS="-ltermcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltermcap\" to \$LIBS"; fi
12969 echo "$ac_t""no" 1>&6
12970 extra_objs="$extra_objs termcap.o" && if test "$extra_verbose" = "yes"; then
12971 echo " xemacs will be linked with \"termcap.o\""
12982 { test "$extra_verbose" = "yes" && cat << EOF
12983 Defining CURSES_H_FILE = "${curses_h_file-curses.h}"
12985 cat >> confdefs.h <<EOF
12986 #define CURSES_H_FILE "${curses_h_file-curses.h}"
12990 { test "$extra_verbose" = "yes" && cat << EOF
12991 Defining TERM_H_FILE = "${term_h_file-term.h}"
12993 cat >> confdefs.h <<EOF
12994 #define TERM_H_FILE "${term_h_file-term.h}"
12999 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
13000 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
13001 echo "configure:13002: checking for gpm.h" >&5
13003 cat > conftest.$ac_ext <<EOF
13004 #line 13005 "configure"
13005 #include "confdefs.h"
13008 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13009 { (eval echo configure:13010: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13010 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13011 if test -z "$ac_err"; then
13013 eval "ac_cv_header_$ac_safe=yes"
13016 echo "configure: failed program was:" >&5
13017 cat conftest.$ac_ext >&5
13019 eval "ac_cv_header_$ac_safe=no"
13022 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13023 echo "$ac_t""yes" 1>&6
13026 echo "$ac_t""no" 1>&6
13030 test -z "$with_gpm" && {
13031 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
13032 echo "configure:13033: checking for Gpm_Open in -lgpm" >&5
13033 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
13035 xe_check_libs=" -lgpm "
13036 cat > conftest.$ac_ext <<EOF
13037 #line 13038 "configure"
13038 #include "confdefs.h"
13039 /* Override any gcc2 internal prototype to avoid an error. */
13040 /* We use char because int might match the return type of a gcc2
13041 builtin and then its argument prototype would still apply. */
13048 if { (eval echo configure:13049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13050 eval "ac_cv_lib_$ac_lib_var=yes"
13052 echo "configure: failed program was:" >&5
13053 cat conftest.$ac_ext >&5
13055 eval "ac_cv_lib_$ac_lib_var=no"
13060 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13061 echo "$ac_t""yes" 1>&6
13064 echo "$ac_t""no" 1>&6
13069 if test "$with_gpm" = "yes"; then
13070 { test "$extra_verbose" = "yes" && cat << \EOF
13073 cat >> confdefs.h <<\EOF
13078 extra_objs="$extra_objs gpmevent.o" && if test "$extra_verbose" = "yes"; then
13079 echo " xemacs will be linked with \"gpmevent.o\""
13081 LIBS="-lgpm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgpm\" to \$LIBS"; fi
13084 else for feature in ncurses gpm; do
13085 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
13086 echo "configure: warning: "--with-${feature} ignored: Not valid without TTY support"" 1>&2
13088 eval "with_${feature}=no"
13091 test "$with_x11" = "yes" -o "$with_tty" = "yes" && extra_objs="$extra_objs event-unixoid.o" && if test "$extra_verbose" = "yes"; then
13092 echo " xemacs will be linked with \"event-unixoid.o\""
13096 test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
13097 != "no no no" && echo "checking for database support" 1>&6
13098 echo "configure:13099: checking for database support" >&5
13100 if test "$with_database_gdbm $with_database_dbm" != "no no"; then
13101 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'`
13102 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6
13103 echo "configure:13104: checking for ndbm.h" >&5
13105 cat > conftest.$ac_ext <<EOF
13106 #line 13107 "configure"
13107 #include "confdefs.h"
13110 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13111 { (eval echo configure:13112: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13112 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13113 if test -z "$ac_err"; then
13115 eval "ac_cv_header_$ac_safe=yes"
13118 echo "configure: failed program was:" >&5
13119 cat conftest.$ac_ext >&5
13121 eval "ac_cv_header_$ac_safe=no"
13124 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13125 echo "$ac_t""yes" 1>&6
13128 echo "$ac_t""no" 1>&6
13130 test "$with_database_gdbm" = "yes" -o \
13131 "$with_database_dbm" = "yes" && \
13132 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
13133 with_database_gdbm=no with_database_dbm=no
13138 if test "$with_database_gdbm" != "no"; then
13140 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
13141 echo "configure:13142: checking for dbm_open in -lgdbm" >&5
13142 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
13144 xe_check_libs=" -lgdbm "
13145 cat > conftest.$ac_ext <<EOF
13146 #line 13147 "configure"
13147 #include "confdefs.h"
13148 /* Override any gcc2 internal prototype to avoid an error. */
13149 /* We use char because int might match the return type of a gcc2
13150 builtin and then its argument prototype would still apply. */
13157 if { (eval echo configure:13158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13159 eval "ac_cv_lib_$ac_lib_var=yes"
13161 echo "configure: failed program was:" >&5
13162 cat conftest.$ac_ext >&5
13164 eval "ac_cv_lib_$ac_lib_var=no"
13169 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13170 echo "$ac_t""yes" 1>&6
13171 with_database_gdbm=yes with_database_dbm=no libdbm=-lgdbm
13173 echo "$ac_t""no" 1>&6
13174 if test "$with_database_gdbm" = "yes"; then
13175 { echo "Error:" "Required GNU DBM support cannot be provided." >&2; exit 1; }
13177 with_database_gdbm=no
13183 if test "$with_database_dbm" != "no"; then
13184 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
13185 echo "configure:13186: checking for dbm_open" >&5
13187 cat > conftest.$ac_ext <<EOF
13188 #line 13189 "configure"
13189 #include "confdefs.h"
13190 /* System header to define __stub macros and hopefully few prototypes,
13191 which can conflict with char dbm_open(); below. */
13192 #include <assert.h>
13193 /* Override any gcc2 internal prototype to avoid an error. */
13194 /* We use char because int might match the return type of a gcc2
13195 builtin and then its argument prototype would still apply. */
13200 /* The GNU C library defines this for functions which it implements
13201 to always fail with ENOSYS. Some functions are actually named
13202 something starting with __ and the normal name is an alias. */
13203 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
13211 if { (eval echo configure:13212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13213 eval "ac_cv_func_dbm_open=yes"
13215 echo "configure: failed program was:" >&5
13216 cat conftest.$ac_ext >&5
13218 eval "ac_cv_func_dbm_open=no"
13222 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
13223 echo "$ac_t""yes" 1>&6
13224 with_database_dbm=yes libdbm=
13226 echo "$ac_t""no" 1>&6
13229 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
13230 echo "configure:13231: checking for dbm_open in -ldbm" >&5
13231 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
13233 xe_check_libs=" -ldbm "
13234 cat > conftest.$ac_ext <<EOF
13235 #line 13236 "configure"
13236 #include "confdefs.h"
13237 /* Override any gcc2 internal prototype to avoid an error. */
13238 /* We use char because int might match the return type of a gcc2
13239 builtin and then its argument prototype would still apply. */
13246 if { (eval echo configure:13247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13248 eval "ac_cv_lib_$ac_lib_var=yes"
13250 echo "configure: failed program was:" >&5
13251 cat conftest.$ac_ext >&5
13253 eval "ac_cv_lib_$ac_lib_var=no"
13258 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13259 echo "$ac_t""yes" 1>&6
13260 with_database_dbm=yes libdbm=-ldbm
13262 echo "$ac_t""no" 1>&6
13263 test "$with_database_dbm" = "yes" && \
13264 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
13265 with_database_dbm=no
13273 test -n "$libdbm" && LIBS=""$libdbm" $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libdbm"\" to \$LIBS"; fi
13274 test "$with_database_gdbm" = "yes" -o \
13275 "$with_database_dbm" = "yes" && \
13276 { test "$extra_verbose" = "yes" && cat << \EOF
13279 cat >> confdefs.h <<\EOF
13285 if test "$with_database_berkdb" != "no"; then
13286 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6
13287 echo "configure:13288: checking for Berkeley db.h" >&5
13288 for header in "db/db.h" "db.h"; do
13289 cat > conftest.$ac_ext <<EOF
13290 #line 13291 "configure"
13291 #include "confdefs.h"
13293 #include <stdlib.h>
13294 #if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1)
13295 #ifdef HAVE_INTTYPES_H
13296 #define __BIT_TYPES_DEFINED__
13297 #include <inttypes.h>
13298 typedef uint8_t u_int8_t;
13299 typedef uint16_t u_int16_t;
13300 typedef uint32_t u_int32_t;
13301 #ifdef WE_DONT_NEED_QUADS
13302 typedef uint64_t u_int64_t;
13312 if { (eval echo configure:13313: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13314 db_h_file="$header"; break
13316 echo "configure: failed program was:" >&5
13317 cat conftest.$ac_ext >&5
13321 if test -z "$db_h_file"
13322 then echo "$ac_t""no" 1>&6; with_database_berkdb=no
13323 else echo "$ac_t""$db_h_file" 1>&6
13326 if test "$with_database_berkdb" != "no"; then
13327 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6
13328 echo "configure:13329: checking for Berkeley DB version" >&5
13329 cat > conftest.$ac_ext <<EOF
13330 #line 13331 "configure"
13331 #include "confdefs.h"
13332 #include <$db_h_file>
13333 #if DB_VERSION_MAJOR > 1
13338 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13339 egrep "yes" >/dev/null 2>&1; then
13341 cat > conftest.$ac_ext <<EOF
13342 #line 13343 "configure"
13343 #include "confdefs.h"
13344 #include <$db_h_file>
13345 #if DB_VERSION_MAJOR > 2
13350 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13351 egrep "yes" >/dev/null 2>&1; then
13353 echo "$ac_t""3" 1>&6; dbfunc=db_create
13357 echo "$ac_t""2" 1>&6; dbfunc=db_open
13364 echo "$ac_t""1" 1>&6; dbfunc=dbopen
13368 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6
13369 echo "configure:13370: checking for $dbfunc" >&5
13371 cat > conftest.$ac_ext <<EOF
13372 #line 13373 "configure"
13373 #include "confdefs.h"
13374 /* System header to define __stub macros and hopefully few prototypes,
13375 which can conflict with char $dbfunc(); below. */
13376 #include <assert.h>
13377 /* Override any gcc2 internal prototype to avoid an error. */
13378 /* We use char because int might match the return type of a gcc2
13379 builtin and then its argument prototype would still apply. */
13384 /* The GNU C library defines this for functions which it implements
13385 to always fail with ENOSYS. Some functions are actually named
13386 something starting with __ and the normal name is an alias. */
13387 #if defined (__stub_$dbfunc) || defined (__stub___$dbfunc)
13395 if { (eval echo configure:13396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13397 eval "ac_cv_func_$dbfunc=yes"
13399 echo "configure: failed program was:" >&5
13400 cat conftest.$ac_ext >&5
13402 eval "ac_cv_func_$dbfunc=no"
13406 if eval "test \"`echo '$ac_cv_func_'$dbfunc`\" = yes"; then
13407 echo "$ac_t""yes" 1>&6
13408 with_database_berkdb=yes need_libdb=no
13410 echo "$ac_t""no" 1>&6
13413 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6
13414 echo "configure:13415: checking for $dbfunc in -ldb" >&5
13415 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'`
13417 xe_check_libs=" -ldb "
13418 cat > conftest.$ac_ext <<EOF
13419 #line 13420 "configure"
13420 #include "confdefs.h"
13421 /* Override any gcc2 internal prototype to avoid an error. */
13422 /* We use char because int might match the return type of a gcc2
13423 builtin and then its argument prototype would still apply. */
13430 if { (eval echo configure:13431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13432 eval "ac_cv_lib_$ac_lib_var=yes"
13434 echo "configure: failed program was:" >&5
13435 cat conftest.$ac_ext >&5
13437 eval "ac_cv_lib_$ac_lib_var=no"
13442 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13443 echo "$ac_t""yes" 1>&6
13444 with_database_berkdb=yes need_libdb=yes
13446 echo "$ac_t""no" 1>&6
13454 if test "$with_database_berkdb" = "yes"; then
13455 { test "$extra_verbose" = "yes" && cat << EOF
13456 Defining DB_H_FILE = "$db_h_file"
13458 cat >> confdefs.h <<EOF
13459 #define DB_H_FILE "$db_h_file"
13463 { test "$extra_verbose" = "yes" && cat << \EOF
13464 Defining HAVE_BERKELEY_DB
13466 cat >> confdefs.h <<\EOF
13467 #define HAVE_BERKELEY_DB 1
13471 test "$need_libdb" = "yes" && LIBS="-ldb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldb\" to \$LIBS"; fi
13472 else with_database_berkdb=no
13476 if test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
13477 != "no no no"; then
13478 { test "$extra_verbose" = "yes" && cat << \EOF
13479 Defining HAVE_DATABASE
13481 cat >> confdefs.h <<\EOF
13482 #define HAVE_DATABASE 1
13486 extra_objs="$extra_objs database.o" && if test "$extra_verbose" = "yes"; then
13487 echo " xemacs will be linked with \"database.o\""
13491 if test "$with_socks" = "yes"; then
13493 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
13494 echo "configure:13495: checking for SOCKSinit in -lsocks" >&5
13495 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
13497 xe_check_libs=" -lsocks "
13498 cat > conftest.$ac_ext <<EOF
13499 #line 13500 "configure"
13500 #include "confdefs.h"
13501 /* Override any gcc2 internal prototype to avoid an error. */
13502 /* We use char because int might match the return type of a gcc2
13503 builtin and then its argument prototype would still apply. */
13510 if { (eval echo configure:13511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13512 eval "ac_cv_lib_$ac_lib_var=yes"
13514 echo "configure: failed program was:" >&5
13515 cat conftest.$ac_ext >&5
13517 eval "ac_cv_lib_$ac_lib_var=no"
13522 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13523 echo "$ac_t""yes" 1>&6
13524 ac_tr_lib=HAVE_LIB`echo socks | sed -e 's/[^a-zA-Z0-9_]/_/g' \
13525 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
13526 { test "$extra_verbose" = "yes" && cat << EOF
13527 Defining $ac_tr_lib
13529 cat >> confdefs.h <<EOF
13530 #define $ac_tr_lib 1
13534 LIBS="-lsocks $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lsocks\" to \$LIBS"; fi
13537 echo "$ac_t""no" 1>&6
13541 test -n "$ac_cv_lib_socks_SOCKSinit" && { test "$extra_verbose" = "yes" && cat << \EOF
13542 Defining HAVE_SOCKS
13544 cat >> confdefs.h <<\EOF
13545 #define HAVE_SOCKS 1
13551 if test "$usage_tracking" = "yes"; then
13552 { test "$extra_verbose" = "yes" && cat << \EOF
13553 Defining USAGE_TRACKING
13555 cat >> confdefs.h <<\EOF
13556 #define USAGE_TRACKING 1
13560 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi
13563 if test "$with_modules" != "no"; then
13564 echo "checking for module support" 1>&6
13565 echo "configure:13566: checking for module support" >&5
13567 if test "$with_msw" = "yes"; then
13570 ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'`
13571 echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6
13572 echo "configure:13573: checking for dlfcn.h" >&5
13574 cat > conftest.$ac_ext <<EOF
13575 #line 13576 "configure"
13576 #include "confdefs.h"
13579 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13580 { (eval echo configure:13581: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13581 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13582 if test -z "$ac_err"; then
13584 eval "ac_cv_header_$ac_safe=yes"
13587 echo "configure: failed program was:" >&5
13588 cat conftest.$ac_ext >&5
13590 eval "ac_cv_header_$ac_safe=no"
13593 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13594 echo "$ac_t""yes" 1>&6
13596 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6
13597 echo "configure:13598: checking for dlopen in -lc" >&5
13598 cat > conftest.$ac_ext <<EOF
13599 #line 13600 "configure"
13600 #include "confdefs.h"
13606 if { (eval echo configure:13607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13610 echo "configure: failed program was:" >&5
13611 cat conftest.$ac_ext >&5
13614 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
13615 echo "configure:13616: checking for dlopen in -ldl" >&5
13616 ac_save_LIBS="$LIBS"
13618 cat > conftest.$ac_ext <<EOF
13619 #line 13620 "configure"
13620 #include "confdefs.h"
13626 if { (eval echo configure:13627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13630 echo "configure: failed program was:" >&5
13631 cat conftest.$ac_ext >&5
13633 LIBS="$ac_save_LIBS"
13640 echo "$ac_t""no" 1>&6
13643 if test -n "$have_dl"; then
13644 { test "$extra_verbose" = "yes" && cat << \EOF
13645 Defining HAVE_DLOPEN
13647 cat >> confdefs.h <<\EOF
13648 #define HAVE_DLOPEN 1
13654 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
13655 echo "configure:13656: checking for shl_load in -ldld" >&5
13656 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
13658 xe_check_libs=" -ldld "
13659 cat > conftest.$ac_ext <<EOF
13660 #line 13661 "configure"
13661 #include "confdefs.h"
13662 /* Override any gcc2 internal prototype to avoid an error. */
13663 /* We use char because int might match the return type of a gcc2
13664 builtin and then its argument prototype would still apply. */
13671 if { (eval echo configure:13672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13673 eval "ac_cv_lib_$ac_lib_var=yes"
13675 echo "configure: failed program was:" >&5
13676 cat conftest.$ac_ext >&5
13678 eval "ac_cv_lib_$ac_lib_var=no"
13683 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13684 echo "$ac_t""yes" 1>&6
13685 libdl=dld have_dl=yes;
13686 { test "$extra_verbose" = "yes" && cat << \EOF
13687 Defining HAVE_SHL_LOAD
13689 cat >> confdefs.h <<\EOF
13690 #define HAVE_SHL_LOAD 1
13695 echo "$ac_t""no" 1>&6
13697 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6
13698 echo "configure:13699: checking for dld_init in -ldld" >&5
13699 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'`
13701 xe_check_libs=" -ldld "
13702 cat > conftest.$ac_ext <<EOF
13703 #line 13704 "configure"
13704 #include "confdefs.h"
13705 /* Override any gcc2 internal prototype to avoid an error. */
13706 /* We use char because int might match the return type of a gcc2
13707 builtin and then its argument prototype would still apply. */
13714 if { (eval echo configure:13715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13716 eval "ac_cv_lib_$ac_lib_var=yes"
13718 echo "configure: failed program was:" >&5
13719 cat conftest.$ac_ext >&5
13721 eval "ac_cv_lib_$ac_lib_var=no"
13726 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13727 echo "$ac_t""yes" 1>&6
13728 libdl=dld have_dl=yes;
13729 { test "$extra_verbose" = "yes" && cat << \EOF
13730 Defining HAVE_DLD_INIT
13732 cat >> confdefs.h <<\EOF
13733 #define HAVE_DLD_INIT 1
13738 echo "$ac_t""no" 1>&6
13747 if test -n "$have_dl"; then
13754 ld_dynamic_link_flags=
13756 xealias=$internal_configuration
13758 echo "checking how to build dynamic libraries for ${xehost}" 1>&6
13759 echo "configure:13760: checking how to build dynamic libraries for ${xehost}" >&5
13760 # Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts.
13763 *-*-linux*) xehost=`echo $xehost | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
13766 xehost_cpu=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
13767 xehost_vendor=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
13768 xehost_os=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
13770 case "$xehost_os" in
13772 # AIX sometimes has problems with the GCC collect2 program. For some
13773 # reason, if we set the COLLECT_NAMES environment variable, the problems
13774 # vanish in a puff of smoke.
13775 if test "${COLLECT_NAMES+set}" != set; then
13777 export COLLECT_NAMES
13782 # Now see if the compiler is really GCC.
13783 if test "$GCC" = "yes"; then
13786 echo $ac_n "checking checking whether we are using GNU C""... $ac_c" 1>&6
13787 echo "configure:13788: checking checking whether we are using GNU C" >&5
13788 cat > conftest.$ac_ext <<EOF
13789 #line 13790 "configure"
13790 #include "confdefs.h"
13797 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13798 egrep "yes" >/dev/null 2>&1; then
13807 echo "$ac_t""${XEGCC}" 1>&6
13810 echo $ac_n "checking how to produce PIC code""... $ac_c" 1>&6
13811 echo "configure:13812: checking how to produce PIC code" >&5
13814 can_build_shared=yes
13815 if test "$XEGCC" = yes; then
13818 case "$xehost_os" in
13819 aix3* | aix4* | irix5* | irix6* | osf3* | osf4*)
13820 # PIC is the default for these OSes.
13823 aix3* | aix4* | os2*)
13824 # We can build DLLs from non-PIC.
13827 # FIXME: we need at least 68020 code to build shared libraries, but
13828 # adding the `-m68020' flag to GCC prevents building anything better,
13830 dll_cflags='-m68020 -resident32 -malways-restore-a4'
13832 *cygwin* | *mingw* )
13833 # PIC is the default
13840 # PORTME Check for PIC flags for the system compiler.
13841 case "$xehost_os" in
13842 hpux9* | hpux1[0-9]*)
13843 # Is there a better link_static_flag that works with the bundled CC?
13850 # PIC (with -KPIC) is the default.
13854 # We can build DLLs from non-PIC.
13858 # All OSF/1 code is PIC.
13863 dll_cflags='-belf -Kpic'
13897 can_build_shared=no
13902 if test -n "$dll_cflags"; then
13903 echo "$ac_t""${dll_cflags}" 1>&6
13905 # Check to make sure the dll_cflags actually works.
13906 echo $ac_n "checking if PIC flag ${dll_cflags} really works""... $ac_c" 1>&6
13907 echo "configure:13908: checking if PIC flag ${dll_cflags} really works" >&5
13908 save_CFLAGS="$CFLAGS"
13909 CFLAGS="$CFLAGS $dll_cflags -DPIC"
13910 cat > conftest.$ac_ext <<EOF
13911 #line 13912 "configure"
13912 #include "confdefs.h"
13918 if { (eval echo configure:13919: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13921 # On HP-UX, the stripped-down bundled CC doesn't accept +Z, but also
13922 # reports no error. So, we need to grep stderr for (Bundled).
13923 if grep '(Bundled)' config.log >/dev/null; then
13924 echo "$ac_t""no" 1>&6
13925 can_build_shared=no
13928 echo "$ac_t""yes" 1>&6
13931 echo "configure: failed program was:" >&5
13932 cat conftest.$ac_ext >&5
13934 echo "$ac_t""no" 1>&6
13935 can_build_shared=no
13939 CFLAGS="$save_CFLAGS"
13941 echo "$ac_t""none" 1>&6
13944 if test "$can_build_shared" = "yes"; then
13948 echo $ac_n "checking if C compiler can produce shared libraries""... $ac_c" 1>&6
13949 echo "configure:13950: checking if C compiler can produce shared libraries" >&5
13950 if test "$XEGCC" = yes; then
13953 else # Not using GCC
13954 case "$xehost_os" in
13956 xldf="-bE:ELLSONAME.exp -H512 -T512 -bhalt:4 -bM:SRE -bnoentry -lc"
13957 xcldf="${wl}-bE:ELLSONAME.exp ${wl}-H512 ${wl}-T512 ${wl}-bhalt:4 ${wl}-bM:SRE ${wl}-bnoentry ${wl}-lc"
13960 freebsd2* | netbsd* | openbsd*)
13962 xcldf="${wl}-Bshareable"
13971 xcldf="${wl}-b ${wl}+s"
13974 irix5* | irix6* | osf3* | osf4*)
13975 xcldf="${wl}-shared"
13979 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7* | uts4*)
13985 xcldf="${wl}-assert ${wl}pure-text ${wl}-Bstatic"
13986 xldf="-assert pure-text -Bstatic"
13989 fi # End if if we are using gcc
13991 if test -n "$xcldf"; then
13992 save_LDFLAGS=$LDFLAGS
13994 save_xe_libs=$xe_libs
13995 LDFLAGS="$xcldf $LDFLAGS"
13998 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
13999 cat > conftest.$ac_ext <<EOF
14000 #line 14001 "configure"
14001 #include "confdefs.h"
14007 if { (eval echo configure:14008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14011 echo "configure: failed program was:" >&5
14012 cat conftest.$ac_ext >&5
14017 LDFLAGS=$save_LDFLAGS
14019 xe_libs=$save_xe_libs
14020 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
14024 echo "$ac_t""${cc_produces_so}" 1>&6
14027 if test -z "$LTLD"; then
14029 if test "$XEGCC" = yes; then
14030 # Check if gcc -print-prog-name=ld gives a path.
14031 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
14032 echo "configure:14033: checking for ld used by GCC" >&5
14033 ac_prog=`($CC -print-prog-name=ld) 2>&5`
14035 # Accept absolute paths.
14037 if test -z "$LTLD"; then
14039 *gcc-lib*) LTLD="$CC"
14047 # If it fails, then pretend we aren't using GCC.
14051 # If it is relative, then search for the first ld in PATH.
14052 with_gnu_ld=unknown
14056 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
14057 echo "configure:14058: checking for GNU ld" >&5
14060 if test -z "$LTLD"; then
14061 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
14062 for ac_dir in $PATH; do
14063 test -z "$ac_dir" && ac_dir=.
14064 if test -f "$ac_dir/$ac_prog"; then
14065 LTLD="$ac_dir/$ac_prog"
14066 # Check to see if the program is GNU ld. I'd rather use --version,
14067 # but apparently some GNU ld's only accept -v.
14068 # Break only if it was the GNU/non-GNU ld that we prefer.
14069 if "$LTLD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
14079 if test -n "$LTLD"; then
14080 echo "$ac_t""${LTLD}" 1>&6
14082 echo "$ac_t""no" 1>&6
14085 if test -z "$LTLD" -a "$cc_produces_so" = no; then
14086 { echo "configure: error: no acceptable linker found in \$PATH" 1>&2; exit 1; }
14091 ld_dynamic_link_flags=
14093 # Check to see if it really is or isn't GNU ld.
14094 echo $ac_n "checking if the linker is GNU ld""... $ac_c" 1>&6
14095 echo "configure:14096: checking if the linker is GNU ld" >&5
14096 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
14097 if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
14102 echo "$ac_t""${xe_gnu_ld}" 1>&6
14104 case "$xehost_os" in
14105 amigaos* | sunos4*)
14106 # On these operating systems, we should treat GNU ld like the system ld.
14107 gnu_ld_acts_native=yes
14110 gnu_ld_acts_native=no
14114 if test "$cc_produces_so" = "yes"; then
14117 can_build_shared=yes
14120 # OK - only NOW do we futz about with ld.
14121 # See if the linker supports building shared libraries.
14122 echo $ac_n "checking whether the linker supports shared libraries""... $ac_c" 1>&6
14123 echo "configure:14124: checking whether the linker supports shared libraries" >&5
14125 dll_ldflags=$LDFLAGS
14127 can_build_shared=yes
14128 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then
14129 # See if GNU ld supports shared libraries.
14130 if $LTLD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
14132 dll_ldflags="-shared"
14138 # PORTME fill in a description of your system's linker (not GNU ld)
14139 case "$xehost_os" in
14149 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14150 # support. Future versions do this automatically, but an explicit c++rt0.o
14151 # doesn't break anything, and helps significantly (at the cost of a little
14156 dll_post="/usr/lib/c++rt0.o"
14159 # Unfortunately, older versions of FreeBSD 2 don't have this feature.
14162 dll_ldflags="-Bshareable"
14165 # FreeBSD 3, at last, uses gcc -shared to do shared libraries.
14167 dll_ldflags="-shared"
14181 # Tested with NetBSD 1.2 ld
14196 # For both SCO and Solaris we MAY want to have LDFLAGS include -z text
14197 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7*)
14200 *gcc*) dll_ldflags="-shared"
14203 *) dll_ldflags="-G"
14209 if test "$XEGCC" = yes; then
14229 can_build_shared=no
14233 echo "$ac_t""${ld_shlibs}" 1>&6
14234 if test "$ld_shlibs" = "no"; then
14235 can_build_shared=no
14237 fi # End of if cc_produces_so = no
14240 if test "$xe_gnu_ld" = yes; then
14241 if test "$ld_shlibs" = yes; then
14242 ld_dynamic_link_flags="${wl}-export-dynamic"
14246 if test -z "$ld_dynamic_link_flags"; then
14247 case "$xehost_os" in
14249 ld_dynamic_link_flags=
14253 ld_dynamic_link_flags=
14257 ld_dynamic_link_flags=
14261 ld_dynamic_link_flags=
14265 ld_dynamic_link_flags=
14269 ld_dynamic_link_flags="${wl}-E"
14273 ld_dynamic_link_flags=
14277 ld_dynamic_link_flags=
14281 ld_dynamic_link_flags=
14285 ld_dynamic_link_flags=
14288 solaris2* | solaris7*)
14289 ld_dynamic_link_flags=
14292 sco3.2v5* | unixware* | sysv5* | sysv4*)
14293 ld_dynamic_link_flags="${wl}-Bexport"
14297 ld_dynamic_link_flags=
14301 ld_dynamic_link_flags=
14305 ld_dynamic_link_flags=
14309 fi # End of if -z ld_dynamic_link_flags
14310 fi # End of if test "$can_build_shared" = "yes"
14321 if test "$can_build_shared" = "yes"; then
14322 { test "$extra_verbose" = "yes" && cat << \EOF
14323 Defining HAVE_SHLIB
14325 cat >> confdefs.h <<\EOF
14326 #define HAVE_SHLIB 1
14330 extra_objs="$extra_objs sysdll.o emodules.o" && if test "$extra_verbose" = "yes"; then
14331 echo " xemacs will be linked with \"sysdll.o emodules.o\""
14333 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
14334 test -n "$libdl" && LIBS="-l${libdl} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${libdl}\" to \$LIBS"; fi
14335 for ac_func in dlerror _dlerror
14337 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14338 echo "configure:14339: checking for $ac_func" >&5
14340 cat > conftest.$ac_ext <<EOF
14341 #line 14342 "configure"
14342 #include "confdefs.h"
14343 /* System header to define __stub macros and hopefully few prototypes,
14344 which can conflict with char $ac_func(); below. */
14345 #include <assert.h>
14346 /* Override any gcc2 internal prototype to avoid an error. */
14347 /* We use char because int might match the return type of a gcc2
14348 builtin and then its argument prototype would still apply. */
14353 /* The GNU C library defines this for functions which it implements
14354 to always fail with ENOSYS. Some functions are actually named
14355 something starting with __ and the normal name is an alias. */
14356 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14364 if { (eval echo configure:14365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14366 eval "ac_cv_func_$ac_func=yes"
14368 echo "configure: failed program was:" >&5
14369 cat conftest.$ac_ext >&5
14371 eval "ac_cv_func_$ac_func=no"
14375 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14376 echo "$ac_t""yes" 1>&6
14377 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14378 { test "$extra_verbose" = "yes" && cat << EOF
14379 Defining $ac_tr_func
14381 cat >> confdefs.h <<EOF
14382 #define $ac_tr_func 1
14387 echo "$ac_t""no" 1>&6
14393 if test "$with_modules" = "yes"; then
14394 { echo "Error:" "Required module support cannot be provided." >&2; exit 1; }
14396 echo "configure: warning: "Module support cannot be provided."" 1>&2
14402 cat > conftest.$ac_ext <<EOF
14403 #line 14404 "configure"
14404 #include "confdefs.h"
14405 int main(int c,char *v[]){return 0;}
14407 if { (eval echo configure:14408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
14412 echo "configure: failed program was:" >&5
14413 cat conftest.$ac_ext >&5
14417 echo "*** PANIC *** The C compiler can no longer build working executables."
14418 echo "*** PANIC *** Please examine the tail of config.log for runtime errors."
14419 echo "*** PANIC *** The most likely reason for this problem is that configure"
14420 echo "*** PANIC *** links with shared libraries, but those libraries cannot be"
14421 echo "*** PANIC *** found at run time."
14422 echo "*** PANIC ***"
14423 echo "*** PANIC *** On a Linux system, edit /etc/ld.so.conf and re-run ldconfig."
14424 echo "*** PANIC *** On other systems, try telling configure where to find the"
14425 echo "*** PANIC *** shared libraries using the --site-runtime-libraries option"
14426 echo "*** PANIC ***"
14427 echo "*** PANIC *** Another way to shoot yourself in the foot is to specify"
14428 echo "*** PANIC *** --with-FEATURE when FEATURE is not actually installed"
14429 echo "*** PANIC *** on your system. Don't do that."
14434 if test "$win32_processes" = "yes"; then
14435 extra_objs="$extra_objs process-nt.o" && if test "$extra_verbose" = "yes"; then
14436 echo " xemacs will be linked with \"process-nt.o\""
14439 { test "$extra_verbose" = "yes" && cat << \EOF
14440 Defining HAVE_UNIX_PROCESSES
14442 cat >> confdefs.h <<\EOF
14443 #define HAVE_UNIX_PROCESSES 1
14447 extra_objs="$extra_objs process-unix.o" && if test "$extra_verbose" = "yes"; then
14448 echo " xemacs will be linked with \"process-unix.o\""
14455 for W in $CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
14460 for W in $extra_objs; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
14465 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
14466 c_switch_general="$T"
14470 for W in $c_switch_x_site $X_CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
14471 c_switch_window_system="$T"
14475 for W in $c_switch_general $c_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
14480 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
14481 ld_switch_general="$T"
14485 for W in $ld_switch_x_site; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
14486 ld_switch_window_system="$T"
14490 for W in $ld_switch_general $ld_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
14495 for W in $LIBS $libs_machine $libs_system $libs_standard; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
14496 ld_libs_general="$T"
14500 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
14501 ld_libs_window_system="$T"
14505 for W in $ld_libs_window_system $ld_libs_general; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
14510 MAKE_SUBDIR="$MAKE_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$MAKE_SUBDIR"; fi
14511 internal_makefile_list="Makefile.in"
14512 SUBDIR_MAKEFILES=''
14513 test -d lock || mkdir lock
14514 for dir in $MAKE_SUBDIR; do
14515 case "$dir" in */* ) ( for d in `echo $dir | sed 's:/: :g'` ; do
14516 test -d "$d" || mkdir "$d"; cd "$d"
14518 * ) test -d "$dir" || mkdir "$dir" ;;
14522 for W in $SUBDIR_MAKEFILES $dir/Makefile $dir/GNUmakefile; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
14523 SUBDIR_MAKEFILES="$T"
14527 for W in $internal_makefile_list $dir/Makefile.in; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
14528 internal_makefile_list="$T"
14535 for dir in src/s src/m; do
14536 if test ! -d "$dir" ; then
14537 echo Making symbolic link to "$srcdir/$dir"
14538 ${LN_S} "$srcdir/$dir" "$dir"
14542 if test "$extra_verbose" = "yes"; then
14544 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
14549 if test -f "$srcdir/src/.gdbinit" -a ! -f "src/.gdbinit"; then
14550 test "$extra_verbose" = "yes" && echo "creating src/.gdbinit"
14551 echo "source $srcdir/src/.gdbinit" > "src/.gdbinit"
14554 if test -f "$srcdir/src/.dbxrc" -a ! -f "src/.dbxrc"; then
14555 test "$extra_verbose" = "yes" && echo "creating src/.dbxrc"
14556 echo ". $srcdir/src/.dbxrc" > "src/.dbxrc"
14559 if test -f "$srcdir/TAGS" -a ! -f "TAGS"; then
14560 test "$extra_verbose" = "yes" && echo "creating TAGS"
14562 $srcdir/TAGS,include" > "TAGS"
14565 if test "$__SUNPRO_C" = "yes"; then
14566 test "$extra_verbose" = "yes" && echo "creating .sbinit"
14567 ( echo "# For use with Sun WorkShop's Source browser."
14568 echo "# See sbquery(1) and sbinit(4) for more information"
14569 for dir in $MAKE_SUBDIR; do echo "import $dir"; done
14597 *\$* ) eval "PREFIX=$PREFIX" ;;
14605 EXEC_PREFIX=$exec_prefix
14607 case "$EXEC_PREFIX" in
14608 *\$* ) eval "EXEC_PREFIX=$EXEC_PREFIX" ;;
14619 *\$* ) eval "INFODIR=$INFODIR" ;;
14629 case "$INFOPATH" in
14630 *\$* ) eval "INFOPATH=$INFOPATH" ;;
14638 PACKAGE_PATH=$package_path
14640 case "$PACKAGE_PATH" in
14641 *\$* ) eval "PACKAGE_PATH=$PACKAGE_PATH" ;;
14652 *\$* ) eval "LISPDIR=$LISPDIR" ;;
14660 MODULEDIR=$moduledir
14662 case "$MODULEDIR" in
14663 *\$* ) eval "MODULEDIR=$MODULEDIR" ;;
14671 SITELISPDIR=$sitelispdir
14673 case "$SITELISPDIR" in
14674 *\$* ) eval "SITELISPDIR=$SITELISPDIR" ;;
14682 SITEMODULEDIR=$sitemoduledir
14684 case "$SITEMODULEDIR" in
14685 *\$* ) eval "SITEMODULEDIR=$SITEMODULEDIR" ;;
14696 *\$* ) eval "ETCDIR=$ETCDIR" ;;
14707 *\$* ) eval "DOCDIR=$DOCDIR" ;;
14715 ARCHLIBDIR=$archlibdir
14717 case "$ARCHLIBDIR" in
14718 *\$* ) eval "ARCHLIBDIR=$ARCHLIBDIR" ;;
14742 RECURSIVE_MAKE="\$(MAKE) \$(MFLAGS) CC='\$(CC)' CFLAGS='\$(CFLAGS)' LDFLAGS='\$(LDFLAGS)' CPPFLAGS='\$(CPPFLAGS)'"
14750 : ${XEMACS_CC:=$CC}
14753 if test "$with_prefix" = "yes"; then
14754 { test "$extra_verbose" = "yes" && cat << \EOF
14755 Defining PREFIX_USER_DEFINED
14757 cat >> confdefs.h <<\EOF
14758 #define PREFIX_USER_DEFINED 1
14764 if test "$with_site_lisp" = "no"; then
14765 { test "$extra_verbose" = "yes" && cat << \EOF
14766 Defining INHIBIT_SITE_LISP
14768 cat >> confdefs.h <<\EOF
14769 #define INHIBIT_SITE_LISP 1
14774 if test "$with_site_modules" = "no"; then
14775 { test "$extra_verbose" = "yes" && cat << \EOF
14776 Defining INHIBIT_SITE_MODULES
14778 cat >> confdefs.h <<\EOF
14779 #define INHIBIT_SITE_MODULES 1
14787 for W in $ac_configure_args; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
14788 ac_configure_args="$T"
14790 { test "$extra_verbose" = "yes" && cat << EOF
14791 Defining EMACS_CONFIGURATION = "$configuration"
14793 cat >> confdefs.h <<EOF
14794 #define EMACS_CONFIGURATION "$configuration"
14798 { test "$extra_verbose" = "yes" && cat << EOF
14799 Defining EMACS_CONFIG_OPTIONS = "$ac_configure_args"
14801 cat >> confdefs.h <<EOF
14802 #define EMACS_CONFIG_OPTIONS "$ac_configure_args"
14809 { test "$extra_verbose" = "yes" && cat << EOF
14810 Defining LD_SWITCH_X_SITE = $null_string
14812 cat >> confdefs.h <<EOF
14813 #define LD_SWITCH_X_SITE $null_string
14817 { test "$extra_verbose" = "yes" && cat << EOF
14818 Defining LD_SWITCH_X_SITE_AUX = $null_string
14820 cat >> confdefs.h <<EOF
14821 #define LD_SWITCH_X_SITE_AUX $null_string
14825 { test "$extra_verbose" = "yes" && cat << EOF
14826 Defining C_SWITCH_X_SITE = $null_string
14828 cat >> confdefs.h <<EOF
14829 #define C_SWITCH_X_SITE $null_string
14833 { test "$extra_verbose" = "yes" && cat << EOF
14834 Defining LD_SWITCH_SITE = $null_string
14836 cat >> confdefs.h <<EOF
14837 #define LD_SWITCH_SITE $null_string
14841 { test "$extra_verbose" = "yes" && cat << EOF
14842 Defining C_SWITCH_SITE = $null_string
14844 cat >> confdefs.h <<EOF
14845 #define C_SWITCH_SITE $null_string
14851 if test "$GNU_MALLOC" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
14852 Defining GNU_MALLOC
14854 cat >> confdefs.h <<\EOF
14855 #define GNU_MALLOC 1
14859 elif test "$with_system_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
14860 Defining USE_SYSTEM_MALLOC
14862 cat >> confdefs.h <<\EOF
14863 #define USE_SYSTEM_MALLOC 1
14867 elif test "$with_debug_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
14868 Defining USE_DEBUG_MALLOC
14870 cat >> confdefs.h <<\EOF
14871 #define USE_DEBUG_MALLOC 1
14875 { test "$extra_verbose" = "yes" && cat << \EOF
14876 Defining USE_SYSTEM_MALLOC
14878 cat >> confdefs.h <<\EOF
14879 #define USE_SYSTEM_MALLOC 1
14884 test "$with_i18n3" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14887 cat >> confdefs.h <<\EOF
14892 test "$GCC" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14895 cat >> confdefs.h <<\EOF
14900 test "$external_widget" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14901 Defining EXTERNAL_WIDGET
14903 cat >> confdefs.h <<\EOF
14904 #define EXTERNAL_WIDGET 1
14908 test "$quick_build" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14909 Defining QUICK_BUILD
14911 cat >> confdefs.h <<\EOF
14912 #define QUICK_BUILD 1
14916 test "$with_purify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14919 cat >> confdefs.h <<\EOF
14924 test "$with_quantify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14927 cat >> confdefs.h <<\EOF
14932 test "$with_pop" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14933 Defining MAIL_USE_POP
14935 cat >> confdefs.h <<\EOF
14936 #define MAIL_USE_POP 1
14940 test "$with_kerberos" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14943 cat >> confdefs.h <<\EOF
14948 test "$with_hesiod" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14951 cat >> confdefs.h <<\EOF
14956 test "$use_union_type" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14957 Defining USE_UNION_TYPE
14959 cat >> confdefs.h <<\EOF
14960 #define USE_UNION_TYPE 1
14964 test "$pdump" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14967 cat >> confdefs.h <<\EOF
14975 if test -f /etc/osversion; then echo "osversion: `cat /etc/osversion`"
14977 echo "uname -a: `uname -a`"
14980 echo "$0 $quoted_arguments"
14983 if test ! -z ${emacs_beta_version} ; then
14984 if test -z "${emacs_is_beta}" ; then
14985 xemacs_betaname=".${emacs_beta_version}"
14987 xemacs_betaname="-b${emacs_beta_version}"
14996 XEmacs ${emacs_major_version}.${emacs_minor_version}${xemacs_betaname} \"$xemacs_codename\" configured for \`$canonical'.
14999 Compilation / Installation:"
15000 echo " Source code location: $srcdir"
15001 echo " Installation prefix: $prefix"
15002 if test -n "$site_includes"; then
15003 echo " Additional header files: $site_includes"
15005 if test -n "$site_libraries"; then
15006 echo " Additional libraries: $site_libraries"
15008 if test -n "$site_prefixes"; then
15009 echo " Additional prefixes: $site_prefixes"
15011 if test -n "$runpath"; then
15012 echo " Runtime library search path: $runpath"
15015 if test -n "$opsysfile"
15016 then echo " Operating system description file: \`$opsysfile'"
15017 else echo " Not using any operating system description file"
15019 if test -n "$machfile"
15020 then echo " Machine description file: \`$machfile'"
15021 else echo " Not using any machine description file"
15024 echo " Compiler: $CC $CFLAGS"
15025 echo " Relocating allocator for buffers: $rel_alloc"
15026 echo " GNU version of malloc: ${GNU_MALLOC}${GNU_MALLOC_reason}"
15030 if test "$with_msw" = "yes"; then
15031 echo " Compiling in support for the Microsoft window system."
15033 if test "$with_x11" = "yes"; then
15034 echo " Compiling in support for the X window system:"
15035 echo " - X Windows headers location: $x_includes"
15036 echo " - X Windows libraries location: $x_libraries"
15037 if test "$with_xauth" != yes; then
15038 echo " - Xau (X authority) not available."
15040 if test "$with_xmu" != yes; then
15041 echo " - Xmu library not available; substituting equivalent routines."
15043 if test "$with_wmcommand" != no; then
15044 echo " - Handling WM_COMMAND properly."
15047 if test "$need_athena" = "yes"; then
15048 echo " Compiling in support for the Athena widget set:"
15049 echo " - Athena headers location: $athena_h_path"
15050 echo " - Athena library to link: $athena_lib"
15052 case "$with_menubars" in
15053 lucid ) echo " Using Lucid menubars." ;;
15054 motif ) echo " Using Motif menubars."
15055 echo " *WARNING* The Motif menubar implementation is currently buggy."
15056 echo " We recommend using the Lucid menubar instead."
15057 echo " Re-run configure with --with-menubars='lucid'." ;;
15058 msw ) echo " Using MS-Windows menubars." ;;
15060 case "$with_scrollbars" in
15061 lucid ) echo " Using Lucid scrollbars." ;;
15062 motif ) echo " Using Motif scrollbars." ;;
15063 athena ) echo " Using Athena scrollbars." ;;
15064 msw ) echo " Using MS-Windows scrollbars." ;;
15066 case "$with_dialogs" in
15067 motif ) echo " Using Motif dialog boxes."
15068 if test "$unexec" = "unexaix.o"; then if test "`uname -v`" = 4 -a "`uname -r`" -ge 3; then
15069 echo " *WARNING* The Motif dialog boxes cause problems on AIX 4.3 and higher."
15070 echo " We recommend using the Athena dialog boxes instead."
15071 echo " Install libXaw and re-run configure with --with-dialogs='athena'."
15072 echo " Read the PROBLEMS file for more information."
15074 athena ) echo " Using Athena dialog boxes." ;;
15075 msw ) echo " Using MS-Windows dialog boxes." ;;
15077 case "$with_widgets" in
15078 motif ) echo " Using Motif native widgets." ;;
15079 athena ) echo " Using Athena native widgets." ;;
15080 msw ) echo " Using MS-Windows native widgets." ;;
15082 if test "$with_dragndrop" = yes; then
15083 echo " Compiling in support for Drag'n'Drop (EXPERIMENTAL)."
15084 echo " - Drag'n'Drop prototype: $dragndrop_proto."
15089 test "$with_ncurses" = yes && echo " Compiling in support for ncurses."
15090 test "$with_gpm" = yes && echo " Compiling in support for GPM (General Purpose Mouse)."
15094 test "$with_gif" = yes && echo " Compiling in support for GIF images (builtin)."
15095 if test "$with_xpm" = yes; then
15096 echo " Compiling in support for XPM images."
15097 elif test "$with_x11" = yes; then
15098 echo " WARNING: -----------------------------------------------------------"
15099 echo " WARNING: Compiling without XPM image support."
15100 if test "$xpm_problem" != ""; then
15101 echo " Reason: $xpm_problem"
15103 echo " WARNING: You should strongly consider installing XPM."
15104 echo " WARNING: Otherwise toolbars and other graphics will look suboptimal."
15105 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
15106 echo " WARNING: -----------------------------------------------------------"
15108 if test "$with_png" = yes; then
15109 echo " Compiling in support for PNG images."
15110 elif test "$window_system" != "none"; then
15111 echo " WARNING: -----------------------------------------------------------"
15112 echo " WARNING: Compiling without PNG image support."
15113 if test "$png_problem" != ""; then
15114 echo " Reason: $png_problem"
15116 echo " WARNING: You should strongly consider installing the PNG libraries."
15117 echo " WARNING: Otherwise certain images and glyphs may not display."
15118 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
15119 echo " WARNING: -----------------------------------------------------------"
15121 test "$with_jpeg" = yes && echo " Compiling in support for JPEG images."
15122 test "$with_tiff" = yes && echo " Compiling in support for TIFF images."
15123 test "$with_xface" = yes && echo " Compiling in support for X-Face message headers."
15127 test "$with_native_sound" = yes && echo " Compiling in support for sound (native)."
15128 test "$with_nas_sound" = yes && echo " Compiling in support for NAS (network audio system)."
15129 test "$old_nas" = yes && echo " - NAS library lacks error trapping; will play synchronously."
15130 test "$with_esd_sound" = yes && echo " Compiling in support for ESD (Enlightened Sound Daemon)."
15134 test "$with_database_berkdb" = yes && echo " Compiling in support for Berkeley database."
15135 test "$with_database_dbm" = yes && echo " Compiling in support for DBM."
15136 test "$with_database_gdbm" = yes && echo " Compiling in support for GNU DBM."
15137 test "$with_ldap" = yes && echo " Compiling in support for LDAP."
15138 if test "$with_postgresql" = yes; then
15139 echo " Compiling in support for PostgreSQL."
15140 echo " - Using PostgreSQL header file: $libpq_fe_h_file"
15141 test "$with_postgresqlv7" = yes && echo " - Using PostgreSQL V7 bindings."
15145 Internationalization:"
15146 test "$with_mule" = yes && echo " Compiling in support for Mule (multi-lingual Emacs)."
15147 test "$with_file_coding" = yes && echo " Compiling in support for file coding."
15148 test "$with_xim" != no && echo " Compiling in support for XIM (X11R5+ I18N input method)."
15149 test "$with_xim" = motif && echo " - Using Motif to provide XIM support."
15150 test "$with_xim" = xlib && echo " - Using raw Xlib to provide XIM support."
15151 test "$with_xfs" = yes && echo " - Using XFontSet to provide bilingual menubar."
15152 test "$with_canna" = yes && echo " Compiling in support for Canna on Mule."
15153 if test "$with_wnn" = yes; then
15154 echo " Compiling in support for the WNN input method on Mule."
15155 test "$with_wnn6" = yes && echo " - Using WNN version 6."
15157 test "$with_i18n3" = yes && echo " Compiling in support for I18N level 3 (doesn't currently work)."
15161 test "$with_pop" = yes && echo " Compiling in support for POP mail retrieval."
15162 test "$with_kerberos" = yes && echo " Compiling in support for Kerberos POP authentication."
15163 test "$with_hesiod" = yes && echo " Compiling in support for Hesiod POP server access."
15164 test -n "$mail_locking" && echo " Compiling in support for \"$mail_locking\" mail spool file locking method."
15168 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk."
15169 test "$with_workshop" = yes && echo " Compiling in support for Sun WorkShop."
15170 test "$with_socks" = yes && echo " Compiling in support for SOCKS."
15171 test "$with_dnet" = yes && echo " Compiling in support for DNET."
15172 test "$with_modules" = "yes" && echo " Compiling in support for dynamic shared object modules."
15173 test "$use_union_type" = yes && echo " Using the union type for Lisp_Objects."
15174 test "$pdump" = yes && echo " Using the new portable dumper."
15175 test "$debug" = yes && echo " Compiling in support for extra debugging code."
15176 test "$usage_tracking" = yes && echo " Compiling in support for active usage tracking (Sun internal)."
15177 if test "$error_check_extents $error_check_typecheck $error_check_bufpos $error_check_gc $error_check_malloc $error_check_glyphs" \
15178 != "no no no no no no"; then
15179 echo " WARNING: ---------------------------------------------------------"
15180 echo " WARNING: Compiling in support for runtime error checking."
15181 echo " WARNING: XEmacs will run noticeably more slowly as a result."
15182 echo " WARNING: Error checking is on by default for XEmacs beta releases."
15183 echo " WARNING: ---------------------------------------------------------"
15186 ) | tee -a Installation
15190 # Remove any trailing slashes in these variables.
15191 test -n "$prefix" &&
15192 prefix=`echo '' "$prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
15193 test -n "$exec_prefix" &&
15194 exec_prefix=`echo '' "$exec_prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
15197 for file in $internal_makefile_list; do
15198 test "$file" = src/Makefile.in && \
15199 file="src/Makefile.in:src/Makefile.in.in:src/depend"
15200 ac_output_files="$ac_output_files $file" && if test "$extra_verbose" = "yes"; then echo " Appending \"$file\" to \$ac_output_files"; fi
15202 ac_output_files="$ac_output_files src/paths.h lib-src/config.values"
15203 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
15207 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
15209 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15210 # Let make expand exec_prefix.
15211 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15213 # Any assignment to VPATH causes Sun make to only execute
15214 # the first set of double-colon rules, so remove it if not needed.
15215 # If there is a colon in the path, we need to keep it.
15216 if test "x$srcdir" = x.; then
15217 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
15220 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
15222 DEFS=-DHAVE_CONFIG_H
15224 # Without the "./", some shells look in PATH for config.status.
15225 : ${CONFIG_STATUS=./config.status}
15227 echo creating $CONFIG_STATUS
15228 rm -f $CONFIG_STATUS
15229 cat > $CONFIG_STATUS <<EOF
15231 # Generated automatically by configure.
15232 # Run this file to recreate the current configuration.
15233 # This directory was configured as follows,
15234 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15236 # $0 $ac_configure_args
15238 # Compiler output produced by configure, useful for debugging
15239 # configure, is in ./config.log if it exists.
15241 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
15244 case "\$ac_option" in
15245 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15246 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
15247 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
15248 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
15249 echo "$CONFIG_STATUS generated by autoconf version 2.13"
15251 -help | --help | --hel | --he | --h)
15252 echo "\$ac_cs_usage"; exit 0 ;;
15253 *) echo "\$ac_cs_usage"; exit 1 ;;
15257 ac_given_srcdir=$srcdir
15258 ac_given_INSTALL="$INSTALL"
15260 trap 'rm -fr `echo "$ac_output_files src/config.h lwlib/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
15262 cat >> $CONFIG_STATUS <<EOF
15264 # Protect against being on the right side of a sed subst in config.status.
15265 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
15266 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
15270 s%@CFLAGS@%$CFLAGS%g
15271 s%@CPPFLAGS@%$CPPFLAGS%g
15272 s%@CXXFLAGS@%$CXXFLAGS%g
15273 s%@FFLAGS@%$FFLAGS%g
15275 s%@LDFLAGS@%$LDFLAGS%g
15277 s%@exec_prefix@%$exec_prefix%g
15278 s%@prefix@%$prefix%g
15279 s%@program_transform_name@%$program_transform_name%g
15280 s%@bindir@%$bindir%g
15281 s%@sbindir@%$sbindir%g
15282 s%@libexecdir@%$libexecdir%g
15283 s%@datadir@%$datadir%g
15284 s%@sysconfdir@%$sysconfdir%g
15285 s%@sharedstatedir@%$sharedstatedir%g
15286 s%@localstatedir@%$localstatedir%g
15287 s%@libdir@%$libdir%g
15288 s%@includedir@%$includedir%g
15289 s%@oldincludedir@%$oldincludedir%g
15290 s%@infodir@%$infodir%g
15291 s%@mandir@%$mandir%g
15293 s%@blddir@%$blddir%g
15296 s%@start_flags@%$start_flags%g
15297 s%@ld_switch_shared@%$ld_switch_shared%g
15298 s%@start_files@%$start_files%g
15300 s%@lib_gcc@%$lib_gcc%g
15301 s%@RANLIB@%$RANLIB%g
15302 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
15303 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
15304 s%@INSTALL_DATA@%$INSTALL_DATA%g
15306 s%@SET_MAKE@%$SET_MAKE%g
15307 s%@X_CFLAGS@%$X_CFLAGS%g
15308 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
15309 s%@X_LIBS@%$X_LIBS%g
15310 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
15311 s%@install_pp@%$install_pp%g
15312 s%@libs_xauth@%$libs_xauth%g
15313 s%@dnd_objs@%$dnd_objs%g
15314 s%@lwlib_objs@%$lwlib_objs%g
15315 s%@ALLOCA@%$ALLOCA%g
15316 s%@have_esd_config@%$have_esd_config%g
15317 s%@dll_ld@%$dll_ld%g
15318 s%@dll_cflags@%$dll_cflags%g
15319 s%@dll_ldflags@%$dll_ldflags%g
15320 s%@dll_post@%$dll_post%g
15321 s%@dll_ldo@%$dll_ldo%g
15322 s%@ld_dynamic_link_flags@%$ld_dynamic_link_flags%g
15323 s%@SRC_SUBDIR_DEPS@%$SRC_SUBDIR_DEPS%g
15324 s%@INSTALL_ARCH_DEP_SUBDIR@%$INSTALL_ARCH_DEP_SUBDIR%g
15325 s%@MAKE_SUBDIR@%$MAKE_SUBDIR%g
15326 s%@SUBDIR_MAKEFILES@%$SUBDIR_MAKEFILES%g
15327 s%@PROGNAME@%$PROGNAME%g
15328 s%@version@%$version%g
15329 s%@configuration@%$configuration%g
15330 s%@canonical@%$canonical%g
15331 s%@inststaticdir@%$inststaticdir%g
15332 s%@instvardir@%$instvardir%g
15333 s%@srcdir@%$srcdir%g
15334 s%@pkgdir@%$pkgdir%g
15335 s%@statedir@%$statedir%g
15336 s%@extra_includes@%$extra_includes%g
15337 s%@PREFIX_USER_DEFINED@%$PREFIX_USER_DEFINED%g
15338 s%@PREFIX@%$PREFIX%g
15339 s%@EXEC_PREFIX_USER_DEFINED@%$EXEC_PREFIX_USER_DEFINED%g
15340 s%@EXEC_PREFIX@%$EXEC_PREFIX%g
15341 s%@INFODIR_USER_DEFINED@%$INFODIR_USER_DEFINED%g
15342 s%@INFODIR@%$INFODIR%g
15343 s%@infopath@%$infopath%g
15344 s%@INFOPATH_USER_DEFINED@%$INFOPATH_USER_DEFINED%g
15345 s%@INFOPATH@%$INFOPATH%g
15346 s%@package_path@%$package_path%g
15347 s%@PACKAGE_PATH_USER_DEFINED@%$PACKAGE_PATH_USER_DEFINED%g
15348 s%@PACKAGE_PATH@%$PACKAGE_PATH%g
15349 s%@lispdir@%$lispdir%g
15350 s%@LISPDIR_USER_DEFINED@%$LISPDIR_USER_DEFINED%g
15351 s%@LISPDIR@%$LISPDIR%g
15352 s%@moduledir@%$moduledir%g
15353 s%@MODULEDIR_USER_DEFINED@%$MODULEDIR_USER_DEFINED%g
15354 s%@MODULEDIR@%$MODULEDIR%g
15355 s%@sitelispdir@%$sitelispdir%g
15356 s%@SITELISPDIR_USER_DEFINED@%$SITELISPDIR_USER_DEFINED%g
15357 s%@SITELISPDIR@%$SITELISPDIR%g
15358 s%@sitemoduledir@%$sitemoduledir%g
15359 s%@SITEMODULEDIR_USER_DEFINED@%$SITEMODULEDIR_USER_DEFINED%g
15360 s%@SITEMODULEDIR@%$SITEMODULEDIR%g
15361 s%@etcdir@%$etcdir%g
15362 s%@ETCDIR_USER_DEFINED@%$ETCDIR_USER_DEFINED%g
15363 s%@ETCDIR@%$ETCDIR%g
15364 s%@docdir@%$docdir%g
15365 s%@DOCDIR_USER_DEFINED@%$DOCDIR_USER_DEFINED%g
15366 s%@DOCDIR@%$DOCDIR%g
15367 s%@archlibdir@%$archlibdir%g
15368 s%@ARCHLIBDIR_USER_DEFINED@%$ARCHLIBDIR_USER_DEFINED%g
15369 s%@ARCHLIBDIR@%$ARCHLIBDIR%g
15370 s%@bitmapdir@%$bitmapdir%g
15371 s%@extra_objs@%$extra_objs%g
15372 s%@machfile@%$machfile%g
15373 s%@opsysfile@%$opsysfile%g
15374 s%@c_switch_general@%$c_switch_general%g
15375 s%@c_switch_window_system@%$c_switch_window_system%g
15376 s%@c_switch_all@%$c_switch_all%g
15377 s%@ld_switch_general@%$ld_switch_general%g
15378 s%@ld_switch_window_system@%$ld_switch_window_system%g
15379 s%@ld_switch_all@%$ld_switch_all%g
15380 s%@ld_libs_general@%$ld_libs_general%g
15381 s%@ld_libs_window_system@%$ld_libs_window_system%g
15382 s%@ld_libs_all@%$ld_libs_all%g
15383 s%@RECURSIVE_MAKE@%$RECURSIVE_MAKE%g
15384 s%@native_sound_lib@%$native_sound_lib%g
15385 s%@sound_cflags@%$sound_cflags%g
15386 s%@dynodump_arch@%$dynodump_arch%g
15387 s%@XEMACS_CC@%$XEMACS_CC%g
15388 s%@internal_makefile_list@%$internal_makefile_list%g
15393 cat >> $CONFIG_STATUS <<\EOF
15395 # Split the substitutions into bite-sized pieces for seds with
15396 # small command number limits, like on Digital OSF/1 and HP-UX.
15397 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
15398 ac_file=1 # Number of current file.
15399 ac_beg=1 # First line for current file.
15400 ac_end=$ac_max_sed_cmds # Line after last line for current file.
15403 while $ac_more_lines; do
15404 if test $ac_beg -gt 1; then
15405 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
15407 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
15409 if test ! -s conftest.s$ac_file; then
15410 ac_more_lines=false
15411 rm -f conftest.s$ac_file
15413 if test -z "$ac_sed_cmds"; then
15414 ac_sed_cmds="sed -f conftest.s$ac_file"
15416 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
15418 ac_file=`expr $ac_file + 1`
15420 ac_end=`expr $ac_end + $ac_max_sed_cmds`
15423 if test -z "$ac_sed_cmds"; then
15428 cat >> $CONFIG_STATUS <<EOF
15430 CONFIG_FILES=\${CONFIG_FILES-"$ac_output_files"}
15432 cat >> $CONFIG_STATUS <<\EOF
15433 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
15434 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15436 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
15437 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15438 *) ac_file_in="${ac_file}.in" ;;
15441 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
15443 # Remove last slash and all that follows it. Not all systems have dirname.
15444 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
15445 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
15446 # The file is in a subdirectory.
15447 test ! -d "$ac_dir" && mkdir "$ac_dir"
15448 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
15449 # A "../" for each directory in $ac_dir_suffix.
15450 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
15452 ac_dir_suffix= ac_dots=
15455 case "$ac_given_srcdir" in
15457 if test -z "$ac_dots"; then top_srcdir=.
15458 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
15459 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
15460 *) # Relative path.
15461 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
15462 top_srcdir="$ac_dots$ac_given_srcdir" ;;
15465 case "$ac_given_INSTALL" in
15466 [/$]*) INSTALL="$ac_given_INSTALL" ;;
15467 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
15470 echo creating "$ac_file"
15472 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
15474 *Makefile*) ac_comsub="1i\\
15475 # $configure_input" ;;
15479 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
15481 s%@configure_input@%$configure_input%g
15482 s%@srcdir@%$srcdir%g
15483 s%@top_srcdir@%$top_srcdir%g
15484 s%@INSTALL@%$INSTALL%g
15485 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
15489 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
15490 # NAME is the cpp macro being defined and VALUE is the value it is being given.
15492 # ac_d sets the value in "#define NAME VALUE" lines.
15493 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
15494 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
15497 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
15498 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15499 ac_uB='\([ ]\)%\1#\2define\3'
15502 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
15503 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15504 ac_eB='$%\1#\2define\3'
15508 if test "${CONFIG_HEADERS+set}" != set; then
15510 cat >> $CONFIG_STATUS <<EOF
15511 CONFIG_HEADERS="src/config.h lwlib/config.h"
15513 cat >> $CONFIG_STATUS <<\EOF
15515 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
15516 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15518 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
15519 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15520 *) ac_file_in="${ac_file}.in" ;;
15523 echo creating $ac_file
15525 rm -f conftest.frag conftest.in conftest.out
15526 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
15527 cat $ac_file_inputs > conftest.in
15531 # Transform confdefs.h into a sed script conftest.vals that substitutes
15532 # the proper values into config.h.in to produce config.h. And first:
15533 # Protect against being on the right side of a sed subst in config.status.
15534 # Protect against being in an unquoted here document in config.status.
15535 rm -f conftest.vals
15536 cat > conftest.hdr <<\EOF
15539 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
15543 sed -n -f conftest.hdr confdefs.h > conftest.vals
15546 # This sed command replaces #undef with comments. This is necessary, for
15547 # example, in the case of _POSIX_SOURCE, which is predefined and required
15548 # on some systems where configure will not decide to define it.
15549 cat >> conftest.vals <<\EOF
15550 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
15553 # Break up conftest.vals because some shells have a limit on
15554 # the size of here documents, and old seds have small limits too.
15556 rm -f conftest.tail
15559 ac_lines=`grep -c . conftest.vals`
15560 # grep -c gives empty output for an empty file on some AIX systems.
15561 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
15562 # Write a limited-size here document to conftest.frag.
15563 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
15564 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
15566 sed -f conftest.frag conftest.in > conftest.out
15568 mv conftest.out conftest.in
15569 ' >> $CONFIG_STATUS
15570 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
15571 rm -f conftest.vals
15572 mv conftest.tail conftest.vals
15574 rm -f conftest.vals
15576 cat >> $CONFIG_STATUS <<\EOF
15577 rm -f conftest.frag conftest.h
15578 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
15579 cat conftest.in >> conftest.h
15581 if cmp -s $ac_file conftest.h 2>/dev/null; then
15582 echo "$ac_file is unchanged"
15585 # Remove last slash and all that follows it. Not all systems have dirname.
15586 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
15587 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
15588 # The file is in a subdirectory.
15589 test ! -d "$ac_dir" && mkdir "$ac_dir"
15592 mv conftest.h $ac_file
15597 cat >> $CONFIG_STATUS <<EOF
15599 top_srcdir="$srcdir"
15600 MAKE_SUBDIR="$MAKE_SUBDIR"
15603 cat >> $CONFIG_STATUS <<\EOF
15604 for dir in . $MAKE_SUBDIR; do
15609 sed -e '/^# Generated/d' \
15610 -e 's%/\*\*/#.*%%' \
15625 echo creating $dir/Makefile
15626 $CPP -I. -I${top_srcdir}/src junk.c \
15627 | sed -e 's/^\#.*//' \
15628 -e 's/^[ ][ ]*$//'\
15636 chmod 444 Makefile.new
15637 mv -f Makefile.new Makefile
15639 echo creating $dir/GNUmakefile
15640 $CPP -I. -I${top_srcdir}/src -DUSE_GNU_MAKE junk.c \
15641 | sed -e 's/^\#.*//' \
15642 -e 's/^[ ][ ]*$//'\
15650 chmod 444 Makefile.new
15651 mv -f Makefile.new GNUmakefile
15657 sed < config.status >> lib-src/config.values \
15658 -e '/{ac_dA}.*{ac_dB}.*{ac_dC}.*{ac_dD}$/!d' \
15659 -e 's/\${ac_dA}\(.*\)\${ac_dB}.*\${ac_dC}\(.*\)\${ac_dD}/\1 \2/' \
15660 -e 's/^\([^ ]*\) $/\1 ""/' \
15666 chmod +x $CONFIG_STATUS
15667 rm -fr confdefs* $ac_clean_files
15668 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1