3 #### Configuration script for XEmacs. Largely divergent from FSF.
4 #### Guess values for system-dependent variables and create Makefiles.
5 #### Generated automatically using autoconf version 2.13
6 #### Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
7 #### Copyright (C) 1993-1995 Board of Trustees, University of Illinois.
8 #### Copyright (C) 1996, 1997 Sun Microsystems, Inc.
9 #### Copyright (C) 1995, 1996 Ben Wing.
10 #### Copyright (C) 2000, 2001 Martin Buchholz.
11 #### Copyright (C) 1998, 1999 J. Kean Johnston.
13 ### Don't edit this script!
14 ### This script was automatically generated by the `autoconf' program
15 ### from the file `./configure.in'.
16 ### To rebuild it, execute the command
18 ### in the this directory. You must have autoconf version 2.13 or later.
19 ### Note: this script has not yet been ported to autoconf version 2.5x.
21 ### This file is part of XEmacs.
23 ### XEmacs is free software; you can redistribute it and/or modify it
24 ### under the terms of the GNU General Public License as published by
25 ### the Free Software Foundation; either version 2, or (at your
26 ### option) any later version.
28 ### XEmacs is distributed in the hope that it will be useful, but
29 ### WITHOUT ANY WARRANTY; without even the implied warranty of
30 ### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
31 ### General Public License for more details.
33 ### You should have received a copy of the GNU General Public License
34 ### along with XEmacs; see the file COPYING. If not, write to the Free
35 ### Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
38 ### For usage, run `./configure --help'
39 ### For more detailed information on building and installing XEmacs,
40 ### read the file `INSTALL'.
42 ### If configure succeeds, it leaves its status in config.status.
43 ### A log of configuration tests can be found in config.log.
44 ### If configure fails after disturbing the status quo,
45 ### config.status is removed.
48 --with-x use the X Window System"
52 if test -n "$ZSH_VERSION"; then
53 setopt NO_BAD_PATTERN NO_BANG_HIST NO_BG_NICE NO_EQUALS NO_FUNCTION_ARGZERO
54 setopt GLOB_SUBST NO_HUP INTERACTIVE_COMMENTS KSH_ARRAYS NO_MULTIOS NO_NOMATCH
55 setopt RM_STAR_SILENT POSIX_BUILTINS SH_FILE_EXPANSION SH_GLOB SH_OPTION_LETTERS
56 setopt SH_WORD_SPLIT BSD_ECHO IGNORE_BRACES
57 if test -n "$CDPATH"; then CDPATH="."; export CDPATH; fi
58 elif test -n "$BASH_VERSION"; then
62 if test -n "$CDPATH"; then CDPATH="."; export CDPATH; fi
73 program_transform_name=s,x,x,
84 SHELL=${CONFIG_SHELL-/bin/sh}
87 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
89 # File descriptor usage:
92 # 2 errors and warnings
93 # 3 some systems may open it to /dev/tty
94 # 4 used on the Kubota Titan
95 # 6 checking for... messages and results
96 # 5 compiler messages saved in config.log
97 if test "$silent" = yes; then
105 This file contains any messages produced by compilers while
106 running configure, to aid debugging if configure makes a mistake.
109 # Strip out --no-create and --no-recursion so they do not pile up.
110 # Also quote any args containing shell metacharacters.
115 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
116 | --no-cr | --no-c) ;;
117 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
118 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
119 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
120 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
121 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
126 # Only set these to C if already set. These must not be set unconditionally
127 # because not all systems understand e.g. LANG=C (notably SCO).
128 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
129 # Non-C LC_CTYPE values break the ctype check.
130 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
131 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
132 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
133 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
135 # confdefs.h avoids OS command line length limits that DEFS can exceed.
136 rm -rf conftest* confdefs.h
137 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
140 # A filename unique to this package, relative to the directory that
141 # configure is in, which we can look for to find out if srcdir is correct.
142 ac_unique_file=src/lisp.h
144 # Find the source files, if location was not specified.
145 if test -z "$srcdir"; then
146 ac_srcdir_defaulted=yes
147 # Try the directory containing this script, then its parent.
149 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
150 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
152 if test ! -r $srcdir/$ac_unique_file; then
156 ac_srcdir_defaulted=no
158 if test ! -r $srcdir/$ac_unique_file; then
159 if test "$ac_srcdir_defaulted" = yes; then
160 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
162 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
165 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
167 # Prefer explicitly selected file to automatically selected ones.
168 if test -z "$CONFIG_SITE"; then
169 if test "x$prefix" != xNONE; then
170 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
172 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
175 for ac_site_file in $CONFIG_SITE; do
176 if test -r "$ac_site_file"; then
177 echo "loading site script $ac_site_file"
184 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
185 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
186 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
187 ac_cpp='$CPP '"$xe_cppflags"
188 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
189 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
194 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
195 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
196 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
203 ac_n= ac_c='\c' ac_t=
207 progname="`echo $0 | sed 's:^\./\./:\./:'`"
210 MAKE_SUBDIR="$MAKE_SUBDIR lib-src" && if test "$extra_verbose" = "yes"; then echo " Appending \"lib-src\" to \$MAKE_SUBDIR"; fi
211 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR lib-src" && if test "$extra_verbose" = "yes"; then echo " Appending \"lib-src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
214 exec_prefix='${prefix}'
215 bindir='${exec_prefix}/bin'
216 datadir='${prefix}/lib'
217 statedir='${prefix}/lib'
218 libdir='${exec_prefix}/lib'
219 mandir='${prefix}/man/man1'
220 inststaticdir='${PROGNAME}'
221 instvardir='${PROGNAME}-${version}'
222 infodir='${datadir}/${instvardir}/info'
225 lispdir='${datadir}/${instvardir}/lisp'
226 moduledir='${libdir}/${instvardir}/${configuration}/modules'
227 sitelispdir='${datadir}/${inststaticdir}/site-lisp'
228 sitemoduledir='${libdir}/${inststaticdir}/site-modules'
229 pkgdir='${datadir}/${instvardir}/lisp'
231 etcdir='${datadir}/${instvardir}/etc'
232 archlibdir='${libdir}/${instvardir}/${configuration}'
233 docdir='${archlibdir}'
237 with_site_modules='yes'
243 cpp='' cppflags='' libs='' ldflags=''
249 with_system_malloc='default'
250 with_dlmalloc='default'
269 quoted_sed_magic=s/"'"/"'"'"'"'"'"'"'"/g
273 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
274 | --no-cr | --no-c) ;;
275 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
276 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
278 quoted_i="`echo '' $i | sed -e 's:^ ::' -e $quoted_sed_magic`"
279 quoted_arguments="$quoted_arguments '$quoted_i'" ;;
283 while test $# != 0; do
286 --no-create|--no-recursion) ;;
290 opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\([^=]*\)=.*$:\1:'`
291 val=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*[^=]*=\(.*\)$:\1:'`
295 opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\(.*\)$:\1:'`
296 val="yes" valomitted=yes
301 opt="`echo '' $opt | sed -e 's:^ ::' | tr - _`"
303 case "${valomitted}-${opt}" in yes-without_* )
304 opt=`echo $opt | sed 's/without/with/'`
305 valomitted="no" val="no" ;;
312 with_site_modules | \
366 memory_usage_stats | \
367 with_clash_detection | \
371 y | ye | yes ) val=yes ;;
373 * ) (echo "$progname: Usage error:"
374 echo " " "The \`--$optname' option requires a boolean value: \`yes' or \`no'."
375 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
377 eval "$opt=\"$val\"" ;;
395 site_runtime_libraries )
396 if test "$valomitted" = "yes" ; then
397 if test "$#" = 0 ; then
398 (echo "$progname: Usage error:"
399 echo " " "The \`--$optname' option requires a value."
400 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
409 with_debug_malloc | use_debug_malloc | \
410 with_system_malloc | use_system_malloc )
412 y | ye | yes ) val=yes ;;
414 d | de | def | defa | defau | defaul | default ) val=default ;;
415 * ) (echo "$progname: Usage error:"
416 echo " " "The \`--$optname' option requires one of these values:
417 \`yes', \`no', or \`default'."
418 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
420 case "$opt" in use_* ) opt="`echo $opt | sed s/use/with/`" ;; esac
425 with_database_berkdb=no
427 with_database_gdbm=no
428 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
431 b | be | ber | berk | berkd | berkdb ) with_database_berkdb=yes ;;
432 d | db | dbm ) with_database_dbm=yes ;;
433 g | gn | gnu | gnud | gnudb | gnudbm | gdbm) with_database_gdbm=yes ;;
434 * ) (echo "$progname: Usage error:"
435 echo " " "The \`--$optname' option value
436 must be either \`no' or a comma-separated list
437 of one or more of \`berkdb' and either \`dbm' or \`gnudbm'."
438 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
441 if test "$with_database_dbm" = "yes" -a \
442 "$with_database_gdbm" = "yes"; then
443 (echo "$progname: Usage error:"
444 echo " " "Only one of \`dbm' and \`gnudbm' may be specified
445 with the \`--$optname' option."
446 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
451 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
453 n | no | non | none ) new_sdefault=no ;;
454 a | al | all | both ) new_sdefault=yes ;;
456 native ) with_native_sound=yes ;;
457 nonative ) with_native_sound=no ;;
459 nas ) with_nas_sound=yes ;;
460 nonas ) with_nas_sound=no ;;
462 esd ) with_esd_sound=yes ;;
463 noesd ) with_esd_sound=no ;;
465 * ) bogus_sound=yes ;;
467 if test "$bogus_sound" -o \
468 \( -n "$new_sdefault" -a -n "$sound_notfirst" \) ; then
469 types="\`all', \`none', \`(no)native', \`no(nas)', \`(no)esd'."
470 (echo "$progname: Usage error:"
471 echo " " "Valid types for the \`--$optname' option are:
473 Option \`all' or \`none' must be first in the list.
474 The default is to autodetect native and NAS sound support."
475 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
476 elif test -n "$new_sdefault" ; then
477 with_native_sound=$new_sdefault
478 with_nas_sound=$new_sdefault
479 with_esd_sound=$new_sdefault
480 new_sdefault= # reset this
488 xa | xaw ) val=xaw ;;
489 3 | 3d | xaw3d ) val=3d ;;
490 ne | nex | next | naxtaw) val=next ;;
491 9 | 95 | xaw95 ) val=95 ;;
492 xp | xpm | xawxpm ) val=xpm ;;
493 * ) (echo "$progname: Usage error:"
494 echo " " "The \`--$optname' option must have one of these values:
495 \`xaw', \`3d', \`next', \`95', or \`xpm'."
496 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
503 y | ye | yes ) val=yes ;;
504 n | no | non | none ) val=no ;;
505 x | xl | xli | xlib ) val=xlib ;;
506 m | mo | mot | moti | motif ) val=motif ;;
507 * ) (echo "$progname: Usage error:"
508 echo " " "The \`--$optname' option must have one of these values:
509 \`motif', \`xlib', \`yes', or \`no'."
510 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
519 file | dot ) val=file ;;
520 locking ) val=locking ;;
521 * ) (echo "$progname: Usage error:"
522 echo " " "The \`--$optname' option must have one of these values:
523 \`lockf', \`flock', \`file', \`locking', or \`mmdf'."
524 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
531 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
533 n | no | non | none ) new_default=no ;;
534 a | al | all ) new_default=yes ;;
536 extents ) error_check_extents=yes ;;
537 noextents ) error_check_extents=no ;;
539 typecheck ) error_check_typecheck=yes ;;
540 notypecheck ) error_check_typecheck=no ;;
542 bufpos ) error_check_bufpos=yes ;;
543 nobufpos ) error_check_bufpos=no ;;
545 gc ) error_check_gc=yes ;;
546 nogc ) error_check_gc=no ;;
548 malloc ) error_check_malloc=yes ;;
549 nomalloc ) error_check_malloc=no ;;
551 byte_code ) error_check_byte_code=yes ;;
552 nobyte_code ) error_check_byte_code=no ;;
554 glyphs ) error_check_glyphs=yes ;;
555 noglyphs ) error_check_glyphs=no ;;
557 * ) bogus_error_check=yes ;;
559 if test "$bogus_error_check" -o \
560 \( -n "$new_default" -a -n "$echeck_notfirst" \) ; then
561 if test "$error_check_default" = yes ; then
562 types="\`all' (default), \`none', \`noextents', \`notypecheck', \`nobufpos', \`nogc', \`nomalloc', \`noglyphs' and \`nobyte-code'."
564 types="\`all', \`none' (default), \`extents', \`typecheck', \`bufpos', \`gc', \`malloc', \`glyphs' and \`byte-code'."
566 (echo "$progname: Usage error:"
567 echo " " "Valid types for the \`--$optname' option are:
569 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
570 elif test -n "$new_default" ; then
571 error_check_extents=$new_default
572 error_check_typecheck=$new_default
573 error_check_bufpos=$new_default
574 error_check_gc=$new_default
575 error_check_malloc=$new_default
576 error_check_byte_code=$new_default
577 error_check_glyphs=$new_default
578 new_default= # reset this
585 prefix | exec_prefix | bindir | datadir | statedir | libdir | \
586 mandir | infodir | infopath | lispdir | etcdir | pkgdir | \
587 archlibdir | docdir | package_path | moduledir )
588 if test "$valomitted" = "yes"; then
589 if test "$#" = 0; then
590 (echo "$progname: Usage error:"
591 echo " " "The \`--$optname' option requires a value."
592 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
599 exec_prefix ) { test "$extra_verbose" = "yes" && cat << \EOF
600 Defining EXEC_PREFIX_USER_DEFINED
602 cat >> confdefs.h <<\EOF
603 #define EXEC_PREFIX_USER_DEFINED 1
607 lispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
608 Defining LISPDIR_USER_DEFINED
610 cat >> confdefs.h <<\EOF
611 #define LISPDIR_USER_DEFINED 1
615 sitelispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
616 Defining SITELISPDIR_USER_DEFINED
618 cat >> confdefs.h <<\EOF
619 #define SITELISPDIR_USER_DEFINED 1
623 moduledir ) { test "$extra_verbose" = "yes" && cat << \EOF
624 Defining MODULEDIR_USER_DEFINED
626 cat >> confdefs.h <<\EOF
627 #define MODULEDIR_USER_DEFINED 1
631 etcdir ) { test "$extra_verbose" = "yes" && cat << \EOF
632 Defining ETCDIR_USER_DEFINED
634 cat >> confdefs.h <<\EOF
635 #define ETCDIR_USER_DEFINED 1
639 infodir ) { test "$extra_verbose" = "yes" && cat << \EOF
640 Defining INFODIR_USER_DEFINED
642 cat >> confdefs.h <<\EOF
643 #define INFODIR_USER_DEFINED 1
647 infopath ) { test "$extra_verbose" = "yes" && cat << \EOF
648 Defining INFOPATH_USER_DEFINED
650 cat >> confdefs.h <<\EOF
651 #define INFOPATH_USER_DEFINED 1
655 package_path ) { test "$extra_verbose" = "yes" && cat << \EOF
656 Defining PACKAGE_PATH_USER_DEFINED
658 cat >> confdefs.h <<\EOF
659 #define PACKAGE_PATH_USER_DEFINED 1
664 { test "$extra_verbose" = "yes" && cat << \EOF
665 Defining INFODIR_USER_DEFINED
667 cat >> confdefs.h <<\EOF
668 #define INFODIR_USER_DEFINED 1
672 { test "$extra_verbose" = "yes" && cat << \EOF
673 Defining LISPDIR_USER_DEFINED
675 cat >> confdefs.h <<\EOF
676 #define LISPDIR_USER_DEFINED 1
680 { test "$extra_verbose" = "yes" && cat << \EOF
681 Defining MODULEDIR_USER_DEFINED
683 cat >> confdefs.h <<\EOF
684 #define MODULEDIR_USER_DEFINED 1
688 { test "$extra_verbose" = "yes" && cat << \EOF
689 Defining ETCDIR_USER_DEFINED
691 cat >> confdefs.h <<\EOF
692 #define ETCDIR_USER_DEFINED 1
696 { test "$extra_verbose" = "yes" && cat << \EOF
697 Defining DOCDIR_USER_DEFINED
699 cat >> confdefs.h <<\EOF
700 #define DOCDIR_USER_DEFINED 1
704 { test "$extra_verbose" = "yes" && cat << \EOF
705 Defining ARCHLIBDIR_USER_DEFINED
707 cat >> confdefs.h <<\EOF
708 #define ARCHLIBDIR_USER_DEFINED 1
712 docdir ) { test "$extra_verbose" = "yes" && cat << \EOF
713 Defining DOCDIR_USER_DEFINED
715 cat >> confdefs.h <<\EOF
716 #define DOCDIR_USER_DEFINED 1
720 exec_prefix | libdir | archlibdir ) { test "$extra_verbose" = "yes" && cat << \EOF
721 Defining ARCHLIBDIR_USER_DEFINED
723 cat >> confdefs.h <<\EOF
724 #define ARCHLIBDIR_USER_DEFINED 1
733 "usage" | "help" ) ${PAGER-more} ${srcdir}/configure.usage; exit 0 ;;
736 "with_scrollbars" | \
740 l | lu | luc | luci | lucid ) val=lucid ;;
741 mo | mot | moti | motif ) val=motif ;;
742 a | at | ath | athe | athen | athena ) val=athena ;;
743 n | no | non | none ) val=no ;;
744 y | ye | yes ) val=yes ;;
746 g | gt | gtk ) val=gtk ;;
747 ms | msw ) val=msw ;;
748 * ) (echo "$progname: Usage error:"
749 echo " " "The \`--$optname' option must have one of these values:
750 \`gtk', \`lucid', \`motif', \`athena', \`yes', or \`no'."
751 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
756 "use_minimal_tagbits" | \
757 "use_indexed_lrecord_implementation" | \
759 "const_is_losing" | \
761 echo "configure: warning: Obsolete option \`--$optname' ignored." 1>&2
764 * ) (echo "$progname: Usage error:"
765 echo " " "Unrecognized option: $arg"
766 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
771 *-*-*) configuration="$arg" ;;
773 *) (echo "$progname: Usage error:"
774 echo " " "Unrecognized argument: $arg"
775 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
781 test -n "$cpp" && CPP="$cpp"
782 test -n "$cppflags" && CPPFLAGS="$cppflags"
783 test -n "$libs" && LIBS="$libs"
784 test -n "$ldflags" && LDFLAGS="$ldflags"
786 eval set x "$quoted_arguments"; shift
788 test "$extra_verbose" = "yes" && verbose=yes
790 test -n "$with_x" && with_x11="$with_x"
792 if test "$with_purify" = "yes" -o "$with_quantify" = "yes"; then
793 test "$with_system_malloc" = "default" && with_system_malloc=yes
798 if test "$with_cde $with_tooltalk" = "yes no"; then
799 (echo "$progname: Usage error:"
800 echo " " "--with-cde requires --with-tooltalk"
801 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
802 elif test "$with_tooltalk" = "no" ; then with_cde=no
803 elif test "$with_cde" = "yes"; then with_tooltalk=yes
810 for dir in "`echo $0 | sed 's|//|/|' | sed 's|/[^/]*$||'`" "." ".." ; do
811 if test -f "$dir/src/lisp.h" -a \
812 -f "$dir/lisp/version.el" ; then
817 if test -z "$srcdir" ; then
818 (echo "$progname: Usage error:"
819 echo " " "Neither the current directory nor its parent seem to
820 contain the XEmacs sources. If you do not want to build XEmacs in its
821 source tree, you should run \`$progname' in the directory in which
822 you wish to build XEmacs, using the \`--srcdir' option to say where the
823 sources may be found."
824 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
829 if test ! -f "$srcdir/src/lisp.h" -o \
830 ! -f "$srcdir/lisp/version.el" ; then
831 (echo "$progname: Usage error:"
832 echo " " "The directory specified with the \`--srcdir' option,
833 \`$srcdir', doesn't seem to contain the XEmacs sources. You should
834 either run the \`$progname' script at the top of the XEmacs source
835 tree, or use the \`--srcdir' option to specify the XEmacs source directory."
836 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
841 if test -z "$configuration"; then
842 configuration=`${CONFIG_SHELL-/bin/sh} $srcdir/config.guess`
843 if test -z "$configuration"; then
844 (echo "$progname: Usage error:"
845 echo " " "XEmacs has not been ported to this host type.
846 Try explicitly specifying the CONFIGURATION when rerunning configure."
847 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
851 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
852 echo "configure:853: checking whether ln -s works" >&5
855 if ln -s X conftestdata 2>/dev/null
858 ac_cv_prog_LN_S="ln -s"
862 LN_S="$ac_cv_prog_LN_S"
863 if test "$ac_cv_prog_LN_S" = "ln -s"; then
864 echo "$ac_t""yes" 1>&6
866 echo "$ac_t""no" 1>&6
870 for dir in lisp etc man info tests; do
871 if test ! -d "$dir" ; then
872 echo Making symbolic link to "$srcdir/$dir"
873 ${LN_S} "$srcdir/$dir" "$dir"
878 absolute_pwd="`pwd`";
879 if test -n "$PWD" -a "`cd $PWD && pwd`" = "$absolute_pwd"
881 else blddir="$absolute_pwd"; if test -d "/net"; then
882 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi
883 blddir=`echo "$blddir" | \
884 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
891 . ) srcdir="$blddir" ;;
892 * ) srcdir="`cd $srcdir && pwd`"; if test -d "/net"; then
893 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi
894 srcdir=`echo "$srcdir" | \
895 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
899 if test `pwd` != `sh -c cd $srcdir && pwd` \
900 && test -f "$srcdir/src/config.h"; then
901 (echo "$progname: WARNING: The directory tree \`$srcdir' is being used"
902 echo " as a build directory right now; it has been configured in its own"
903 echo " right. To configure in another directory as well, you MUST"
904 echo " use GNU make. If you do not have GNU make, then you must"
905 echo " now do \`make distclean' in $srcdir,"
906 echo " and then run $progname again.") >&2
907 extrasub='/^VPATH[ ]*=/c\
913 vpath %.in $(srcdir)'
916 . "$srcdir/version.sh" || exit 1;
917 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
918 : "${extra_verbose=$beta}"
919 version="${emacs_major_version}.${emacs_minor_version}"
920 { test "$extra_verbose" = "yes" && cat << EOF
921 Defining EMACS_MAJOR_VERSION = $emacs_major_version
923 cat >> confdefs.h <<EOF
924 #define EMACS_MAJOR_VERSION $emacs_major_version
928 { test "$extra_verbose" = "yes" && cat << EOF
929 Defining EMACS_MINOR_VERSION = $emacs_minor_version
931 cat >> confdefs.h <<EOF
932 #define EMACS_MINOR_VERSION $emacs_minor_version
936 if test -n "$emacs_beta_version" ; then
937 if test "$beta" = "yes"; then
938 version="${version}-b${emacs_beta_version}"
939 { test "$extra_verbose" = "yes" && cat << EOF
940 Defining EMACS_BETA_VERSION = $emacs_beta_version
942 cat >> confdefs.h <<EOF
943 #define EMACS_BETA_VERSION $emacs_beta_version
948 version="${version}.${emacs_beta_version}"
949 { test "$extra_verbose" = "yes" && cat << EOF
950 Defining EMACS_PATCH_LEVEL = $emacs_beta_version
952 cat >> confdefs.h <<EOF
953 #define EMACS_PATCH_LEVEL $emacs_beta_version
959 { test "$extra_verbose" = "yes" && cat << EOF
960 Defining XEMACS_CODENAME = "$xemacs_codename"
962 cat >> confdefs.h <<EOF
963 #define XEMACS_CODENAME "$xemacs_codename"
967 { test "$extra_verbose" = "yes" && cat << EOF
968 Defining EMACS_VERSION = "$version"
970 cat >> confdefs.h <<EOF
971 #define EMACS_VERSION "$version"
976 if test "$with_infodock" = "yes"; then
977 if test ! -f ../../ID-INSTALL; then
978 echo "Cannot build InfoDock without InfoDock sources"
983 if test "$with_infodock" = "yes"; then
984 { test "$extra_verbose" = "yes" && cat << EOF
985 Defining INFODOCK_MAJOR_VERSION = $infodock_major_version
987 cat >> confdefs.h <<EOF
988 #define INFODOCK_MAJOR_VERSION $infodock_major_version
992 { test "$extra_verbose" = "yes" && cat << EOF
993 Defining INFODOCK_MINOR_VERSION = $infodock_minor_version
995 cat >> confdefs.h <<EOF
996 #define INFODOCK_MINOR_VERSION $infodock_minor_version
1000 { test "$extra_verbose" = "yes" && cat << EOF
1001 Defining INFODOCK_BUILD_VERSION = $infodock_build_version
1003 cat >> confdefs.h <<EOF
1004 #define INFODOCK_BUILD_VERSION $infodock_build_version
1008 version=${infodock_major_version}.${infodock_minor_version}.${infodock_build_version}
1010 CPPFLAGS="$CPPFLAGS -DINFODOCK"
1015 { test "$extra_verbose" = "yes" && cat << EOF
1016 Defining EMACS_PROGNAME = "$PROGNAME"
1018 cat >> confdefs.h <<EOF
1019 #define EMACS_PROGNAME "$PROGNAME"
1024 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
1025 test "${error_check_extents=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1026 Defining ERROR_CHECK_EXTENTS
1028 cat >> confdefs.h <<\EOF
1029 #define ERROR_CHECK_EXTENTS 1
1033 test "${error_check_typecheck=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1034 Defining ERROR_CHECK_TYPECHECK
1036 cat >> confdefs.h <<\EOF
1037 #define ERROR_CHECK_TYPECHECK 1
1041 test "${error_check_bufpos=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1042 Defining ERROR_CHECK_BUFPOS
1044 cat >> confdefs.h <<\EOF
1045 #define ERROR_CHECK_BUFPOS 1
1049 test "${error_check_gc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1050 Defining ERROR_CHECK_GC
1052 cat >> confdefs.h <<\EOF
1053 #define ERROR_CHECK_GC 1
1057 test "${error_check_malloc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1058 Defining ERROR_CHECK_MALLOC
1060 cat >> confdefs.h <<\EOF
1061 #define ERROR_CHECK_MALLOC 1
1065 test "${error_check_byte_code=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1066 Defining ERROR_CHECK_BYTE_CODE
1068 cat >> confdefs.h <<\EOF
1069 #define ERROR_CHECK_BYTE_CODE 1
1073 test "${error_check_glyphs=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1074 Defining ERROR_CHECK_GLYPHS
1076 cat >> confdefs.h <<\EOF
1077 #define ERROR_CHECK_GLYPHS 1
1081 if test "${debug:=$beta}" = "yes"; then
1082 use_assertions=yes memory_usage_stats=yes
1083 extra_objs="$extra_objs debug.o" && if test "$extra_verbose" = "yes"; then
1084 echo " xemacs will be linked with \"debug.o\""
1086 extra_objs="$extra_objs tests.o" && if test "$extra_verbose" = "yes"; then
1087 echo " xemacs will be linked with \"tests.o\""
1089 { test "$extra_verbose" = "yes" && cat << \EOF
1090 Defining DEBUG_XEMACS
1092 cat >> confdefs.h <<\EOF
1093 #define DEBUG_XEMACS 1
1098 test "$use_assertions" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
1099 Defining USE_ASSERTIONS
1101 cat >> confdefs.h <<\EOF
1102 #define USE_ASSERTIONS 1
1106 test "$memory_usage_stats" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
1107 Defining MEMORY_USAGE_STATS
1109 cat >> confdefs.h <<\EOF
1110 #define MEMORY_USAGE_STATS 1
1116 echo $ac_n "checking "host system type"""... $ac_c" 1>&6
1117 echo "configure:1118: checking "host system type"" >&5
1118 internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'`
1119 canonical=`${CONFIG_SHELL-/bin/sh} $srcdir/config.sub "$internal_configuration"`
1120 configuration=`echo "$configuration" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
1121 canonical=`echo "$canonical" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
1122 echo "$ac_t""$configuration" 1>&6
1130 case "$canonical" in
1131 sparc-*-* ) machine=sparc ;;
1132 alpha*-*-* ) machine=alpha ;;
1133 vax-*-* ) machine=vax ;;
1134 mips-dec-* ) machine=pmax ;;
1135 mips-sgi-irix6* ) machine=iris6d ;;
1136 mips-sgi-* ) machine=iris4d ;;
1137 mips*-linux ) machine=mips ;;
1138 romp-ibm-* ) machine=ibmrt ;;
1139 rs6000-ibm-aix* ) machine=ibmrs6000 ;;
1140 powerpc-ibm-aix* ) machine=ibmrs6000 ;;
1141 powerpc*-* ) machine=powerpc ;;
1142 hppa-*-* ) machine=hp800 ;;
1143 m88k-dg-* ) machine=aviion ;;
1144 m68*-sony-* ) machine=news ;;
1145 mips-sony-* ) machine=news-risc ;;
1146 clipper-* ) machine=clipper ;;
1147 arm* ) machine=arm ;;
1148 ns32k-* ) machine=ns32000 ;;
1151 case "$canonical" in
1152 *-*-linux* ) opsys=linux ;;
1153 *-*-netbsd* ) opsys=netbsd ;;
1154 *-*-openbsd* ) opsys=openbsd ;;
1155 *-*-nextstep* ) opsys=nextstep ;;
1156 *-*-vms ) opsys=vms ;;
1158 *-dec-osf1.3 | *-dec-osf2* ) opsys=decosf1-3 ;;
1159 *-dec-osf1.2 | *-dec-osf1* ) opsys=decosf1-2 ;;
1160 *-dec-osf3.[2-9] ) opsys=decosf3-2 ;;
1161 *-dec-osf3* ) opsys=decosf3-1 ;;
1162 *-dec-osf[4-9]* ) opsys=decosf4-0 ;;
1164 *-*-ultrix[0-3].* | *-*-ultrix4.0* ) opsys=bsd4-2 ;;
1165 *-*-ultrix4.[12]* ) opsys=bsd4-3 ;;
1166 *-*-ultrix* ) opsys=ultrix4-3 ;;
1168 *-*-aix3.1* ) opsys=aix3-1 ;;
1169 *-*-aix3.2.5 ) opsys=aix3-2-5 ;;
1170 *-*-aix3* ) opsys=aix3-2 ;;
1171 *-*-aix4.0* ) opsys=aix4 ;;
1172 *-*-aix4.1* ) opsys=aix4-1 ;;
1173 *-*-aix4* ) opsys=aix4-2 ;;
1175 *-gnu* ) opsys=gnu ;;
1176 *-*-bsd4.[01] ) opsys=bsd4-1 ;;
1177 *-*-bsd4.2 ) opsys=bsd4-2 ;;
1178 *-*-bsd4.3 ) opsys=bsd4-3 ;;
1179 *-*-aos4.2 ) opsys=bsd4-2 ;;
1180 *-*-aos* ) opsys=bsd4-3 ;;
1181 *-*-sysv0 | *-*-sysvr0 ) opsys=usg5-0 ;;
1182 *-*-sysv2 | *-*-sysvr2 ) opsys=usg5-2 ;;
1183 *-*-sysv2.2 | *-*-sysvr2.2 ) opsys=usg5-2-2 ;;
1184 *-*-sysv3* | *-*-sysvr3* ) opsys=usg5-3 ;;
1185 *-*-sysv4.1* | *-*-sysvr4.1* )opsys=usg5-4 NON_GNU_CPP=/usr/lib/cpp ;;
1186 *-*-sysv4.[2-9]* | *-sysvr4.[2-9]* )
1187 if test -z "$NON_GNU_CPP" ; then
1188 for prog in "/usr/ccs/lib/cpp" "/lib/cpp"; do
1189 if test -f "$prog"; then NON_GNU_CPP="$prog"; break; fi
1193 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
1194 *-*-mach_bsd4.3* ) opsys=mach-bsd4-3 ;;
1197 case "$canonical" in
1200 case "$canonical" in
1201 i[3-9]86-*-netbsd*) machine=intel386 ;;
1202 hp300-*-netbsd* | amiga-*-netbsd* | sun3-*-netbsd* | mac68k-*-netbsd* | da30-*-netbsd* | m68k-*-netbsd* )
1203 machine=hp9000s300 ;;
1204 pc532-*-netbsd* | ns32k-*-netbsd* ) machine=ns32000 ;;
1205 pmax-*-netbsd* | mips-*-netbsd* ) machine=pmax ;;
1210 case "${canonical}" in
1211 i386-*-openbsd*) machine=intel386 ;;
1212 m68k-*-openbsd*) machine=hp9000s300 ;;
1213 mipsel-*-openbsd*) machine=pmax ;;
1217 arm-acorn-riscix1.1* ) machine=acorn opsys=riscix1-1 ;;
1218 arm-acorn-riscix1.2* | arm-acorn-riscix ) machine=acorn opsys=riscix1-2 ;;
1220 fx80-alliant-* ) machine=alliant4 opsys=bsd4-2 ;;
1221 i860-alliant-* ) machine=alliant-2800 opsys=bsd4-3 ;;
1223 m68*-altos-sysv* ) machine=altos opsys=usg5-2 ;;
1225 580-amdahl-sysv* ) machine=amdahl opsys=usg5-2-2 ;;
1227 m68*-apollo-* ) machine=apollo opsys=bsd4-3 ;;
1229 we32k-att-sysv* ) machine=att3b opsys=usg5-2-2 ;;
1231 m68*-att-sysv* ) machine=7300 opsys=usg5-2-2 ;;
1233 rs6000-bull-bosx* ) machine=ibmrs6000 opsys=aix3-2 ;; # dpx20
1234 m68*-bull-sysv3* ) machine=dpx2 opsys=usg5-3 ;; # dpx2
1235 m68*-bull-sysv2* ) machine=sps7 opsys=usg5-2 ;; # sps7
1238 celerity-celerity-bsd* ) machine=celerity opsys=bsd4-2 ;;
1240 *-convex-bsd* | *-convex-convexos* )
1241 machine=convex opsys=bsd4-3
1242 NON_GNU_CPP="cc -E -P"
1245 i[3-9]86-cubix-sysv* ) machine=intel386 opsys=usg5-3 ;;
1249 RANLIB="ranlib -c" pdump=yes ;;
1251 i586-dg-dgux*R4* | i586-dg-dgux5.4.4* ) machine=aviion opsys=dgux5-4r4 ;;
1252 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) opsys=dgux5-4r3 ;;
1253 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) opsys=dgux5-4r2 ;;
1254 m88k-dg-dgux* ) opsys=dgux ;;
1256 m68k-motorola-sysv* | m68000-motorola-sysv* ) machine=delta opsys=usg5-3 ;;
1257 m88k-motorola-sysv4* )
1258 machine=delta88k opsys=usg5-4-2
1260 m88k-motorola-sysv* | m88k-motorola-m88kbcs* ) machine=delta88k opsys=usg5-3 ;;
1262 m68*-dual-sysv* ) machine=dual opsys=usg5-2 ;;
1263 m68*-dual-uniplus* ) machine=dual opsys=unipl5-2 ;;
1265 ns16k-encore-bsd* ) machine=ns16000 opsys=umax ;;
1267 pn-gould-bsd4.2* ) machine=gould opsys=bsd4-2 ;;
1268 pn-gould-bsd4.3* ) machine=gould opsys=bsd4-3 ;;
1269 np1-gould-bsd* ) machine=gould-np1 opsys=bsd4-3 ;;
1272 case "`uname -r`" in
1273 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
1274 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
1276 NON_GNU_CPP="/lib/cpp"
1278 m68k-harris-cxux* ) machine=nh3000 opsys=cxux ;;
1279 powerpc-harris-powerunix ) machine=nh6000 opsys=powerunix NON_GNU_CPP="cc -Xo -E -P" ;;
1281 xps*-honeywell-sysv* ) machine=xps100 opsys=usg5-2 ;;
1283 m68*-hp-bsd* ) machine=hp9000s300 opsys=bsd4-3 ;;
1286 case "$canonical" in
1287 m68* ) machine=hp9000s300 ;;
1288 hppa* ) machine=hp800 ;;
1291 case "$canonical" in
1292 *-hp-hpux7* ) opsys=hpux ;;
1293 *-hp-hpux8* ) opsys=hpux8 ;;
1294 *-hp-hpux9* ) opsys=hpux9 ;;
1295 *-hp-hpux10* ) opsys=hpux10 ;;
1296 *-hp-hpux11* ) opsys=hpux11 ;;
1300 case "$opsys" in hpux9 | hpux10 ) extra_objs="$extra_objs strcat.o" && if test "$extra_verbose" = "yes"; then
1301 echo " xemacs will be linked with \"strcat.o\""
1304 if test "$opsys" = "hpux10" -o "$opsys" = "hpux11"; then \
1305 ansi_flag="-Ae"; else ansi_flag="-Aa"; fi
1306 NON_GNU_CC="cc $ansi_flag" NON_GNU_CPP="cc $ansi_flag -E"
1308 case "$canonical" in *-hp-hpux*shr* ) opsys="${opsys}-shr" ;; esac
1311 orion-orion-bsd* ) machine=orion opsys=bsd4-2 ;;
1312 clipper-orion-bsd* ) machine=orion105 opsys=bsd4-2 ;;
1314 i[3-9]86-ibm-aix1.1* ) machine=ibmps2-aix opsys=usg5-2-2 ;;
1315 i[3-9]86-ibm-aix1.[23]* | i[3-9]86-ibm-aix* ) machine=ibmps2-aix opsys=usg5-3 ;;
1316 i370-ibm-aix*) machine=ibm370aix opsys=usg5-3 ;;
1317 romp-ibm-aos* ) opsys=bsd4-3 ;;
1318 romp-ibm-bsd* ) opsys=bsd4-3 ;;
1319 romp-ibm-mach* ) opsys=mach-bsd4-3 ;;
1321 m68*-isi-bsd4.2* ) machine=isi-ov opsys=bsd4-2 ;;
1322 m68*-isi-bsd4.3* ) machine=isi-ov opsys=bsd4-3 ;;
1324 i[3-9]86-intsys-sysv* ) machine=is386 opsys=usg5-2-2 ;;
1326 i[3-9]86-prime-sysv* ) machine=i386 opsys=usg5-3 ;;
1328 i[3-9]86-sequent-bsd* ) machine=symmetry opsys=bsd4-3 ;;
1330 i[3-9]86-sequent-ptx* ) machine=sequent-ptx opsys=ptx NON_GNU_CPP="/lib/cpp" ;;
1332 i[3-9]86-ncr-sysv* ) machine=ncr386 opsys=usg5-4-2 ;;
1334 i860-intel-osf1* ) machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp ;;
1336 i860-*-sysv4* ) machine=i860 opsys=usg5-4 NON_GNU_CC="/bin/cc" NON_GNU_CPP="/usr/ccs/lib/cpp" ;;
1338 m68*-masscomp-rtu* ) machine=masscomp opsys=rtu ;;
1340 m68*-megatest-bsd* ) machine=mega68 opsys=bsd4-2 ;;
1342 mips-mips-usg* ) machine=mips4 ;;
1345 NON_GNU_CC="cc -systype bsd43"
1346 NON_GNU_CPP="cc -systype bsd43 -E"
1347 case "$canonical" in
1348 mips-mips-riscos4* ) opsys=bsd4-3 ;;
1349 mips-mips-riscos5* ) opsys=riscos5 ;;
1352 mips-mips-bsd* ) machine=mips opsys=bsd4-3 ;;
1353 mips-mips-* ) machine=mips opsys=usg5-2-2 ;;
1355 m68*-next-* | m68k-*-nextstep* ) machine=m68k opsys=nextstep ;;
1357 ns32k-ns-genix* ) machine=ns32000 opsys=usg5-2 ;;
1359 m68*-ncr-sysv2* | m68*-ncr-sysvr2* ) machine=tower32 opsys=usg5-2-2 ;;
1360 m68*-ncr-sysv3* | m68*-ncr-sysvr3* ) machine=tower32v3 opsys=usg5-3 ;;
1362 m68*-nixdorf-sysv* ) machine=targon31 opsys=usg5-2-2 ;;
1364 m68*-nu-sysv* ) machine=nu opsys=usg5-2 ;;
1366 m68*-plexus-sysv* ) machine=plexus opsys=usg5-2 ;;
1368 pyramid-pyramid-bsd* ) machine=pyramid opsys=bsd4-2 ;;
1370 ns32k-sequent-bsd4.2* ) machine=sequent opsys=bsd4-2 ;;
1371 ns32k-sequent-bsd4.3* ) machine=sequent opsys=bsd4-3 ;;
1373 mips-siemens-sysv* | mips-sni-sysv*)
1374 machine=mips-siemens opsys=usg5-4
1375 NON_GNU_CC=/usr/ccs/bin/cc
1376 NON_GNU_CPP=/usr/ccs/lib/cpp
1381 NON_GNU_CC=/usr/ccs/bin/cc
1382 NON_GNU_CPP=/usr/ccs/lib/cpp
1385 m68*-sgi-iris3.5* ) machine=irist opsys=iris3-5 ;;
1386 m68*-sgi-iris3.6* | m68*-sgi-iris*) machine=irist opsys=iris3-6 ;;
1387 mips-sgi-irix3.* ) opsys=irix3-3 ;;
1388 mips-sgi-irix4.* ) opsys=irix4-0 ;;
1389 mips-sgi-irix6* ) opsys=irix6-0 ;;
1390 mips-sgi-irix5.1* ) opsys=irix5-1 ;;
1391 mips-sgi-irix5.2* ) opsys=irix5-2 ;;
1392 mips-sgi-irix5.* ) opsys=irix5-3 ;;
1393 mips-sgi-irix* ) opsys=irix5-0 ;;
1395 *-sony-newsos[34]* | *-sony-news[34]* ) opsys=bsd4-3 ;;
1396 *-sony-news* ) opsys=newsos5 ;;
1398 m68*-stride-sysv* ) machine=stride opsys=usg5-2 ;;
1400 *-*-solaris* | *-*-sunos* | *-sun-mach* | *-sun-bsd* )
1401 case "$canonical" in
1402 m68*-sunos1* ) machine=sun1 ;;
1403 m68*-sunos2* ) machine=sun2 ;;
1404 m68* ) machine=sun3 ;;
1405 i*86*-sun-sunos[34]* ) machine=sun386 ;;
1406 i*86-*-* ) machine=intel386 ;;
1407 rs6000* ) machine=rs6000 ;;
1410 case "$canonical" in *-sunos5*)
1411 canonical=`echo $canonical | sed -e s/sunos5/solaris2/`;;
1414 case "$canonical" in
1416 #test -f /usr/lib/cpp && NON_GNU_CPP=/usr/lib/cpp ;;
1419 #test -f /usr/ccs/lib/cpp && NON_GNU_CPP=/usr/ccs/lib/cpp
1423 case "$canonical" in
1426 os_release=`uname -r | sed -e 's/^\([0-9]\)\.\([0-9]\).*/\1\2/'`
1427 { test "$extra_verbose" = "yes" && cat << EOF
1428 Defining OS_RELEASE = $os_release
1430 cat >> confdefs.h <<EOF
1431 #define OS_RELEASE $os_release
1436 i*86-*-sunos4* ) opsys=sunos4-0 ;;
1437 *-sunos4.0* ) opsys=sunos4-0 ;;
1438 *-sunos4.1.2* ) opsys=sunos4-1-2 ;;
1439 *-sunos4.1.3* ) opsys=sunos4-1-3 ;;
1440 *-sunos4.1.[4-9]* ) opsys=sunos4-1-4 ;;
1441 *-sunos4* | *-sunos ) opsys=sunos4-1 ;;
1442 *-mach* ) opsys=mach-bsd4-3 ;;
1446 case "$canonical" in *-sunos4*shr* ) opsys="${opsys}-shr" ;; esac
1448 test "$opsys $CC" = "sol2 /usr/ucb/cc" && CC=""
1451 m68*-tadpole-sysv* ) machine=tad68k opsys=usg5-3 ;;
1453 tahoe-tahoe-bsd4.2* ) machine=tahoe opsys=bsd4-2 ;;
1454 tahoe-tahoe-bsd4.3* ) machine=tahoe opsys=bsd4-3 ;;
1456 mips-tandem-sysv* ) machine=tandem-s2 opsys=usg5-3 ;;
1458 m88k-tektronix-sysv3* ) machine=tekxd88 opsys=usg5-3 ;;
1460 ns16k-tektronix-bsd* ) machine=ns16000 opsys=bsd4-2 ;;
1461 m68*-tektronix-bsd* ) machine=tek4300 opsys=bsd4-3 ;;
1463 titan-titan-sysv* ) machine=titan opsys=usg5-3 ;;
1465 m68*-unisys-uniplus* ) machine=ustation opsystem=unipl5-2 ;;
1468 case "$canonical" in
1469 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
1470 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
1471 *-mach* ) opsys=mach-bsd4-3 ;;
1475 ns16k-whitechapel-* ) machine=mg1 ;;
1477 m68*-wicat-sysv* ) machine=wicat opsys=usg5-2 ;;
1481 case "$canonical" in
1482 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
1483 *-isc2.2* ) opsys=isc2-2 ;;
1484 *-isc4.0* ) opsys=isc4-0 ;;
1485 *-isc4.* ) opsys=isc4-1
1486 GCC_TEST_OPTIONS=-posix
1487 NON_GCC_TEST_OPTIONS=-Xp
1489 *-isc* ) opsys=isc3-0 ;;
1490 *-esix5* ) opsys=esix5r4 NON_GNU_CPP=/usr/lib/cpp ;;
1491 *-esix* ) opsys=esix ;;
1492 *-mach* ) opsys=mach-bsd4-3 ;;
1493 *-xenix* ) opsys=xenix ;;
1494 *-sco3.2v4* ) opsys=sco4 NON_GNU_CPP=/lib/cpp ;;
1495 *-bsd386* | *-bsdi1* ) opsys=bsd386 ;;
1496 *-bsdi4* ) opsys=bsdos4 ;;
1497 *-bsdi3* ) opsys=bsdos3 ;;
1498 *-bsdi2.1* ) opsys=bsdos2-1 ;;
1499 *-bsdi2* ) opsys=bsdos2 ;;
1500 *-sco3.2v5* ) opsys=sco5 ;;
1501 *-sysv5* ) opsys=sco7 ;;
1502 *-386bsd* ) opsys=386bsd ;;
1503 *-freebsd* ) opsys=freebsd ;;
1504 *-nextstep* ) opsys=nextstep ;;
1505 *-pc-cygwin* ) opsys=cygwin32 ;;
1506 *-pc-mingw* ) opsys=mingw32 ;
1507 test -z "$with_tty" && with_tty="no";;
1511 m68k-*-linux* ) machine=m68k opsys=linux ;;
1515 test -z "$machine" && machine=`echo $canonical | sed 's/-.*$//'`
1517 test -z "$opsys" && opsys=`uname -s | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
1519 if test -r "${srcdir}/src/m/${machine}.h"; then
1520 machfile="m/${machine}.h"
1521 { test "$extra_verbose" = "yes" && cat << EOF
1522 Defining config_machfile = "$machfile"
1524 cat >> confdefs.h <<EOF
1525 #define config_machfile "$machfile"
1530 echo "XEmacs has no builtin knowledge of \`$machine' machines."
1531 echo "Using configure-time autodetection only."
1534 if test -r "${srcdir}/src/s/${opsys}.h"; then
1535 opsysfile="s/${opsys}.h"
1536 { test "$extra_verbose" = "yes" && cat << EOF
1537 Defining config_opsysfile = "$opsysfile"
1539 cat >> confdefs.h <<EOF
1540 #define config_opsysfile "$opsysfile"
1545 echo "XEmacs has no builtin knowledge of \`$opsys' operating systems."
1546 echo "Using configure-time autodetection only."
1550 if test -z "$dynamic"; then
1552 hpux* | sunos4* ) dynamic=no ;;
1556 if test "$dynamic" = "yes"; then
1558 hpux* | sunos4* | sco5 ) opsys="${opsys}-shr" ;;
1559 decosf* ) ld_call_shared="-call_shared" ;;
1561 else case "$opsys" in
1563 echo "Static linking is not supported on Solaris 2."
1564 echo "Rerun configure without specifying --dynamic=no."
1566 linux ) ld_call_shared="-Bstatic" ;;
1567 decosf* ) ld_call_shared="-non_shared" ;;
1571 case "$opsys" in aix*) NON_GNU_CC=xlc ;; esac
1573 stack_trace_eye_catcher=`echo ${PROGNAME}_${version}_${canonical} | sed 'y/.-/__/'`
1574 { test "$extra_verbose" = "yes" && cat << EOF
1575 Defining STACK_TRACE_EYE_CATCHER = $stack_trace_eye_catcher
1577 cat >> confdefs.h <<EOF
1578 #define STACK_TRACE_EYE_CATCHER $stack_trace_eye_catcher
1584 test "$with_sparcworks" = "yes" && with_workshop=yes # compatibility alias
1585 if test "$with_workshop $with_tooltalk" = "yes no"; then
1586 (echo "$progname: Usage error:"
1587 echo " " "--with-workshop requires --with-tooltalk"
1588 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
1589 elif test "$with_tooltalk" = "no" ; then with_workshop=no
1590 elif test "$with_workshop" = "yes"; then with_tooltalk=yes
1593 if test "$with_workshop" = "yes"; then
1594 { test "$extra_verbose" = "yes" && cat << \EOF
1597 cat >> confdefs.h <<\EOF
1602 extra_objs="$extra_objs sunpro.o" && if test "$extra_verbose" = "yes"; then
1603 echo " xemacs will be linked with \"sunpro.o\""
1607 if test "$with_clash_detection" != "no"; then
1608 { test "$extra_verbose" = "yes" && cat << \EOF
1609 Defining CLASH_DETECTION
1611 cat >> confdefs.h <<\EOF
1612 #define CLASH_DETECTION 1
1616 extra_objs="$extra_objs filelock.o" && if test "$extra_verbose" = "yes"; then
1617 echo " xemacs will be linked with \"filelock.o\""
1621 test -n "$compiler" && CC="$compiler"
1622 if test "$with_gcc" = "no"; then case "$CC" in "" | *gcc* ) CC="${NON_GNU_CC-cc}" ;; esac
1625 test "${cflags-unset}" != unset && CFLAGS="$cflags"
1626 if test "${CFLAGS-unset}" != unset
1627 then cflags_specified=yes;
1628 else cflags_specified=no;
1631 xe_save_CFLAGS="$CFLAGS"
1633 # Extract the first word of "gcc", so it can be a program name with args.
1634 set dummy gcc; ac_word=$2
1635 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1636 echo "configure:1637: checking for $ac_word" >&5
1638 if test -n "$CC"; then
1639 ac_cv_prog_CC="$CC" # Let the user override the test.
1641 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1643 for ac_dir in $ac_dummy; do
1644 test -z "$ac_dir" && ac_dir=.
1645 if test -f $ac_dir/$ac_word; then
1653 if test -n "$CC"; then
1654 echo "$ac_t""$CC" 1>&6
1656 echo "$ac_t""no" 1>&6
1659 if test -z "$CC"; then
1660 # Extract the first word of "cc", so it can be a program name with args.
1661 set dummy cc; ac_word=$2
1662 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1663 echo "configure:1664: checking for $ac_word" >&5
1665 if test -n "$CC"; then
1666 ac_cv_prog_CC="$CC" # Let the user override the test.
1668 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1671 for ac_dir in $ac_dummy; do
1672 test -z "$ac_dir" && ac_dir=.
1673 if test -f $ac_dir/$ac_word; then
1674 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1675 ac_prog_rejected=yes
1683 if test $ac_prog_rejected = yes; then
1684 # We found a bogon in the path, so make sure we never use it.
1685 set dummy $ac_cv_prog_CC
1687 if test $# -gt 0; then
1688 # We chose a different compiler from the bogus one.
1689 # However, it has the same basename, so the bogon will be chosen
1690 # first if we set CC to just the basename; use the full file name.
1692 set dummy "$ac_dir/$ac_word" "$@"
1699 if test -n "$CC"; then
1700 echo "$ac_t""$CC" 1>&6
1702 echo "$ac_t""no" 1>&6
1705 if test -z "$CC"; then
1706 case "`uname -s`" in
1708 # Extract the first word of "cl", so it can be a program name with args.
1709 set dummy cl; ac_word=$2
1710 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1711 echo "configure:1712: checking for $ac_word" >&5
1713 if test -n "$CC"; then
1714 ac_cv_prog_CC="$CC" # Let the user override the test.
1716 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1718 for ac_dir in $ac_dummy; do
1719 test -z "$ac_dir" && ac_dir=.
1720 if test -f $ac_dir/$ac_word; then
1728 if test -n "$CC"; then
1729 echo "$ac_t""$CC" 1>&6
1731 echo "$ac_t""no" 1>&6
1736 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1739 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1740 echo "configure:1741: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1743 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1744 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1745 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1746 ac_cpp='$CPP '"$xe_cppflags"
1747 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1748 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1751 cat > conftest.$ac_ext << EOF
1753 #line 1754 "configure"
1754 #include "confdefs.h"
1758 if { (eval echo configure:1759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1759 ac_cv_prog_cc_works=yes
1760 # If we can't run a trivial program, we are probably using a cross compiler.
1761 if (./conftest; exit) 2>/dev/null; then
1762 ac_cv_prog_cc_cross=no
1764 ac_cv_prog_cc_cross=yes
1767 echo "configure: failed program was:" >&5
1768 cat conftest.$ac_ext >&5
1769 ac_cv_prog_cc_works=no
1773 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1774 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1775 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1776 ac_cpp='$CPP '"$xe_cppflags"
1777 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1778 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1781 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1782 if test $ac_cv_prog_cc_works = no; then
1783 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1785 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1786 echo "configure:1787: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1787 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1788 cross_compiling=$ac_cv_prog_cc_cross
1790 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1791 echo "configure:1792: checking whether we are using GNU C" >&5
1793 cat > conftest.c <<EOF
1798 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1799: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1804 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1806 if test $ac_cv_prog_gcc = yes; then
1812 ac_test_CFLAGS="${CFLAGS+set}"
1813 ac_save_CFLAGS="$CFLAGS"
1815 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1816 echo "configure:1817: checking whether ${CC-cc} accepts -g" >&5
1818 echo 'void f(){}' > conftest.c
1819 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1827 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1828 if test "$ac_test_CFLAGS" = set; then
1829 CFLAGS="$ac_save_CFLAGS"
1830 elif test $ac_cv_prog_cc_g = yes; then
1831 if test "$GCC" = yes; then
1837 if test "$GCC" = yes; then
1844 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then
1846 # Extract the first word of "gcc", so it can be a program name with args.
1847 set dummy gcc; ac_word=$2
1848 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1849 echo "configure:1850: checking for $ac_word" >&5
1851 if test -n "$CC"; then
1852 ac_cv_prog_CC="$CC" # Let the user override the test.
1854 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1856 for ac_dir in $ac_dummy; do
1857 test -z "$ac_dir" && ac_dir=.
1858 if test -f $ac_dir/$ac_word; then
1866 if test -n "$CC"; then
1867 echo "$ac_t""$CC" 1>&6
1869 echo "$ac_t""no" 1>&6
1872 if test -z "$CC"; then
1873 # Extract the first word of "cc", so it can be a program name with args.
1874 set dummy cc; ac_word=$2
1875 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1876 echo "configure:1877: checking for $ac_word" >&5
1878 if test -n "$CC"; then
1879 ac_cv_prog_CC="$CC" # Let the user override the test.
1881 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1884 for ac_dir in $ac_dummy; do
1885 test -z "$ac_dir" && ac_dir=.
1886 if test -f $ac_dir/$ac_word; then
1887 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1888 ac_prog_rejected=yes
1896 if test $ac_prog_rejected = yes; then
1897 # We found a bogon in the path, so make sure we never use it.
1898 set dummy $ac_cv_prog_CC
1900 if test $# -gt 0; then
1901 # We chose a different compiler from the bogus one.
1902 # However, it has the same basename, so the bogon will be chosen
1903 # first if we set CC to just the basename; use the full file name.
1905 set dummy "$ac_dir/$ac_word" "$@"
1912 if test -n "$CC"; then
1913 echo "$ac_t""$CC" 1>&6
1915 echo "$ac_t""no" 1>&6
1918 if test -z "$CC"; then
1919 case "`uname -s`" in
1921 # Extract the first word of "cl", so it can be a program name with args.
1922 set dummy cl; ac_word=$2
1923 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1924 echo "configure:1925: checking for $ac_word" >&5
1926 if test -n "$CC"; then
1927 ac_cv_prog_CC="$CC" # Let the user override the test.
1929 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1931 for ac_dir in $ac_dummy; do
1932 test -z "$ac_dir" && ac_dir=.
1933 if test -f $ac_dir/$ac_word; then
1941 if test -n "$CC"; then
1942 echo "$ac_t""$CC" 1>&6
1944 echo "$ac_t""no" 1>&6
1949 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1952 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1953 echo "configure:1954: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1956 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1957 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1958 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1959 ac_cpp='$CPP '"$xe_cppflags"
1960 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1961 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1964 cat > conftest.$ac_ext << EOF
1966 #line 1967 "configure"
1967 #include "confdefs.h"
1971 if { (eval echo configure:1972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1972 ac_cv_prog_cc_works=yes
1973 # If we can't run a trivial program, we are probably using a cross compiler.
1974 if (./conftest; exit) 2>/dev/null; then
1975 ac_cv_prog_cc_cross=no
1977 ac_cv_prog_cc_cross=yes
1980 echo "configure: failed program was:" >&5
1981 cat conftest.$ac_ext >&5
1982 ac_cv_prog_cc_works=no
1986 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1987 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1988 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1989 ac_cpp='$CPP '"$xe_cppflags"
1990 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1991 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1994 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1995 if test $ac_cv_prog_cc_works = no; then
1996 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1998 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1999 echo "configure:2000: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2000 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2001 cross_compiling=$ac_cv_prog_cc_cross
2003 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2004 echo "configure:2005: checking whether we are using GNU C" >&5
2006 cat > conftest.c <<EOF
2011 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2012: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2017 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2019 if test $ac_cv_prog_gcc = yes; then
2025 ac_test_CFLAGS="${CFLAGS+set}"
2026 ac_save_CFLAGS="$CFLAGS"
2028 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2029 echo "configure:2030: checking whether ${CC-cc} accepts -g" >&5
2031 echo 'void f(){}' > conftest.c
2032 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2040 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2041 if test "$ac_test_CFLAGS" = set; then
2042 CFLAGS="$ac_save_CFLAGS"
2043 elif test $ac_cv_prog_cc_g = yes; then
2044 if test "$GCC" = yes; then
2050 if test "$GCC" = yes; then
2057 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then
2059 # Extract the first word of "gcc", so it can be a program name with args.
2060 set dummy gcc; ac_word=$2
2061 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2062 echo "configure:2063: checking for $ac_word" >&5
2064 if test -n "$CC"; then
2065 ac_cv_prog_CC="$CC" # Let the user override the test.
2067 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2069 for ac_dir in $ac_dummy; do
2070 test -z "$ac_dir" && ac_dir=.
2071 if test -f $ac_dir/$ac_word; then
2079 if test -n "$CC"; then
2080 echo "$ac_t""$CC" 1>&6
2082 echo "$ac_t""no" 1>&6
2085 if test -z "$CC"; then
2086 # Extract the first word of "cc", so it can be a program name with args.
2087 set dummy cc; ac_word=$2
2088 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2089 echo "configure:2090: checking for $ac_word" >&5
2091 if test -n "$CC"; then
2092 ac_cv_prog_CC="$CC" # Let the user override the test.
2094 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2097 for ac_dir in $ac_dummy; do
2098 test -z "$ac_dir" && ac_dir=.
2099 if test -f $ac_dir/$ac_word; then
2100 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2101 ac_prog_rejected=yes
2109 if test $ac_prog_rejected = yes; then
2110 # We found a bogon in the path, so make sure we never use it.
2111 set dummy $ac_cv_prog_CC
2113 if test $# -gt 0; then
2114 # We chose a different compiler from the bogus one.
2115 # However, it has the same basename, so the bogon will be chosen
2116 # first if we set CC to just the basename; use the full file name.
2118 set dummy "$ac_dir/$ac_word" "$@"
2125 if test -n "$CC"; then
2126 echo "$ac_t""$CC" 1>&6
2128 echo "$ac_t""no" 1>&6
2131 if test -z "$CC"; then
2132 case "`uname -s`" in
2134 # Extract the first word of "cl", so it can be a program name with args.
2135 set dummy cl; ac_word=$2
2136 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2137 echo "configure:2138: checking for $ac_word" >&5
2139 if test -n "$CC"; then
2140 ac_cv_prog_CC="$CC" # Let the user override the test.
2142 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2144 for ac_dir in $ac_dummy; do
2145 test -z "$ac_dir" && ac_dir=.
2146 if test -f $ac_dir/$ac_word; then
2154 if test -n "$CC"; then
2155 echo "$ac_t""$CC" 1>&6
2157 echo "$ac_t""no" 1>&6
2162 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2165 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2166 echo "configure:2167: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2169 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2170 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2171 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
2172 ac_cpp='$CPP '"$xe_cppflags"
2173 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
2174 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2177 cat > conftest.$ac_ext << EOF
2179 #line 2180 "configure"
2180 #include "confdefs.h"
2184 if { (eval echo configure:2185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2185 ac_cv_prog_cc_works=yes
2186 # If we can't run a trivial program, we are probably using a cross compiler.
2187 if (./conftest; exit) 2>/dev/null; then
2188 ac_cv_prog_cc_cross=no
2190 ac_cv_prog_cc_cross=yes
2193 echo "configure: failed program was:" >&5
2194 cat conftest.$ac_ext >&5
2195 ac_cv_prog_cc_works=no
2199 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2200 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2201 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
2202 ac_cpp='$CPP '"$xe_cppflags"
2203 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
2204 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2207 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2208 if test $ac_cv_prog_cc_works = no; then
2209 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2211 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2212 echo "configure:2213: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2213 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2214 cross_compiling=$ac_cv_prog_cc_cross
2216 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2217 echo "configure:2218: checking whether we are using GNU C" >&5
2219 cat > conftest.c <<EOF
2224 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2225: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2230 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2232 if test $ac_cv_prog_gcc = yes; then
2238 ac_test_CFLAGS="${CFLAGS+set}"
2239 ac_save_CFLAGS="$CFLAGS"
2241 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2242 echo "configure:2243: checking whether ${CC-cc} accepts -g" >&5
2244 echo 'void f(){}' > conftest.c
2245 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2253 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2254 if test "$ac_test_CFLAGS" = set; then
2255 CFLAGS="$ac_save_CFLAGS"
2256 elif test $ac_cv_prog_cc_g = yes; then
2257 if test "$GCC" = yes; then
2263 if test "$GCC" = yes; then
2271 CFLAGS="$xe_save_CFLAGS"
2274 test -n "$CPP" -a -d "$CPP" && CPP=
2276 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP"
2278 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2279 echo "configure:2280: checking how to run the C preprocessor" >&5
2280 # On Suns, sometimes $CPP names a directory.
2281 if test -n "$CPP" && test -d "$CPP"; then
2284 if test -z "$CPP"; then
2286 # This must be in double quotes, not single quotes, because CPP may get
2287 # substituted into the Makefile and "${CC-cc}" will confuse make.
2289 # On the NeXT, cc -E runs the code through the compiler's parser,
2290 # not just through cpp.
2291 cat > conftest.$ac_ext <<EOF
2292 #line 2293 "configure"
2293 #include "confdefs.h"
2297 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2298 { (eval echo configure:2299: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2299 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2300 if test -z "$ac_err"; then
2304 echo "configure: failed program was:" >&5
2305 cat conftest.$ac_ext >&5
2307 CPP="${CC-cc} -E -traditional-cpp"
2308 cat > conftest.$ac_ext <<EOF
2309 #line 2310 "configure"
2310 #include "confdefs.h"
2314 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2315 { (eval echo configure:2316: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2316 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2317 if test -z "$ac_err"; then
2321 echo "configure: failed program was:" >&5
2322 cat conftest.$ac_ext >&5
2324 CPP="${CC-cc} -nologo -E"
2325 cat > conftest.$ac_ext <<EOF
2326 #line 2327 "configure"
2327 #include "confdefs.h"
2331 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2332 { (eval echo configure:2333: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2333 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2334 if test -z "$ac_err"; then
2338 echo "configure: failed program was:" >&5
2339 cat conftest.$ac_ext >&5
2348 ac_cv_prog_CPP="$CPP"
2349 CPP="$ac_cv_prog_CPP"
2351 ac_cv_prog_CPP="$CPP"
2353 echo "$ac_t""$CPP" 1>&6
2357 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2358 echo "configure:2359: checking for AIX" >&5
2359 cat > conftest.$ac_ext <<EOF
2360 #line 2361 "configure"
2361 #include "confdefs.h"
2367 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2368 egrep "yes" >/dev/null 2>&1; then
2370 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
2371 Defining _ALL_SOURCE
2373 cat >> confdefs.h <<\EOF
2374 #define _ALL_SOURCE 1
2380 echo "$ac_t""no" 1>&6
2386 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6
2387 echo "configure:2388: checking for GNU libc" >&5
2388 cat > conftest.$ac_ext <<EOF
2389 #line 2390 "configure"
2390 #include "confdefs.h"
2391 #include <features.h>
2394 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
2395 #error Not a GNU libc system :-(
2396 ******* ======= ******** &&&&&&&&
2401 if { (eval echo configure:2402: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2405 echo "configure: failed program was:" >&5
2406 cat conftest.$ac_ext >&5
2411 echo "$ac_t""$have_glibc" 1>&6
2412 test "$have_glibc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
2413 Defining _GNU_SOURCE
2415 cat >> confdefs.h <<\EOF
2416 #define _GNU_SOURCE 1
2423 { test "$extra_verbose" = "yes" && cat << \EOF
2424 Defining __EXTENSIONS__
2426 cat >> confdefs.h <<\EOF
2427 #define __EXTENSIONS__ 1
2431 if test "$os_release" -ge 55; then
2432 { test "$extra_verbose" = "yes" && cat << \EOF
2433 Defining _XOPEN_SOURCE = 500
2435 cat >> confdefs.h <<\EOF
2436 #define _XOPEN_SOURCE 500
2440 { test "$extra_verbose" = "yes" && cat << \EOF
2441 Defining _XOPEN_SOURCE_EXTENDED
2443 cat >> confdefs.h <<\EOF
2444 #define _XOPEN_SOURCE_EXTENDED 1
2450 { test "$extra_verbose" = "yes" && cat << \EOF
2451 Defining _POSIX_C_SOURCE = 199506L
2453 cat >> confdefs.h <<\EOF
2454 #define _POSIX_C_SOURCE 199506L
2458 { test "$extra_verbose" = "yes" && cat << \EOF
2459 Defining _XOPEN_SOURCE = 500
2461 cat >> confdefs.h <<\EOF
2462 #define _XOPEN_SOURCE 500
2466 { test "$extra_verbose" = "yes" && cat << \EOF
2467 Defining _XOPEN_SOURCE_EXTENDED
2469 cat >> confdefs.h <<\EOF
2470 #define _XOPEN_SOURCE_EXTENDED 1
2477 cat > conftest.$ac_ext <<EOF
2478 #line 2479 "configure"
2479 #include "confdefs.h"
2481 #if defined __SUNPRO_C
2483 #elif defined __DECC
2485 #elif defined __USLC__ && defined __SCO_VERSION__
2492 if { (eval echo configure:2493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
2497 echo "configure: failed program was:" >&5
2498 cat conftest.$ac_ext >&5
2500 case "$conftest_rc" in
2501 11) echo "You appear to be using the SunPro C compiler."; __SUNPRO_C=yes ;;
2502 12) echo "You appear to be using the DEC C compiler." ; __DECC=yes ;;
2503 13) echo "You appear to be using the SCO C compiler." ; __USLC__=yes ;;
2511 echo "Extracting information from the machine- and system-dependent headers..."
2513 tempcname="conftest.c"
2517 cat > $tempcname < confdefs.h
2518 cat >> $tempcname <<EOF
2520 #define C_SWITCH_SITE
2521 #define C_SWITCH_X_SITE
2522 #define LD_SWITCH_SITE
2523 #define LD_SWITCH_X_SITE
2524 #define LD_SWITCH_X_SITE_AUX
2525 #define OS_RELEASE $os_release
2527 #ifdef config_opsysfile
2528 #include "$srcdir/src/$opsysfile"
2531 #ifdef config_machfile
2532 #include "$srcdir/src/$machfile"
2535 #ifndef LIBS_MACHINE
2536 #define LIBS_MACHINE
2538 configure___ libs_machine=LIBS_MACHINE
2543 configure___ libs_system=LIBS_SYSTEM
2545 #ifndef LIBS_TERMCAP
2546 #define LIBS_TERMCAP
2548 configure___ libs_termcap=LIBS_TERMCAP
2550 #ifndef LIB_STANDARD
2551 #define LIB_STANDARD
2553 configure___ libs_standard=LIB_STANDARD
2556 #ifndef OBJECTS_MACHINE
2557 #define OBJECTS_MACHINE
2559 configure___ objects_machine=OBJECTS_MACHINE
2561 #ifndef OBJECTS_SYSTEM
2562 #define OBJECTS_SYSTEM
2564 configure___ objects_system=OBJECTS_SYSTEM
2567 #ifndef C_SWITCH_MACHINE
2568 #define C_SWITCH_MACHINE
2570 configure___ c_switch_machine=C_SWITCH_MACHINE
2572 #ifndef C_SWITCH_SYSTEM
2573 #define C_SWITCH_SYSTEM
2575 configure___ c_switch_system=C_SWITCH_SYSTEM
2578 #ifndef LD_SWITCH_MACHINE
2579 #define LD_SWITCH_MACHINE
2581 configure___ ld_switch_machine=LD_SWITCH_MACHINE
2583 #ifndef LD_SWITCH_SYSTEM
2584 #define LD_SWITCH_SYSTEM
2586 configure___ ld_switch_system=LD_SWITCH_SYSTEM
2590 #define UNEXEC "unexec.o"
2592 configure___ unexec=UNEXEC
2595 #ifndef LD_SWITCH_SHARED
2596 #define LD_SWITCH_SHARED "-c"
2598 configure___ ld_switch_shared=LD_SWITCH_SHARED
2601 #define ORDINARY_LD "\$(CC) \$(CFLAGS)"
2602 configure___ ordinary_ld=ORDINARY_LD
2604 #ifdef ORDINARY_LINK
2605 #define LD ORDINARY_LD
2606 #else /* no ORDINARY LINK */
2607 #ifdef COFF_ENCAPSULATE
2608 #define LD "\$(CC) -nostdlib"
2609 #else /* not COFF_ENCAPSULATE */
2612 #else /* ! defined (LINKER) */
2614 #endif /* ! defined (LINKER) */
2615 #endif /* ! defined (COFF_ENCAPSULATE) */
2616 #endif /* not ORDINARY_LINK */
2622 configure___ lib_gcc=LIB_GCC
2624 #ifndef LD_TEXT_START_ADDR
2625 #define LD_TEXT_START_ADDR
2627 configure___ ld_text_start_addr=LD_TEXT_START_ADDR
2630 #if ! defined (ORDINARY_LINK) && !defined (START_FILES)
2632 #ifdef COFF_ENCAPSULATE
2633 #define START_FILES "pre-crt0.o /usr/local/lib/gcc-crt0.o"
2634 #else /* ! defined (COFF_ENCAPSULATE) */
2635 #define START_FILES "pre-crt0.o /lib/crt0.o"
2636 #endif /* ! defined (COFF_ENCAPSULATE) */
2637 #else /* ! defined (NO_REMAP) */
2638 #define START_FILES "ecrt0.o"
2639 #endif /* ! defined (NO_REMAP) */
2640 #endif /* no ORDINARY_LINK */
2644 configure___ start_files=START_FILES
2646 #ifdef ORDINARY_LINK
2647 configure___ ordinary_link=yes
2649 configure___ ordinary_link=no
2652 #ifdef SYSTEM_MALLOC
2653 configure___ system_malloc=yes
2655 configure___ system_malloc=no
2659 configure___ have_terminfo=yes
2661 configure___ have_terminfo=no
2664 #ifdef MAIL_USE_FLOCK
2665 configure___ mail_use_flock=yes
2667 configure___ mail_use_flock=no
2670 #ifdef MAIL_USE_LOCKF
2671 configure___ mail_use_lockf=yes
2673 configure___ mail_use_lockf=no
2676 #ifdef MAIL_USE_LOCKING
2677 configure___ mail_use_locking=yes
2679 configure___ mail_use_locking=no
2682 #ifdef HAVE_WIN32_PROCESSES
2683 configure___ win32_processes=yes
2685 configure___ win32_processes=no
2690 CPP=`eval "echo $CPP $CPPFLAGS"`
2691 eval `$CPP -Isrc $tempcname \
2692 | sed -n -e "s/[ ]*=[ \"]*/='/" -e "s/[ \"]*\$/'/" -e "s/^configure___//p"`
2696 if test "$pdump" = "yes"; then
2705 test "$extra_verbose" = "yes" && \
2706 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 ""
2708 case "$opsys" in mingw* | cygwin*)
2709 cygwin_include=`eval "gcc -print-file-name=libc.a"` ;
2710 cygwin_include=`eval "dirname $cygwin_include"` ;
2711 cygwin_include="-I$cygwin_include/../include" ;
2712 extra_includes="$cygwin_include/mingw $cygwin_include" ;
2713 case "$opsys" in mingw*)
2714 c_switch_system="$c_switch_system $extra_includes" && if test "$extra_verbose" = "yes"; then echo " Appending \"$extra_includes\" to \$c_switch_system"; fi ;;
2719 test "$ordinary_link" = "no" -a -z "$libs_standard" && libs_standard="-lc"
2722 test "$__DECC" = "yes" && c_switch_site="$c_switch_site -std1" && if test "$extra_verbose" = "yes"; then echo " Appending \"-std1\" to \$c_switch_site"; fi
2724 if test "$__USLC__" = yes; then
2725 echo $ac_n "checking for whether the -Kalloca compiler flag is needed""... $ac_c" 1>&6
2726 echo "configure:2727: checking for whether the -Kalloca compiler flag is needed" >&5
2728 cat > conftest.$ac_ext <<EOF
2729 #line 2730 "configure"
2730 #include "confdefs.h"
2733 void *x = alloca(4);
2736 if { (eval echo configure:2737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2740 echo "configure: failed program was:" >&5
2741 cat conftest.$ac_ext >&5
2744 xe_save_c_switch_system="$c_switch_system"
2745 c_switch_system="$c_switch_system -Kalloca"
2746 cat > conftest.$ac_ext <<EOF
2747 #line 2748 "configure"
2748 #include "confdefs.h"
2751 void *x = alloca(4);
2754 if { (eval echo configure:2755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2758 echo "configure: failed program was:" >&5
2759 cat conftest.$ac_ext >&5
2762 c_switch_system="$xe_save_c_switch_system"
2765 echo "$ac_t""$need_kalloca" 1>&6
2766 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
2769 if test "$cflags_specified" = "no"; then
2770 if test "$GCC" = "yes"; then
2771 CFLAGS="-g -O3 -Wall -Wno-switch -Winline -Wmissing-prototypes"
2772 CFLAGS="$CFLAGS -Wsign-compare"
2773 if test "$xemacs_compiler" != "g++"; then
2774 CFLAGS="$CFLAGS -Wshadow"
2776 test "$have_glibc" != "yes" && CFLAGS="$CFLAGS -Wpointer-arith"
2777 elif test "$__SUNPRO_C" = "yes"; then
2779 sol2 ) CFLAGS="-v -xO4" ;;
2780 sunos4* ) CFLAGS="-xO2";;
2782 elif test "$__DECC" = "yes"; then
2784 elif test "$CC" = "xlc"; then
2785 CFLAGS="-g -O3 -qstrict -qnoansialias -qlibansi -qinfo -qro -qmaxmem=20000"
2790 if test "$GCC" = "yes"; then
2791 echo $ac_n "checking for buggy gcc versions""... $ac_c" 1>&6
2792 echo "configure:2793: checking for buggy gcc versions" >&5
2793 GCC_VERSION=`$CC --version`
2794 case `uname -s`:`uname -m`:$GCC_VERSION in
2795 *:sun4*:2.8.1|*:sun4*:egcs-2.90.*)
2799 *-fno-schedule-insns*) ;;
2801 echo "$ac_t""yes" 1>&6
2802 echo "configure: warning: Don't use -O2 with gcc 2.8.1 and egcs 1.0 under SPARC architectures" 1>&2
2803 echo "configure: warning: without also using -fno-schedule-insns." 1>&2
2804 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2810 Linux:alpha:egcs-2.91.*)
2811 echo "$ac_t""yes" 1>&6
2812 echo "configure: warning: There have been reports of egcs-1.1 not compiling XEmacs correctly on" 1>&2
2813 echo "configure: warning: Alpha Linux. There have also been reports that egcs-1.0.3a is O.K." 1>&2
2814 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2819 case "$GCC_VERSION" in
2822 *-fno-strength-reduce*) ;;
2824 echo "$ac_t""yes" 1>&6
2825 echo "configure: warning: Don't use -O2 with gcc 2.7.2 under Intel/XXX without also using" 1>&2
2826 echo "configure: warning: -fno-strength-reduce." 1>&2
2827 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2833 *-fno-caller-saves*) ;;
2835 echo "$ac_t""yes" 1>&6
2836 echo "configure: warning: Don't use -O2 with gcc 2.7.2 under Intel/XXX without also using" 1>&2
2837 echo "configure: warning: -fno-caller-saves." 1>&2
2838 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2845 echo "$ac_t""no" 1>&6
2848 if test "$pdump" != "yes"; then
2849 echo $ac_n "checking for \"-z nocombreloc\" linker flag""... $ac_c" 1>&6
2850 echo "configure:2851: checking for \"-z nocombreloc\" linker flag" >&5
2851 case "`ld --help 2>&1`" in
2852 *-z\ nocombreloc* ) echo "$ac_t""yes" 1>&6
2853 ld_switch_site="-z nocombreloc $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z nocombreloc\" to \$ld_switch_site"; fi ;;
2854 *) echo "$ac_t""no" 1>&6 ;;
2860 if test "$GCC" = "yes"; then
2861 set x $ld_switch_system; shift; ld_switch_system=""
2862 while test -n "$1"; do
2864 -L | -l | -u ) ld_switch_system="$ld_switch_system $1 $2"; shift ;;
2865 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_system="$ld_switch_system $1" ;;
2867 * ) ld_switch_system="$ld_switch_system -Xlinker $1" ;;
2873 if test "$GCC" = "yes"; then
2874 set x $ld_switch_machine; shift; ld_switch_machine=""
2875 while test -n "$1"; do
2877 -L | -l | -u ) ld_switch_machine="$ld_switch_machine $1 $2"; shift ;;
2878 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_machine="$ld_switch_machine $1" ;;
2880 * ) ld_switch_machine="$ld_switch_machine -Xlinker $1" ;;
2886 if test "$GCC" = "yes"; then
2887 set x $ld_switch_site; shift; ld_switch_site=""
2888 while test -n "$1"; do
2890 -L | -l | -u ) ld_switch_site="$ld_switch_site $1 $2"; shift ;;
2891 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_site="$ld_switch_site $1" ;;
2893 * ) ld_switch_site="$ld_switch_site -Xlinker $1" ;;
2899 if test "$GCC" = "yes"; then
2900 set x $LDFLAGS; shift; LDFLAGS=""
2901 while test -n "$1"; do
2903 -L | -l | -u ) LDFLAGS="$LDFLAGS $1 $2"; shift ;;
2904 -L* | -l* | -u* | -Wl* | -pg ) LDFLAGS="$LDFLAGS $1" ;;
2906 * ) LDFLAGS="$LDFLAGS -Xlinker $1" ;;
2912 if test "$GCC" = "yes"; then
2913 set x $ld_call_shared; shift; ld_call_shared=""
2914 while test -n "$1"; do
2916 -L | -l | -u ) ld_call_shared="$ld_call_shared $1 $2"; shift ;;
2917 -L* | -l* | -u* | -Wl* | -pg ) ld_call_shared="$ld_call_shared $1" ;;
2919 * ) ld_call_shared="$ld_call_shared -Xlinker $1" ;;
2925 test -n "$objects_machine" && extra_objs="$extra_objs $objects_machine" && if test "$extra_verbose" = "yes"; then
2926 echo " xemacs will be linked with \"$objects_machine\""
2928 test -n "$objects_system" && extra_objs="$extra_objs $objects_system" && if test "$extra_verbose" = "yes"; then
2929 echo " xemacs will be linked with \"$objects_system\""
2931 test -n "$unexec" && test ! "$pdump" = "yes" && extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then
2932 echo " xemacs will be linked with \"$unexec\""
2934 test "$pdump" = "yes" && extra_objs="$extra_objs dumper.o" && if test "$extra_verbose" = "yes"; then
2935 echo " xemacs will be linked with \"dumper.o\""
2938 echo $ac_n "checking for dynodump""... $ac_c" 1>&6
2939 echo "configure:2940: checking for dynodump" >&5
2940 if test "$unexec" != "unexsol2.o"; then
2941 echo "$ac_t""no" 1>&6
2943 echo "$ac_t""yes" 1>&6
2944 { test "$extra_verbose" = "yes" && cat << \EOF
2947 cat >> confdefs.h <<\EOF
2952 MAKE_SUBDIR="$MAKE_SUBDIR dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$MAKE_SUBDIR"; fi
2953 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$SRC_SUBDIR_DEPS"; fi
2955 sparc ) dynodump_arch=sparc ;;
2956 *86* ) dynodump_arch=i386 ;;
2957 powerpc ) dynodump_arch=ppc ;;
2959 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
2963 test "$machine$opsys" = "powerpclinux" && start_flags="-T $srcdir/src/ppc.ldscript"
2965 if test "$unexec" = "unexaix.o"; then
2966 if test "$dynamic" = "no"; then
2967 start_flags="-Wl,-bnso,-bnodelcsect"
2968 test "$GCC" = "yes" && start_flags="-B/bin/ ${start_flags}"
2969 for f in "/lib/syscalls.exp" "/lib/threads.exp"; do
2970 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; fi
2972 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do
2973 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi
2976 echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6
2977 echo "configure:2978: checking for terminateAndUnload in -lC" >&5
2978 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'`
2980 xe_check_libs=" -lC "
2981 cat > conftest.$ac_ext <<EOF
2982 #line 2983 "configure"
2983 #include "confdefs.h"
2984 /* Override any gcc2 internal prototype to avoid an error. */
2985 /* We use char because int might match the return type of a gcc2
2986 builtin and then its argument prototype would still apply. */
2987 char terminateAndUnload();
2990 terminateAndUnload()
2993 if { (eval echo configure:2994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2995 eval "ac_cv_lib_$ac_lib_var=yes"
2997 echo "configure: failed program was:" >&5
2998 cat conftest.$ac_ext >&5
3000 eval "ac_cv_lib_$ac_lib_var=no"
3005 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
3006 echo "$ac_t""yes" 1>&6
3007 libs_system="$libs_system -lC" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lC\" to \$libs_system"; fi
3009 echo "$ac_t""no" 1>&6
3014 elif test -n "$ld_text_start_addr"; then
3015 start_flags="-T $ld_text_start_addr -e __start"
3021 if test "$ordinary_link" = "no" -a "$GCC" = "yes"; then
3022 test -z "$linker" && linker='$(CC) -nostdlib'
3023 test -z "$lib_gcc" && lib_gcc='`$(CC) -print-libgcc-file-name`'
3025 test "$GCC" != "yes" && lib_gcc=
3031 case "$site_libraries" in *:* ) site_libraries="`echo '' $site_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
3032 if test -n "$site_libraries"; then
3033 for arg in $site_libraries; do
3036 * ) test -d "$arg" || \
3037 { echo "Error:" "Invalid site library \`$arg': no such directory" >&2; exit 1; }
3040 ld_switch_site="$ld_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$ld_switch_site"; fi
3044 case "$site_includes" in *:* ) site_includes="`echo '' $site_includes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
3045 if test -n "$site_includes"; then
3046 for arg in $site_includes; do
3049 * ) test -d "$arg" || \
3050 { echo "Error:" "Invalid site include \`$arg': no such directory" >&2; exit 1; }
3053 c_switch_site="$c_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$c_switch_site"; fi
3057 case "$site_prefixes" in *:* ) site_prefixes="`echo '' $site_prefixes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
3058 if test -n "$site_prefixes"; then
3059 for dir in $site_prefixes; do
3060 lib_dir="${dir}/lib"
3061 inc_dir="${dir}/include"
3062 if test ! -d "$dir"; then
3063 { echo "Error:" "Invalid site prefix \`$dir': no such directory" >&2; exit 1; }
3064 elif test ! -d "$lib_dir"; then
3065 { echo "Error:" "Invalid site prefix \`$dir': no such directory \`$lib_dir'" >&2; exit 1; }
3067 if test -d "$inc_dir"; then
3068 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
3070 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
3076 for dir in "/usr/ccs/lib"; do
3077 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
3080 case "$site_runtime_libraries" in *:* ) site_runtime_libraries="`echo '' $site_runtime_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
3081 if test -n "$site_runtime_libraries"; then
3082 LD_RUN_PATH="`echo $site_runtime_libraries | sed -e 's/ */:/g'`"
3090 if test -n "$add_runtime_path"; then :;
3091 elif test "$dynamic" = "no"; then add_runtime_path=no
3092 elif test -n "$LD_RUN_PATH"; then add_runtime_path=yes
3093 else case "$opsys" in
3094 sol2 | irix* | *bsd* | decosf* ) add_runtime_path=yes ;;
3095 * ) add_runtime_path=no ;;
3099 if test "$add_runtime_path" = "yes"; then
3100 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6
3101 echo "configure:3102: checking "for runtime libraries flag"" >&5
3103 sol2 ) dash_r="-R" ;;
3104 decosf* | linux* | irix*) dash_r="-rpath " ;;
3107 for try_dash_r in "-R" "-R " "-rpath "; do
3108 xe_check_libs="${try_dash_r}/no/such/file-or-directory"
3110 if test "$GCC" = "yes"; then
3111 set x $xe_check_libs; shift; xe_check_libs=""
3112 while test -n "$1"; do
3114 -L | -l | -u ) xe_check_libs="$xe_check_libs $1 $2"; shift ;;
3115 -L* | -l* | -u* | -Wl* | -pg ) xe_check_libs="$xe_check_libs $1" ;;
3117 * ) xe_check_libs="$xe_check_libs -Xlinker $1" ;;
3122 cat > conftest.$ac_ext <<EOF
3123 #line 3124 "configure"
3124 #include "confdefs.h"
3130 if { (eval echo configure:3131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3132 dash_r="$try_dash_r"
3134 echo "configure: failed program was:" >&5
3135 cat conftest.$ac_ext >&5
3139 test -n "$dash_r" && break
3142 if test -n "$dash_r";
3143 then echo "$ac_t"""\"${dash_r}\""" 1>&6
3144 else echo "$ac_t""NONE" 1>&6
3148 xe_add_unique_runpath_dir='
3150 for xe_dir in $runpath_dirs; do test "$xe_dir" = "$xe_runpath_dir" && xe_add_p=no
3152 if test "$xe_add_p" = "yes"; then
3153 test -n "$runpath" && runpath="${runpath}:"
3154 runpath="${runpath}${xe_runpath_dir}"
3155 runpath_dirs="$runpath_dirs $xe_runpath_dir"
3161 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
3162 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
3163 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
3165 runpath="" runpath_dirs=""
3166 if test -n "$LD_RUN_PATH"; then
3167 runpath="$LD_RUN_PATH"
3168 elif test "$GCC" = "yes"; then
3169 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
3170 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
3171 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
3172 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
3173 case "$arg" in P,* | -L* | -R* )
3174 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
3176 xe_runpath_dir="$dir"
3177 test "$xe_runpath_dir" != "/lib" -a \
3178 "$xe_runpath_dir" != "/usr/lib" -a \
3179 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
3180 eval "$xe_add_unique_runpath_dir"
3185 ld_switch_run="$ld_switch_run_save"
3188 for arg in $ld_switch_site $ld_switch_x_site; do
3189 case "$arg" in -L*) {
3190 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
3191 test "$xe_runpath_dir" != "/lib" -a \
3192 "$xe_runpath_dir" != "/usr/lib" -a \
3193 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
3194 eval "$xe_add_unique_runpath_dir"
3197 if test "$opsys $need_motif" = "sol2 yes"; then
3198 xe_runpath_dir="/opt/SUNWdt/lib";
3199 eval "$xe_add_unique_runpath_dir";
3202 if test -n "$runpath"; then
3203 ld_switch_run="${dash_r}${runpath}"
3205 if test "$GCC" = "yes"; then
3206 set x $ld_switch_run; shift; ld_switch_run=""
3207 while test -n "$1"; do
3209 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
3210 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
3212 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
3217 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
3224 if test "$with_dlmalloc" != "no"; then
3229 after_morecore_hook_exists=yes
3230 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
3231 echo "configure:3232: checking for malloc_set_state" >&5
3233 cat > conftest.$ac_ext <<EOF
3234 #line 3235 "configure"
3235 #include "confdefs.h"
3236 /* System header to define __stub macros and hopefully few prototypes,
3237 which can conflict with char malloc_set_state(); below. */
3239 /* Override any gcc2 internal prototype to avoid an error. */
3240 /* We use char because int might match the return type of a gcc2
3241 builtin and then its argument prototype would still apply. */
3242 char malloc_set_state();
3246 /* The GNU C library defines this for functions which it implements
3247 to always fail with ENOSYS. Some functions are actually named
3248 something starting with __ and the normal name is an alias. */
3249 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
3257 if { (eval echo configure:3258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3259 eval "ac_cv_func_malloc_set_state=yes"
3261 echo "configure: failed program was:" >&5
3262 cat conftest.$ac_ext >&5
3264 eval "ac_cv_func_malloc_set_state=no"
3268 if eval "test \"`echo '$ac_cv_func_'malloc_set_state`\" = yes"; then
3269 echo "$ac_t""yes" 1>&6
3272 echo "$ac_t""no" 1>&6
3276 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
3277 echo "configure:3278: checking whether __after_morecore_hook exists" >&5
3278 cat > conftest.$ac_ext <<EOF
3279 #line 3280 "configure"
3280 #include "confdefs.h"
3281 extern void (* __after_morecore_hook)();
3283 __after_morecore_hook = 0
3286 if { (eval echo configure:3287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3288 echo "$ac_t""yes" 1>&6
3290 echo "configure: failed program was:" >&5
3291 cat conftest.$ac_ext >&5
3293 echo "$ac_t""no" 1>&6
3294 after_morecore_hook_exists=no
3297 if test "$system_malloc" = "yes" ; then
3300 - The GNU allocators don't work with this system configuration."
3301 elif test "$with_system_malloc" = "yes" ; then
3304 - User chose not to use GNU allocators."
3305 elif test "$with_debug_malloc" = "yes" ; then
3308 - User chose to use Debugging Malloc."
3311 if test "$doug_lea_malloc" = "yes" -a "$GNU_MALLOC" = "yes" ; then
3313 - Using Doug Lea's new malloc from the GNU C Library."
3314 { test "$extra_verbose" = "yes" && cat << \EOF
3315 Defining DOUG_LEA_MALLOC
3317 cat >> confdefs.h <<\EOF
3318 #define DOUG_LEA_MALLOC 1
3322 if test "$after_morecore_hook_exists" = "no" ; then
3324 - Using Doug Lea's new malloc from the Linux C Library."
3325 { test "$extra_verbose" = "yes" && cat << \EOF
3326 Defining _NO_MALLOC_WARNING_
3328 cat >> confdefs.h <<\EOF
3329 #define _NO_MALLOC_WARNING_ 1
3339 # Extract the first word of "ranlib", so it can be a program name with args.
3340 set dummy ranlib; ac_word=$2
3341 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3342 echo "configure:3343: checking for $ac_word" >&5
3344 if test -n "$RANLIB"; then
3345 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3347 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3349 for ac_dir in $ac_dummy; do
3350 test -z "$ac_dir" && ac_dir=.
3351 if test -f $ac_dir/$ac_word; then
3352 ac_cv_prog_RANLIB="ranlib"
3357 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
3359 RANLIB="$ac_cv_prog_RANLIB"
3360 if test -n "$RANLIB"; then
3361 echo "$ac_t""$RANLIB" 1>&6
3363 echo "$ac_t""no" 1>&6
3367 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3368 if test -f $ac_dir/install-sh; then
3370 ac_install_sh="$ac_aux_dir/install-sh -c"
3372 elif test -f $ac_dir/install.sh; then
3374 ac_install_sh="$ac_aux_dir/install.sh -c"
3378 if test -z "$ac_aux_dir"; then
3379 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
3381 ac_config_guess=$ac_aux_dir/config.guess
3382 ac_config_sub=$ac_aux_dir/config.sub
3383 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
3385 # Find a good install program. We prefer a C program (faster),
3386 # so one script is as good as another. But avoid the broken or
3387 # incompatible versions:
3388 # SysV /etc/install, /usr/sbin/install
3389 # SunOS /usr/etc/install
3390 # IRIX /sbin/install
3392 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3393 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3394 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3395 # ./install, which can be erroneously created by make from ./install.sh.
3396 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3397 echo "configure:3398: checking for a BSD compatible install" >&5
3398 if test -z "$INSTALL"; then
3400 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3401 for ac_dir in $PATH; do
3402 # Account for people who put trailing slashes in PATH elements.
3404 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3406 # OSF1 and SCO ODT 3.0 have their own names for install.
3407 # Don't use installbsd from OSF since it installs stuff as root
3409 for ac_prog in ginstall scoinst install; do
3410 if test -f $ac_dir/$ac_prog; then
3411 if test $ac_prog = install &&
3412 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3413 # AIX install. It has an incompatible calling convention.
3416 ac_cv_path_install="$ac_dir/$ac_prog -c"
3426 if test "${ac_cv_path_install+set}" = set; then
3427 INSTALL="$ac_cv_path_install"
3429 # As a last resort, use the slow shell script. We don't cache a
3430 # path for INSTALL within a source directory, because that will
3431 # break other packages using the cache if that directory is
3432 # removed, or if the path is relative.
3433 INSTALL="$ac_install_sh"
3436 echo "$ac_t""$INSTALL" 1>&6
3438 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3439 # It thinks the first close brace ends the variable substitution.
3440 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3442 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3444 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3446 for ac_prog in 'bison -y' byacc
3448 # Extract the first word of "$ac_prog", so it can be a program name with args.
3449 set dummy $ac_prog; ac_word=$2
3450 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3451 echo "configure:3452: checking for $ac_word" >&5
3453 if test -n "$YACC"; then
3454 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3456 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3458 for ac_dir in $ac_dummy; do
3459 test -z "$ac_dir" && ac_dir=.
3460 if test -f $ac_dir/$ac_word; then
3461 ac_cv_prog_YACC="$ac_prog"
3467 YACC="$ac_cv_prog_YACC"
3468 if test -n "$YACC"; then
3469 echo "$ac_t""$YACC" 1>&6
3471 echo "$ac_t""no" 1>&6
3474 test -n "$YACC" && break
3476 test -n "$YACC" || YACC="yacc"
3479 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
3481 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3482 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3483 echo "configure:3484: checking for $ac_hdr" >&5
3485 cat > conftest.$ac_ext <<EOF
3486 #line 3487 "configure"
3487 #include "confdefs.h"
3490 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3491 { (eval echo configure:3492: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3492 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3493 if test -z "$ac_err"; then
3495 eval "ac_cv_header_$ac_safe=yes"
3498 echo "configure: failed program was:" >&5
3499 cat conftest.$ac_ext >&5
3501 eval "ac_cv_header_$ac_safe=no"
3504 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3505 echo "$ac_t""yes" 1>&6
3506 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3507 { test "$extra_verbose" = "yes" && cat << EOF
3510 cat >> confdefs.h <<EOF
3511 #define $ac_tr_hdr 1
3516 echo "$ac_t""no" 1>&6
3520 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
3521 echo "configure:3522: checking for sys/wait.h that is POSIX.1 compatible" >&5
3523 cat > conftest.$ac_ext <<EOF
3524 #line 3525 "configure"
3525 #include "confdefs.h"
3526 #include <sys/types.h>
3527 #include <sys/wait.h>
3529 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3532 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3537 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3540 if { (eval echo configure:3541: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3542 ac_cv_header_sys_wait_h=yes
3544 echo "configure: failed program was:" >&5
3545 cat conftest.$ac_ext >&5
3547 ac_cv_header_sys_wait_h=no
3551 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
3552 if test $ac_cv_header_sys_wait_h = yes; then
3553 { test "$extra_verbose" = "yes" && cat << \EOF
3554 Defining HAVE_SYS_WAIT_H
3556 cat >> confdefs.h <<\EOF
3557 #define HAVE_SYS_WAIT_H 1
3563 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3564 echo "configure:3565: checking for ANSI C header files" >&5
3566 cat > conftest.$ac_ext <<EOF
3567 #line 3568 "configure"
3568 #include "confdefs.h"
3574 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3575 { (eval echo configure:3576: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3576 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3577 if test -z "$ac_err"; then
3579 ac_cv_header_stdc=yes
3582 echo "configure: failed program was:" >&5
3583 cat conftest.$ac_ext >&5
3585 ac_cv_header_stdc=no
3589 if test $ac_cv_header_stdc = yes; then
3590 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3591 cat > conftest.$ac_ext <<EOF
3592 #line 3593 "configure"
3593 #include "confdefs.h"
3596 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3597 egrep "memchr" >/dev/null 2>&1; then
3601 ac_cv_header_stdc=no
3607 if test $ac_cv_header_stdc = yes; then
3608 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3609 cat > conftest.$ac_ext <<EOF
3610 #line 3611 "configure"
3611 #include "confdefs.h"
3614 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3615 egrep "free" >/dev/null 2>&1; then
3619 ac_cv_header_stdc=no
3625 if test $ac_cv_header_stdc = yes; then
3626 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3627 cat > conftest.$ac_ext <<EOF
3628 #line 3629 "configure"
3629 #include "confdefs.h"
3631 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3632 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3633 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3634 int main () { int i; for (i = 0; i < 256; i++)
3635 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3639 if { (eval echo configure:3640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
3644 echo "configure: failed program was:" >&5
3645 cat conftest.$ac_ext >&5
3647 ac_cv_header_stdc=no
3652 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3653 if test $ac_cv_header_stdc = yes; then
3654 { test "$extra_verbose" = "yes" && cat << \EOF
3655 Defining STDC_HEADERS
3657 cat >> confdefs.h <<\EOF
3658 #define STDC_HEADERS 1
3664 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3665 echo "configure:3666: checking whether time.h and sys/time.h may both be included" >&5
3667 cat > conftest.$ac_ext <<EOF
3668 #line 3669 "configure"
3669 #include "confdefs.h"
3670 #include <sys/types.h>
3671 #include <sys/time.h>
3677 if { (eval echo configure:3678: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3679 ac_cv_header_time=yes
3681 echo "configure: failed program was:" >&5
3682 cat conftest.$ac_ext >&5
3684 ac_cv_header_time=no
3688 echo "$ac_t""$ac_cv_header_time" 1>&6
3689 if test $ac_cv_header_time = yes; then
3690 { test "$extra_verbose" = "yes" && cat << \EOF
3691 Defining TIME_WITH_SYS_TIME
3693 cat >> confdefs.h <<\EOF
3694 #define TIME_WITH_SYS_TIME 1
3700 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
3701 echo "configure:3702: checking for sys_siglist declaration in signal.h or unistd.h" >&5
3703 cat > conftest.$ac_ext <<EOF
3704 #line 3705 "configure"
3705 #include "confdefs.h"
3706 #include <sys/types.h>
3708 /* NetBSD declares sys_siglist in unistd.h. */
3709 #ifdef HAVE_UNISTD_H
3713 char *msg = *(sys_siglist + 1);
3716 if { (eval echo configure:3717: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3718 ac_cv_decl_sys_siglist=yes
3720 echo "configure: failed program was:" >&5
3721 cat conftest.$ac_ext >&5
3723 ac_cv_decl_sys_siglist=no
3727 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
3728 if test $ac_cv_decl_sys_siglist = yes; then
3729 { test "$extra_verbose" = "yes" && cat << \EOF
3730 Defining SYS_SIGLIST_DECLARED
3732 cat >> confdefs.h <<\EOF
3733 #define SYS_SIGLIST_DECLARED 1
3741 echo $ac_n "checking for utime""... $ac_c" 1>&6
3742 echo "configure:3743: checking for utime" >&5
3743 cat > conftest.$ac_ext <<EOF
3744 #line 3745 "configure"
3745 #include "confdefs.h"
3746 #include <sys/types.h>
3749 struct utimbuf x; x.actime = x.modtime = 0; utime ("/", &x);
3752 if { (eval echo configure:3753: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3754 echo "$ac_t""yes" 1>&6
3755 { test "$extra_verbose" = "yes" && cat << \EOF
3758 cat >> confdefs.h <<\EOF
3759 #define HAVE_UTIME 1
3764 echo "configure: failed program was:" >&5
3765 cat conftest.$ac_ext >&5
3767 echo "$ac_t""no" 1>&6
3768 for ac_func in utimes
3770 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3771 echo "configure:3772: checking for $ac_func" >&5
3773 cat > conftest.$ac_ext <<EOF
3774 #line 3775 "configure"
3775 #include "confdefs.h"
3776 /* System header to define __stub macros and hopefully few prototypes,
3777 which can conflict with char $ac_func(); below. */
3779 /* Override any gcc2 internal prototype to avoid an error. */
3780 /* We use char because int might match the return type of a gcc2
3781 builtin and then its argument prototype would still apply. */
3786 /* The GNU C library defines this for functions which it implements
3787 to always fail with ENOSYS. Some functions are actually named
3788 something starting with __ and the normal name is an alias. */
3789 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3797 if { (eval echo configure:3798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3799 eval "ac_cv_func_$ac_func=yes"
3801 echo "configure: failed program was:" >&5
3802 cat conftest.$ac_ext >&5
3804 eval "ac_cv_func_$ac_func=no"
3808 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3809 echo "$ac_t""yes" 1>&6
3810 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3811 { test "$extra_verbose" = "yes" && cat << EOF
3812 Defining $ac_tr_func
3814 cat >> confdefs.h <<EOF
3815 #define $ac_tr_func 1
3820 echo "$ac_t""no" 1>&6
3828 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3829 echo "configure:3830: checking return type of signal handlers" >&5
3831 cat > conftest.$ac_ext <<EOF
3832 #line 3833 "configure"
3833 #include "confdefs.h"
3834 #include <sys/types.h>
3840 extern "C" void (*signal (int, void (*)(int)))(int);
3842 void (*signal ()) ();
3849 if { (eval echo configure:3850: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3851 ac_cv_type_signal=void
3853 echo "configure: failed program was:" >&5
3854 cat conftest.$ac_ext >&5
3856 ac_cv_type_signal=int
3860 echo "$ac_t""$ac_cv_type_signal" 1>&6
3861 { test "$extra_verbose" = "yes" && cat << EOF
3862 Defining RETSIGTYPE = $ac_cv_type_signal
3864 cat >> confdefs.h <<EOF
3865 #define RETSIGTYPE $ac_cv_type_signal
3870 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3871 echo "configure:3872: checking for size_t" >&5
3873 cat > conftest.$ac_ext <<EOF
3874 #line 3875 "configure"
3875 #include "confdefs.h"
3876 #include <sys/types.h>
3882 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3883 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3885 ac_cv_type_size_t=yes
3888 ac_cv_type_size_t=no
3892 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3893 if test $ac_cv_type_size_t = no; then
3894 { test "$extra_verbose" = "yes" && cat << \EOF
3895 Defining size_t = unsigned
3897 cat >> confdefs.h <<\EOF
3898 #define size_t unsigned
3904 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3905 echo "configure:3906: checking for pid_t" >&5
3907 cat > conftest.$ac_ext <<EOF
3908 #line 3909 "configure"
3909 #include "confdefs.h"
3910 #include <sys/types.h>
3916 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3917 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3919 ac_cv_type_pid_t=yes
3926 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3927 if test $ac_cv_type_pid_t = no; then
3928 { test "$extra_verbose" = "yes" && cat << \EOF
3929 Defining pid_t = int
3931 cat >> confdefs.h <<\EOF
3938 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3939 echo "configure:3940: checking for uid_t in sys/types.h" >&5
3941 cat > conftest.$ac_ext <<EOF
3942 #line 3943 "configure"
3943 #include "confdefs.h"
3944 #include <sys/types.h>
3946 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3947 egrep "uid_t" >/dev/null 2>&1; then
3949 ac_cv_type_uid_t=yes
3957 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3958 if test $ac_cv_type_uid_t = no; then
3959 { test "$extra_verbose" = "yes" && cat << \EOF
3960 Defining uid_t = int
3962 cat >> confdefs.h <<\EOF
3967 { test "$extra_verbose" = "yes" && cat << \EOF
3968 Defining gid_t = int
3970 cat >> confdefs.h <<\EOF
3977 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3978 echo "configure:3979: checking for mode_t" >&5
3980 cat > conftest.$ac_ext <<EOF
3981 #line 3982 "configure"
3982 #include "confdefs.h"
3983 #include <sys/types.h>
3989 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3990 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3992 ac_cv_type_mode_t=yes
3995 ac_cv_type_mode_t=no
3999 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
4000 if test $ac_cv_type_mode_t = no; then
4001 { test "$extra_verbose" = "yes" && cat << \EOF
4002 Defining mode_t = int
4004 cat >> confdefs.h <<\EOF
4011 echo $ac_n "checking for off_t""... $ac_c" 1>&6
4012 echo "configure:4013: checking for off_t" >&5
4014 cat > conftest.$ac_ext <<EOF
4015 #line 4016 "configure"
4016 #include "confdefs.h"
4017 #include <sys/types.h>
4023 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4024 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4026 ac_cv_type_off_t=yes
4033 echo "$ac_t""$ac_cv_type_off_t" 1>&6
4034 if test $ac_cv_type_off_t = no; then
4035 { test "$extra_verbose" = "yes" && cat << \EOF
4036 Defining off_t = long
4038 cat >> confdefs.h <<\EOF
4045 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
4046 echo "configure:4047: checking for ssize_t" >&5
4048 cat > conftest.$ac_ext <<EOF
4049 #line 4050 "configure"
4050 #include "confdefs.h"
4051 #include <sys/types.h>
4057 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4058 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4060 ac_cv_type_ssize_t=yes
4063 ac_cv_type_ssize_t=no
4067 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
4068 if test $ac_cv_type_ssize_t = no; then
4069 { test "$extra_verbose" = "yes" && cat << \EOF
4070 Defining ssize_t = int
4072 cat >> confdefs.h <<\EOF
4080 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
4081 echo "configure:4082: checking for socklen_t" >&5
4082 cat > conftest.$ac_ext <<EOF
4083 #line 4084 "configure"
4084 #include "confdefs.h"
4085 #include <sys/types.h>
4086 #include <sys/socket.h>
4093 if { (eval echo configure:4094: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4095 echo "$ac_t""yes" 1>&6
4097 echo "configure: failed program was:" >&5
4098 cat conftest.$ac_ext >&5
4101 cat > conftest.$ac_ext <<EOF
4102 #line 4103 "configure"
4103 #include "confdefs.h"
4104 #include <sys/types.h>
4105 #include <sys/socket.h>
4106 int accept (int, struct sockaddr *, size_t *);
4112 if { (eval echo configure:4113: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4115 echo "$ac_t""size_t" 1>&6
4116 { test "$extra_verbose" = "yes" && cat << \EOF
4117 Defining socklen_t = size_t
4119 cat >> confdefs.h <<\EOF
4120 #define socklen_t size_t
4125 echo "configure: failed program was:" >&5
4126 cat conftest.$ac_ext >&5
4129 echo "$ac_t""int" 1>&6
4130 { test "$extra_verbose" = "yes" && cat << \EOF
4131 Defining socklen_t = int
4133 cat >> confdefs.h <<\EOF
4134 #define socklen_t int
4143 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
4144 echo "configure:4145: checking for struct timeval" >&5
4145 cat > conftest.$ac_ext <<EOF
4146 #line 4147 "configure"
4147 #include "confdefs.h"
4148 #ifdef TIME_WITH_SYS_TIME
4149 #include <sys/time.h>
4152 #ifdef HAVE_SYS_TIME_H
4153 #include <sys/time.h>
4159 static struct timeval x; x.tv_sec = x.tv_usec;
4162 if { (eval echo configure:4163: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4164 echo "$ac_t""yes" 1>&6
4166 { test "$extra_verbose" = "yes" && cat << \EOF
4167 Defining HAVE_TIMEVAL
4169 cat >> confdefs.h <<\EOF
4170 #define HAVE_TIMEVAL 1
4175 echo "configure: failed program was:" >&5
4176 cat conftest.$ac_ext >&5
4178 echo "$ac_t""no" 1>&6
4183 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
4184 echo "configure:4185: checking whether struct tm is in sys/time.h or time.h" >&5
4186 cat > conftest.$ac_ext <<EOF
4187 #line 4188 "configure"
4188 #include "confdefs.h"
4189 #include <sys/types.h>
4192 struct tm *tp; tp->tm_sec;
4195 if { (eval echo configure:4196: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4197 ac_cv_struct_tm=time.h
4199 echo "configure: failed program was:" >&5
4200 cat conftest.$ac_ext >&5
4202 ac_cv_struct_tm=sys/time.h
4206 echo "$ac_t""$ac_cv_struct_tm" 1>&6
4207 if test $ac_cv_struct_tm = sys/time.h; then
4208 { test "$extra_verbose" = "yes" && cat << \EOF
4209 Defining TM_IN_SYS_TIME
4211 cat >> confdefs.h <<\EOF
4212 #define TM_IN_SYS_TIME 1
4218 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
4219 echo "configure:4220: checking for tm_zone in struct tm" >&5
4221 cat > conftest.$ac_ext <<EOF
4222 #line 4223 "configure"
4223 #include "confdefs.h"
4224 #include <sys/types.h>
4225 #include <$ac_cv_struct_tm>
4227 struct tm tm; tm.tm_zone;
4230 if { (eval echo configure:4231: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4232 ac_cv_struct_tm_zone=yes
4234 echo "configure: failed program was:" >&5
4235 cat conftest.$ac_ext >&5
4237 ac_cv_struct_tm_zone=no
4241 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
4242 if test "$ac_cv_struct_tm_zone" = yes; then
4243 { test "$extra_verbose" = "yes" && cat << \EOF
4244 Defining HAVE_TM_ZONE
4246 cat >> confdefs.h <<\EOF
4247 #define HAVE_TM_ZONE 1
4252 echo $ac_n "checking for tzname""... $ac_c" 1>&6
4253 echo "configure:4254: checking for tzname" >&5
4255 cat > conftest.$ac_ext <<EOF
4256 #line 4257 "configure"
4257 #include "confdefs.h"
4259 #ifndef tzname /* For SGI. */
4260 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4266 if { (eval echo configure:4267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4268 ac_cv_var_tzname=yes
4270 echo "configure: failed program was:" >&5
4271 cat conftest.$ac_ext >&5
4277 echo "$ac_t""$ac_cv_var_tzname" 1>&6
4278 if test $ac_cv_var_tzname = yes; then
4279 { test "$extra_verbose" = "yes" && cat << \EOF
4280 Defining HAVE_TZNAME
4282 cat >> confdefs.h <<\EOF
4283 #define HAVE_TZNAME 1
4291 echo $ac_n "checking for working const""... $ac_c" 1>&6
4292 echo "configure:4293: checking for working const" >&5
4294 cat > conftest.$ac_ext <<EOF
4295 #line 4296 "configure"
4296 #include "confdefs.h"
4300 /* Ultrix mips cc rejects this. */
4301 typedef int charset[2]; const charset x;
4302 /* SunOS 4.1.1 cc rejects this. */
4303 char const *const *ccp;
4305 /* NEC SVR4.0.2 mips cc rejects this. */
4306 struct point {int x, y;};
4307 static struct point const zero = {0,0};
4308 /* AIX XL C 1.02.0.0 rejects this.
4309 It does not let you subtract one const X* pointer from another in an arm
4310 of an if-expression whose if-part is not a constant expression */
4311 const char *g = "string";
4312 ccp = &g + (g ? g-g : 0);
4313 /* HPUX 7.0 cc rejects these. */
4316 ccp = (char const *const *) p;
4317 { /* SCO 3.2v4 cc rejects this. */
4319 char const *s = 0 ? (char *) 0 : (char const *) 0;
4323 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4325 const int *foo = &x[0];
4328 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4329 typedef const int *iptr;
4333 { /* AIX XL C 1.02.0.0 rejects this saying
4334 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4335 struct s { int j; const int *ap[3]; };
4336 struct s *b; b->j = 5;
4338 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4344 if { (eval echo configure:4345: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4348 echo "configure: failed program was:" >&5
4349 cat conftest.$ac_ext >&5
4355 echo "$ac_t""$ac_cv_c_const" 1>&6
4356 if test $ac_cv_c_const = no; then
4357 { test "$extra_verbose" = "yes" && cat << \EOF
4360 cat >> confdefs.h <<\EOF
4368 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
4369 echo "configure:4370: checking whether ${MAKE-make} sets \${MAKE}" >&5
4370 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
4372 cat > conftestmake <<\EOF
4374 @echo 'ac_maketemp="${MAKE}"'
4376 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4377 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
4378 if test -n "$ac_maketemp"; then
4379 eval ac_cv_prog_make_${ac_make}_set=yes
4381 eval ac_cv_prog_make_${ac_make}_set=no
4384 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4385 echo "$ac_t""yes" 1>&6
4388 echo "$ac_t""no" 1>&6
4389 SET_MAKE="MAKE=${MAKE-make}"
4393 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
4394 echo "configure:4395: checking whether byte ordering is bigendian" >&5
4396 ac_cv_c_bigendian=unknown
4397 # See if sys/param.h defines the BYTE_ORDER macro.
4398 cat > conftest.$ac_ext <<EOF
4399 #line 4400 "configure"
4400 #include "confdefs.h"
4401 #include <sys/types.h>
4402 #include <sys/param.h>
4405 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4410 if { (eval echo configure:4411: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4412 # It does; now see whether it defined to BIG_ENDIAN or not.
4413 cat > conftest.$ac_ext <<EOF
4414 #line 4415 "configure"
4415 #include "confdefs.h"
4416 #include <sys/types.h>
4417 #include <sys/param.h>
4420 #if BYTE_ORDER != BIG_ENDIAN
4425 if { (eval echo configure:4426: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4427 ac_cv_c_bigendian=yes
4429 echo "configure: failed program was:" >&5
4430 cat conftest.$ac_ext >&5
4432 ac_cv_c_bigendian=no
4436 echo "configure: failed program was:" >&5
4437 cat conftest.$ac_ext >&5
4440 if test $ac_cv_c_bigendian = unknown; then
4441 cat > conftest.$ac_ext <<EOF
4442 #line 4443 "configure"
4443 #include "confdefs.h"
4445 /* Are we little or big endian? From Harbison&Steele. */
4449 char c[sizeof (long)];
4452 exit (u.c[sizeof (long) - 1] == 1);
4455 if { (eval echo configure:4456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4457 ac_cv_c_bigendian=no
4460 echo "configure: failed program was:" >&5
4461 cat conftest.$ac_ext >&5
4463 ac_cv_c_bigendian=yes
4468 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
4469 if test $ac_cv_c_bigendian = yes; then
4470 { test "$extra_verbose" = "yes" && cat << \EOF
4471 Defining WORDS_BIGENDIAN
4473 cat >> confdefs.h <<\EOF
4474 #define WORDS_BIGENDIAN 1
4481 echo $ac_n "checking size of short""... $ac_c" 1>&6
4482 echo "configure:4483: checking size of short" >&5
4484 cat > conftest.$ac_ext <<EOF
4485 #line 4486 "configure"
4486 #include "confdefs.h"
4488 #include <sys/types.h>
4491 FILE *f=fopen("conftestval", "w");
4493 fprintf(f, "%d\n", sizeof(short));
4497 if { (eval echo configure:4498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4499 ac_cv_sizeof_short=`cat conftestval`
4502 echo "configure: failed program was:" >&5
4503 cat conftest.$ac_ext >&5
4505 ac_cv_sizeof_short=0
4508 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
4509 { test "$extra_verbose" = "yes" && cat << EOF
4510 Defining SIZEOF_SHORT = $ac_cv_sizeof_short
4512 cat >> confdefs.h <<EOF
4513 #define SIZEOF_SHORT $ac_cv_sizeof_short
4518 if test "$ac_cv_sizeof_short" = 0; then
4520 echo "*** PANIC *** Configure tests are not working - compiler is broken."
4521 echo "*** PANIC *** Please examine config.log for compilation errors."
4524 echo $ac_n "checking size of int""... $ac_c" 1>&6
4525 echo "configure:4526: checking size of int" >&5
4527 cat > conftest.$ac_ext <<EOF
4528 #line 4529 "configure"
4529 #include "confdefs.h"
4531 #include <sys/types.h>
4534 FILE *f=fopen("conftestval", "w");
4536 fprintf(f, "%d\n", sizeof(int));
4540 if { (eval echo configure:4541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4542 ac_cv_sizeof_int=`cat conftestval`
4545 echo "configure: failed program was:" >&5
4546 cat conftest.$ac_ext >&5
4551 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
4552 { test "$extra_verbose" = "yes" && cat << EOF
4553 Defining SIZEOF_INT = $ac_cv_sizeof_int
4555 cat >> confdefs.h <<EOF
4556 #define SIZEOF_INT $ac_cv_sizeof_int
4561 echo $ac_n "checking size of long""... $ac_c" 1>&6
4562 echo "configure:4563: checking size of long" >&5
4564 cat > conftest.$ac_ext <<EOF
4565 #line 4566 "configure"
4566 #include "confdefs.h"
4568 #include <sys/types.h>
4571 FILE *f=fopen("conftestval", "w");
4573 fprintf(f, "%d\n", sizeof(long));
4577 if { (eval echo configure:4578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4579 ac_cv_sizeof_long=`cat conftestval`
4582 echo "configure: failed program was:" >&5
4583 cat conftest.$ac_ext >&5
4588 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
4589 { test "$extra_verbose" = "yes" && cat << EOF
4590 Defining SIZEOF_LONG = $ac_cv_sizeof_long
4592 cat >> confdefs.h <<EOF
4593 #define SIZEOF_LONG $ac_cv_sizeof_long
4598 echo $ac_n "checking size of long long""... $ac_c" 1>&6
4599 echo "configure:4600: checking size of long long" >&5
4601 cat > conftest.$ac_ext <<EOF
4602 #line 4603 "configure"
4603 #include "confdefs.h"
4605 #include <sys/types.h>
4608 FILE *f=fopen("conftestval", "w");
4610 fprintf(f, "%d\n", sizeof(long long));
4614 if { (eval echo configure:4615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4616 ac_cv_sizeof_long_long=`cat conftestval`
4619 echo "configure: failed program was:" >&5
4620 cat conftest.$ac_ext >&5
4622 ac_cv_sizeof_long_long=0
4625 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
4626 { test "$extra_verbose" = "yes" && cat << EOF
4627 Defining SIZEOF_LONG_LONG = $ac_cv_sizeof_long_long
4629 cat >> confdefs.h <<EOF
4630 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4635 echo $ac_n "checking size of void *""... $ac_c" 1>&6
4636 echo "configure:4637: checking size of void *" >&5
4638 cat > conftest.$ac_ext <<EOF
4639 #line 4640 "configure"
4640 #include "confdefs.h"
4642 #include <sys/types.h>
4645 FILE *f=fopen("conftestval", "w");
4647 fprintf(f, "%d\n", sizeof(void *));
4651 if { (eval echo configure:4652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4653 ac_cv_sizeof_void_p=`cat conftestval`
4656 echo "configure: failed program was:" >&5
4657 cat conftest.$ac_ext >&5
4659 ac_cv_sizeof_void_p=0
4662 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
4663 { test "$extra_verbose" = "yes" && cat << EOF
4664 Defining SIZEOF_VOID_P = $ac_cv_sizeof_void_p
4666 cat >> confdefs.h <<EOF
4667 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4673 echo $ac_n "checking for long file names""... $ac_c" 1>&6
4674 echo "configure:4675: checking for long file names" >&5
4676 ac_cv_sys_long_file_names=yes
4677 # Test for long file names in all the places we know might matter:
4678 # . the current directory, where building will happen
4679 # $prefix/lib where we will be installing things
4680 # $exec_prefix/lib likewise
4681 # eval it to expand exec_prefix.
4682 # $TMPDIR if set, where it might want to write temporary files
4683 # if $TMPDIR is not set:
4684 # /tmp where it might want to write temporary files
4687 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
4688 ac_tmpdirs="$TMPDIR"
4690 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
4692 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
4693 test -d $ac_dir || continue
4694 test -w $ac_dir || continue # It is less confusing to not echo anything here.
4695 (echo 1 > $ac_dir/conftest9012345) 2>/dev/null
4696 (echo 2 > $ac_dir/conftest9012346) 2>/dev/null
4697 val=`cat $ac_dir/conftest9012345 2>/dev/null`
4698 if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then
4699 ac_cv_sys_long_file_names=no
4700 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
4703 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
4706 echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
4707 if test $ac_cv_sys_long_file_names = yes; then
4708 { test "$extra_verbose" = "yes" && cat << \EOF
4709 Defining HAVE_LONG_FILE_NAMES
4711 cat >> confdefs.h <<\EOF
4712 #define HAVE_LONG_FILE_NAMES 1
4719 echo $ac_n "checking for sin""... $ac_c" 1>&6
4720 echo "configure:4721: checking for sin" >&5
4722 cat > conftest.$ac_ext <<EOF
4723 #line 4724 "configure"
4724 #include "confdefs.h"
4725 /* System header to define __stub macros and hopefully few prototypes,
4726 which can conflict with char sin(); below. */
4728 /* Override any gcc2 internal prototype to avoid an error. */
4729 /* We use char because int might match the return type of a gcc2
4730 builtin and then its argument prototype would still apply. */
4735 /* The GNU C library defines this for functions which it implements
4736 to always fail with ENOSYS. Some functions are actually named
4737 something starting with __ and the normal name is an alias. */
4738 #if defined (__stub_sin) || defined (__stub___sin)
4746 if { (eval echo configure:4747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4748 eval "ac_cv_func_sin=yes"
4750 echo "configure: failed program was:" >&5
4751 cat conftest.$ac_ext >&5
4753 eval "ac_cv_func_sin=no"
4757 if eval "test \"`echo '$ac_cv_func_'sin`\" = yes"; then
4758 echo "$ac_t""yes" 1>&6
4761 echo "$ac_t""no" 1>&6
4763 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
4764 echo "configure:4765: checking for sin in -lm" >&5
4765 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
4767 xe_check_libs=" -lm "
4768 cat > conftest.$ac_ext <<EOF
4769 #line 4770 "configure"
4770 #include "confdefs.h"
4771 /* Override any gcc2 internal prototype to avoid an error. */
4772 /* We use char because int might match the return type of a gcc2
4773 builtin and then its argument prototype would still apply. */
4780 if { (eval echo configure:4781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4782 eval "ac_cv_lib_$ac_lib_var=yes"
4784 echo "configure: failed program was:" >&5
4785 cat conftest.$ac_ext >&5
4787 eval "ac_cv_lib_$ac_lib_var=no"
4792 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4793 echo "$ac_t""yes" 1>&6
4794 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/^a-zA-Z0-9_/_/g' \
4795 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4796 { test "$extra_verbose" = "yes" && cat << EOF
4799 cat >> confdefs.h <<EOF
4800 #define $ac_tr_lib 1
4804 LIBS="-lm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lm\" to \$LIBS"; fi
4807 echo "$ac_t""no" 1>&6
4814 { test "$extra_verbose" = "yes" && cat << \EOF
4815 Defining LISP_FLOAT_TYPE
4817 cat >> confdefs.h <<\EOF
4818 #define LISP_FLOAT_TYPE 1
4823 cat > conftest.$ac_ext <<EOF
4824 #line 4825 "configure"
4825 #include "confdefs.h"
4828 return atanh(1.0) + asinh(1.0) + acosh(1.0);
4831 if { (eval echo configure:4832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4833 { test "$extra_verbose" = "yes" && cat << \EOF
4834 Defining HAVE_INVERSE_HYPERBOLIC
4836 cat >> confdefs.h <<\EOF
4837 #define HAVE_INVERSE_HYPERBOLIC 1
4842 echo "configure: failed program was:" >&5
4843 cat conftest.$ac_ext >&5
4847 echo "checking type of mail spool file locking" 1>&6
4848 echo "configure:4849: checking type of mail spool file locking" >&5
4849 for ac_func in lockf flock
4851 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4852 echo "configure:4853: checking for $ac_func" >&5
4854 cat > conftest.$ac_ext <<EOF
4855 #line 4856 "configure"
4856 #include "confdefs.h"
4857 /* System header to define __stub macros and hopefully few prototypes,
4858 which can conflict with char $ac_func(); below. */
4860 /* Override any gcc2 internal prototype to avoid an error. */
4861 /* We use char because int might match the return type of a gcc2
4862 builtin and then its argument prototype would still apply. */
4867 /* The GNU C library defines this for functions which it implements
4868 to always fail with ENOSYS. Some functions are actually named
4869 something starting with __ and the normal name is an alias. */
4870 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4878 if { (eval echo configure:4879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4880 eval "ac_cv_func_$ac_func=yes"
4882 echo "configure: failed program was:" >&5
4883 cat conftest.$ac_ext >&5
4885 eval "ac_cv_func_$ac_func=no"
4889 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4890 echo "$ac_t""yes" 1>&6
4891 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4892 { test "$extra_verbose" = "yes" && cat << EOF
4893 Defining $ac_tr_func
4895 cat >> confdefs.h <<EOF
4896 #define $ac_tr_func 1
4901 echo "$ac_t""no" 1>&6
4905 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock
4906 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf
4907 test -z "$mail_locking" -a "$mail_use_locking" = "yes" && mail_locking=locking
4908 if test -z "$mail_locking"; then
4909 case "$opsys" in cygwin* | mingw*)
4914 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF
4915 Defining MAIL_LOCK_LOCKF
4917 cat >> confdefs.h <<\EOF
4918 #define MAIL_LOCK_LOCKF 1
4922 elif test "$mail_locking" = "flock"; then { test "$extra_verbose" = "yes" && cat << \EOF
4923 Defining MAIL_LOCK_FLOCK
4925 cat >> confdefs.h <<\EOF
4926 #define MAIL_LOCK_FLOCK 1
4930 elif test "$mail_locking" = "locking"; then { test "$extra_verbose" = "yes" && cat << \EOF
4931 Defining MAIL_LOCK_LOCKING
4933 cat >> confdefs.h <<\EOF
4934 #define MAIL_LOCK_LOCKING 1
4938 elif test "$mail_locking" = "pop"; then
4941 else mail_locking="dot-locking"; { test "$extra_verbose" = "yes" && cat << \EOF
4942 Defining MAIL_LOCK_DOT
4944 cat >> confdefs.h <<\EOF
4945 #define MAIL_LOCK_DOT 1
4950 test "$mail_locking" = "lockf" -a "$ac_cv_func_lockf" != "yes" && \
4951 { echo "Error:" "lockf mail locking requested but not available." >&2; exit 1; }
4952 test "$mail_locking" = "flock" -a "$ac_cv_func_flock" != "yes" && \
4953 { echo "Error:" "flock mail locking requested but not available." >&2; exit 1; }
4954 test "$mail_locking" = "locking" -a "$ac_cv_func_locking" != "yes" && \
4955 { echo "Error:" "locking mail locking requested but not available." >&2; exit 1; }
4957 case "$opsys" in decosf*)
4959 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
4960 echo "configure:4961: checking for cma_open in -lpthreads" >&5
4961 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
4963 xe_check_libs=" -lpthreads "
4964 cat > conftest.$ac_ext <<EOF
4965 #line 4966 "configure"
4966 #include "confdefs.h"
4967 /* Override any gcc2 internal prototype to avoid an error. */
4968 /* We use char because int might match the return type of a gcc2
4969 builtin and then its argument prototype would still apply. */
4976 if { (eval echo configure:4977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4978 eval "ac_cv_lib_$ac_lib_var=yes"
4980 echo "configure: failed program was:" >&5
4981 cat conftest.$ac_ext >&5
4983 eval "ac_cv_lib_$ac_lib_var=no"
4988 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4989 echo "$ac_t""yes" 1>&6
4990 ac_tr_lib=HAVE_LIB`echo pthreads | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4991 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4992 { test "$extra_verbose" = "yes" && cat << EOF
4995 cat >> confdefs.h <<EOF
4996 #define $ac_tr_lib 1
5000 LIBS="-lpthreads $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpthreads\" to \$LIBS"; fi
5003 echo "$ac_t""no" 1>&6
5007 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \
5008 c_switch_site="$c_switch_site -threads" ;;
5012 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6
5013 echo "configure:5014: checking whether the -xildoff compiler flag is required" >&5
5014 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
5015 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ;
5016 then echo "$ac_t""no" 1>&6;
5017 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
5019 else echo "$ac_t""no" 1>&6
5022 if test "$opsys" = "sol2"; then
5023 if test "$os_release" -ge 56; then
5024 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6
5025 echo "configure:5026: checking for \"-z ignore\" linker flag" >&5
5026 case "`ld -h 2>&1`" in
5027 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6
5028 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;;
5029 *) echo "$ac_t""no" 1>&6 ;;
5035 echo "checking "for specified window system"" 1>&6
5036 echo "configure:5037: checking "for specified window system"" >&5
5042 if test "$with_gnome" != "no"; then
5043 echo $ac_n "checking for GNOME configuration script""... $ac_c" 1>&6
5044 echo "configure:5045: checking for GNOME configuration script" >&5
5045 for possible in gnome-config
5047 possible_version=`${possible} --version 2> /dev/null`
5048 if test "x${possible_version}" != "x"; then
5049 GNOME_CONFIG="${possible}"
5055 echo "$ac_t""${GNOME_CONFIG}" 1>&6
5058 if test "${GNOME_CONFIG}" != "no"; then
5059 GNOME_LIBS=`${GNOME_CONFIG} --libs gnomeui`
5060 GNOME_CFLAGS=`${GNOME_CONFIG} --cflags gnomeui`
5061 { test "$extra_verbose" = "yes" && cat << \EOF
5064 cat >> confdefs.h <<\EOF
5065 #define HAVE_GNOME 1
5069 libs_gtk="$libs_gtk ${GNOME_LIBS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GNOME_LIBS}\" to \$libs_gtk"; fi
5070 c_switch_gtk="$c_switch_gtk ${GNOME_CFLAGS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GNOME_CFLAGS}\" to \$c_switch_gtk"; fi
5073 if test "$with_gtk" != "no";then
5074 echo $ac_n "checking for GTK configuration script""... $ac_c" 1>&6
5075 echo "configure:5076: checking for GTK configuration script" >&5
5076 for possible in gtk12-config gtk14-config gtk-config
5078 possible_version=`${possible} --version 2> /dev/null`
5079 if test "x${possible_version}" != "x"; then
5080 GTK_CONFIG="${possible}"
5082 case "${possible_version}" in
5083 1.0.*) echo "configure: warning: GTK 1.2 is required, please upgrade your version of GTK." 1>&2; with_gtk=no;;
5084 1.3.*) echo "configure: warning: GTK 1.3 is not supported right now" 1>&2; with_gtk=no;;
5089 *) echo "configure: warning: Found unsupported version of GTK: $possible_version" 1>&2;;
5092 echo "$ac_t""${GTK_CONFIG}" 1>&6
5095 if test "${GTK_CONFIG}" != "no"; then
5096 echo $ac_n "checking gtk version""... $ac_c" 1>&6
5097 echo "configure:5098: checking gtk version" >&5
5098 GTK_VERSION=`${GTK_CONFIG} --version`
5099 echo "$ac_t""${GTK_VERSION}" 1>&6
5101 echo $ac_n "checking gtk libs""... $ac_c" 1>&6
5102 echo "configure:5103: checking gtk libs" >&5
5103 GTK_LIBS=`${GTK_CONFIG} --libs`
5104 libs_gtk="$libs_gtk ${GTK_LIBS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GTK_LIBS}\" to \$libs_gtk"; fi
5105 echo "$ac_t""${GTK_LIBS}" 1>&6
5107 echo $ac_n "checking gtk cflags""... $ac_c" 1>&6
5108 echo "configure:5109: checking gtk cflags" >&5
5109 GTK_CFLAGS=`${GTK_CONFIG} --cflags`
5110 if test "$GCC" = "yes"; then
5111 GTK_CFLAGS="${GTK_CFLAGS} -Wno-shadow"
5113 c_switch_gtk="$c_switch_gtk ${GTK_CFLAGS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GTK_CFLAGS}\" to \$c_switch_gtk"; fi
5114 echo "$ac_t""${GTK_CFLAGS}" 1>&6
5117 echo $ac_n "checking for main in -lgdk_imlib""... $ac_c" 1>&6
5118 echo "configure:5119: checking for main in -lgdk_imlib" >&5
5119 ac_lib_var=`echo gdk_imlib'_'main | sed 'y%./+-%__p_%'`
5121 xe_check_libs=" -lgdk_imlib "
5122 cat > conftest.$ac_ext <<EOF
5123 #line 5124 "configure"
5124 #include "confdefs.h"
5130 if { (eval echo configure:5131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5132 eval "ac_cv_lib_$ac_lib_var=yes"
5134 echo "configure: failed program was:" >&5
5135 cat conftest.$ac_ext >&5
5137 eval "ac_cv_lib_$ac_lib_var=no"
5142 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5143 echo "$ac_t""yes" 1>&6
5144 libs_gtk="-lgdk_imlib $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgdk_imlib\" to \$libs_gtk"; fi
5146 echo "$ac_t""no" 1>&6
5151 echo $ac_n "checking for Imlib_init in -lImlib""... $ac_c" 1>&6
5152 echo "configure:5153: checking for Imlib_init in -lImlib" >&5
5153 ac_lib_var=`echo Imlib'_'Imlib_init | sed 'y%./+-%__p_%'`
5155 xe_check_libs=" -lImlib "
5156 cat > conftest.$ac_ext <<EOF
5157 #line 5158 "configure"
5158 #include "confdefs.h"
5159 /* Override any gcc2 internal prototype to avoid an error. */
5160 /* We use char because int might match the return type of a gcc2
5161 builtin and then its argument prototype would still apply. */
5168 if { (eval echo configure:5169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5170 eval "ac_cv_lib_$ac_lib_var=yes"
5172 echo "configure: failed program was:" >&5
5173 cat conftest.$ac_ext >&5
5175 eval "ac_cv_lib_$ac_lib_var=no"
5180 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5181 echo "$ac_t""yes" 1>&6
5182 libs_gtk="$libs_gtk -lImlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lImlib\" to \$libs_gtk"; fi
5184 echo "$ac_t""no" 1>&6
5188 for ac_func in gdk_imlib_init
5190 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5191 echo "configure:5192: checking for $ac_func" >&5
5193 cat > conftest.$ac_ext <<EOF
5194 #line 5195 "configure"
5195 #include "confdefs.h"
5196 /* System header to define __stub macros and hopefully few prototypes,
5197 which can conflict with char $ac_func(); below. */
5199 /* Override any gcc2 internal prototype to avoid an error. */
5200 /* We use char because int might match the return type of a gcc2
5201 builtin and then its argument prototype would still apply. */
5206 /* The GNU C library defines this for functions which it implements
5207 to always fail with ENOSYS. Some functions are actually named
5208 something starting with __ and the normal name is an alias. */
5209 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5217 if { (eval echo configure:5218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5219 eval "ac_cv_func_$ac_func=yes"
5221 echo "configure: failed program was:" >&5
5222 cat conftest.$ac_ext >&5
5224 eval "ac_cv_func_$ac_func=no"
5228 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5229 echo "$ac_t""yes" 1>&6
5230 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5231 { test "$extra_verbose" = "yes" && cat << EOF
5232 Defining $ac_tr_func
5234 cat >> confdefs.h <<EOF
5235 #define $ac_tr_func 1
5240 echo "$ac_t""no" 1>&6
5245 { test "$extra_verbose" = "yes" && cat << \EOF
5248 cat >> confdefs.h <<\EOF
5253 { test "$extra_verbose" = "yes" && cat << \EOF
5256 cat >> confdefs.h <<\EOF
5267 test "${with_scrollbars}" != "no" && with_scrollbars=gtk
5268 test "${with_toolbars}" != no && with_toolbars=gtk
5269 test "${with_menubars}" != "no" && with_menubars=gtk
5270 test "${with_dialogs}" != "no" && with_dialogs=gtk
5271 test "${with_widgets}" != "no" && with_widgets=gtk
5273 extra_objs="$extra_objs console-gtk.o device-gtk.o event-gtk.o frame-gtk.o" && if test "$extra_verbose" = "yes"; then
5274 echo " xemacs will be linked with \"console-gtk.o device-gtk.o event-gtk.o frame-gtk.o\""
5276 extra_objs="$extra_objs objects-gtk.o redisplay-gtk.o glyphs-gtk.o" && if test "$extra_verbose" = "yes"; then
5277 echo " xemacs will be linked with \"objects-gtk.o redisplay-gtk.o glyphs-gtk.o\""
5279 extra_objs="$extra_objs select-gtk.o gccache-gtk.o" && if test "$extra_verbose" = "yes"; then
5280 echo " xemacs will be linked with \"select-gtk.o gccache-gtk.o\""
5282 extra_objs="$extra_objs gtk-xemacs.o ui-gtk.o" && if test "$extra_verbose" = "yes"; then
5283 echo " xemacs will be linked with \"gtk-xemacs.o ui-gtk.o\""
5286 OLD_CFLAGS="${CFLAGS}"
5287 OLD_CPPFLAGS="${CPPFLAGS}"
5288 OLD_LDFLAGS="${LDFLAGS}"
5289 CFLAGS="${GTK_CFLAGS} ${CFLAGS}"
5290 CPPFLAGS="${GTK_CFLAGS} ${CFLAGS}"
5291 LDFLAGS="${LDFLAGS} ${GTK_LIBS}"
5292 for ac_hdr in glade/glade.h glade.h
5294 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5295 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5296 echo "configure:5297: checking for $ac_hdr" >&5
5298 cat > conftest.$ac_ext <<EOF
5299 #line 5300 "configure"
5300 #include "confdefs.h"
5303 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5304 { (eval echo configure:5305: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5305 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5306 if test -z "$ac_err"; then
5308 eval "ac_cv_header_$ac_safe=yes"
5311 echo "configure: failed program was:" >&5
5312 cat conftest.$ac_ext >&5
5314 eval "ac_cv_header_$ac_safe=no"
5317 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5318 echo "$ac_t""yes" 1>&6
5319 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5320 { test "$extra_verbose" = "yes" && cat << EOF
5323 cat >> confdefs.h <<EOF
5324 #define $ac_tr_hdr 1
5329 echo "$ac_t""no" 1>&6
5334 echo $ac_n "checking for main in -lxml""... $ac_c" 1>&6
5335 echo "configure:5336: checking for main in -lxml" >&5
5336 ac_lib_var=`echo xml'_'main | sed 'y%./+-%__p_%'`
5338 xe_check_libs=" -lxml "
5339 cat > conftest.$ac_ext <<EOF
5340 #line 5341 "configure"
5341 #include "confdefs.h"
5347 if { (eval echo configure:5348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5349 eval "ac_cv_lib_$ac_lib_var=yes"
5351 echo "configure: failed program was:" >&5
5352 cat conftest.$ac_ext >&5
5354 eval "ac_cv_lib_$ac_lib_var=no"
5359 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5360 echo "$ac_t""yes" 1>&6
5361 libs_gtk="-lxml $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lxml\" to \$libs_gtk"; fi
5363 echo "$ac_t""no" 1>&6
5368 echo $ac_n "checking for main in -lglade""... $ac_c" 1>&6
5369 echo "configure:5370: checking for main in -lglade" >&5
5370 ac_lib_var=`echo glade'_'main | sed 'y%./+-%__p_%'`
5372 xe_check_libs=" -lglade "
5373 cat > conftest.$ac_ext <<EOF
5374 #line 5375 "configure"
5375 #include "confdefs.h"
5381 if { (eval echo configure:5382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5383 eval "ac_cv_lib_$ac_lib_var=yes"
5385 echo "configure: failed program was:" >&5
5386 cat conftest.$ac_ext >&5
5388 eval "ac_cv_lib_$ac_lib_var=no"
5393 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5394 echo "$ac_t""yes" 1>&6
5395 libs_gtk="-lglade $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lglade\" to \$libs_gtk"; fi
5397 echo "$ac_t""no" 1>&6
5402 echo $ac_n "checking for main in -lglade-gnome""... $ac_c" 1>&6
5403 echo "configure:5404: checking for main in -lglade-gnome" >&5
5404 ac_lib_var=`echo glade-gnome'_'main | sed 'y%./+-%__p_%'`
5406 xe_check_libs=" -lglade-gnome "
5407 cat > conftest.$ac_ext <<EOF
5408 #line 5409 "configure"
5409 #include "confdefs.h"
5415 if { (eval echo configure:5416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5417 eval "ac_cv_lib_$ac_lib_var=yes"
5419 echo "configure: failed program was:" >&5
5420 cat conftest.$ac_ext >&5
5422 eval "ac_cv_lib_$ac_lib_var=no"
5427 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5428 echo "$ac_t""yes" 1>&6
5429 libs_gtk="-lglade-gnome $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lglade-gnome\" to \$libs_gtk"; fi
5431 echo "$ac_t""no" 1>&6
5435 cat > conftest.$ac_ext <<EOF
5436 #line 5437 "configure"
5437 #include "confdefs.h"
5438 #include <glade/glade-xml.h>
5440 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5441 egrep "char \*txtdomain;" >/dev/null 2>&1; then
5443 echo "$ac_t""yes" 1>&6
5444 { test "$extra_verbose" = "yes" && cat << \EOF
5445 Defining LIBGLADE_XML_TXTDOMAIN = 1
5447 cat >> confdefs.h <<\EOF
5448 #define LIBGLADE_XML_TXTDOMAIN 1
5454 echo "$ac_t""no" 1>&6
5458 CFLAGS="${OLD_CFLAGS}"
5459 CPPFLAGS="${OLD_CPPFLAGS}"
5460 LDFLAGS="${OLD_LDFLAGS}"
5464 if test "$with_x11" != "no"; then
5465 test "$x_includes $x_libraries" != "NONE NONE" && \
5466 window_system=x11 with_x11=yes
5469 if test "$x_includes $x_libraries" = "NONE NONE" \
5470 -a -n "$OPENWINHOME" \
5471 -a "$OPENWINHOME" != "/usr/openwin" \
5472 -a -d "$OPENWINHOME"; then
5473 test -d "$OPENWINHOME/lib" && x_libraries="$OPENWINHOME/lib"
5474 test -d "$OPENWINHOME/include" && x_includes="$OPENWINHOME/include"
5475 test -d "$OPENWINHOME/share/include" && x_includes="$OPENWINHOME/share/include"
5478 if test "$x_includes" = "NONE"; then
5479 for dir in "/usr/X11" "/usr/X11R6"; do
5480 if test -d "$dir/include/X11"; then x_includes="$dir/include"; break; fi
5484 if test "$x_libraries" = "NONE"; then
5485 for dir in "/usr/X11/lib" "/usr/X11R6/lib" "/usr/lib/X11R6"; do
5486 if test -r "$dir/libX11.a"; then x_libraries="$dir"; break; fi
5490 # If we find X, set shell vars x_includes and x_libraries to the
5491 # paths, otherwise set no_x=yes.
5492 # Uses ac_ vars as temps to allow command line to override cache and checks.
5493 # --without-x overrides everything else, but does not touch the cache.
5494 echo $ac_n "checking for X""... $ac_c" 1>&6
5495 echo "configure:5496: checking for X" >&5
5497 # Check whether --with-x or --without-x was given.
5498 if test "${with_x+set}" = set; then
5503 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5504 if test "x$with_x" = xno; then
5505 # The user explicitly disabled X.
5508 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
5509 # Both variables are already set.
5513 # One or both of the vars are not set, and there is no cached value.
5514 ac_x_includes=NO ac_x_libraries=NO
5516 if mkdir conftestdir; then
5518 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5519 cat > Imakefile <<'EOF'
5521 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5523 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5524 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5525 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5526 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5527 for ac_extension in a so sl; do
5528 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
5529 test -f $ac_im_libdir/libX11.$ac_extension; then
5530 ac_im_usrlibdir=$ac_im_libdir; break
5533 # Screen out bogus values from the imake configuration. They are
5534 # bogus both because they are the default anyway, and because
5535 # using them would break gcc on systems where it needs fixed includes.
5536 case "$ac_im_incroot" in
5538 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
5540 case "$ac_im_usrlibdir" in
5542 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
5549 if test "$ac_x_includes" = NO; then
5550 # Guess where to find include files, by looking for this one X11 .h file.
5551 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
5553 # First, try using that file with no special directory specified.
5554 cat > conftest.$ac_ext <<EOF
5555 #line 5556 "configure"
5556 #include "confdefs.h"
5557 #include <$x_direct_test_include>
5559 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5560 { (eval echo configure:5561: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5561 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5562 if test -z "$ac_err"; then
5564 # We can compile using X headers with no special include directory.
5568 echo "configure: failed program was:" >&5
5569 cat conftest.$ac_ext >&5
5571 # Look for the header file in a standard set of common directories.
5572 # Check X11 before X11Rn because it is often a symlink to the current release.
5575 /usr/X11R6/include \
5576 /usr/X11R5/include \
5577 /usr/X11R4/include \
5580 /usr/include/X11R6 \
5581 /usr/include/X11R5 \
5582 /usr/include/X11R4 \
5584 /usr/local/X11/include \
5585 /usr/local/X11R6/include \
5586 /usr/local/X11R5/include \
5587 /usr/local/X11R4/include \
5589 /usr/local/include/X11 \
5590 /usr/local/include/X11R6 \
5591 /usr/local/include/X11R5 \
5592 /usr/local/include/X11R4 \
5596 /usr/XFree86/include/X11 \
5599 /usr/local/include \
5600 /usr/unsupported/include \
5601 /usr/athena/include \
5602 /usr/local/x11r5/include \
5603 /usr/lpp/Xamples/include \
5605 /usr/openwin/include \
5606 /usr/openwin/share/include \
5609 if test -r "$ac_dir/$x_direct_test_include"; then
5610 ac_x_includes=$ac_dir
5616 fi # $ac_x_includes = NO
5618 if test "$ac_x_libraries" = NO; then
5619 # Check for the libraries.
5621 test -z "$x_direct_test_library" && x_direct_test_library=Xt
5622 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
5624 # See if we find them without any special options.
5625 # Don't add to $LIBS permanently.
5626 ac_save_LIBS="$LIBS"
5627 LIBS="-l$x_direct_test_library $LIBS"
5628 cat > conftest.$ac_ext <<EOF
5629 #line 5630 "configure"
5630 #include "confdefs.h"
5633 ${x_direct_test_function}()
5636 if { (eval echo configure:5637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5638 LIBS="$ac_save_LIBS"
5639 # We can link X programs with no special library path.
5642 echo "configure: failed program was:" >&5
5643 cat conftest.$ac_ext >&5
5645 LIBS="$ac_save_LIBS"
5646 # First see if replacing the include by lib works.
5647 # Check X11 before X11Rn because it is often a symlink to the current release.
5648 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
5659 /usr/local/X11/lib \
5660 /usr/local/X11R6/lib \
5661 /usr/local/X11R5/lib \
5662 /usr/local/X11R4/lib \
5664 /usr/local/lib/X11 \
5665 /usr/local/lib/X11R6 \
5666 /usr/local/lib/X11R5 \
5667 /usr/local/lib/X11R4 \
5671 /usr/XFree86/lib/X11 \
5675 /usr/unsupported/lib \
5677 /usr/local/x11r5/lib \
5678 /usr/lpp/Xamples/lib \
5682 /usr/openwin/share/lib \
5685 for ac_extension in a so sl; do
5686 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
5687 ac_x_libraries=$ac_dir
5694 fi # $ac_x_libraries = NO
5696 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
5697 # Didn't find X anywhere. Cache the known absence of X.
5698 ac_cv_have_x="have_x=no"
5700 # Record where we found X for the cache.
5701 ac_cv_have_x="have_x=yes \
5702 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5705 eval "$ac_cv_have_x"
5708 if test "$have_x" != yes; then
5709 echo "$ac_t""$have_x" 1>&6
5712 # If each of the values was on the command line, it overrides each guess.
5713 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5714 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5715 # Update the cache value to reflect the command line values.
5716 ac_cv_have_x="have_x=yes \
5717 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5718 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
5721 if test "$no_x" = yes; then
5722 # Not all programs may use this symbol, but it does not hurt to define it.
5723 { test "$extra_verbose" = "yes" && cat << \EOF
5724 Defining X_DISPLAY_MISSING
5726 cat >> confdefs.h <<\EOF
5727 #define X_DISPLAY_MISSING 1
5731 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5733 if test -n "$x_includes"; then
5734 X_CFLAGS="$X_CFLAGS -I$x_includes"
5737 # It would also be nice to do this for all -L options, not just this one.
5738 if test -n "$x_libraries"; then
5739 X_LIBS="$X_LIBS -L$x_libraries"
5740 # For Solaris; some versions of Sun CC require a space after -R and
5741 # others require no space. Words are not sufficient . . . .
5742 case "`(uname -sr) 2>/dev/null`" in
5744 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
5745 echo "configure:5746: checking whether -R must be followed by a space" >&5
5746 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
5747 cat > conftest.$ac_ext <<EOF
5748 #line 5749 "configure"
5749 #include "confdefs.h"
5755 if { (eval echo configure:5756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5759 echo "configure: failed program was:" >&5
5760 cat conftest.$ac_ext >&5
5765 if test $ac_R_nospace = yes; then
5766 echo "$ac_t""no" 1>&6
5767 X_LIBS="$X_LIBS -R$x_libraries"
5769 LIBS="$ac_xsave_LIBS -R $x_libraries"
5770 cat > conftest.$ac_ext <<EOF
5771 #line 5772 "configure"
5772 #include "confdefs.h"
5778 if { (eval echo configure:5779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5782 echo "configure: failed program was:" >&5
5783 cat conftest.$ac_ext >&5
5788 if test $ac_R_space = yes; then
5789 echo "$ac_t""yes" 1>&6
5790 X_LIBS="$X_LIBS -R $x_libraries"
5792 echo "$ac_t""neither works" 1>&6
5795 LIBS="$ac_xsave_LIBS"
5799 # Check for system-dependent libraries X programs must link with.
5800 # Do this before checking for the system-independent R6 libraries
5801 # (-lICE), since we may need -lsocket or whatever for X linking.
5803 if test "$ISC" = yes; then
5804 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5806 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
5807 # libraries were built with DECnet support. And karl@cs.umb.edu says
5808 # the Alpha needs dnet_stub (dnet does not exist).
5809 if test "$with_dnet" = "no" ; then
5810 ac_cv_lib_dnet_dnet_ntoa=no
5813 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
5814 echo "configure:5815: checking for dnet_ntoa in -ldnet" >&5
5815 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5817 xe_check_libs=" -ldnet "
5818 cat > conftest.$ac_ext <<EOF
5819 #line 5820 "configure"
5820 #include "confdefs.h"
5821 /* Override any gcc2 internal prototype to avoid an error. */
5822 /* We use char because int might match the return type of a gcc2
5823 builtin and then its argument prototype would still apply. */
5830 if { (eval echo configure:5831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5832 eval "ac_cv_lib_$ac_lib_var=yes"
5834 echo "configure: failed program was:" >&5
5835 cat conftest.$ac_ext >&5
5837 eval "ac_cv_lib_$ac_lib_var=no"
5842 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5843 echo "$ac_t""yes" 1>&6
5844 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5846 echo "$ac_t""no" 1>&6
5851 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5853 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
5854 echo "configure:5855: checking for dnet_ntoa in -ldnet_stub" >&5
5855 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5857 xe_check_libs=" -ldnet_stub "
5858 cat > conftest.$ac_ext <<EOF
5859 #line 5860 "configure"
5860 #include "confdefs.h"
5861 /* Override any gcc2 internal prototype to avoid an error. */
5862 /* We use char because int might match the return type of a gcc2
5863 builtin and then its argument prototype would still apply. */
5870 if { (eval echo configure:5871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5872 eval "ac_cv_lib_$ac_lib_var=yes"
5874 echo "configure: failed program was:" >&5
5875 cat conftest.$ac_ext >&5
5877 eval "ac_cv_lib_$ac_lib_var=no"
5882 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5883 echo "$ac_t""yes" 1>&6
5884 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5886 echo "$ac_t""no" 1>&6
5892 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5893 # to get the SysV transport functions.
5894 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
5896 # The nsl library prevents programs from opening the X display
5897 # on Irix 5.2, according to dickey@clark.net.
5898 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
5899 echo "configure:5900: checking for gethostbyname" >&5
5901 cat > conftest.$ac_ext <<EOF
5902 #line 5903 "configure"
5903 #include "confdefs.h"
5904 /* System header to define __stub macros and hopefully few prototypes,
5905 which can conflict with char gethostbyname(); below. */
5907 /* Override any gcc2 internal prototype to avoid an error. */
5908 /* We use char because int might match the return type of a gcc2
5909 builtin and then its argument prototype would still apply. */
5910 char gethostbyname();
5914 /* The GNU C library defines this for functions which it implements
5915 to always fail with ENOSYS. Some functions are actually named
5916 something starting with __ and the normal name is an alias. */
5917 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5925 if { (eval echo configure:5926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5927 eval "ac_cv_func_gethostbyname=yes"
5929 echo "configure: failed program was:" >&5
5930 cat conftest.$ac_ext >&5
5932 eval "ac_cv_func_gethostbyname=no"
5936 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
5937 echo "$ac_t""yes" 1>&6
5940 echo "$ac_t""no" 1>&6
5943 if test $ac_cv_func_gethostbyname = no; then
5945 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
5946 echo "configure:5947: checking for gethostbyname in -lnsl" >&5
5947 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
5949 xe_check_libs=" -lnsl "
5950 cat > conftest.$ac_ext <<EOF
5951 #line 5952 "configure"
5952 #include "confdefs.h"
5953 /* Override any gcc2 internal prototype to avoid an error. */
5954 /* We use char because int might match the return type of a gcc2
5955 builtin and then its argument prototype would still apply. */
5956 char gethostbyname();
5962 if { (eval echo configure:5963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5964 eval "ac_cv_lib_$ac_lib_var=yes"
5966 echo "configure: failed program was:" >&5
5967 cat conftest.$ac_ext >&5
5969 eval "ac_cv_lib_$ac_lib_var=no"
5974 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5975 echo "$ac_t""yes" 1>&6
5976 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5978 echo "$ac_t""no" 1>&6
5984 # lieder@skyler.mavd.honeywell.com says without -lsocket,
5985 # socket/setsockopt and other routines are undefined under SCO ODT
5986 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5987 # on later versions), says simon@lia.di.epfl.ch: it contains
5988 # gethostby* variants that don't use the nameserver (or something).
5989 # -lsocket must be given before -lnsl if both are needed.
5990 # We assume that if connect needs -lnsl, so does gethostbyname.
5991 echo $ac_n "checking for connect""... $ac_c" 1>&6
5992 echo "configure:5993: checking for connect" >&5
5994 cat > conftest.$ac_ext <<EOF
5995 #line 5996 "configure"
5996 #include "confdefs.h"
5997 /* System header to define __stub macros and hopefully few prototypes,
5998 which can conflict with char connect(); below. */
6000 /* Override any gcc2 internal prototype to avoid an error. */
6001 /* We use char because int might match the return type of a gcc2
6002 builtin and then its argument prototype would still apply. */
6007 /* The GNU C library defines this for functions which it implements
6008 to always fail with ENOSYS. Some functions are actually named
6009 something starting with __ and the normal name is an alias. */
6010 #if defined (__stub_connect) || defined (__stub___connect)
6018 if { (eval echo configure:6019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6020 eval "ac_cv_func_connect=yes"
6022 echo "configure: failed program was:" >&5
6023 cat conftest.$ac_ext >&5
6025 eval "ac_cv_func_connect=no"
6029 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
6030 echo "$ac_t""yes" 1>&6
6033 echo "$ac_t""no" 1>&6
6036 if test $ac_cv_func_connect = no; then
6038 xe_msg_checking="for connect in -lsocket"
6039 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
6040 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6041 echo "configure:6042: checking "$xe_msg_checking"" >&5
6042 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
6044 xe_check_libs=" -lsocket $X_EXTRA_LIBS"
6045 cat > conftest.$ac_ext <<EOF
6046 #line 6047 "configure"
6047 #include "confdefs.h"
6048 /* Override any gcc2 internal prototype to avoid an error. */
6049 /* We use char because int might match the return type of a gcc2
6050 builtin and then its argument prototype would still apply. */
6057 if { (eval echo configure:6058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6059 eval "ac_cv_lib_$ac_lib_var=yes"
6061 echo "configure: failed program was:" >&5
6062 cat conftest.$ac_ext >&5
6064 eval "ac_cv_lib_$ac_lib_var=no"
6069 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6070 echo "$ac_t""yes" 1>&6
6071 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6073 echo "$ac_t""no" 1>&6
6079 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
6080 echo $ac_n "checking for remove""... $ac_c" 1>&6
6081 echo "configure:6082: checking for remove" >&5
6083 cat > conftest.$ac_ext <<EOF
6084 #line 6085 "configure"
6085 #include "confdefs.h"
6086 /* System header to define __stub macros and hopefully few prototypes,
6087 which can conflict with char remove(); below. */
6089 /* Override any gcc2 internal prototype to avoid an error. */
6090 /* We use char because int might match the return type of a gcc2
6091 builtin and then its argument prototype would still apply. */
6096 /* The GNU C library defines this for functions which it implements
6097 to always fail with ENOSYS. Some functions are actually named
6098 something starting with __ and the normal name is an alias. */
6099 #if defined (__stub_remove) || defined (__stub___remove)
6107 if { (eval echo configure:6108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6109 eval "ac_cv_func_remove=yes"
6111 echo "configure: failed program was:" >&5
6112 cat conftest.$ac_ext >&5
6114 eval "ac_cv_func_remove=no"
6118 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
6119 echo "$ac_t""yes" 1>&6
6122 echo "$ac_t""no" 1>&6
6125 if test $ac_cv_func_remove = no; then
6127 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
6128 echo "configure:6129: checking for remove in -lposix" >&5
6129 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
6131 xe_check_libs=" -lposix "
6132 cat > conftest.$ac_ext <<EOF
6133 #line 6134 "configure"
6134 #include "confdefs.h"
6135 /* Override any gcc2 internal prototype to avoid an error. */
6136 /* We use char because int might match the return type of a gcc2
6137 builtin and then its argument prototype would still apply. */
6144 if { (eval echo configure:6145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6146 eval "ac_cv_lib_$ac_lib_var=yes"
6148 echo "configure: failed program was:" >&5
6149 cat conftest.$ac_ext >&5
6151 eval "ac_cv_lib_$ac_lib_var=no"
6156 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6157 echo "$ac_t""yes" 1>&6
6158 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6160 echo "$ac_t""no" 1>&6
6166 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6167 echo $ac_n "checking for shmat""... $ac_c" 1>&6
6168 echo "configure:6169: checking for shmat" >&5
6170 cat > conftest.$ac_ext <<EOF
6171 #line 6172 "configure"
6172 #include "confdefs.h"
6173 /* System header to define __stub macros and hopefully few prototypes,
6174 which can conflict with char shmat(); below. */
6176 /* Override any gcc2 internal prototype to avoid an error. */
6177 /* We use char because int might match the return type of a gcc2
6178 builtin and then its argument prototype would still apply. */
6183 /* The GNU C library defines this for functions which it implements
6184 to always fail with ENOSYS. Some functions are actually named
6185 something starting with __ and the normal name is an alias. */
6186 #if defined (__stub_shmat) || defined (__stub___shmat)
6194 if { (eval echo configure:6195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6196 eval "ac_cv_func_shmat=yes"
6198 echo "configure: failed program was:" >&5
6199 cat conftest.$ac_ext >&5
6201 eval "ac_cv_func_shmat=no"
6205 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
6206 echo "$ac_t""yes" 1>&6
6209 echo "$ac_t""no" 1>&6
6212 if test $ac_cv_func_shmat = no; then
6214 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
6215 echo "configure:6216: checking for shmat in -lipc" >&5
6216 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
6218 xe_check_libs=" -lipc "
6219 cat > conftest.$ac_ext <<EOF
6220 #line 6221 "configure"
6221 #include "confdefs.h"
6222 /* Override any gcc2 internal prototype to avoid an error. */
6223 /* We use char because int might match the return type of a gcc2
6224 builtin and then its argument prototype would still apply. */
6231 if { (eval echo configure:6232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6233 eval "ac_cv_lib_$ac_lib_var=yes"
6235 echo "configure: failed program was:" >&5
6236 cat conftest.$ac_ext >&5
6238 eval "ac_cv_lib_$ac_lib_var=no"
6243 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6244 echo "$ac_t""yes" 1>&6
6245 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6247 echo "$ac_t""no" 1>&6
6254 # Check for libraries that X11R6 Xt/Xaw programs need.
6255 ac_save_LDFLAGS="$LDFLAGS"
6256 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6257 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6258 # check for ICE first), but we must link in the order -lSM -lICE or
6259 # we get undefined symbols. So assume we have SM if we have ICE.
6260 # These have to be linked with before -lX11, unlike the other
6261 # libraries we check for below, so use a different variable.
6262 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
6264 xe_msg_checking="for IceConnectionNumber in -lICE"
6265 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
6266 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6267 echo "configure:6268: checking "$xe_msg_checking"" >&5
6268 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
6270 xe_check_libs=" -lICE $X_EXTRA_LIBS"
6271 cat > conftest.$ac_ext <<EOF
6272 #line 6273 "configure"
6273 #include "confdefs.h"
6274 /* Override any gcc2 internal prototype to avoid an error. */
6275 /* We use char because int might match the return type of a gcc2
6276 builtin and then its argument prototype would still apply. */
6277 char IceConnectionNumber();
6280 IceConnectionNumber()
6283 if { (eval echo configure:6284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6285 eval "ac_cv_lib_$ac_lib_var=yes"
6287 echo "configure: failed program was:" >&5
6288 cat conftest.$ac_ext >&5
6290 eval "ac_cv_lib_$ac_lib_var=no"
6295 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6296 echo "$ac_t""yes" 1>&6
6297 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6299 echo "$ac_t""no" 1>&6
6303 LDFLAGS="$ac_save_LDFLAGS"
6306 # Autoconf claims to find X library and include dirs for us.
6307 if test "$no_x" = "yes"
6308 then with_x11=no window_system=none HAVE_X_WINDOWS=no
6309 else with_x11=yes window_system=x11 HAVE_X_WINDOWS=yes
6314 if test "$with_x11" = "yes"; then
6315 { test "$extra_verbose" = "yes" && cat << \EOF
6316 Defining HAVE_X_WINDOWS
6318 cat >> confdefs.h <<\EOF
6319 #define HAVE_X_WINDOWS 1
6323 MAKE_SUBDIR="$MAKE_SUBDIR lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$MAKE_SUBDIR"; fi
6324 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$SRC_SUBDIR_DEPS"; fi
6326 for lib_dir in "/usr/dt/lib" "/usr/lib/Motif2.1" "/usr/lib/Motif1.2" "/usr/lib/Motif1.1"; do
6327 inc_dir=`echo $lib_dir | sed -e 's/lib/include/'`
6328 if test -d "$lib_dir" -a -d "$inc_dir"; then
6329 case "$x_libraries" in *"$lib_dir"* ) ;; *)
6330 x_libraries="$lib_dir $x_libraries"
6331 X_LIBS="-L${lib_dir} $X_LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-L${lib_dir}\" to \$X_LIBS"; fi ;;
6333 case "$x_includes" in "$inc_dir"* ) ;; *)
6334 x_includes="$inc_dir $x_includes"
6335 X_CFLAGS="-I${inc_dir} $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-I${inc_dir}\" to \$X_CFLAGS"; fi ;;
6340 for rel in "X11R6" "X11R5" "X11R4"; do
6341 lib_dir="/usr/contrib/$rel/lib" inc_dir="/usr/contrib/$rel/include"
6342 if test -d "$lib_dir" -a -d "$inc_dir"; then
6343 case "$x_libraries" in *"$lib_dir"* ) ;; *)
6344 x_libraries="$x_libraries $lib_dir"
6345 X_LIBS="$X_LIBS -L${lib_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L${lib_dir}\" to \$X_LIBS"; fi
6347 case "$x_includes" in "$inc_dir"* ) ;; *)
6348 x_includes="$x_includes $inc_dir"
6349 X_CFLAGS="$X_CFLAGS -I${inc_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-I${inc_dir}\" to \$X_CFLAGS"; fi
6355 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 ;;
6358 ld_switch_x_site="$X_LIBS"
6361 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
6362 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
6363 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
6365 runpath="" runpath_dirs=""
6366 if test -n "$LD_RUN_PATH"; then
6367 runpath="$LD_RUN_PATH"
6368 elif test "$GCC" = "yes"; then
6369 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
6370 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
6371 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
6372 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
6373 case "$arg" in P,* | -L* | -R* )
6374 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
6376 xe_runpath_dir="$dir"
6377 test "$xe_runpath_dir" != "/lib" -a \
6378 "$xe_runpath_dir" != "/usr/lib" -a \
6379 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
6380 eval "$xe_add_unique_runpath_dir"
6385 ld_switch_run="$ld_switch_run_save"
6388 for arg in $ld_switch_site $ld_switch_x_site; do
6389 case "$arg" in -L*) {
6390 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
6391 test "$xe_runpath_dir" != "/lib" -a \
6392 "$xe_runpath_dir" != "/usr/lib" -a \
6393 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
6394 eval "$xe_add_unique_runpath_dir"
6397 if test "$opsys $need_motif" = "sol2 yes"; then
6398 xe_runpath_dir="/opt/SUNWdt/lib";
6399 eval "$xe_add_unique_runpath_dir";
6402 if test -n "$runpath"; then
6403 ld_switch_run="${dash_r}${runpath}"
6405 if test "$GCC" = "yes"; then
6406 set x $ld_switch_run; shift; ld_switch_run=""
6407 while test -n "$1"; do
6409 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
6410 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
6412 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
6417 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
6422 if test "$extra_verbose" = "yes"; then
6423 echo; echo "X11 compilation variables:"
6424 for var in x_libraries x_includes X_CFLAGS X_LIBS X_PRE_LIBS X_EXTRA_LIBS; do eval "echo \"$var = '\$$var'\""; done
6429 if test "$x_includes" != NONE; then
6430 for i in $x_includes; do
6431 if test -d "$i/bitmaps"; then
6432 bitmapdirs="$i/bitmaps:$bitmapdirs"
6434 if test -d "$i/X11/bitmaps"; then
6435 bitmapdirs="$i/X11/bitmaps:$bitmapdirs"
6438 bitmapdirs=`echo "$bitmapdirs" | sed s/.$//`
6440 test ! -z "$bitmapdirs" && { test "$extra_verbose" = "yes" && cat << EOF
6441 Defining BITMAPDIR = "$bitmapdirs"
6443 cat >> confdefs.h <<EOF
6444 #define BITMAPDIR "$bitmapdirs"
6449 echo "checking for X defines extracted by xmkmf" 1>&6
6450 echo "configure:6451: checking for X defines extracted by xmkmf" >&5
6452 if mkdir conftestdir; then
6454 cat > Imakefile <<'EOF'
6456 @echo ${PROTO_DEFINES} ${STD_DEFINES}
6458 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6459 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6460 xmkmf_defines=`${MAKE-make} xetest 2>/dev/null | grep -v make`
6464 for word in $xmkmf_defines; do
6468 sym=`echo '' $word | sed -e 's:^ *-D::' -e 's:=.*::'`
6470 -D*=* ) val=`echo '' $word | sed -e 's:^.*=::'` ;;
6473 if grep "^#define $sym " confdefs.h >/dev/null; then :; else
6474 if test "$val" = "1"
6475 then { test "$extra_verbose" = "yes" && cat << EOF
6478 cat >> confdefs.h <<EOF
6483 else { test "$extra_verbose" = "yes" && cat << EOF
6484 Defining $sym = $val
6486 cat >> confdefs.h <<EOF
6497 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
6498 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
6499 echo "configure:6500: checking for X11/Intrinsic.h" >&5
6501 cat > conftest.$ac_ext <<EOF
6502 #line 6503 "configure"
6503 #include "confdefs.h"
6504 #include <X11/Intrinsic.h>
6506 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6507 { (eval echo configure:6508: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6508 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6509 if test -z "$ac_err"; then
6511 eval "ac_cv_header_$ac_safe=yes"
6514 echo "configure: failed program was:" >&5
6515 cat conftest.$ac_ext >&5
6517 eval "ac_cv_header_$ac_safe=no"
6520 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6521 echo "$ac_t""yes" 1>&6
6524 echo "$ac_t""no" 1>&6
6525 { echo "configure: error: "Unable to find X11 header files."" 1>&2; exit 1; }
6530 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
6531 echo "configure:6532: checking for XOpenDisplay in -lX11" >&5
6532 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
6534 xe_check_libs=" -lX11 "
6535 cat > conftest.$ac_ext <<EOF
6536 #line 6537 "configure"
6537 #include "confdefs.h"
6538 /* Override any gcc2 internal prototype to avoid an error. */
6539 /* We use char because int might match the return type of a gcc2
6540 builtin and then its argument prototype would still apply. */
6541 char XOpenDisplay();
6547 if { (eval echo configure:6548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6549 eval "ac_cv_lib_$ac_lib_var=yes"
6551 echo "configure: failed program was:" >&5
6552 cat conftest.$ac_ext >&5
6554 eval "ac_cv_lib_$ac_lib_var=no"
6559 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6560 echo "$ac_t""yes" 1>&6
6563 echo "$ac_t""no" 1>&6
6567 if test "$have_lib_x11" != "yes"; then
6569 xe_msg_checking="for XGetFontProperty in -lX11"
6570 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout"
6571 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6572 echo "configure:6573: checking "$xe_msg_checking"" >&5
6573 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
6575 xe_check_libs=" -lX11 -b i486-linuxaout"
6576 cat > conftest.$ac_ext <<EOF
6577 #line 6578 "configure"
6578 #include "confdefs.h"
6579 /* Override any gcc2 internal prototype to avoid an error. */
6580 /* We use char because int might match the return type of a gcc2
6581 builtin and then its argument prototype would still apply. */
6582 char XGetFontProperty();
6588 if { (eval echo configure:6589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6590 eval "ac_cv_lib_$ac_lib_var=yes"
6592 echo "configure: failed program was:" >&5
6593 cat conftest.$ac_ext >&5
6595 eval "ac_cv_lib_$ac_lib_var=no"
6600 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6601 echo "$ac_t""yes" 1>&6
6602 ld_switch_x_site="-b i486-linuxaout $ld_switch_x_site"
6604 echo "$ac_t""no" 1>&6
6605 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
6611 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
6614 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
6615 echo "configure:6616: checking for XShapeSelectInput in -lXext" >&5
6616 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
6618 xe_check_libs=" -lXext "
6619 cat > conftest.$ac_ext <<EOF
6620 #line 6621 "configure"
6621 #include "confdefs.h"
6622 /* Override any gcc2 internal prototype to avoid an error. */
6623 /* We use char because int might match the return type of a gcc2
6624 builtin and then its argument prototype would still apply. */
6625 char XShapeSelectInput();
6631 if { (eval echo configure:6632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6633 eval "ac_cv_lib_$ac_lib_var=yes"
6635 echo "configure: failed program was:" >&5
6636 cat conftest.$ac_ext >&5
6638 eval "ac_cv_lib_$ac_lib_var=no"
6643 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6644 echo "$ac_t""yes" 1>&6
6645 libs_x="-lXext $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXext\" to \$libs_x"; fi
6647 echo "$ac_t""no" 1>&6
6653 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6
6654 echo "configure:6655: checking for XtOpenDisplay in -lXt" >&5
6655 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
6657 xe_check_libs=" -lXt "
6658 cat > conftest.$ac_ext <<EOF
6659 #line 6660 "configure"
6660 #include "confdefs.h"
6661 /* Override any gcc2 internal prototype to avoid an error. */
6662 /* We use char because int might match the return type of a gcc2
6663 builtin and then its argument prototype would still apply. */
6664 char XtOpenDisplay();
6670 if { (eval echo configure:6671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6672 eval "ac_cv_lib_$ac_lib_var=yes"
6674 echo "configure: failed program was:" >&5
6675 cat conftest.$ac_ext >&5
6677 eval "ac_cv_lib_$ac_lib_var=no"
6682 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6683 echo "$ac_t""yes" 1>&6
6684 libs_x="-lXt $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXt\" to \$libs_x"; fi
6686 echo "$ac_t""no" 1>&6
6687 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
6692 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6
6693 echo "configure:6694: checking the version of X11 being used" >&5
6694 cat > conftest.$ac_ext <<EOF
6695 #line 6696 "configure"
6696 #include "confdefs.h"
6697 #include <X11/Intrinsic.h>
6698 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; }
6700 if { (eval echo configure:6701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6702 ./conftest foobar; x11_release=$?
6705 echo "configure: failed program was:" >&5
6706 cat conftest.$ac_ext >&5
6711 echo "$ac_t""R${x11_release}" 1>&6
6712 { test "$extra_verbose" = "yes" && cat << EOF
6713 Defining THIS_IS_X11R${x11_release}
6715 cat >> confdefs.h <<EOF
6716 #define THIS_IS_X11R${x11_release} 1
6721 if test "${x11_release}" = "4"; then
6722 case "$with_widgets" in
6723 "" | "no") with_widgets=no ;;
6724 *) { echo "Error:" "Widget support requires X11R5 or greater" >&2; exit 1; } ;;
6728 for ac_func in XConvertCase
6730 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6731 echo "configure:6732: checking for $ac_func" >&5
6733 cat > conftest.$ac_ext <<EOF
6734 #line 6735 "configure"
6735 #include "confdefs.h"
6736 /* System header to define __stub macros and hopefully few prototypes,
6737 which can conflict with char $ac_func(); below. */
6739 /* Override any gcc2 internal prototype to avoid an error. */
6740 /* We use char because int might match the return type of a gcc2
6741 builtin and then its argument prototype would still apply. */
6746 /* The GNU C library defines this for functions which it implements
6747 to always fail with ENOSYS. Some functions are actually named
6748 something starting with __ and the normal name is an alias. */
6749 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6757 if { (eval echo configure:6758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6759 eval "ac_cv_func_$ac_func=yes"
6761 echo "configure: failed program was:" >&5
6762 cat conftest.$ac_ext >&5
6764 eval "ac_cv_func_$ac_func=no"
6768 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6769 echo "$ac_t""yes" 1>&6
6770 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6771 { test "$extra_verbose" = "yes" && cat << EOF
6772 Defining $ac_tr_func
6774 cat >> confdefs.h <<EOF
6775 #define $ac_tr_func 1
6780 echo "$ac_t""no" 1>&6
6785 for ac_hdr in X11/Xlocale.h
6787 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6788 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6789 echo "configure:6790: checking for $ac_hdr" >&5
6791 cat > conftest.$ac_ext <<EOF
6792 #line 6793 "configure"
6793 #include "confdefs.h"
6796 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6797 { (eval echo configure:6798: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6798 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6799 if test -z "$ac_err"; then
6801 eval "ac_cv_header_$ac_safe=yes"
6804 echo "configure: failed program was:" >&5
6805 cat conftest.$ac_ext >&5
6807 eval "ac_cv_header_$ac_safe=no"
6810 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6811 echo "$ac_t""yes" 1>&6
6812 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6813 { test "$extra_verbose" = "yes" && cat << EOF
6816 cat >> confdefs.h <<EOF
6817 #define $ac_tr_hdr 1
6822 echo "$ac_t""no" 1>&6
6827 for ac_func in XRegisterIMInstantiateCallback
6829 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6830 echo "configure:6831: checking for $ac_func" >&5
6832 cat > conftest.$ac_ext <<EOF
6833 #line 6834 "configure"
6834 #include "confdefs.h"
6835 /* System header to define __stub macros and hopefully few prototypes,
6836 which can conflict with char $ac_func(); below. */
6838 /* Override any gcc2 internal prototype to avoid an error. */
6839 /* We use char because int might match the return type of a gcc2
6840 builtin and then its argument prototype would still apply. */
6845 /* The GNU C library defines this for functions which it implements
6846 to always fail with ENOSYS. Some functions are actually named
6847 something starting with __ and the normal name is an alias. */
6848 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6856 if { (eval echo configure:6857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6858 eval "ac_cv_func_$ac_func=yes"
6860 echo "configure: failed program was:" >&5
6861 cat conftest.$ac_ext >&5
6863 eval "ac_cv_func_$ac_func=no"
6867 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6868 echo "$ac_t""yes" 1>&6
6869 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6870 { test "$extra_verbose" = "yes" && cat << EOF
6871 Defining $ac_tr_func
6873 cat >> confdefs.h <<EOF
6874 #define $ac_tr_func 1
6879 echo "$ac_t""no" 1>&6
6883 echo $ac_n "checking for standard XRegisterIMInstantiateCallback prototype""... $ac_c" 1>&6
6884 echo "configure:6885: checking for standard XRegisterIMInstantiateCallback prototype" >&5
6885 cat > conftest.$ac_ext <<EOF
6886 #line 6887 "configure"
6887 #include "confdefs.h"
6889 #define NeedFunctionPrototypes 1
6890 #include <X11/Xlib.h>
6891 extern Bool XRegisterIMInstantiateCallback(
6892 Display*, struct _XrmHashBucketRec*, char*, char*, XIMProc, XPointer*);
6898 if { (eval echo configure:6899: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6900 echo "$ac_t""yes" 1>&6
6902 echo "configure: failed program was:" >&5
6903 cat conftest.$ac_ext >&5
6905 echo "$ac_t""no" 1>&6
6906 { test "$extra_verbose" = "yes" && cat << \EOF
6907 Defining XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE
6909 cat >> confdefs.h <<\EOF
6910 #define XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE 1
6917 test -z "$with_xmu" && {
6918 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6
6919 echo "configure:6920: checking for XmuReadBitmapDataFromFile in -lXmu" >&5
6920 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'`
6922 xe_check_libs=" -lXmu "
6923 cat > conftest.$ac_ext <<EOF
6924 #line 6925 "configure"
6925 #include "confdefs.h"
6926 /* Override any gcc2 internal prototype to avoid an error. */
6927 /* We use char because int might match the return type of a gcc2
6928 builtin and then its argument prototype would still apply. */
6929 char XmuReadBitmapDataFromFile();
6932 XmuReadBitmapDataFromFile()
6935 if { (eval echo configure:6936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6937 eval "ac_cv_lib_$ac_lib_var=yes"
6939 echo "configure: failed program was:" >&5
6940 cat conftest.$ac_ext >&5
6942 eval "ac_cv_lib_$ac_lib_var=no"
6947 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6948 echo "$ac_t""yes" 1>&6
6951 echo "$ac_t""no" 1>&6
6956 if test "$with_xmu" = "no"; then
6957 extra_objs="$extra_objs xmu.o" && if test "$extra_verbose" = "yes"; then
6958 echo " xemacs will be linked with \"xmu.o\""
6961 libs_x="-lXmu $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXmu\" to \$libs_x"; fi
6962 { test "$extra_verbose" = "yes" && cat << \EOF
6965 cat >> confdefs.h <<\EOF
6973 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
6974 echo "configure:6975: checking for main in -lXbsd" >&5
6975 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
6977 xe_check_libs=" -lXbsd "
6978 cat > conftest.$ac_ext <<EOF
6979 #line 6980 "configure"
6980 #include "confdefs.h"
6986 if { (eval echo configure:6987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6988 eval "ac_cv_lib_$ac_lib_var=yes"
6990 echo "configure: failed program was:" >&5
6991 cat conftest.$ac_ext >&5
6993 eval "ac_cv_lib_$ac_lib_var=no"
6998 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6999 echo "$ac_t""yes" 1>&6
7000 libs_x="-lXbsd $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXbsd\" to \$libs_x"; fi
7002 echo "$ac_t""no" 1>&6
7007 if test "$unexec" = "unexaix.o" -a "$x11_release" = "6"; then
7008 if test "$GCC" = "yes"; then
7009 X_CFLAGS="-mthreads $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$X_CFLAGS"; fi
7010 libs_x="-mthreads $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$libs_x"; fi
7013 "xlc" ) CC="xlc_r" ;;
7014 "xlC" ) CC="xlC_r" ;;
7021 if test "$with_msw" != "no"; then
7022 echo "checking for MS-Windows" 1>&6
7023 echo "configure:7024: checking for MS-Windows" >&5
7025 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6
7026 echo "configure:7027: checking for main in -lgdi32" >&5
7027 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'`
7029 xe_check_libs=" -lgdi32 "
7030 cat > conftest.$ac_ext <<EOF
7031 #line 7032 "configure"
7032 #include "confdefs.h"
7038 if { (eval echo configure:7039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7040 eval "ac_cv_lib_$ac_lib_var=yes"
7042 echo "configure: failed program was:" >&5
7043 cat conftest.$ac_ext >&5
7045 eval "ac_cv_lib_$ac_lib_var=no"
7050 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7051 echo "$ac_t""yes" 1>&6
7054 echo "$ac_t""no" 1>&6
7058 if test "$with_msw" = "yes"; then
7059 { test "$extra_verbose" = "yes" && cat << \EOF
7060 Defining HAVE_MS_WINDOWS
7062 cat >> confdefs.h <<\EOF
7063 #define HAVE_MS_WINDOWS 1
7068 if test "$with_netinstall" = "yes"; then
7069 MAKE_SUBDIR="$MAKE_SUBDIR netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$MAKE_SUBDIR"; fi
7070 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$SRC_SUBDIR_DEPS"; fi
7071 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
7074 install_pp="$blddir/lib-src/installexe.sh"
7075 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
7076 test "$with_dragndrop" != no && dragndrop_proto="$dragndrop_proto msw" && if test "$extra_verbose" = "yes"; then echo " Appending \"msw\" to \$dragndrop_proto"; fi
7077 if test "$window_system" != x11; then
7079 test "$with_scrollbars" != "no" && with_scrollbars=msw \
7080 && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
7081 echo " xemacs will be linked with \"scrollbar-msw.o\""
7083 test "$with_menubars" != "no" && with_menubars=msw \
7084 && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
7085 echo " xemacs will be linked with \"menubar-msw.o\""
7087 test "$with_toolbars" != "no" && with_toolbars=msw \
7088 && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
7089 echo " xemacs will be linked with \"toolbar-msw.o\""
7091 test "$with_dialogs" != "no" && with_dialogs=msw \
7092 && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
7093 echo " xemacs will be linked with \"dialog-msw.o\""
7095 test "$with_widgets" != "no" && with_widgets=msw
7097 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
7098 echo " xemacs will be linked with \"scrollbar-msw.o\""
7100 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
7101 echo " xemacs will be linked with \"menubar-msw.o\""
7103 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
7104 echo " xemacs will be linked with \"toolbar-msw.o\""
7106 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
7107 echo " xemacs will be linked with \"dialog-msw.o\""
7110 cat > conftest.$ac_ext <<EOF
7111 #line 7112 "configure"
7112 #include "confdefs.h"
7114 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; }
7116 if { (eval echo configure:7117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
7118 need_event_unixoid=yes; { test "$extra_verbose" = "yes" && cat << \EOF
7119 Defining HAVE_MSG_SELECT
7121 cat >> confdefs.h <<\EOF
7122 #define HAVE_MSG_SELECT 1
7128 echo "configure: failed program was:" >&5
7129 cat conftest.$ac_ext >&5
7132 with_file_coding=yes
7133 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
7134 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\""
7141 test -z "$window_system" && window_system="none"
7143 if test "$window_system" = "none"; then
7144 for feature in menubars scrollbars toolbars dialogs dragndrop xface
7146 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
7147 echo "configure: warning: --with-$feature ignored: Not valid without window system support" 1>&2
7149 eval "with_${feature}=no"
7152 test -z "$with_toolbars" && with_toolbars=yes
7155 if test "$with_msw" != "yes"; then
7156 for feature in MARTIN_IS_CLUELESS_ABOUT_MSW_FEATURES
7158 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
7159 echo "configure: warning: --with-$feature ignored: Not valid without MS-Windows support" 1>&2
7161 eval "with_${feature}=no"
7167 if test "$with_x11" != "yes"; then
7168 for feature in tooltalk cde offix wmcommand xim xmu nas_sound
7170 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
7171 echo "configure: warning: --with-$feature ignored: Not valid without X support" 1>&2
7173 eval "with_${feature}=no"
7177 if test "$with_x11" = "yes"; then
7178 ac_safe=`echo "X11/extensions/shape.h" | sed 'y%./+-%__p_%'`
7179 echo $ac_n "checking for X11/extensions/shape.h""... $ac_c" 1>&6
7180 echo "configure:7181: checking for X11/extensions/shape.h" >&5
7182 cat > conftest.$ac_ext <<EOF
7183 #line 7184 "configure"
7184 #include "confdefs.h"
7185 #include <X11/extensions/shape.h>
7187 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7188 { (eval echo configure:7189: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7189 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7190 if test -z "$ac_err"; then
7192 eval "ac_cv_header_$ac_safe=yes"
7195 echo "configure: failed program was:" >&5
7196 cat conftest.$ac_ext >&5
7198 eval "ac_cv_header_$ac_safe=no"
7201 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7202 echo "$ac_t""yes" 1>&6
7204 { test "$extra_verbose" = "yes" && cat << \EOF
7205 Defining HAVE_BALLOON_HELP
7207 cat >> confdefs.h <<\EOF
7208 #define HAVE_BALLOON_HELP 1
7212 extra_objs="$extra_objs balloon_help.o balloon-x.o" && if test "$extra_verbose" = "yes"; then
7213 echo " xemacs will be linked with \"balloon_help.o balloon-x.o\""
7216 echo "$ac_t""no" 1>&6
7223 case "$window_system" in
7224 x11 ) HAVE_X_WINDOWS=yes; echo " Using X11." ;;
7225 msw ) HAVE_X_WINDOWS=no ; echo " Using MS-Windows." ;;
7228 test "$with_gnome" = "yes" && echo " Using GNOME."
7229 test "$with_gnome" = "no" && echo " Using GTK."
7231 none ) HAVE_X_WINDOWS=no ; echo " Using no window system." ;;
7234 case "$x_libraries" in *X11R4* )
7235 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h"
7236 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h"
7239 echo "checking for WM_COMMAND option" 1>&6
7240 echo "configure:7241: checking for WM_COMMAND option" >&5;
7241 if test "$with_wmcommand" != "no"; then
7242 { test "$extra_verbose" = "yes" && cat << \EOF
7243 Defining HAVE_WMCOMMAND
7245 cat >> confdefs.h <<\EOF
7246 #define HAVE_WMCOMMAND 1
7252 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
7253 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'`
7254 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
7255 echo "configure:7256: checking for X11/Xauth.h" >&5
7257 cat > conftest.$ac_ext <<EOF
7258 #line 7259 "configure"
7259 #include "confdefs.h"
7260 #include <X11/Xauth.h>
7262 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7263 { (eval echo configure:7264: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7264 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7265 if test -z "$ac_err"; then
7267 eval "ac_cv_header_$ac_safe=yes"
7270 echo "configure: failed program was:" >&5
7271 cat conftest.$ac_ext >&5
7273 eval "ac_cv_header_$ac_safe=no"
7276 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7277 echo "$ac_t""yes" 1>&6
7280 echo "$ac_t""no" 1>&6
7284 test -z "$with_xauth" && {
7285 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
7286 echo "configure:7287: checking for XauGetAuthByAddr in -lXau" >&5
7287 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
7289 xe_check_libs=" -lXau "
7290 cat > conftest.$ac_ext <<EOF
7291 #line 7292 "configure"
7292 #include "confdefs.h"
7293 /* Override any gcc2 internal prototype to avoid an error. */
7294 /* We use char because int might match the return type of a gcc2
7295 builtin and then its argument prototype would still apply. */
7296 char XauGetAuthByAddr();
7302 if { (eval echo configure:7303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7304 eval "ac_cv_lib_$ac_lib_var=yes"
7306 echo "configure: failed program was:" >&5
7307 cat conftest.$ac_ext >&5
7309 eval "ac_cv_lib_$ac_lib_var=no"
7314 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7315 echo "$ac_t""yes" 1>&6
7318 echo "$ac_t""no" 1>&6
7323 test -z "$with_xauth" && with_xauth=yes
7324 if test "$with_xauth" = "yes"; then
7325 { test "$extra_verbose" = "yes" && cat << \EOF
7328 cat >> confdefs.h <<\EOF
7329 #define HAVE_XAUTH 1
7335 for W in $GTK_LIBS $X_EXTRA_LIBS -lXau $libs_x $X_PRE_LIBS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
7343 if test "$with_tooltalk" != "no" ; then
7344 for dir in "" "Tt/" "desktop/" ; do
7345 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
7346 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
7347 echo "configure:7348: checking for ${dir}tt_c.h" >&5
7349 cat > conftest.$ac_ext <<EOF
7350 #line 7351 "configure"
7351 #include "confdefs.h"
7352 #include <${dir}tt_c.h>
7354 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7355 { (eval echo configure:7356: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7356 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7357 if test -z "$ac_err"; then
7359 eval "ac_cv_header_$ac_safe=yes"
7362 echo "configure: failed program was:" >&5
7363 cat conftest.$ac_ext >&5
7365 eval "ac_cv_header_$ac_safe=no"
7368 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7369 echo "$ac_t""yes" 1>&6
7370 tt_c_h_file="${dir}tt_c.h"; break
7372 echo "$ac_t""no" 1>&6
7376 if test -z "$tt_c_h_file"; then
7377 if test "$with_tooltalk" = "yes"; then
7378 (echo "$progname: Usage error:"
7379 echo " " "Unable to find required tooltalk header files."
7380 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
7385 if test "$with_tooltalk" != "no" ; then
7386 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
7388 xe_msg_checking="for tt_message_create in -ltt"
7389 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
7390 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7391 echo "configure:7392: checking "$xe_msg_checking"" >&5
7392 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
7394 xe_check_libs=" -ltt $extra_libs"
7395 cat > conftest.$ac_ext <<EOF
7396 #line 7397 "configure"
7397 #include "confdefs.h"
7398 /* Override any gcc2 internal prototype to avoid an error. */
7399 /* We use char because int might match the return type of a gcc2
7400 builtin and then its argument prototype would still apply. */
7401 char tt_message_create();
7407 if { (eval echo configure:7408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7409 eval "ac_cv_lib_$ac_lib_var=yes"
7411 echo "configure: failed program was:" >&5
7412 cat conftest.$ac_ext >&5
7414 eval "ac_cv_lib_$ac_lib_var=no"
7419 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7420 echo "$ac_t""yes" 1>&6
7421 tt_libs="-ltt $extra_libs"; break
7423 echo "$ac_t""no" 1>&6
7429 if test -z "$tt_libs"; then
7430 if test "$with_tooltalk" = "yes"; then
7431 (echo "$progname: Usage error:"
7432 echo " " "Unable to find required tooltalk libraries."
7433 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
7438 test -z "$with_tooltalk" && with_tooltalk=yes
7439 if test "$with_tooltalk" = "yes"; then
7440 { test "$extra_verbose" = "yes" && cat << \EOF
7443 cat >> confdefs.h <<\EOF
7448 { test "$extra_verbose" = "yes" && cat << EOF
7449 Defining TT_C_H_FILE = "$tt_c_h_file"
7451 cat >> confdefs.h <<EOF
7452 #define TT_C_H_FILE "$tt_c_h_file"
7456 libs_x="$tt_libs $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$tt_libs\" to \$libs_x"; fi
7457 extra_objs="$extra_objs tooltalk.o" && if test "$extra_verbose" = "yes"; then
7458 echo " xemacs will be linked with \"tooltalk.o\""
7462 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'`
7463 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
7464 echo "configure:7465: checking for Dt/Dt.h" >&5
7466 cat > conftest.$ac_ext <<EOF
7467 #line 7468 "configure"
7468 #include "confdefs.h"
7471 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7472 { (eval echo configure:7473: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7473 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7474 if test -z "$ac_err"; then
7476 eval "ac_cv_header_$ac_safe=yes"
7479 echo "configure: failed program was:" >&5
7480 cat conftest.$ac_ext >&5
7482 eval "ac_cv_header_$ac_safe=no"
7485 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7486 echo "$ac_t""yes" 1>&6
7489 echo "$ac_t""no" 1>&6
7493 test -z "$with_cde" && {
7494 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
7495 echo "configure:7496: checking for DtDndDragStart in -lDtSvc" >&5
7496 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
7498 xe_check_libs=" -lDtSvc "
7499 cat > conftest.$ac_ext <<EOF
7500 #line 7501 "configure"
7501 #include "confdefs.h"
7502 /* Override any gcc2 internal prototype to avoid an error. */
7503 /* We use char because int might match the return type of a gcc2
7504 builtin and then its argument prototype would still apply. */
7505 char DtDndDragStart();
7511 if { (eval echo configure:7512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7513 eval "ac_cv_lib_$ac_lib_var=yes"
7515 echo "configure: failed program was:" >&5
7516 cat conftest.$ac_ext >&5
7518 eval "ac_cv_lib_$ac_lib_var=no"
7523 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7524 echo "$ac_t""yes" 1>&6
7527 echo "$ac_t""no" 1>&6
7532 test -z "$with_cde" && with_cde=yes
7533 if test "$with_dragndrop" = no; then
7534 echo "configure: warning: No CDE without generic Drag'n'Drop support" 1>&2
7537 if test "$with_cde" = "yes" ; then
7538 { test "$extra_verbose" = "yes" && cat << \EOF
7541 cat >> confdefs.h <<\EOF
7546 libs_x="-lDtSvc $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lDtSvc\" to \$libs_x"; fi
7547 dragndrop_proto="$dragndrop_proto CDE" && if test "$extra_verbose" = "yes"; then echo " Appending \"CDE\" to \$dragndrop_proto"; fi
7548 with_tooltalk=yes # CDE requires Tooltalk
7549 need_motif=yes # CDE requires Motif
7552 test "$window_system" != "x11" && with_offix=no
7553 if test "$with_xmu" != yes -a "$with_x11" = yes; then
7554 echo "configure: warning: No OffiX without real Xmu support" 1>&2
7557 if test "$with_dragndrop" = no; then
7558 echo "configure: warning: No OffiX without generic Drag'n'Drop support" 1>&2
7561 if test "$with_cde" = yes; then
7562 echo "configure: warning: CDE already found, disabling OffiX support" 1>&2
7565 test -z "$with_offix" && with_offix=no
7566 if test "$with_offix" = "yes"; then
7567 { test "$extra_verbose" = "yes" && cat << \EOF
7568 Defining HAVE_OFFIX_DND
7570 cat >> confdefs.h <<\EOF
7571 #define HAVE_OFFIX_DND 1
7575 dnd_objs="$dnd_objs offix.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"offix.o\" to \$dnd_objs"; fi
7576 dragndrop_proto="$dragndrop_proto OffiX" && if test "$extra_verbose" = "yes"; then echo " Appending \"OffiX\" to \$dragndrop_proto"; fi
7578 if test "$with_gtk" = "yes"; then
7579 dragndrop_proto="$dragndrop_proto GTK" && if test "$extra_verbose" = "yes"; then echo " Appending \"GTK\" to \$dragndrop_proto"; fi
7582 if test "$with_dragndrop" != "no" ; then
7583 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6
7584 echo "configure:7585: checking if drag and drop API is needed" >&5
7585 if test -n "$dragndrop_proto" ; then
7587 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6
7588 { test "$extra_verbose" = "yes" && cat << \EOF
7589 Defining HAVE_DRAGNDROP
7591 cat >> confdefs.h <<\EOF
7592 #define HAVE_DRAGNDROP 1
7596 extra_objs="$extra_objs dragdrop.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"dragdrop.o\" to \$extra_objs"; fi
7599 echo "$ac_t""no" 1>&6
7603 echo "checking for LDAP" 1>&6
7604 echo "configure:7605: checking for LDAP" >&5
7605 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'`
7606 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6
7607 echo "configure:7608: checking for ldap.h" >&5
7609 cat > conftest.$ac_ext <<EOF
7610 #line 7611 "configure"
7611 #include "confdefs.h"
7614 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7615 { (eval echo configure:7616: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7616 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7617 if test -z "$ac_err"; then
7619 eval "ac_cv_header_$ac_safe=yes"
7622 echo "configure: failed program was:" >&5
7623 cat conftest.$ac_ext >&5
7625 eval "ac_cv_header_$ac_safe=no"
7628 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7629 echo "$ac_t""yes" 1>&6
7632 echo "$ac_t""no" 1>&6
7636 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'`
7637 echo $ac_n "checking for lber.h""... $ac_c" 1>&6
7638 echo "configure:7639: checking for lber.h" >&5
7640 cat > conftest.$ac_ext <<EOF
7641 #line 7642 "configure"
7642 #include "confdefs.h"
7645 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7646 { (eval echo configure:7647: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7647 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7648 if test -z "$ac_err"; then
7650 eval "ac_cv_header_$ac_safe=yes"
7653 echo "configure: failed program was:" >&5
7654 cat conftest.$ac_ext >&5
7656 eval "ac_cv_header_$ac_safe=no"
7659 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7660 echo "$ac_t""yes" 1>&6
7663 echo "$ac_t""no" 1>&6
7667 if test "$with_ldap" != "no"; then
7669 echo $ac_n "checking for ldap_search in -lldap""... $ac_c" 1>&6
7670 echo "configure:7671: checking for ldap_search in -lldap" >&5
7671 ac_lib_var=`echo ldap'_'ldap_search | sed 'y%./+-%__p_%'`
7673 xe_check_libs=" -lldap "
7674 cat > conftest.$ac_ext <<EOF
7675 #line 7676 "configure"
7676 #include "confdefs.h"
7677 /* Override any gcc2 internal prototype to avoid an error. */
7678 /* We use char because int might match the return type of a gcc2
7679 builtin and then its argument prototype would still apply. */
7686 if { (eval echo configure:7687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7688 eval "ac_cv_lib_$ac_lib_var=yes"
7690 echo "configure: failed program was:" >&5
7691 cat conftest.$ac_ext >&5
7693 eval "ac_cv_lib_$ac_lib_var=no"
7698 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7699 echo "$ac_t""yes" 1>&6
7700 with_ldap_nolber=yes
7702 echo "$ac_t""no" 1>&6
7707 test "$with_ldap_nolber" = "no" && {
7708 xe_msg_checking="for ldap_open in -lldap"
7709 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber"
7710 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7711 echo "configure:7712: checking "$xe_msg_checking"" >&5
7712 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7714 xe_check_libs=" -lldap -llber"
7715 cat > conftest.$ac_ext <<EOF
7716 #line 7717 "configure"
7717 #include "confdefs.h"
7718 /* Override any gcc2 internal prototype to avoid an error. */
7719 /* We use char because int might match the return type of a gcc2
7720 builtin and then its argument prototype would still apply. */
7727 if { (eval echo configure:7728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7729 eval "ac_cv_lib_$ac_lib_var=yes"
7731 echo "configure: failed program was:" >&5
7732 cat conftest.$ac_ext >&5
7734 eval "ac_cv_lib_$ac_lib_var=no"
7739 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7740 echo "$ac_t""yes" 1>&6
7743 echo "$ac_t""no" 1>&6
7748 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" && {
7749 xe_msg_checking="for ldap_open in -lldap"
7750 test -n "-llber -lkrb" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb"
7751 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7752 echo "configure:7753: checking "$xe_msg_checking"" >&5
7753 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7755 xe_check_libs=" -lldap -llber -lkrb"
7756 cat > conftest.$ac_ext <<EOF
7757 #line 7758 "configure"
7758 #include "confdefs.h"
7759 /* Override any gcc2 internal prototype to avoid an error. */
7760 /* We use char because int might match the return type of a gcc2
7761 builtin and then its argument prototype would still apply. */
7768 if { (eval echo configure:7769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7770 eval "ac_cv_lib_$ac_lib_var=yes"
7772 echo "configure: failed program was:" >&5
7773 cat conftest.$ac_ext >&5
7775 eval "ac_cv_lib_$ac_lib_var=no"
7780 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7781 echo "$ac_t""yes" 1>&6
7784 echo "$ac_t""no" 1>&6
7789 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" -a "$with_ldap_krb" = "no" && {
7790 xe_msg_checking="for ldap_open in -lldap"
7791 test -n "-llber -lkrb -ldes" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb -ldes"
7792 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7793 echo "configure:7794: checking "$xe_msg_checking"" >&5
7794 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7796 xe_check_libs=" -lldap -llber -lkrb -ldes"
7797 cat > conftest.$ac_ext <<EOF
7798 #line 7799 "configure"
7799 #include "confdefs.h"
7800 /* Override any gcc2 internal prototype to avoid an error. */
7801 /* We use char because int might match the return type of a gcc2
7802 builtin and then its argument prototype would still apply. */
7809 if { (eval echo configure:7810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7811 eval "ac_cv_lib_$ac_lib_var=yes"
7813 echo "configure: failed program was:" >&5
7814 cat conftest.$ac_ext >&5
7816 eval "ac_cv_lib_$ac_lib_var=no"
7821 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7822 echo "$ac_t""yes" 1>&6
7823 with_ldap_krbdes=yes
7825 echo "$ac_t""no" 1>&6
7830 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
7832 if test "$with_ldap" = "yes"; then
7833 { test "$extra_verbose" = "yes" && cat << \EOF
7836 cat >> confdefs.h <<\EOF
7841 extra_objs="$extra_objs eldap.o" && if test "$extra_verbose" = "yes"; then
7842 echo " xemacs will be linked with \"eldap.o\""
7844 if test "$with_ldap_nolber" = "yes" ; then
7845 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
7847 if test "$with_ldap_krb" = "yes" ; then
7848 LIBS="-lkrb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$LIBS"; fi
7850 if test "$with_ldap_krbdes" = "yes" ; then
7851 LIBS="-ldes $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldes\" to \$LIBS"; fi
7852 LIBS="-lkrb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$LIBS"; fi
7854 LIBS="-llber $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-llber\" to \$LIBS"; fi
7855 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
7857 for ac_func in ldap_set_option ldap_get_lderrno ldap_result2error ldap_parse_result
7859 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7860 echo "configure:7861: checking for $ac_func" >&5
7862 cat > conftest.$ac_ext <<EOF
7863 #line 7864 "configure"
7864 #include "confdefs.h"
7865 /* System header to define __stub macros and hopefully few prototypes,
7866 which can conflict with char $ac_func(); below. */
7868 /* Override any gcc2 internal prototype to avoid an error. */
7869 /* We use char because int might match the return type of a gcc2
7870 builtin and then its argument prototype would still apply. */
7875 /* The GNU C library defines this for functions which it implements
7876 to always fail with ENOSYS. Some functions are actually named
7877 something starting with __ and the normal name is an alias. */
7878 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7886 if { (eval echo configure:7887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7888 eval "ac_cv_func_$ac_func=yes"
7890 echo "configure: failed program was:" >&5
7891 cat conftest.$ac_ext >&5
7893 eval "ac_cv_func_$ac_func=no"
7897 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7898 echo "$ac_t""yes" 1>&6
7899 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7900 { test "$extra_verbose" = "yes" && cat << EOF
7901 Defining $ac_tr_func
7903 cat >> confdefs.h <<EOF
7904 #define $ac_tr_func 1
7909 echo "$ac_t""no" 1>&6
7915 if test "$with_postgresql" != "no"; then
7916 echo "checking for PostgreSQL" 1>&6
7917 echo "configure:7918: checking for PostgreSQL" >&5
7919 for header_dir in "" "pgsql/" "postgresql/"; do
7920 ac_safe=`echo "${header_dir}libpq-fe.h" | sed 'y%./+-%__p_%'`
7921 echo $ac_n "checking for ${header_dir}libpq-fe.h""... $ac_c" 1>&6
7922 echo "configure:7923: checking for ${header_dir}libpq-fe.h" >&5
7924 cat > conftest.$ac_ext <<EOF
7925 #line 7926 "configure"
7926 #include "confdefs.h"
7927 #include <${header_dir}libpq-fe.h>
7929 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7930 { (eval echo configure:7931: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7931 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7932 if test -z "$ac_err"; then
7934 eval "ac_cv_header_$ac_safe=yes"
7937 echo "configure: failed program was:" >&5
7938 cat conftest.$ac_ext >&5
7940 eval "ac_cv_header_$ac_safe=no"
7943 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7944 echo "$ac_t""yes" 1>&6
7945 libpq_fe_h_file=${header_dir}libpq-fe.h; break
7947 echo "$ac_t""no" 1>&6
7952 test -n "$libpq_fe_h_file" && {
7953 echo $ac_n "checking for PQconnectdb in -lpq""... $ac_c" 1>&6
7954 echo "configure:7955: checking for PQconnectdb in -lpq" >&5
7955 ac_lib_var=`echo pq'_'PQconnectdb | sed 'y%./+-%__p_%'`
7957 xe_check_libs=" -lpq "
7958 cat > conftest.$ac_ext <<EOF
7959 #line 7960 "configure"
7960 #include "confdefs.h"
7961 /* Override any gcc2 internal prototype to avoid an error. */
7962 /* We use char because int might match the return type of a gcc2
7963 builtin and then its argument prototype would still apply. */
7970 if { (eval echo configure:7971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7972 eval "ac_cv_lib_$ac_lib_var=yes"
7974 echo "configure: failed program was:" >&5
7975 cat conftest.$ac_ext >&5
7977 eval "ac_cv_lib_$ac_lib_var=no"
7982 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7983 echo "$ac_t""yes" 1>&6
7986 echo "$ac_t""no" 1>&6
7991 if test -n "$libpq_fe_h_file" -a "$have_libpq" = "yes"; then
7993 { test "$extra_verbose" = "yes" && cat << \EOF
7994 Defining HAVE_POSTGRESQL
7996 cat >> confdefs.h <<\EOF
7997 #define HAVE_POSTGRESQL 1
8002 echo $ac_n "checking for PQconnectStart in -lpq""... $ac_c" 1>&6
8003 echo "configure:8004: checking for PQconnectStart in -lpq" >&5
8004 ac_lib_var=`echo pq'_'PQconnectStart | sed 'y%./+-%__p_%'`
8006 xe_check_libs=" -lpq "
8007 cat > conftest.$ac_ext <<EOF
8008 #line 8009 "configure"
8009 #include "confdefs.h"
8010 /* Override any gcc2 internal prototype to avoid an error. */
8011 /* We use char because int might match the return type of a gcc2
8012 builtin and then its argument prototype would still apply. */
8013 char PQconnectStart();
8019 if { (eval echo configure:8020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8021 eval "ac_cv_lib_$ac_lib_var=yes"
8023 echo "configure: failed program was:" >&5
8024 cat conftest.$ac_ext >&5
8026 eval "ac_cv_lib_$ac_lib_var=no"
8031 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8032 echo "$ac_t""yes" 1>&6
8033 with_postgresqlv7=yes;
8034 { test "$extra_verbose" = "yes" && cat << \EOF
8035 Defining HAVE_POSTGRESQLV7
8037 cat >> confdefs.h <<\EOF
8038 #define HAVE_POSTGRESQLV7 1
8043 echo "$ac_t""no" 1>&6
8047 { test "$extra_verbose" = "yes" && cat << EOF
8048 Defining LIBPQ_FE_H_FILE = "$libpq_fe_h_file"
8050 cat >> confdefs.h <<EOF
8051 #define LIBPQ_FE_H_FILE "$libpq_fe_h_file"
8055 LIBS="-lpq $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpq\" to \$LIBS"; fi
8056 extra_objs="$extra_objs postgresql.o" && if test "$extra_verbose" = "yes"; then
8057 echo " xemacs will be linked with \"postgresql.o\""
8059 elif test "$with_postgresql" = "yes"; then
8060 { echo "Error:" "Required PostgreSQL support cannot be provided. Check --site-prefixes." >&2; exit 1; }
8065 if test "$window_system" != "none"; then
8066 echo "checking for graphics libraries" 1>&6
8067 echo "configure:8068: checking for graphics libraries" >&5
8073 cygwin_top=`eval "gcc -print-file-name=libc.a"` ;
8074 cygwin_top=`eval "dirname ${cygwin_top}"`;
8075 cygwin_top="${cygwin_top}/..";
8076 case "$window_system" in
8078 msw) libpath_xpm="-L${cygwin_top}/lib/noX"
8079 incpath_xpm="-I${cygwin_top}/include/noX"
8089 if test -z "$with_xpm"; then
8090 CFLAGS=""$incpath_xpm" $CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$incpath_xpm"\" to \$CFLAGS"; fi
8091 LDFLAGS=""$libpath_xpm" $LDFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libpath_xpm"\" to \$LDFLAGS"; fi
8092 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6
8093 echo "configure:8094: checking for Xpm - no older than 3.4f" >&5
8095 cat > conftest.$ac_ext <<EOF
8096 #line 8097 "configure"
8097 #include "confdefs.h"
8099 #include <X11/xpm.h>
8100 int main(int c, char **v) {
8102 XpmIncludeVersion != XpmLibraryVersion() ? 1 :
8103 XpmIncludeVersion < 30406 ? 2 : 0 ;}
8105 if { (eval echo configure:8106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
8107 ./conftest dummy_arg; xpm_status=$?;
8108 if test "$xpm_status" = "0"; then
8112 if test "$xpm_status" = "1"; then
8113 xpm_problem="Xpm library version and header file version don't match!"
8114 elif test "$xpm_status" = "2"; then
8115 xpm_problem="Xpm library version is too old!"
8117 xpm_problem="Internal xpm detection logic error!"
8120 *** WARNING *** $xpm_problem
8121 I'm not touching that with a 10-foot pole!
8122 If you really want to use the installed version of Xpm, rerun
8123 configure and add '--with-xpm=yes', but don't blame me if XEmacs crashes!"
8127 echo "configure: failed program was:" >&5
8128 cat conftest.$ac_ext >&5
8134 echo "$ac_t""$with_xpm" 1>&6
8136 if test "$with_xpm" = "yes"; then
8137 { test "$extra_verbose" = "yes" && cat << \EOF
8140 cat >> confdefs.h <<\EOF
8145 LDFLAGS=""$libpath_xpm" $LDFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libpath_xpm"\" to \$LDFLAGS"; fi
8146 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
8147 CFLAGS=""$incpath_xpm" $CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$incpath_xpm"\" to \$CFLAGS"; fi
8148 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6
8149 echo "configure:8150: checking for \"FOR_MSW\" xpm" >&5
8151 cat > conftest.$ac_ext <<EOF
8152 #line 8153 "configure"
8153 #include "confdefs.h"
8156 XpmCreatePixmapFromData()
8159 if { (eval echo configure:8160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8163 echo "configure: failed program was:" >&5
8164 cat conftest.$ac_ext >&5
8170 echo "$ac_t""$xpm_for_msw" 1>&6
8171 if test "$xpm_for_msw" = "yes"; then
8172 { test "$extra_verbose" = "yes" && cat << \EOF
8175 cat >> confdefs.h <<\EOF
8183 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
8184 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
8185 echo "configure:8186: checking for compface.h" >&5
8187 cat > conftest.$ac_ext <<EOF
8188 #line 8189 "configure"
8189 #include "confdefs.h"
8190 #include <compface.h>
8192 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8193 { (eval echo configure:8194: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8194 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8195 if test -z "$ac_err"; then
8197 eval "ac_cv_header_$ac_safe=yes"
8200 echo "configure: failed program was:" >&5
8201 cat conftest.$ac_ext >&5
8203 eval "ac_cv_header_$ac_safe=no"
8206 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8207 echo "$ac_t""yes" 1>&6
8210 echo "$ac_t""no" 1>&6
8214 test -z "$with_xface" && {
8215 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
8216 echo "configure:8217: checking for UnGenFace in -lcompface" >&5
8217 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
8219 xe_check_libs=" -lcompface "
8220 cat > conftest.$ac_ext <<EOF
8221 #line 8222 "configure"
8222 #include "confdefs.h"
8223 /* Override any gcc2 internal prototype to avoid an error. */
8224 /* We use char because int might match the return type of a gcc2
8225 builtin and then its argument prototype would still apply. */
8232 if { (eval echo configure:8233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8234 eval "ac_cv_lib_$ac_lib_var=yes"
8236 echo "configure: failed program was:" >&5
8237 cat conftest.$ac_ext >&5
8239 eval "ac_cv_lib_$ac_lib_var=no"
8244 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8245 echo "$ac_t""yes" 1>&6
8248 echo "$ac_t""no" 1>&6
8253 test -z "$with_xface" && with_xface=yes
8254 if test "$with_xface" = "yes"; then
8255 { test "$extra_verbose" = "yes" && cat << \EOF
8258 cat >> confdefs.h <<\EOF
8259 #define HAVE_XFACE 1
8263 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi
8266 if test "$with_gif" != "no"; then
8268 { test "$extra_verbose" = "yes" && cat << \EOF
8271 cat >> confdefs.h <<\EOF
8276 extra_objs="$extra_objs dgif_lib.o gif_io.o" && if test "$extra_verbose" = "yes"; then
8277 echo " xemacs will be linked with \"dgif_lib.o gif_io.o\""
8281 if test "$with_png $with_tiff" != "no no"; then
8283 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6
8284 echo "configure:8285: checking for inflate in -lc" >&5
8285 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'`
8287 xe_check_libs=" -lc "
8288 cat > conftest.$ac_ext <<EOF
8289 #line 8290 "configure"
8290 #include "confdefs.h"
8291 /* Override any gcc2 internal prototype to avoid an error. */
8292 /* We use char because int might match the return type of a gcc2
8293 builtin and then its argument prototype would still apply. */
8300 if { (eval echo configure:8301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8302 eval "ac_cv_lib_$ac_lib_var=yes"
8304 echo "configure: failed program was:" >&5
8305 cat conftest.$ac_ext >&5
8307 eval "ac_cv_lib_$ac_lib_var=no"
8312 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8313 echo "$ac_t""yes" 1>&6
8316 echo "$ac_t""no" 1>&6
8318 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
8319 echo "configure:8320: checking for inflate in -lz" >&5
8320 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
8322 xe_check_libs=" -lz "
8323 cat > conftest.$ac_ext <<EOF
8324 #line 8325 "configure"
8325 #include "confdefs.h"
8326 /* Override any gcc2 internal prototype to avoid an error. */
8327 /* We use char because int might match the return type of a gcc2
8328 builtin and then its argument prototype would still apply. */
8335 if { (eval echo configure:8336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8337 eval "ac_cv_lib_$ac_lib_var=yes"
8339 echo "configure: failed program was:" >&5
8340 cat conftest.$ac_ext >&5
8342 eval "ac_cv_lib_$ac_lib_var=no"
8347 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8348 echo "$ac_t""yes" 1>&6
8349 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi
8351 echo "$ac_t""no" 1>&6
8353 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6
8354 echo "configure:8355: checking for inflate in -lgz" >&5
8355 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'`
8357 xe_check_libs=" -lgz "
8358 cat > conftest.$ac_ext <<EOF
8359 #line 8360 "configure"
8360 #include "confdefs.h"
8361 /* Override any gcc2 internal prototype to avoid an error. */
8362 /* We use char because int might match the return type of a gcc2
8363 builtin and then its argument prototype would still apply. */
8370 if { (eval echo configure:8371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8372 eval "ac_cv_lib_$ac_lib_var=yes"
8374 echo "configure: failed program was:" >&5
8375 cat conftest.$ac_ext >&5
8377 eval "ac_cv_lib_$ac_lib_var=no"
8382 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8383 echo "$ac_t""yes" 1>&6
8384 libs_x="-lgz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgz\" to \$libs_x"; fi
8386 echo "$ac_t""no" 1>&6
8398 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
8399 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
8400 echo "configure:8401: checking for jpeglib.h" >&5
8402 cat > conftest.$ac_ext <<EOF
8403 #line 8404 "configure"
8404 #include "confdefs.h"
8405 #include <jpeglib.h>
8407 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8408 { (eval echo configure:8409: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8409 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8410 if test -z "$ac_err"; then
8412 eval "ac_cv_header_$ac_safe=yes"
8415 echo "configure: failed program was:" >&5
8416 cat conftest.$ac_ext >&5
8418 eval "ac_cv_header_$ac_safe=no"
8421 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8422 echo "$ac_t""yes" 1>&6
8425 echo "$ac_t""no" 1>&6
8429 test -z "$with_jpeg" && {
8430 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6
8431 echo "configure:8432: checking for jpeg_destroy_decompress in -ljpeg" >&5
8432 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'`
8434 xe_check_libs=" -ljpeg "
8435 cat > conftest.$ac_ext <<EOF
8436 #line 8437 "configure"
8437 #include "confdefs.h"
8438 /* Override any gcc2 internal prototype to avoid an error. */
8439 /* We use char because int might match the return type of a gcc2
8440 builtin and then its argument prototype would still apply. */
8441 char jpeg_destroy_decompress();
8444 jpeg_destroy_decompress()
8447 if { (eval echo configure:8448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8449 eval "ac_cv_lib_$ac_lib_var=yes"
8451 echo "configure: failed program was:" >&5
8452 cat conftest.$ac_ext >&5
8454 eval "ac_cv_lib_$ac_lib_var=no"
8459 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8460 echo "$ac_t""yes" 1>&6
8463 echo "$ac_t""no" 1>&6
8468 test -z "$with_jpeg" && with_jpeg=yes
8469 if test "$with_jpeg" = "yes"; then
8470 { test "$extra_verbose" = "yes" && cat << \EOF
8473 cat >> confdefs.h <<\EOF
8478 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi
8482 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6
8483 echo "configure:8484: checking for pow" >&5
8485 cat > conftest.$ac_ext <<EOF
8486 #line 8487 "configure"
8487 #include "confdefs.h"
8488 /* System header to define __stub macros and hopefully few prototypes,
8489 which can conflict with char pow(); below. */
8491 /* Override any gcc2 internal prototype to avoid an error. */
8492 /* We use char because int might match the return type of a gcc2
8493 builtin and then its argument prototype would still apply. */
8498 /* The GNU C library defines this for functions which it implements
8499 to always fail with ENOSYS. Some functions are actually named
8500 something starting with __ and the normal name is an alias. */
8501 #if defined (__stub_pow) || defined (__stub___pow)
8509 if { (eval echo configure:8510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8511 eval "ac_cv_func_pow=yes"
8513 echo "configure: failed program was:" >&5
8514 cat conftest.$ac_ext >&5
8516 eval "ac_cv_func_pow=no"
8520 if eval "test \"`echo '$ac_cv_func_'pow`\" = yes"; then
8521 echo "$ac_t""yes" 1>&6
8524 echo "$ac_t""no" 1>&6
8528 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
8529 echo $ac_n "checking for png.h""... $ac_c" 1>&6
8530 echo "configure:8531: checking for png.h" >&5
8532 cat > conftest.$ac_ext <<EOF
8533 #line 8534 "configure"
8534 #include "confdefs.h"
8537 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8538 { (eval echo configure:8539: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8539 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8540 if test -z "$ac_err"; then
8542 eval "ac_cv_header_$ac_safe=yes"
8545 echo "configure: failed program was:" >&5
8546 cat conftest.$ac_ext >&5
8548 eval "ac_cv_header_$ac_safe=no"
8551 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8552 echo "$ac_t""yes" 1>&6
8555 echo "$ac_t""no" 1>&6
8559 test -z "$with_png" && {
8560 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6
8561 echo "configure:8562: checking for png_read_image in -lpng" >&5
8562 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
8564 xe_check_libs=" -lpng "
8565 cat > conftest.$ac_ext <<EOF
8566 #line 8567 "configure"
8567 #include "confdefs.h"
8568 /* Override any gcc2 internal prototype to avoid an error. */
8569 /* We use char because int might match the return type of a gcc2
8570 builtin and then its argument prototype would still apply. */
8571 char png_read_image();
8577 if { (eval echo configure:8578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8579 eval "ac_cv_lib_$ac_lib_var=yes"
8581 echo "configure: failed program was:" >&5
8582 cat conftest.$ac_ext >&5
8584 eval "ac_cv_lib_$ac_lib_var=no"
8589 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8590 echo "$ac_t""yes" 1>&6
8593 echo "$ac_t""no" 1>&6
8598 if test -z "$with_png"; then
8599 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6
8600 echo "configure:8601: checking for workable png version information" >&5
8601 xe_check_libs="-lpng -lz"
8602 cat > conftest.$ac_ext <<EOF
8603 #line 8604 "configure"
8604 #include "confdefs.h"
8606 int main(int c, char **v) {
8607 if (c == 1) return 0;
8608 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1;
8609 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;}
8611 if { (eval echo configure:8612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
8613 ./conftest dummy_arg; png_status=$?;
8614 if test "$png_status" = "0"; then
8618 if test "$png_status" = "1"; then
8619 png_problem="PNG library version and header file don't match!"
8620 elif test "$png_status" = "2"; then
8621 png_problem="PNG library version too old (pre 1.0.2)!"
8624 *** WARNING *** $png_problem
8625 I'm not touching that with a 10-foot pole!
8626 If you really want to use the installed version of libPNG, rerun
8627 configure and add '--with-png=yes', but don't blame me if XEmacs crashes!"
8631 echo "configure: failed program was:" >&5
8632 cat conftest.$ac_ext >&5
8638 echo "$ac_t""$with_png" 1>&6
8640 if test "$with_png" = "yes"; then
8641 { test "$extra_verbose" = "yes" && cat << \EOF
8644 cat >> confdefs.h <<\EOF
8649 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi
8652 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
8653 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
8654 echo "configure:8655: checking for tiffio.h" >&5
8656 cat > conftest.$ac_ext <<EOF
8657 #line 8658 "configure"
8658 #include "confdefs.h"
8661 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8662 { (eval echo configure:8663: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8663 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8664 if test -z "$ac_err"; then
8666 eval "ac_cv_header_$ac_safe=yes"
8669 echo "configure: failed program was:" >&5
8670 cat conftest.$ac_ext >&5
8672 eval "ac_cv_header_$ac_safe=no"
8675 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8676 echo "$ac_t""yes" 1>&6
8679 echo "$ac_t""no" 1>&6
8683 test -z "$with_tiff" && {
8684 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6
8685 echo "configure:8686: checking for TIFFClientOpen in -ltiff" >&5
8686 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'`
8688 xe_check_libs=" -ltiff "
8689 cat > conftest.$ac_ext <<EOF
8690 #line 8691 "configure"
8691 #include "confdefs.h"
8692 /* Override any gcc2 internal prototype to avoid an error. */
8693 /* We use char because int might match the return type of a gcc2
8694 builtin and then its argument prototype would still apply. */
8695 char TIFFClientOpen();
8701 if { (eval echo configure:8702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8703 eval "ac_cv_lib_$ac_lib_var=yes"
8705 echo "configure: failed program was:" >&5
8706 cat conftest.$ac_ext >&5
8708 eval "ac_cv_lib_$ac_lib_var=no"
8713 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8714 echo "$ac_t""yes" 1>&6
8717 echo "$ac_t""no" 1>&6
8722 test -z "$with_tiff" && with_tiff=yes
8723 if test "$with_tiff" = "yes"; then
8724 { test "$extra_verbose" = "yes" && cat << \EOF
8727 cat >> confdefs.h <<\EOF
8732 libs_x="-ltiff $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltiff\" to \$libs_x"; fi
8737 if test "$with_gtk" = "yes"; then
8738 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
8739 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
8740 echo "configure:8741: checking for compface.h" >&5
8742 cat > conftest.$ac_ext <<EOF
8743 #line 8744 "configure"
8744 #include "confdefs.h"
8745 #include <compface.h>
8747 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8748 { (eval echo configure:8749: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8749 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8750 if test -z "$ac_err"; then
8752 eval "ac_cv_header_$ac_safe=yes"
8755 echo "configure: failed program was:" >&5
8756 cat conftest.$ac_ext >&5
8758 eval "ac_cv_header_$ac_safe=no"
8761 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8762 echo "$ac_t""yes" 1>&6
8765 echo "$ac_t""no" 1>&6
8769 test -z "$with_xface" && {
8770 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
8771 echo "configure:8772: checking for UnGenFace in -lcompface" >&5
8772 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
8774 xe_check_libs=" -lcompface "
8775 cat > conftest.$ac_ext <<EOF
8776 #line 8777 "configure"
8777 #include "confdefs.h"
8778 /* Override any gcc2 internal prototype to avoid an error. */
8779 /* We use char because int might match the return type of a gcc2
8780 builtin and then its argument prototype would still apply. */
8787 if { (eval echo configure:8788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8789 eval "ac_cv_lib_$ac_lib_var=yes"
8791 echo "configure: failed program was:" >&5
8792 cat conftest.$ac_ext >&5
8794 eval "ac_cv_lib_$ac_lib_var=no"
8799 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8800 echo "$ac_t""yes" 1>&6
8803 echo "$ac_t""no" 1>&6
8808 test -z "$with_xface" && with_xface=yes
8809 if test "$with_xface" = "yes"; then
8810 { test "$extra_verbose" = "yes" && cat << \EOF
8813 cat >> confdefs.h <<\EOF
8814 #define HAVE_XFACE 1
8818 libs_gtk="-lcompface $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_gtk"; fi
8824 if test "$with_x11" = "yes"; then
8825 echo "checking for X11 graphics libraries" 1>&6
8826 echo "configure:8827: checking for X11 graphics libraries" >&5
8829 case "$with_widgets" in
8830 "yes" | "athena") detect_athena=yes ;;
8831 *) detect_athena=no ;;
8834 if test "$with_x11" = "yes" -a "$detect_athena" = "yes" ; then
8835 echo "checking for the Athena widgets" 1>&6
8836 echo "configure:8837: checking for the Athena widgets" >&5
8838 case "$with_athena" in
8839 "xaw" | "") athena_variant=Xaw athena_3d=no ;;
8840 "3d") athena_variant=Xaw3d athena_3d=yes ;;
8841 "next") athena_variant=neXtaw athena_3d=yes ;;
8842 "95") athena_variant=Xaw95 athena_3d=yes ;;
8843 "xpm") athena_variant=XawXpm athena_3d=yes ;;
8844 *) { echo "Error:" "Unknown Athena widget set \`$with_athena'. This should not happen." >&2; exit 1; } ;;
8847 if test "$athena_3d" = "no"; then
8849 echo $ac_n "checking for XawScrollbarSetThumb in -l$athena_variant""... $ac_c" 1>&6
8850 echo "configure:8851: checking for XawScrollbarSetThumb in -l$athena_variant" >&5
8851 ac_lib_var=`echo $athena_variant'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
8853 xe_check_libs=" -l$athena_variant "
8854 cat > conftest.$ac_ext <<EOF
8855 #line 8856 "configure"
8856 #include "confdefs.h"
8857 /* Override any gcc2 internal prototype to avoid an error. */
8858 /* We use char because int might match the return type of a gcc2
8859 builtin and then its argument prototype would still apply. */
8860 char XawScrollbarSetThumb();
8863 XawScrollbarSetThumb()
8866 if { (eval echo configure:8867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8868 eval "ac_cv_lib_$ac_lib_var=yes"
8870 echo "configure: failed program was:" >&5
8871 cat conftest.$ac_ext >&5
8873 eval "ac_cv_lib_$ac_lib_var=no"
8878 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8879 echo "$ac_t""yes" 1>&6
8881 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
8882 echo "configure:8883: checking for threeDClassRec in -l$athena_variant" >&5
8883 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
8885 xe_check_libs=" -l$athena_variant "
8886 cat > conftest.$ac_ext <<EOF
8887 #line 8888 "configure"
8888 #include "confdefs.h"
8889 /* Override any gcc2 internal prototype to avoid an error. */
8890 /* We use char because int might match the return type of a gcc2
8891 builtin and then its argument prototype would still apply. */
8892 char threeDClassRec();
8898 if { (eval echo configure:8899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8900 eval "ac_cv_lib_$ac_lib_var=yes"
8902 echo "configure: failed program was:" >&5
8903 cat conftest.$ac_ext >&5
8905 eval "ac_cv_lib_$ac_lib_var=no"
8910 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8911 echo "$ac_t""yes" 1>&6
8912 echo "configure: warning: "Could not find a non-3d Athena widget library."" 1>&2
8914 echo "$ac_t""no" 1>&6
8915 athena_lib=$athena_variant
8921 echo "$ac_t""no" 1>&6
8922 echo "configure: warning: "Could not find an Athena widget library."" 1>&2
8928 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
8929 echo "configure:8930: checking for threeDClassRec in -l$athena_variant" >&5
8930 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
8932 xe_check_libs=" -l$athena_variant "
8933 cat > conftest.$ac_ext <<EOF
8934 #line 8935 "configure"
8935 #include "confdefs.h"
8936 /* Override any gcc2 internal prototype to avoid an error. */
8937 /* We use char because int might match the return type of a gcc2
8938 builtin and then its argument prototype would still apply. */
8939 char threeDClassRec();
8945 if { (eval echo configure:8946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8947 eval "ac_cv_lib_$ac_lib_var=yes"
8949 echo "configure: failed program was:" >&5
8950 cat conftest.$ac_ext >&5
8952 eval "ac_cv_lib_$ac_lib_var=no"
8957 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8958 echo "$ac_t""yes" 1>&6
8959 athena_lib=$athena_variant
8961 echo "$ac_t""no" 1>&6
8962 echo $ac_n "checking for threeDClassRec in -lXaw""... $ac_c" 1>&6
8963 echo "configure:8964: checking for threeDClassRec in -lXaw" >&5
8964 ac_lib_var=`echo Xaw'_'threeDClassRec | sed 'y%./+-%__p_%'`
8966 xe_check_libs=" -lXaw "
8967 cat > conftest.$ac_ext <<EOF
8968 #line 8969 "configure"
8969 #include "confdefs.h"
8970 /* Override any gcc2 internal prototype to avoid an error. */
8971 /* We use char because int might match the return type of a gcc2
8972 builtin and then its argument prototype would still apply. */
8973 char threeDClassRec();
8979 if { (eval echo configure:8980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8981 eval "ac_cv_lib_$ac_lib_var=yes"
8983 echo "configure: failed program was:" >&5
8984 cat conftest.$ac_ext >&5
8986 eval "ac_cv_lib_$ac_lib_var=no"
8991 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8992 echo "$ac_t""yes" 1>&6
8994 echo "configure: warning: "Assuming that libXaw is actually $athena_variant."" 1>&2;
8997 echo "$ac_t""no" 1>&6
8998 echo "configure: warning: "Could not find a 3d Athena widget library that looked like $athena_variant."" 1>&2
9007 if test "$athena_3d" = "no"; then
9008 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
9009 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
9010 echo "configure:9011: checking for X11/Xaw/ThreeD.h" >&5
9012 cat > conftest.$ac_ext <<EOF
9013 #line 9014 "configure"
9014 #include "confdefs.h"
9015 #include <X11/Xaw/ThreeD.h>
9017 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9018 { (eval echo configure:9019: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9019 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9020 if test -z "$ac_err"; then
9022 eval "ac_cv_header_$ac_safe=yes"
9025 echo "configure: failed program was:" >&5
9026 cat conftest.$ac_ext >&5
9028 eval "ac_cv_header_$ac_safe=no"
9031 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9032 echo "$ac_t""yes" 1>&6
9033 echo "configure: warning: "Could not find a non-3d Athena header set."" 1>&2
9035 echo "$ac_t""no" 1>&6
9036 ac_safe=`echo "X11/Xaw/XawInit.h" | sed 'y%./+-%__p_%'`
9037 echo $ac_n "checking for X11/Xaw/XawInit.h""... $ac_c" 1>&6
9038 echo "configure:9039: checking for X11/Xaw/XawInit.h" >&5
9040 cat > conftest.$ac_ext <<EOF
9041 #line 9042 "configure"
9042 #include "confdefs.h"
9043 #include <X11/Xaw/XawInit.h>
9045 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9046 { (eval echo configure:9047: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9047 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9048 if test -z "$ac_err"; then
9050 eval "ac_cv_header_$ac_safe=yes"
9053 echo "configure: failed program was:" >&5
9054 cat conftest.$ac_ext >&5
9056 eval "ac_cv_header_$ac_safe=no"
9059 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9060 echo "$ac_t""yes" 1>&6
9061 athena_h_path=X11/Xaw
9063 echo "$ac_t""no" 1>&6
9064 echo "configure: warning: "Could not find a non-3d Athena header set."" 1>&2
9070 ac_safe=`echo "X11/$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
9071 echo $ac_n "checking for X11/$athena_variant/XawInit.h""... $ac_c" 1>&6
9072 echo "configure:9073: checking for X11/$athena_variant/XawInit.h" >&5
9074 cat > conftest.$ac_ext <<EOF
9075 #line 9076 "configure"
9076 #include "confdefs.h"
9077 #include <X11/$athena_variant/XawInit.h>
9079 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9080 { (eval echo configure:9081: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9081 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9082 if test -z "$ac_err"; then
9084 eval "ac_cv_header_$ac_safe=yes"
9087 echo "configure: failed program was:" >&5
9088 cat conftest.$ac_ext >&5
9090 eval "ac_cv_header_$ac_safe=no"
9093 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9094 echo "$ac_t""yes" 1>&6
9095 ac_safe=`echo "X11/$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
9096 echo $ac_n "checking for X11/$athena_variant/ThreeD.h""... $ac_c" 1>&6
9097 echo "configure:9098: checking for X11/$athena_variant/ThreeD.h" >&5
9099 cat > conftest.$ac_ext <<EOF
9100 #line 9101 "configure"
9101 #include "confdefs.h"
9102 #include <X11/$athena_variant/ThreeD.h>
9104 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9105 { (eval echo configure:9106: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9106 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9107 if test -z "$ac_err"; then
9109 eval "ac_cv_header_$ac_safe=yes"
9112 echo "configure: failed program was:" >&5
9113 cat conftest.$ac_ext >&5
9115 eval "ac_cv_header_$ac_safe=no"
9118 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9119 echo "$ac_t""yes" 1>&6
9120 athena_h_path=X11/$athena_variant
9122 echo "$ac_t""no" 1>&6
9126 echo "$ac_t""no" 1>&6
9130 if test -z "$athena_h_path"; then
9131 ac_safe=`echo "$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
9132 echo $ac_n "checking for $athena_variant/XawInit.h""... $ac_c" 1>&6
9133 echo "configure:9134: checking for $athena_variant/XawInit.h" >&5
9135 cat > conftest.$ac_ext <<EOF
9136 #line 9137 "configure"
9137 #include "confdefs.h"
9138 #include <$athena_variant/XawInit.h>
9140 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9141 { (eval echo configure:9142: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9142 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9143 if test -z "$ac_err"; then
9145 eval "ac_cv_header_$ac_safe=yes"
9148 echo "configure: failed program was:" >&5
9149 cat conftest.$ac_ext >&5
9151 eval "ac_cv_header_$ac_safe=no"
9154 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9155 echo "$ac_t""yes" 1>&6
9156 ac_safe=`echo "$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
9157 echo $ac_n "checking for $athena_variant/ThreeD.h""... $ac_c" 1>&6
9158 echo "configure:9159: checking for $athena_variant/ThreeD.h" >&5
9160 cat > conftest.$ac_ext <<EOF
9161 #line 9162 "configure"
9162 #include "confdefs.h"
9163 #include <$athena_variant/ThreeD.h>
9165 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9166 { (eval echo configure:9167: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9167 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9168 if test -z "$ac_err"; then
9170 eval "ac_cv_header_$ac_safe=yes"
9173 echo "configure: failed program was:" >&5
9174 cat conftest.$ac_ext >&5
9176 eval "ac_cv_header_$ac_safe=no"
9179 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9180 echo "$ac_t""yes" 1>&6
9181 athena_h_path=$athena_variant
9183 echo "$ac_t""no" 1>&6
9187 echo "$ac_t""no" 1>&6
9192 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
9193 ac_safe=`echo "X11/Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
9194 echo $ac_n "checking for X11/Xaw3d/XawInit.h""... $ac_c" 1>&6
9195 echo "configure:9196: checking for X11/Xaw3d/XawInit.h" >&5
9197 cat > conftest.$ac_ext <<EOF
9198 #line 9199 "configure"
9199 #include "confdefs.h"
9200 #include <X11/Xaw3d/XawInit.h>
9202 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9203 { (eval echo configure:9204: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9204 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9205 if test -z "$ac_err"; then
9207 eval "ac_cv_header_$ac_safe=yes"
9210 echo "configure: failed program was:" >&5
9211 cat conftest.$ac_ext >&5
9213 eval "ac_cv_header_$ac_safe=no"
9216 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9217 echo "$ac_t""yes" 1>&6
9218 ac_safe=`echo "X11/Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
9219 echo $ac_n "checking for X11/Xaw3d/ThreeD.h""... $ac_c" 1>&6
9220 echo "configure:9221: checking for X11/Xaw3d/ThreeD.h" >&5
9222 cat > conftest.$ac_ext <<EOF
9223 #line 9224 "configure"
9224 #include "confdefs.h"
9225 #include <X11/Xaw3d/ThreeD.h>
9227 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9228 { (eval echo configure:9229: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9229 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9230 if test -z "$ac_err"; then
9232 eval "ac_cv_header_$ac_safe=yes"
9235 echo "configure: failed program was:" >&5
9236 cat conftest.$ac_ext >&5
9238 eval "ac_cv_header_$ac_safe=no"
9241 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9242 echo "$ac_t""yes" 1>&6
9244 echo "configure: warning: "Assuming that X11/Xaw3d headers are suitable for $athena_variant."" 1>&2
9245 athena_h_path=X11/Xaw3d
9248 echo "$ac_t""no" 1>&6
9252 echo "$ac_t""no" 1>&6
9257 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
9258 ac_safe=`echo "Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
9259 echo $ac_n "checking for Xaw3d/XawInit.h""... $ac_c" 1>&6
9260 echo "configure:9261: checking for Xaw3d/XawInit.h" >&5
9262 cat > conftest.$ac_ext <<EOF
9263 #line 9264 "configure"
9264 #include "confdefs.h"
9265 #include <Xaw3d/XawInit.h>
9267 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9268 { (eval echo configure:9269: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9269 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9270 if test -z "$ac_err"; then
9272 eval "ac_cv_header_$ac_safe=yes"
9275 echo "configure: failed program was:" >&5
9276 cat conftest.$ac_ext >&5
9278 eval "ac_cv_header_$ac_safe=no"
9281 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9282 echo "$ac_t""yes" 1>&6
9283 ac_safe=`echo "Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
9284 echo $ac_n "checking for Xaw3d/ThreeD.h""... $ac_c" 1>&6
9285 echo "configure:9286: checking for Xaw3d/ThreeD.h" >&5
9287 cat > conftest.$ac_ext <<EOF
9288 #line 9289 "configure"
9289 #include "confdefs.h"
9290 #include <Xaw3d/ThreeD.h>
9292 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9293 { (eval echo configure:9294: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9294 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9295 if test -z "$ac_err"; then
9297 eval "ac_cv_header_$ac_safe=yes"
9300 echo "configure: failed program was:" >&5
9301 cat conftest.$ac_ext >&5
9303 eval "ac_cv_header_$ac_safe=no"
9306 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9307 echo "$ac_t""yes" 1>&6
9309 echo "configure: warning: "Assuming that Xaw3d headers are suitable for $athena_variant."" 1>&2
9313 echo "$ac_t""no" 1>&6
9317 echo "$ac_t""no" 1>&6
9322 if test -z "$athena_h_path"; then
9323 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
9324 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
9325 echo "configure:9326: checking for X11/Xaw/ThreeD.h" >&5
9327 cat > conftest.$ac_ext <<EOF
9328 #line 9329 "configure"
9329 #include "confdefs.h"
9330 #include <X11/Xaw/ThreeD.h>
9332 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9333 { (eval echo configure:9334: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9334 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9335 if test -z "$ac_err"; then
9337 eval "ac_cv_header_$ac_safe=yes"
9340 echo "configure: failed program was:" >&5
9341 cat conftest.$ac_ext >&5
9343 eval "ac_cv_header_$ac_safe=no"
9346 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9347 echo "$ac_t""yes" 1>&6
9349 echo "configure: warning: "Assuming that X11/Xaw headers are suitable for $athena_variant."" 1>&2
9350 athena_h_path=X11/Xaw
9353 echo "$ac_t""no" 1>&6
9354 echo "configure: warning: "Could not find a suitable 3d Athena header set."" 1>&2
9360 if test -n "$athena_lib" -a -n "$athena_h_path"; then
9369 if test "$with_x11" = "yes"; then
9370 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
9371 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
9372 echo "configure:9373: checking for Xm/Xm.h" >&5
9374 cat > conftest.$ac_ext <<EOF
9375 #line 9376 "configure"
9376 #include "confdefs.h"
9379 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9380 { (eval echo configure:9381: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9381 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9382 if test -z "$ac_err"; then
9384 eval "ac_cv_header_$ac_safe=yes"
9387 echo "configure: failed program was:" >&5
9388 cat conftest.$ac_ext >&5
9390 eval "ac_cv_header_$ac_safe=no"
9393 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9394 echo "$ac_t""yes" 1>&6
9396 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
9397 echo "configure:9398: checking for XmStringFree in -lXm" >&5
9398 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
9400 xe_check_libs=" -lXm "
9401 cat > conftest.$ac_ext <<EOF
9402 #line 9403 "configure"
9403 #include "confdefs.h"
9404 /* Override any gcc2 internal prototype to avoid an error. */
9405 /* We use char because int might match the return type of a gcc2
9406 builtin and then its argument prototype would still apply. */
9407 char XmStringFree();
9413 if { (eval echo configure:9414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9415 eval "ac_cv_lib_$ac_lib_var=yes"
9417 echo "configure: failed program was:" >&5
9418 cat conftest.$ac_ext >&5
9420 eval "ac_cv_lib_$ac_lib_var=no"
9425 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9426 echo "$ac_t""yes" 1>&6
9429 echo "$ac_t""no" 1>&6
9435 echo "$ac_t""no" 1>&6
9440 if test "$have_motif" = "yes"; then
9441 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6
9442 echo "configure:9443: checking for Lesstif" >&5
9443 cat > conftest.$ac_ext <<EOF
9444 #line 9445 "configure"
9445 #include "confdefs.h"
9447 #ifdef LESSTIF_VERSION
9452 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9453 egrep "yes" >/dev/null 2>&1; then
9462 echo "$ac_t""$have_lesstif" 1>&6
9467 case "$with_menubars" in "" | "yes" | "athena" )
9468 with_menubars="lucid" ;;
9470 case "$with_dialogs" in "" | "yes" | "lucid" )
9471 if test "$have_motif" = "yes"; then with_dialogs="motif"
9472 elif test "$have_xaw" = "yes"; then with_dialogs="athena"
9473 else with_dialogs=no
9476 case "$with_scrollbars" in "" | "yes" )
9477 with_scrollbars="lucid" ;;
9479 case "$with_widgets" in "" | "yes" | "lucid")
9480 if test "$have_motif" = "yes"; then with_widgets="motif"
9481 elif test "$have_xaw" = "yes"; then with_widgets="athena"
9482 else with_widgets=no
9486 all_widgets="$with_menubars $with_scrollbars $with_dialogs $with_toolbars $with_widgets"
9488 case "$all_widgets" in
9490 if test "$have_xaw" != "yes"; then
9491 { echo "Error:" "Could not find a suitable Athena library to build with." >&2; exit 1; }
9494 lwlib_objs="$lwlib_objs lwlib-Xaw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xaw.o\" to \$lwlib_objs"; fi
9496 libs_x="-l$athena_lib $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$athena_lib\" to \$libs_x"; fi
9498 { test "$extra_verbose" = "yes" && cat << EOF
9499 Defining ATHENA_Scrollbar_h_ = "$athena_h_path/Scrollbar.h"
9501 cat >> confdefs.h <<EOF
9502 #define ATHENA_Scrollbar_h_ "$athena_h_path/Scrollbar.h"
9506 { test "$extra_verbose" = "yes" && cat << EOF
9507 Defining ATHENA_Dialog_h_ = "$athena_h_path/Dialog.h"
9509 cat >> confdefs.h <<EOF
9510 #define ATHENA_Dialog_h_ "$athena_h_path/Dialog.h"
9514 { test "$extra_verbose" = "yes" && cat << EOF
9515 Defining ATHENA_Form_h_ = "$athena_h_path/Form.h"
9517 cat >> confdefs.h <<EOF
9518 #define ATHENA_Form_h_ "$athena_h_path/Form.h"
9522 { test "$extra_verbose" = "yes" && cat << EOF
9523 Defining ATHENA_Command_h_ = "$athena_h_path/Command.h"
9525 cat >> confdefs.h <<EOF
9526 #define ATHENA_Command_h_ "$athena_h_path/Command.h"
9530 { test "$extra_verbose" = "yes" && cat << EOF
9531 Defining ATHENA_Label_h_ = "$athena_h_path/Label.h"
9533 cat >> confdefs.h <<EOF
9534 #define ATHENA_Label_h_ "$athena_h_path/Label.h"
9538 { test "$extra_verbose" = "yes" && cat << EOF
9539 Defining ATHENA_LabelP_h_ = "$athena_h_path/LabelP.h"
9541 cat >> confdefs.h <<EOF
9542 #define ATHENA_LabelP_h_ "$athena_h_path/LabelP.h"
9546 { test "$extra_verbose" = "yes" && cat << EOF
9547 Defining ATHENA_Toggle_h_ = "$athena_h_path/Toggle.h"
9549 cat >> confdefs.h <<EOF
9550 #define ATHENA_Toggle_h_ "$athena_h_path/Toggle.h"
9554 { test "$extra_verbose" = "yes" && cat << EOF
9555 Defining ATHENA_ToggleP_h_ = "$athena_h_path/ToggleP.h"
9557 cat >> confdefs.h <<EOF
9558 #define ATHENA_ToggleP_h_ "$athena_h_path/ToggleP.h"
9562 { test "$extra_verbose" = "yes" && cat << EOF
9563 Defining ATHENA_AsciiText_h_ = "$athena_h_path/AsciiText.h"
9565 cat >> confdefs.h <<EOF
9566 #define ATHENA_AsciiText_h_ "$athena_h_path/AsciiText.h"
9570 { test "$extra_verbose" = "yes" && cat << EOF
9571 Defining ATHENA_XawInit_h_ = "$athena_h_path/XawInit.h"
9573 cat >> confdefs.h <<EOF
9574 #define ATHENA_XawInit_h_ "$athena_h_path/XawInit.h"
9579 { test "$extra_verbose" = "yes" && cat << \EOF
9580 Defining LWLIB_USES_ATHENA
9582 cat >> confdefs.h <<\EOF
9583 #define LWLIB_USES_ATHENA 1
9587 { test "$extra_verbose" = "yes" && cat << \EOF
9588 Defining NEED_ATHENA
9590 cat >> confdefs.h <<\EOF
9591 #define NEED_ATHENA 1
9597 if test "$athena_3d" = "yes"; then
9598 { test "$extra_verbose" = "yes" && cat << \EOF
9599 Defining HAVE_ATHENA_3D
9601 cat >> confdefs.h <<\EOF
9602 #define HAVE_ATHENA_3D 1
9610 case "$all_widgets" in *motif* )
9611 { test "$extra_verbose" = "yes" && cat << \EOF
9612 Defining LWLIB_USES_MOTIF
9614 cat >> confdefs.h <<\EOF
9615 #define LWLIB_USES_MOTIF 1
9619 { test "$extra_verbose" = "yes" && cat << \EOF
9622 cat >> confdefs.h <<\EOF
9623 #define NEED_MOTIF 1
9627 lwlib_objs="$lwlib_objs lwlib-Xm.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xm.o\" to \$lwlib_objs"; fi
9631 test "$with_menubars" = "lucid" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
9632 test "$with_menubars" = "motif" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
9633 test "$with_scrollbars" = "lucid" && lwlib_objs="$lwlib_objs xlwscrollbar.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwscrollbar.o\" to \$lwlib_objs"; fi
9634 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
9635 lwlib_objs="$lwlib_objs xlwtabs.o xlwgcs.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwtabs.o xlwgcs.o\" to \$lwlib_objs"; fi
9636 case "$with_widgets" in athena* )
9637 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;;
9639 case "$all_widgets" in *lucid* )
9640 { test "$extra_verbose" = "yes" && cat << \EOF
9643 cat >> confdefs.h <<\EOF
9644 #define NEED_LUCID 1
9648 lwlib_objs="$lwlib_objs lwlib-Xlw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xlw.o\" to \$lwlib_objs"; fi ;;
9653 test "$with_scrollbars" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
9654 Defining LWLIB_SCROLLBARS_ATHENA
9656 cat >> confdefs.h <<\EOF
9657 #define LWLIB_SCROLLBARS_ATHENA 1
9661 test "$with_dialogs" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
9662 Defining LWLIB_DIALOGS_ATHENA
9664 cat >> confdefs.h <<\EOF
9665 #define LWLIB_DIALOGS_ATHENA 1
9670 if test "$athena_3d" = "yes"; then
9671 test "$with_scrollbars" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
9672 Defining LWLIB_SCROLLBARS_ATHENA3D
9674 cat >> confdefs.h <<\EOF
9675 #define LWLIB_SCROLLBARS_ATHENA3D 1
9679 test "$with_dialogs" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
9680 Defining LWLIB_DIALOGS_ATHENA3D
9682 cat >> confdefs.h <<\EOF
9683 #define LWLIB_DIALOGS_ATHENA3D 1
9689 case "$with_widgets" in athena* ) { test "$extra_verbose" = "yes" && cat << \EOF
9690 Defining LWLIB_WIDGETS_ATHENA
9692 cat >> confdefs.h <<\EOF
9693 #define LWLIB_WIDGETS_ATHENA 1
9697 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
9698 { test "$extra_verbose" = "yes" && cat << \EOF
9699 Defining LWLIB_TABS_LUCID
9701 cat >> confdefs.h <<\EOF
9702 #define LWLIB_TABS_LUCID 1
9707 test "$with_menubars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9708 Defining HAVE_MENUBARS
9710 cat >> confdefs.h <<\EOF
9711 #define HAVE_MENUBARS 1
9715 test "$with_scrollbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9716 Defining HAVE_SCROLLBARS
9718 cat >> confdefs.h <<\EOF
9719 #define HAVE_SCROLLBARS 1
9723 test "$with_dialogs" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9724 Defining HAVE_DIALOGS
9726 cat >> confdefs.h <<\EOF
9727 #define HAVE_DIALOGS 1
9731 test "$with_toolbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9732 Defining HAVE_TOOLBARS
9734 cat >> confdefs.h <<\EOF
9735 #define HAVE_TOOLBARS 1
9739 test "$with_widgets" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9740 Defining HAVE_WIDGETS
9742 cat >> confdefs.h <<\EOF
9743 #define HAVE_WIDGETS 1
9748 test "$with_menubars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
9749 Defining LWLIB_MENUBARS_LUCID
9751 cat >> confdefs.h <<\EOF
9752 #define LWLIB_MENUBARS_LUCID 1
9756 test "$with_scrollbars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
9757 Defining LWLIB_SCROLLBARS_LUCID
9759 cat >> confdefs.h <<\EOF
9760 #define LWLIB_SCROLLBARS_LUCID 1
9765 test "$with_menubars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9766 Defining LWLIB_MENUBARS_MOTIF
9768 cat >> confdefs.h <<\EOF
9769 #define LWLIB_MENUBARS_MOTIF 1
9773 test "$with_scrollbars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9774 Defining LWLIB_SCROLLBARS_MOTIF
9776 cat >> confdefs.h <<\EOF
9777 #define LWLIB_SCROLLBARS_MOTIF 1
9781 test "$with_dialogs" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9782 Defining LWLIB_DIALOGS_MOTIF
9784 cat >> confdefs.h <<\EOF
9785 #define LWLIB_DIALOGS_MOTIF 1
9789 test "$with_widgets" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9790 Defining LWLIB_WIDGETS_MOTIF
9792 cat >> confdefs.h <<\EOF
9793 #define LWLIB_WIDGETS_MOTIF 1
9798 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar.o" && if test "$extra_verbose" = "yes"; then
9799 echo " xemacs will be linked with \"menubar.o\""
9801 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar.o" && if test "$extra_verbose" = "yes"; then
9802 echo " xemacs will be linked with \"scrollbar.o\""
9804 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog.o" && if test "$extra_verbose" = "yes"; then
9805 echo " xemacs will be linked with \"dialog.o\""
9807 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar.o" && if test "$extra_verbose" = "yes"; then
9808 echo " xemacs will be linked with \"toolbar.o\""
9811 if test "$with_gtk" = "yes"; then
9812 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-gtk.o" && if test "$extra_verbose" = "yes"; then
9813 echo " xemacs will be linked with \"menubar-gtk.o\""
9815 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-gtk.o" && if test "$extra_verbose" = "yes"; then
9816 echo " xemacs will be linked with \"scrollbar-gtk.o\""
9818 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-gtk.o" && if test "$extra_verbose" = "yes"; then
9819 echo " xemacs will be linked with \"dialog-gtk.o\""
9821 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-gtk.o" && if test "$extra_verbose" = "yes"; then
9822 echo " xemacs will be linked with \"toolbar-gtk.o\""
9824 test "$all_widgets" != "no no no no no" && extra_objs="$extra_objs gui-gtk.o" && if test "$extra_verbose" = "yes"; then
9825 echo " xemacs will be linked with \"gui-gtk.o\""
9829 if test "$with_x11" = "yes"; then
9830 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-x.o" && if test "$extra_verbose" = "yes"; then
9831 echo " xemacs will be linked with \"menubar-x.o\""
9833 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-x.o" && if test "$extra_verbose" = "yes"; then
9834 echo " xemacs will be linked with \"scrollbar-x.o\""
9836 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-x.o" && if test "$extra_verbose" = "yes"; then
9837 echo " xemacs will be linked with \"dialog-x.o\""
9839 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-x.o" && if test "$extra_verbose" = "yes"; then
9840 echo " xemacs will be linked with \"toolbar-x.o\""
9842 test "$all_widgets" != "no no no no no" && extra_objs="$extra_objs gui-x.o" && if test "$extra_verbose" = "yes"; then
9843 echo " xemacs will be linked with \"gui-x.o\""
9848 test -z "$with_mule" && with_mule=no
9849 test -z "$with_file_coding" && with_file_coding=no
9852 if test "$with_file_coding" = "yes" && test "$with_mule" = "no"; then
9853 { test "$extra_verbose" = "yes" && cat << \EOF
9854 Defining FILE_CODING
9856 cat >> confdefs.h <<\EOF
9857 #define FILE_CODING 1
9861 extra_objs="$extra_objs file-coding.o" && if test "$extra_verbose" = "yes"; then
9862 echo " xemacs will be linked with \"file-coding.o\""
9866 if test "$with_mule" = "yes" ; then
9867 echo "checking for Mule-related features" 1>&6
9868 echo "configure:9869: checking for Mule-related features" >&5
9869 { test "$extra_verbose" = "yes" && cat << \EOF
9872 cat >> confdefs.h <<\EOF
9877 { test "$extra_verbose" = "yes" && cat << \EOF
9878 Defining FILE_CODING
9880 cat >> confdefs.h <<\EOF
9881 #define FILE_CODING 1
9885 extra_objs="$extra_objs mule.o mule-ccl.o mule-charset.o file-coding.o" && if test "$extra_verbose" = "yes"; then
9886 echo " xemacs will be linked with \"mule.o mule-ccl.o mule-charset.o file-coding.o\""
9889 for ac_hdr in libintl.h
9891 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9892 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9893 echo "configure:9894: checking for $ac_hdr" >&5
9895 cat > conftest.$ac_ext <<EOF
9896 #line 9897 "configure"
9897 #include "confdefs.h"
9900 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9901 { (eval echo configure:9902: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9902 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9903 if test -z "$ac_err"; then
9905 eval "ac_cv_header_$ac_safe=yes"
9908 echo "configure: failed program was:" >&5
9909 cat conftest.$ac_ext >&5
9911 eval "ac_cv_header_$ac_safe=no"
9914 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9915 echo "$ac_t""yes" 1>&6
9916 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9917 { test "$extra_verbose" = "yes" && cat << EOF
9920 cat >> confdefs.h <<EOF
9921 #define $ac_tr_hdr 1
9926 echo "$ac_t""no" 1>&6
9931 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
9932 echo "configure:9933: checking for strerror in -lintl" >&5
9933 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
9935 xe_check_libs=" -lintl "
9936 cat > conftest.$ac_ext <<EOF
9937 #line 9938 "configure"
9938 #include "confdefs.h"
9939 /* Override any gcc2 internal prototype to avoid an error. */
9940 /* We use char because int might match the return type of a gcc2
9941 builtin and then its argument prototype would still apply. */
9948 if { (eval echo configure:9949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9950 eval "ac_cv_lib_$ac_lib_var=yes"
9952 echo "configure: failed program was:" >&5
9953 cat conftest.$ac_ext >&5
9955 eval "ac_cv_lib_$ac_lib_var=no"
9960 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9961 echo "$ac_t""yes" 1>&6
9962 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9963 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9964 { test "$extra_verbose" = "yes" && cat << EOF
9967 cat >> confdefs.h <<EOF
9968 #define $ac_tr_lib 1
9972 LIBS="-lintl $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lintl\" to \$LIBS"; fi
9975 echo "$ac_t""no" 1>&6
9980 echo "checking for Mule input methods" 1>&6
9981 echo "configure:9982: checking for Mule input methods" >&5
9982 case "$with_xim" in "" | "yes" )
9983 echo "checking for XIM" 1>&6
9984 echo "configure:9985: checking for XIM" >&5
9986 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6
9987 echo "configure:9988: checking for XOpenIM in -lX11" >&5
9988 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'`
9990 xe_check_libs=" -lX11 "
9991 cat > conftest.$ac_ext <<EOF
9992 #line 9993 "configure"
9993 #include "confdefs.h"
9994 /* Override any gcc2 internal prototype to avoid an error. */
9995 /* We use char because int might match the return type of a gcc2
9996 builtin and then its argument prototype would still apply. */
10003 if { (eval echo configure:10004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10005 eval "ac_cv_lib_$ac_lib_var=yes"
10007 echo "configure: failed program was:" >&5
10008 cat conftest.$ac_ext >&5
10010 eval "ac_cv_lib_$ac_lib_var=no"
10015 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10016 echo "$ac_t""yes" 1>&6
10019 echo "$ac_t""no" 1>&6
10024 if test "$have_motif $have_lesstif" = "yes no"; then
10026 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
10027 echo "configure:10028: checking for XmImMbLookupString in -lXm" >&5
10028 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
10030 xe_check_libs=" -lXm "
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 XmImMbLookupString();
10040 XmImMbLookupString()
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
10065 if test "$with_xim" != "no"; then
10066 { test "$extra_verbose" = "yes" && cat << \EOF
10069 cat >> confdefs.h <<\EOF
10074 if test "$with_xim" = "xlib"; then
10075 { test "$extra_verbose" = "yes" && cat << \EOF
10078 cat >> confdefs.h <<\EOF
10083 extra_objs="$extra_objs input-method-xlib.o" && if test "$extra_verbose" = "yes"; then
10084 echo " xemacs will be linked with \"input-method-xlib.o\""
10087 if test "$with_xim" = "motif"; then
10088 { test "$extra_verbose" = "yes" && cat << \EOF
10091 cat >> confdefs.h <<\EOF
10092 #define XIM_MOTIF 1
10097 extra_objs="$extra_objs input-method-motif.o" && if test "$extra_verbose" = "yes"; then
10098 echo " xemacs will be linked with \"input-method-motif.o\""
10101 if test "$with_xim" = "motif"; then
10106 if test "$with_xfs" = "yes" ; then
10107 echo "checking for XFontSet" 1>&6
10108 echo "configure:10109: checking for XFontSet" >&5
10110 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6
10111 echo "configure:10112: checking for XmbDrawString in -lX11" >&5
10112 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
10114 xe_check_libs=" -lX11 "
10115 cat > conftest.$ac_ext <<EOF
10116 #line 10117 "configure"
10117 #include "confdefs.h"
10118 /* Override any gcc2 internal prototype to avoid an error. */
10119 /* We use char because int might match the return type of a gcc2
10120 builtin and then its argument prototype would still apply. */
10121 char XmbDrawString();
10127 if { (eval echo configure:10128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10129 eval "ac_cv_lib_$ac_lib_var=yes"
10131 echo "configure: failed program was:" >&5
10132 cat conftest.$ac_ext >&5
10134 eval "ac_cv_lib_$ac_lib_var=no"
10139 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10140 echo "$ac_t""yes" 1>&6
10143 echo "$ac_t""no" 1>&6
10148 if test "$with_xfs" = "yes" && test "$with_menubars" = "lucid"; then
10149 { test "$extra_verbose" = "yes" && cat << \EOF
10150 Defining USE_XFONTSET
10152 cat >> confdefs.h <<\EOF
10153 #define USE_XFONTSET 1
10157 if test "$with_xim" = "no" ; then
10158 extra_objs="$extra_objs input-method-xlib.o" && if test "$extra_verbose" = "yes"; then
10159 echo " xemacs will be linked with \"input-method-xlib.o\""
10164 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
10165 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
10166 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
10167 echo "configure:10168: checking for wnn/jllib.h" >&5
10169 cat > conftest.$ac_ext <<EOF
10170 #line 10171 "configure"
10171 #include "confdefs.h"
10172 #include <wnn/jllib.h>
10174 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10175 { (eval echo configure:10176: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10176 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10177 if test -z "$ac_err"; then
10179 eval "ac_cv_header_$ac_safe=yes"
10182 echo "configure: failed program was:" >&5
10183 cat conftest.$ac_ext >&5
10185 eval "ac_cv_header_$ac_safe=no"
10188 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10189 echo "$ac_t""yes" 1>&6
10192 echo "$ac_t""no" 1>&6
10196 test -z "$with_wnn" && { ac_safe=`echo "wnn/commonhd.h" | sed 'y%./+-%__p_%'`
10197 echo $ac_n "checking for wnn/commonhd.h""... $ac_c" 1>&6
10198 echo "configure:10199: checking for wnn/commonhd.h" >&5
10200 cat > conftest.$ac_ext <<EOF
10201 #line 10202 "configure"
10202 #include "confdefs.h"
10203 #include <wnn/commonhd.h>
10205 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10206 { (eval echo configure:10207: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10207 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10208 if test -z "$ac_err"; then
10210 eval "ac_cv_header_$ac_safe=yes"
10213 echo "configure: failed program was:" >&5
10214 cat conftest.$ac_ext >&5
10216 eval "ac_cv_header_$ac_safe=no"
10219 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10220 echo "$ac_t""yes" 1>&6
10223 echo "$ac_t""no" 1>&6
10227 if test "$with_wnn" != "no"; then
10228 for ac_func in crypt
10230 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10231 echo "configure:10232: checking for $ac_func" >&5
10233 cat > conftest.$ac_ext <<EOF
10234 #line 10235 "configure"
10235 #include "confdefs.h"
10236 /* System header to define __stub macros and hopefully few prototypes,
10237 which can conflict with char $ac_func(); below. */
10238 #include <assert.h>
10239 /* Override any gcc2 internal prototype to avoid an error. */
10240 /* We use char because int might match the return type of a gcc2
10241 builtin and then its argument prototype would still apply. */
10246 /* The GNU C library defines this for functions which it implements
10247 to always fail with ENOSYS. Some functions are actually named
10248 something starting with __ and the normal name is an alias. */
10249 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10257 if { (eval echo configure:10258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10259 eval "ac_cv_func_$ac_func=yes"
10261 echo "configure: failed program was:" >&5
10262 cat conftest.$ac_ext >&5
10264 eval "ac_cv_func_$ac_func=no"
10268 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10269 echo "$ac_t""yes" 1>&6
10270 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10271 { test "$extra_verbose" = "yes" && cat << EOF
10272 Defining $ac_tr_func
10274 cat >> confdefs.h <<EOF
10275 #define $ac_tr_func 1
10280 echo "$ac_t""no" 1>&6
10284 test "$ac_cv_func_crypt" != "yes" && {
10285 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
10286 echo "configure:10287: checking for crypt in -lcrypt" >&5
10287 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
10289 xe_check_libs=" -lcrypt "
10290 cat > conftest.$ac_ext <<EOF
10291 #line 10292 "configure"
10292 #include "confdefs.h"
10293 /* Override any gcc2 internal prototype to avoid an error. */
10294 /* We use char because int might match the return type of a gcc2
10295 builtin and then its argument prototype would still apply. */
10302 if { (eval echo configure:10303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10304 eval "ac_cv_lib_$ac_lib_var=yes"
10306 echo "configure: failed program was:" >&5
10307 cat conftest.$ac_ext >&5
10309 eval "ac_cv_lib_$ac_lib_var=no"
10314 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10315 echo "$ac_t""yes" 1>&6
10316 ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10317 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10318 { test "$extra_verbose" = "yes" && cat << EOF
10319 Defining $ac_tr_lib
10321 cat >> confdefs.h <<EOF
10322 #define $ac_tr_lib 1
10326 LIBS="-lcrypt $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcrypt\" to \$LIBS"; fi
10329 echo "$ac_t""no" 1>&6
10334 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then
10336 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
10337 echo "configure:10338: checking for jl_dic_list_e in -lwnn" >&5
10338 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
10340 xe_check_libs=" -lwnn "
10341 cat > conftest.$ac_ext <<EOF
10342 #line 10343 "configure"
10343 #include "confdefs.h"
10344 /* Override any gcc2 internal prototype to avoid an error. */
10345 /* We use char because int might match the return type of a gcc2
10346 builtin and then its argument prototype would still apply. */
10347 char jl_dic_list_e();
10353 if { (eval echo configure:10354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10355 eval "ac_cv_lib_$ac_lib_var=yes"
10357 echo "configure: failed program was:" >&5
10358 cat conftest.$ac_ext >&5
10360 eval "ac_cv_lib_$ac_lib_var=no"
10365 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10366 echo "$ac_t""yes" 1>&6
10369 echo "$ac_t""no" 1>&6
10370 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6
10371 echo "configure:10372: checking for jl_dic_list_e in -lwnn4" >&5
10372 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
10374 xe_check_libs=" -lwnn4 "
10375 cat > conftest.$ac_ext <<EOF
10376 #line 10377 "configure"
10377 #include "confdefs.h"
10378 /* Override any gcc2 internal prototype to avoid an error. */
10379 /* We use char because int might match the return type of a gcc2
10380 builtin and then its argument prototype would still apply. */
10381 char jl_dic_list_e();
10387 if { (eval echo configure:10388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10389 eval "ac_cv_lib_$ac_lib_var=yes"
10391 echo "configure: failed program was:" >&5
10392 cat conftest.$ac_ext >&5
10394 eval "ac_cv_lib_$ac_lib_var=no"
10399 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10400 echo "$ac_t""yes" 1>&6
10403 echo "$ac_t""no" 1>&6
10404 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6
10405 echo "configure:10406: checking for jl_dic_list_e in -lwnn6" >&5
10406 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
10408 xe_check_libs=" -lwnn6 "
10409 cat > conftest.$ac_ext <<EOF
10410 #line 10411 "configure"
10411 #include "confdefs.h"
10412 /* Override any gcc2 internal prototype to avoid an error. */
10413 /* We use char because int might match the return type of a gcc2
10414 builtin and then its argument prototype would still apply. */
10415 char jl_dic_list_e();
10421 if { (eval echo configure:10422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10423 eval "ac_cv_lib_$ac_lib_var=yes"
10425 echo "configure: failed program was:" >&5
10426 cat conftest.$ac_ext >&5
10428 eval "ac_cv_lib_$ac_lib_var=no"
10433 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10434 echo "$ac_t""yes" 1>&6
10437 echo "$ac_t""no" 1>&6
10438 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6
10439 echo "configure:10440: checking for dic_list_e in -lwnn6_fromsrc" >&5
10440 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'`
10442 xe_check_libs=" -lwnn6_fromsrc "
10443 cat > conftest.$ac_ext <<EOF
10444 #line 10445 "configure"
10445 #include "confdefs.h"
10446 /* Override any gcc2 internal prototype to avoid an error. */
10447 /* We use char because int might match the return type of a gcc2
10448 builtin and then its argument prototype would still apply. */
10455 if { (eval echo configure:10456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10457 eval "ac_cv_lib_$ac_lib_var=yes"
10459 echo "configure: failed program was:" >&5
10460 cat conftest.$ac_ext >&5
10462 eval "ac_cv_lib_$ac_lib_var=no"
10467 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10468 echo "$ac_t""yes" 1>&6
10469 libwnn=wnn6_fromsrc
10471 echo "$ac_t""no" 1>&6
10486 test -z "$with_wnn" && with_wnn=yes
10487 if test "$with_wnn" = "yes"; then
10488 { test "$extra_verbose" = "yes" && cat << \EOF
10491 cat >> confdefs.h <<\EOF
10496 libs_x="-l$libwnn $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$libwnn\" to \$libs_x"; fi
10497 extra_objs="$extra_objs mule-wnnfns.o" && if test "$extra_verbose" = "yes"; then
10498 echo " xemacs will be linked with \"mule-wnnfns.o\""
10500 if test "$with_wnn6" != "no"; then
10502 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6
10503 echo "configure:10504: checking for jl_fi_dic_list in -l$libwnn" >&5
10504 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
10506 xe_check_libs=" -l$libwnn "
10507 cat > conftest.$ac_ext <<EOF
10508 #line 10509 "configure"
10509 #include "confdefs.h"
10510 /* Override any gcc2 internal prototype to avoid an error. */
10511 /* We use char because int might match the return type of a gcc2
10512 builtin and then its argument prototype would still apply. */
10513 char jl_fi_dic_list();
10519 if { (eval echo configure:10520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10521 eval "ac_cv_lib_$ac_lib_var=yes"
10523 echo "configure: failed program was:" >&5
10524 cat conftest.$ac_ext >&5
10526 eval "ac_cv_lib_$ac_lib_var=no"
10531 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10532 echo "$ac_t""yes" 1>&6
10535 echo "$ac_t""no" 1>&6
10539 test "$with_wnn6" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
10542 cat >> confdefs.h <<\EOF
10550 canna_includes_found=no
10551 if test "$with_canna" != "no"; then
10552 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
10553 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
10554 echo "configure:10555: checking for canna/jrkanji.h" >&5
10556 cat > conftest.$ac_ext <<EOF
10557 #line 10558 "configure"
10558 #include "confdefs.h"
10559 #include <canna/jrkanji.h>
10561 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10562 { (eval echo configure:10563: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10563 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10564 if test -z "$ac_err"; then
10566 eval "ac_cv_header_$ac_safe=yes"
10569 echo "configure: failed program was:" >&5
10570 cat conftest.$ac_ext >&5
10572 eval "ac_cv_header_$ac_safe=no"
10575 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10576 echo "$ac_t""yes" 1>&6
10577 canna_includes_found=yes
10579 echo "$ac_t""no" 1>&6
10583 if test "$canna_includes_found" = "no" -a "$with_canna" != "no" -a \
10584 -d "/usr/local/canna/include"; then
10585 save_c_switch_site="$c_switch_site"
10586 c_switch_site="$c_switch_site -I/usr/local/canna/include"
10587 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
10588 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
10589 echo "configure:10590: checking for canna/jrkanji.h" >&5
10591 cat > conftest.$ac_ext <<EOF
10592 #line 10593 "configure"
10593 #include "confdefs.h"
10594 #include <canna/jrkanji.h>
10596 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10597 { (eval echo configure:10598: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10598 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10599 if test -z "$ac_err"; then
10601 eval "ac_cv_header_$ac_safe=yes"
10604 echo "configure: failed program was:" >&5
10605 cat conftest.$ac_ext >&5
10607 eval "ac_cv_header_$ac_safe=no"
10610 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10611 echo "$ac_t""yes" 1>&6
10612 canna_includes_found=yes
10614 echo "$ac_t""no" 1>&6
10617 if test "$canna_includes_found" != "yes"; then
10618 c_switch_site="$save_c_switch_site"
10623 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
10624 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
10625 echo "configure:10626: checking for canna/RK.h" >&5
10627 cat > conftest.$ac_ext <<EOF
10628 #line 10629 "configure"
10629 #include "confdefs.h"
10630 #include <canna/RK.h>
10632 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10633 { (eval echo configure:10634: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10634 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10635 if test -z "$ac_err"; then
10637 eval "ac_cv_header_$ac_safe=yes"
10640 echo "configure: failed program was:" >&5
10641 cat conftest.$ac_ext >&5
10643 eval "ac_cv_header_$ac_safe=no"
10646 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10647 echo "$ac_t""yes" 1>&6
10650 echo "$ac_t""no" 1>&6
10654 test -z "$with_canna" && {
10655 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
10656 echo "configure:10657: checking for RkBgnBun in -lRKC" >&5
10657 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
10659 xe_check_libs=" -lRKC "
10660 cat > conftest.$ac_ext <<EOF
10661 #line 10662 "configure"
10662 #include "confdefs.h"
10663 /* Override any gcc2 internal prototype to avoid an error. */
10664 /* We use char because int might match the return type of a gcc2
10665 builtin and then its argument prototype would still apply. */
10672 if { (eval echo configure:10673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10674 eval "ac_cv_lib_$ac_lib_var=yes"
10676 echo "configure: failed program was:" >&5
10677 cat conftest.$ac_ext >&5
10679 eval "ac_cv_lib_$ac_lib_var=no"
10684 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10685 echo "$ac_t""yes" 1>&6
10688 echo "$ac_t""no" 1>&6
10693 test -z "$with_canna" && {
10694 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
10695 echo "configure:10696: checking for jrKanjiControl in -lcanna" >&5
10696 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
10698 xe_check_libs=" -lcanna "
10699 cat > conftest.$ac_ext <<EOF
10700 #line 10701 "configure"
10701 #include "confdefs.h"
10702 /* Override any gcc2 internal prototype to avoid an error. */
10703 /* We use char because int might match the return type of a gcc2
10704 builtin and then its argument prototype would still apply. */
10705 char jrKanjiControl();
10711 if { (eval echo configure:10712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10713 eval "ac_cv_lib_$ac_lib_var=yes"
10715 echo "configure: failed program was:" >&5
10716 cat conftest.$ac_ext >&5
10718 eval "ac_cv_lib_$ac_lib_var=no"
10723 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10724 echo "$ac_t""yes" 1>&6
10727 echo "$ac_t""no" 1>&6
10732 test -z "$with_canna" && with_canna=yes
10733 if test "$with_canna" = "yes"; then
10734 { test "$extra_verbose" = "yes" && cat << \EOF
10735 Defining HAVE_CANNA
10737 cat >> confdefs.h <<\EOF
10738 #define HAVE_CANNA 1
10742 libs_x="-lcanna -lRKC $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcanna -lRKC\" to \$libs_x"; fi
10743 extra_objs="$extra_objs mule-canna.o" && if test "$extra_verbose" = "yes"; then
10744 echo " xemacs will be linked with \"mule-canna.o\""
10748 else for feature in xim canna wnn; do
10749 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
10750 echo "configure: warning: "--with-${feature} ignored: Not valid without Mule support"" 1>&2
10752 eval "with_${feature}=no"
10756 if test "$need_motif" = "yes" ; then
10757 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi
10759 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6
10760 echo "configure:10761: checking for layout_object_getvalue in -li18n" >&5
10761 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'`
10763 xe_check_libs=" -li18n "
10764 cat > conftest.$ac_ext <<EOF
10765 #line 10766 "configure"
10766 #include "confdefs.h"
10767 /* Override any gcc2 internal prototype to avoid an error. */
10768 /* We use char because int might match the return type of a gcc2
10769 builtin and then its argument prototype would still apply. */
10770 char layout_object_getvalue();
10773 layout_object_getvalue()
10776 if { (eval echo configure:10777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10778 eval "ac_cv_lib_$ac_lib_var=yes"
10780 echo "configure: failed program was:" >&5
10781 cat conftest.$ac_ext >&5
10783 eval "ac_cv_lib_$ac_lib_var=no"
10788 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10789 echo "$ac_t""yes" 1>&6
10790 libs_x="-li18n $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-li18n\" to \$libs_x"; fi
10792 echo "$ac_t""no" 1>&6
10797 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
10798 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
10799 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
10801 runpath="" runpath_dirs=""
10802 if test -n "$LD_RUN_PATH"; then
10803 runpath="$LD_RUN_PATH"
10804 elif test "$GCC" = "yes"; then
10805 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
10806 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
10807 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
10808 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
10809 case "$arg" in P,* | -L* | -R* )
10810 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
10812 xe_runpath_dir="$dir"
10813 test "$xe_runpath_dir" != "/lib" -a \
10814 "$xe_runpath_dir" != "/usr/lib" -a \
10815 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
10816 eval "$xe_add_unique_runpath_dir"
10821 ld_switch_run="$ld_switch_run_save"
10824 for arg in $ld_switch_site $ld_switch_x_site; do
10825 case "$arg" in -L*) {
10826 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
10827 test "$xe_runpath_dir" != "/lib" -a \
10828 "$xe_runpath_dir" != "/usr/lib" -a \
10829 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
10830 eval "$xe_add_unique_runpath_dir"
10833 if test "$opsys $need_motif" = "sol2 yes"; then
10834 xe_runpath_dir="/opt/SUNWdt/lib";
10835 eval "$xe_add_unique_runpath_dir";
10838 if test -n "$runpath"; then
10839 ld_switch_run="${dash_r}${runpath}"
10841 if test "$GCC" = "yes"; then
10842 set x $ld_switch_run; shift; ld_switch_run=""
10843 while test -n "$1"; do
10845 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
10846 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
10848 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
10853 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
10860 for ac_func in cbrt closedir dup2 eaccess fmod fpathconf frexp ftime getaddrinfo gethostname getnameinfo getpagesize gettimeofday getcwd getwd logb lrand48 matherr mkdir mktime perror poll random rename res_init rint rmdir select setitimer setpgid setlocale setsid sigblock sighold sigprocmask snprintf stpcpy strerror tzset ulimit usleep waitpid vsnprintf fsync ftruncate umask
10862 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10863 echo "configure:10864: checking for $ac_func" >&5
10865 cat > conftest.$ac_ext <<EOF
10866 #line 10867 "configure"
10867 #include "confdefs.h"
10868 /* System header to define __stub macros and hopefully few prototypes,
10869 which can conflict with char $ac_func(); below. */
10870 #include <assert.h>
10871 /* Override any gcc2 internal prototype to avoid an error. */
10872 /* We use char because int might match the return type of a gcc2
10873 builtin and then its argument prototype would still apply. */
10878 /* The GNU C library defines this for functions which it implements
10879 to always fail with ENOSYS. Some functions are actually named
10880 something starting with __ and the normal name is an alias. */
10881 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10889 if { (eval echo configure:10890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10891 eval "ac_cv_func_$ac_func=yes"
10893 echo "configure: failed program was:" >&5
10894 cat conftest.$ac_ext >&5
10896 eval "ac_cv_func_$ac_func=no"
10900 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10901 echo "$ac_t""yes" 1>&6
10902 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10903 { test "$extra_verbose" = "yes" && cat << EOF
10904 Defining $ac_tr_func
10906 cat >> confdefs.h <<EOF
10907 #define $ac_tr_func 1
10912 echo "$ac_t""no" 1>&6
10917 if test "$ac_cv_func_getaddrinfo" != "no" ; then
10920 echo "configure: warning: Use of getaddrinfo is disabled for HP-UX 11.XX." 1>&2
10921 ac_cv_func_getaddrinfo=no
10927 for ac_func in getpt _getpty grantpt unlockpt ptsname killpg tcgetpgrp
10929 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10930 echo "configure:10931: checking for $ac_func" >&5
10932 cat > conftest.$ac_ext <<EOF
10933 #line 10934 "configure"
10934 #include "confdefs.h"
10935 /* System header to define __stub macros and hopefully few prototypes,
10936 which can conflict with char $ac_func(); below. */
10937 #include <assert.h>
10938 /* Override any gcc2 internal prototype to avoid an error. */
10939 /* We use char because int might match the return type of a gcc2
10940 builtin and then its argument prototype would still apply. */
10945 /* The GNU C library defines this for functions which it implements
10946 to always fail with ENOSYS. Some functions are actually named
10947 something starting with __ and the normal name is an alias. */
10948 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10956 if { (eval echo configure:10957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10958 eval "ac_cv_func_$ac_func=yes"
10960 echo "configure: failed program was:" >&5
10961 cat conftest.$ac_ext >&5
10963 eval "ac_cv_func_$ac_func=no"
10967 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10968 echo "$ac_t""yes" 1>&6
10969 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10970 { test "$extra_verbose" = "yes" && cat << EOF
10971 Defining $ac_tr_func
10973 cat >> confdefs.h <<EOF
10974 #define $ac_tr_func 1
10979 echo "$ac_t""no" 1>&6
10984 echo $ac_n "checking for openpty""... $ac_c" 1>&6
10985 echo "configure:10986: checking for openpty" >&5
10987 cat > conftest.$ac_ext <<EOF
10988 #line 10989 "configure"
10989 #include "confdefs.h"
10990 /* System header to define __stub macros and hopefully few prototypes,
10991 which can conflict with char openpty(); below. */
10992 #include <assert.h>
10993 /* Override any gcc2 internal prototype to avoid an error. */
10994 /* We use char because int might match the return type of a gcc2
10995 builtin and then its argument prototype would still apply. */
11000 /* The GNU C library defines this for functions which it implements
11001 to always fail with ENOSYS. Some functions are actually named
11002 something starting with __ and the normal name is an alias. */
11003 #if defined (__stub_openpty) || defined (__stub___openpty)
11011 if { (eval echo configure:11012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11013 eval "ac_cv_func_openpty=yes"
11015 echo "configure: failed program was:" >&5
11016 cat conftest.$ac_ext >&5
11018 eval "ac_cv_func_openpty=no"
11022 if eval "test \"`echo '$ac_cv_func_'openpty`\" = yes"; then
11023 echo "$ac_t""yes" 1>&6
11026 echo "$ac_t""no" 1>&6
11029 echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6
11030 echo "configure:11031: checking for openpty in -lutil" >&5
11031 ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'`
11033 xe_check_libs=" -lutil "
11034 cat > conftest.$ac_ext <<EOF
11035 #line 11036 "configure"
11036 #include "confdefs.h"
11037 /* Override any gcc2 internal prototype to avoid an error. */
11038 /* We use char because int might match the return type of a gcc2
11039 builtin and then its argument prototype would still apply. */
11046 if { (eval echo configure:11047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11048 eval "ac_cv_lib_$ac_lib_var=yes"
11050 echo "configure: failed program was:" >&5
11051 cat conftest.$ac_ext >&5
11053 eval "ac_cv_lib_$ac_lib_var=no"
11058 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11059 echo "$ac_t""yes" 1>&6
11060 have_openpty=yes need_libutil=yes
11062 echo "$ac_t""no" 1>&6
11068 if test "$have_openpty" = "yes"; then
11069 { test "$extra_verbose" = "yes" && cat << \EOF
11070 Defining HAVE_OPENPTY
11072 cat >> confdefs.h <<\EOF
11073 #define HAVE_OPENPTY 1
11077 for ac_hdr in pty.h libutil.h util.h
11079 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11080 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11081 echo "configure:11082: checking for $ac_hdr" >&5
11083 cat > conftest.$ac_ext <<EOF
11084 #line 11085 "configure"
11085 #include "confdefs.h"
11088 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11089 { (eval echo configure:11090: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11090 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11091 if test -z "$ac_err"; then
11093 eval "ac_cv_header_$ac_safe=yes"
11096 echo "configure: failed program was:" >&5
11097 cat conftest.$ac_ext >&5
11099 eval "ac_cv_header_$ac_safe=no"
11102 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11103 echo "$ac_t""yes" 1>&6
11104 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11105 { test "$extra_verbose" = "yes" && cat << EOF
11106 Defining $ac_tr_hdr
11108 cat >> confdefs.h <<EOF
11109 #define $ac_tr_hdr 1
11114 echo "$ac_t""no" 1>&6
11118 test "$need_libutil" = "yes" && libs_system="$libs_system -lutil" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lutil\" to \$libs_system"; fi
11121 for ac_hdr in stropts.h
11123 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11124 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11125 echo "configure:11126: checking for $ac_hdr" >&5
11127 cat > conftest.$ac_ext <<EOF
11128 #line 11129 "configure"
11129 #include "confdefs.h"
11132 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11133 { (eval echo configure:11134: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11134 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11135 if test -z "$ac_err"; then
11137 eval "ac_cv_header_$ac_safe=yes"
11140 echo "configure: failed program was:" >&5
11141 cat conftest.$ac_ext >&5
11143 eval "ac_cv_header_$ac_safe=no"
11146 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11147 echo "$ac_t""yes" 1>&6
11148 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11149 { test "$extra_verbose" = "yes" && cat << EOF
11150 Defining $ac_tr_hdr
11152 cat >> confdefs.h <<EOF
11153 #define $ac_tr_hdr 1
11158 echo "$ac_t""no" 1>&6
11162 if test "$ac_cv_header_stropts_h" = "yes"; then
11163 for ac_func in isastream
11165 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11166 echo "configure:11167: checking for $ac_func" >&5
11168 cat > conftest.$ac_ext <<EOF
11169 #line 11170 "configure"
11170 #include "confdefs.h"
11171 /* System header to define __stub macros and hopefully few prototypes,
11172 which can conflict with char $ac_func(); below. */
11173 #include <assert.h>
11174 /* Override any gcc2 internal prototype to avoid an error. */
11175 /* We use char because int might match the return type of a gcc2
11176 builtin and then its argument prototype would still apply. */
11181 /* The GNU C library defines this for functions which it implements
11182 to always fail with ENOSYS. Some functions are actually named
11183 something starting with __ and the normal name is an alias. */
11184 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11192 if { (eval echo configure:11193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11194 eval "ac_cv_func_$ac_func=yes"
11196 echo "configure: failed program was:" >&5
11197 cat conftest.$ac_ext >&5
11199 eval "ac_cv_func_$ac_func=no"
11203 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11204 echo "$ac_t""yes" 1>&6
11205 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11206 { test "$extra_verbose" = "yes" && cat << EOF
11207 Defining $ac_tr_func
11209 cat >> confdefs.h <<EOF
11210 #define $ac_tr_func 1
11215 echo "$ac_t""no" 1>&6
11219 for ac_hdr in strtio.h
11221 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11222 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11223 echo "configure:11224: checking for $ac_hdr" >&5
11225 cat > conftest.$ac_ext <<EOF
11226 #line 11227 "configure"
11227 #include "confdefs.h"
11230 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11231 { (eval echo configure:11232: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11232 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11233 if test -z "$ac_err"; then
11235 eval "ac_cv_header_$ac_safe=yes"
11238 echo "configure: failed program was:" >&5
11239 cat conftest.$ac_ext >&5
11241 eval "ac_cv_header_$ac_safe=no"
11244 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11245 echo "$ac_t""yes" 1>&6
11246 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11247 { test "$extra_verbose" = "yes" && cat << EOF
11248 Defining $ac_tr_hdr
11250 cat >> confdefs.h <<EOF
11251 #define $ac_tr_hdr 1
11256 echo "$ac_t""no" 1>&6
11261 extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
11262 echo " xemacs will be linked with \"realpath.o\""
11265 for ac_func in getloadavg
11267 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11268 echo "configure:11269: checking for $ac_func" >&5
11270 cat > conftest.$ac_ext <<EOF
11271 #line 11272 "configure"
11272 #include "confdefs.h"
11273 /* System header to define __stub macros and hopefully few prototypes,
11274 which can conflict with char $ac_func(); below. */
11275 #include <assert.h>
11276 /* Override any gcc2 internal prototype to avoid an error. */
11277 /* We use char because int might match the return type of a gcc2
11278 builtin and then its argument prototype would still apply. */
11283 /* The GNU C library defines this for functions which it implements
11284 to always fail with ENOSYS. Some functions are actually named
11285 something starting with __ and the normal name is an alias. */
11286 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11294 if { (eval echo configure:11295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11296 eval "ac_cv_func_$ac_func=yes"
11298 echo "configure: failed program was:" >&5
11299 cat conftest.$ac_ext >&5
11301 eval "ac_cv_func_$ac_func=no"
11305 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11306 echo "$ac_t""yes" 1>&6
11307 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11308 { test "$extra_verbose" = "yes" && cat << EOF
11309 Defining $ac_tr_func
11311 cat >> confdefs.h <<EOF
11312 #define $ac_tr_func 1
11317 echo "$ac_t""no" 1>&6
11322 if test "$ac_cv_func_getloadavg" = "yes"; then
11323 for ac_hdr in sys/loadavg.h
11325 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11326 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11327 echo "configure:11328: checking for $ac_hdr" >&5
11329 cat > conftest.$ac_ext <<EOF
11330 #line 11331 "configure"
11331 #include "confdefs.h"
11334 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11335 { (eval echo configure:11336: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11336 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11337 if test -z "$ac_err"; then
11339 eval "ac_cv_header_$ac_safe=yes"
11342 echo "configure: failed program was:" >&5
11343 cat conftest.$ac_ext >&5
11345 eval "ac_cv_header_$ac_safe=no"
11348 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11349 echo "$ac_t""yes" 1>&6
11350 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11351 { test "$extra_verbose" = "yes" && cat << EOF
11352 Defining $ac_tr_hdr
11354 cat >> confdefs.h <<EOF
11355 #define $ac_tr_hdr 1
11360 echo "$ac_t""no" 1>&6
11365 extra_objs="$extra_objs getloadavg.o" && if test "$extra_verbose" = "yes"; then
11366 echo " xemacs will be linked with \"getloadavg.o\""
11370 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
11371 echo "configure:11372: checking for kstat_open in -lkstat" >&5
11372 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
11374 xe_check_libs=" -lkstat "
11375 cat > conftest.$ac_ext <<EOF
11376 #line 11377 "configure"
11377 #include "confdefs.h"
11378 /* Override any gcc2 internal prototype to avoid an error. */
11379 /* We use char because int might match the return type of a gcc2
11380 builtin and then its argument prototype would still apply. */
11387 if { (eval echo configure:11388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11389 eval "ac_cv_lib_$ac_lib_var=yes"
11391 echo "configure: failed program was:" >&5
11392 cat conftest.$ac_ext >&5
11394 eval "ac_cv_lib_$ac_lib_var=no"
11399 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11400 echo "$ac_t""yes" 1>&6
11401 ac_tr_lib=HAVE_LIB`echo kstat | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11402 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11403 { test "$extra_verbose" = "yes" && cat << EOF
11404 Defining $ac_tr_lib
11406 cat >> confdefs.h <<EOF
11407 #define $ac_tr_lib 1
11411 LIBS="-lkstat $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkstat\" to \$LIBS"; fi
11414 echo "$ac_t""no" 1>&6
11418 for ac_hdr in kstat.h
11420 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11421 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11422 echo "configure:11423: checking for $ac_hdr" >&5
11424 cat > conftest.$ac_ext <<EOF
11425 #line 11426 "configure"
11426 #include "confdefs.h"
11429 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11430 { (eval echo configure:11431: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11431 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11432 if test -z "$ac_err"; then
11434 eval "ac_cv_header_$ac_safe=yes"
11437 echo "configure: failed program was:" >&5
11438 cat conftest.$ac_ext >&5
11440 eval "ac_cv_header_$ac_safe=no"
11443 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11444 echo "$ac_t""yes" 1>&6
11445 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11446 { test "$extra_verbose" = "yes" && cat << EOF
11447 Defining $ac_tr_hdr
11449 cat >> confdefs.h <<EOF
11450 #define $ac_tr_hdr 1
11455 echo "$ac_t""no" 1>&6
11461 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
11462 echo "configure:11463: checking for kvm_read in -lkvm" >&5
11463 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
11465 xe_check_libs=" -lkvm "
11466 cat > conftest.$ac_ext <<EOF
11467 #line 11468 "configure"
11468 #include "confdefs.h"
11469 /* Override any gcc2 internal prototype to avoid an error. */
11470 /* We use char because int might match the return type of a gcc2
11471 builtin and then its argument prototype would still apply. */
11478 if { (eval echo configure:11479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11480 eval "ac_cv_lib_$ac_lib_var=yes"
11482 echo "configure: failed program was:" >&5
11483 cat conftest.$ac_ext >&5
11485 eval "ac_cv_lib_$ac_lib_var=no"
11490 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11491 echo "$ac_t""yes" 1>&6
11492 ac_tr_lib=HAVE_LIB`echo kvm | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11493 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11494 { test "$extra_verbose" = "yes" && cat << EOF
11495 Defining $ac_tr_lib
11497 cat >> confdefs.h <<EOF
11498 #define $ac_tr_lib 1
11502 LIBS="-lkvm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkvm\" to \$LIBS"; fi
11505 echo "$ac_t""no" 1>&6
11511 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
11512 echo "configure:11513: checking whether netdb declares h_errno" >&5
11513 cat > conftest.$ac_ext <<EOF
11514 #line 11515 "configure"
11515 #include "confdefs.h"
11521 if { (eval echo configure:11522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11523 echo "$ac_t""yes" 1>&6
11524 { test "$extra_verbose" = "yes" && cat << \EOF
11525 Defining HAVE_H_ERRNO
11527 cat >> confdefs.h <<\EOF
11528 #define HAVE_H_ERRNO 1
11533 echo "configure: failed program was:" >&5
11534 cat conftest.$ac_ext >&5
11536 echo "$ac_t""no" 1>&6
11540 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
11541 echo "configure:11542: checking for sigsetjmp" >&5
11542 cat > conftest.$ac_ext <<EOF
11543 #line 11544 "configure"
11544 #include "confdefs.h"
11545 #include <setjmp.h>
11547 sigjmp_buf bar; sigsetjmp (bar, 0);
11550 if { (eval echo configure:11551: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11552 echo "$ac_t""yes" 1>&6
11553 { test "$extra_verbose" = "yes" && cat << \EOF
11554 Defining HAVE_SIGSETJMP
11556 cat >> confdefs.h <<\EOF
11557 #define HAVE_SIGSETJMP 1
11562 echo "configure: failed program was:" >&5
11563 cat conftest.$ac_ext >&5
11565 echo "$ac_t""no" 1>&6
11569 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
11570 echo "configure:11571: checking whether localtime caches TZ" >&5
11572 if test "$ac_cv_func_tzset" = "yes"; then
11573 cat > conftest.$ac_ext <<EOF
11574 #line 11575 "configure"
11575 #include "confdefs.h"
11578 # include <stdlib.h>
11580 extern char **environ;
11584 for (to = from = environ; (*to = *from); from++)
11585 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
11588 char TZ_GMT0[] = "TZ=GMT0";
11589 char TZ_PST8[] = "TZ=PST8";
11592 time_t now = time ((time_t *) 0);
11593 int hour_GMT0, hour_unset;
11594 if (putenv (TZ_GMT0) != 0)
11596 hour_GMT0 = localtime (&now)->tm_hour;
11598 hour_unset = localtime (&now)->tm_hour;
11599 if (putenv (TZ_PST8) != 0)
11601 if (localtime (&now)->tm_hour == hour_GMT0)
11604 if (localtime (&now)->tm_hour != hour_unset)
11609 if { (eval echo configure:11610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11611 emacs_cv_localtime_cache=no
11614 echo "configure: failed program was:" >&5
11615 cat conftest.$ac_ext >&5
11617 emacs_cv_localtime_cache=yes
11621 # If we lack tzset, report that localtime does not cache TZ,
11622 # since we can't invalidate the cache if we don't have tzset.
11623 emacs_cv_localtime_cache=no
11625 echo "$ac_t""$emacs_cv_localtime_cache" 1>&6
11626 if test $emacs_cv_localtime_cache = yes; then
11627 { test "$extra_verbose" = "yes" && cat << \EOF
11628 Defining LOCALTIME_CACHE
11630 cat >> confdefs.h <<\EOF
11631 #define LOCALTIME_CACHE 1
11637 if test "$HAVE_TIMEVAL" = "yes"; then
11638 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6
11639 echo "configure:11640: checking whether gettimeofday accepts one or two arguments" >&5
11640 cat > conftest.$ac_ext <<EOF
11641 #line 11642 "configure"
11642 #include "confdefs.h"
11644 #ifdef TIME_WITH_SYS_TIME
11645 #include <sys/time.h>
11648 #ifdef HAVE_SYS_TIME_H
11649 #include <sys/time.h>
11657 struct timeval time;
11658 gettimeofday (&time, 0);
11662 if { (eval echo configure:11663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11664 echo "$ac_t""two" 1>&6
11666 echo "configure: failed program was:" >&5
11667 cat conftest.$ac_ext >&5
11669 echo "$ac_t""one" 1>&6
11670 { test "$extra_verbose" = "yes" && cat << \EOF
11671 Defining GETTIMEOFDAY_ONE_ARGUMENT
11673 cat >> confdefs.h <<\EOF
11674 #define GETTIMEOFDAY_ONE_ARGUMENT 1
11683 echo $ac_n "checking for inline""... $ac_c" 1>&6
11684 echo "configure:11685: checking for inline" >&5
11687 for ac_kw in inline __inline__ __inline; do
11688 cat > conftest.$ac_ext <<EOF
11689 #line 11690 "configure"
11690 #include "confdefs.h"
11696 if { (eval echo configure:11697: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11698 ac_cv_c_inline=$ac_kw; break
11700 echo "configure: failed program was:" >&5
11701 cat conftest.$ac_ext >&5
11707 echo "$ac_t""$ac_cv_c_inline" 1>&6
11708 case "$ac_cv_c_inline" in
11710 no) { test "$extra_verbose" = "yes" && cat << \EOF
11713 cat >> confdefs.h <<\EOF
11718 *) { test "$extra_verbose" = "yes" && cat << EOF
11719 Defining inline = $ac_cv_c_inline
11721 cat >> confdefs.h <<EOF
11722 #define inline $ac_cv_c_inline
11728 test "$ac_cv_c_inline" != "no" -a "$GCC" = "yes" && extra_objs="$extra_objs inline.o" && if test "$extra_verbose" = "yes"; then
11729 echo " xemacs will be linked with \"inline.o\""
11733 if test "$__DECC" != "yes"; then
11734 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11735 # for constant arguments. Useless!
11736 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
11737 echo "configure:11738: checking for working alloca.h" >&5
11739 cat > conftest.$ac_ext <<EOF
11740 #line 11741 "configure"
11741 #include "confdefs.h"
11742 #include <alloca.h>
11744 char *p = alloca(2 * sizeof(int));
11747 if { (eval echo configure:11748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11749 ac_cv_header_alloca_h=yes
11751 echo "configure: failed program was:" >&5
11752 cat conftest.$ac_ext >&5
11754 ac_cv_header_alloca_h=no
11758 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
11759 if test $ac_cv_header_alloca_h = yes; then
11760 { test "$extra_verbose" = "yes" && cat << \EOF
11761 Defining HAVE_ALLOCA_H
11763 cat >> confdefs.h <<\EOF
11764 #define HAVE_ALLOCA_H 1
11770 echo $ac_n "checking for alloca""... $ac_c" 1>&6
11771 echo "configure:11772: checking for alloca" >&5
11773 cat > conftest.$ac_ext <<EOF
11774 #line 11775 "configure"
11775 #include "confdefs.h"
11778 # define alloca __builtin_alloca
11781 # include <malloc.h>
11782 # define alloca _alloca
11785 # include <alloca.h>
11790 # ifndef alloca /* predefined by HP cc +Olibcalls */
11799 char *p = (char *) alloca(1);
11802 if { (eval echo configure:11803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11804 ac_cv_func_alloca_works=yes
11806 echo "configure: failed program was:" >&5
11807 cat conftest.$ac_ext >&5
11809 ac_cv_func_alloca_works=no
11813 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
11814 if test $ac_cv_func_alloca_works = yes; then
11815 { test "$extra_verbose" = "yes" && cat << \EOF
11816 Defining HAVE_ALLOCA
11818 cat >> confdefs.h <<\EOF
11819 #define HAVE_ALLOCA 1
11825 if test $ac_cv_func_alloca_works = no; then
11826 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11827 # that cause trouble. Some versions do not even contain alloca or
11828 # contain a buggy version. If you still want to use their alloca,
11829 # use ar to extract alloca.o from them instead of compiling alloca.c.
11830 ALLOCA=alloca.${ac_objext}
11831 { test "$extra_verbose" = "yes" && cat << \EOF
11834 cat >> confdefs.h <<\EOF
11840 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
11841 echo "configure:11842: checking whether alloca needs Cray hooks" >&5
11843 cat > conftest.$ac_ext <<EOF
11844 #line 11845 "configure"
11845 #include "confdefs.h"
11846 #if defined(CRAY) && ! defined(CRAY2)
11853 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11854 egrep "webecray" >/dev/null 2>&1; then
11864 echo "$ac_t""$ac_cv_os_cray" 1>&6
11865 if test $ac_cv_os_cray = yes; then
11866 for ac_func in _getb67 GETB67 getb67; do
11867 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11868 echo "configure:11869: checking for $ac_func" >&5
11870 cat > conftest.$ac_ext <<EOF
11871 #line 11872 "configure"
11872 #include "confdefs.h"
11873 /* System header to define __stub macros and hopefully few prototypes,
11874 which can conflict with char $ac_func(); below. */
11875 #include <assert.h>
11876 /* Override any gcc2 internal prototype to avoid an error. */
11877 /* We use char because int might match the return type of a gcc2
11878 builtin and then its argument prototype would still apply. */
11883 /* The GNU C library defines this for functions which it implements
11884 to always fail with ENOSYS. Some functions are actually named
11885 something starting with __ and the normal name is an alias. */
11886 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11894 if { (eval echo configure:11895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11896 eval "ac_cv_func_$ac_func=yes"
11898 echo "configure: failed program was:" >&5
11899 cat conftest.$ac_ext >&5
11901 eval "ac_cv_func_$ac_func=no"
11905 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11906 echo "$ac_t""yes" 1>&6
11907 { test "$extra_verbose" = "yes" && cat << EOF
11908 Defining CRAY_STACKSEG_END = $ac_func
11910 cat >> confdefs.h <<EOF
11911 #define CRAY_STACKSEG_END $ac_func
11917 echo "$ac_t""no" 1>&6
11923 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
11924 echo "configure:11925: checking stack direction for C alloca" >&5
11926 cat > conftest.$ac_ext <<EOF
11927 #line 11928 "configure"
11928 #include "confdefs.h"
11929 find_stack_direction ()
11931 static char *addr = 0;
11936 return find_stack_direction ();
11939 return (&dummy > addr) ? 1 : -1;
11943 exit (find_stack_direction() < 0);
11946 if { (eval echo configure:11947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11948 ac_cv_c_stack_direction=1
11951 echo "configure: failed program was:" >&5
11952 cat conftest.$ac_ext >&5
11954 ac_cv_c_stack_direction=-1
11958 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
11959 { test "$extra_verbose" = "yes" && cat << EOF
11960 Defining STACK_DIRECTION = $ac_cv_c_stack_direction
11962 cat >> confdefs.h <<EOF
11963 #define STACK_DIRECTION $ac_cv_c_stack_direction
11969 test -n "$ALLOCA" && extra_objs="$extra_objs $ALLOCA" && if test "$extra_verbose" = "yes"; then
11970 echo " xemacs will be linked with \"$ALLOCA\""
11974 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
11975 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
11976 echo "configure:11977: checking for vfork.h" >&5
11978 cat > conftest.$ac_ext <<EOF
11979 #line 11980 "configure"
11980 #include "confdefs.h"
11983 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11984 { (eval echo configure:11985: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11985 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11986 if test -z "$ac_err"; then
11988 eval "ac_cv_header_$ac_safe=yes"
11991 echo "configure: failed program was:" >&5
11992 cat conftest.$ac_ext >&5
11994 eval "ac_cv_header_$ac_safe=no"
11997 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11998 echo "$ac_t""yes" 1>&6
11999 { test "$extra_verbose" = "yes" && cat << \EOF
12000 Defining HAVE_VFORK_H
12002 cat >> confdefs.h <<\EOF
12003 #define HAVE_VFORK_H 1
12008 echo "$ac_t""no" 1>&6
12011 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
12012 echo "configure:12013: checking for working vfork" >&5
12014 cat > conftest.$ac_ext <<EOF
12015 #line 12016 "configure"
12016 #include "confdefs.h"
12017 /* Thanks to Paul Eggert for this test. */
12019 #include <sys/types.h>
12020 #include <sys/stat.h>
12021 #ifdef HAVE_UNISTD_H
12022 #include <unistd.h>
12024 #ifdef HAVE_VFORK_H
12027 /* On some sparc systems, changes by the child to local and incoming
12028 argument registers are propagated back to the parent.
12029 The compiler is told about this with #include <vfork.h>,
12030 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
12031 Test for this by using a static variable whose address
12032 is put into a register that is clobbered by the vfork. */
12035 sparc_address_test (int arg)
12037 sparc_address_test (arg) int arg;
12040 static pid_t child;
12055 pid_t parent = getpid ();
12058 sparc_address_test ();
12063 /* Here is another test for sparc vfork register problems.
12064 This test uses lots of local variables, at least
12065 as many local variables as main has allocated so far
12066 including compiler temporaries. 4 locals are enough for
12067 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
12068 A buggy compiler should reuse the register of parent
12069 for one of the local variables, since it will think that
12070 parent can't possibly be used any more in this routine.
12071 Assigning to the local variable will thus munge parent
12072 in the parent process. */
12074 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12075 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12076 /* Convince the compiler that p..p7 are live; otherwise, it might
12077 use the same hardware register for all 8 local variables. */
12078 if (p != p1 || p != p2 || p != p3 || p != p4
12079 || p != p5 || p != p6 || p != p7)
12082 /* On some systems (e.g. IRIX 3.3),
12083 vfork doesn't separate parent from child file descriptors.
12084 If the child closes a descriptor before it execs or exits,
12085 this munges the parent's descriptor as well.
12086 Test for this by closing stdout in the child. */
12087 _exit(close(fileno(stdout)) != 0);
12092 while (wait(&status) != child)
12095 /* Was there some problem with vforking? */
12098 /* Did the child fail? (This shouldn't happen.) */
12101 /* Did the vfork/compiler bug occur? */
12102 || parent != getpid()
12104 /* Did the file descriptor bug occur? */
12105 || fstat(fileno(stdout), &st) != 0
12110 if { (eval echo configure:12111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12112 ac_cv_func_vfork_works=yes
12115 echo "configure: failed program was:" >&5
12116 cat conftest.$ac_ext >&5
12118 ac_cv_func_vfork_works=no
12122 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
12123 if test $ac_cv_func_vfork_works = no; then
12124 { test "$extra_verbose" = "yes" && cat << \EOF
12125 Defining vfork = fork
12127 cat >> confdefs.h <<\EOF
12135 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
12136 echo "configure:12137: checking for working strcoll" >&5
12138 cat > conftest.$ac_ext <<EOF
12139 #line 12140 "configure"
12140 #include "confdefs.h"
12141 #include <string.h>
12144 exit (strcoll ("abc", "def") >= 0 ||
12145 strcoll ("ABC", "DEF") >= 0 ||
12146 strcoll ("123", "456") >= 0);
12149 if { (eval echo configure:12150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12151 ac_cv_func_strcoll_works=yes
12154 echo "configure: failed program was:" >&5
12155 cat conftest.$ac_ext >&5
12157 ac_cv_func_strcoll_works=no
12161 echo "$ac_t""$ac_cv_func_strcoll_works" 1>&6
12162 if test $ac_cv_func_strcoll_works = yes; then
12163 { test "$extra_verbose" = "yes" && cat << \EOF
12164 Defining HAVE_STRCOLL
12166 cat >> confdefs.h <<\EOF
12167 #define HAVE_STRCOLL 1
12174 for ac_func in getpgrp
12176 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12177 echo "configure:12178: checking for $ac_func" >&5
12179 cat > conftest.$ac_ext <<EOF
12180 #line 12181 "configure"
12181 #include "confdefs.h"
12182 /* System header to define __stub macros and hopefully few prototypes,
12183 which can conflict with char $ac_func(); below. */
12184 #include <assert.h>
12185 /* Override any gcc2 internal prototype to avoid an error. */
12186 /* We use char because int might match the return type of a gcc2
12187 builtin and then its argument prototype would still apply. */
12192 /* The GNU C library defines this for functions which it implements
12193 to always fail with ENOSYS. Some functions are actually named
12194 something starting with __ and the normal name is an alias. */
12195 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12203 if { (eval echo configure:12204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12205 eval "ac_cv_func_$ac_func=yes"
12207 echo "configure: failed program was:" >&5
12208 cat conftest.$ac_ext >&5
12210 eval "ac_cv_func_$ac_func=no"
12214 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12215 echo "$ac_t""yes" 1>&6
12216 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12217 { test "$extra_verbose" = "yes" && cat << EOF
12218 Defining $ac_tr_func
12220 cat >> confdefs.h <<EOF
12221 #define $ac_tr_func 1
12226 echo "$ac_t""no" 1>&6
12230 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
12231 echo "configure:12232: checking whether getpgrp takes no argument" >&5
12233 cat > conftest.$ac_ext <<EOF
12234 #line 12235 "configure"
12235 #include "confdefs.h"
12238 * If this system has a BSD-style getpgrp(),
12239 * which takes a pid argument, exit unsuccessfully.
12241 * Snarfed from Chet Ramey's bash pgrp.c test program
12244 #include <sys/types.h>
12247 int pg1, pg2, pg3, pg4;
12248 int ng, np, s, child;
12255 pg3 = getpgrp(pid);
12259 * If all of these values are the same, it's pretty sure that
12260 * we're on a system that ignores getpgrp's first argument.
12262 if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3)
12268 else if (child == 0) {
12271 * If this is Sys V, this will not work; pgrp will be
12272 * set to np because setpgrp just changes a pgrp to be
12273 * the same as the pid.
12276 ng = getpgrp(0); /* Same result for Sys V and BSD */
12289 if { (eval echo configure:12290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12291 ac_cv_func_getpgrp_void=yes
12294 echo "configure: failed program was:" >&5
12295 cat conftest.$ac_ext >&5
12297 ac_cv_func_getpgrp_void=no
12302 echo "$ac_t""$ac_cv_func_getpgrp_void" 1>&6
12303 if test $ac_cv_func_getpgrp_void = yes; then
12304 { test "$extra_verbose" = "yes" && cat << \EOF
12305 Defining GETPGRP_VOID
12307 cat >> confdefs.h <<\EOF
12308 #define GETPGRP_VOID 1
12315 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
12316 echo "configure:12317: checking for working mmap" >&5
12317 case "$opsys" in ultrix* ) have_mmap=no ;; *)
12318 cat > conftest.$ac_ext <<EOF
12319 #line 12320 "configure"
12320 #include "confdefs.h"
12322 #include <unistd.h>
12324 #include <sys/mman.h>
12326 #ifndef MAP_VARIABLE
12327 #define MAP_VARIABLE 0
12331 #define MAP_FAILED -1
12334 int main (int argc, char *argv[])
12338 #ifndef MAP_ANONYMOUS
12339 fd = open ("/dev/zero", O_RDWR);
12342 #define MAP_ANONYMOUS 0
12344 if (mmap(0, 1024, PROT_READ | PROT_WRITE,
12345 MAP_PRIVATE | MAP_VARIABLE | MAP_ANONYMOUS,
12346 fd, 0) != (void *) MAP_FAILED)
12348 perror ("conftest: mmap failed");
12352 if { (eval echo configure:12353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12357 echo "configure: failed program was:" >&5
12358 cat conftest.$ac_ext >&5
12362 rm -fr conftest* ;;
12364 echo "$ac_t""$have_mmap" 1>&6
12365 test "$have_mmap" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
12368 cat >> confdefs.h <<\EOF
12369 #define HAVE_MMAP 1
12374 case "$opsys" in cygwin*)
12375 test "$rel_alloc" = "default" && rel_alloc=no ;;
12377 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no
12378 if test "$rel_alloc $have_mmap" = "default yes"; then
12379 if test "$doug_lea_malloc" = "yes"; then
12380 echo $ac_n "checking for M_MMAP_THRESHOLD""... $ac_c" 1>&6
12381 echo "configure:12382: checking for M_MMAP_THRESHOLD" >&5
12382 cat > conftest.$ac_ext <<EOF
12383 #line 12384 "configure"
12384 #include "confdefs.h"
12385 #include <malloc.h>
12388 #ifndef M_MMAP_THRESHOLD
12389 #error No M_MMAP_THRESHOLD :-(
12390 !@+$%^&*_)(_ - unlikely to compile...
12395 if { (eval echo configure:12396: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12397 rel_alloc=no; echo "$ac_t""yes" 1>&6;
12399 echo "configure: failed program was:" >&5
12400 cat conftest.$ac_ext >&5
12402 rel_alloc=yes; echo "$ac_t""no" 1>&6;
12409 test "$rel_alloc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
12412 cat >> confdefs.h <<\EOF
12413 #define REL_ALLOC 1
12418 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
12419 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
12420 echo "configure:12421: checking for termios.h" >&5
12422 cat > conftest.$ac_ext <<EOF
12423 #line 12424 "configure"
12424 #include "confdefs.h"
12425 #include <termios.h>
12427 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12428 { (eval echo configure:12429: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12429 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12430 if test -z "$ac_err"; then
12432 eval "ac_cv_header_$ac_safe=yes"
12435 echo "configure: failed program was:" >&5
12436 cat conftest.$ac_ext >&5
12438 eval "ac_cv_header_$ac_safe=no"
12441 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12442 echo "$ac_t""yes" 1>&6
12443 { test "$extra_verbose" = "yes" && cat << \EOF
12444 Defining HAVE_TERMIOS
12446 cat >> confdefs.h <<\EOF
12447 #define HAVE_TERMIOS 1
12451 { test "$extra_verbose" = "yes" && cat << \EOF
12452 Defining SIGNALS_VIA_CHARACTERS
12454 cat >> confdefs.h <<\EOF
12455 #define SIGNALS_VIA_CHARACTERS 1
12459 { test "$extra_verbose" = "yes" && cat << \EOF
12462 cat >> confdefs.h <<\EOF
12463 #define NO_TERMIO 1
12468 echo "$ac_t""no" 1>&6
12469 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
12470 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
12471 echo "configure:12472: checking for termio.h" >&5
12473 cat > conftest.$ac_ext <<EOF
12474 #line 12475 "configure"
12475 #include "confdefs.h"
12476 #include <termio.h>
12478 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12479 { (eval echo configure:12480: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12480 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12481 if test -z "$ac_err"; then
12483 eval "ac_cv_header_$ac_safe=yes"
12486 echo "configure: failed program was:" >&5
12487 cat conftest.$ac_ext >&5
12489 eval "ac_cv_header_$ac_safe=no"
12492 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12493 echo "$ac_t""yes" 1>&6
12494 { test "$extra_verbose" = "yes" && cat << \EOF
12495 Defining HAVE_TERMIO
12497 cat >> confdefs.h <<\EOF
12498 #define HAVE_TERMIO 1
12503 echo "$ac_t""no" 1>&6
12510 echo $ac_n "checking for socket""... $ac_c" 1>&6
12511 echo "configure:12512: checking for socket" >&5
12513 cat > conftest.$ac_ext <<EOF
12514 #line 12515 "configure"
12515 #include "confdefs.h"
12516 /* System header to define __stub macros and hopefully few prototypes,
12517 which can conflict with char socket(); below. */
12518 #include <assert.h>
12519 /* Override any gcc2 internal prototype to avoid an error. */
12520 /* We use char because int might match the return type of a gcc2
12521 builtin and then its argument prototype would still apply. */
12526 /* The GNU C library defines this for functions which it implements
12527 to always fail with ENOSYS. Some functions are actually named
12528 something starting with __ and the normal name is an alias. */
12529 #if defined (__stub_socket) || defined (__stub___socket)
12537 if { (eval echo configure:12538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12539 eval "ac_cv_func_socket=yes"
12541 echo "configure: failed program was:" >&5
12542 cat conftest.$ac_ext >&5
12544 eval "ac_cv_func_socket=no"
12548 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
12549 echo "$ac_t""yes" 1>&6
12550 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
12551 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
12552 echo "configure:12553: checking for netinet/in.h" >&5
12554 cat > conftest.$ac_ext <<EOF
12555 #line 12556 "configure"
12556 #include "confdefs.h"
12557 #include <netinet/in.h>
12559 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12560 { (eval echo configure:12561: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12561 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12562 if test -z "$ac_err"; then
12564 eval "ac_cv_header_$ac_safe=yes"
12567 echo "configure: failed program was:" >&5
12568 cat conftest.$ac_ext >&5
12570 eval "ac_cv_header_$ac_safe=no"
12573 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12574 echo "$ac_t""yes" 1>&6
12575 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
12576 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
12577 echo "configure:12578: checking for arpa/inet.h" >&5
12579 cat > conftest.$ac_ext <<EOF
12580 #line 12581 "configure"
12581 #include "confdefs.h"
12582 #include <arpa/inet.h>
12584 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12585 { (eval echo configure:12586: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12586 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12587 if test -z "$ac_err"; then
12589 eval "ac_cv_header_$ac_safe=yes"
12592 echo "configure: failed program was:" >&5
12593 cat conftest.$ac_ext >&5
12595 eval "ac_cv_header_$ac_safe=no"
12598 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12599 echo "$ac_t""yes" 1>&6
12601 { test "$extra_verbose" = "yes" && cat << \EOF
12602 Defining HAVE_SOCKETS
12604 cat >> confdefs.h <<\EOF
12605 #define HAVE_SOCKETS 1
12609 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
12610 echo "configure:12611: checking "for sun_len member in struct sockaddr_un"" >&5
12611 cat > conftest.$ac_ext <<EOF
12612 #line 12613 "configure"
12613 #include "confdefs.h"
12615 #include <sys/types.h>
12616 #include <sys/socket.h>
12617 #include <sys/un.h>
12620 static struct sockaddr_un x; x.sun_len = 1;
12623 if { (eval echo configure:12624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12625 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
12626 Defining HAVE_SOCKADDR_SUN_LEN
12628 cat >> confdefs.h <<\EOF
12629 #define HAVE_SOCKADDR_SUN_LEN 1
12634 echo "configure: failed program was:" >&5
12635 cat conftest.$ac_ext >&5
12637 echo "$ac_t""no" 1>&6
12640 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6
12641 echo "configure:12642: checking "for ip_mreq struct in netinet/in.h"" >&5
12642 cat > conftest.$ac_ext <<EOF
12643 #line 12644 "configure"
12644 #include "confdefs.h"
12646 #include <sys/types.h>
12647 #include <netinet/in.h>
12650 static struct ip_mreq x;
12653 if { (eval echo configure:12654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12655 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
12656 Defining HAVE_MULTICAST
12658 cat >> confdefs.h <<\EOF
12659 #define HAVE_MULTICAST 1
12664 echo "configure: failed program was:" >&5
12665 cat conftest.$ac_ext >&5
12667 echo "$ac_t""no" 1>&6
12671 echo "$ac_t""no" 1>&6
12675 echo "$ac_t""no" 1>&6
12679 echo "$ac_t""no" 1>&6
12683 echo $ac_n "checking for msgget""... $ac_c" 1>&6
12684 echo "configure:12685: checking for msgget" >&5
12686 cat > conftest.$ac_ext <<EOF
12687 #line 12688 "configure"
12688 #include "confdefs.h"
12689 /* System header to define __stub macros and hopefully few prototypes,
12690 which can conflict with char msgget(); below. */
12691 #include <assert.h>
12692 /* Override any gcc2 internal prototype to avoid an error. */
12693 /* We use char because int might match the return type of a gcc2
12694 builtin and then its argument prototype would still apply. */
12699 /* The GNU C library defines this for functions which it implements
12700 to always fail with ENOSYS. Some functions are actually named
12701 something starting with __ and the normal name is an alias. */
12702 #if defined (__stub_msgget) || defined (__stub___msgget)
12710 if { (eval echo configure:12711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12712 eval "ac_cv_func_msgget=yes"
12714 echo "configure: failed program was:" >&5
12715 cat conftest.$ac_ext >&5
12717 eval "ac_cv_func_msgget=no"
12721 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
12722 echo "$ac_t""yes" 1>&6
12723 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
12724 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
12725 echo "configure:12726: checking for sys/ipc.h" >&5
12727 cat > conftest.$ac_ext <<EOF
12728 #line 12729 "configure"
12729 #include "confdefs.h"
12730 #include <sys/ipc.h>
12732 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12733 { (eval echo configure:12734: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12734 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12735 if test -z "$ac_err"; then
12737 eval "ac_cv_header_$ac_safe=yes"
12740 echo "configure: failed program was:" >&5
12741 cat conftest.$ac_ext >&5
12743 eval "ac_cv_header_$ac_safe=no"
12746 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12747 echo "$ac_t""yes" 1>&6
12748 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
12749 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
12750 echo "configure:12751: checking for sys/msg.h" >&5
12752 cat > conftest.$ac_ext <<EOF
12753 #line 12754 "configure"
12754 #include "confdefs.h"
12755 #include <sys/msg.h>
12757 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12758 { (eval echo configure:12759: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12759 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12760 if test -z "$ac_err"; then
12762 eval "ac_cv_header_$ac_safe=yes"
12765 echo "configure: failed program was:" >&5
12766 cat conftest.$ac_ext >&5
12768 eval "ac_cv_header_$ac_safe=no"
12771 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12772 echo "$ac_t""yes" 1>&6
12773 { test "$extra_verbose" = "yes" && cat << \EOF
12774 Defining HAVE_SYSVIPC
12776 cat >> confdefs.h <<\EOF
12777 #define HAVE_SYSVIPC 1
12782 echo "$ac_t""no" 1>&6
12786 echo "$ac_t""no" 1>&6
12790 echo "$ac_t""no" 1>&6
12794 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
12795 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
12796 echo "configure:12797: checking for dirent.h" >&5
12798 cat > conftest.$ac_ext <<EOF
12799 #line 12800 "configure"
12800 #include "confdefs.h"
12801 #include <dirent.h>
12803 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12804 { (eval echo configure:12805: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12805 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12806 if test -z "$ac_err"; then
12808 eval "ac_cv_header_$ac_safe=yes"
12811 echo "configure: failed program was:" >&5
12812 cat conftest.$ac_ext >&5
12814 eval "ac_cv_header_$ac_safe=no"
12817 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12818 echo "$ac_t""yes" 1>&6
12819 { test "$extra_verbose" = "yes" && cat << \EOF
12820 Defining SYSV_SYSTEM_DIR
12822 cat >> confdefs.h <<\EOF
12823 #define SYSV_SYSTEM_DIR 1
12828 echo "$ac_t""no" 1>&6
12829 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
12830 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
12831 echo "configure:12832: checking for sys/dir.h" >&5
12833 cat > conftest.$ac_ext <<EOF
12834 #line 12835 "configure"
12835 #include "confdefs.h"
12836 #include <sys/dir.h>
12838 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12839 { (eval echo configure:12840: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12840 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12841 if test -z "$ac_err"; then
12843 eval "ac_cv_header_$ac_safe=yes"
12846 echo "configure: failed program was:" >&5
12847 cat conftest.$ac_ext >&5
12849 eval "ac_cv_header_$ac_safe=no"
12852 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12853 echo "$ac_t""yes" 1>&6
12856 echo "$ac_t""no" 1>&6
12857 { test "$extra_verbose" = "yes" && cat << \EOF
12858 Defining NONSYSTEM_DIR_LIBRARY
12860 cat >> confdefs.h <<\EOF
12861 #define NONSYSTEM_DIR_LIBRARY 1
12870 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
12871 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
12872 echo "configure:12873: checking for nlist.h" >&5
12874 cat > conftest.$ac_ext <<EOF
12875 #line 12876 "configure"
12876 #include "confdefs.h"
12879 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12880 { (eval echo configure:12881: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12881 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12882 if test -z "$ac_err"; then
12884 eval "ac_cv_header_$ac_safe=yes"
12887 echo "configure: failed program was:" >&5
12888 cat conftest.$ac_ext >&5
12890 eval "ac_cv_header_$ac_safe=no"
12893 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12894 echo "$ac_t""yes" 1>&6
12895 { test "$extra_verbose" = "yes" && cat << \EOF
12896 Defining NLIST_STRUCT
12898 cat >> confdefs.h <<\EOF
12899 #define NLIST_STRUCT 1
12904 echo "$ac_t""no" 1>&6
12909 echo "checking "for sound support"" 1>&6
12910 echo "configure:12911: checking "for sound support"" >&5
12911 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
12913 if test "$with_native_sound" != "no"; then
12914 if test -n "$native_sound_lib"; then
12915 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
12916 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
12917 echo "configure:12918: checking for multimedia/audio_device.h" >&5
12919 cat > conftest.$ac_ext <<EOF
12920 #line 12921 "configure"
12921 #include "confdefs.h"
12922 #include <multimedia/audio_device.h>
12924 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12925 { (eval echo configure:12926: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12926 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12927 if test -z "$ac_err"; then
12929 eval "ac_cv_header_$ac_safe=yes"
12932 echo "configure: failed program was:" >&5
12933 cat conftest.$ac_ext >&5
12935 eval "ac_cv_header_$ac_safe=no"
12938 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12939 echo "$ac_t""yes" 1>&6
12940 sound_found=yes sound_cflags=""
12941 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
12942 echo " xemacs will be linked with \"sunplay.o\""
12945 echo "$ac_t""no" 1>&6
12950 if test -z "$sound_found" -a -d "/usr/demo/SOUND"; then
12952 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
12953 echo " xemacs will be linked with \"sunplay.o\""
12955 if test -d "/usr/demo/SOUND/include"
12956 then sound_cflags="-I/usr/demo/SOUND/include"
12957 else sound_cflags="-I/usr/demo/SOUND"
12959 if test -z "$native_sound_lib" ; then
12960 if test -r "/usr/demo/SOUND/lib/libaudio.a"
12961 then native_sound_lib="/usr/demo/SOUND/lib/libaudio.a"
12962 else native_sound_lib="/usr/demo/SOUND/libaudio.a"
12967 if test -z "$sound_found"; then
12968 case "$canonical" in
12970 if test -z "$native_sound_lib"; then
12972 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
12973 echo "configure:12974: checking for ALopenport in -laudio" >&5
12974 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
12976 xe_check_libs=" -laudio "
12977 cat > conftest.$ac_ext <<EOF
12978 #line 12979 "configure"
12979 #include "confdefs.h"
12980 /* Override any gcc2 internal prototype to avoid an error. */
12981 /* We use char because int might match the return type of a gcc2
12982 builtin and then its argument prototype would still apply. */
12989 if { (eval echo configure:12990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12991 eval "ac_cv_lib_$ac_lib_var=yes"
12993 echo "configure: failed program was:" >&5
12994 cat conftest.$ac_ext >&5
12996 eval "ac_cv_lib_$ac_lib_var=no"
13001 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13002 echo "$ac_t""yes" 1>&6
13003 native_sound_lib="-laudio"
13005 echo "$ac_t""no" 1>&6
13010 if test -n "$native_sound_lib"; then
13011 sound_found=yes sound_cflags=""
13012 extra_objs="$extra_objs sgiplay.o" && if test "$extra_verbose" = "yes"; then
13013 echo " xemacs will be linked with \"sgiplay.o\""
13017 if test -z "$native_sound_lib"; then
13019 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
13020 echo "configure:13021: checking for AOpenAudio in -lAlib" >&5
13021 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
13023 xe_check_libs=" -lAlib "
13024 cat > conftest.$ac_ext <<EOF
13025 #line 13026 "configure"
13026 #include "confdefs.h"
13027 /* Override any gcc2 internal prototype to avoid an error. */
13028 /* We use char because int might match the return type of a gcc2
13029 builtin and then its argument prototype would still apply. */
13036 if { (eval echo configure:13037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13038 eval "ac_cv_lib_$ac_lib_var=yes"
13040 echo "configure: failed program was:" >&5
13041 cat conftest.$ac_ext >&5
13043 eval "ac_cv_lib_$ac_lib_var=no"
13048 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13049 echo "$ac_t""yes" 1>&6
13050 native_sound_lib="-lAlib"
13052 echo "$ac_t""no" 1>&6
13057 if test -n "$native_sound_lib"; then
13059 extra_objs="$extra_objs hpplay.o" && if test "$extra_verbose" = "yes"; then
13060 echo " xemacs will be linked with \"hpplay.o\""
13062 if test "$GCC" = "yes" # Kludge city
13063 then sound_cflags="-Dconst= -Dvolatile= -I/usr/audio/examples"
13064 else sound_cflags="+e -I/usr/audio/examples"
13070 if test -z "$sound_found"; then
13071 if test "$with_msw" = "yes"; then
13077 if test -z "$sound_found"; then
13078 for dir in "machine" "sys" "linux"; do
13079 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
13080 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
13081 echo "configure:13082: checking for ${dir}/soundcard.h" >&5
13083 cat > conftest.$ac_ext <<EOF
13084 #line 13085 "configure"
13085 #include "confdefs.h"
13086 #include <${dir}/soundcard.h>
13088 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13089 { (eval echo configure:13090: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13090 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13091 if test -z "$ac_err"; then
13093 eval "ac_cv_header_$ac_safe=yes"
13096 echo "configure: failed program was:" >&5
13097 cat conftest.$ac_ext >&5
13099 eval "ac_cv_header_$ac_safe=no"
13102 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13103 echo "$ac_t""yes" 1>&6
13106 extra_objs="$extra_objs linuxplay.o" && if test "$extra_verbose" = "yes"; then
13107 echo " xemacs will be linked with \"linuxplay.o\""
13109 { test "$extra_verbose" = "yes" && cat << EOF
13110 Defining SOUNDCARD_H_FILE = "${dir}/soundcard.h"
13112 cat >> confdefs.h <<EOF
13113 #define SOUNDCARD_H_FILE "${dir}/soundcard.h"
13119 echo "$ac_t""no" 1>&6
13125 test "$sound_found" = "yes" && with_native_sound=yes
13128 if test "$with_native_sound" = "yes"; then
13129 { test "$extra_verbose" = "yes" && cat << \EOF
13130 Defining HAVE_NATIVE_SOUND
13132 cat >> confdefs.h <<\EOF
13133 #define HAVE_NATIVE_SOUND 1
13137 test -n "$native_sound_lib" && LIBS="$native_sound_lib $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$native_sound_lib\" to \$LIBS"; fi
13140 if test "$with_nas_sound" != "no"; then
13141 ac_safe=`echo "audio/audiolib.h" | sed 'y%./+-%__p_%'`
13142 echo $ac_n "checking for audio/audiolib.h""... $ac_c" 1>&6
13143 echo "configure:13144: checking for audio/audiolib.h" >&5
13145 cat > conftest.$ac_ext <<EOF
13146 #line 13147 "configure"
13147 #include "confdefs.h"
13148 #include <audio/audiolib.h>
13150 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13151 { (eval echo configure:13152: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13152 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13153 if test -z "$ac_err"; then
13155 eval "ac_cv_header_$ac_safe=yes"
13158 echo "configure: failed program was:" >&5
13159 cat conftest.$ac_ext >&5
13161 eval "ac_cv_header_$ac_safe=no"
13164 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13165 echo "$ac_t""yes" 1>&6
13168 echo $ac_n "checking for AuOpenServer in -laudio""... $ac_c" 1>&6
13169 echo "configure:13170: checking for AuOpenServer in -laudio" >&5
13170 ac_lib_var=`echo audio'_'AuOpenServer | sed 'y%./+-%__p_%'`
13172 xe_check_libs=" -laudio "
13173 cat > conftest.$ac_ext <<EOF
13174 #line 13175 "configure"
13175 #include "confdefs.h"
13176 /* Override any gcc2 internal prototype to avoid an error. */
13177 /* We use char because int might match the return type of a gcc2
13178 builtin and then its argument prototype would still apply. */
13179 char AuOpenServer();
13185 if { (eval echo configure:13186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13187 eval "ac_cv_lib_$ac_lib_var=yes"
13189 echo "configure: failed program was:" >&5
13190 cat conftest.$ac_ext >&5
13192 eval "ac_cv_lib_$ac_lib_var=no"
13197 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13198 echo "$ac_t""yes" 1>&6
13201 echo "$ac_t""no" 1>&6
13206 echo "$ac_t""no" 1>&6
13209 if test "$have_nas_sound" = "yes"; then
13211 { test "$extra_verbose" = "yes" && cat << \EOF
13212 Defining HAVE_NAS_SOUND
13214 cat >> confdefs.h <<\EOF
13215 #define HAVE_NAS_SOUND 1
13219 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
13220 echo " xemacs will be linked with \"nas.o\""
13222 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi
13223 cat > conftest.$ac_ext <<EOF
13224 #line 13225 "configure"
13225 #include "confdefs.h"
13226 #include <audio/Xtutil.h>
13228 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13229 egrep "AuXtErrorJump" >/dev/null 2>&1; then
13233 old_nas=yes; { test "$extra_verbose" = "yes" && cat << \EOF
13234 Defining NAS_NO_ERROR_JUMP
13236 cat >> confdefs.h <<\EOF
13237 #define NAS_NO_ERROR_JUMP 1
13245 test "$with_nas_sound" = "yes" && \
13246 { echo "Error:" "Required NAS sound support cannot be provided." >&2; exit 1; }
13251 if test "$with_esd_sound" != "no"; then
13252 # Extract the first word of "esd-config", so it can be a program name with args.
13253 set dummy esd-config; ac_word=$2
13254 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
13255 echo "configure:13256: checking for $ac_word" >&5
13257 if test -n "$have_esd_config"; then
13258 ac_cv_prog_have_esd_config="$have_esd_config" # Let the user override the test.
13260 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
13262 for ac_dir in $ac_dummy; do
13263 test -z "$ac_dir" && ac_dir=.
13264 if test -f $ac_dir/$ac_word; then
13265 ac_cv_prog_have_esd_config="yes"
13270 test -z "$ac_cv_prog_have_esd_config" && ac_cv_prog_have_esd_config="no"
13272 have_esd_config="$ac_cv_prog_have_esd_config"
13273 if test -n "$have_esd_config"; then
13274 echo "$ac_t""$have_esd_config" 1>&6
13276 echo "$ac_t""no" 1>&6
13279 if test "$have_esd_config" = "yes"; then
13280 save_c_switch_site="$c_switch_site" save_LIBS="$LIBS"
13281 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
13282 LIBS="`esd-config --libs` $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"`esd-config --libs`\" to \$LIBS"; fi
13283 echo $ac_n "checking for esd_play_stream""... $ac_c" 1>&6
13284 echo "configure:13285: checking for esd_play_stream" >&5
13286 cat > conftest.$ac_ext <<EOF
13287 #line 13288 "configure"
13288 #include "confdefs.h"
13289 /* System header to define __stub macros and hopefully few prototypes,
13290 which can conflict with char esd_play_stream(); below. */
13291 #include <assert.h>
13292 /* Override any gcc2 internal prototype to avoid an error. */
13293 /* We use char because int might match the return type of a gcc2
13294 builtin and then its argument prototype would still apply. */
13295 char esd_play_stream();
13299 /* The GNU C library defines this for functions which it implements
13300 to always fail with ENOSYS. Some functions are actually named
13301 something starting with __ and the normal name is an alias. */
13302 #if defined (__stub_esd_play_stream) || defined (__stub___esd_play_stream)
13310 if { (eval echo configure:13311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13312 eval "ac_cv_func_esd_play_stream=yes"
13314 echo "configure: failed program was:" >&5
13315 cat conftest.$ac_ext >&5
13317 eval "ac_cv_func_esd_play_stream=no"
13321 if eval "test \"`echo '$ac_cv_func_'esd_play_stream`\" = yes"; then
13322 echo "$ac_t""yes" 1>&6
13325 echo "$ac_t""no" 1>&6
13326 c_switch_site="$save_c_switch_site" LIBS="$save_LIBS"
13331 if test "$have_esd_sound" = "yes"; then
13334 extra_objs="$extra_objs esd.o" && if test "$extra_verbose" = "yes"; then
13335 echo " xemacs will be linked with \"esd.o\""
13337 { test "$extra_verbose" = "yes" && cat << \EOF
13338 Defining HAVE_ESD_SOUND
13340 cat >> confdefs.h <<\EOF
13341 #define HAVE_ESD_SOUND 1
13346 test "$with_esd_sound" = "yes" && \
13347 { echo "Error:" "Required ESD sound support cannot be provided." >&2; exit 1; }
13352 test "$need_miscplay" = "yes" && extra_objs="$extra_objs miscplay.o" && if test "$extra_verbose" = "yes"; then
13353 echo " xemacs will be linked with \"miscplay.o\""
13357 test -z "$with_tty" && with_tty=yes
13359 if test "$with_tty" = "yes" ; then
13360 echo "checking for TTY-related features" 1>&6
13361 echo "configure:13362: checking for TTY-related features" >&5
13362 { test "$extra_verbose" = "yes" && cat << \EOF
13365 cat >> confdefs.h <<\EOF
13370 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
13371 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\""
13374 if test -z "$with_ncurses"; then
13376 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
13377 echo "configure:13378: checking for tgetent in -lncurses" >&5
13378 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
13380 xe_check_libs=" -lncurses "
13381 cat > conftest.$ac_ext <<EOF
13382 #line 13383 "configure"
13383 #include "confdefs.h"
13384 /* Override any gcc2 internal prototype to avoid an error. */
13385 /* We use char because int might match the return type of a gcc2
13386 builtin and then its argument prototype would still apply. */
13393 if { (eval echo configure:13394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13395 eval "ac_cv_lib_$ac_lib_var=yes"
13397 echo "configure: failed program was:" >&5
13398 cat conftest.$ac_ext >&5
13400 eval "ac_cv_lib_$ac_lib_var=no"
13405 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13406 echo "$ac_t""yes" 1>&6
13409 echo "$ac_t""no" 1>&6
13415 if test "$with_ncurses" = "yes"; then
13416 { test "$extra_verbose" = "yes" && cat << \EOF
13417 Defining HAVE_NCURSES
13419 cat >> confdefs.h <<\EOF
13420 #define HAVE_NCURSES 1
13424 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
13425 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
13426 echo "configure:13427: checking for ncurses/curses.h" >&5
13428 cat > conftest.$ac_ext <<EOF
13429 #line 13430 "configure"
13430 #include "confdefs.h"
13431 #include <ncurses/curses.h>
13433 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13434 { (eval echo configure:13435: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13435 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13436 if test -z "$ac_err"; then
13438 eval "ac_cv_header_$ac_safe=yes"
13441 echo "configure: failed program was:" >&5
13442 cat conftest.$ac_ext >&5
13444 eval "ac_cv_header_$ac_safe=no"
13447 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13448 echo "$ac_t""yes" 1>&6
13449 curses_h_file=ncurses/curses.h
13451 echo "$ac_t""no" 1>&6
13454 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
13455 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
13456 echo "configure:13457: checking for ncurses/term.h" >&5
13458 cat > conftest.$ac_ext <<EOF
13459 #line 13460 "configure"
13460 #include "confdefs.h"
13461 #include <ncurses/term.h>
13463 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13464 { (eval echo configure:13465: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13465 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13466 if test -z "$ac_err"; then
13468 eval "ac_cv_header_$ac_safe=yes"
13471 echo "configure: failed program was:" >&5
13472 cat conftest.$ac_ext >&5
13474 eval "ac_cv_header_$ac_safe=no"
13477 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13478 echo "$ac_t""yes" 1>&6
13479 term_h_file=ncurses/term.h
13481 echo "$ac_t""no" 1>&6
13484 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
13485 echo " xemacs will be linked with \"terminfo.o\""
13487 LIBS="-lncurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lncurses\" to \$LIBS"; fi
13489 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
13490 save_c_switch_site="$c_switch_site"
13491 c_switch_site="$c_switch_site -I/usr/include/ncurses"
13492 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
13493 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
13494 echo "configure:13495: checking for ncurses/curses.h" >&5
13496 cat > conftest.$ac_ext <<EOF
13497 #line 13498 "configure"
13498 #include "confdefs.h"
13499 #include <ncurses/curses.h>
13501 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13502 { (eval echo configure:13503: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13503 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13504 if test -z "$ac_err"; then
13506 eval "ac_cv_header_$ac_safe=yes"
13509 echo "configure: failed program was:" >&5
13510 cat conftest.$ac_ext >&5
13512 eval "ac_cv_header_$ac_safe=no"
13515 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13516 echo "$ac_t""yes" 1>&6
13517 curses_h_file=ncurses/curses.h
13519 echo "$ac_t""no" 1>&6
13522 if test "$ac_cv_header_ncurses_curses_h" = "yes"
13523 then echo "configure: warning: "Your system has the bogus ncurses include bug."" 1>&2
13524 else c_switch_site="$save_c_switch_site"
13527 else if test "$have_terminfo" = "yes"; then
13528 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
13529 echo " xemacs will be linked with \"terminfo.o\""
13531 if test -n "$libs_termcap"; then
13532 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
13534 for lib in curses termlib termcap; do
13536 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
13537 echo "configure:13538: checking for tgetent in -l$lib" >&5
13538 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
13540 xe_check_libs=" -l$lib "
13541 cat > conftest.$ac_ext <<EOF
13542 #line 13543 "configure"
13543 #include "confdefs.h"
13544 /* Override any gcc2 internal prototype to avoid an error. */
13545 /* We use char because int might match the return type of a gcc2
13546 builtin and then its argument prototype would still apply. */
13553 if { (eval echo configure:13554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13555 eval "ac_cv_lib_$ac_lib_var=yes"
13557 echo "configure: failed program was:" >&5
13558 cat conftest.$ac_ext >&5
13560 eval "ac_cv_lib_$ac_lib_var=no"
13565 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13566 echo "$ac_t""yes" 1>&6
13567 LIBS="-l${lib} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${lib}\" to \$LIBS"; fi; break
13569 echo "$ac_t""no" 1>&6
13575 else if test -n "$libs_termcap" -a "$opsys" = "openbsd"; then
13577 echo $ac_n "checking for tgoto in -ltermcap""... $ac_c" 1>&6
13578 echo "configure:13579: checking for tgoto in -ltermcap" >&5
13579 ac_lib_var=`echo termcap'_'tgoto | sed 'y%./+-%__p_%'`
13581 xe_check_libs=" -ltermcap "
13582 cat > conftest.$ac_ext <<EOF
13583 #line 13584 "configure"
13584 #include "confdefs.h"
13585 /* Override any gcc2 internal prototype to avoid an error. */
13586 /* We use char because int might match the return type of a gcc2
13587 builtin and then its argument prototype would still apply. */
13594 if { (eval echo configure:13595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13596 eval "ac_cv_lib_$ac_lib_var=yes"
13598 echo "configure: failed program was:" >&5
13599 cat conftest.$ac_ext >&5
13601 eval "ac_cv_lib_$ac_lib_var=no"
13606 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13607 echo "$ac_t""yes" 1>&6
13608 ac_tr_lib=HAVE_LIB`echo termcap | sed -e 's/[^a-zA-Z0-9_]/_/g' \
13609 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
13610 { test "$extra_verbose" = "yes" && cat << EOF
13611 Defining $ac_tr_lib
13613 cat >> confdefs.h <<EOF
13614 #define $ac_tr_lib 1
13618 LIBS="-ltermcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltermcap\" to \$LIBS"; fi
13621 echo "$ac_t""no" 1>&6
13622 extra_objs="$extra_objs tparam.o" && if test "$extra_verbose" = "yes"; then
13623 echo " xemacs will be linked with \"tparam.o\""
13629 extra_objs="$extra_objs tparam.o" && if test "$extra_verbose" = "yes"; then
13630 echo " xemacs will be linked with \"tparam.o\""
13633 case "$opsys" in *-hp-hpux* ) libs_termcap="-ltermcap" ;; esac
13634 if test -n "$libs_termcap"; then
13635 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
13638 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
13639 echo "configure:13640: checking for tgetent in -lcurses" >&5
13640 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
13642 xe_check_libs=" -lcurses "
13643 cat > conftest.$ac_ext <<EOF
13644 #line 13645 "configure"
13645 #include "confdefs.h"
13646 /* Override any gcc2 internal prototype to avoid an error. */
13647 /* We use char because int might match the return type of a gcc2
13648 builtin and then its argument prototype would still apply. */
13655 if { (eval echo configure:13656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13657 eval "ac_cv_lib_$ac_lib_var=yes"
13659 echo "configure: failed program was:" >&5
13660 cat conftest.$ac_ext >&5
13662 eval "ac_cv_lib_$ac_lib_var=no"
13667 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13668 echo "$ac_t""yes" 1>&6
13669 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
13671 echo "$ac_t""no" 1>&6
13672 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
13673 echo "configure:13674: checking for tgetent in -ltermcap" >&5
13674 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
13676 xe_check_libs=" -ltermcap "
13677 cat > conftest.$ac_ext <<EOF
13678 #line 13679 "configure"
13679 #include "confdefs.h"
13680 /* Override any gcc2 internal prototype to avoid an error. */
13681 /* We use char because int might match the return type of a gcc2
13682 builtin and then its argument prototype would still apply. */
13689 if { (eval echo configure:13690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13691 eval "ac_cv_lib_$ac_lib_var=yes"
13693 echo "configure: failed program was:" >&5
13694 cat conftest.$ac_ext >&5
13696 eval "ac_cv_lib_$ac_lib_var=no"
13701 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13702 echo "$ac_t""yes" 1>&6
13703 LIBS="-ltermcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltermcap\" to \$LIBS"; fi
13705 echo "$ac_t""no" 1>&6
13706 extra_objs="$extra_objs termcap.o" && if test "$extra_verbose" = "yes"; then
13707 echo " xemacs will be linked with \"termcap.o\""
13718 { test "$extra_verbose" = "yes" && cat << EOF
13719 Defining CURSES_H_FILE = "${curses_h_file-curses.h}"
13721 cat >> confdefs.h <<EOF
13722 #define CURSES_H_FILE "${curses_h_file-curses.h}"
13726 { test "$extra_verbose" = "yes" && cat << EOF
13727 Defining TERM_H_FILE = "${term_h_file-term.h}"
13729 cat >> confdefs.h <<EOF
13730 #define TERM_H_FILE "${term_h_file-term.h}"
13735 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
13736 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
13737 echo "configure:13738: checking for gpm.h" >&5
13739 cat > conftest.$ac_ext <<EOF
13740 #line 13741 "configure"
13741 #include "confdefs.h"
13744 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13745 { (eval echo configure:13746: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13746 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13747 if test -z "$ac_err"; then
13749 eval "ac_cv_header_$ac_safe=yes"
13752 echo "configure: failed program was:" >&5
13753 cat conftest.$ac_ext >&5
13755 eval "ac_cv_header_$ac_safe=no"
13758 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13759 echo "$ac_t""yes" 1>&6
13762 echo "$ac_t""no" 1>&6
13766 test -z "$with_gpm" && {
13767 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
13768 echo "configure:13769: checking for Gpm_Open in -lgpm" >&5
13769 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
13771 xe_check_libs=" -lgpm "
13772 cat > conftest.$ac_ext <<EOF
13773 #line 13774 "configure"
13774 #include "confdefs.h"
13775 /* Override any gcc2 internal prototype to avoid an error. */
13776 /* We use char because int might match the return type of a gcc2
13777 builtin and then its argument prototype would still apply. */
13784 if { (eval echo configure:13785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13786 eval "ac_cv_lib_$ac_lib_var=yes"
13788 echo "configure: failed program was:" >&5
13789 cat conftest.$ac_ext >&5
13791 eval "ac_cv_lib_$ac_lib_var=no"
13796 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13797 echo "$ac_t""yes" 1>&6
13800 echo "$ac_t""no" 1>&6
13805 if test "$with_gpm" = "yes"; then
13806 { test "$extra_verbose" = "yes" && cat << \EOF
13809 cat >> confdefs.h <<\EOF
13814 extra_objs="$extra_objs gpmevent.o" && if test "$extra_verbose" = "yes"; then
13815 echo " xemacs will be linked with \"gpmevent.o\""
13817 LIBS="-lgpm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgpm\" to \$LIBS"; fi
13820 else for feature in ncurses gpm; do
13821 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
13822 echo "configure: warning: "--with-${feature} ignored: Not valid without TTY support"" 1>&2
13824 eval "with_${feature}=no"
13827 test "$with_x11" = "yes" -o "$with_tty" = "yes" -o "$need_event_unixoid" = "yes" && extra_objs="$extra_objs event-unixoid.o" && if test "$extra_verbose" = "yes"; then
13828 echo " xemacs will be linked with \"event-unixoid.o\""
13832 test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
13833 != "no no no" && echo "checking for database support" 1>&6
13834 echo "configure:13835: checking for database support" >&5
13836 if test "$with_database_gdbm $with_database_dbm" != "no no"; then
13837 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'`
13838 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6
13839 echo "configure:13840: checking for ndbm.h" >&5
13841 cat > conftest.$ac_ext <<EOF
13842 #line 13843 "configure"
13843 #include "confdefs.h"
13846 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13847 { (eval echo configure:13848: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13848 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13849 if test -z "$ac_err"; then
13851 eval "ac_cv_header_$ac_safe=yes"
13854 echo "configure: failed program was:" >&5
13855 cat conftest.$ac_ext >&5
13857 eval "ac_cv_header_$ac_safe=no"
13860 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13861 echo "$ac_t""yes" 1>&6
13864 echo "$ac_t""no" 1>&6
13866 test "$with_database_gdbm" = "yes" -o \
13867 "$with_database_dbm" = "yes" && \
13868 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
13869 with_database_gdbm=no with_database_dbm=no
13874 if test "$with_database_gdbm" != "no"; then
13876 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
13877 echo "configure:13878: checking for dbm_open in -lgdbm" >&5
13878 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
13880 xe_check_libs=" -lgdbm "
13881 cat > conftest.$ac_ext <<EOF
13882 #line 13883 "configure"
13883 #include "confdefs.h"
13884 /* Override any gcc2 internal prototype to avoid an error. */
13885 /* We use char because int might match the return type of a gcc2
13886 builtin and then its argument prototype would still apply. */
13893 if { (eval echo configure:13894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13895 eval "ac_cv_lib_$ac_lib_var=yes"
13897 echo "configure: failed program was:" >&5
13898 cat conftest.$ac_ext >&5
13900 eval "ac_cv_lib_$ac_lib_var=no"
13905 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13906 echo "$ac_t""yes" 1>&6
13907 with_database_gdbm=yes with_database_dbm=no libdbm=-lgdbm
13909 echo "$ac_t""no" 1>&6
13910 if test "$with_database_gdbm" = "yes"; then
13911 { echo "Error:" "Required GNU DBM support cannot be provided." >&2; exit 1; }
13913 with_database_gdbm=no
13919 if test "$with_database_dbm" != "no"; then
13920 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
13921 echo "configure:13922: checking for dbm_open" >&5
13923 cat > conftest.$ac_ext <<EOF
13924 #line 13925 "configure"
13925 #include "confdefs.h"
13926 /* System header to define __stub macros and hopefully few prototypes,
13927 which can conflict with char dbm_open(); below. */
13928 #include <assert.h>
13929 /* Override any gcc2 internal prototype to avoid an error. */
13930 /* We use char because int might match the return type of a gcc2
13931 builtin and then its argument prototype would still apply. */
13936 /* The GNU C library defines this for functions which it implements
13937 to always fail with ENOSYS. Some functions are actually named
13938 something starting with __ and the normal name is an alias. */
13939 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
13947 if { (eval echo configure:13948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13949 eval "ac_cv_func_dbm_open=yes"
13951 echo "configure: failed program was:" >&5
13952 cat conftest.$ac_ext >&5
13954 eval "ac_cv_func_dbm_open=no"
13958 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
13959 echo "$ac_t""yes" 1>&6
13960 with_database_dbm=yes libdbm=
13962 echo "$ac_t""no" 1>&6
13965 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
13966 echo "configure:13967: checking for dbm_open in -ldbm" >&5
13967 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
13969 xe_check_libs=" -ldbm "
13970 cat > conftest.$ac_ext <<EOF
13971 #line 13972 "configure"
13972 #include "confdefs.h"
13973 /* Override any gcc2 internal prototype to avoid an error. */
13974 /* We use char because int might match the return type of a gcc2
13975 builtin and then its argument prototype would still apply. */
13982 if { (eval echo configure:13983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13984 eval "ac_cv_lib_$ac_lib_var=yes"
13986 echo "configure: failed program was:" >&5
13987 cat conftest.$ac_ext >&5
13989 eval "ac_cv_lib_$ac_lib_var=no"
13994 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13995 echo "$ac_t""yes" 1>&6
13996 with_database_dbm=yes libdbm=-ldbm
13998 echo "$ac_t""no" 1>&6
13999 test "$with_database_dbm" = "yes" && \
14000 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
14001 with_database_dbm=no
14009 test -n "$libdbm" && LIBS=""$libdbm" $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libdbm"\" to \$LIBS"; fi
14010 test "$with_database_gdbm" = "yes" -o \
14011 "$with_database_dbm" = "yes" && \
14012 { test "$extra_verbose" = "yes" && cat << \EOF
14015 cat >> confdefs.h <<\EOF
14021 if test "$with_database_berkdb" != "no"; then
14022 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6
14023 echo "configure:14024: checking for Berkeley db.h" >&5
14024 for header in "db/db.h" "db.h"; do
14025 cat > conftest.$ac_ext <<EOF
14026 #line 14027 "configure"
14027 #include "confdefs.h"
14029 #include <stdlib.h>
14030 #if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1)
14031 #ifdef HAVE_INTTYPES_H
14032 #define __BIT_TYPES_DEFINED__
14033 #include <inttypes.h>
14034 typedef uint8_t u_int8_t;
14035 typedef uint16_t u_int16_t;
14036 typedef uint32_t u_int32_t;
14037 #ifdef WE_DONT_NEED_QUADS
14038 typedef uint64_t u_int64_t;
14048 if { (eval echo configure:14049: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14050 db_h_file="$header"; break
14052 echo "configure: failed program was:" >&5
14053 cat conftest.$ac_ext >&5
14057 if test -z "$db_h_file"
14058 then echo "$ac_t""no" 1>&6; with_database_berkdb=no
14059 else echo "$ac_t""$db_h_file" 1>&6
14062 if test "$with_database_berkdb" != "no"; then
14063 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6
14064 echo "configure:14065: checking for Berkeley DB version" >&5
14065 cat > conftest.$ac_ext <<EOF
14066 #line 14067 "configure"
14067 #include "confdefs.h"
14068 #include <$db_h_file>
14069 #if DB_VERSION_MAJOR > 1
14074 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14075 egrep "yes" >/dev/null 2>&1; then
14077 cat > conftest.$ac_ext <<EOF
14078 #line 14079 "configure"
14079 #include "confdefs.h"
14080 #include <$db_h_file>
14081 #if DB_VERSION_MAJOR > 2
14086 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14087 egrep "yes" >/dev/null 2>&1; then
14089 echo "$ac_t""3" 1>&6; dbfunc=db_create
14093 echo "$ac_t""2" 1>&6; dbfunc=db_open
14100 echo "$ac_t""1" 1>&6; dbfunc=dbopen
14104 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6
14105 echo "configure:14106: checking for $dbfunc" >&5
14107 cat > conftest.$ac_ext <<EOF
14108 #line 14109 "configure"
14109 #include "confdefs.h"
14110 /* System header to define __stub macros and hopefully few prototypes,
14111 which can conflict with char $dbfunc(); below. */
14112 #include <assert.h>
14113 /* Override any gcc2 internal prototype to avoid an error. */
14114 /* We use char because int might match the return type of a gcc2
14115 builtin and then its argument prototype would still apply. */
14120 /* The GNU C library defines this for functions which it implements
14121 to always fail with ENOSYS. Some functions are actually named
14122 something starting with __ and the normal name is an alias. */
14123 #if defined (__stub_$dbfunc) || defined (__stub___$dbfunc)
14131 if { (eval echo configure:14132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14133 eval "ac_cv_func_$dbfunc=yes"
14135 echo "configure: failed program was:" >&5
14136 cat conftest.$ac_ext >&5
14138 eval "ac_cv_func_$dbfunc=no"
14142 if eval "test \"`echo '$ac_cv_func_'$dbfunc`\" = yes"; then
14143 echo "$ac_t""yes" 1>&6
14144 with_database_berkdb=yes need_libdb=no
14146 echo "$ac_t""no" 1>&6
14149 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6
14150 echo "configure:14151: checking for $dbfunc in -ldb" >&5
14151 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'`
14153 xe_check_libs=" -ldb "
14154 cat > conftest.$ac_ext <<EOF
14155 #line 14156 "configure"
14156 #include "confdefs.h"
14157 /* Override any gcc2 internal prototype to avoid an error. */
14158 /* We use char because int might match the return type of a gcc2
14159 builtin and then its argument prototype would still apply. */
14166 if { (eval echo configure:14167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14168 eval "ac_cv_lib_$ac_lib_var=yes"
14170 echo "configure: failed program was:" >&5
14171 cat conftest.$ac_ext >&5
14173 eval "ac_cv_lib_$ac_lib_var=no"
14178 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
14179 echo "$ac_t""yes" 1>&6
14180 with_database_berkdb=yes need_libdb=yes
14182 echo "$ac_t""no" 1>&6
14190 if test "$with_database_berkdb" = "yes"; then
14191 { test "$extra_verbose" = "yes" && cat << EOF
14192 Defining DB_H_FILE = "$db_h_file"
14194 cat >> confdefs.h <<EOF
14195 #define DB_H_FILE "$db_h_file"
14199 { test "$extra_verbose" = "yes" && cat << \EOF
14200 Defining HAVE_BERKELEY_DB
14202 cat >> confdefs.h <<\EOF
14203 #define HAVE_BERKELEY_DB 1
14207 test "$need_libdb" = "yes" && LIBS="-ldb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldb\" to \$LIBS"; fi
14208 else with_database_berkdb=no
14212 if test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
14213 != "no no no"; then
14214 { test "$extra_verbose" = "yes" && cat << \EOF
14215 Defining HAVE_DATABASE
14217 cat >> confdefs.h <<\EOF
14218 #define HAVE_DATABASE 1
14222 extra_objs="$extra_objs database.o" && if test "$extra_verbose" = "yes"; then
14223 echo " xemacs will be linked with \"database.o\""
14227 if test "$with_socks" = "yes"; then
14229 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
14230 echo "configure:14231: checking for SOCKSinit in -lsocks" >&5
14231 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
14233 xe_check_libs=" -lsocks "
14234 cat > conftest.$ac_ext <<EOF
14235 #line 14236 "configure"
14236 #include "confdefs.h"
14237 /* Override any gcc2 internal prototype to avoid an error. */
14238 /* We use char because int might match the return type of a gcc2
14239 builtin and then its argument prototype would still apply. */
14246 if { (eval echo configure:14247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14248 eval "ac_cv_lib_$ac_lib_var=yes"
14250 echo "configure: failed program was:" >&5
14251 cat conftest.$ac_ext >&5
14253 eval "ac_cv_lib_$ac_lib_var=no"
14258 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
14259 echo "$ac_t""yes" 1>&6
14260 ac_tr_lib=HAVE_LIB`echo socks | sed -e 's/[^a-zA-Z0-9_]/_/g' \
14261 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
14262 { test "$extra_verbose" = "yes" && cat << EOF
14263 Defining $ac_tr_lib
14265 cat >> confdefs.h <<EOF
14266 #define $ac_tr_lib 1
14270 LIBS="-lsocks $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lsocks\" to \$LIBS"; fi
14273 echo "$ac_t""no" 1>&6
14277 test -n "$ac_cv_lib_socks_SOCKSinit" && { test "$extra_verbose" = "yes" && cat << \EOF
14278 Defining HAVE_SOCKS
14280 cat >> confdefs.h <<\EOF
14281 #define HAVE_SOCKS 1
14287 if test "$usage_tracking" = "yes"; then
14288 { test "$extra_verbose" = "yes" && cat << \EOF
14289 Defining USAGE_TRACKING
14291 cat >> confdefs.h <<\EOF
14292 #define USAGE_TRACKING 1
14296 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi
14299 if test "$with_modules" != "no"; then
14300 echo "checking for module support" 1>&6
14301 echo "configure:14302: checking for module support" >&5
14303 if test "$with_msw" = "yes"; then
14306 ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'`
14307 echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6
14308 echo "configure:14309: checking for dlfcn.h" >&5
14310 cat > conftest.$ac_ext <<EOF
14311 #line 14312 "configure"
14312 #include "confdefs.h"
14315 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14316 { (eval echo configure:14317: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14317 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14318 if test -z "$ac_err"; then
14320 eval "ac_cv_header_$ac_safe=yes"
14323 echo "configure: failed program was:" >&5
14324 cat conftest.$ac_ext >&5
14326 eval "ac_cv_header_$ac_safe=no"
14329 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14330 echo "$ac_t""yes" 1>&6
14332 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6
14333 echo "configure:14334: checking for dlopen in -lc" >&5
14334 cat > conftest.$ac_ext <<EOF
14335 #line 14336 "configure"
14336 #include "confdefs.h"
14342 if { (eval echo configure:14343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14346 echo "configure: failed program was:" >&5
14347 cat conftest.$ac_ext >&5
14350 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
14351 echo "configure:14352: checking for dlopen in -ldl" >&5
14352 ac_save_LIBS="$LIBS"
14354 cat > conftest.$ac_ext <<EOF
14355 #line 14356 "configure"
14356 #include "confdefs.h"
14362 if { (eval echo configure:14363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14366 echo "configure: failed program was:" >&5
14367 cat conftest.$ac_ext >&5
14369 LIBS="$ac_save_LIBS"
14376 echo "$ac_t""no" 1>&6
14379 if test -n "$have_dl"; then
14380 { test "$extra_verbose" = "yes" && cat << \EOF
14381 Defining HAVE_DLOPEN
14383 cat >> confdefs.h <<\EOF
14384 #define HAVE_DLOPEN 1
14390 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
14391 echo "configure:14392: checking for shl_load in -ldld" >&5
14392 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
14394 xe_check_libs=" -ldld "
14395 cat > conftest.$ac_ext <<EOF
14396 #line 14397 "configure"
14397 #include "confdefs.h"
14398 /* Override any gcc2 internal prototype to avoid an error. */
14399 /* We use char because int might match the return type of a gcc2
14400 builtin and then its argument prototype would still apply. */
14407 if { (eval echo configure:14408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14409 eval "ac_cv_lib_$ac_lib_var=yes"
14411 echo "configure: failed program was:" >&5
14412 cat conftest.$ac_ext >&5
14414 eval "ac_cv_lib_$ac_lib_var=no"
14419 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
14420 echo "$ac_t""yes" 1>&6
14421 libdl=dld have_dl=yes;
14422 { test "$extra_verbose" = "yes" && cat << \EOF
14423 Defining HAVE_SHL_LOAD
14425 cat >> confdefs.h <<\EOF
14426 #define HAVE_SHL_LOAD 1
14431 echo "$ac_t""no" 1>&6
14433 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6
14434 echo "configure:14435: checking for dld_init in -ldld" >&5
14435 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'`
14437 xe_check_libs=" -ldld "
14438 cat > conftest.$ac_ext <<EOF
14439 #line 14440 "configure"
14440 #include "confdefs.h"
14441 /* Override any gcc2 internal prototype to avoid an error. */
14442 /* We use char because int might match the return type of a gcc2
14443 builtin and then its argument prototype would still apply. */
14450 if { (eval echo configure:14451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14452 eval "ac_cv_lib_$ac_lib_var=yes"
14454 echo "configure: failed program was:" >&5
14455 cat conftest.$ac_ext >&5
14457 eval "ac_cv_lib_$ac_lib_var=no"
14462 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
14463 echo "$ac_t""yes" 1>&6
14464 libdl=dld have_dl=yes;
14465 { test "$extra_verbose" = "yes" && cat << \EOF
14466 Defining HAVE_DLD_INIT
14468 cat >> confdefs.h <<\EOF
14469 #define HAVE_DLD_INIT 1
14474 echo "$ac_t""no" 1>&6
14483 if test -n "$have_dl"; then
14490 ld_dynamic_link_flags=
14492 xealias=$internal_configuration
14494 echo "checking how to build dynamic libraries for ${xehost}" 1>&6
14495 echo "configure:14496: checking how to build dynamic libraries for ${xehost}" >&5
14496 # Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts.
14499 *-*-linux*) xehost=`echo $xehost | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
14502 xehost_cpu=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
14503 xehost_vendor=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
14504 xehost_os=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
14506 case "$xehost_os" in
14508 # AIX sometimes has problems with the GCC collect2 program. For some
14509 # reason, if we set the COLLECT_NAMES environment variable, the problems
14510 # vanish in a puff of smoke.
14511 if test "${COLLECT_NAMES+set}" != set; then
14513 export COLLECT_NAMES
14518 # Now see if the compiler is really GCC.
14519 if test "$GCC" = "yes"; then
14522 echo $ac_n "checking checking whether we are using GNU C""... $ac_c" 1>&6
14523 echo "configure:14524: checking checking whether we are using GNU C" >&5
14524 cat > conftest.$ac_ext <<EOF
14525 #line 14526 "configure"
14526 #include "confdefs.h"
14533 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14534 egrep "yes" >/dev/null 2>&1; then
14543 echo "$ac_t""${XEGCC}" 1>&6
14546 echo $ac_n "checking how to produce PIC code""... $ac_c" 1>&6
14547 echo "configure:14548: checking how to produce PIC code" >&5
14550 can_build_shared=yes
14551 if test "$XEGCC" = yes; then
14554 case "$xehost_os" in
14555 aix[3-9]* | irix[5-9]* | osf[3-9])
14556 # PIC is the default for these OSes.
14560 # We can build DLLs from non-PIC.
14563 # FIXME: we need at least 68020 code to build shared libraries, but
14564 # adding the `-m68020' flag to GCC prevents building anything better,
14566 dll_cflags='-m68020 -resident32 -malways-restore-a4'
14568 *cygwin* | *mingw* )
14569 # PIC is the default
14576 # PORTME Check for PIC flags for the system compiler.
14577 case "$xehost_os" in
14578 hpux9* | hpux1[0-9]*)
14579 # Is there a better link_static_flag that works with the bundled CC?
14586 # PIC (with -KPIC) is the default.
14590 # We can build DLLs from non-PIC.
14594 # All OSF/1 code is PIC.
14599 # All AIX code is PIC.
14604 dll_cflags='-belf -Kpic'
14638 can_build_shared=no
14643 if test -n "$dll_cflags"; then
14644 echo "$ac_t""${dll_cflags}" 1>&6
14646 # Check to make sure the dll_cflags actually works.
14647 echo $ac_n "checking if PIC flag ${dll_cflags} really works""... $ac_c" 1>&6
14648 echo "configure:14649: checking if PIC flag ${dll_cflags} really works" >&5
14649 save_CFLAGS="$CFLAGS"
14650 CFLAGS="$CFLAGS $dll_cflags -DPIC"
14651 cat > conftest.$ac_ext <<EOF
14652 #line 14653 "configure"
14653 #include "confdefs.h"
14659 if { (eval echo configure:14660: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14662 # On HP-UX, the stripped-down bundled CC doesn't accept +Z, but also
14663 # reports no error. So, we need to grep stderr for (Bundled).
14664 if grep '(Bundled)' config.log >/dev/null; then
14665 echo "$ac_t""no" 1>&6
14666 can_build_shared=no
14669 echo "$ac_t""yes" 1>&6
14672 echo "configure: failed program was:" >&5
14673 cat conftest.$ac_ext >&5
14675 echo "$ac_t""no" 1>&6
14676 can_build_shared=no
14680 CFLAGS="$save_CFLAGS"
14682 echo "$ac_t""none" 1>&6
14685 if test "$can_build_shared" = "yes"; then
14689 echo $ac_n "checking if C compiler can produce shared libraries""... $ac_c" 1>&6
14690 echo "configure:14691: checking if C compiler can produce shared libraries" >&5
14691 if test "$XEGCC" = yes; then
14694 else # Not using GCC
14695 case "$xehost_os" in
14697 xldf="-bE:ELLSONAME.exp -H512 -T512 -bhalt:4 -bM:SRE -bnoentry -lc"
14698 xcldf="${wl}-bE:ELLSONAME.exp ${wl}-H512 ${wl}-T512 ${wl}-bhalt:4 ${wl}-bM:SRE ${wl}-bnoentry ${wl}-lc"
14701 freebsd2* | netbsd* | openbsd*)
14703 xcldf="${wl}-Bshareable"
14712 xcldf="${wl}-b ${wl}+s"
14715 irix[5-9]* | osf[3-9]*)
14716 xcldf="${wl}-shared"
14720 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7* | uts4*)
14726 xcldf="${wl}-assert ${wl}pure-text ${wl}-Bstatic"
14727 xldf="-assert pure-text -Bstatic"
14730 fi # End if if we are using gcc
14732 if test -n "$xcldf"; then
14733 save_LDFLAGS=$LDFLAGS
14735 save_xe_libs=$xe_libs
14736 LDFLAGS="$xcldf $LDFLAGS"
14739 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
14740 cat > conftest.$ac_ext <<EOF
14741 #line 14742 "configure"
14742 #include "confdefs.h"
14748 if { (eval echo configure:14749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14752 echo "configure: failed program was:" >&5
14753 cat conftest.$ac_ext >&5
14758 LDFLAGS=$save_LDFLAGS
14760 xe_libs=$save_xe_libs
14761 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
14765 echo "$ac_t""${cc_produces_so}" 1>&6
14768 if test -z "$LTLD"; then
14770 if test "$XEGCC" = yes; then
14771 # Check if gcc -print-prog-name=ld gives a path.
14772 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
14773 echo "configure:14774: checking for ld used by GCC" >&5
14774 ac_prog=`($CC -print-prog-name=ld) 2>&5`
14776 # Accept absolute paths.
14778 if test -z "$LTLD"; then
14779 # case "$ac_prog" in
14780 # *gcc-lib*) LTLD="$CC"
14789 # If it fails, then pretend we aren't using GCC.
14793 # If it is relative, then search for the first ld in PATH.
14794 with_gnu_ld=unknown
14798 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
14799 echo "configure:14800: checking for GNU ld" >&5
14802 if test -z "$LTLD"; then
14803 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
14804 for ac_dir in $PATH; do
14805 test -z "$ac_dir" && ac_dir=.
14806 if test -f "$ac_dir/$ac_prog"; then
14807 LTLD="$ac_dir/$ac_prog"
14808 # Check to see if the program is GNU ld. I'd rather use --version,
14809 # but apparently some GNU ld's only accept -v.
14810 # Break only if it was the GNU/non-GNU ld that we prefer.
14811 if "$LTLD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
14821 if test -n "$LTLD"; then
14822 echo "$ac_t""${LTLD}" 1>&6
14824 echo "$ac_t""no" 1>&6
14827 if test -z "$LTLD" -a "$cc_produces_so" = no; then
14828 { echo "configure: error: no acceptable linker found in \$PATH" 1>&2; exit 1; }
14833 ld_dynamic_link_flags=
14835 # Check to see if it really is or isn't GNU ld.
14836 echo $ac_n "checking if the linker is GNU ld""... $ac_c" 1>&6
14837 echo "configure:14838: checking if the linker is GNU ld" >&5
14838 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
14839 if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
14844 echo "$ac_t""${xe_gnu_ld}" 1>&6
14846 case "$xehost_os" in
14847 amigaos* | sunos4*)
14848 # On these operating systems, we should treat GNU ld like the system ld.
14849 gnu_ld_acts_native=yes
14852 gnu_ld_acts_native=no
14856 if test "$cc_produces_so" = "yes"; then
14859 can_build_shared=yes
14862 # OK - only NOW do we futz about with ld.
14863 # See if the linker supports building shared libraries.
14864 echo $ac_n "checking whether the linker supports shared libraries""... $ac_c" 1>&6
14865 echo "configure:14866: checking whether the linker supports shared libraries" >&5
14867 dll_ldflags=$LDFLAGS
14869 can_build_shared=yes
14870 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then
14871 # See if GNU ld supports shared libraries.
14872 if $LTLD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
14874 dll_ldflags="-shared"
14880 # PORTME fill in a description of your system's linker (not GNU ld)
14881 case "$xehost_os" in
14891 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14892 # support. Future versions do this automatically, but an explicit c++rt0.o
14893 # doesn't break anything, and helps significantly (at the cost of a little
14898 dll_post="/usr/lib/c++rt0.o"
14901 # Unfortunately, older versions of FreeBSD 2 don't have this feature.
14904 dll_ldflags="-Bshareable"
14907 # FreeBSD 3, at last, uses gcc -shared to do shared libraries.
14909 dll_ldflags="-shared"
14923 # Tested with NetBSD 1.2 ld
14938 # For both SCO and Solaris we MAY want to have LDFLAGS include -z text
14939 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7*)
14942 *gcc*) dll_ldflags="-shared"
14945 *) dll_ldflags="-G"
14951 if test "$XEGCC" = yes; then
14971 can_build_shared=no
14975 echo "$ac_t""${ld_shlibs}" 1>&6
14976 if test "$ld_shlibs" = "no"; then
14977 can_build_shared=no
14979 fi # End of if cc_produces_so = no
14982 if test "$xe_gnu_ld" = yes; then
14983 if test "$ld_shlibs" = yes; then
14984 ld_dynamic_link_flags="${wl}-export-dynamic"
14988 if test -z "$ld_dynamic_link_flags"; then
14989 case "$xehost_os" in
14991 ld_dynamic_link_flags=
14995 ld_dynamic_link_flags=
14999 ld_dynamic_link_flags=
15003 ld_dynamic_link_flags=
15007 ld_dynamic_link_flags="${wl}-E"
15011 ld_dynamic_link_flags=
15015 ld_dynamic_link_flags=
15019 ld_dynamic_link_flags=
15023 ld_dynamic_link_flags=
15026 solaris2* | solaris7*)
15027 ld_dynamic_link_flags=
15030 sco3.2v5* | unixware* | sysv5* | sysv4*)
15031 ld_dynamic_link_flags="${wl}-Bexport"
15035 ld_dynamic_link_flags=
15039 ld_dynamic_link_flags=
15043 ld_dynamic_link_flags=
15047 fi # End of if -z ld_dynamic_link_flags
15048 fi # End of if test "$can_build_shared" = "yes"
15059 if test "$can_build_shared" = "yes"; then
15060 { test "$extra_verbose" = "yes" && cat << \EOF
15061 Defining HAVE_SHLIB
15063 cat >> confdefs.h <<\EOF
15064 #define HAVE_SHLIB 1
15068 extra_objs="$extra_objs sysdll.o emodules.o" && if test "$extra_verbose" = "yes"; then
15069 echo " xemacs will be linked with \"sysdll.o emodules.o\""
15071 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
15072 test -n "$libdl" && LIBS="-l${libdl} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${libdl}\" to \$LIBS"; fi
15073 for ac_func in dlerror _dlerror
15075 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15076 echo "configure:15077: checking for $ac_func" >&5
15078 cat > conftest.$ac_ext <<EOF
15079 #line 15080 "configure"
15080 #include "confdefs.h"
15081 /* System header to define __stub macros and hopefully few prototypes,
15082 which can conflict with char $ac_func(); below. */
15083 #include <assert.h>
15084 /* Override any gcc2 internal prototype to avoid an error. */
15085 /* We use char because int might match the return type of a gcc2
15086 builtin and then its argument prototype would still apply. */
15091 /* The GNU C library defines this for functions which it implements
15092 to always fail with ENOSYS. Some functions are actually named
15093 something starting with __ and the normal name is an alias. */
15094 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15102 if { (eval echo configure:15103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15104 eval "ac_cv_func_$ac_func=yes"
15106 echo "configure: failed program was:" >&5
15107 cat conftest.$ac_ext >&5
15109 eval "ac_cv_func_$ac_func=no"
15113 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15114 echo "$ac_t""yes" 1>&6
15115 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15116 { test "$extra_verbose" = "yes" && cat << EOF
15117 Defining $ac_tr_func
15119 cat >> confdefs.h <<EOF
15120 #define $ac_tr_func 1
15125 echo "$ac_t""no" 1>&6
15131 if test "$with_modules" = "yes"; then
15132 { echo "Error:" "Required module support cannot be provided." >&2; exit 1; }
15134 echo "configure: warning: "Module support cannot be provided."" 1>&2
15140 cat > conftest.$ac_ext <<EOF
15141 #line 15142 "configure"
15142 #include "confdefs.h"
15143 int main(int c,char *v[]){return 0;}
15145 if { (eval echo configure:15146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
15150 echo "configure: failed program was:" >&5
15151 cat conftest.$ac_ext >&5
15155 echo "*** PANIC *** The C compiler can no longer build working executables."
15156 echo "*** PANIC *** Please examine the tail of config.log for runtime errors."
15157 echo "*** PANIC *** The most likely reason for this problem is that configure"
15158 echo "*** PANIC *** links with shared libraries, but those libraries cannot be"
15159 echo "*** PANIC *** found at run time."
15160 echo "*** PANIC ***"
15161 echo "*** PANIC *** On a Linux system, edit /etc/ld.so.conf and re-run ldconfig."
15162 echo "*** PANIC *** On other systems, try telling configure where to find the"
15163 echo "*** PANIC *** shared libraries using the --site-runtime-libraries option"
15164 echo "*** PANIC ***"
15165 echo "*** PANIC *** Another way to shoot yourself in the foot is to specify"
15166 echo "*** PANIC *** --with-FEATURE when FEATURE is not actually installed"
15167 echo "*** PANIC *** on your system. Don't do that."
15172 if test "$win32_processes" = "yes"; then
15173 extra_objs="$extra_objs process-nt.o" && if test "$extra_verbose" = "yes"; then
15174 echo " xemacs will be linked with \"process-nt.o\""
15177 { test "$extra_verbose" = "yes" && cat << \EOF
15178 Defining HAVE_UNIX_PROCESSES
15180 cat >> confdefs.h <<\EOF
15181 #define HAVE_UNIX_PROCESSES 1
15185 extra_objs="$extra_objs process-unix.o" && if test "$extra_verbose" = "yes"; then
15186 echo " xemacs will be linked with \"process-unix.o\""
15193 for W in $CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15198 for W in $extra_objs; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15203 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
15204 c_switch_general="$T"
15208 for W in $c_switch_x_site $c_switch_gtk $X_CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15209 c_switch_window_system="$T"
15213 for W in $c_switch_general $c_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15218 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
15219 ld_switch_general="$T"
15223 for W in $ld_switch_x_site; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15224 ld_switch_window_system="$T"
15228 for W in $ld_switch_general $ld_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15233 for W in $LIBS $libs_machine $libs_system $libs_standard; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15234 ld_libs_general="$T"
15238 for W in $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15239 ld_libs_window_system="$T"
15243 for W in $ld_libs_window_system $ld_libs_general; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15248 MAKE_SUBDIR="$MAKE_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$MAKE_SUBDIR"; fi
15249 internal_makefile_list="Makefile.in"
15250 SUBDIR_MAKEFILES=''
15251 test -d lock || mkdir lock
15252 for dir in $MAKE_SUBDIR; do
15253 case "$dir" in */* ) ( for d in `echo $dir | sed 's:/: :g'` ; do
15254 test -d "$d" || mkdir "$d"; cd "$d"
15256 * ) test -d "$dir" || mkdir "$dir" ;;
15260 for W in $SUBDIR_MAKEFILES $dir/Makefile $dir/GNUmakefile; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15261 SUBDIR_MAKEFILES="$T"
15265 for W in $internal_makefile_list $dir/Makefile.in; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15266 internal_makefile_list="$T"
15273 for dir in src/s src/m; do
15274 if test ! -d "$dir" ; then
15275 echo Making symbolic link to "$srcdir/$dir"
15276 ${LN_S} "$srcdir/$dir" "$dir"
15280 if test "$extra_verbose" = "yes"; then
15282 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
15287 if test -f "$srcdir/src/.gdbinit" -a ! -f "src/.gdbinit"; then
15288 test "$extra_verbose" = "yes" && echo "creating src/.gdbinit"
15289 echo "source $srcdir/src/.gdbinit" > "src/.gdbinit"
15292 if test -f "$srcdir/src/.dbxrc" -a ! -f "src/.dbxrc"; then
15293 test "$extra_verbose" = "yes" && echo "creating src/.dbxrc"
15294 echo ". $srcdir/src/.dbxrc" > "src/.dbxrc"
15297 if test -f "$srcdir/TAGS" -a ! -f "TAGS"; then
15298 test "$extra_verbose" = "yes" && echo "creating TAGS"
15300 $srcdir/TAGS,include" > "TAGS"
15303 if test "$__SUNPRO_C" = "yes"; then
15304 test "$extra_verbose" = "yes" && echo "creating .sbinit"
15305 ( echo "# For use with Sun WorkShop's Source browser."
15306 echo "# See sbquery(1) and sbinit(4) for more information"
15307 for dir in $MAKE_SUBDIR; do echo "import $dir"; done
15335 *\$* ) eval "PREFIX=$PREFIX" ;;
15343 EXEC_PREFIX=$exec_prefix
15345 case "$EXEC_PREFIX" in
15346 *\$* ) eval "EXEC_PREFIX=$EXEC_PREFIX" ;;
15357 *\$* ) eval "INFODIR=$INFODIR" ;;
15367 case "$INFOPATH" in
15368 *\$* ) eval "INFOPATH=$INFOPATH" ;;
15376 PACKAGE_PATH=$package_path
15378 case "$PACKAGE_PATH" in
15379 *\$* ) eval "PACKAGE_PATH=$PACKAGE_PATH" ;;
15390 *\$* ) eval "LISPDIR=$LISPDIR" ;;
15398 MODULEDIR=$moduledir
15400 case "$MODULEDIR" in
15401 *\$* ) eval "MODULEDIR=$MODULEDIR" ;;
15409 SITELISPDIR=$sitelispdir
15411 case "$SITELISPDIR" in
15412 *\$* ) eval "SITELISPDIR=$SITELISPDIR" ;;
15420 SITEMODULEDIR=$sitemoduledir
15422 case "$SITEMODULEDIR" in
15423 *\$* ) eval "SITEMODULEDIR=$SITEMODULEDIR" ;;
15434 *\$* ) eval "ETCDIR=$ETCDIR" ;;
15445 *\$* ) eval "DOCDIR=$DOCDIR" ;;
15453 ARCHLIBDIR=$archlibdir
15455 case "$ARCHLIBDIR" in
15456 *\$* ) eval "ARCHLIBDIR=$ARCHLIBDIR" ;;
15480 RECURSIVE_MAKE="\$(MAKE) \$(MFLAGS) CC='\$(CC)' CFLAGS='\$(CFLAGS)' LDFLAGS='\$(LDFLAGS)' CPPFLAGS='\$(CPPFLAGS)'"
15488 : ${XEMACS_CC:=$CC}
15491 if test "$with_prefix" = "yes"; then
15492 { test "$extra_verbose" = "yes" && cat << \EOF
15493 Defining PREFIX_USER_DEFINED
15495 cat >> confdefs.h <<\EOF
15496 #define PREFIX_USER_DEFINED 1
15502 if test "$with_site_lisp" = "no"; then
15503 { test "$extra_verbose" = "yes" && cat << \EOF
15504 Defining INHIBIT_SITE_LISP
15506 cat >> confdefs.h <<\EOF
15507 #define INHIBIT_SITE_LISP 1
15512 if test "$with_site_modules" = "no"; then
15513 { test "$extra_verbose" = "yes" && cat << \EOF
15514 Defining INHIBIT_SITE_MODULES
15516 cat >> confdefs.h <<\EOF
15517 #define INHIBIT_SITE_MODULES 1
15525 for W in $ac_configure_args; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15526 ac_configure_args="$T"
15528 { test "$extra_verbose" = "yes" && cat << EOF
15529 Defining EMACS_CONFIGURATION = "$configuration"
15531 cat >> confdefs.h <<EOF
15532 #define EMACS_CONFIGURATION "$configuration"
15536 { test "$extra_verbose" = "yes" && cat << EOF
15537 Defining EMACS_CONFIG_OPTIONS = "$ac_configure_args"
15539 cat >> confdefs.h <<EOF
15540 #define EMACS_CONFIG_OPTIONS "$ac_configure_args"
15547 { test "$extra_verbose" = "yes" && cat << EOF
15548 Defining LD_SWITCH_X_SITE = $null_string
15550 cat >> confdefs.h <<EOF
15551 #define LD_SWITCH_X_SITE $null_string
15555 { test "$extra_verbose" = "yes" && cat << EOF
15556 Defining LD_SWITCH_X_SITE_AUX = $null_string
15558 cat >> confdefs.h <<EOF
15559 #define LD_SWITCH_X_SITE_AUX $null_string
15563 { test "$extra_verbose" = "yes" && cat << EOF
15564 Defining C_SWITCH_X_SITE = $null_string
15566 cat >> confdefs.h <<EOF
15567 #define C_SWITCH_X_SITE $null_string
15571 { test "$extra_verbose" = "yes" && cat << EOF
15572 Defining LD_SWITCH_SITE = $null_string
15574 cat >> confdefs.h <<EOF
15575 #define LD_SWITCH_SITE $null_string
15579 { test "$extra_verbose" = "yes" && cat << EOF
15580 Defining C_SWITCH_SITE = $null_string
15582 cat >> confdefs.h <<EOF
15583 #define C_SWITCH_SITE $null_string
15589 if test "$GNU_MALLOC" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
15590 Defining GNU_MALLOC
15592 cat >> confdefs.h <<\EOF
15593 #define GNU_MALLOC 1
15597 elif test "$with_system_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
15598 Defining USE_SYSTEM_MALLOC
15600 cat >> confdefs.h <<\EOF
15601 #define USE_SYSTEM_MALLOC 1
15605 elif test "$with_debug_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
15606 Defining USE_DEBUG_MALLOC
15608 cat >> confdefs.h <<\EOF
15609 #define USE_DEBUG_MALLOC 1
15613 { test "$extra_verbose" = "yes" && cat << \EOF
15614 Defining USE_SYSTEM_MALLOC
15616 cat >> confdefs.h <<\EOF
15617 #define USE_SYSTEM_MALLOC 1
15622 test "$with_i18n3" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15625 cat >> confdefs.h <<\EOF
15630 test "$GCC" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15633 cat >> confdefs.h <<\EOF
15638 test "$external_widget" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15639 Defining EXTERNAL_WIDGET
15641 cat >> confdefs.h <<\EOF
15642 #define EXTERNAL_WIDGET 1
15646 test "$quick_build" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15647 Defining QUICK_BUILD
15649 cat >> confdefs.h <<\EOF
15650 #define QUICK_BUILD 1
15654 test "$with_purify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15657 cat >> confdefs.h <<\EOF
15662 test "$with_quantify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15665 cat >> confdefs.h <<\EOF
15670 test "$with_pop" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15671 Defining MAIL_USE_POP
15673 cat >> confdefs.h <<\EOF
15674 #define MAIL_USE_POP 1
15678 test "$with_kerberos" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15681 cat >> confdefs.h <<\EOF
15686 test "$with_hesiod" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15689 cat >> confdefs.h <<\EOF
15694 test "$use_union_type" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15695 Defining USE_UNION_TYPE
15697 cat >> confdefs.h <<\EOF
15698 #define USE_UNION_TYPE 1
15702 test "$pdump" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15705 cat >> confdefs.h <<\EOF
15710 test "$with_ipv6_cname" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15711 Defining IPV6_CANONICALIZE
15713 cat >> confdefs.h <<\EOF
15714 #define IPV6_CANONICALIZE 1
15721 if test -f /etc/osversion; then echo "osversion: `cat /etc/osversion`"
15723 echo "uname -a: `uname -a`"
15726 echo "$0 $quoted_arguments"
15729 if test ! -z ${emacs_beta_version} ; then
15730 if test -z "${emacs_is_beta}" ; then
15731 xemacs_betaname=".${emacs_beta_version}"
15733 xemacs_betaname="-b${emacs_beta_version}"
15742 XEmacs ${emacs_major_version}.${emacs_minor_version}${xemacs_betaname} \"$xemacs_codename\" configured for \`$canonical'.
15745 Compilation / Installation:"
15746 echo " Source code location: $srcdir"
15747 echo " Installation prefix: $prefix"
15748 if test -n "$site_includes"; then
15749 echo " Additional header files: $site_includes"
15751 if test -n "$site_libraries"; then
15752 echo " Additional libraries: $site_libraries"
15754 if test -n "$site_prefixes"; then
15755 echo " Additional prefixes: $site_prefixes"
15757 if test -n "$runpath"; then
15758 echo " Runtime library search path: $runpath"
15761 if test -n "$opsysfile"
15762 then echo " Operating system description file: \`$opsysfile'"
15763 else echo " Not using any operating system description file"
15765 if test -n "$machfile"
15766 then echo " Machine description file: \`$machfile'"
15767 else echo " Not using any machine description file"
15770 echo " Compiler: $CC $CFLAGS"
15771 echo " Relocating allocator for buffers: $rel_alloc"
15772 echo " GNU version of malloc: ${GNU_MALLOC}${GNU_MALLOC_reason}"
15773 case "$ld_switch_site" in
15774 *nocombreloc*) echo " Linking with \`-z nocombreloc'.
15775 - Consider configuring with --pdump." ;;
15780 if test "$with_msw" = "yes"; then
15781 echo " Compiling in support for the Microsoft window system."
15783 if test "$with_x11" = "yes"; then
15784 echo " Compiling in support for the X window system:"
15785 echo " - X Windows headers location: $x_includes"
15786 echo " - X Windows libraries location: $x_libraries"
15787 if test "$with_xauth" != yes; then
15788 echo " - Xau (X authority) not available."
15790 if test "$with_xmu" != yes; then
15791 echo " - Xmu library not available; substituting equivalent routines."
15793 if test "$with_wmcommand" != no; then
15794 echo " - Handling WM_COMMAND properly."
15797 if test "$need_athena" = "yes"; then
15798 echo " Compiling in support for the Athena widget set:"
15799 echo " - Athena headers location: $athena_h_path"
15800 echo " - Athena library to link: $athena_lib"
15802 case "$with_menubars" in
15803 gtk ) echo " Using GTK menubars." ;;
15804 lucid ) echo " Using Lucid menubars." ;;
15805 motif ) echo " Using Motif menubars."
15806 echo " *WARNING* The Motif menubar implementation is currently buggy."
15807 echo " We recommend using the Lucid menubar instead."
15808 echo " Re-run configure with --with-menubars='lucid'." ;;
15809 msw ) echo " Using MS-Windows menubars." ;;
15811 case "$with_scrollbars" in
15812 gtk ) echo " Using GTK scrollbars." ;;
15813 lucid ) echo " Using Lucid scrollbars." ;;
15814 motif ) echo " Using Motif scrollbars." ;;
15815 athena ) echo " Using Athena scrollbars." ;;
15816 msw ) echo " Using MS-Windows scrollbars." ;;
15818 case "$with_dialogs" in
15819 gtk ) echo " Using GTK dialog boxes." ;;
15820 motif ) echo " Using Motif dialog boxes."
15821 if test "$unexec" = "unexaix.o"; then if test "`uname -v`" = 4 -a "`uname -r`" -ge 3; then
15822 echo " *WARNING* The Motif dialog boxes cause problems on AIX 4.3 and higher."
15823 echo " We recommend using the Athena dialog boxes instead."
15824 echo " Install libXaw and re-run configure with --with-dialogs='athena'."
15825 echo " Read the PROBLEMS file for more information."
15827 athena ) echo " Using Athena dialog boxes." ;;
15828 msw ) echo " Using MS-Windows dialog boxes." ;;
15830 case "$with_widgets" in
15831 gtk ) echo " Using GTK native widgets." ;;
15832 motif ) echo " Using Motif native widgets." ;;
15833 athena ) echo " Using Athena native widgets." ;;
15834 msw ) echo " Using MS-Windows native widgets." ;;
15836 if test "$with_dragndrop" = yes; then
15837 echo " Compiling in support for Drag'n'Drop (EXPERIMENTAL)."
15838 echo " - Drag'n'Drop prototype: $dragndrop_proto."
15843 test "$with_ncurses" = yes && echo " Compiling in support for ncurses."
15844 test "$with_gpm" = yes && echo " Compiling in support for GPM (General Purpose Mouse)."
15848 test "$with_gif" = yes && echo " Compiling in support for GIF images (builtin)."
15849 if test "$with_xpm" = yes; then
15850 echo " Compiling in support for XPM images."
15851 elif test "$with_x11" = yes; then
15852 echo " WARNING: -----------------------------------------------------------"
15853 echo " WARNING: Compiling without XPM image support."
15854 if test "$xpm_problem" != ""; then
15855 echo " Reason: $xpm_problem"
15857 echo " WARNING: You should strongly consider installing XPM."
15858 echo " WARNING: Otherwise toolbars and other graphics will look suboptimal."
15859 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
15860 echo " WARNING: -----------------------------------------------------------"
15862 if test "$with_png" = yes; then
15863 echo " Compiling in support for PNG images."
15864 elif test "$window_system" != "none"; then
15865 echo " WARNING: -----------------------------------------------------------"
15866 echo " WARNING: Compiling without PNG image support."
15867 if test "$png_problem" != ""; then
15868 echo " Reason: $png_problem"
15870 echo " WARNING: You should strongly consider installing the PNG libraries."
15871 echo " WARNING: Otherwise certain images and glyphs may not display."
15872 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
15873 echo " WARNING: -----------------------------------------------------------"
15875 test "$with_jpeg" = yes && echo " Compiling in support for JPEG images."
15876 test "$with_tiff" = yes && echo " Compiling in support for TIFF images."
15877 test "$with_xface" = yes && echo " Compiling in support for X-Face message headers."
15881 test "$with_native_sound" = yes && echo " Compiling in support for sound (native)."
15882 test "$with_nas_sound" = yes && echo " Compiling in support for NAS (network audio system)."
15883 test "$old_nas" = yes && echo " - NAS library lacks error trapping; will play synchronously."
15884 test "$with_esd_sound" = yes && echo " Compiling in support for ESD (Enlightened Sound Daemon)."
15888 test "$with_database_berkdb" = yes && echo " Compiling in support for Berkeley database."
15889 test "$with_database_dbm" = yes && echo " Compiling in support for DBM."
15890 test "$with_database_gdbm" = yes && echo " Compiling in support for GNU DBM."
15891 test "$with_ldap" = yes && echo " Compiling in support for LDAP."
15892 if test "$with_postgresql" = yes; then
15893 echo " Compiling in support for PostgreSQL."
15894 echo " - Using PostgreSQL header file: $libpq_fe_h_file"
15895 test "$with_postgresqlv7" = yes && echo " - Using PostgreSQL V7 bindings."
15899 Internationalization:"
15900 test "$with_mule" = yes && echo " Compiling in support for Mule (multi-lingual Emacs)."
15901 test "$with_file_coding" = yes && echo " Compiling in support for file coding."
15902 test "$with_xim" != no && echo " Compiling in support for XIM (X11R5+ I18N input method)."
15903 test "$with_xim" = motif && echo " - Using Motif to provide XIM support."
15904 test "$with_xim" = xlib && echo " - Using raw Xlib to provide XIM support."
15905 test "$with_xfs" = yes && echo " - Using XFontSet to provide bilingual menubar."
15906 test "$with_canna" = yes && echo " Compiling in support for Canna on Mule."
15907 if test "$with_wnn" = yes; then
15908 echo " Compiling in support for the WNN input method on Mule."
15909 test "$with_wnn6" = yes && echo " - Using WNN version 6."
15911 test "$with_i18n3" = yes && echo " Compiling in support for I18N level 3 (doesn't currently work)."
15915 test "$with_pop" = yes && echo " Compiling in support for POP mail retrieval."
15916 test "$with_kerberos" = yes && echo " Compiling in support for Kerberos POP authentication."
15917 test "$with_hesiod" = yes && echo " Compiling in support for Hesiod POP server access."
15918 test -n "$mail_locking" && echo " Compiling in support for \"$mail_locking\" mail spool file locking method."
15922 test "$with_ipv6_cname" = no && echo " Inhibiting IPv6 canonicalization at startup."
15923 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk."
15924 test "$with_workshop" = yes && echo " Compiling in support for Sun WorkShop."
15925 test "$with_socks" = yes && echo " Compiling in support for SOCKS."
15926 test "$with_dnet" = yes && echo " Compiling in support for DNET."
15927 test "$with_modules" = "yes" && echo " Compiling in support for dynamic shared object modules."
15928 test "$use_union_type" = yes && echo " Using the union type for Lisp_Objects."
15929 test "$pdump" = yes && echo " Using the new portable dumper."
15930 test "$debug" = yes && echo " Compiling in support for extra debugging code."
15931 test "$usage_tracking" = yes && echo " Compiling in support for active usage tracking (Sun internal)."
15932 if test "$error_check_extents $error_check_typecheck $error_check_bufpos $error_check_gc $error_check_malloc $error_check_glyphs" \
15933 != "no no no no no no"; then
15934 echo " WARNING: ---------------------------------------------------------"
15935 echo " WARNING: Compiling in support for runtime error checking."
15936 echo " WARNING: XEmacs will run noticeably more slowly as a result."
15937 echo " WARNING: Error checking is on by default for XEmacs beta releases."
15938 echo " WARNING: ---------------------------------------------------------"
15941 ) | tee -a Installation
15945 # Remove any trailing slashes in these variables.
15946 test -n "$prefix" &&
15947 prefix=`echo '' "$prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
15948 test -n "$exec_prefix" &&
15949 exec_prefix=`echo '' "$exec_prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
15952 for file in $internal_makefile_list; do
15953 test "$file" = src/Makefile.in && \
15954 file="src/Makefile.in:src/Makefile.in.in:src/depend"
15955 ac_output_files="$ac_output_files $file" && if test "$extra_verbose" = "yes"; then echo " Appending \"$file\" to \$ac_output_files"; fi
15957 ac_output_files="$ac_output_files src/paths.h lib-src/config.values"
15958 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
15962 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
15964 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15965 # Let make expand exec_prefix.
15966 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15968 # Any assignment to VPATH causes Sun make to only execute
15969 # the first set of double-colon rules, so remove it if not needed.
15970 # If there is a colon in the path, we need to keep it.
15971 if test "x$srcdir" = x.; then
15972 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
15975 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
15977 DEFS=-DHAVE_CONFIG_H
15979 # Without the "./", some shells look in PATH for config.status.
15980 : ${CONFIG_STATUS=./config.status}
15982 echo creating $CONFIG_STATUS
15983 rm -f $CONFIG_STATUS
15984 cat > $CONFIG_STATUS <<EOF
15986 # Generated automatically by configure.
15987 # Run this file to recreate the current configuration.
15988 # This directory was configured as follows,
15989 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15991 # $0 $ac_configure_args
15993 # Compiler output produced by configure, useful for debugging
15994 # configure, is in ./config.log if it exists.
15996 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
15999 case "\$ac_option" in
16000 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16001 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
16002 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
16003 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
16004 echo "$CONFIG_STATUS generated by autoconf version 2.13"
16006 -help | --help | --hel | --he | --h)
16007 echo "\$ac_cs_usage"; exit 0 ;;
16008 *) echo "\$ac_cs_usage"; exit 1 ;;
16012 ac_given_srcdir=$srcdir
16013 ac_given_INSTALL="$INSTALL"
16015 trap 'rm -fr `echo "$ac_output_files src/config.h lwlib/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
16017 cat >> $CONFIG_STATUS <<EOF
16019 # Protect against being on the right side of a sed subst in config.status.
16020 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
16021 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
16025 s%@CFLAGS@%$CFLAGS%g
16026 s%@CPPFLAGS@%$CPPFLAGS%g
16027 s%@CXXFLAGS@%$CXXFLAGS%g
16028 s%@FFLAGS@%$FFLAGS%g
16030 s%@LDFLAGS@%$LDFLAGS%g
16032 s%@exec_prefix@%$exec_prefix%g
16033 s%@prefix@%$prefix%g
16034 s%@program_transform_name@%$program_transform_name%g
16035 s%@bindir@%$bindir%g
16036 s%@sbindir@%$sbindir%g
16037 s%@libexecdir@%$libexecdir%g
16038 s%@datadir@%$datadir%g
16039 s%@sysconfdir@%$sysconfdir%g
16040 s%@sharedstatedir@%$sharedstatedir%g
16041 s%@localstatedir@%$localstatedir%g
16042 s%@libdir@%$libdir%g
16043 s%@includedir@%$includedir%g
16044 s%@oldincludedir@%$oldincludedir%g
16045 s%@infodir@%$infodir%g
16046 s%@mandir@%$mandir%g
16048 s%@blddir@%$blddir%g
16051 s%@start_flags@%$start_flags%g
16052 s%@ld_switch_shared@%$ld_switch_shared%g
16053 s%@start_files@%$start_files%g
16055 s%@lib_gcc@%$lib_gcc%g
16056 s%@RANLIB@%$RANLIB%g
16057 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
16058 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
16059 s%@INSTALL_DATA@%$INSTALL_DATA%g
16061 s%@SET_MAKE@%$SET_MAKE%g
16062 s%@GTK_CONFIG@%$GTK_CONFIG%g
16063 s%@X_CFLAGS@%$X_CFLAGS%g
16064 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
16065 s%@X_LIBS@%$X_LIBS%g
16066 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
16067 s%@install_pp@%$install_pp%g
16068 s%@libs_xauth@%$libs_xauth%g
16069 s%@dnd_objs@%$dnd_objs%g
16070 s%@lwlib_objs@%$lwlib_objs%g
16071 s%@ALLOCA@%$ALLOCA%g
16072 s%@have_esd_config@%$have_esd_config%g
16073 s%@dll_ld@%$dll_ld%g
16074 s%@dll_cflags@%$dll_cflags%g
16075 s%@dll_ldflags@%$dll_ldflags%g
16076 s%@dll_post@%$dll_post%g
16077 s%@dll_ldo@%$dll_ldo%g
16078 s%@ld_dynamic_link_flags@%$ld_dynamic_link_flags%g
16079 s%@SRC_SUBDIR_DEPS@%$SRC_SUBDIR_DEPS%g
16080 s%@INSTALL_ARCH_DEP_SUBDIR@%$INSTALL_ARCH_DEP_SUBDIR%g
16081 s%@MAKE_SUBDIR@%$MAKE_SUBDIR%g
16082 s%@SUBDIR_MAKEFILES@%$SUBDIR_MAKEFILES%g
16083 s%@PROGNAME@%$PROGNAME%g
16084 s%@version@%$version%g
16085 s%@configuration@%$configuration%g
16086 s%@canonical@%$canonical%g
16087 s%@inststaticdir@%$inststaticdir%g
16088 s%@instvardir@%$instvardir%g
16089 s%@srcdir@%$srcdir%g
16090 s%@pkgdir@%$pkgdir%g
16091 s%@statedir@%$statedir%g
16092 s%@extra_includes@%$extra_includes%g
16093 s%@PREFIX_USER_DEFINED@%$PREFIX_USER_DEFINED%g
16094 s%@PREFIX@%$PREFIX%g
16095 s%@EXEC_PREFIX_USER_DEFINED@%$EXEC_PREFIX_USER_DEFINED%g
16096 s%@EXEC_PREFIX@%$EXEC_PREFIX%g
16097 s%@INFODIR_USER_DEFINED@%$INFODIR_USER_DEFINED%g
16098 s%@INFODIR@%$INFODIR%g
16099 s%@infopath@%$infopath%g
16100 s%@INFOPATH_USER_DEFINED@%$INFOPATH_USER_DEFINED%g
16101 s%@INFOPATH@%$INFOPATH%g
16102 s%@package_path@%$package_path%g
16103 s%@PACKAGE_PATH_USER_DEFINED@%$PACKAGE_PATH_USER_DEFINED%g
16104 s%@PACKAGE_PATH@%$PACKAGE_PATH%g
16105 s%@lispdir@%$lispdir%g
16106 s%@LISPDIR_USER_DEFINED@%$LISPDIR_USER_DEFINED%g
16107 s%@LISPDIR@%$LISPDIR%g
16108 s%@moduledir@%$moduledir%g
16109 s%@MODULEDIR_USER_DEFINED@%$MODULEDIR_USER_DEFINED%g
16110 s%@MODULEDIR@%$MODULEDIR%g
16111 s%@sitelispdir@%$sitelispdir%g
16112 s%@SITELISPDIR_USER_DEFINED@%$SITELISPDIR_USER_DEFINED%g
16113 s%@SITELISPDIR@%$SITELISPDIR%g
16114 s%@sitemoduledir@%$sitemoduledir%g
16115 s%@SITEMODULEDIR_USER_DEFINED@%$SITEMODULEDIR_USER_DEFINED%g
16116 s%@SITEMODULEDIR@%$SITEMODULEDIR%g
16117 s%@etcdir@%$etcdir%g
16118 s%@ETCDIR_USER_DEFINED@%$ETCDIR_USER_DEFINED%g
16119 s%@ETCDIR@%$ETCDIR%g
16120 s%@docdir@%$docdir%g
16121 s%@DOCDIR_USER_DEFINED@%$DOCDIR_USER_DEFINED%g
16122 s%@DOCDIR@%$DOCDIR%g
16123 s%@archlibdir@%$archlibdir%g
16124 s%@ARCHLIBDIR_USER_DEFINED@%$ARCHLIBDIR_USER_DEFINED%g
16125 s%@ARCHLIBDIR@%$ARCHLIBDIR%g
16126 s%@bitmapdir@%$bitmapdir%g
16127 s%@extra_objs@%$extra_objs%g
16128 s%@machfile@%$machfile%g
16129 s%@opsysfile@%$opsysfile%g
16130 s%@c_switch_general@%$c_switch_general%g
16131 s%@c_switch_window_system@%$c_switch_window_system%g
16132 s%@c_switch_all@%$c_switch_all%g
16133 s%@ld_switch_general@%$ld_switch_general%g
16134 s%@ld_switch_window_system@%$ld_switch_window_system%g
16135 s%@ld_switch_all@%$ld_switch_all%g
16136 s%@ld_libs_general@%$ld_libs_general%g
16137 s%@ld_libs_window_system@%$ld_libs_window_system%g
16138 s%@ld_libs_all@%$ld_libs_all%g
16139 s%@RECURSIVE_MAKE@%$RECURSIVE_MAKE%g
16140 s%@native_sound_lib@%$native_sound_lib%g
16141 s%@sound_cflags@%$sound_cflags%g
16142 s%@dynodump_arch@%$dynodump_arch%g
16143 s%@XEMACS_CC@%$XEMACS_CC%g
16144 s%@internal_makefile_list@%$internal_makefile_list%g
16149 cat >> $CONFIG_STATUS <<\EOF
16151 # Split the substitutions into bite-sized pieces for seds with
16152 # small command number limits, like on Digital OSF/1 and HP-UX.
16153 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
16154 ac_file=1 # Number of current file.
16155 ac_beg=1 # First line for current file.
16156 ac_end=$ac_max_sed_cmds # Line after last line for current file.
16159 while $ac_more_lines; do
16160 if test $ac_beg -gt 1; then
16161 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
16163 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
16165 if test ! -s conftest.s$ac_file; then
16166 ac_more_lines=false
16167 rm -f conftest.s$ac_file
16169 if test -z "$ac_sed_cmds"; then
16170 ac_sed_cmds="sed -f conftest.s$ac_file"
16172 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
16174 ac_file=`expr $ac_file + 1`
16176 ac_end=`expr $ac_end + $ac_max_sed_cmds`
16179 if test -z "$ac_sed_cmds"; then
16184 cat >> $CONFIG_STATUS <<EOF
16186 CONFIG_FILES=\${CONFIG_FILES-"$ac_output_files"}
16188 cat >> $CONFIG_STATUS <<\EOF
16189 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
16190 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16192 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16193 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16194 *) ac_file_in="${ac_file}.in" ;;
16197 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
16199 # Remove last slash and all that follows it. Not all systems have dirname.
16200 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16201 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16202 # The file is in a subdirectory.
16203 test ! -d "$ac_dir" && mkdir "$ac_dir"
16204 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
16205 # A "../" for each directory in $ac_dir_suffix.
16206 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
16208 ac_dir_suffix= ac_dots=
16211 case "$ac_given_srcdir" in
16213 if test -z "$ac_dots"; then top_srcdir=.
16214 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
16215 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
16216 *) # Relative path.
16217 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
16218 top_srcdir="$ac_dots$ac_given_srcdir" ;;
16221 case "$ac_given_INSTALL" in
16222 [/$]*) INSTALL="$ac_given_INSTALL" ;;
16223 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
16226 echo creating "$ac_file"
16228 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
16230 *Makefile*) ac_comsub="1i\\
16231 # $configure_input" ;;
16235 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16237 s%@configure_input@%$configure_input%g
16238 s%@srcdir@%$srcdir%g
16239 s%@top_srcdir@%$top_srcdir%g
16240 s%@INSTALL@%$INSTALL%g
16241 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
16245 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16246 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16248 # ac_d sets the value in "#define NAME VALUE" lines.
16249 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16250 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
16253 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
16254 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16255 ac_uB='\([ ]\)%\1#\2define\3'
16258 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16259 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16260 ac_eB='$%\1#\2define\3'
16264 if test "${CONFIG_HEADERS+set}" != set; then
16266 cat >> $CONFIG_STATUS <<EOF
16267 CONFIG_HEADERS="src/config.h lwlib/config.h"
16269 cat >> $CONFIG_STATUS <<\EOF
16271 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
16272 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16274 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16275 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16276 *) ac_file_in="${ac_file}.in" ;;
16279 echo creating $ac_file
16281 rm -f conftest.frag conftest.in conftest.out
16282 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16283 cat $ac_file_inputs > conftest.in
16287 # Transform confdefs.h into a sed script conftest.vals that substitutes
16288 # the proper values into config.h.in to produce config.h. And first:
16289 # Protect against being on the right side of a sed subst in config.status.
16290 # Protect against being in an unquoted here document in config.status.
16291 rm -f conftest.vals
16292 cat > conftest.hdr <<\EOF
16295 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
16299 sed -n -f conftest.hdr confdefs.h > conftest.vals
16302 # This sed command replaces #undef with comments. This is necessary, for
16303 # example, in the case of _POSIX_SOURCE, which is predefined and required
16304 # on some systems where configure will not decide to define it.
16305 cat >> conftest.vals <<\EOF
16306 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
16309 # Break up conftest.vals because some shells have a limit on
16310 # the size of here documents, and old seds have small limits too.
16312 rm -f conftest.tail
16315 ac_lines=`grep -c . conftest.vals`
16316 # grep -c gives empty output for an empty file on some AIX systems.
16317 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
16318 # Write a limited-size here document to conftest.frag.
16319 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
16320 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
16322 sed -f conftest.frag conftest.in > conftest.out
16324 mv conftest.out conftest.in
16325 ' >> $CONFIG_STATUS
16326 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
16327 rm -f conftest.vals
16328 mv conftest.tail conftest.vals
16330 rm -f conftest.vals
16332 cat >> $CONFIG_STATUS <<\EOF
16333 rm -f conftest.frag conftest.h
16334 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
16335 cat conftest.in >> conftest.h
16337 if cmp -s $ac_file conftest.h 2>/dev/null; then
16338 echo "$ac_file is unchanged"
16341 # Remove last slash and all that follows it. Not all systems have dirname.
16342 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16343 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16344 # The file is in a subdirectory.
16345 test ! -d "$ac_dir" && mkdir "$ac_dir"
16348 mv conftest.h $ac_file
16353 cat >> $CONFIG_STATUS <<EOF
16355 top_srcdir="$srcdir"
16356 MAKE_SUBDIR="$MAKE_SUBDIR"
16359 cat >> $CONFIG_STATUS <<\EOF
16360 for dir in . $MAKE_SUBDIR; do
16365 sed -e '/^# Generated/d' \
16366 -e 's%/\*\*/#.*%%' \
16381 echo creating $dir/Makefile
16382 $CPP -I. -I${top_srcdir}/src junk.c \
16383 | sed -e 's/^\#.*//' \
16384 -e 's/^[ ][ ]*$//'\
16392 chmod 444 Makefile.new
16393 mv -f Makefile.new Makefile
16395 echo creating $dir/GNUmakefile
16396 $CPP -I. -I${top_srcdir}/src -DUSE_GNU_MAKE junk.c \
16397 | sed -e 's/^\#.*//' \
16398 -e 's/^[ ][ ]*$//'\
16406 chmod 444 Makefile.new
16407 mv -f Makefile.new GNUmakefile
16413 sed < config.status >> lib-src/config.values \
16414 -e '/{ac_dA}.*{ac_dB}.*{ac_dC}.*{ac_dD}$/!d' \
16415 -e 's/\${ac_dA}\(.*\)\${ac_dB}.*\${ac_dC}\(.*\)\${ac_dD}/\1 \2/' \
16416 -e 's/^\([^ ]*\) $/\1 ""/' \
16422 chmod +x $CONFIG_STATUS
16423 rm -fr confdefs* $ac_clean_files
16424 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1