3 #### Configuration script for XEmacs. Largely divergent from FSF.
4 #### Guess values for system-dependent variables and create Makefiles.
5 #### Generated automatically using autoconf version 2.13
6 #### Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
7 #### Copyright (C) 1993-1995 Board of Trustees, University of Illinois.
8 #### Copyright (C) 1996, 1997 Sun Microsystems, Inc.
9 #### Copyright (C) 1995, 1996 Ben Wing.
10 #### Copyright (C) 2000, 2001 Martin Buchholz.
11 #### Copyright (C) 1998, 1999 J. Kean Johnston.
13 ### Don't edit this script!
14 ### This script was automatically generated by the `autoconf' program
15 ### from the file `./configure.in'.
16 ### To rebuild it, execute the command
18 ### in the this directory. You must have autoconf version 2.13 or later.
20 ### This file is part of XEmacs.
22 ### XEmacs is free software; you can redistribute it and/or modify it
23 ### under the terms of the GNU General Public License as published by
24 ### the Free Software Foundation; either version 2, or (at your
25 ### option) any later version.
27 ### XEmacs is distributed in the hope that it will be useful, but
28 ### WITHOUT ANY WARRANTY; without even the implied warranty of
29 ### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
30 ### General Public License for more details.
32 ### You should have received a copy of the GNU General Public License
33 ### along with XEmacs; see the file COPYING. If not, write to the Free
34 ### Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
37 ### For usage, run `./configure --help'
38 ### For more detailed information on building and installing XEmacs,
39 ### read the file `INSTALL'.
41 ### If configure succeeds, it leaves its status in config.status.
42 ### A log of configuration tests can be found in config.log.
43 ### If configure fails after disturbing the status quo,
44 ### config.status is removed.
47 --with-x use the X Window System"
51 if test -n "$ZSH_VERSION"; then
52 setopt NO_BAD_PATTERN NO_BANG_HIST NO_BG_NICE NO_EQUALS NO_FUNCTION_ARGZERO
53 setopt GLOB_SUBST NO_HUP INTERACTIVE_COMMENTS KSH_ARRAYS NO_MULTIOS NO_NOMATCH
54 setopt RM_STAR_SILENT POSIX_BUILTINS SH_FILE_EXPANSION SH_GLOB SH_OPTION_LETTERS
55 setopt SH_WORD_SPLIT BSD_ECHO IGNORE_BRACES
56 if test -n "$CDPATH"; then CDPATH="."; export CDPATH; fi
57 elif test -n "$BASH_VERSION"; then
61 if test -n "$CDPATH"; then CDPATH="."; export CDPATH; fi
72 program_transform_name=s,x,x,
83 SHELL=${CONFIG_SHELL-/bin/sh}
86 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
88 # File descriptor usage:
91 # 2 errors and warnings
92 # 3 some systems may open it to /dev/tty
93 # 4 used on the Kubota Titan
94 # 6 checking for... messages and results
95 # 5 compiler messages saved in config.log
96 if test "$silent" = yes; then
104 This file contains any messages produced by compilers while
105 running configure, to aid debugging if configure makes a mistake.
108 # Strip out --no-create and --no-recursion so they do not pile up.
109 # Also quote any args containing shell metacharacters.
114 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
115 | --no-cr | --no-c) ;;
116 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
117 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
118 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
119 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
120 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
125 # Only set these to C if already set. These must not be set unconditionally
126 # because not all systems understand e.g. LANG=C (notably SCO).
127 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
128 # Non-C LC_CTYPE values break the ctype check.
129 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
130 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
131 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
132 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
134 # confdefs.h avoids OS command line length limits that DEFS can exceed.
135 rm -rf conftest* confdefs.h
136 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
139 # A filename unique to this package, relative to the directory that
140 # configure is in, which we can look for to find out if srcdir is correct.
141 ac_unique_file=src/lisp.h
143 # Find the source files, if location was not specified.
144 if test -z "$srcdir"; then
145 ac_srcdir_defaulted=yes
146 # Try the directory containing this script, then its parent.
148 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
149 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
151 if test ! -r $srcdir/$ac_unique_file; then
155 ac_srcdir_defaulted=no
157 if test ! -r $srcdir/$ac_unique_file; then
158 if test "$ac_srcdir_defaulted" = yes; then
159 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
161 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
164 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
166 # Prefer explicitly selected file to automatically selected ones.
167 if test -z "$CONFIG_SITE"; then
168 if test "x$prefix" != xNONE; then
169 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
171 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
174 for ac_site_file in $CONFIG_SITE; do
175 if test -r "$ac_site_file"; then
176 echo "loading site script $ac_site_file"
183 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
184 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
185 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
186 ac_cpp='$CPP '"$xe_cppflags"
187 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
188 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
193 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
194 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
195 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
202 ac_n= ac_c='\c' ac_t=
206 progname="`echo $0 | sed 's:^\./\./:\./:'`"
209 MAKE_SUBDIR="$MAKE_SUBDIR lib-src" && if test "$extra_verbose" = "yes"; then echo " Appending \"lib-src\" to \$MAKE_SUBDIR"; fi
210 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR lib-src" && if test "$extra_verbose" = "yes"; then echo " Appending \"lib-src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
213 exec_prefix='${prefix}'
214 bindir='${exec_prefix}/bin'
215 datadir='${prefix}/lib'
216 statedir='${prefix}/lib'
217 libdir='${exec_prefix}/lib'
218 mandir='${prefix}/man/man1'
219 inststaticdir='${PROGNAME}'
220 instvardir='${PROGNAME}-${version}'
221 infodir='${datadir}/${instvardir}/info'
224 lispdir='${datadir}/${instvardir}/lisp'
225 moduledir='${datadir}/${instvardir}/${configuration}/modules'
226 sitelispdir='${datadir}/${inststaticdir}/site-lisp'
227 sitemoduledir='${datadir}/${inststaticdir}/site-modules'
228 pkgdir='${datadir}/${instvardir}/lisp'
230 etcdir='${datadir}/${instvardir}/etc'
231 archlibdir='${datadir}/${instvardir}/${configuration}'
232 docdir='${archlibdir}'
236 with_site_modules='yes'
242 cpp='' cppflags='' libs='' ldflags=''
248 with_system_malloc='default'
249 with_dlmalloc='default'
266 quoted_sed_magic=s/"'"/"'"'"'"'"'"'"'"/g
270 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
271 | --no-cr | --no-c) ;;
272 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
273 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
275 quoted_i="`echo '' $i | sed -e 's:^ ::' -e $quoted_sed_magic`"
276 quoted_arguments="$quoted_arguments '$quoted_i'" ;;
280 while test $# != 0; do
283 --no-create|--no-recursion) ;;
287 opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\([^=]*\)=.*$:\1:'`
288 val=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*[^=]*=\(.*\)$:\1:'`
292 opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\(.*\)$:\1:'`
293 val="yes" valomitted=yes
298 opt="`echo '' $opt | sed -e 's:^ ::' | tr - _`"
300 case "${valomitted}-${opt}" in yes-without_* )
301 opt=`echo $opt | sed 's/without/with/'`
302 valomitted="no" val="no" ;;
309 with_site_modules | \
362 memory_usage_stats | \
363 with_clash_detection | \
367 y | ye | yes ) val=yes ;;
369 * ) (echo "$progname: Usage error:"
370 echo " " "The \`--$optname' option requires a boolean value: \`yes' or \`no'."
371 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
373 eval "$opt=\"$val\"" ;;
391 site_runtime_libraries )
392 if test "$valomitted" = "yes" ; then
393 if test "$#" = 0 ; then
394 (echo "$progname: Usage error:"
395 echo " " "The \`--$optname' option requires a value."
396 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
405 with_debug_malloc | use_debug_malloc | \
406 with_system_malloc | use_system_malloc )
408 y | ye | yes ) val=yes ;;
410 d | de | def | defa | defau | defaul | default ) val=default ;;
411 * ) (echo "$progname: Usage error:"
412 echo " " "The \`--$optname' option requires one of these values:
413 \`yes', \`no', or \`default'."
414 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
416 case "$opt" in use_* ) opt="`echo $opt | sed s/use/with/`" ;; esac
421 with_database_berkdb=no
423 with_database_gdbm=no
424 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
427 b | be | ber | berk | berkd | berkdb ) with_database_berkdb=yes ;;
428 d | db | dbm ) with_database_dbm=yes ;;
429 g | gn | gnu | gnud | gnudb | gnudbm | gdbm) with_database_gdbm=yes ;;
430 * ) (echo "$progname: Usage error:"
431 echo " " "The \`--$optname' option value
432 must be either \`no' or a comma-separated list
433 of one or more of \`berkdb' and either \`dbm' or \`gnudbm'."
434 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
437 if test "$with_database_dbm" = "yes" -a \
438 "$with_database_gdbm" = "yes"; then
439 (echo "$progname: Usage error:"
440 echo " " "Only one of \`dbm' and \`gnudbm' may be specified
441 with the \`--$optname' option."
442 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
447 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
449 n | no | non | none ) new_sdefault=no ;;
450 a | al | all | both ) new_sdefault=yes ;;
452 native ) with_native_sound=yes ;;
453 nonative ) with_native_sound=no ;;
455 nas ) with_nas_sound=yes ;;
456 nonas ) with_nas_sound=no ;;
458 esd ) with_esd_sound=yes ;;
459 noesd ) with_esd_sound=no ;;
461 * ) bogus_sound=yes ;;
463 if test "$bogus_sound" -o \
464 \( -n "$new_sdefault" -a -n "$sound_notfirst" \) ; then
465 types="\`all', \`none', \`(no)native', \`no(nas)', \`(no)esd'."
466 (echo "$progname: Usage error:"
467 echo " " "Valid types for the \`--$optname' option are:
469 The default is to autodetect all sound support."
470 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
471 elif test -n "$new_sdefault" ; then
472 with_native_sound=$new_sdefault
473 with_nas_sound=$new_sdefault
474 with_esd_sound=$new_sdefault
475 new_sdefault= # reset this
483 xa | xaw ) val=xaw ;;
484 3 | 3d | xaw3d ) val=3d ;;
485 ne | nex | next | naxtaw) val=next ;;
486 9 | 95 | xaw95 ) val=95 ;;
487 xp | xpm | xawxpm ) val=xpm ;;
488 * ) (echo "$progname: Usage error:"
489 echo " " "The \`--$optname' option must have one of these values:
490 \`xaw', \`3d', \`next', \`95', or \`xpm'."
491 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
498 y | ye | yes ) val=yes ;;
499 n | no | non | none ) val=no ;;
500 x | xl | xli | xlib ) val=xlib ;;
501 m | mo | mot | moti | motif ) val=motif ;;
502 * ) (echo "$progname: Usage error:"
503 echo " " "The \`--$optname' option must have one of these values:
504 \`motif', \`xlib', \`yes', or \`no'."
505 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
514 file | dot ) val=file ;;
515 locking ) val=locking ;;
516 * ) (echo "$progname: Usage error:"
517 echo " " "The \`--$optname' option must have one of these values:
518 \`lockf', \`flock', \`file', \`locking', or \`mmdf'."
519 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
526 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
528 n | no | non | none ) new_default=no ;;
529 a | al | all ) new_default=yes ;;
531 extents ) error_check_extents=yes ;;
532 noextents ) error_check_extents=no ;;
534 typecheck ) error_check_typecheck=yes ;;
535 notypecheck ) error_check_typecheck=no ;;
537 bufpos ) error_check_bufpos=yes ;;
538 nobufpos ) error_check_bufpos=no ;;
540 gc ) error_check_gc=yes ;;
541 nogc ) error_check_gc=no ;;
543 malloc ) error_check_malloc=yes ;;
544 nomalloc ) error_check_malloc=no ;;
546 byte_code ) error_check_byte_code=yes ;;
547 nobyte_code ) error_check_byte_code=no ;;
549 glyphs ) error_check_glyphs=yes ;;
550 noglyphs ) error_check_glyphs=no ;;
552 * ) bogus_error_check=yes ;;
554 if test "$bogus_error_check" -o \
555 \( -n "$new_default" -a -n "$echeck_notfirst" \) ; then
556 if test "$error_check_default" = yes ; then
557 types="\`all' (default), \`none', \`noextents', \`notypecheck', \`nobufpos', \`nogc', \`nomalloc', \`noglyphs' and \`nobyte-code'."
559 types="\`all', \`none' (default), \`extents', \`typecheck', \`bufpos', \`gc', \`malloc', \`glyphs' and \`byte-code'."
561 (echo "$progname: Usage error:"
562 echo " " "Valid types for the \`--$optname' option are:
564 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
565 elif test -n "$new_default" ; then
566 error_check_extents=$new_default
567 error_check_typecheck=$new_default
568 error_check_bufpos=$new_default
569 error_check_gc=$new_default
570 error_check_malloc=$new_default
571 error_check_byte_code=$new_default
572 error_check_glyphs=$new_default
573 new_default= # reset this
580 prefix | exec_prefix | bindir | datadir | statedir | libdir | \
581 mandir | infodir | infopath | lispdir | etcdir | pkgdir | \
582 archlibdir | docdir | package_path )
583 if test "$valomitted" = "yes"; then
584 if test "$#" = 0; then
585 (echo "$progname: Usage error:"
586 echo " " "The \`--$optname' option requires a value."
587 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
594 exec_prefix ) { test "$extra_verbose" = "yes" && cat << \EOF
595 Defining EXEC_PREFIX_USER_DEFINED
597 cat >> confdefs.h <<\EOF
598 #define EXEC_PREFIX_USER_DEFINED 1
602 lispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
603 Defining LISPDIR_USER_DEFINED
605 cat >> confdefs.h <<\EOF
606 #define LISPDIR_USER_DEFINED 1
610 sitelispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
611 Defining SITELISPDIR_USER_DEFINED
613 cat >> confdefs.h <<\EOF
614 #define SITELISPDIR_USER_DEFINED 1
618 moduledir ) { test "$extra_verbose" = "yes" && cat << \EOF
619 Defining MODULEDIR_USER_DEFINED
621 cat >> confdefs.h <<\EOF
622 #define MODULEDIR_USER_DEFINED 1
626 etcdir ) { test "$extra_verbose" = "yes" && cat << \EOF
627 Defining ETCDIR_USER_DEFINED
629 cat >> confdefs.h <<\EOF
630 #define ETCDIR_USER_DEFINED 1
634 infodir ) { test "$extra_verbose" = "yes" && cat << \EOF
635 Defining INFODIR_USER_DEFINED
637 cat >> confdefs.h <<\EOF
638 #define INFODIR_USER_DEFINED 1
642 infopath ) { test "$extra_verbose" = "yes" && cat << \EOF
643 Defining INFOPATH_USER_DEFINED
645 cat >> confdefs.h <<\EOF
646 #define INFOPATH_USER_DEFINED 1
650 package_path ) { test "$extra_verbose" = "yes" && cat << \EOF
651 Defining PACKAGE_PATH_USER_DEFINED
653 cat >> confdefs.h <<\EOF
654 #define PACKAGE_PATH_USER_DEFINED 1
659 { test "$extra_verbose" = "yes" && cat << \EOF
660 Defining INFODIR_USER_DEFINED
662 cat >> confdefs.h <<\EOF
663 #define INFODIR_USER_DEFINED 1
667 { test "$extra_verbose" = "yes" && cat << \EOF
668 Defining LISPDIR_USER_DEFINED
670 cat >> confdefs.h <<\EOF
671 #define LISPDIR_USER_DEFINED 1
675 { test "$extra_verbose" = "yes" && cat << \EOF
676 Defining MODULEDIR_USER_DEFINED
678 cat >> confdefs.h <<\EOF
679 #define MODULEDIR_USER_DEFINED 1
683 { test "$extra_verbose" = "yes" && cat << \EOF
684 Defining ETCDIR_USER_DEFINED
686 cat >> confdefs.h <<\EOF
687 #define ETCDIR_USER_DEFINED 1
691 { test "$extra_verbose" = "yes" && cat << \EOF
692 Defining DOCDIR_USER_DEFINED
694 cat >> confdefs.h <<\EOF
695 #define DOCDIR_USER_DEFINED 1
699 { test "$extra_verbose" = "yes" && cat << \EOF
700 Defining ARCHLIBDIR_USER_DEFINED
702 cat >> confdefs.h <<\EOF
703 #define ARCHLIBDIR_USER_DEFINED 1
707 docdir ) { test "$extra_verbose" = "yes" && cat << \EOF
708 Defining DOCDIR_USER_DEFINED
710 cat >> confdefs.h <<\EOF
711 #define DOCDIR_USER_DEFINED 1
715 exec_prefix | libdir | archlibdir ) { test "$extra_verbose" = "yes" && cat << \EOF
716 Defining ARCHLIBDIR_USER_DEFINED
718 cat >> confdefs.h <<\EOF
719 #define ARCHLIBDIR_USER_DEFINED 1
728 "usage" | "help" ) ${PAGER-more} ${srcdir}/configure.usage; exit 0 ;;
731 "with_scrollbars" | \
735 l | lu | luc | luci | lucid ) val=lucid ;;
736 m | mo | mot | moti | motif ) val=motif ;;
737 a | at | ath | athe | athen | athena ) val=athena ;;
738 n | no | non | none ) val=no ;;
739 y | ye | yes ) val=yes ;;
740 g | gt | gtk ) val=gtk ;;
741 m | ms | msw ) val=msw ;;
742 * ) (echo "$progname: Usage error:"
743 echo " " "The \`--$optname' option must have one of these values:
744 \`gtk\', \`lucid', \`motif', \`athena', \`yes', or \`no'."
745 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
750 "use_minimal_tagbits" | \
751 "use_indexed_lrecord_implementation" | \
753 "const_is_losing" | \
755 echo "configure: warning: Obsolete option \`--$optname' ignored." 1>&2
758 * ) (echo "$progname: Usage error:"
759 echo " " "Unrecognized option: $arg"
760 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
765 *-*-*) configuration="$arg" ;;
767 *) (echo "$progname: Usage error:"
768 echo " " "Unrecognized argument: $arg"
769 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
775 test -n "$cpp" && CPP="$cpp"
776 test -n "$cppflags" && CPPFLAGS="$cppflags"
777 test -n "$libs" && LIBS="$libs"
778 test -n "$ldflags" && LDFLAGS="$ldflags"
780 eval set x "$quoted_arguments"; shift
782 test "$extra_verbose" = "yes" && verbose=yes
784 test -n "$with_x" && with_x11="$with_x"
786 if test "$with_purify" = "yes" -o "$with_quantify" = "yes"; then
787 test "$with_system_malloc" = "default" && with_system_malloc=yes
792 if test "$with_cde $with_tooltalk" = "yes no"; then
793 (echo "$progname: Usage error:"
794 echo " " "--with-cde requires --with-tooltalk"
795 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
796 elif test "$with_tooltalk" = "no" ; then with_cde=no
797 elif test "$with_cde" = "yes"; then with_tooltalk=yes
804 for dir in "`echo $0 | sed 's|//|/|' | sed 's|/[^/]*$||'`" "." ".." ; do
805 if test -f "$dir/src/lisp.h" -a \
806 -f "$dir/lisp/version.el" ; then
811 if test -z "$srcdir" ; then
812 (echo "$progname: Usage error:"
813 echo " " "Neither the current directory nor its parent seem to
814 contain the XEmacs sources. If you do not want to build XEmacs in its
815 source tree, you should run \`$progname' in the directory in which
816 you wish to build XEmacs, using the \`--srcdir' option to say where the
817 sources may be found."
818 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
823 if test ! -f "$srcdir/src/lisp.h" -o \
824 ! -f "$srcdir/lisp/version.el" ; then
825 (echo "$progname: Usage error:"
826 echo " " "The directory specified with the \`--srcdir' option,
827 \`$srcdir', doesn't seem to contain the XEmacs sources. You should
828 either run the \`$progname' script at the top of the XEmacs source
829 tree, or use the \`--srcdir' option to specify the XEmacs source directory."
830 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
835 if test -z "$configuration"; then
836 configuration=`${CONFIG_SHELL-/bin/sh} $srcdir/config.guess`
837 if test -z "$configuration"; then
838 (echo "$progname: Usage error:"
839 echo " " "XEmacs has not been ported to this host type.
840 Try explicitly specifying the CONFIGURATION when rerunning configure."
841 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
845 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
846 echo "configure:847: checking whether ln -s works" >&5
849 if ln -s X conftestdata 2>/dev/null
852 ac_cv_prog_LN_S="ln -s"
856 LN_S="$ac_cv_prog_LN_S"
857 if test "$ac_cv_prog_LN_S" = "ln -s"; then
858 echo "$ac_t""yes" 1>&6
860 echo "$ac_t""no" 1>&6
864 for dir in lisp etc man info tests; do
865 if test ! -d "$dir" ; then
866 echo Making symbolic link to "$srcdir/$dir"
867 ${LN_S} "$srcdir/$dir" "$dir"
872 absolute_pwd="`pwd`";
873 if test -n "$PWD" -a "`cd $PWD && pwd`" = "$absolute_pwd"
875 else blddir="$absolute_pwd"; if test -d "/net"; then
876 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi
877 blddir=`echo "$blddir" | \
878 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
885 . ) srcdir="$blddir" ;;
886 * ) srcdir="`cd $srcdir && pwd`"; if test -d "/net"; then
887 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi
888 srcdir=`echo "$srcdir" | \
889 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
893 if test `pwd` != `sh -c cd $srcdir && pwd` \
894 && test -f "$srcdir/src/config.h"; then
895 (echo "$progname: WARNING: The directory tree \`$srcdir' is being used"
896 echo " as a build directory right now; it has been configured in its own"
897 echo " right. To configure in another directory as well, you MUST"
898 echo " use GNU make. If you do not have GNU make, then you must"
899 echo " now do \`make distclean' in $srcdir,"
900 echo " and then run $progname again.") >&2
901 extrasub='/^VPATH[ ]*=/c\
907 vpath %.in $(srcdir)'
910 . "$srcdir/version.sh" || exit 1;
911 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
912 : "${extra_verbose=$beta}"
913 version="${emacs_major_version}.${emacs_minor_version}"
914 { test "$extra_verbose" = "yes" && cat << EOF
915 Defining EMACS_MAJOR_VERSION = $emacs_major_version
917 cat >> confdefs.h <<EOF
918 #define EMACS_MAJOR_VERSION $emacs_major_version
922 { test "$extra_verbose" = "yes" && cat << EOF
923 Defining EMACS_MINOR_VERSION = $emacs_minor_version
925 cat >> confdefs.h <<EOF
926 #define EMACS_MINOR_VERSION $emacs_minor_version
930 if test -n "$emacs_beta_version" ; then
931 if test "$beta" = "yes"; then
932 version="${version}-b${emacs_beta_version}"
933 { test "$extra_verbose" = "yes" && cat << EOF
934 Defining EMACS_BETA_VERSION = $emacs_beta_version
936 cat >> confdefs.h <<EOF
937 #define EMACS_BETA_VERSION $emacs_beta_version
942 version="${version}.${emacs_beta_version}"
943 { test "$extra_verbose" = "yes" && cat << EOF
944 Defining EMACS_PATCH_LEVEL = $emacs_beta_version
946 cat >> confdefs.h <<EOF
947 #define EMACS_PATCH_LEVEL $emacs_beta_version
953 { test "$extra_verbose" = "yes" && cat << EOF
954 Defining XEMACS_CODENAME = "$xemacs_codename"
956 cat >> confdefs.h <<EOF
957 #define XEMACS_CODENAME "$xemacs_codename"
961 { test "$extra_verbose" = "yes" && cat << EOF
962 Defining EMACS_VERSION = "$version"
964 cat >> confdefs.h <<EOF
965 #define EMACS_VERSION "$version"
970 if test "$with_infodock" = "yes"; then
971 if test ! -f ../../ID-INSTALL; then
972 echo "Cannot build InfoDock without InfoDock sources"
977 if test "$with_infodock" = "yes"; then
978 { test "$extra_verbose" = "yes" && cat << EOF
979 Defining INFODOCK_MAJOR_VERSION = $infodock_major_version
981 cat >> confdefs.h <<EOF
982 #define INFODOCK_MAJOR_VERSION $infodock_major_version
986 { test "$extra_verbose" = "yes" && cat << EOF
987 Defining INFODOCK_MINOR_VERSION = $infodock_minor_version
989 cat >> confdefs.h <<EOF
990 #define INFODOCK_MINOR_VERSION $infodock_minor_version
994 { test "$extra_verbose" = "yes" && cat << EOF
995 Defining INFODOCK_BUILD_VERSION = $infodock_build_version
997 cat >> confdefs.h <<EOF
998 #define INFODOCK_BUILD_VERSION $infodock_build_version
1002 version=${infodock_major_version}.${infodock_minor_version}.${infodock_build_version}
1004 CPPFLAGS="$CPPFLAGS -DINFODOCK"
1009 { test "$extra_verbose" = "yes" && cat << EOF
1010 Defining EMACS_PROGNAME = "$PROGNAME"
1012 cat >> confdefs.h <<EOF
1013 #define EMACS_PROGNAME "$PROGNAME"
1018 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
1019 test "${error_check_extents=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1020 Defining ERROR_CHECK_EXTENTS
1022 cat >> confdefs.h <<\EOF
1023 #define ERROR_CHECK_EXTENTS 1
1027 test "${error_check_typecheck=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1028 Defining ERROR_CHECK_TYPECHECK
1030 cat >> confdefs.h <<\EOF
1031 #define ERROR_CHECK_TYPECHECK 1
1035 test "${error_check_bufpos=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1036 Defining ERROR_CHECK_BUFPOS
1038 cat >> confdefs.h <<\EOF
1039 #define ERROR_CHECK_BUFPOS 1
1043 test "${error_check_gc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1044 Defining ERROR_CHECK_GC
1046 cat >> confdefs.h <<\EOF
1047 #define ERROR_CHECK_GC 1
1051 test "${error_check_malloc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1052 Defining ERROR_CHECK_MALLOC
1054 cat >> confdefs.h <<\EOF
1055 #define ERROR_CHECK_MALLOC 1
1059 test "${error_check_byte_code=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1060 Defining ERROR_CHECK_BYTE_CODE
1062 cat >> confdefs.h <<\EOF
1063 #define ERROR_CHECK_BYTE_CODE 1
1067 test "${error_check_glyphs=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1068 Defining ERROR_CHECK_GLYPHS
1070 cat >> confdefs.h <<\EOF
1071 #define ERROR_CHECK_GLYPHS 1
1075 if test "${debug:=$beta}" = "yes"; then
1076 use_assertions=yes memory_usage_stats=yes
1077 extra_objs="$extra_objs debug.o" && if test "$extra_verbose" = "yes"; then
1078 echo " xemacs will be linked with \"debug.o\""
1080 extra_objs="$extra_objs tests.o" && if test "$extra_verbose" = "yes"; then
1081 echo " xemacs will be linked with \"tests.o\""
1083 { test "$extra_verbose" = "yes" && cat << \EOF
1084 Defining DEBUG_XEMACS
1086 cat >> confdefs.h <<\EOF
1087 #define DEBUG_XEMACS 1
1092 test "$use_assertions" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
1093 Defining USE_ASSERTIONS
1095 cat >> confdefs.h <<\EOF
1096 #define USE_ASSERTIONS 1
1100 test "$memory_usage_stats" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
1101 Defining MEMORY_USAGE_STATS
1103 cat >> confdefs.h <<\EOF
1104 #define MEMORY_USAGE_STATS 1
1110 echo $ac_n "checking "host system type"""... $ac_c" 1>&6
1111 echo "configure:1112: checking "host system type"" >&5
1112 internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'`
1113 canonical=`${CONFIG_SHELL-/bin/sh} $srcdir/config.sub "$internal_configuration"`
1114 configuration=`echo "$configuration" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
1115 canonical=`echo "$canonical" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
1116 echo "$ac_t""$configuration" 1>&6
1124 case "$canonical" in
1125 sparc-*-* ) machine=sparc ;;
1126 alpha*-*-* ) machine=alpha ;;
1127 vax-*-* ) machine=vax ;;
1128 mips-dec-* ) machine=pmax ;;
1129 mips-sgi-irix6* ) machine=iris6d ;;
1130 mips-sgi-* ) machine=iris4d ;;
1131 mips*-linux ) machine=mips ;;
1132 romp-ibm-* ) machine=ibmrt ;;
1133 rs6000-ibm-aix* ) machine=ibmrs6000 ;;
1134 powerpc-ibm-aix* ) machine=ibmrs6000 ;;
1135 powerpc*-* ) machine=powerpc ;;
1136 hppa-*-* ) machine=hp800 ;;
1137 m88k-dg-* ) machine=aviion ;;
1138 m68*-sony-* ) machine=news ;;
1139 mips-sony-* ) machine=news-risc ;;
1140 clipper-* ) machine=clipper ;;
1141 arm* ) machine=arm ;;
1142 ns32k-* ) machine=ns32000 ;;
1145 case "$canonical" in
1146 *-*-linux* ) opsys=linux ;;
1147 *-*-netbsd* ) opsys=netbsd ;;
1148 *-*-openbsd* ) opsys=openbsd ;;
1149 *-*-nextstep* ) opsys=nextstep ;;
1150 *-*-vms ) opsys=vms ;;
1152 *-dec-osf1.3 | *-dec-osf2* ) opsys=decosf1-3 ;;
1153 *-dec-osf1.2 | *-dec-osf1* ) opsys=decosf1-2 ;;
1154 *-dec-osf3.[2-9] ) opsys=decosf3-2 ;;
1155 *-dec-osf3* ) opsys=decosf3-1 ;;
1156 *-dec-osf[4-9]* ) opsys=decosf4-0 ;;
1158 *-*-ultrix[0-3].* | *-*-ultrix4.0* ) opsys=bsd4-2 ;;
1159 *-*-ultrix4.[12]* ) opsys=bsd4-3 ;;
1160 *-*-ultrix* ) opsys=ultrix4-3 ;;
1162 *-*-aix3.1* ) opsys=aix3-1 ;;
1163 *-*-aix3.2.5 ) opsys=aix3-2-5 ;;
1164 *-*-aix3* ) opsys=aix3-2 ;;
1165 *-*-aix4.0* ) opsys=aix4 ;;
1166 *-*-aix4.1* ) opsys=aix4-1 ;;
1167 *-*-aix4* ) opsys=aix4-2 ;;
1169 *-gnu* ) opsys=gnu ;;
1170 *-*-bsd4.[01] ) opsys=bsd4-1 ;;
1171 *-*-bsd4.2 ) opsys=bsd4-2 ;;
1172 *-*-bsd4.3 ) opsys=bsd4-3 ;;
1173 *-*-aos4.2 ) opsys=bsd4-2 ;;
1174 *-*-aos* ) opsys=bsd4-3 ;;
1175 *-*-sysv0 | *-*-sysvr0 ) opsys=usg5-0 ;;
1176 *-*-sysv2 | *-*-sysvr2 ) opsys=usg5-2 ;;
1177 *-*-sysv2.2 | *-*-sysvr2.2 ) opsys=usg5-2-2 ;;
1178 *-*-sysv3* | *-*-sysvr3* ) opsys=usg5-3 ;;
1179 *-*-sysv4.1* | *-*-sysvr4.1* )opsys=usg5-4 NON_GNU_CPP=/usr/lib/cpp ;;
1180 *-*-sysv4.[2-9]* | *-sysvr4.[2-9]* )
1181 if test -z "$NON_GNU_CPP" ; then
1182 for prog in "/usr/ccs/lib/cpp" "/lib/cpp"; do
1183 if test -f "$prog"; then NON_GNU_CPP="$prog"; break; fi
1187 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
1188 *-*-mach_bsd4.3* ) opsys=mach-bsd4-3 ;;
1191 case "$canonical" in
1194 case "$canonical" in
1195 i[3-9]86-*-netbsd*) machine=intel386 ;;
1196 hp300-*-netbsd* | amiga-*-netbsd* | sun3-*-netbsd* | mac68k-*-netbsd* | da30-*-netbsd* | m68k-*-netbsd* )
1197 machine=hp9000s300 ;;
1198 pc532-*-netbsd* | ns32k-*-netbsd* ) machine=ns32000 ;;
1199 pmax-*-netbsd* | mips-*-netbsd* ) machine=pmax ;;
1204 case "${canonical}" in
1205 i386-*-openbsd*) machine=intel386 ;;
1206 m68k-*-openbsd*) machine=hp9000s300 ;;
1207 mipsel-*-openbsd*) machine=pmax ;;
1211 arm-acorn-riscix1.1* ) machine=acorn opsys=riscix1-1 ;;
1212 arm-acorn-riscix1.2* | arm-acorn-riscix ) machine=acorn opsys=riscix1-2 ;;
1214 fx80-alliant-* ) machine=alliant4 opsys=bsd4-2 ;;
1215 i860-alliant-* ) machine=alliant-2800 opsys=bsd4-3 ;;
1217 m68*-altos-sysv* ) machine=altos opsys=usg5-2 ;;
1219 580-amdahl-sysv* ) machine=amdahl opsys=usg5-2-2 ;;
1221 m68*-apollo-* ) machine=apollo opsys=bsd4-3 ;;
1223 we32k-att-sysv* ) machine=att3b opsys=usg5-2-2 ;;
1225 m68*-att-sysv* ) machine=7300 opsys=usg5-2-2 ;;
1227 rs6000-bull-bosx* ) machine=ibmrs6000 opsys=aix3-2 ;; # dpx20
1228 m68*-bull-sysv3* ) machine=dpx2 opsys=usg5-3 ;; # dpx2
1229 m68*-bull-sysv2* ) machine=sps7 opsys=usg5-2 ;; # sps7
1232 celerity-celerity-bsd* ) machine=celerity opsys=bsd4-2 ;;
1234 *-convex-bsd* | *-convex-convexos* )
1235 machine=convex opsys=bsd4-3
1236 NON_GNU_CPP="cc -E -P"
1239 i[3-9]86-cubix-sysv* ) machine=intel386 opsys=usg5-3 ;;
1241 i586-dg-dgux*R4* | i586-dg-dgux5.4.4* ) machine=aviion opsys=dgux5-4r4 ;;
1242 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) opsys=dgux5-4r3 ;;
1243 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) opsys=dgux5-4r2 ;;
1244 m88k-dg-dgux* ) opsys=dgux ;;
1246 m68k-motorola-sysv* | m68000-motorola-sysv* ) machine=delta opsys=usg5-3 ;;
1247 m88k-motorola-sysv4* )
1248 machine=delta88k opsys=usg5-4-2
1250 m88k-motorola-sysv* | m88k-motorola-m88kbcs* ) machine=delta88k opsys=usg5-3 ;;
1252 m68*-dual-sysv* ) machine=dual opsys=usg5-2 ;;
1253 m68*-dual-uniplus* ) machine=dual opsys=unipl5-2 ;;
1255 ns16k-encore-bsd* ) machine=ns16000 opsys=umax ;;
1257 pn-gould-bsd4.2* ) machine=gould opsys=bsd4-2 ;;
1258 pn-gould-bsd4.3* ) machine=gould opsys=bsd4-3 ;;
1259 np1-gould-bsd* ) machine=gould-np1 opsys=bsd4-3 ;;
1262 case "`uname -r`" in
1263 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
1264 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
1266 NON_GNU_CPP="/lib/cpp"
1268 m68k-harris-cxux* ) machine=nh3000 opsys=cxux ;;
1269 powerpc-harris-powerunix ) machine=nh6000 opsys=powerunix NON_GNU_CPP="cc -Xo -E -P" ;;
1271 xps*-honeywell-sysv* ) machine=xps100 opsys=usg5-2 ;;
1273 m68*-hp-bsd* ) machine=hp9000s300 opsys=bsd4-3 ;;
1276 case "$canonical" in
1277 m68* ) machine=hp9000s300 ;;
1278 hppa* ) machine=hp800 ;;
1281 case "$canonical" in
1282 *-hp-hpux7* ) opsys=hpux ;;
1283 *-hp-hpux8* ) opsys=hpux8 ;;
1284 *-hp-hpux9* ) opsys=hpux9 ;;
1285 *-hp-hpux10* ) opsys=hpux10 ;;
1286 *-hp-hpux11* ) opsys=hpux11 ;;
1290 case "$opsys" in hpux9 | hpux10 ) extra_objs="$extra_objs strcat.o" && if test "$extra_verbose" = "yes"; then
1291 echo " xemacs will be linked with \"strcat.o\""
1294 if test "$opsys" = "hpux10" -o "$opsys" = "hpux11"; then \
1295 ansi_flag="-Ae"; else ansi_flag="-Aa"; fi
1296 NON_GNU_CC="cc $ansi_flag" NON_GNU_CPP="cc $ansi_flag -E"
1298 case "$canonical" in *-hp-hpux*shr* ) opsys="${opsys}-shr" ;; esac
1301 orion-orion-bsd* ) machine=orion opsys=bsd4-2 ;;
1302 clipper-orion-bsd* ) machine=orion105 opsys=bsd4-2 ;;
1304 i[3-9]86-ibm-aix1.1* ) machine=ibmps2-aix opsys=usg5-2-2 ;;
1305 i[3-9]86-ibm-aix1.[23]* | i[3-9]86-ibm-aix* ) machine=ibmps2-aix opsys=usg5-3 ;;
1306 i370-ibm-aix*) machine=ibm370aix opsys=usg5-3 ;;
1307 romp-ibm-aos* ) opsys=bsd4-3 ;;
1308 romp-ibm-bsd* ) opsys=bsd4-3 ;;
1309 romp-ibm-mach* ) opsys=mach-bsd4-3 ;;
1311 m68*-isi-bsd4.2* ) machine=isi-ov opsys=bsd4-2 ;;
1312 m68*-isi-bsd4.3* ) machine=isi-ov opsys=bsd4-3 ;;
1314 i[3-9]86-intsys-sysv* ) machine=is386 opsys=usg5-2-2 ;;
1316 i[3-9]86-prime-sysv* ) machine=i386 opsys=usg5-3 ;;
1318 i[3-9]86-sequent-bsd* ) machine=symmetry opsys=bsd4-3 ;;
1320 i[3-9]86-sequent-ptx* ) machine=sequent-ptx opsys=ptx NON_GNU_CPP="/lib/cpp" ;;
1322 i[3-9]86-ncr-sysv* ) machine=ncr386 opsys=usg5-4-2 ;;
1324 i860-intel-osf1* ) machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp ;;
1326 i860-*-sysv4* ) machine=i860 opsys=usg5-4 NON_GNU_CC="/bin/cc" NON_GNU_CPP="/usr/ccs/lib/cpp" ;;
1328 m68*-masscomp-rtu* ) machine=masscomp opsys=rtu ;;
1330 m68*-megatest-bsd* ) machine=mega68 opsys=bsd4-2 ;;
1332 mips-mips-usg* ) machine=mips4 ;;
1335 NON_GNU_CC="cc -systype bsd43"
1336 NON_GNU_CPP="cc -systype bsd43 -E"
1337 case "$canonical" in
1338 mips-mips-riscos4* ) opsys=bsd4-3 ;;
1339 mips-mips-riscos5* ) opsys=riscos5 ;;
1342 mips-mips-bsd* ) machine=mips opsys=bsd4-3 ;;
1343 mips-mips-* ) machine=mips opsys=usg5-2-2 ;;
1345 m68*-next-* | m68k-*-nextstep* ) machine=m68k opsys=nextstep ;;
1347 ns32k-ns-genix* ) machine=ns32000 opsys=usg5-2 ;;
1349 m68*-ncr-sysv2* | m68*-ncr-sysvr2* ) machine=tower32 opsys=usg5-2-2 ;;
1350 m68*-ncr-sysv3* | m68*-ncr-sysvr3* ) machine=tower32v3 opsys=usg5-3 ;;
1352 m68*-nixdorf-sysv* ) machine=targon31 opsys=usg5-2-2 ;;
1354 m68*-nu-sysv* ) machine=nu opsys=usg5-2 ;;
1356 m68*-plexus-sysv* ) machine=plexus opsys=usg5-2 ;;
1358 pyramid-pyramid-bsd* ) machine=pyramid opsys=bsd4-2 ;;
1360 ns32k-sequent-bsd4.2* ) machine=sequent opsys=bsd4-2 ;;
1361 ns32k-sequent-bsd4.3* ) machine=sequent opsys=bsd4-3 ;;
1363 mips-siemens-sysv* | mips-sni-sysv*)
1364 machine=mips-siemens opsys=usg5-4
1365 NON_GNU_CC=/usr/ccs/bin/cc
1366 NON_GNU_CPP=/usr/ccs/lib/cpp
1371 NON_GNU_CC=/usr/ccs/bin/cc
1372 NON_GNU_CPP=/usr/ccs/lib/cpp
1375 m68*-sgi-iris3.5* ) machine=irist opsys=iris3-5 ;;
1376 m68*-sgi-iris3.6* | m68*-sgi-iris*) machine=irist opsys=iris3-6 ;;
1377 mips-sgi-irix3.* ) opsys=irix3-3 ;;
1378 mips-sgi-irix4.* ) opsys=irix4-0 ;;
1379 mips-sgi-irix6* ) opsys=irix6-0 ;;
1380 mips-sgi-irix5.1* ) opsys=irix5-1 ;;
1381 mips-sgi-irix5.2* ) opsys=irix5-2 ;;
1382 mips-sgi-irix5.* ) opsys=irix5-3 ;;
1383 mips-sgi-irix* ) opsys=irix5-0 ;;
1385 *-sony-newsos[34]* | *-sony-news[34]* ) opsys=bsd4-3 ;;
1386 *-sony-news* ) opsys=newsos5 ;;
1388 m68*-stride-sysv* ) machine=stride opsys=usg5-2 ;;
1390 *-*-solaris* | *-*-sunos* | *-sun-mach* | *-sun-bsd* )
1391 case "$canonical" in
1392 m68*-sunos1* ) machine=sun1 ;;
1393 m68*-sunos2* ) machine=sun2 ;;
1394 m68* ) machine=sun3 ;;
1395 i*86*-sun-sunos[34]* ) machine=sun386 ;;
1396 i*86-*-* ) machine=intel386 ;;
1397 rs6000* ) machine=rs6000 ;;
1400 case "$canonical" in *-sunos5*)
1401 canonical=`echo $canonical | sed -e s/sunos5/solaris2/`;;
1404 case "$canonical" in
1406 #test -f /usr/lib/cpp && NON_GNU_CPP=/usr/lib/cpp ;;
1409 #test -f /usr/ccs/lib/cpp && NON_GNU_CPP=/usr/ccs/lib/cpp
1413 case "$canonical" in
1416 os_release=`uname -r | sed -e 's/^\([0-9]\)\.\([0-9]\).*/\1\2/'`
1417 { test "$extra_verbose" = "yes" && cat << EOF
1418 Defining OS_RELEASE = $os_release
1420 cat >> confdefs.h <<EOF
1421 #define OS_RELEASE $os_release
1426 i*86-*-sunos4* ) opsys=sunos4-0 ;;
1427 *-sunos4.0* ) opsys=sunos4-0 ;;
1428 *-sunos4.1.2* ) opsys=sunos4-1-2 ;;
1429 *-sunos4.1.3* ) opsys=sunos4-1-3 ;;
1430 *-sunos4.1.[4-9]* ) opsys=sunos4-1-4 ;;
1431 *-sunos4* | *-sunos ) opsys=sunos4-1 ;;
1432 *-mach* ) opsys=mach-bsd4-3 ;;
1436 case "$canonical" in *-sunos4*shr* ) opsys="${opsys}-shr" ;; esac
1438 test "$opsys $CC" = "sol2 /usr/ucb/cc" && CC=""
1441 m68*-tadpole-sysv* ) machine=tad68k opsys=usg5-3 ;;
1443 tahoe-tahoe-bsd4.2* ) machine=tahoe opsys=bsd4-2 ;;
1444 tahoe-tahoe-bsd4.3* ) machine=tahoe opsys=bsd4-3 ;;
1446 mips-tandem-sysv* ) machine=tandem-s2 opsys=usg5-3 ;;
1448 m88k-tektronix-sysv3* ) machine=tekxd88 opsys=usg5-3 ;;
1450 ns16k-tektronix-bsd* ) machine=ns16000 opsys=bsd4-2 ;;
1451 m68*-tektronix-bsd* ) machine=tek4300 opsys=bsd4-3 ;;
1453 titan-titan-sysv* ) machine=titan opsys=usg5-3 ;;
1455 m68*-unisys-uniplus* ) machine=ustation opsystem=unipl5-2 ;;
1458 case "$canonical" in
1459 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
1460 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
1461 *-mach* ) opsys=mach-bsd4-3 ;;
1465 ns16k-whitechapel-* ) machine=mg1 ;;
1467 m68*-wicat-sysv* ) machine=wicat opsys=usg5-2 ;;
1471 case "$canonical" in
1472 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
1473 *-isc2.2* ) opsys=isc2-2 ;;
1474 *-isc4.0* ) opsys=isc4-0 ;;
1475 *-isc4.* ) opsys=isc4-1
1476 GCC_TEST_OPTIONS=-posix
1477 NON_GCC_TEST_OPTIONS=-Xp
1479 *-isc* ) opsys=isc3-0 ;;
1480 *-esix5* ) opsys=esix5r4 NON_GNU_CPP=/usr/lib/cpp ;;
1481 *-esix* ) opsys=esix ;;
1482 *-mach* ) opsys=mach-bsd4-3 ;;
1483 *-xenix* ) opsys=xenix ;;
1484 *-sco3.2v4* ) opsys=sco4 NON_GNU_CPP=/lib/cpp ;;
1485 *-bsd386* | *-bsdi1* ) opsys=bsd386 ;;
1486 *-bsdi4* ) opsys=bsdos4 ;;
1487 *-bsdi3* ) opsys=bsdos3 ;;
1488 *-bsdi2.1* ) opsys=bsdos2-1 ;;
1489 *-bsdi2* ) opsys=bsdos2 ;;
1490 *-sco3.2v5* ) opsys=sco5 ;;
1491 *-sysv5* ) opsys=sco7 ;;
1492 *-386bsd* ) opsys=386bsd ;;
1493 *-freebsd* ) opsys=freebsd ;;
1494 *-nextstep* ) opsys=nextstep ;;
1495 *-pc-cygwin* ) opsys=cygwin32 ;;
1496 *-pc-mingw* ) opsys=mingw32 ;
1497 test -z "$with_tty" && with_tty="no";;
1501 m68k-*-linux* ) machine=m68k opsys=linux ;;
1505 test -z "$machine" && machine=`echo $canonical | sed 's/-.*$//'`
1506 test -z "$opsys" && opsys=`echo $canonical | sed 's/^^-*-^-*-//'`
1508 if test -r "${srcdir}/src/m/${machine}.h"; then
1509 machfile="m/${machine}.h"
1510 { test "$extra_verbose" = "yes" && cat << EOF
1511 Defining config_machfile = "$machfile"
1513 cat >> confdefs.h <<EOF
1514 #define config_machfile "$machfile"
1519 echo "XEmacs has no builtin knowledge of \`$machine' machines."
1520 echo "Using configure-time autodetection only."
1523 if test -r "${srcdir}/src/s/${opsys}.h"; then
1524 opsysfile="s/${opsys}.h"
1525 { test "$extra_verbose" = "yes" && cat << EOF
1526 Defining config_opsysfile = "$opsysfile"
1528 cat >> confdefs.h <<EOF
1529 #define config_opsysfile "$opsysfile"
1534 echo "XEmacs has no builtin knowledge of \`$opsys' operating systems."
1535 echo "Using configure-time autodetection only."
1539 if test -z "$dynamic"; then
1541 hpux* | sunos4* ) dynamic=no ;;
1545 if test "$dynamic" = "yes"; then
1547 hpux* | sunos4* | sco5 ) opsys="${opsys}-shr" ;;
1548 decosf* ) ld_call_shared="-call_shared" ;;
1550 else case "$opsys" in
1552 echo "Static linking is not supported on Solaris 2."
1553 echo "Rerun configure without specifying --dynamic=no."
1555 linux ) ld_call_shared="-Bstatic" ;;
1556 decosf* ) ld_call_shared="-non_shared" ;;
1560 case "$opsys" in aix*) NON_GNU_CC=xlc ;; esac
1562 stack_trace_eye_catcher=`echo ${PROGNAME}_${version}_${canonical} | sed 'y/.-/__/'`
1563 { test "$extra_verbose" = "yes" && cat << EOF
1564 Defining STACK_TRACE_EYE_CATCHER = $stack_trace_eye_catcher
1566 cat >> confdefs.h <<EOF
1567 #define STACK_TRACE_EYE_CATCHER $stack_trace_eye_catcher
1573 test "$with_sparcworks" = "yes" && with_workshop=yes # compatibility alias
1574 if test "$with_workshop $with_tooltalk" = "yes no"; then
1575 (echo "$progname: Usage error:"
1576 echo " " "--with-workshop requires --with-tooltalk"
1577 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
1578 elif test "$with_tooltalk" = "no" ; then with_workshop=no
1579 elif test "$with_workshop" = "yes"; then with_tooltalk=yes
1582 if test "$with_workshop" = "yes"; then
1583 { test "$extra_verbose" = "yes" && cat << \EOF
1586 cat >> confdefs.h <<\EOF
1591 extra_objs="$extra_objs sunpro.o" && if test "$extra_verbose" = "yes"; then
1592 echo " xemacs will be linked with \"sunpro.o\""
1596 if test "$with_clash_detection" != "no"; then
1597 { test "$extra_verbose" = "yes" && cat << \EOF
1598 Defining CLASH_DETECTION
1600 cat >> confdefs.h <<\EOF
1601 #define CLASH_DETECTION 1
1605 extra_objs="$extra_objs filelock.o" && if test "$extra_verbose" = "yes"; then
1606 echo " xemacs will be linked with \"filelock.o\""
1610 test -n "$compiler" && CC="$compiler"
1611 if test "$with_gcc" = "no"; then case "$CC" in "" | *gcc* ) CC="${NON_GNU_CC-cc}" ;; esac
1614 test "${cflags-unset}" != unset && CFLAGS="$cflags"
1615 if test "${CFLAGS-unset}" != unset
1616 then cflags_specified=yes;
1617 else cflags_specified=no;
1620 xe_save_CFLAGS="$CFLAGS"
1622 # Extract the first word of "gcc", so it can be a program name with args.
1623 set dummy gcc; ac_word=$2
1624 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1625 echo "configure:1626: checking for $ac_word" >&5
1627 if test -n "$CC"; then
1628 ac_cv_prog_CC="$CC" # Let the user override the test.
1630 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1632 for ac_dir in $ac_dummy; do
1633 test -z "$ac_dir" && ac_dir=.
1634 if test -f $ac_dir/$ac_word; then
1642 if test -n "$CC"; then
1643 echo "$ac_t""$CC" 1>&6
1645 echo "$ac_t""no" 1>&6
1648 if test -z "$CC"; then
1649 # Extract the first word of "cc", so it can be a program name with args.
1650 set dummy cc; ac_word=$2
1651 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1652 echo "configure:1653: checking for $ac_word" >&5
1654 if test -n "$CC"; then
1655 ac_cv_prog_CC="$CC" # Let the user override the test.
1657 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1660 for ac_dir in $ac_dummy; do
1661 test -z "$ac_dir" && ac_dir=.
1662 if test -f $ac_dir/$ac_word; then
1663 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1664 ac_prog_rejected=yes
1672 if test $ac_prog_rejected = yes; then
1673 # We found a bogon in the path, so make sure we never use it.
1674 set dummy $ac_cv_prog_CC
1676 if test $# -gt 0; then
1677 # We chose a different compiler from the bogus one.
1678 # However, it has the same basename, so the bogon will be chosen
1679 # first if we set CC to just the basename; use the full file name.
1681 set dummy "$ac_dir/$ac_word" "$@"
1688 if test -n "$CC"; then
1689 echo "$ac_t""$CC" 1>&6
1691 echo "$ac_t""no" 1>&6
1694 if test -z "$CC"; then
1695 case "`uname -s`" in
1697 # Extract the first word of "cl", so it can be a program name with args.
1698 set dummy cl; ac_word=$2
1699 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1700 echo "configure:1701: checking for $ac_word" >&5
1702 if test -n "$CC"; then
1703 ac_cv_prog_CC="$CC" # Let the user override the test.
1705 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1707 for ac_dir in $ac_dummy; do
1708 test -z "$ac_dir" && ac_dir=.
1709 if test -f $ac_dir/$ac_word; then
1717 if test -n "$CC"; then
1718 echo "$ac_t""$CC" 1>&6
1720 echo "$ac_t""no" 1>&6
1725 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1728 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1729 echo "configure:1730: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1732 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1733 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1734 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1735 ac_cpp='$CPP '"$xe_cppflags"
1736 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1737 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1740 cat > conftest.$ac_ext << EOF
1742 #line 1743 "configure"
1743 #include "confdefs.h"
1747 if { (eval echo configure:1748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1748 ac_cv_prog_cc_works=yes
1749 # If we can't run a trivial program, we are probably using a cross compiler.
1750 if (./conftest; exit) 2>/dev/null; then
1751 ac_cv_prog_cc_cross=no
1753 ac_cv_prog_cc_cross=yes
1756 echo "configure: failed program was:" >&5
1757 cat conftest.$ac_ext >&5
1758 ac_cv_prog_cc_works=no
1762 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1763 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1764 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1765 ac_cpp='$CPP '"$xe_cppflags"
1766 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1767 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1770 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1771 if test $ac_cv_prog_cc_works = no; then
1772 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1774 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1775 echo "configure:1776: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1776 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1777 cross_compiling=$ac_cv_prog_cc_cross
1779 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1780 echo "configure:1781: checking whether we are using GNU C" >&5
1782 cat > conftest.c <<EOF
1787 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1788: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1793 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1795 if test $ac_cv_prog_gcc = yes; then
1801 ac_test_CFLAGS="${CFLAGS+set}"
1802 ac_save_CFLAGS="$CFLAGS"
1804 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1805 echo "configure:1806: checking whether ${CC-cc} accepts -g" >&5
1807 echo 'void f(){}' > conftest.c
1808 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1816 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1817 if test "$ac_test_CFLAGS" = set; then
1818 CFLAGS="$ac_save_CFLAGS"
1819 elif test $ac_cv_prog_cc_g = yes; then
1820 if test "$GCC" = yes; then
1826 if test "$GCC" = yes; then
1833 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then
1835 # Extract the first word of "gcc", so it can be a program name with args.
1836 set dummy gcc; ac_word=$2
1837 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1838 echo "configure:1839: checking for $ac_word" >&5
1840 if test -n "$CC"; then
1841 ac_cv_prog_CC="$CC" # Let the user override the test.
1843 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1845 for ac_dir in $ac_dummy; do
1846 test -z "$ac_dir" && ac_dir=.
1847 if test -f $ac_dir/$ac_word; then
1855 if test -n "$CC"; then
1856 echo "$ac_t""$CC" 1>&6
1858 echo "$ac_t""no" 1>&6
1861 if test -z "$CC"; then
1862 # Extract the first word of "cc", so it can be a program name with args.
1863 set dummy cc; ac_word=$2
1864 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1865 echo "configure:1866: checking for $ac_word" >&5
1867 if test -n "$CC"; then
1868 ac_cv_prog_CC="$CC" # Let the user override the test.
1870 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1873 for ac_dir in $ac_dummy; do
1874 test -z "$ac_dir" && ac_dir=.
1875 if test -f $ac_dir/$ac_word; then
1876 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1877 ac_prog_rejected=yes
1885 if test $ac_prog_rejected = yes; then
1886 # We found a bogon in the path, so make sure we never use it.
1887 set dummy $ac_cv_prog_CC
1889 if test $# -gt 0; then
1890 # We chose a different compiler from the bogus one.
1891 # However, it has the same basename, so the bogon will be chosen
1892 # first if we set CC to just the basename; use the full file name.
1894 set dummy "$ac_dir/$ac_word" "$@"
1901 if test -n "$CC"; then
1902 echo "$ac_t""$CC" 1>&6
1904 echo "$ac_t""no" 1>&6
1907 if test -z "$CC"; then
1908 case "`uname -s`" in
1910 # Extract the first word of "cl", so it can be a program name with args.
1911 set dummy cl; ac_word=$2
1912 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1913 echo "configure:1914: checking for $ac_word" >&5
1915 if test -n "$CC"; then
1916 ac_cv_prog_CC="$CC" # Let the user override the test.
1918 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1920 for ac_dir in $ac_dummy; do
1921 test -z "$ac_dir" && ac_dir=.
1922 if test -f $ac_dir/$ac_word; then
1930 if test -n "$CC"; then
1931 echo "$ac_t""$CC" 1>&6
1933 echo "$ac_t""no" 1>&6
1938 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1941 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1942 echo "configure:1943: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1945 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1946 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1947 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1948 ac_cpp='$CPP '"$xe_cppflags"
1949 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1950 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1953 cat > conftest.$ac_ext << EOF
1955 #line 1956 "configure"
1956 #include "confdefs.h"
1960 if { (eval echo configure:1961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1961 ac_cv_prog_cc_works=yes
1962 # If we can't run a trivial program, we are probably using a cross compiler.
1963 if (./conftest; exit) 2>/dev/null; then
1964 ac_cv_prog_cc_cross=no
1966 ac_cv_prog_cc_cross=yes
1969 echo "configure: failed program was:" >&5
1970 cat conftest.$ac_ext >&5
1971 ac_cv_prog_cc_works=no
1975 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1976 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1977 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1978 ac_cpp='$CPP '"$xe_cppflags"
1979 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1980 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1983 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1984 if test $ac_cv_prog_cc_works = no; then
1985 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1987 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1988 echo "configure:1989: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1989 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1990 cross_compiling=$ac_cv_prog_cc_cross
1992 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1993 echo "configure:1994: checking whether we are using GNU C" >&5
1995 cat > conftest.c <<EOF
2000 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2001: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2006 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2008 if test $ac_cv_prog_gcc = yes; then
2014 ac_test_CFLAGS="${CFLAGS+set}"
2015 ac_save_CFLAGS="$CFLAGS"
2017 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2018 echo "configure:2019: checking whether ${CC-cc} accepts -g" >&5
2020 echo 'void f(){}' > conftest.c
2021 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2029 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2030 if test "$ac_test_CFLAGS" = set; then
2031 CFLAGS="$ac_save_CFLAGS"
2032 elif test $ac_cv_prog_cc_g = yes; then
2033 if test "$GCC" = yes; then
2039 if test "$GCC" = yes; then
2046 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then
2048 # Extract the first word of "gcc", so it can be a program name with args.
2049 set dummy gcc; ac_word=$2
2050 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2051 echo "configure:2052: checking for $ac_word" >&5
2053 if test -n "$CC"; then
2054 ac_cv_prog_CC="$CC" # Let the user override the test.
2056 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2058 for ac_dir in $ac_dummy; do
2059 test -z "$ac_dir" && ac_dir=.
2060 if test -f $ac_dir/$ac_word; then
2068 if test -n "$CC"; then
2069 echo "$ac_t""$CC" 1>&6
2071 echo "$ac_t""no" 1>&6
2074 if test -z "$CC"; then
2075 # Extract the first word of "cc", so it can be a program name with args.
2076 set dummy cc; ac_word=$2
2077 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2078 echo "configure:2079: checking for $ac_word" >&5
2080 if test -n "$CC"; then
2081 ac_cv_prog_CC="$CC" # Let the user override the test.
2083 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2086 for ac_dir in $ac_dummy; do
2087 test -z "$ac_dir" && ac_dir=.
2088 if test -f $ac_dir/$ac_word; then
2089 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2090 ac_prog_rejected=yes
2098 if test $ac_prog_rejected = yes; then
2099 # We found a bogon in the path, so make sure we never use it.
2100 set dummy $ac_cv_prog_CC
2102 if test $# -gt 0; then
2103 # We chose a different compiler from the bogus one.
2104 # However, it has the same basename, so the bogon will be chosen
2105 # first if we set CC to just the basename; use the full file name.
2107 set dummy "$ac_dir/$ac_word" "$@"
2114 if test -n "$CC"; then
2115 echo "$ac_t""$CC" 1>&6
2117 echo "$ac_t""no" 1>&6
2120 if test -z "$CC"; then
2121 case "`uname -s`" in
2123 # Extract the first word of "cl", so it can be a program name with args.
2124 set dummy cl; ac_word=$2
2125 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2126 echo "configure:2127: checking for $ac_word" >&5
2128 if test -n "$CC"; then
2129 ac_cv_prog_CC="$CC" # Let the user override the test.
2131 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2133 for ac_dir in $ac_dummy; do
2134 test -z "$ac_dir" && ac_dir=.
2135 if test -f $ac_dir/$ac_word; then
2143 if test -n "$CC"; then
2144 echo "$ac_t""$CC" 1>&6
2146 echo "$ac_t""no" 1>&6
2151 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2154 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2155 echo "configure:2156: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2158 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2159 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2160 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
2161 ac_cpp='$CPP '"$xe_cppflags"
2162 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
2163 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2166 cat > conftest.$ac_ext << EOF
2168 #line 2169 "configure"
2169 #include "confdefs.h"
2173 if { (eval echo configure:2174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2174 ac_cv_prog_cc_works=yes
2175 # If we can't run a trivial program, we are probably using a cross compiler.
2176 if (./conftest; exit) 2>/dev/null; then
2177 ac_cv_prog_cc_cross=no
2179 ac_cv_prog_cc_cross=yes
2182 echo "configure: failed program was:" >&5
2183 cat conftest.$ac_ext >&5
2184 ac_cv_prog_cc_works=no
2188 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2189 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2190 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
2191 ac_cpp='$CPP '"$xe_cppflags"
2192 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
2193 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2196 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2197 if test $ac_cv_prog_cc_works = no; then
2198 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2200 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2201 echo "configure:2202: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2202 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2203 cross_compiling=$ac_cv_prog_cc_cross
2205 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2206 echo "configure:2207: checking whether we are using GNU C" >&5
2208 cat > conftest.c <<EOF
2213 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2214: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2219 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2221 if test $ac_cv_prog_gcc = yes; then
2227 ac_test_CFLAGS="${CFLAGS+set}"
2228 ac_save_CFLAGS="$CFLAGS"
2230 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2231 echo "configure:2232: checking whether ${CC-cc} accepts -g" >&5
2233 echo 'void f(){}' > conftest.c
2234 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2242 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2243 if test "$ac_test_CFLAGS" = set; then
2244 CFLAGS="$ac_save_CFLAGS"
2245 elif test $ac_cv_prog_cc_g = yes; then
2246 if test "$GCC" = yes; then
2252 if test "$GCC" = yes; then
2260 CFLAGS="$xe_save_CFLAGS"
2263 test -n "$CPP" -a -d "$CPP" && CPP=
2265 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP"
2267 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2268 echo "configure:2269: checking how to run the C preprocessor" >&5
2269 # On Suns, sometimes $CPP names a directory.
2270 if test -n "$CPP" && test -d "$CPP"; then
2273 if test -z "$CPP"; then
2275 # This must be in double quotes, not single quotes, because CPP may get
2276 # substituted into the Makefile and "${CC-cc}" will confuse make.
2278 # On the NeXT, cc -E runs the code through the compiler's parser,
2279 # not just through cpp.
2280 cat > conftest.$ac_ext <<EOF
2281 #line 2282 "configure"
2282 #include "confdefs.h"
2286 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2287 { (eval echo configure:2288: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2288 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2289 if test -z "$ac_err"; then
2293 echo "configure: failed program was:" >&5
2294 cat conftest.$ac_ext >&5
2296 CPP="${CC-cc} -E -traditional-cpp"
2297 cat > conftest.$ac_ext <<EOF
2298 #line 2299 "configure"
2299 #include "confdefs.h"
2303 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2304 { (eval echo configure:2305: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2305 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2306 if test -z "$ac_err"; then
2310 echo "configure: failed program was:" >&5
2311 cat conftest.$ac_ext >&5
2313 CPP="${CC-cc} -nologo -E"
2314 cat > conftest.$ac_ext <<EOF
2315 #line 2316 "configure"
2316 #include "confdefs.h"
2320 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2321 { (eval echo configure:2322: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2322 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2323 if test -z "$ac_err"; then
2327 echo "configure: failed program was:" >&5
2328 cat conftest.$ac_ext >&5
2337 ac_cv_prog_CPP="$CPP"
2338 CPP="$ac_cv_prog_CPP"
2340 ac_cv_prog_CPP="$CPP"
2342 echo "$ac_t""$CPP" 1>&6
2346 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2347 echo "configure:2348: checking for AIX" >&5
2348 cat > conftest.$ac_ext <<EOF
2349 #line 2350 "configure"
2350 #include "confdefs.h"
2356 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2357 egrep "yes" >/dev/null 2>&1; then
2359 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
2360 Defining _ALL_SOURCE
2362 cat >> confdefs.h <<\EOF
2363 #define _ALL_SOURCE 1
2369 echo "$ac_t""no" 1>&6
2375 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6
2376 echo "configure:2377: checking for GNU libc" >&5
2377 cat > conftest.$ac_ext <<EOF
2378 #line 2379 "configure"
2379 #include "confdefs.h"
2380 #include <features.h>
2383 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
2384 #error Not a GNU libc system :-(
2385 ******* ======= ******** &&&&&&&&
2390 if { (eval echo configure:2391: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2394 echo "configure: failed program was:" >&5
2395 cat conftest.$ac_ext >&5
2400 echo "$ac_t""$have_glibc" 1>&6
2401 test "$have_glibc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
2402 Defining _GNU_SOURCE
2404 cat >> confdefs.h <<\EOF
2405 #define _GNU_SOURCE 1
2412 { test "$extra_verbose" = "yes" && cat << \EOF
2413 Defining __EXTENSIONS__
2415 cat >> confdefs.h <<\EOF
2416 #define __EXTENSIONS__ 1
2420 if test "$os_release" -ge 55; then
2421 { test "$extra_verbose" = "yes" && cat << \EOF
2422 Defining _XOPEN_SOURCE = 500
2424 cat >> confdefs.h <<\EOF
2425 #define _XOPEN_SOURCE 500
2429 { test "$extra_verbose" = "yes" && cat << \EOF
2430 Defining _XOPEN_SOURCE_EXTENDED
2432 cat >> confdefs.h <<\EOF
2433 #define _XOPEN_SOURCE_EXTENDED 1
2439 { test "$extra_verbose" = "yes" && cat << \EOF
2440 Defining _POSIX_C_SOURCE = 199506L
2442 cat >> confdefs.h <<\EOF
2443 #define _POSIX_C_SOURCE 199506L
2447 { test "$extra_verbose" = "yes" && cat << \EOF
2448 Defining _XOPEN_SOURCE = 500
2450 cat >> confdefs.h <<\EOF
2451 #define _XOPEN_SOURCE 500
2455 { test "$extra_verbose" = "yes" && cat << \EOF
2456 Defining _XOPEN_SOURCE_EXTENDED
2458 cat >> confdefs.h <<\EOF
2459 #define _XOPEN_SOURCE_EXTENDED 1
2466 cat > conftest.$ac_ext <<EOF
2467 #line 2468 "configure"
2468 #include "confdefs.h"
2470 #if defined __SUNPRO_C
2472 #elif defined __DECC
2474 #elif defined __USLC__ && defined __SCO_VERSION__
2481 if { (eval echo configure:2482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
2486 echo "configure: failed program was:" >&5
2487 cat conftest.$ac_ext >&5
2489 case "$conftest_rc" in
2490 11) echo "You appear to be using the SunPro C compiler."; __SUNPRO_C=yes ;;
2491 12) echo "You appear to be using the DEC C compiler." ; __DECC=yes ;;
2492 13) echo "You appear to be using the SCO C compiler." ; __USLC__=yes ;;
2500 echo "Extracting information from the machine- and system-dependent headers..."
2502 tempcname="conftest.c"
2506 cat > $tempcname < confdefs.h
2507 cat >> $tempcname <<EOF
2509 #define C_SWITCH_SITE
2510 #define C_SWITCH_X_SITE
2511 #define LD_SWITCH_SITE
2512 #define LD_SWITCH_X_SITE
2513 #define LD_SWITCH_X_SITE_AUX
2514 #define OS_RELEASE $os_release
2516 #ifdef config_opsysfile
2517 #include "$srcdir/src/$opsysfile"
2520 #ifdef config_machfile
2521 #include "$srcdir/src/$machfile"
2524 #ifndef LIBS_MACHINE
2525 #define LIBS_MACHINE
2527 configure___ libs_machine=LIBS_MACHINE
2532 configure___ libs_system=LIBS_SYSTEM
2534 #ifndef LIBS_TERMCAP
2535 #define LIBS_TERMCAP
2537 configure___ libs_termcap=LIBS_TERMCAP
2539 #ifndef LIB_STANDARD
2540 #define LIB_STANDARD
2542 configure___ libs_standard=LIB_STANDARD
2545 #ifndef OBJECTS_MACHINE
2546 #define OBJECTS_MACHINE
2548 configure___ objects_machine=OBJECTS_MACHINE
2550 #ifndef OBJECTS_SYSTEM
2551 #define OBJECTS_SYSTEM
2553 configure___ objects_system=OBJECTS_SYSTEM
2556 #ifndef C_SWITCH_MACHINE
2557 #define C_SWITCH_MACHINE
2559 configure___ c_switch_machine=C_SWITCH_MACHINE
2561 #ifndef C_SWITCH_SYSTEM
2562 #define C_SWITCH_SYSTEM
2564 configure___ c_switch_system=C_SWITCH_SYSTEM
2567 #ifndef LD_SWITCH_MACHINE
2568 #define LD_SWITCH_MACHINE
2570 configure___ ld_switch_machine=LD_SWITCH_MACHINE
2572 #ifndef LD_SWITCH_SYSTEM
2573 #define LD_SWITCH_SYSTEM
2575 configure___ ld_switch_system=LD_SWITCH_SYSTEM
2579 #define UNEXEC "unexec.o"
2581 configure___ unexec=UNEXEC
2584 #ifndef LD_SWITCH_SHARED
2585 #define LD_SWITCH_SHARED "-c"
2587 configure___ ld_switch_shared=LD_SWITCH_SHARED
2590 #define ORDINARY_LD "\$(CC) \$(CFLAGS)"
2591 configure___ ordinary_ld=ORDINARY_LD
2593 #ifdef ORDINARY_LINK
2594 #define LD ORDINARY_LD
2595 #else /* no ORDINARY LINK */
2596 #ifdef COFF_ENCAPSULATE
2597 #define LD "\$(CC) -nostdlib"
2598 #else /* not COFF_ENCAPSULATE */
2601 #else /* ! defined (LINKER) */
2603 #endif /* ! defined (LINKER) */
2604 #endif /* ! defined (COFF_ENCAPSULATE) */
2605 #endif /* not ORDINARY_LINK */
2611 configure___ lib_gcc=LIB_GCC
2613 #ifndef LD_TEXT_START_ADDR
2614 #define LD_TEXT_START_ADDR
2616 configure___ ld_text_start_addr=LD_TEXT_START_ADDR
2619 #if ! defined (ORDINARY_LINK) && !defined (START_FILES)
2621 #ifdef COFF_ENCAPSULATE
2622 #define START_FILES "pre-crt0.o /usr/local/lib/gcc-crt0.o"
2623 #else /* ! defined (COFF_ENCAPSULATE) */
2624 #define START_FILES "pre-crt0.o /lib/crt0.o"
2625 #endif /* ! defined (COFF_ENCAPSULATE) */
2626 #else /* ! defined (NO_REMAP) */
2627 #define START_FILES "ecrt0.o"
2628 #endif /* ! defined (NO_REMAP) */
2629 #endif /* no ORDINARY_LINK */
2633 configure___ start_files=START_FILES
2635 #ifdef ORDINARY_LINK
2636 configure___ ordinary_link=yes
2638 configure___ ordinary_link=no
2641 #ifdef SYSTEM_MALLOC
2642 configure___ system_malloc=yes
2644 configure___ system_malloc=no
2648 configure___ have_terminfo=yes
2650 configure___ have_terminfo=no
2653 #ifdef MAIL_USE_FLOCK
2654 configure___ mail_use_flock=yes
2656 configure___ mail_use_flock=no
2659 #ifdef MAIL_USE_LOCKF
2660 configure___ mail_use_lockf=yes
2662 configure___ mail_use_lockf=no
2665 #ifdef MAIL_USE_LOCKING
2666 configure___ mail_use_locking=yes
2668 configure___ mail_use_locking=no
2671 #ifdef HAVE_WIN32_PROCESSES
2672 configure___ win32_processes=yes
2674 configure___ win32_processes=no
2679 CPP=`eval "echo $CPP $CPPFLAGS"`
2680 eval `$CPP -Isrc $tempcname \
2681 | sed -n -e "s/[ ]*=[ \"]*/='/" -e "s/[ \"]*\$/'/" -e "s/^configure___//p"`
2685 if test "$pdump" = "yes"; then
2694 test "$extra_verbose" = "yes" && \
2695 for var in libs_machine libs_system libs_termcap libs_standard objects_machine objects_system c_switch_machine c_switch_system ld_switch_machine ld_switch_system unexec ld_switch_shared ld lib_gcc ld_text_start_addr start_files ordinary_link have_terminfo mail_use_flock mail_use_lockf; do eval "echo \"$var = '\$$var'\""; done && echo ""
2697 case "$opsys" in mingw* | cygwin*)
2698 cygwin_include=`eval "gcc -print-file-name=libc.a"` ;
2699 cygwin_include=`eval "dirname $cygwin_include"` ;
2700 cygwin_include="-I$cygwin_include/../include" ;
2701 extra_includes="$cygwin_include/mingw $cygwin_include" ;
2702 case "$opsys" in mingw*)
2703 c_switch_system="$c_switch_system $extra_includes" && if test "$extra_verbose" = "yes"; then echo " Appending \"$extra_includes\" to \$c_switch_system"; fi ;;
2708 test "$ordinary_link" = "no" -a -z "$libs_standard" && libs_standard="-lc"
2711 test "$__DECC" = "yes" && c_switch_site="$c_switch_site -std1" && if test "$extra_verbose" = "yes"; then echo " Appending \"-std1\" to \$c_switch_site"; fi
2713 if test "$__USLC__" = yes; then
2714 echo $ac_n "checking for whether the -Kalloca compiler flag is needed""... $ac_c" 1>&6
2715 echo "configure:2716: checking for whether the -Kalloca compiler flag is needed" >&5
2717 cat > conftest.$ac_ext <<EOF
2718 #line 2719 "configure"
2719 #include "confdefs.h"
2722 void *x = alloca(4);
2725 if { (eval echo configure:2726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2729 echo "configure: failed program was:" >&5
2730 cat conftest.$ac_ext >&5
2733 xe_save_c_switch_system="$c_switch_system"
2734 c_switch_system="$c_switch_system -Kalloca"
2735 cat > conftest.$ac_ext <<EOF
2736 #line 2737 "configure"
2737 #include "confdefs.h"
2740 void *x = alloca(4);
2743 if { (eval echo configure:2744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2747 echo "configure: failed program was:" >&5
2748 cat conftest.$ac_ext >&5
2751 c_switch_system="$xe_save_c_switch_system"
2754 echo "$ac_t""$need_kalloca" 1>&6
2755 test "$need_kalloca" = "yes" && c_switch_system="$c_switch_system -Kalloca" && if test "$extra_verbose" = "yes"; then echo " Appending \"-Kalloca\" to \$c_switch_system"; fi
2758 if test "$cflags_specified" = "no"; then
2759 if test "$GCC" = "yes"; then
2760 CFLAGS="-g -O3 -Wall -Wno-switch -Winline -Wmissing-prototypes -Wshadow"
2761 CFLAGS="$CFLAGS -Wsign-compare"
2762 test "$have_glibc" != "yes" && CFLAGS="$CFLAGS -Wpointer-arith"
2763 elif test "$__SUNPRO_C" = "yes"; then
2765 sol2 ) CFLAGS="-v -xO4" ;;
2766 sunos4* ) CFLAGS="-xO2";;
2768 elif test "$__DECC" = "yes"; then
2770 elif test "$CC" = "xlc"; then
2771 CFLAGS="-g -O3 -qstrict -qnoansialias -qlibansi -qinfo -qro -qmaxmem=20000"
2776 if test "$GCC" = "yes"; then
2777 echo $ac_n "checking for buggy gcc versions""... $ac_c" 1>&6
2778 echo "configure:2779: checking for buggy gcc versions" >&5
2779 GCC_VERSION=`$CC --version`
2780 case `uname -s`:`uname -m`:$GCC_VERSION in
2781 *:sun4*:2.8.1|*:sun4*:egcs-2.90.*)
2785 *-fno-schedule-insns*) ;;
2787 echo "$ac_t""yes" 1>&6
2788 echo "configure: warning: Don't use -O2 with gcc 2.8.1 and egcs 1.0 under SPARC architectures" 1>&2
2789 echo "configure: warning: without also using -fno-schedule-insns." 1>&2
2790 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2796 Linux:alpha:egcs-2.91.*)
2797 echo "$ac_t""yes" 1>&6
2798 echo "configure: warning: There have been reports of egcs-1.1 not compiling XEmacs correctly on" 1>&2
2799 echo "configure: warning: Alpha Linux. There have also been reports that egcs-1.0.3a is O.K." 1>&2
2800 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2805 case "$GCC_VERSION" in
2808 *-fno-strength-reduce*) ;;
2810 echo "$ac_t""yes" 1>&6
2811 echo "configure: warning: Don't use -O2 with gcc 2.7.2 under Intel/XXX without also using" 1>&2
2812 echo "configure: warning: -fno-strength-reduce." 1>&2
2813 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2819 *-fno-caller-saves*) ;;
2821 echo "$ac_t""yes" 1>&6
2822 echo "configure: warning: Don't use -O2 with gcc 2.7.2 under Intel/XXX without also using" 1>&2
2823 echo "configure: warning: -fno-caller-saves." 1>&2
2824 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2831 echo "$ac_t""no" 1>&6
2835 if test "$GCC" = "yes"; then
2836 set x $ld_switch_system; shift; ld_switch_system=""
2837 while test -n "$1"; do
2839 -L | -l | -u ) ld_switch_system="$ld_switch_system $1 $2"; shift ;;
2840 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_system="$ld_switch_system $1" ;;
2842 * ) ld_switch_system="$ld_switch_system -Xlinker $1" ;;
2848 if test "$GCC" = "yes"; then
2849 set x $ld_switch_machine; shift; ld_switch_machine=""
2850 while test -n "$1"; do
2852 -L | -l | -u ) ld_switch_machine="$ld_switch_machine $1 $2"; shift ;;
2853 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_machine="$ld_switch_machine $1" ;;
2855 * ) ld_switch_machine="$ld_switch_machine -Xlinker $1" ;;
2861 if test "$GCC" = "yes"; then
2862 set x $LDFLAGS; shift; LDFLAGS=""
2863 while test -n "$1"; do
2865 -L | -l | -u ) LDFLAGS="$LDFLAGS $1 $2"; shift ;;
2866 -L* | -l* | -u* | -Wl* | -pg ) LDFLAGS="$LDFLAGS $1" ;;
2868 * ) LDFLAGS="$LDFLAGS -Xlinker $1" ;;
2874 if test "$GCC" = "yes"; then
2875 set x $ld_call_shared; shift; ld_call_shared=""
2876 while test -n "$1"; do
2878 -L | -l | -u ) ld_call_shared="$ld_call_shared $1 $2"; shift ;;
2879 -L* | -l* | -u* | -Wl* | -pg ) ld_call_shared="$ld_call_shared $1" ;;
2881 * ) ld_call_shared="$ld_call_shared -Xlinker $1" ;;
2887 test -n "$objects_machine" && extra_objs="$extra_objs $objects_machine" && if test "$extra_verbose" = "yes"; then
2888 echo " xemacs will be linked with \"$objects_machine\""
2890 test -n "$objects_system" && extra_objs="$extra_objs $objects_system" && if test "$extra_verbose" = "yes"; then
2891 echo " xemacs will be linked with \"$objects_system\""
2893 test -n "$unexec" && test ! "$pdump" = "yes" && extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then
2894 echo " xemacs will be linked with \"$unexec\""
2896 test "$pdump" = "yes" && extra_objs="$extra_objs dumper.o" && if test "$extra_verbose" = "yes"; then
2897 echo " xemacs will be linked with \"dumper.o\""
2900 echo $ac_n "checking for dynodump""... $ac_c" 1>&6
2901 echo "configure:2902: checking for dynodump" >&5
2902 if test "$unexec" != "unexsol2.o"; then
2903 echo "$ac_t""no" 1>&6
2905 echo "$ac_t""yes" 1>&6
2906 { test "$extra_verbose" = "yes" && cat << \EOF
2909 cat >> confdefs.h <<\EOF
2914 MAKE_SUBDIR="$MAKE_SUBDIR dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$MAKE_SUBDIR"; fi
2915 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$SRC_SUBDIR_DEPS"; fi
2917 sparc ) dynodump_arch=sparc ;;
2918 *86* ) dynodump_arch=i386 ;;
2919 powerpc ) dynodump_arch=ppc ;;
2921 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
2925 test "$machine$opsys" = "powerpclinux" && start_flags="-T $srcdir/src/ppc.ldscript"
2927 if test "$unexec" = "unexaix.o"; then
2928 if test "$dynamic" = "no"; then
2929 start_flags="-Wl,-bnso,-bnodelcsect"
2930 test "$GCC" = "yes" && start_flags="-B/bin/ ${start_flags}"
2931 for f in "/lib/syscalls.exp" "/lib/threads.exp"; do
2932 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; fi
2934 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do
2935 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi
2938 echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6
2939 echo "configure:2940: checking for terminateAndUnload in -lC" >&5
2940 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'`
2942 xe_check_libs=" -lC "
2943 cat > conftest.$ac_ext <<EOF
2944 #line 2945 "configure"
2945 #include "confdefs.h"
2946 /* Override any gcc2 internal prototype to avoid an error. */
2947 /* We use char because int might match the return type of a gcc2
2948 builtin and then its argument prototype would still apply. */
2949 char terminateAndUnload();
2952 terminateAndUnload()
2955 if { (eval echo configure:2956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2957 eval "ac_cv_lib_$ac_lib_var=yes"
2959 echo "configure: failed program was:" >&5
2960 cat conftest.$ac_ext >&5
2962 eval "ac_cv_lib_$ac_lib_var=no"
2967 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
2968 echo "$ac_t""yes" 1>&6
2969 libs_system="$libs_system -lC" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lC\" to \$libs_system"; fi
2971 echo "$ac_t""no" 1>&6
2976 elif test -n "$ld_text_start_addr"; then
2977 start_flags="-T $ld_text_start_addr -e __start"
2983 if test "$ordinary_link" = "no" -a "$GCC" = "yes"; then
2984 test -z "$linker" && linker='$(CC) -nostdlib'
2985 test -z "$lib_gcc" && lib_gcc='`$(CC) -print-libgcc-file-name`'
2987 test "$GCC" != "yes" && lib_gcc=
2993 case "$site_libraries" in *:* ) site_libraries="`echo '' $site_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
2994 if test -n "$site_libraries"; then
2995 for arg in $site_libraries; do
2998 * ) test -d "$arg" || \
2999 { echo "Error:" "Invalid site library \`$arg': no such directory" >&2; exit 1; }
3002 ld_switch_site="$ld_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$ld_switch_site"; fi
3006 case "$site_includes" in *:* ) site_includes="`echo '' $site_includes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
3007 if test -n "$site_includes"; then
3008 for arg in $site_includes; do
3011 * ) test -d "$arg" || \
3012 { echo "Error:" "Invalid site include \`$arg': no such directory" >&2; exit 1; }
3015 c_switch_site="$c_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$c_switch_site"; fi
3019 case "$site_prefixes" in *:* ) site_prefixes="`echo '' $site_prefixes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
3020 if test -n "$site_prefixes"; then
3021 for dir in $site_prefixes; do
3022 lib_dir="${dir}/lib"
3023 inc_dir="${dir}/include"
3024 if test ! -d "$dir"; then
3025 { echo "Error:" "Invalid site prefix \`$dir': no such directory" >&2; exit 1; }
3026 elif test ! -d "$lib_dir"; then
3027 { echo "Error:" "Invalid site prefix \`$dir': no such directory \`$lib_dir'" >&2; exit 1; }
3029 if test -d "$inc_dir"; then
3030 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
3032 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
3038 for dir in "/usr/ccs/lib"; do
3039 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
3042 case "$site_runtime_libraries" in *:* ) site_runtime_libraries="`echo '' $site_runtime_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
3043 if test -n "$site_runtime_libraries"; then
3044 LD_RUN_PATH="`echo $site_runtime_libraries | sed -e 's/ */:/g'`"
3052 if test -n "$add_runtime_path"; then :;
3053 elif test "$dynamic" = "no"; then add_runtime_path=no
3054 elif test -n "$LD_RUN_PATH"; then add_runtime_path=yes
3055 else case "$opsys" in
3056 sol2 | irix* | *bsd* | decosf* ) add_runtime_path=yes ;;
3057 * ) add_runtime_path=no ;;
3061 if test "$add_runtime_path" = "yes"; then
3062 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6
3063 echo "configure:3064: checking "for runtime libraries flag"" >&5
3065 sol2 ) dash_r="-R" ;;
3066 decosf* | linux* | irix*) dash_r="-rpath " ;;
3069 for try_dash_r in "-R" "-R " "-rpath "; do
3070 xe_check_libs="${try_dash_r}/no/such/file-or-directory"
3072 if test "$GCC" = "yes"; then
3073 set x $xe_check_libs; shift; xe_check_libs=""
3074 while test -n "$1"; do
3076 -L | -l | -u ) xe_check_libs="$xe_check_libs $1 $2"; shift ;;
3077 -L* | -l* | -u* | -Wl* | -pg ) xe_check_libs="$xe_check_libs $1" ;;
3079 * ) xe_check_libs="$xe_check_libs -Xlinker $1" ;;
3084 cat > conftest.$ac_ext <<EOF
3085 #line 3086 "configure"
3086 #include "confdefs.h"
3092 if { (eval echo configure:3093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3094 dash_r="$try_dash_r"
3096 echo "configure: failed program was:" >&5
3097 cat conftest.$ac_ext >&5
3101 test -n "$dash_r" && break
3104 if test -n "$dash_r";
3105 then echo "$ac_t"""\"${dash_r}\""" 1>&6
3106 else echo "$ac_t""NONE" 1>&6
3110 xe_add_unique_runpath_dir='
3112 for xe_dir in $runpath_dirs; do test "$xe_dir" = "$xe_runpath_dir" && xe_add_p=no
3114 if test "$xe_add_p" = "yes"; then
3115 test -n "$runpath" && runpath="${runpath}:"
3116 runpath="${runpath}${xe_runpath_dir}"
3117 runpath_dirs="$runpath_dirs $xe_runpath_dir"
3123 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
3124 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
3125 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
3127 runpath="" runpath_dirs=""
3128 if test -n "$LD_RUN_PATH"; then
3129 runpath="$LD_RUN_PATH"
3130 elif test "$GCC" = "yes"; then
3131 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
3132 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
3133 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
3134 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
3135 case "$arg" in P,* | -L* | -R* )
3136 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
3138 xe_runpath_dir="$dir"
3139 test "$xe_runpath_dir" != "/lib" -a \
3140 "$xe_runpath_dir" != "/usr/lib" -a \
3141 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
3142 eval "$xe_add_unique_runpath_dir"
3147 ld_switch_run="$ld_switch_run_save"
3150 for arg in $ld_switch_site $ld_switch_x_site; do
3151 case "$arg" in -L*) {
3152 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
3153 test "$xe_runpath_dir" != "/lib" -a \
3154 "$xe_runpath_dir" != "/usr/lib" -a \
3155 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
3156 eval "$xe_add_unique_runpath_dir"
3159 if test "$opsys $need_motif" = "sol2 yes"; then
3160 xe_runpath_dir="/opt/SUNWdt/lib";
3161 eval "$xe_add_unique_runpath_dir";
3164 if test -n "$runpath"; then
3165 ld_switch_run="${dash_r}${runpath}"
3167 if test "$GCC" = "yes"; then
3168 set x $ld_switch_run; shift; ld_switch_run=""
3169 while test -n "$1"; do
3171 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
3172 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
3174 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
3179 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
3186 if test "$with_dlmalloc" != "no"; then
3191 after_morecore_hook_exists=yes
3192 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
3193 echo "configure:3194: checking for malloc_set_state" >&5
3195 cat > conftest.$ac_ext <<EOF
3196 #line 3197 "configure"
3197 #include "confdefs.h"
3198 /* System header to define __stub macros and hopefully few prototypes,
3199 which can conflict with char malloc_set_state(); below. */
3201 /* Override any gcc2 internal prototype to avoid an error. */
3202 /* We use char because int might match the return type of a gcc2
3203 builtin and then its argument prototype would still apply. */
3204 char malloc_set_state();
3208 /* The GNU C library defines this for functions which it implements
3209 to always fail with ENOSYS. Some functions are actually named
3210 something starting with __ and the normal name is an alias. */
3211 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
3219 if { (eval echo configure:3220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3221 eval "ac_cv_func_malloc_set_state=yes"
3223 echo "configure: failed program was:" >&5
3224 cat conftest.$ac_ext >&5
3226 eval "ac_cv_func_malloc_set_state=no"
3230 if eval "test \"`echo '$ac_cv_func_'malloc_set_state`\" = yes"; then
3231 echo "$ac_t""yes" 1>&6
3234 echo "$ac_t""no" 1>&6
3238 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
3239 echo "configure:3240: checking whether __after_morecore_hook exists" >&5
3240 cat > conftest.$ac_ext <<EOF
3241 #line 3242 "configure"
3242 #include "confdefs.h"
3243 extern void (* __after_morecore_hook)();
3245 __after_morecore_hook = 0
3248 if { (eval echo configure:3249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3250 echo "$ac_t""yes" 1>&6
3252 echo "configure: failed program was:" >&5
3253 cat conftest.$ac_ext >&5
3255 echo "$ac_t""no" 1>&6
3256 after_morecore_hook_exists=no
3259 if test "$system_malloc" = "yes" ; then
3262 - The GNU allocators don't work with this system configuration."
3263 elif test "$with_system_malloc" = "yes" ; then
3266 - User chose not to use GNU allocators."
3267 elif test "$with_debug_malloc" = "yes" ; then
3270 - User chose to use Debugging Malloc."
3273 if test "$doug_lea_malloc" = "yes" -a "$GNU_MALLOC" = "yes" ; then
3275 - Using Doug Lea's new malloc from the GNU C Library."
3276 { test "$extra_verbose" = "yes" && cat << \EOF
3277 Defining DOUG_LEA_MALLOC
3279 cat >> confdefs.h <<\EOF
3280 #define DOUG_LEA_MALLOC 1
3284 if test "$after_morecore_hook_exists" = "no" ; then
3286 - Using Doug Lea's new malloc from the Linux C Library."
3287 { test "$extra_verbose" = "yes" && cat << \EOF
3288 Defining _NO_MALLOC_WARNING_
3290 cat >> confdefs.h <<\EOF
3291 #define _NO_MALLOC_WARNING_ 1
3301 # Extract the first word of "ranlib", so it can be a program name with args.
3302 set dummy ranlib; ac_word=$2
3303 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3304 echo "configure:3305: checking for $ac_word" >&5
3306 if test -n "$RANLIB"; then
3307 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3309 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3311 for ac_dir in $ac_dummy; do
3312 test -z "$ac_dir" && ac_dir=.
3313 if test -f $ac_dir/$ac_word; then
3314 ac_cv_prog_RANLIB="ranlib"
3319 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
3321 RANLIB="$ac_cv_prog_RANLIB"
3322 if test -n "$RANLIB"; then
3323 echo "$ac_t""$RANLIB" 1>&6
3325 echo "$ac_t""no" 1>&6
3329 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3330 if test -f $ac_dir/install-sh; then
3332 ac_install_sh="$ac_aux_dir/install-sh -c"
3334 elif test -f $ac_dir/install.sh; then
3336 ac_install_sh="$ac_aux_dir/install.sh -c"
3340 if test -z "$ac_aux_dir"; then
3341 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
3343 ac_config_guess=$ac_aux_dir/config.guess
3344 ac_config_sub=$ac_aux_dir/config.sub
3345 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
3347 # Find a good install program. We prefer a C program (faster),
3348 # so one script is as good as another. But avoid the broken or
3349 # incompatible versions:
3350 # SysV /etc/install, /usr/sbin/install
3351 # SunOS /usr/etc/install
3352 # IRIX /sbin/install
3354 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3355 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3356 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3357 # ./install, which can be erroneously created by make from ./install.sh.
3358 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3359 echo "configure:3360: checking for a BSD compatible install" >&5
3360 if test -z "$INSTALL"; then
3362 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3363 for ac_dir in $PATH; do
3364 # Account for people who put trailing slashes in PATH elements.
3366 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3368 # OSF1 and SCO ODT 3.0 have their own names for install.
3369 # Don't use installbsd from OSF since it installs stuff as root
3371 for ac_prog in ginstall scoinst install; do
3372 if test -f $ac_dir/$ac_prog; then
3373 if test $ac_prog = install &&
3374 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3375 # AIX install. It has an incompatible calling convention.
3378 ac_cv_path_install="$ac_dir/$ac_prog -c"
3388 if test "${ac_cv_path_install+set}" = set; then
3389 INSTALL="$ac_cv_path_install"
3391 # As a last resort, use the slow shell script. We don't cache a
3392 # path for INSTALL within a source directory, because that will
3393 # break other packages using the cache if that directory is
3394 # removed, or if the path is relative.
3395 INSTALL="$ac_install_sh"
3398 echo "$ac_t""$INSTALL" 1>&6
3400 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3401 # It thinks the first close brace ends the variable substitution.
3402 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3404 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3406 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3408 for ac_prog in 'bison -y' byacc
3410 # Extract the first word of "$ac_prog", so it can be a program name with args.
3411 set dummy $ac_prog; ac_word=$2
3412 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3413 echo "configure:3414: checking for $ac_word" >&5
3415 if test -n "$YACC"; then
3416 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3418 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3420 for ac_dir in $ac_dummy; do
3421 test -z "$ac_dir" && ac_dir=.
3422 if test -f $ac_dir/$ac_word; then
3423 ac_cv_prog_YACC="$ac_prog"
3429 YACC="$ac_cv_prog_YACC"
3430 if test -n "$YACC"; then
3431 echo "$ac_t""$YACC" 1>&6
3433 echo "$ac_t""no" 1>&6
3436 test -n "$YACC" && break
3438 test -n "$YACC" || YACC="yacc"
3441 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
3443 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3444 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3445 echo "configure:3446: checking for $ac_hdr" >&5
3447 cat > conftest.$ac_ext <<EOF
3448 #line 3449 "configure"
3449 #include "confdefs.h"
3452 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3453 { (eval echo configure:3454: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3454 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3455 if test -z "$ac_err"; then
3457 eval "ac_cv_header_$ac_safe=yes"
3460 echo "configure: failed program was:" >&5
3461 cat conftest.$ac_ext >&5
3463 eval "ac_cv_header_$ac_safe=no"
3466 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3467 echo "$ac_t""yes" 1>&6
3468 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3469 { test "$extra_verbose" = "yes" && cat << EOF
3472 cat >> confdefs.h <<EOF
3473 #define $ac_tr_hdr 1
3478 echo "$ac_t""no" 1>&6
3482 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
3483 echo "configure:3484: checking for sys/wait.h that is POSIX.1 compatible" >&5
3485 cat > conftest.$ac_ext <<EOF
3486 #line 3487 "configure"
3487 #include "confdefs.h"
3488 #include <sys/types.h>
3489 #include <sys/wait.h>
3491 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3494 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3499 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3502 if { (eval echo configure:3503: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3504 ac_cv_header_sys_wait_h=yes
3506 echo "configure: failed program was:" >&5
3507 cat conftest.$ac_ext >&5
3509 ac_cv_header_sys_wait_h=no
3513 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
3514 if test $ac_cv_header_sys_wait_h = yes; then
3515 { test "$extra_verbose" = "yes" && cat << \EOF
3516 Defining HAVE_SYS_WAIT_H
3518 cat >> confdefs.h <<\EOF
3519 #define HAVE_SYS_WAIT_H 1
3525 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3526 echo "configure:3527: checking for ANSI C header files" >&5
3528 cat > conftest.$ac_ext <<EOF
3529 #line 3530 "configure"
3530 #include "confdefs.h"
3536 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3537 { (eval echo configure:3538: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3538 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3539 if test -z "$ac_err"; then
3541 ac_cv_header_stdc=yes
3544 echo "configure: failed program was:" >&5
3545 cat conftest.$ac_ext >&5
3547 ac_cv_header_stdc=no
3551 if test $ac_cv_header_stdc = yes; then
3552 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3553 cat > conftest.$ac_ext <<EOF
3554 #line 3555 "configure"
3555 #include "confdefs.h"
3558 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3559 egrep "memchr" >/dev/null 2>&1; then
3563 ac_cv_header_stdc=no
3569 if test $ac_cv_header_stdc = yes; then
3570 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3571 cat > conftest.$ac_ext <<EOF
3572 #line 3573 "configure"
3573 #include "confdefs.h"
3576 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3577 egrep "free" >/dev/null 2>&1; then
3581 ac_cv_header_stdc=no
3587 if test $ac_cv_header_stdc = yes; then
3588 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3589 cat > conftest.$ac_ext <<EOF
3590 #line 3591 "configure"
3591 #include "confdefs.h"
3593 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3594 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3595 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3596 int main () { int i; for (i = 0; i < 256; i++)
3597 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3601 if { (eval echo configure:3602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
3606 echo "configure: failed program was:" >&5
3607 cat conftest.$ac_ext >&5
3609 ac_cv_header_stdc=no
3614 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3615 if test $ac_cv_header_stdc = yes; then
3616 { test "$extra_verbose" = "yes" && cat << \EOF
3617 Defining STDC_HEADERS
3619 cat >> confdefs.h <<\EOF
3620 #define STDC_HEADERS 1
3626 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3627 echo "configure:3628: checking whether time.h and sys/time.h may both be included" >&5
3629 cat > conftest.$ac_ext <<EOF
3630 #line 3631 "configure"
3631 #include "confdefs.h"
3632 #include <sys/types.h>
3633 #include <sys/time.h>
3639 if { (eval echo configure:3640: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3641 ac_cv_header_time=yes
3643 echo "configure: failed program was:" >&5
3644 cat conftest.$ac_ext >&5
3646 ac_cv_header_time=no
3650 echo "$ac_t""$ac_cv_header_time" 1>&6
3651 if test $ac_cv_header_time = yes; then
3652 { test "$extra_verbose" = "yes" && cat << \EOF
3653 Defining TIME_WITH_SYS_TIME
3655 cat >> confdefs.h <<\EOF
3656 #define TIME_WITH_SYS_TIME 1
3662 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
3663 echo "configure:3664: checking for sys_siglist declaration in signal.h or unistd.h" >&5
3665 cat > conftest.$ac_ext <<EOF
3666 #line 3667 "configure"
3667 #include "confdefs.h"
3668 #include <sys/types.h>
3670 /* NetBSD declares sys_siglist in unistd.h. */
3671 #ifdef HAVE_UNISTD_H
3675 char *msg = *(sys_siglist + 1);
3678 if { (eval echo configure:3679: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3680 ac_cv_decl_sys_siglist=yes
3682 echo "configure: failed program was:" >&5
3683 cat conftest.$ac_ext >&5
3685 ac_cv_decl_sys_siglist=no
3689 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
3690 if test $ac_cv_decl_sys_siglist = yes; then
3691 { test "$extra_verbose" = "yes" && cat << \EOF
3692 Defining SYS_SIGLIST_DECLARED
3694 cat >> confdefs.h <<\EOF
3695 #define SYS_SIGLIST_DECLARED 1
3703 echo $ac_n "checking for utime""... $ac_c" 1>&6
3704 echo "configure:3705: checking for utime" >&5
3705 cat > conftest.$ac_ext <<EOF
3706 #line 3707 "configure"
3707 #include "confdefs.h"
3708 #include <sys/types.h>
3711 struct utimbuf x; x.actime = x.modtime = 0; utime ("/", &x);
3714 if { (eval echo configure:3715: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3716 echo "$ac_t""yes" 1>&6
3717 { test "$extra_verbose" = "yes" && cat << \EOF
3720 cat >> confdefs.h <<\EOF
3721 #define HAVE_UTIME 1
3726 echo "configure: failed program was:" >&5
3727 cat conftest.$ac_ext >&5
3729 echo "$ac_t""no" 1>&6
3730 for ac_func in utimes
3732 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3733 echo "configure:3734: checking for $ac_func" >&5
3735 cat > conftest.$ac_ext <<EOF
3736 #line 3737 "configure"
3737 #include "confdefs.h"
3738 /* System header to define __stub macros and hopefully few prototypes,
3739 which can conflict with char $ac_func(); below. */
3741 /* Override any gcc2 internal prototype to avoid an error. */
3742 /* We use char because int might match the return type of a gcc2
3743 builtin and then its argument prototype would still apply. */
3748 /* The GNU C library defines this for functions which it implements
3749 to always fail with ENOSYS. Some functions are actually named
3750 something starting with __ and the normal name is an alias. */
3751 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3759 if { (eval echo configure:3760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3761 eval "ac_cv_func_$ac_func=yes"
3763 echo "configure: failed program was:" >&5
3764 cat conftest.$ac_ext >&5
3766 eval "ac_cv_func_$ac_func=no"
3770 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3771 echo "$ac_t""yes" 1>&6
3772 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3773 { test "$extra_verbose" = "yes" && cat << EOF
3774 Defining $ac_tr_func
3776 cat >> confdefs.h <<EOF
3777 #define $ac_tr_func 1
3782 echo "$ac_t""no" 1>&6
3790 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3791 echo "configure:3792: checking return type of signal handlers" >&5
3793 cat > conftest.$ac_ext <<EOF
3794 #line 3795 "configure"
3795 #include "confdefs.h"
3796 #include <sys/types.h>
3802 extern "C" void (*signal (int, void (*)(int)))(int);
3804 void (*signal ()) ();
3811 if { (eval echo configure:3812: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3813 ac_cv_type_signal=void
3815 echo "configure: failed program was:" >&5
3816 cat conftest.$ac_ext >&5
3818 ac_cv_type_signal=int
3822 echo "$ac_t""$ac_cv_type_signal" 1>&6
3823 { test "$extra_verbose" = "yes" && cat << EOF
3824 Defining RETSIGTYPE = $ac_cv_type_signal
3826 cat >> confdefs.h <<EOF
3827 #define RETSIGTYPE $ac_cv_type_signal
3832 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3833 echo "configure:3834: checking for size_t" >&5
3835 cat > conftest.$ac_ext <<EOF
3836 #line 3837 "configure"
3837 #include "confdefs.h"
3838 #include <sys/types.h>
3844 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3845 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3847 ac_cv_type_size_t=yes
3850 ac_cv_type_size_t=no
3854 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3855 if test $ac_cv_type_size_t = no; then
3856 { test "$extra_verbose" = "yes" && cat << \EOF
3857 Defining size_t = unsigned
3859 cat >> confdefs.h <<\EOF
3860 #define size_t unsigned
3866 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3867 echo "configure:3868: checking for pid_t" >&5
3869 cat > conftest.$ac_ext <<EOF
3870 #line 3871 "configure"
3871 #include "confdefs.h"
3872 #include <sys/types.h>
3878 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3879 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3881 ac_cv_type_pid_t=yes
3888 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3889 if test $ac_cv_type_pid_t = no; then
3890 { test "$extra_verbose" = "yes" && cat << \EOF
3891 Defining pid_t = int
3893 cat >> confdefs.h <<\EOF
3900 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3901 echo "configure:3902: checking for uid_t in sys/types.h" >&5
3903 cat > conftest.$ac_ext <<EOF
3904 #line 3905 "configure"
3905 #include "confdefs.h"
3906 #include <sys/types.h>
3908 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3909 egrep "uid_t" >/dev/null 2>&1; then
3911 ac_cv_type_uid_t=yes
3919 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3920 if test $ac_cv_type_uid_t = no; then
3921 { test "$extra_verbose" = "yes" && cat << \EOF
3922 Defining uid_t = int
3924 cat >> confdefs.h <<\EOF
3929 { test "$extra_verbose" = "yes" && cat << \EOF
3930 Defining gid_t = int
3932 cat >> confdefs.h <<\EOF
3939 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3940 echo "configure:3941: checking for mode_t" >&5
3942 cat > conftest.$ac_ext <<EOF
3943 #line 3944 "configure"
3944 #include "confdefs.h"
3945 #include <sys/types.h>
3951 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3952 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3954 ac_cv_type_mode_t=yes
3957 ac_cv_type_mode_t=no
3961 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3962 if test $ac_cv_type_mode_t = no; then
3963 { test "$extra_verbose" = "yes" && cat << \EOF
3964 Defining mode_t = int
3966 cat >> confdefs.h <<\EOF
3973 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3974 echo "configure:3975: checking for off_t" >&5
3976 cat > conftest.$ac_ext <<EOF
3977 #line 3978 "configure"
3978 #include "confdefs.h"
3979 #include <sys/types.h>
3985 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3986 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3988 ac_cv_type_off_t=yes
3995 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3996 if test $ac_cv_type_off_t = no; then
3997 { test "$extra_verbose" = "yes" && cat << \EOF
3998 Defining off_t = long
4000 cat >> confdefs.h <<\EOF
4007 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
4008 echo "configure:4009: checking for ssize_t" >&5
4010 cat > conftest.$ac_ext <<EOF
4011 #line 4012 "configure"
4012 #include "confdefs.h"
4013 #include <sys/types.h>
4019 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4020 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4022 ac_cv_type_ssize_t=yes
4025 ac_cv_type_ssize_t=no
4029 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
4030 if test $ac_cv_type_ssize_t = no; then
4031 { test "$extra_verbose" = "yes" && cat << \EOF
4032 Defining ssize_t = int
4034 cat >> confdefs.h <<\EOF
4042 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
4043 echo "configure:4044: checking for socklen_t" >&5
4044 cat > conftest.$ac_ext <<EOF
4045 #line 4046 "configure"
4046 #include "confdefs.h"
4047 #include <sys/socket.h>
4054 if { (eval echo configure:4055: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4056 echo "$ac_t""yes" 1>&6
4058 echo "configure: failed program was:" >&5
4059 cat conftest.$ac_ext >&5
4062 cat > conftest.$ac_ext <<EOF
4063 #line 4064 "configure"
4064 #include "confdefs.h"
4065 #include <sys/socket.h>
4066 int accept (int, struct sockaddr *, size_t *);
4072 if { (eval echo configure:4073: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4075 echo "$ac_t""size_t" 1>&6
4076 { test "$extra_verbose" = "yes" && cat << \EOF
4077 Defining socklen_t = size_t
4079 cat >> confdefs.h <<\EOF
4080 #define socklen_t size_t
4085 echo "configure: failed program was:" >&5
4086 cat conftest.$ac_ext >&5
4089 echo "$ac_t""int" 1>&6
4090 { test "$extra_verbose" = "yes" && cat << \EOF
4091 Defining socklen_t = int
4093 cat >> confdefs.h <<\EOF
4094 #define socklen_t int
4103 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
4104 echo "configure:4105: checking for struct timeval" >&5
4105 cat > conftest.$ac_ext <<EOF
4106 #line 4107 "configure"
4107 #include "confdefs.h"
4108 #ifdef TIME_WITH_SYS_TIME
4109 #include <sys/time.h>
4112 #ifdef HAVE_SYS_TIME_H
4113 #include <sys/time.h>
4119 static struct timeval x; x.tv_sec = x.tv_usec;
4122 if { (eval echo configure:4123: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4124 echo "$ac_t""yes" 1>&6
4126 { test "$extra_verbose" = "yes" && cat << \EOF
4127 Defining HAVE_TIMEVAL
4129 cat >> confdefs.h <<\EOF
4130 #define HAVE_TIMEVAL 1
4135 echo "configure: failed program was:" >&5
4136 cat conftest.$ac_ext >&5
4138 echo "$ac_t""no" 1>&6
4143 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
4144 echo "configure:4145: checking whether struct tm is in sys/time.h or time.h" >&5
4146 cat > conftest.$ac_ext <<EOF
4147 #line 4148 "configure"
4148 #include "confdefs.h"
4149 #include <sys/types.h>
4152 struct tm *tp; tp->tm_sec;
4155 if { (eval echo configure:4156: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4157 ac_cv_struct_tm=time.h
4159 echo "configure: failed program was:" >&5
4160 cat conftest.$ac_ext >&5
4162 ac_cv_struct_tm=sys/time.h
4166 echo "$ac_t""$ac_cv_struct_tm" 1>&6
4167 if test $ac_cv_struct_tm = sys/time.h; then
4168 { test "$extra_verbose" = "yes" && cat << \EOF
4169 Defining TM_IN_SYS_TIME
4171 cat >> confdefs.h <<\EOF
4172 #define TM_IN_SYS_TIME 1
4178 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
4179 echo "configure:4180: checking for tm_zone in struct tm" >&5
4181 cat > conftest.$ac_ext <<EOF
4182 #line 4183 "configure"
4183 #include "confdefs.h"
4184 #include <sys/types.h>
4185 #include <$ac_cv_struct_tm>
4187 struct tm tm; tm.tm_zone;
4190 if { (eval echo configure:4191: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4192 ac_cv_struct_tm_zone=yes
4194 echo "configure: failed program was:" >&5
4195 cat conftest.$ac_ext >&5
4197 ac_cv_struct_tm_zone=no
4201 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
4202 if test "$ac_cv_struct_tm_zone" = yes; then
4203 { test "$extra_verbose" = "yes" && cat << \EOF
4204 Defining HAVE_TM_ZONE
4206 cat >> confdefs.h <<\EOF
4207 #define HAVE_TM_ZONE 1
4212 echo $ac_n "checking for tzname""... $ac_c" 1>&6
4213 echo "configure:4214: checking for tzname" >&5
4215 cat > conftest.$ac_ext <<EOF
4216 #line 4217 "configure"
4217 #include "confdefs.h"
4219 #ifndef tzname /* For SGI. */
4220 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4226 if { (eval echo configure:4227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4228 ac_cv_var_tzname=yes
4230 echo "configure: failed program was:" >&5
4231 cat conftest.$ac_ext >&5
4237 echo "$ac_t""$ac_cv_var_tzname" 1>&6
4238 if test $ac_cv_var_tzname = yes; then
4239 { test "$extra_verbose" = "yes" && cat << \EOF
4240 Defining HAVE_TZNAME
4242 cat >> confdefs.h <<\EOF
4243 #define HAVE_TZNAME 1
4251 echo $ac_n "checking for working const""... $ac_c" 1>&6
4252 echo "configure:4253: checking for working const" >&5
4254 cat > conftest.$ac_ext <<EOF
4255 #line 4256 "configure"
4256 #include "confdefs.h"
4260 /* Ultrix mips cc rejects this. */
4261 typedef int charset[2]; const charset x;
4262 /* SunOS 4.1.1 cc rejects this. */
4263 char const *const *ccp;
4265 /* NEC SVR4.0.2 mips cc rejects this. */
4266 struct point {int x, y;};
4267 static struct point const zero = {0,0};
4268 /* AIX XL C 1.02.0.0 rejects this.
4269 It does not let you subtract one const X* pointer from another in an arm
4270 of an if-expression whose if-part is not a constant expression */
4271 const char *g = "string";
4272 ccp = &g + (g ? g-g : 0);
4273 /* HPUX 7.0 cc rejects these. */
4276 ccp = (char const *const *) p;
4277 { /* SCO 3.2v4 cc rejects this. */
4279 char const *s = 0 ? (char *) 0 : (char const *) 0;
4283 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4285 const int *foo = &x[0];
4288 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4289 typedef const int *iptr;
4293 { /* AIX XL C 1.02.0.0 rejects this saying
4294 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4295 struct s { int j; const int *ap[3]; };
4296 struct s *b; b->j = 5;
4298 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4304 if { (eval echo configure:4305: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4308 echo "configure: failed program was:" >&5
4309 cat conftest.$ac_ext >&5
4315 echo "$ac_t""$ac_cv_c_const" 1>&6
4316 if test $ac_cv_c_const = no; then
4317 { test "$extra_verbose" = "yes" && cat << \EOF
4320 cat >> confdefs.h <<\EOF
4328 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
4329 echo "configure:4330: checking whether ${MAKE-make} sets \${MAKE}" >&5
4330 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
4332 cat > conftestmake <<\EOF
4334 @echo 'ac_maketemp="${MAKE}"'
4336 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4337 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
4338 if test -n "$ac_maketemp"; then
4339 eval ac_cv_prog_make_${ac_make}_set=yes
4341 eval ac_cv_prog_make_${ac_make}_set=no
4344 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4345 echo "$ac_t""yes" 1>&6
4348 echo "$ac_t""no" 1>&6
4349 SET_MAKE="MAKE=${MAKE-make}"
4353 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
4354 echo "configure:4355: checking whether byte ordering is bigendian" >&5
4356 ac_cv_c_bigendian=unknown
4357 # See if sys/param.h defines the BYTE_ORDER macro.
4358 cat > conftest.$ac_ext <<EOF
4359 #line 4360 "configure"
4360 #include "confdefs.h"
4361 #include <sys/types.h>
4362 #include <sys/param.h>
4365 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4370 if { (eval echo configure:4371: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4372 # It does; now see whether it defined to BIG_ENDIAN or not.
4373 cat > conftest.$ac_ext <<EOF
4374 #line 4375 "configure"
4375 #include "confdefs.h"
4376 #include <sys/types.h>
4377 #include <sys/param.h>
4380 #if BYTE_ORDER != BIG_ENDIAN
4385 if { (eval echo configure:4386: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4387 ac_cv_c_bigendian=yes
4389 echo "configure: failed program was:" >&5
4390 cat conftest.$ac_ext >&5
4392 ac_cv_c_bigendian=no
4396 echo "configure: failed program was:" >&5
4397 cat conftest.$ac_ext >&5
4400 if test $ac_cv_c_bigendian = unknown; then
4401 cat > conftest.$ac_ext <<EOF
4402 #line 4403 "configure"
4403 #include "confdefs.h"
4405 /* Are we little or big endian? From Harbison&Steele. */
4409 char c[sizeof (long)];
4412 exit (u.c[sizeof (long) - 1] == 1);
4415 if { (eval echo configure:4416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4417 ac_cv_c_bigendian=no
4420 echo "configure: failed program was:" >&5
4421 cat conftest.$ac_ext >&5
4423 ac_cv_c_bigendian=yes
4428 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
4429 if test $ac_cv_c_bigendian = yes; then
4430 { test "$extra_verbose" = "yes" && cat << \EOF
4431 Defining WORDS_BIGENDIAN
4433 cat >> confdefs.h <<\EOF
4434 #define WORDS_BIGENDIAN 1
4441 echo $ac_n "checking size of short""... $ac_c" 1>&6
4442 echo "configure:4443: checking size of short" >&5
4444 cat > conftest.$ac_ext <<EOF
4445 #line 4446 "configure"
4446 #include "confdefs.h"
4448 #include <sys/types.h>
4451 FILE *f=fopen("conftestval", "w");
4453 fprintf(f, "%d\n", sizeof(short));
4457 if { (eval echo configure:4458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4459 ac_cv_sizeof_short=`cat conftestval`
4462 echo "configure: failed program was:" >&5
4463 cat conftest.$ac_ext >&5
4465 ac_cv_sizeof_short=0
4468 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
4469 { test "$extra_verbose" = "yes" && cat << EOF
4470 Defining SIZEOF_SHORT = $ac_cv_sizeof_short
4472 cat >> confdefs.h <<EOF
4473 #define SIZEOF_SHORT $ac_cv_sizeof_short
4478 if test "$ac_cv_sizeof_short" = 0; then
4480 echo "*** PANIC *** Configure tests are not working - compiler is broken."
4481 echo "*** PANIC *** Please examine config.log for compilation errors."
4484 echo $ac_n "checking size of int""... $ac_c" 1>&6
4485 echo "configure:4486: checking size of int" >&5
4487 cat > conftest.$ac_ext <<EOF
4488 #line 4489 "configure"
4489 #include "confdefs.h"
4491 #include <sys/types.h>
4494 FILE *f=fopen("conftestval", "w");
4496 fprintf(f, "%d\n", sizeof(int));
4500 if { (eval echo configure:4501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4502 ac_cv_sizeof_int=`cat conftestval`
4505 echo "configure: failed program was:" >&5
4506 cat conftest.$ac_ext >&5
4511 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
4512 { test "$extra_verbose" = "yes" && cat << EOF
4513 Defining SIZEOF_INT = $ac_cv_sizeof_int
4515 cat >> confdefs.h <<EOF
4516 #define SIZEOF_INT $ac_cv_sizeof_int
4521 echo $ac_n "checking size of long""... $ac_c" 1>&6
4522 echo "configure:4523: checking size of long" >&5
4524 cat > conftest.$ac_ext <<EOF
4525 #line 4526 "configure"
4526 #include "confdefs.h"
4528 #include <sys/types.h>
4531 FILE *f=fopen("conftestval", "w");
4533 fprintf(f, "%d\n", sizeof(long));
4537 if { (eval echo configure:4538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4539 ac_cv_sizeof_long=`cat conftestval`
4542 echo "configure: failed program was:" >&5
4543 cat conftest.$ac_ext >&5
4548 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
4549 { test "$extra_verbose" = "yes" && cat << EOF
4550 Defining SIZEOF_LONG = $ac_cv_sizeof_long
4552 cat >> confdefs.h <<EOF
4553 #define SIZEOF_LONG $ac_cv_sizeof_long
4558 echo $ac_n "checking size of long long""... $ac_c" 1>&6
4559 echo "configure:4560: checking size of long long" >&5
4561 cat > conftest.$ac_ext <<EOF
4562 #line 4563 "configure"
4563 #include "confdefs.h"
4565 #include <sys/types.h>
4568 FILE *f=fopen("conftestval", "w");
4570 fprintf(f, "%d\n", sizeof(long long));
4574 if { (eval echo configure:4575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4576 ac_cv_sizeof_long_long=`cat conftestval`
4579 echo "configure: failed program was:" >&5
4580 cat conftest.$ac_ext >&5
4582 ac_cv_sizeof_long_long=0
4585 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
4586 { test "$extra_verbose" = "yes" && cat << EOF
4587 Defining SIZEOF_LONG_LONG = $ac_cv_sizeof_long_long
4589 cat >> confdefs.h <<EOF
4590 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4595 echo $ac_n "checking size of void *""... $ac_c" 1>&6
4596 echo "configure:4597: checking size of void *" >&5
4598 cat > conftest.$ac_ext <<EOF
4599 #line 4600 "configure"
4600 #include "confdefs.h"
4602 #include <sys/types.h>
4605 FILE *f=fopen("conftestval", "w");
4607 fprintf(f, "%d\n", sizeof(void *));
4611 if { (eval echo configure:4612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4613 ac_cv_sizeof_void_p=`cat conftestval`
4616 echo "configure: failed program was:" >&5
4617 cat conftest.$ac_ext >&5
4619 ac_cv_sizeof_void_p=0
4622 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
4623 { test "$extra_verbose" = "yes" && cat << EOF
4624 Defining SIZEOF_VOID_P = $ac_cv_sizeof_void_p
4626 cat >> confdefs.h <<EOF
4627 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4633 echo $ac_n "checking for long file names""... $ac_c" 1>&6
4634 echo "configure:4635: checking for long file names" >&5
4636 ac_cv_sys_long_file_names=yes
4637 # Test for long file names in all the places we know might matter:
4638 # . the current directory, where building will happen
4639 # $prefix/lib where we will be installing things
4640 # $exec_prefix/lib likewise
4641 # eval it to expand exec_prefix.
4642 # $TMPDIR if set, where it might want to write temporary files
4643 # if $TMPDIR is not set:
4644 # /tmp where it might want to write temporary files
4647 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
4648 ac_tmpdirs="$TMPDIR"
4650 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
4652 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
4653 test -d $ac_dir || continue
4654 test -w $ac_dir || continue # It is less confusing to not echo anything here.
4655 (echo 1 > $ac_dir/conftest9012345) 2>/dev/null
4656 (echo 2 > $ac_dir/conftest9012346) 2>/dev/null
4657 val=`cat $ac_dir/conftest9012345 2>/dev/null`
4658 if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then
4659 ac_cv_sys_long_file_names=no
4660 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
4663 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
4666 echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
4667 if test $ac_cv_sys_long_file_names = yes; then
4668 { test "$extra_verbose" = "yes" && cat << \EOF
4669 Defining HAVE_LONG_FILE_NAMES
4671 cat >> confdefs.h <<\EOF
4672 #define HAVE_LONG_FILE_NAMES 1
4679 echo $ac_n "checking for sin""... $ac_c" 1>&6
4680 echo "configure:4681: checking for sin" >&5
4682 cat > conftest.$ac_ext <<EOF
4683 #line 4684 "configure"
4684 #include "confdefs.h"
4685 /* System header to define __stub macros and hopefully few prototypes,
4686 which can conflict with char sin(); below. */
4688 /* Override any gcc2 internal prototype to avoid an error. */
4689 /* We use char because int might match the return type of a gcc2
4690 builtin and then its argument prototype would still apply. */
4695 /* The GNU C library defines this for functions which it implements
4696 to always fail with ENOSYS. Some functions are actually named
4697 something starting with __ and the normal name is an alias. */
4698 #if defined (__stub_sin) || defined (__stub___sin)
4706 if { (eval echo configure:4707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4708 eval "ac_cv_func_sin=yes"
4710 echo "configure: failed program was:" >&5
4711 cat conftest.$ac_ext >&5
4713 eval "ac_cv_func_sin=no"
4717 if eval "test \"`echo '$ac_cv_func_'sin`\" = yes"; then
4718 echo "$ac_t""yes" 1>&6
4721 echo "$ac_t""no" 1>&6
4723 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
4724 echo "configure:4725: checking for sin in -lm" >&5
4725 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
4727 xe_check_libs=" -lm "
4728 cat > conftest.$ac_ext <<EOF
4729 #line 4730 "configure"
4730 #include "confdefs.h"
4731 /* Override any gcc2 internal prototype to avoid an error. */
4732 /* We use char because int might match the return type of a gcc2
4733 builtin and then its argument prototype would still apply. */
4740 if { (eval echo configure:4741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4742 eval "ac_cv_lib_$ac_lib_var=yes"
4744 echo "configure: failed program was:" >&5
4745 cat conftest.$ac_ext >&5
4747 eval "ac_cv_lib_$ac_lib_var=no"
4752 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4753 echo "$ac_t""yes" 1>&6
4754 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/^a-zA-Z0-9_/_/g' \
4755 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4756 { test "$extra_verbose" = "yes" && cat << EOF
4759 cat >> confdefs.h <<EOF
4760 #define $ac_tr_lib 1
4764 LIBS="-lm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lm\" to \$LIBS"; fi
4767 echo "$ac_t""no" 1>&6
4774 { test "$extra_verbose" = "yes" && cat << \EOF
4775 Defining LISP_FLOAT_TYPE
4777 cat >> confdefs.h <<\EOF
4778 #define LISP_FLOAT_TYPE 1
4783 cat > conftest.$ac_ext <<EOF
4784 #line 4785 "configure"
4785 #include "confdefs.h"
4788 return atanh(1.0) + asinh(1.0) + acosh(1.0);
4791 if { (eval echo configure:4792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4793 { test "$extra_verbose" = "yes" && cat << \EOF
4794 Defining HAVE_INVERSE_HYPERBOLIC
4796 cat >> confdefs.h <<\EOF
4797 #define HAVE_INVERSE_HYPERBOLIC 1
4802 echo "configure: failed program was:" >&5
4803 cat conftest.$ac_ext >&5
4807 echo "checking type of mail spool file locking" 1>&6
4808 echo "configure:4809: checking type of mail spool file locking" >&5
4809 for ac_func in lockf flock
4811 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4812 echo "configure:4813: checking for $ac_func" >&5
4814 cat > conftest.$ac_ext <<EOF
4815 #line 4816 "configure"
4816 #include "confdefs.h"
4817 /* System header to define __stub macros and hopefully few prototypes,
4818 which can conflict with char $ac_func(); below. */
4820 /* Override any gcc2 internal prototype to avoid an error. */
4821 /* We use char because int might match the return type of a gcc2
4822 builtin and then its argument prototype would still apply. */
4827 /* The GNU C library defines this for functions which it implements
4828 to always fail with ENOSYS. Some functions are actually named
4829 something starting with __ and the normal name is an alias. */
4830 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4838 if { (eval echo configure:4839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4840 eval "ac_cv_func_$ac_func=yes"
4842 echo "configure: failed program was:" >&5
4843 cat conftest.$ac_ext >&5
4845 eval "ac_cv_func_$ac_func=no"
4849 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4850 echo "$ac_t""yes" 1>&6
4851 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4852 { test "$extra_verbose" = "yes" && cat << EOF
4853 Defining $ac_tr_func
4855 cat >> confdefs.h <<EOF
4856 #define $ac_tr_func 1
4861 echo "$ac_t""no" 1>&6
4865 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock
4866 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf
4867 test -z "$mail_locking" -a "$mail_use_locking" = "yes" && mail_locking=locking
4868 if test -z "$mail_locking"; then
4869 case "$opsys" in cygwin* | mingw*)
4874 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF
4875 Defining MAIL_LOCK_LOCKF
4877 cat >> confdefs.h <<\EOF
4878 #define MAIL_LOCK_LOCKF 1
4882 elif test "$mail_locking" = "flock"; then { test "$extra_verbose" = "yes" && cat << \EOF
4883 Defining MAIL_LOCK_FLOCK
4885 cat >> confdefs.h <<\EOF
4886 #define MAIL_LOCK_FLOCK 1
4890 elif test "$mail_locking" = "locking"; then { test "$extra_verbose" = "yes" && cat << \EOF
4891 Defining MAIL_LOCK_LOCKING
4893 cat >> confdefs.h <<\EOF
4894 #define MAIL_LOCK_LOCKING 1
4898 elif test "$mail_locking" = "pop"; then
4901 else mail_locking="dot-locking"; { test "$extra_verbose" = "yes" && cat << \EOF
4902 Defining MAIL_LOCK_DOT
4904 cat >> confdefs.h <<\EOF
4905 #define MAIL_LOCK_DOT 1
4910 test "$mail_locking" = "lockf" -a "$ac_cv_func_lockf" != "yes" && \
4911 { echo "Error:" "lockf mail locking requested but not available." >&2; exit 1; }
4912 test "$mail_locking" = "flock" -a "$ac_cv_func_flock" != "yes" && \
4913 { echo "Error:" "flock mail locking requested but not available." >&2; exit 1; }
4914 test "$mail_locking" = "locking" -a "$ac_cv_func_locking" != "yes" && \
4915 { echo "Error:" "locking mail locking requested but not available." >&2; exit 1; }
4917 case "$opsys" in decosf*)
4919 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
4920 echo "configure:4921: checking for cma_open in -lpthreads" >&5
4921 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
4923 xe_check_libs=" -lpthreads "
4924 cat > conftest.$ac_ext <<EOF
4925 #line 4926 "configure"
4926 #include "confdefs.h"
4927 /* Override any gcc2 internal prototype to avoid an error. */
4928 /* We use char because int might match the return type of a gcc2
4929 builtin and then its argument prototype would still apply. */
4936 if { (eval echo configure:4937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4938 eval "ac_cv_lib_$ac_lib_var=yes"
4940 echo "configure: failed program was:" >&5
4941 cat conftest.$ac_ext >&5
4943 eval "ac_cv_lib_$ac_lib_var=no"
4948 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4949 echo "$ac_t""yes" 1>&6
4950 ac_tr_lib=HAVE_LIB`echo pthreads | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4951 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4952 { test "$extra_verbose" = "yes" && cat << EOF
4955 cat >> confdefs.h <<EOF
4956 #define $ac_tr_lib 1
4960 LIBS="-lpthreads $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpthreads\" to \$LIBS"; fi
4963 echo "$ac_t""no" 1>&6
4967 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \
4968 c_switch_site="$c_switch_site -threads" ;;
4971 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6
4972 echo "configure:4973: checking whether the -xildoff compiler flag is required" >&5
4973 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
4974 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ;
4975 then echo "$ac_t""no" 1>&6;
4976 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
4978 else echo "$ac_t""no" 1>&6
4981 if test "$opsys" = "sol2"; then
4982 if test "$os_release" -ge 56; then
4983 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6
4984 echo "configure:4985: checking for \"-z ignore\" linker flag" >&5
4985 case "`ld -h 2>&1`" in
4986 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6
4987 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;;
4988 *) echo "$ac_t""no" 1>&6 ;;
4994 echo "checking "for specified window system"" 1>&6
4995 echo "configure:4996: checking "for specified window system"" >&5
5001 if test "$with_gnome" != "no"; then
5002 echo $ac_n "checking for GNOME configuration script""... $ac_c" 1>&6
5003 echo "configure:5004: checking for GNOME configuration script" >&5
5004 for possible in gnome-config
5006 possible_version=`${possible} --version 2> /dev/null`
5007 if test "x${possible_version}" != "x"; then
5008 GNOME_CONFIG="${possible}"
5014 echo "$ac_t""${GNOME_CONFIG}" 1>&6
5017 if test "${GNOME_CONFIG}" != "no"; then
5018 GNOME_LIBS=`${GNOME_CONFIG} --libs gnomeui`
5019 GNOME_CFLAGS=`${GNOME_CONFIG} --cflags gnomeui`
5020 { test "$extra_verbose" = "yes" && cat << \EOF
5023 cat >> confdefs.h <<\EOF
5024 #define HAVE_GNOME 1
5028 libs_gtk="$libs_gtk ${GNOME_LIBS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GNOME_LIBS}\" to \$libs_gtk"; fi
5029 c_switch_gtk="$c_switch_gtk ${GNOME_CFLAGS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GNOME_CFLAGS}\" to \$c_switch_gtk"; fi
5032 if test "$with_gtk" != "no";then
5033 echo $ac_n "checking for GTK configuration script""... $ac_c" 1>&6
5034 echo "configure:5035: checking for GTK configuration script" >&5
5035 for possible in gtk12-config gtk14-config gtk-config
5037 possible_version=`${possible} --version 2> /dev/null`
5038 if test "x${possible_version}" != "x"; then
5039 GTK_CONFIG="${possible}"
5041 case "${possible_version}" in
5042 1.0.*) echo "configure: warning: GTK 1.2 is required, please upgrade your version of GTK." 1>&2; with_gtk=no;;
5043 1.3.*) echo "configure: warning: GTK 1.3 is not supported right now" 1>&2; with_gtk=no;;
5048 *) echo "configure: warning: Found unsupported version of GTK: $possible_version" 1>&2;;
5051 echo "$ac_t""${GTK_CONFIG}" 1>&6
5054 if test "${GTK_CONFIG}" != "no"; then
5055 echo $ac_n "checking gtk version""... $ac_c" 1>&6
5056 echo "configure:5057: checking gtk version" >&5
5057 GTK_VERSION=`${GTK_CONFIG} --version`
5058 echo "$ac_t""${GTK_VERSION}" 1>&6
5060 echo $ac_n "checking gtk libs""... $ac_c" 1>&6
5061 echo "configure:5062: checking gtk libs" >&5
5062 GTK_LIBS=`${GTK_CONFIG} --libs`
5063 libs_gtk="$libs_gtk ${GTK_LIBS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GTK_LIBS}\" to \$libs_gtk"; fi
5064 echo "$ac_t""${GTK_LIBS}" 1>&6
5066 echo $ac_n "checking gtk cflags""... $ac_c" 1>&6
5067 echo "configure:5068: checking gtk cflags" >&5
5068 GTK_CFLAGS=`${GTK_CONFIG} --cflags`
5069 c_switch_gtk="$c_switch_gtk ${GTK_CFLAGS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GTK_CFLAGS}\" to \$c_switch_gtk"; fi
5070 echo "$ac_t""${GTK_CFLAGS}" 1>&6
5073 echo $ac_n "checking for main in -lgdk_imlib""... $ac_c" 1>&6
5074 echo "configure:5075: checking for main in -lgdk_imlib" >&5
5075 ac_lib_var=`echo gdk_imlib'_'main | sed 'y%./+-%__p_%'`
5077 xe_check_libs=" -lgdk_imlib "
5078 cat > conftest.$ac_ext <<EOF
5079 #line 5080 "configure"
5080 #include "confdefs.h"
5086 if { (eval echo configure:5087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5088 eval "ac_cv_lib_$ac_lib_var=yes"
5090 echo "configure: failed program was:" >&5
5091 cat conftest.$ac_ext >&5
5093 eval "ac_cv_lib_$ac_lib_var=no"
5098 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5099 echo "$ac_t""yes" 1>&6
5100 libs_gtk="-lgdk_imlib $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgdk_imlib\" to \$libs_gtk"; fi
5102 echo "$ac_t""no" 1>&6
5107 echo $ac_n "checking for Imlib_init in -lImlib""... $ac_c" 1>&6
5108 echo "configure:5109: checking for Imlib_init in -lImlib" >&5
5109 ac_lib_var=`echo Imlib'_'Imlib_init | sed 'y%./+-%__p_%'`
5111 xe_check_libs=" -lImlib "
5112 cat > conftest.$ac_ext <<EOF
5113 #line 5114 "configure"
5114 #include "confdefs.h"
5115 /* Override any gcc2 internal prototype to avoid an error. */
5116 /* We use char because int might match the return type of a gcc2
5117 builtin and then its argument prototype would still apply. */
5124 if { (eval echo configure:5125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5126 eval "ac_cv_lib_$ac_lib_var=yes"
5128 echo "configure: failed program was:" >&5
5129 cat conftest.$ac_ext >&5
5131 eval "ac_cv_lib_$ac_lib_var=no"
5136 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5137 echo "$ac_t""yes" 1>&6
5138 libs_gtk="$libs_gtk -lImlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lImlib\" to \$libs_gtk"; fi
5140 echo "$ac_t""no" 1>&6
5144 for ac_func in gdk_imlib_init
5146 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5147 echo "configure:5148: checking for $ac_func" >&5
5149 cat > conftest.$ac_ext <<EOF
5150 #line 5151 "configure"
5151 #include "confdefs.h"
5152 /* System header to define __stub macros and hopefully few prototypes,
5153 which can conflict with char $ac_func(); below. */
5155 /* Override any gcc2 internal prototype to avoid an error. */
5156 /* We use char because int might match the return type of a gcc2
5157 builtin and then its argument prototype would still apply. */
5162 /* The GNU C library defines this for functions which it implements
5163 to always fail with ENOSYS. Some functions are actually named
5164 something starting with __ and the normal name is an alias. */
5165 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5173 if { (eval echo configure:5174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5175 eval "ac_cv_func_$ac_func=yes"
5177 echo "configure: failed program was:" >&5
5178 cat conftest.$ac_ext >&5
5180 eval "ac_cv_func_$ac_func=no"
5184 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5185 echo "$ac_t""yes" 1>&6
5186 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5187 { test "$extra_verbose" = "yes" && cat << EOF
5188 Defining $ac_tr_func
5190 cat >> confdefs.h <<EOF
5191 #define $ac_tr_func 1
5196 echo "$ac_t""no" 1>&6
5201 { test "$extra_verbose" = "yes" && cat << \EOF
5204 cat >> confdefs.h <<\EOF
5209 { test "$extra_verbose" = "yes" && cat << \EOF
5212 cat >> confdefs.h <<\EOF
5223 test "${with_scrollbars}" != "no" && with_scrollbars=gtk
5224 test "${with_toolbars}" != no && with_toolbars=gtk
5225 test "${with_menubars}" != "no" && with_menubars=gtk
5226 test "${with_dialogs}" != "no" && with_dialogs=gtk
5227 test "${with_widgets}" != "no" && with_widgets=gtk
5229 extra_objs="$extra_objs console-gtk.o device-gtk.o event-gtk.o frame-gtk.o" && if test "$extra_verbose" = "yes"; then
5230 echo " xemacs will be linked with \"console-gtk.o device-gtk.o event-gtk.o frame-gtk.o\""
5232 extra_objs="$extra_objs objects-gtk.o redisplay-gtk.o glyphs-gtk.o" && if test "$extra_verbose" = "yes"; then
5233 echo " xemacs will be linked with \"objects-gtk.o redisplay-gtk.o glyphs-gtk.o\""
5235 extra_objs="$extra_objs select-gtk.o gccache-gtk.o" && if test "$extra_verbose" = "yes"; then
5236 echo " xemacs will be linked with \"select-gtk.o gccache-gtk.o\""
5238 extra_objs="$extra_objs gtk-xemacs.o ui-gtk.o" && if test "$extra_verbose" = "yes"; then
5239 echo " xemacs will be linked with \"gtk-xemacs.o ui-gtk.o\""
5242 OLD_CFLAGS="${CFLAGS}"
5243 OLD_LDFLAGS="${LDFLAGS}"
5244 CFLAGS="${GTK_CFLAGS} ${CFLAGS}"
5245 LDFLAGS="${LDFLAGS} ${GTK_LIBS}"
5246 for ac_hdr in glade/glade.h glade.h
5248 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5249 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5250 echo "configure:5251: checking for $ac_hdr" >&5
5252 cat > conftest.$ac_ext <<EOF
5253 #line 5254 "configure"
5254 #include "confdefs.h"
5257 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5258 { (eval echo configure:5259: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5259 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5260 if test -z "$ac_err"; then
5262 eval "ac_cv_header_$ac_safe=yes"
5265 echo "configure: failed program was:" >&5
5266 cat conftest.$ac_ext >&5
5268 eval "ac_cv_header_$ac_safe=no"
5271 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5272 echo "$ac_t""yes" 1>&6
5273 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5274 { test "$extra_verbose" = "yes" && cat << EOF
5277 cat >> confdefs.h <<EOF
5278 #define $ac_tr_hdr 1
5283 echo "$ac_t""no" 1>&6
5288 echo $ac_n "checking for main in -lxml""... $ac_c" 1>&6
5289 echo "configure:5290: checking for main in -lxml" >&5
5290 ac_lib_var=`echo xml'_'main | sed 'y%./+-%__p_%'`
5292 xe_check_libs=" -lxml "
5293 cat > conftest.$ac_ext <<EOF
5294 #line 5295 "configure"
5295 #include "confdefs.h"
5301 if { (eval echo configure:5302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5303 eval "ac_cv_lib_$ac_lib_var=yes"
5305 echo "configure: failed program was:" >&5
5306 cat conftest.$ac_ext >&5
5308 eval "ac_cv_lib_$ac_lib_var=no"
5313 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5314 echo "$ac_t""yes" 1>&6
5315 libs_gtk="-lxml $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lxml\" to \$libs_gtk"; fi
5317 echo "$ac_t""no" 1>&6
5322 echo $ac_n "checking for main in -lglade""... $ac_c" 1>&6
5323 echo "configure:5324: checking for main in -lglade" >&5
5324 ac_lib_var=`echo glade'_'main | sed 'y%./+-%__p_%'`
5326 xe_check_libs=" -lglade "
5327 cat > conftest.$ac_ext <<EOF
5328 #line 5329 "configure"
5329 #include "confdefs.h"
5335 if { (eval echo configure:5336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5337 eval "ac_cv_lib_$ac_lib_var=yes"
5339 echo "configure: failed program was:" >&5
5340 cat conftest.$ac_ext >&5
5342 eval "ac_cv_lib_$ac_lib_var=no"
5347 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5348 echo "$ac_t""yes" 1>&6
5349 libs_gtk="-lglade $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lglade\" to \$libs_gtk"; fi
5351 echo "$ac_t""no" 1>&6
5356 echo $ac_n "checking for main in -lglade-gnome""... $ac_c" 1>&6
5357 echo "configure:5358: checking for main in -lglade-gnome" >&5
5358 ac_lib_var=`echo glade-gnome'_'main | sed 'y%./+-%__p_%'`
5360 xe_check_libs=" -lglade-gnome "
5361 cat > conftest.$ac_ext <<EOF
5362 #line 5363 "configure"
5363 #include "confdefs.h"
5369 if { (eval echo configure:5370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5371 eval "ac_cv_lib_$ac_lib_var=yes"
5373 echo "configure: failed program was:" >&5
5374 cat conftest.$ac_ext >&5
5376 eval "ac_cv_lib_$ac_lib_var=no"
5381 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5382 echo "$ac_t""yes" 1>&6
5383 libs_gtk="-lglade-gnome $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lglade-gnome\" to \$libs_gtk"; fi
5385 echo "$ac_t""no" 1>&6
5389 cat > conftest.$ac_ext <<EOF
5390 #line 5391 "configure"
5391 #include "confdefs.h"
5392 #include <glade/glade-xml.h>
5394 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5395 egrep "char \*txtdomain;" >/dev/null 2>&1; then
5397 echo "$ac_t""yes" 1>&6
5398 { test "$extra_verbose" = "yes" && cat << \EOF
5399 Defining LIBGLADE_XML_TXTDOMAIN = 1
5401 cat >> confdefs.h <<\EOF
5402 #define LIBGLADE_XML_TXTDOMAIN 1
5408 echo "$ac_t""no" 1>&6
5412 CFLAGS="${OLD_CFLAGS}"
5413 LDFLAGS="${OLD_LDFLAGS}"
5417 if test "$with_x11" != "no"; then
5418 test "$x_includes $x_libraries" != "NONE NONE" && \
5419 window_system=x11 with_x11=yes
5422 if test "$x_includes $x_libraries" = "NONE NONE" \
5423 -a -n "$OPENWINHOME" \
5424 -a "$OPENWINHOME" != "/usr/openwin" \
5425 -a -d "$OPENWINHOME"; then
5426 test -d "$OPENWINHOME/lib" && x_libraries="$OPENWINHOME/lib"
5427 test -d "$OPENWINHOME/include" && x_includes="$OPENWINHOME/include"
5428 test -d "$OPENWINHOME/share/include" && x_includes="$OPENWINHOME/share/include"
5431 if test "$x_includes" = "NONE"; then
5432 for dir in "/usr/X11" "/usr/X11R6"; do
5433 if test -d "$dir/include/X11"; then x_includes="$dir/include"; break; fi
5437 if test "$x_libraries" = "NONE"; then
5438 for dir in "/usr/X11/lib" "/usr/X11R6/lib" "/usr/lib/X11R6"; do
5439 if test -r "$dir/libX11.a"; then x_libraries="$dir"; break; fi
5443 # If we find X, set shell vars x_includes and x_libraries to the
5444 # paths, otherwise set no_x=yes.
5445 # Uses ac_ vars as temps to allow command line to override cache and checks.
5446 # --without-x overrides everything else, but does not touch the cache.
5447 echo $ac_n "checking for X""... $ac_c" 1>&6
5448 echo "configure:5449: checking for X" >&5
5450 # Check whether --with-x or --without-x was given.
5451 if test "${with_x+set}" = set; then
5456 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5457 if test "x$with_x" = xno; then
5458 # The user explicitly disabled X.
5461 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
5462 # Both variables are already set.
5466 # One or both of the vars are not set, and there is no cached value.
5467 ac_x_includes=NO ac_x_libraries=NO
5469 if mkdir conftestdir; then
5471 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5472 cat > Imakefile <<'EOF'
5474 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5476 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5477 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5478 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5479 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5480 for ac_extension in a so sl; do
5481 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
5482 test -f $ac_im_libdir/libX11.$ac_extension; then
5483 ac_im_usrlibdir=$ac_im_libdir; break
5486 # Screen out bogus values from the imake configuration. They are
5487 # bogus both because they are the default anyway, and because
5488 # using them would break gcc on systems where it needs fixed includes.
5489 case "$ac_im_incroot" in
5491 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
5493 case "$ac_im_usrlibdir" in
5495 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
5502 if test "$ac_x_includes" = NO; then
5503 # Guess where to find include files, by looking for this one X11 .h file.
5504 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
5506 # First, try using that file with no special directory specified.
5507 cat > conftest.$ac_ext <<EOF
5508 #line 5509 "configure"
5509 #include "confdefs.h"
5510 #include <$x_direct_test_include>
5512 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5513 { (eval echo configure:5514: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5514 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5515 if test -z "$ac_err"; then
5517 # We can compile using X headers with no special include directory.
5521 echo "configure: failed program was:" >&5
5522 cat conftest.$ac_ext >&5
5524 # Look for the header file in a standard set of common directories.
5525 # Check X11 before X11Rn because it is often a symlink to the current release.
5528 /usr/X11R6/include \
5529 /usr/X11R5/include \
5530 /usr/X11R4/include \
5533 /usr/include/X11R6 \
5534 /usr/include/X11R5 \
5535 /usr/include/X11R4 \
5537 /usr/local/X11/include \
5538 /usr/local/X11R6/include \
5539 /usr/local/X11R5/include \
5540 /usr/local/X11R4/include \
5542 /usr/local/include/X11 \
5543 /usr/local/include/X11R6 \
5544 /usr/local/include/X11R5 \
5545 /usr/local/include/X11R4 \
5549 /usr/XFree86/include/X11 \
5552 /usr/local/include \
5553 /usr/unsupported/include \
5554 /usr/athena/include \
5555 /usr/local/x11r5/include \
5556 /usr/lpp/Xamples/include \
5558 /usr/openwin/include \
5559 /usr/openwin/share/include \
5562 if test -r "$ac_dir/$x_direct_test_include"; then
5563 ac_x_includes=$ac_dir
5569 fi # $ac_x_includes = NO
5571 if test "$ac_x_libraries" = NO; then
5572 # Check for the libraries.
5574 test -z "$x_direct_test_library" && x_direct_test_library=Xt
5575 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
5577 # See if we find them without any special options.
5578 # Don't add to $LIBS permanently.
5579 ac_save_LIBS="$LIBS"
5580 LIBS="-l$x_direct_test_library $LIBS"
5581 cat > conftest.$ac_ext <<EOF
5582 #line 5583 "configure"
5583 #include "confdefs.h"
5586 ${x_direct_test_function}()
5589 if { (eval echo configure:5590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5591 LIBS="$ac_save_LIBS"
5592 # We can link X programs with no special library path.
5595 echo "configure: failed program was:" >&5
5596 cat conftest.$ac_ext >&5
5598 LIBS="$ac_save_LIBS"
5599 # First see if replacing the include by lib works.
5600 # Check X11 before X11Rn because it is often a symlink to the current release.
5601 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
5612 /usr/local/X11/lib \
5613 /usr/local/X11R6/lib \
5614 /usr/local/X11R5/lib \
5615 /usr/local/X11R4/lib \
5617 /usr/local/lib/X11 \
5618 /usr/local/lib/X11R6 \
5619 /usr/local/lib/X11R5 \
5620 /usr/local/lib/X11R4 \
5624 /usr/XFree86/lib/X11 \
5628 /usr/unsupported/lib \
5630 /usr/local/x11r5/lib \
5631 /usr/lpp/Xamples/lib \
5635 /usr/openwin/share/lib \
5638 for ac_extension in a so sl; do
5639 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
5640 ac_x_libraries=$ac_dir
5647 fi # $ac_x_libraries = NO
5649 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
5650 # Didn't find X anywhere. Cache the known absence of X.
5651 ac_cv_have_x="have_x=no"
5653 # Record where we found X for the cache.
5654 ac_cv_have_x="have_x=yes \
5655 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5658 eval "$ac_cv_have_x"
5661 if test "$have_x" != yes; then
5662 echo "$ac_t""$have_x" 1>&6
5665 # If each of the values was on the command line, it overrides each guess.
5666 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5667 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5668 # Update the cache value to reflect the command line values.
5669 ac_cv_have_x="have_x=yes \
5670 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5671 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
5674 if test "$no_x" = yes; then
5675 # Not all programs may use this symbol, but it does not hurt to define it.
5676 { test "$extra_verbose" = "yes" && cat << \EOF
5677 Defining X_DISPLAY_MISSING
5679 cat >> confdefs.h <<\EOF
5680 #define X_DISPLAY_MISSING 1
5684 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5686 if test -n "$x_includes"; then
5687 X_CFLAGS="$X_CFLAGS -I$x_includes"
5690 # It would also be nice to do this for all -L options, not just this one.
5691 if test -n "$x_libraries"; then
5692 X_LIBS="$X_LIBS -L$x_libraries"
5693 # For Solaris; some versions of Sun CC require a space after -R and
5694 # others require no space. Words are not sufficient . . . .
5695 case "`(uname -sr) 2>/dev/null`" in
5697 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
5698 echo "configure:5699: checking whether -R must be followed by a space" >&5
5699 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
5700 cat > conftest.$ac_ext <<EOF
5701 #line 5702 "configure"
5702 #include "confdefs.h"
5708 if { (eval echo configure:5709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5712 echo "configure: failed program was:" >&5
5713 cat conftest.$ac_ext >&5
5718 if test $ac_R_nospace = yes; then
5719 echo "$ac_t""no" 1>&6
5720 X_LIBS="$X_LIBS -R$x_libraries"
5722 LIBS="$ac_xsave_LIBS -R $x_libraries"
5723 cat > conftest.$ac_ext <<EOF
5724 #line 5725 "configure"
5725 #include "confdefs.h"
5731 if { (eval echo configure:5732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5735 echo "configure: failed program was:" >&5
5736 cat conftest.$ac_ext >&5
5741 if test $ac_R_space = yes; then
5742 echo "$ac_t""yes" 1>&6
5743 X_LIBS="$X_LIBS -R $x_libraries"
5745 echo "$ac_t""neither works" 1>&6
5748 LIBS="$ac_xsave_LIBS"
5752 # Check for system-dependent libraries X programs must link with.
5753 # Do this before checking for the system-independent R6 libraries
5754 # (-lICE), since we may need -lsocket or whatever for X linking.
5756 if test "$ISC" = yes; then
5757 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5759 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
5760 # libraries were built with DECnet support. And karl@cs.umb.edu says
5761 # the Alpha needs dnet_stub (dnet does not exist).
5762 if test "$with_dnet" = "no" ; then
5763 ac_cv_lib_dnet_dnet_ntoa=no
5766 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
5767 echo "configure:5768: checking for dnet_ntoa in -ldnet" >&5
5768 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5770 xe_check_libs=" -ldnet "
5771 cat > conftest.$ac_ext <<EOF
5772 #line 5773 "configure"
5773 #include "confdefs.h"
5774 /* Override any gcc2 internal prototype to avoid an error. */
5775 /* We use char because int might match the return type of a gcc2
5776 builtin and then its argument prototype would still apply. */
5783 if { (eval echo configure:5784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5785 eval "ac_cv_lib_$ac_lib_var=yes"
5787 echo "configure: failed program was:" >&5
5788 cat conftest.$ac_ext >&5
5790 eval "ac_cv_lib_$ac_lib_var=no"
5795 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5796 echo "$ac_t""yes" 1>&6
5797 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5799 echo "$ac_t""no" 1>&6
5804 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5806 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
5807 echo "configure:5808: checking for dnet_ntoa in -ldnet_stub" >&5
5808 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5810 xe_check_libs=" -ldnet_stub "
5811 cat > conftest.$ac_ext <<EOF
5812 #line 5813 "configure"
5813 #include "confdefs.h"
5814 /* Override any gcc2 internal prototype to avoid an error. */
5815 /* We use char because int might match the return type of a gcc2
5816 builtin and then its argument prototype would still apply. */
5823 if { (eval echo configure:5824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5825 eval "ac_cv_lib_$ac_lib_var=yes"
5827 echo "configure: failed program was:" >&5
5828 cat conftest.$ac_ext >&5
5830 eval "ac_cv_lib_$ac_lib_var=no"
5835 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5836 echo "$ac_t""yes" 1>&6
5837 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5839 echo "$ac_t""no" 1>&6
5845 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5846 # to get the SysV transport functions.
5847 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
5849 # The nsl library prevents programs from opening the X display
5850 # on Irix 5.2, according to dickey@clark.net.
5851 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
5852 echo "configure:5853: checking for gethostbyname" >&5
5854 cat > conftest.$ac_ext <<EOF
5855 #line 5856 "configure"
5856 #include "confdefs.h"
5857 /* System header to define __stub macros and hopefully few prototypes,
5858 which can conflict with char gethostbyname(); below. */
5860 /* Override any gcc2 internal prototype to avoid an error. */
5861 /* We use char because int might match the return type of a gcc2
5862 builtin and then its argument prototype would still apply. */
5863 char gethostbyname();
5867 /* The GNU C library defines this for functions which it implements
5868 to always fail with ENOSYS. Some functions are actually named
5869 something starting with __ and the normal name is an alias. */
5870 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5878 if { (eval echo configure:5879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5880 eval "ac_cv_func_gethostbyname=yes"
5882 echo "configure: failed program was:" >&5
5883 cat conftest.$ac_ext >&5
5885 eval "ac_cv_func_gethostbyname=no"
5889 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
5890 echo "$ac_t""yes" 1>&6
5893 echo "$ac_t""no" 1>&6
5896 if test $ac_cv_func_gethostbyname = no; then
5898 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
5899 echo "configure:5900: checking for gethostbyname in -lnsl" >&5
5900 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
5902 xe_check_libs=" -lnsl "
5903 cat > conftest.$ac_ext <<EOF
5904 #line 5905 "configure"
5905 #include "confdefs.h"
5906 /* Override any gcc2 internal prototype to avoid an error. */
5907 /* We use char because int might match the return type of a gcc2
5908 builtin and then its argument prototype would still apply. */
5909 char gethostbyname();
5915 if { (eval echo configure:5916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5917 eval "ac_cv_lib_$ac_lib_var=yes"
5919 echo "configure: failed program was:" >&5
5920 cat conftest.$ac_ext >&5
5922 eval "ac_cv_lib_$ac_lib_var=no"
5927 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5928 echo "$ac_t""yes" 1>&6
5929 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5931 echo "$ac_t""no" 1>&6
5937 # lieder@skyler.mavd.honeywell.com says without -lsocket,
5938 # socket/setsockopt and other routines are undefined under SCO ODT
5939 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5940 # on later versions), says simon@lia.di.epfl.ch: it contains
5941 # gethostby* variants that don't use the nameserver (or something).
5942 # -lsocket must be given before -lnsl if both are needed.
5943 # We assume that if connect needs -lnsl, so does gethostbyname.
5944 echo $ac_n "checking for connect""... $ac_c" 1>&6
5945 echo "configure:5946: checking for connect" >&5
5947 cat > conftest.$ac_ext <<EOF
5948 #line 5949 "configure"
5949 #include "confdefs.h"
5950 /* System header to define __stub macros and hopefully few prototypes,
5951 which can conflict with char connect(); below. */
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. */
5960 /* The GNU C library defines this for functions which it implements
5961 to always fail with ENOSYS. Some functions are actually named
5962 something starting with __ and the normal name is an alias. */
5963 #if defined (__stub_connect) || defined (__stub___connect)
5971 if { (eval echo configure:5972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5973 eval "ac_cv_func_connect=yes"
5975 echo "configure: failed program was:" >&5
5976 cat conftest.$ac_ext >&5
5978 eval "ac_cv_func_connect=no"
5982 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
5983 echo "$ac_t""yes" 1>&6
5986 echo "$ac_t""no" 1>&6
5989 if test $ac_cv_func_connect = no; then
5991 xe_msg_checking="for connect in -lsocket"
5992 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
5993 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5994 echo "configure:5995: checking "$xe_msg_checking"" >&5
5995 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
5997 xe_check_libs=" -lsocket $X_EXTRA_LIBS"
5998 cat > conftest.$ac_ext <<EOF
5999 #line 6000 "configure"
6000 #include "confdefs.h"
6001 /* Override any gcc2 internal prototype to avoid an error. */
6002 /* We use char because int might match the return type of a gcc2
6003 builtin and then its argument prototype would still apply. */
6010 if { (eval echo configure:6011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6012 eval "ac_cv_lib_$ac_lib_var=yes"
6014 echo "configure: failed program was:" >&5
6015 cat conftest.$ac_ext >&5
6017 eval "ac_cv_lib_$ac_lib_var=no"
6022 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6023 echo "$ac_t""yes" 1>&6
6024 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6026 echo "$ac_t""no" 1>&6
6032 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
6033 echo $ac_n "checking for remove""... $ac_c" 1>&6
6034 echo "configure:6035: checking for remove" >&5
6036 cat > conftest.$ac_ext <<EOF
6037 #line 6038 "configure"
6038 #include "confdefs.h"
6039 /* System header to define __stub macros and hopefully few prototypes,
6040 which can conflict with char remove(); below. */
6042 /* Override any gcc2 internal prototype to avoid an error. */
6043 /* We use char because int might match the return type of a gcc2
6044 builtin and then its argument prototype would still apply. */
6049 /* The GNU C library defines this for functions which it implements
6050 to always fail with ENOSYS. Some functions are actually named
6051 something starting with __ and the normal name is an alias. */
6052 #if defined (__stub_remove) || defined (__stub___remove)
6060 if { (eval echo configure:6061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6062 eval "ac_cv_func_remove=yes"
6064 echo "configure: failed program was:" >&5
6065 cat conftest.$ac_ext >&5
6067 eval "ac_cv_func_remove=no"
6071 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
6072 echo "$ac_t""yes" 1>&6
6075 echo "$ac_t""no" 1>&6
6078 if test $ac_cv_func_remove = no; then
6080 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
6081 echo "configure:6082: checking for remove in -lposix" >&5
6082 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
6084 xe_check_libs=" -lposix "
6085 cat > conftest.$ac_ext <<EOF
6086 #line 6087 "configure"
6087 #include "confdefs.h"
6088 /* Override any gcc2 internal prototype to avoid an error. */
6089 /* We use char because int might match the return type of a gcc2
6090 builtin and then its argument prototype would still apply. */
6097 if { (eval echo configure:6098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6099 eval "ac_cv_lib_$ac_lib_var=yes"
6101 echo "configure: failed program was:" >&5
6102 cat conftest.$ac_ext >&5
6104 eval "ac_cv_lib_$ac_lib_var=no"
6109 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6110 echo "$ac_t""yes" 1>&6
6111 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6113 echo "$ac_t""no" 1>&6
6119 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6120 echo $ac_n "checking for shmat""... $ac_c" 1>&6
6121 echo "configure:6122: checking for shmat" >&5
6123 cat > conftest.$ac_ext <<EOF
6124 #line 6125 "configure"
6125 #include "confdefs.h"
6126 /* System header to define __stub macros and hopefully few prototypes,
6127 which can conflict with char shmat(); below. */
6129 /* Override any gcc2 internal prototype to avoid an error. */
6130 /* We use char because int might match the return type of a gcc2
6131 builtin and then its argument prototype would still apply. */
6136 /* The GNU C library defines this for functions which it implements
6137 to always fail with ENOSYS. Some functions are actually named
6138 something starting with __ and the normal name is an alias. */
6139 #if defined (__stub_shmat) || defined (__stub___shmat)
6147 if { (eval echo configure:6148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6149 eval "ac_cv_func_shmat=yes"
6151 echo "configure: failed program was:" >&5
6152 cat conftest.$ac_ext >&5
6154 eval "ac_cv_func_shmat=no"
6158 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
6159 echo "$ac_t""yes" 1>&6
6162 echo "$ac_t""no" 1>&6
6165 if test $ac_cv_func_shmat = no; then
6167 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
6168 echo "configure:6169: checking for shmat in -lipc" >&5
6169 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
6171 xe_check_libs=" -lipc "
6172 cat > conftest.$ac_ext <<EOF
6173 #line 6174 "configure"
6174 #include "confdefs.h"
6175 /* Override any gcc2 internal prototype to avoid an error. */
6176 /* We use char because int might match the return type of a gcc2
6177 builtin and then its argument prototype would still apply. */
6184 if { (eval echo configure:6185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6186 eval "ac_cv_lib_$ac_lib_var=yes"
6188 echo "configure: failed program was:" >&5
6189 cat conftest.$ac_ext >&5
6191 eval "ac_cv_lib_$ac_lib_var=no"
6196 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6197 echo "$ac_t""yes" 1>&6
6198 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6200 echo "$ac_t""no" 1>&6
6207 # Check for libraries that X11R6 Xt/Xaw programs need.
6208 ac_save_LDFLAGS="$LDFLAGS"
6209 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6210 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6211 # check for ICE first), but we must link in the order -lSM -lICE or
6212 # we get undefined symbols. So assume we have SM if we have ICE.
6213 # These have to be linked with before -lX11, unlike the other
6214 # libraries we check for below, so use a different variable.
6215 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
6217 xe_msg_checking="for IceConnectionNumber in -lICE"
6218 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
6219 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6220 echo "configure:6221: checking "$xe_msg_checking"" >&5
6221 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
6223 xe_check_libs=" -lICE $X_EXTRA_LIBS"
6224 cat > conftest.$ac_ext <<EOF
6225 #line 6226 "configure"
6226 #include "confdefs.h"
6227 /* Override any gcc2 internal prototype to avoid an error. */
6228 /* We use char because int might match the return type of a gcc2
6229 builtin and then its argument prototype would still apply. */
6230 char IceConnectionNumber();
6233 IceConnectionNumber()
6236 if { (eval echo configure:6237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6238 eval "ac_cv_lib_$ac_lib_var=yes"
6240 echo "configure: failed program was:" >&5
6241 cat conftest.$ac_ext >&5
6243 eval "ac_cv_lib_$ac_lib_var=no"
6248 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6249 echo "$ac_t""yes" 1>&6
6250 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6252 echo "$ac_t""no" 1>&6
6256 LDFLAGS="$ac_save_LDFLAGS"
6259 # Autoconf claims to find X library and include dirs for us.
6260 if test "$no_x" = "yes"
6261 then with_x11=no window_system=none HAVE_X_WINDOWS=no
6262 else with_x11=yes window_system=x11 HAVE_X_WINDOWS=yes
6267 if test "$with_x11" = "yes"; then
6268 { test "$extra_verbose" = "yes" && cat << \EOF
6269 Defining HAVE_X_WINDOWS
6271 cat >> confdefs.h <<\EOF
6272 #define HAVE_X_WINDOWS 1
6276 MAKE_SUBDIR="$MAKE_SUBDIR lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$MAKE_SUBDIR"; fi
6277 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$SRC_SUBDIR_DEPS"; fi
6279 for lib_dir in "/usr/dt/lib" "/usr/lib/Motif2.1" "/usr/lib/Motif1.2" "/usr/lib/Motif1.1"; do
6280 inc_dir=`echo $lib_dir | sed -e 's/lib/include/'`
6281 if test -d "$lib_dir" -a -d "$inc_dir"; then
6282 case "$x_libraries" in *"$lib_dir"* ) ;; *)
6283 x_libraries="$lib_dir $x_libraries"
6284 X_LIBS="-L${lib_dir} $X_LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-L${lib_dir}\" to \$X_LIBS"; fi ;;
6286 case "$x_includes" in "$inc_dir"* ) ;; *)
6287 x_includes="$inc_dir $x_includes"
6288 X_CFLAGS="-I${inc_dir} $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-I${inc_dir}\" to \$X_CFLAGS"; fi ;;
6293 for rel in "X11R6" "X11R5" "X11R4"; do
6294 lib_dir="/usr/contrib/$rel/lib" inc_dir="/usr/contrib/$rel/include"
6295 if test -d "$lib_dir" -a -d "$inc_dir"; then
6296 case "$x_libraries" in *"$lib_dir"* ) ;; *)
6297 x_libraries="$x_libraries $lib_dir"
6298 X_LIBS="$X_LIBS -L${lib_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L${lib_dir}\" to \$X_LIBS"; fi
6300 case "$x_includes" in "$inc_dir"* ) ;; *)
6301 x_includes="$x_includes $inc_dir"
6302 X_CFLAGS="$X_CFLAGS -I${inc_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-I${inc_dir}\" to \$X_CFLAGS"; fi
6308 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 ;;
6311 ld_switch_x_site="$X_LIBS"
6314 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
6315 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
6316 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
6318 runpath="" runpath_dirs=""
6319 if test -n "$LD_RUN_PATH"; then
6320 runpath="$LD_RUN_PATH"
6321 elif test "$GCC" = "yes"; then
6322 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
6323 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
6324 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
6325 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
6326 case "$arg" in P,* | -L* | -R* )
6327 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
6329 xe_runpath_dir="$dir"
6330 test "$xe_runpath_dir" != "/lib" -a \
6331 "$xe_runpath_dir" != "/usr/lib" -a \
6332 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
6333 eval "$xe_add_unique_runpath_dir"
6338 ld_switch_run="$ld_switch_run_save"
6341 for arg in $ld_switch_site $ld_switch_x_site; do
6342 case "$arg" in -L*) {
6343 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
6344 test "$xe_runpath_dir" != "/lib" -a \
6345 "$xe_runpath_dir" != "/usr/lib" -a \
6346 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
6347 eval "$xe_add_unique_runpath_dir"
6350 if test "$opsys $need_motif" = "sol2 yes"; then
6351 xe_runpath_dir="/opt/SUNWdt/lib";
6352 eval "$xe_add_unique_runpath_dir";
6355 if test -n "$runpath"; then
6356 ld_switch_run="${dash_r}${runpath}"
6358 if test "$GCC" = "yes"; then
6359 set x $ld_switch_run; shift; ld_switch_run=""
6360 while test -n "$1"; do
6362 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
6363 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
6365 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
6370 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
6375 if test "$extra_verbose" = "yes"; then
6376 echo; echo "X11 compilation variables:"
6377 for var in x_libraries x_includes X_CFLAGS X_LIBS X_PRE_LIBS X_EXTRA_LIBS; do eval "echo \"$var = '\$$var'\""; done
6382 if test "$x_includes" != NONE; then
6383 for i in $x_includes; do
6384 if test -d "$i/bitmaps"; then
6385 bitmapdirs="$i/bitmaps:$bitmapdirs"
6387 if test -d "$i/X11/bitmaps"; then
6388 bitmapdirs="$i/X11/bitmaps:$bitmapdirs"
6391 bitmapdirs=`echo "$bitmapdirs" | sed s/.$//`
6393 test ! -z "$bitmapdirs" && { test "$extra_verbose" = "yes" && cat << EOF
6394 Defining BITMAPDIR = "$bitmapdirs"
6396 cat >> confdefs.h <<EOF
6397 #define BITMAPDIR "$bitmapdirs"
6402 echo "checking for X defines extracted by xmkmf" 1>&6
6403 echo "configure:6404: checking for X defines extracted by xmkmf" >&5
6405 if mkdir conftestdir; then
6407 cat > Imakefile <<'EOF'
6409 @echo ${PROTO_DEFINES} ${STD_DEFINES}
6411 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6412 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6413 xmkmf_defines=`${MAKE-make} xetest 2>/dev/null | grep -v make`
6417 for word in $xmkmf_defines; do
6418 case "$word" in -D* )
6419 sym=`echo '' $word | sed -e 's:^ *-D::' -e 's:=.*::'`
6421 -D*=* ) val=`echo '' $word | sed -e 's:^.*=::'` ;;
6424 if grep "^#define $sym " confdefs.h >/dev/null; then :; else
6425 if test "$val" = "1"
6426 then { test "$extra_verbose" = "yes" && cat << EOF
6429 cat >> confdefs.h <<EOF
6434 else { test "$extra_verbose" = "yes" && cat << EOF
6435 Defining $sym = $val
6437 cat >> confdefs.h <<EOF
6448 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
6449 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
6450 echo "configure:6451: checking for X11/Intrinsic.h" >&5
6452 cat > conftest.$ac_ext <<EOF
6453 #line 6454 "configure"
6454 #include "confdefs.h"
6455 #include <X11/Intrinsic.h>
6457 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6458 { (eval echo configure:6459: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6459 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6460 if test -z "$ac_err"; then
6462 eval "ac_cv_header_$ac_safe=yes"
6465 echo "configure: failed program was:" >&5
6466 cat conftest.$ac_ext >&5
6468 eval "ac_cv_header_$ac_safe=no"
6471 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6472 echo "$ac_t""yes" 1>&6
6475 echo "$ac_t""no" 1>&6
6476 { echo "configure: error: "Unable to find X11 header files."" 1>&2; exit 1; }
6481 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
6482 echo "configure:6483: checking for XOpenDisplay in -lX11" >&5
6483 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
6485 xe_check_libs=" -lX11 "
6486 cat > conftest.$ac_ext <<EOF
6487 #line 6488 "configure"
6488 #include "confdefs.h"
6489 /* Override any gcc2 internal prototype to avoid an error. */
6490 /* We use char because int might match the return type of a gcc2
6491 builtin and then its argument prototype would still apply. */
6492 char XOpenDisplay();
6498 if { (eval echo configure:6499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6500 eval "ac_cv_lib_$ac_lib_var=yes"
6502 echo "configure: failed program was:" >&5
6503 cat conftest.$ac_ext >&5
6505 eval "ac_cv_lib_$ac_lib_var=no"
6510 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6511 echo "$ac_t""yes" 1>&6
6514 echo "$ac_t""no" 1>&6
6518 if test "$have_lib_x11" != "yes"; then
6520 xe_msg_checking="for XGetFontProperty in -lX11"
6521 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout"
6522 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6523 echo "configure:6524: checking "$xe_msg_checking"" >&5
6524 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
6526 xe_check_libs=" -lX11 -b i486-linuxaout"
6527 cat > conftest.$ac_ext <<EOF
6528 #line 6529 "configure"
6529 #include "confdefs.h"
6530 /* Override any gcc2 internal prototype to avoid an error. */
6531 /* We use char because int might match the return type of a gcc2
6532 builtin and then its argument prototype would still apply. */
6533 char XGetFontProperty();
6539 if { (eval echo configure:6540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6541 eval "ac_cv_lib_$ac_lib_var=yes"
6543 echo "configure: failed program was:" >&5
6544 cat conftest.$ac_ext >&5
6546 eval "ac_cv_lib_$ac_lib_var=no"
6551 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6552 echo "$ac_t""yes" 1>&6
6553 ld_switch_x_site="-b i486-linuxaout $ld_switch_x_site"
6555 echo "$ac_t""no" 1>&6
6556 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
6562 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
6565 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
6566 echo "configure:6567: checking for XShapeSelectInput in -lXext" >&5
6567 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
6569 xe_check_libs=" -lXext "
6570 cat > conftest.$ac_ext <<EOF
6571 #line 6572 "configure"
6572 #include "confdefs.h"
6573 /* Override any gcc2 internal prototype to avoid an error. */
6574 /* We use char because int might match the return type of a gcc2
6575 builtin and then its argument prototype would still apply. */
6576 char XShapeSelectInput();
6582 if { (eval echo configure:6583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6584 eval "ac_cv_lib_$ac_lib_var=yes"
6586 echo "configure: failed program was:" >&5
6587 cat conftest.$ac_ext >&5
6589 eval "ac_cv_lib_$ac_lib_var=no"
6594 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6595 echo "$ac_t""yes" 1>&6
6596 libs_x="-lXext $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXext\" to \$libs_x"; fi
6598 echo "$ac_t""no" 1>&6
6604 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6
6605 echo "configure:6606: checking for XtOpenDisplay in -lXt" >&5
6606 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
6608 xe_check_libs=" -lXt "
6609 cat > conftest.$ac_ext <<EOF
6610 #line 6611 "configure"
6611 #include "confdefs.h"
6612 /* Override any gcc2 internal prototype to avoid an error. */
6613 /* We use char because int might match the return type of a gcc2
6614 builtin and then its argument prototype would still apply. */
6615 char XtOpenDisplay();
6621 if { (eval echo configure:6622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6623 eval "ac_cv_lib_$ac_lib_var=yes"
6625 echo "configure: failed program was:" >&5
6626 cat conftest.$ac_ext >&5
6628 eval "ac_cv_lib_$ac_lib_var=no"
6633 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6634 echo "$ac_t""yes" 1>&6
6635 libs_x="-lXt $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXt\" to \$libs_x"; fi
6637 echo "$ac_t""no" 1>&6
6638 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
6643 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6
6644 echo "configure:6645: checking the version of X11 being used" >&5
6645 cat > conftest.$ac_ext <<EOF
6646 #line 6647 "configure"
6647 #include "confdefs.h"
6648 #include <X11/Intrinsic.h>
6649 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; }
6651 if { (eval echo configure:6652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6653 ./conftest foobar; x11_release=$?
6656 echo "configure: failed program was:" >&5
6657 cat conftest.$ac_ext >&5
6662 echo "$ac_t""R${x11_release}" 1>&6
6663 { test "$extra_verbose" = "yes" && cat << EOF
6664 Defining THIS_IS_X11R${x11_release}
6666 cat >> confdefs.h <<EOF
6667 #define THIS_IS_X11R${x11_release} 1
6672 if test "${x11_release}" = "4"; then
6673 case "$with_widgets" in
6674 "" | "no") with_widgets=no ;;
6675 *) { echo "Error:" "Widget support requires X11R5 or greater" >&2; exit 1; } ;;
6679 for ac_func in XConvertCase
6681 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6682 echo "configure:6683: checking for $ac_func" >&5
6684 cat > conftest.$ac_ext <<EOF
6685 #line 6686 "configure"
6686 #include "confdefs.h"
6687 /* System header to define __stub macros and hopefully few prototypes,
6688 which can conflict with char $ac_func(); below. */
6690 /* Override any gcc2 internal prototype to avoid an error. */
6691 /* We use char because int might match the return type of a gcc2
6692 builtin and then its argument prototype would still apply. */
6697 /* The GNU C library defines this for functions which it implements
6698 to always fail with ENOSYS. Some functions are actually named
6699 something starting with __ and the normal name is an alias. */
6700 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6708 if { (eval echo configure:6709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6710 eval "ac_cv_func_$ac_func=yes"
6712 echo "configure: failed program was:" >&5
6713 cat conftest.$ac_ext >&5
6715 eval "ac_cv_func_$ac_func=no"
6719 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6720 echo "$ac_t""yes" 1>&6
6721 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6722 { test "$extra_verbose" = "yes" && cat << EOF
6723 Defining $ac_tr_func
6725 cat >> confdefs.h <<EOF
6726 #define $ac_tr_func 1
6731 echo "$ac_t""no" 1>&6
6736 for ac_hdr in X11/Xlocale.h
6738 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6739 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6740 echo "configure:6741: checking for $ac_hdr" >&5
6742 cat > conftest.$ac_ext <<EOF
6743 #line 6744 "configure"
6744 #include "confdefs.h"
6747 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6748 { (eval echo configure:6749: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6749 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6750 if test -z "$ac_err"; then
6752 eval "ac_cv_header_$ac_safe=yes"
6755 echo "configure: failed program was:" >&5
6756 cat conftest.$ac_ext >&5
6758 eval "ac_cv_header_$ac_safe=no"
6761 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6762 echo "$ac_t""yes" 1>&6
6763 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6764 { test "$extra_verbose" = "yes" && cat << EOF
6767 cat >> confdefs.h <<EOF
6768 #define $ac_tr_hdr 1
6773 echo "$ac_t""no" 1>&6
6778 for ac_func in XRegisterIMInstantiateCallback
6780 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6781 echo "configure:6782: checking for $ac_func" >&5
6783 cat > conftest.$ac_ext <<EOF
6784 #line 6785 "configure"
6785 #include "confdefs.h"
6786 /* System header to define __stub macros and hopefully few prototypes,
6787 which can conflict with char $ac_func(); below. */
6789 /* Override any gcc2 internal prototype to avoid an error. */
6790 /* We use char because int might match the return type of a gcc2
6791 builtin and then its argument prototype would still apply. */
6796 /* The GNU C library defines this for functions which it implements
6797 to always fail with ENOSYS. Some functions are actually named
6798 something starting with __ and the normal name is an alias. */
6799 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6807 if { (eval echo configure:6808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6809 eval "ac_cv_func_$ac_func=yes"
6811 echo "configure: failed program was:" >&5
6812 cat conftest.$ac_ext >&5
6814 eval "ac_cv_func_$ac_func=no"
6818 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6819 echo "$ac_t""yes" 1>&6
6820 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6821 { test "$extra_verbose" = "yes" && cat << EOF
6822 Defining $ac_tr_func
6824 cat >> confdefs.h <<EOF
6825 #define $ac_tr_func 1
6830 echo "$ac_t""no" 1>&6
6834 echo $ac_n "checking for standard XRegisterIMInstantiateCallback prototype""... $ac_c" 1>&6
6835 echo "configure:6836: checking for standard XRegisterIMInstantiateCallback prototype" >&5
6836 cat > conftest.$ac_ext <<EOF
6837 #line 6838 "configure"
6838 #include "confdefs.h"
6840 #define NeedFunctionPrototypes 1
6841 #include <X11/Xlib.h>
6842 extern Bool XRegisterIMInstantiateCallback(
6843 Display*, struct _XrmHashBucketRec*, char*, char*, XIMProc, XPointer*);
6849 if { (eval echo configure:6850: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6851 echo "$ac_t""yes" 1>&6
6853 echo "configure: failed program was:" >&5
6854 cat conftest.$ac_ext >&5
6856 echo "$ac_t""no" 1>&6
6857 { test "$extra_verbose" = "yes" && cat << \EOF
6858 Defining XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE
6860 cat >> confdefs.h <<\EOF
6861 #define XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE 1
6868 test -z "$with_xmu" && {
6869 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6
6870 echo "configure:6871: checking for XmuReadBitmapDataFromFile in -lXmu" >&5
6871 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'`
6873 xe_check_libs=" -lXmu "
6874 cat > conftest.$ac_ext <<EOF
6875 #line 6876 "configure"
6876 #include "confdefs.h"
6877 /* Override any gcc2 internal prototype to avoid an error. */
6878 /* We use char because int might match the return type of a gcc2
6879 builtin and then its argument prototype would still apply. */
6880 char XmuReadBitmapDataFromFile();
6883 XmuReadBitmapDataFromFile()
6886 if { (eval echo configure:6887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6888 eval "ac_cv_lib_$ac_lib_var=yes"
6890 echo "configure: failed program was:" >&5
6891 cat conftest.$ac_ext >&5
6893 eval "ac_cv_lib_$ac_lib_var=no"
6898 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6899 echo "$ac_t""yes" 1>&6
6902 echo "$ac_t""no" 1>&6
6907 if test "$with_xmu" = "no"; then
6908 extra_objs="$extra_objs xmu.o" && if test "$extra_verbose" = "yes"; then
6909 echo " xemacs will be linked with \"xmu.o\""
6912 libs_x="-lXmu $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXmu\" to \$libs_x"; fi
6913 { test "$extra_verbose" = "yes" && cat << \EOF
6916 cat >> confdefs.h <<\EOF
6924 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
6925 echo "configure:6926: checking for main in -lXbsd" >&5
6926 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
6928 xe_check_libs=" -lXbsd "
6929 cat > conftest.$ac_ext <<EOF
6930 #line 6931 "configure"
6931 #include "confdefs.h"
6937 if { (eval echo configure:6938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6939 eval "ac_cv_lib_$ac_lib_var=yes"
6941 echo "configure: failed program was:" >&5
6942 cat conftest.$ac_ext >&5
6944 eval "ac_cv_lib_$ac_lib_var=no"
6949 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6950 echo "$ac_t""yes" 1>&6
6951 libs_x="-lXbsd $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXbsd\" to \$libs_x"; fi
6953 echo "$ac_t""no" 1>&6
6958 if test "$unexec" = "unexaix.o" -a "$x11_release" = "6"; then
6959 if test "$GCC" = "yes"; then
6960 X_CFLAGS="-mthreads $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$X_CFLAGS"; fi
6961 libs_x="-mthreads $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$libs_x"; fi
6964 "xlc" ) CC="xlc_r" ;;
6965 "xlC" ) CC="xlC_r" ;;
6972 if test "$with_msw" != "no"; then
6973 echo "checking for MS-Windows" 1>&6
6974 echo "configure:6975: checking for MS-Windows" >&5
6976 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6
6977 echo "configure:6978: checking for main in -lgdi32" >&5
6978 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'`
6980 xe_check_libs=" -lgdi32 "
6981 cat > conftest.$ac_ext <<EOF
6982 #line 6983 "configure"
6983 #include "confdefs.h"
6989 if { (eval echo configure:6990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6991 eval "ac_cv_lib_$ac_lib_var=yes"
6993 echo "configure: failed program was:" >&5
6994 cat conftest.$ac_ext >&5
6996 eval "ac_cv_lib_$ac_lib_var=no"
7001 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7002 echo "$ac_t""yes" 1>&6
7005 echo "$ac_t""no" 1>&6
7009 if test "$with_msw" = "yes"; then
7010 { test "$extra_verbose" = "yes" && cat << \EOF
7011 Defining HAVE_MS_WINDOWS
7013 cat >> confdefs.h <<\EOF
7014 #define HAVE_MS_WINDOWS 1
7019 if test "$with_netinstall" = "yes"; then
7020 MAKE_SUBDIR="$MAKE_SUBDIR netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$MAKE_SUBDIR"; fi
7021 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$SRC_SUBDIR_DEPS"; fi
7022 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
7025 install_pp="$blddir/lib-src/installexe.sh"
7026 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
7027 test "$with_dragndrop" != no && dragndrop_proto="$dragndrop_proto msw" && if test "$extra_verbose" = "yes"; then echo " Appending \"msw\" to \$dragndrop_proto"; fi
7028 if test "$window_system" != x11; then
7030 test "$with_scrollbars" != "no" && with_scrollbars=msw \
7031 && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
7032 echo " xemacs will be linked with \"scrollbar-msw.o\""
7034 test "$with_menubars" != "no" && with_menubars=msw \
7035 && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
7036 echo " xemacs will be linked with \"menubar-msw.o\""
7038 test "$with_toolbars" != "no" && with_toolbars=msw \
7039 && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
7040 echo " xemacs will be linked with \"toolbar-msw.o\""
7042 test "$with_dialogs" != "no" && with_dialogs=msw \
7043 && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
7044 echo " xemacs will be linked with \"dialog-msw.o\""
7046 test "$with_widgets" != "no" && with_widgets=msw
7048 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
7049 echo " xemacs will be linked with \"scrollbar-msw.o\""
7051 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
7052 echo " xemacs will be linked with \"menubar-msw.o\""
7054 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
7055 echo " xemacs will be linked with \"toolbar-msw.o\""
7057 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
7058 echo " xemacs will be linked with \"dialog-msw.o\""
7061 cat > conftest.$ac_ext <<EOF
7062 #line 7063 "configure"
7063 #include "confdefs.h"
7065 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; }
7067 if { (eval echo configure:7068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
7069 { test "$extra_verbose" = "yes" && cat << \EOF
7070 Defining HAVE_MSG_SELECT
7072 cat >> confdefs.h <<\EOF
7073 #define HAVE_MSG_SELECT 1
7079 echo "configure: failed program was:" >&5
7080 cat conftest.$ac_ext >&5
7083 with_file_coding=yes
7084 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
7085 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\""
7092 test -z "$window_system" && window_system="none"
7094 if test "$window_system" = "none"; then
7095 for feature in menubars scrollbars toolbars dialogs dragndrop xface
7097 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
7098 echo "configure: warning: --with-$feature ignored: Not valid without window system support" 1>&2
7100 eval "with_${feature}=no"
7103 test -z "$with_toolbars" && with_toolbars=yes
7106 if test "$with_msw" != "yes"; then
7107 for feature in MARTIN_IS_CLUELESS_ABOUT_MSW_FEATURES
7109 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
7110 echo "configure: warning: --with-$feature ignored: Not valid without MS-Windows support" 1>&2
7112 eval "with_${feature}=no"
7118 if test "$with_x11" != "yes"; then
7119 for feature in tooltalk cde offix wmcommand xim xmu nas_sound
7121 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
7122 echo "configure: warning: --with-$feature ignored: Not valid without X support" 1>&2
7124 eval "with_${feature}=no"
7128 if test "$with_x11" = "yes"; then
7129 ac_safe=`echo "X11/extensions/shape.h" | sed 'y%./+-%__p_%'`
7130 echo $ac_n "checking for X11/extensions/shape.h""... $ac_c" 1>&6
7131 echo "configure:7132: checking for X11/extensions/shape.h" >&5
7133 cat > conftest.$ac_ext <<EOF
7134 #line 7135 "configure"
7135 #include "confdefs.h"
7136 #include <X11/extensions/shape.h>
7138 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7139 { (eval echo configure:7140: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7140 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7141 if test -z "$ac_err"; then
7143 eval "ac_cv_header_$ac_safe=yes"
7146 echo "configure: failed program was:" >&5
7147 cat conftest.$ac_ext >&5
7149 eval "ac_cv_header_$ac_safe=no"
7152 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7153 echo "$ac_t""yes" 1>&6
7155 { test "$extra_verbose" = "yes" && cat << \EOF
7156 Defining HAVE_BALLOON_HELP
7158 cat >> confdefs.h <<\EOF
7159 #define HAVE_BALLOON_HELP 1
7163 extra_objs="$extra_objs balloon_help.o balloon-x.o" && if test "$extra_verbose" = "yes"; then
7164 echo " xemacs will be linked with \"balloon_help.o balloon-x.o\""
7167 echo "$ac_t""no" 1>&6
7174 case "$window_system" in
7175 x11 ) HAVE_X_WINDOWS=yes; echo " Using X11." ;;
7176 msw ) HAVE_X_WINDOWS=no ; echo " Using MS-Windows." ;;
7179 test "$with_gnome" = "yes" && echo " Using GNOME."
7180 test "$with_gnome" = "no" && echo " Using GTK."
7182 none ) HAVE_X_WINDOWS=no ; echo " Using no window system." ;;
7185 case "$x_libraries" in *X11R4* )
7186 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h"
7187 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h"
7190 echo "checking for WM_COMMAND option" 1>&6
7191 echo "configure:7192: checking for WM_COMMAND option" >&5;
7192 if test "$with_wmcommand" != "no"; then
7193 { test "$extra_verbose" = "yes" && cat << \EOF
7194 Defining HAVE_WMCOMMAND
7196 cat >> confdefs.h <<\EOF
7197 #define HAVE_WMCOMMAND 1
7203 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
7204 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'`
7205 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
7206 echo "configure:7207: checking for X11/Xauth.h" >&5
7208 cat > conftest.$ac_ext <<EOF
7209 #line 7210 "configure"
7210 #include "confdefs.h"
7211 #include <X11/Xauth.h>
7213 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7214 { (eval echo configure:7215: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7215 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7216 if test -z "$ac_err"; then
7218 eval "ac_cv_header_$ac_safe=yes"
7221 echo "configure: failed program was:" >&5
7222 cat conftest.$ac_ext >&5
7224 eval "ac_cv_header_$ac_safe=no"
7227 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7228 echo "$ac_t""yes" 1>&6
7231 echo "$ac_t""no" 1>&6
7235 test -z "$with_xauth" && {
7236 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
7237 echo "configure:7238: checking for XauGetAuthByAddr in -lXau" >&5
7238 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
7240 xe_check_libs=" -lXau "
7241 cat > conftest.$ac_ext <<EOF
7242 #line 7243 "configure"
7243 #include "confdefs.h"
7244 /* Override any gcc2 internal prototype to avoid an error. */
7245 /* We use char because int might match the return type of a gcc2
7246 builtin and then its argument prototype would still apply. */
7247 char XauGetAuthByAddr();
7253 if { (eval echo configure:7254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7255 eval "ac_cv_lib_$ac_lib_var=yes"
7257 echo "configure: failed program was:" >&5
7258 cat conftest.$ac_ext >&5
7260 eval "ac_cv_lib_$ac_lib_var=no"
7265 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7266 echo "$ac_t""yes" 1>&6
7269 echo "$ac_t""no" 1>&6
7274 test -z "$with_xauth" && with_xauth=yes
7275 if test "$with_xauth" = "yes"; then
7276 { test "$extra_verbose" = "yes" && cat << \EOF
7279 cat >> confdefs.h <<\EOF
7280 #define HAVE_XAUTH 1
7286 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
7294 if test "$with_tooltalk" != "no" ; then
7295 for dir in "" "Tt/" "desktop/" ; do
7296 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
7297 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
7298 echo "configure:7299: checking for ${dir}tt_c.h" >&5
7300 cat > conftest.$ac_ext <<EOF
7301 #line 7302 "configure"
7302 #include "confdefs.h"
7303 #include <${dir}tt_c.h>
7305 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7306 { (eval echo configure:7307: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7307 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7308 if test -z "$ac_err"; then
7310 eval "ac_cv_header_$ac_safe=yes"
7313 echo "configure: failed program was:" >&5
7314 cat conftest.$ac_ext >&5
7316 eval "ac_cv_header_$ac_safe=no"
7319 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7320 echo "$ac_t""yes" 1>&6
7321 tt_c_h_file="${dir}tt_c.h"; break
7323 echo "$ac_t""no" 1>&6
7327 if test -z "$tt_c_h_file"; then
7328 if test "$with_tooltalk" = "yes"; then
7329 (echo "$progname: Usage error:"
7330 echo " " "Unable to find required tooltalk header files."
7331 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
7336 if test "$with_tooltalk" != "no" ; then
7337 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
7339 xe_msg_checking="for tt_message_create in -ltt"
7340 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
7341 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7342 echo "configure:7343: checking "$xe_msg_checking"" >&5
7343 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
7345 xe_check_libs=" -ltt $extra_libs"
7346 cat > conftest.$ac_ext <<EOF
7347 #line 7348 "configure"
7348 #include "confdefs.h"
7349 /* Override any gcc2 internal prototype to avoid an error. */
7350 /* We use char because int might match the return type of a gcc2
7351 builtin and then its argument prototype would still apply. */
7352 char tt_message_create();
7358 if { (eval echo configure:7359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7360 eval "ac_cv_lib_$ac_lib_var=yes"
7362 echo "configure: failed program was:" >&5
7363 cat conftest.$ac_ext >&5
7365 eval "ac_cv_lib_$ac_lib_var=no"
7370 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7371 echo "$ac_t""yes" 1>&6
7372 tt_libs="-ltt $extra_libs"; break
7374 echo "$ac_t""no" 1>&6
7380 if test -z "$tt_libs"; then
7381 if test "$with_tooltalk" = "yes"; then
7382 (echo "$progname: Usage error:"
7383 echo " " "Unable to find required tooltalk libraries."
7384 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
7389 test -z "$with_tooltalk" && with_tooltalk=yes
7390 if test "$with_tooltalk" = "yes"; then
7391 { test "$extra_verbose" = "yes" && cat << \EOF
7394 cat >> confdefs.h <<\EOF
7399 { test "$extra_verbose" = "yes" && cat << EOF
7400 Defining TT_C_H_FILE = "$tt_c_h_file"
7402 cat >> confdefs.h <<EOF
7403 #define TT_C_H_FILE "$tt_c_h_file"
7407 libs_x="$tt_libs $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$tt_libs\" to \$libs_x"; fi
7408 extra_objs="$extra_objs tooltalk.o" && if test "$extra_verbose" = "yes"; then
7409 echo " xemacs will be linked with \"tooltalk.o\""
7413 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'`
7414 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
7415 echo "configure:7416: checking for Dt/Dt.h" >&5
7417 cat > conftest.$ac_ext <<EOF
7418 #line 7419 "configure"
7419 #include "confdefs.h"
7422 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7423 { (eval echo configure:7424: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7424 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7425 if test -z "$ac_err"; then
7427 eval "ac_cv_header_$ac_safe=yes"
7430 echo "configure: failed program was:" >&5
7431 cat conftest.$ac_ext >&5
7433 eval "ac_cv_header_$ac_safe=no"
7436 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7437 echo "$ac_t""yes" 1>&6
7440 echo "$ac_t""no" 1>&6
7444 test -z "$with_cde" && {
7445 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
7446 echo "configure:7447: checking for DtDndDragStart in -lDtSvc" >&5
7447 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
7449 xe_check_libs=" -lDtSvc "
7450 cat > conftest.$ac_ext <<EOF
7451 #line 7452 "configure"
7452 #include "confdefs.h"
7453 /* Override any gcc2 internal prototype to avoid an error. */
7454 /* We use char because int might match the return type of a gcc2
7455 builtin and then its argument prototype would still apply. */
7456 char DtDndDragStart();
7462 if { (eval echo configure:7463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7464 eval "ac_cv_lib_$ac_lib_var=yes"
7466 echo "configure: failed program was:" >&5
7467 cat conftest.$ac_ext >&5
7469 eval "ac_cv_lib_$ac_lib_var=no"
7474 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7475 echo "$ac_t""yes" 1>&6
7478 echo "$ac_t""no" 1>&6
7483 test -z "$with_cde" && with_cde=yes
7484 if test "$with_dragndrop" = no; then
7485 echo "configure: warning: No CDE without generic Drag'n'Drop support" 1>&2
7488 if test "$with_cde" = "yes" ; then
7489 { test "$extra_verbose" = "yes" && cat << \EOF
7492 cat >> confdefs.h <<\EOF
7497 libs_x="-lDtSvc $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lDtSvc\" to \$libs_x"; fi
7498 dragndrop_proto="$dragndrop_proto CDE" && if test "$extra_verbose" = "yes"; then echo " Appending \"CDE\" to \$dragndrop_proto"; fi
7499 with_tooltalk=yes # CDE requires Tooltalk
7500 need_motif=yes # CDE requires Motif
7503 test "$window_system" != "x11" && with_offix=no
7504 if test "$with_xmu" != yes -a "$with_x11" = yes; then
7505 echo "configure: warning: No OffiX without real Xmu support" 1>&2
7508 if test "$with_dragndrop" = no; then
7509 echo "configure: warning: No OffiX without generic Drag'n'Drop support" 1>&2
7512 if test "$with_cde" = yes; then
7513 echo "configure: warning: CDE already found, disabling OffiX support" 1>&2
7516 test -z "$with_offix" && with_offix=no
7517 if test "$with_offix" = "yes"; then
7518 { test "$extra_verbose" = "yes" && cat << \EOF
7519 Defining HAVE_OFFIX_DND
7521 cat >> confdefs.h <<\EOF
7522 #define HAVE_OFFIX_DND 1
7526 dnd_objs="$dnd_objs offix.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"offix.o\" to \$dnd_objs"; fi
7527 dragndrop_proto="$dragndrop_proto OffiX" && if test "$extra_verbose" = "yes"; then echo " Appending \"OffiX\" to \$dragndrop_proto"; fi
7529 if test "$with_gtk" = "yes"; then
7530 dragndrop_proto="$dragndrop_proto GTK" && if test "$extra_verbose" = "yes"; then echo " Appending \"GTK\" to \$dragndrop_proto"; fi
7533 if test "$with_dragndrop" != "no" ; then
7534 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6
7535 echo "configure:7536: checking if drag and drop API is needed" >&5
7536 if test -n "$dragndrop_proto" ; then
7538 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6
7539 { test "$extra_verbose" = "yes" && cat << \EOF
7540 Defining HAVE_DRAGNDROP
7542 cat >> confdefs.h <<\EOF
7543 #define HAVE_DRAGNDROP 1
7547 extra_objs="$extra_objs dragdrop.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"dragdrop.o\" to \$extra_objs"; fi
7550 echo "$ac_t""no" 1>&6
7554 echo "checking for LDAP" 1>&6
7555 echo "configure:7556: checking for LDAP" >&5
7556 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'`
7557 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6
7558 echo "configure:7559: checking for ldap.h" >&5
7560 cat > conftest.$ac_ext <<EOF
7561 #line 7562 "configure"
7562 #include "confdefs.h"
7565 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7566 { (eval echo configure:7567: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7567 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7568 if test -z "$ac_err"; then
7570 eval "ac_cv_header_$ac_safe=yes"
7573 echo "configure: failed program was:" >&5
7574 cat conftest.$ac_ext >&5
7576 eval "ac_cv_header_$ac_safe=no"
7579 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7580 echo "$ac_t""yes" 1>&6
7583 echo "$ac_t""no" 1>&6
7587 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'`
7588 echo $ac_n "checking for lber.h""... $ac_c" 1>&6
7589 echo "configure:7590: checking for lber.h" >&5
7591 cat > conftest.$ac_ext <<EOF
7592 #line 7593 "configure"
7593 #include "confdefs.h"
7596 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7597 { (eval echo configure:7598: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7598 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7599 if test -z "$ac_err"; then
7601 eval "ac_cv_header_$ac_safe=yes"
7604 echo "configure: failed program was:" >&5
7605 cat conftest.$ac_ext >&5
7607 eval "ac_cv_header_$ac_safe=no"
7610 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7611 echo "$ac_t""yes" 1>&6
7614 echo "$ac_t""no" 1>&6
7618 if test "$with_ldap" != "no"; then
7620 echo $ac_n "checking for ldap_search in -lldap""... $ac_c" 1>&6
7621 echo "configure:7622: checking for ldap_search in -lldap" >&5
7622 ac_lib_var=`echo ldap'_'ldap_search | sed 'y%./+-%__p_%'`
7624 xe_check_libs=" -lldap "
7625 cat > conftest.$ac_ext <<EOF
7626 #line 7627 "configure"
7627 #include "confdefs.h"
7628 /* Override any gcc2 internal prototype to avoid an error. */
7629 /* We use char because int might match the return type of a gcc2
7630 builtin and then its argument prototype would still apply. */
7637 if { (eval echo configure:7638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7639 eval "ac_cv_lib_$ac_lib_var=yes"
7641 echo "configure: failed program was:" >&5
7642 cat conftest.$ac_ext >&5
7644 eval "ac_cv_lib_$ac_lib_var=no"
7649 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7650 echo "$ac_t""yes" 1>&6
7651 with_ldap_nolber=yes
7653 echo "$ac_t""no" 1>&6
7658 test "$with_ldap_nolber" = "no" && {
7659 xe_msg_checking="for ldap_open in -lldap"
7660 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber"
7661 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7662 echo "configure:7663: checking "$xe_msg_checking"" >&5
7663 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7665 xe_check_libs=" -lldap -llber"
7666 cat > conftest.$ac_ext <<EOF
7667 #line 7668 "configure"
7668 #include "confdefs.h"
7669 /* Override any gcc2 internal prototype to avoid an error. */
7670 /* We use char because int might match the return type of a gcc2
7671 builtin and then its argument prototype would still apply. */
7678 if { (eval echo configure:7679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7680 eval "ac_cv_lib_$ac_lib_var=yes"
7682 echo "configure: failed program was:" >&5
7683 cat conftest.$ac_ext >&5
7685 eval "ac_cv_lib_$ac_lib_var=no"
7690 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7691 echo "$ac_t""yes" 1>&6
7694 echo "$ac_t""no" 1>&6
7699 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" && {
7700 xe_msg_checking="for ldap_open in -lldap"
7701 test -n "-llber -lkrb" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb"
7702 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7703 echo "configure:7704: checking "$xe_msg_checking"" >&5
7704 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7706 xe_check_libs=" -lldap -llber -lkrb"
7707 cat > conftest.$ac_ext <<EOF
7708 #line 7709 "configure"
7709 #include "confdefs.h"
7710 /* Override any gcc2 internal prototype to avoid an error. */
7711 /* We use char because int might match the return type of a gcc2
7712 builtin and then its argument prototype would still apply. */
7719 if { (eval echo configure:7720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7721 eval "ac_cv_lib_$ac_lib_var=yes"
7723 echo "configure: failed program was:" >&5
7724 cat conftest.$ac_ext >&5
7726 eval "ac_cv_lib_$ac_lib_var=no"
7731 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7732 echo "$ac_t""yes" 1>&6
7735 echo "$ac_t""no" 1>&6
7740 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" -a "$with_ldap_krb" = "no" && {
7741 xe_msg_checking="for ldap_open in -lldap"
7742 test -n "-llber -lkrb -ldes" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb -ldes"
7743 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7744 echo "configure:7745: checking "$xe_msg_checking"" >&5
7745 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7747 xe_check_libs=" -lldap -llber -lkrb -ldes"
7748 cat > conftest.$ac_ext <<EOF
7749 #line 7750 "configure"
7750 #include "confdefs.h"
7751 /* Override any gcc2 internal prototype to avoid an error. */
7752 /* We use char because int might match the return type of a gcc2
7753 builtin and then its argument prototype would still apply. */
7760 if { (eval echo configure:7761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7762 eval "ac_cv_lib_$ac_lib_var=yes"
7764 echo "configure: failed program was:" >&5
7765 cat conftest.$ac_ext >&5
7767 eval "ac_cv_lib_$ac_lib_var=no"
7772 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7773 echo "$ac_t""yes" 1>&6
7774 with_ldap_krbdes=yes
7776 echo "$ac_t""no" 1>&6
7781 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
7783 if test "$with_ldap" = "yes"; then
7784 { test "$extra_verbose" = "yes" && cat << \EOF
7787 cat >> confdefs.h <<\EOF
7792 extra_objs="$extra_objs eldap.o" && if test "$extra_verbose" = "yes"; then
7793 echo " xemacs will be linked with \"eldap.o\""
7795 if test "$with_ldap_nolber" = "yes" ; then
7796 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
7798 if test "$with_ldap_krb" = "yes" ; then
7799 LIBS="-lkrb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$LIBS"; fi
7801 if test "$with_ldap_krbdes" = "yes" ; then
7802 LIBS="-ldes $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldes\" to \$LIBS"; fi
7803 LIBS="-lkrb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$LIBS"; fi
7805 LIBS="-llber $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-llber\" to \$LIBS"; fi
7806 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
7808 for ac_func in ldap_set_option ldap_get_lderrno ldap_result2error ldap_parse_result
7810 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7811 echo "configure:7812: checking for $ac_func" >&5
7813 cat > conftest.$ac_ext <<EOF
7814 #line 7815 "configure"
7815 #include "confdefs.h"
7816 /* System header to define __stub macros and hopefully few prototypes,
7817 which can conflict with char $ac_func(); below. */
7819 /* Override any gcc2 internal prototype to avoid an error. */
7820 /* We use char because int might match the return type of a gcc2
7821 builtin and then its argument prototype would still apply. */
7826 /* The GNU C library defines this for functions which it implements
7827 to always fail with ENOSYS. Some functions are actually named
7828 something starting with __ and the normal name is an alias. */
7829 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7837 if { (eval echo configure:7838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7839 eval "ac_cv_func_$ac_func=yes"
7841 echo "configure: failed program was:" >&5
7842 cat conftest.$ac_ext >&5
7844 eval "ac_cv_func_$ac_func=no"
7848 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7849 echo "$ac_t""yes" 1>&6
7850 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7851 { test "$extra_verbose" = "yes" && cat << EOF
7852 Defining $ac_tr_func
7854 cat >> confdefs.h <<EOF
7855 #define $ac_tr_func 1
7860 echo "$ac_t""no" 1>&6
7866 if test "$with_postgresql" != "no"; then
7867 echo "checking for PostgreSQL" 1>&6
7868 echo "configure:7869: checking for PostgreSQL" >&5
7870 for header_dir in "" "pgsql/" "postgresql/"; do
7871 ac_safe=`echo "${header_dir}libpq-fe.h" | sed 'y%./+-%__p_%'`
7872 echo $ac_n "checking for ${header_dir}libpq-fe.h""... $ac_c" 1>&6
7873 echo "configure:7874: checking for ${header_dir}libpq-fe.h" >&5
7875 cat > conftest.$ac_ext <<EOF
7876 #line 7877 "configure"
7877 #include "confdefs.h"
7878 #include <${header_dir}libpq-fe.h>
7880 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7881 { (eval echo configure:7882: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7882 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7883 if test -z "$ac_err"; then
7885 eval "ac_cv_header_$ac_safe=yes"
7888 echo "configure: failed program was:" >&5
7889 cat conftest.$ac_ext >&5
7891 eval "ac_cv_header_$ac_safe=no"
7894 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7895 echo "$ac_t""yes" 1>&6
7896 libpq_fe_h_file=${header_dir}libpq-fe.h; break
7898 echo "$ac_t""no" 1>&6
7903 test -n "$libpq_fe_h_file" && {
7904 echo $ac_n "checking for PQconnectdb in -lpq""... $ac_c" 1>&6
7905 echo "configure:7906: checking for PQconnectdb in -lpq" >&5
7906 ac_lib_var=`echo pq'_'PQconnectdb | sed 'y%./+-%__p_%'`
7908 xe_check_libs=" -lpq "
7909 cat > conftest.$ac_ext <<EOF
7910 #line 7911 "configure"
7911 #include "confdefs.h"
7912 /* Override any gcc2 internal prototype to avoid an error. */
7913 /* We use char because int might match the return type of a gcc2
7914 builtin and then its argument prototype would still apply. */
7921 if { (eval echo configure:7922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7923 eval "ac_cv_lib_$ac_lib_var=yes"
7925 echo "configure: failed program was:" >&5
7926 cat conftest.$ac_ext >&5
7928 eval "ac_cv_lib_$ac_lib_var=no"
7933 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7934 echo "$ac_t""yes" 1>&6
7937 echo "$ac_t""no" 1>&6
7942 if test -n "$libpq_fe_h_file" -a "$have_libpq" = "yes"; then
7944 { test "$extra_verbose" = "yes" && cat << \EOF
7945 Defining HAVE_POSTGRESQL
7947 cat >> confdefs.h <<\EOF
7948 #define HAVE_POSTGRESQL 1
7953 echo $ac_n "checking for PQconnectStart in -lpq""... $ac_c" 1>&6
7954 echo "configure:7955: checking for PQconnectStart in -lpq" >&5
7955 ac_lib_var=`echo pq'_'PQconnectStart | 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. */
7964 char PQconnectStart();
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
7984 with_postgresqlv7=yes;
7985 { test "$extra_verbose" = "yes" && cat << \EOF
7986 Defining HAVE_POSTGRESQLV7
7988 cat >> confdefs.h <<\EOF
7989 #define HAVE_POSTGRESQLV7 1
7994 echo "$ac_t""no" 1>&6
7998 { test "$extra_verbose" = "yes" && cat << EOF
7999 Defining LIBPQ_FE_H_FILE = "$libpq_fe_h_file"
8001 cat >> confdefs.h <<EOF
8002 #define LIBPQ_FE_H_FILE "$libpq_fe_h_file"
8006 LIBS="-lpq $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpq\" to \$LIBS"; fi
8007 extra_objs="$extra_objs postgresql.o" && if test "$extra_verbose" = "yes"; then
8008 echo " xemacs will be linked with \"postgresql.o\""
8010 elif test "$with_postgresql" = "yes"; then
8011 { echo "Error:" "Required PostgreSQL support cannot be provided. Check --site-prefixes." >&2; exit 1; }
8016 if test "$window_system" != "none"; then
8017 echo "checking for graphics libraries" 1>&6
8018 echo "configure:8019: checking for graphics libraries" >&5
8021 if test -z "$with_xpm"; then
8022 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6
8023 echo "configure:8024: checking for Xpm - no older than 3.4f" >&5
8025 cat > conftest.$ac_ext <<EOF
8026 #line 8027 "configure"
8027 #include "confdefs.h"
8029 #include <X11/xpm.h>
8030 int main(int c, char **v) {
8032 XpmIncludeVersion != XpmLibraryVersion() ? 1 :
8033 XpmIncludeVersion < 30406 ? 2 : 0 ;}
8035 if { (eval echo configure:8036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
8037 ./conftest dummy_arg; xpm_status=$?;
8038 if test "$xpm_status" = "0"; then
8042 if test "$xpm_status" = "1"; then
8043 xpm_problem="Xpm library version and header file version don't match!"
8044 elif test "$xpm_status" = "2"; then
8045 xpm_problem="Xpm library version is too old!"
8047 xpm_problem="Internal xpm detection logic error!"
8050 *** WARNING *** $xpm_problem
8051 I'm not touching that with a 10-foot pole!
8052 If you really want to use the installed version of Xpm, rerun
8053 configure and add '--with-xpm=yes', but don't blame me if XEmacs crashes!"
8057 echo "configure: failed program was:" >&5
8058 cat conftest.$ac_ext >&5
8064 echo "$ac_t""$with_xpm" 1>&6
8066 if test "$with_xpm" = "yes"; then
8067 { test "$extra_verbose" = "yes" && cat << \EOF
8070 cat >> confdefs.h <<\EOF
8075 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
8076 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6
8077 echo "configure:8078: checking for \"FOR_MSW\" xpm" >&5
8079 cat > conftest.$ac_ext <<EOF
8080 #line 8081 "configure"
8081 #include "confdefs.h"
8084 XpmCreatePixmapFromData()
8087 if { (eval echo configure:8088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8091 echo "configure: failed program was:" >&5
8092 cat conftest.$ac_ext >&5
8098 echo "$ac_t""$xpm_for_msw" 1>&6
8099 if test "$xpm_for_msw" = "yes"; then
8100 { test "$extra_verbose" = "yes" && cat << \EOF
8103 cat >> confdefs.h <<\EOF
8111 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
8112 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
8113 echo "configure:8114: checking for compface.h" >&5
8115 cat > conftest.$ac_ext <<EOF
8116 #line 8117 "configure"
8117 #include "confdefs.h"
8118 #include <compface.h>
8120 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8121 { (eval echo configure:8122: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8122 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8123 if test -z "$ac_err"; then
8125 eval "ac_cv_header_$ac_safe=yes"
8128 echo "configure: failed program was:" >&5
8129 cat conftest.$ac_ext >&5
8131 eval "ac_cv_header_$ac_safe=no"
8134 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8135 echo "$ac_t""yes" 1>&6
8138 echo "$ac_t""no" 1>&6
8142 test -z "$with_xface" && {
8143 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
8144 echo "configure:8145: checking for UnGenFace in -lcompface" >&5
8145 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
8147 xe_check_libs=" -lcompface "
8148 cat > conftest.$ac_ext <<EOF
8149 #line 8150 "configure"
8150 #include "confdefs.h"
8151 /* Override any gcc2 internal prototype to avoid an error. */
8152 /* We use char because int might match the return type of a gcc2
8153 builtin and then its argument prototype would still apply. */
8160 if { (eval echo configure:8161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8162 eval "ac_cv_lib_$ac_lib_var=yes"
8164 echo "configure: failed program was:" >&5
8165 cat conftest.$ac_ext >&5
8167 eval "ac_cv_lib_$ac_lib_var=no"
8172 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8173 echo "$ac_t""yes" 1>&6
8176 echo "$ac_t""no" 1>&6
8181 test -z "$with_xface" && with_xface=yes
8182 if test "$with_xface" = "yes"; then
8183 { test "$extra_verbose" = "yes" && cat << \EOF
8186 cat >> confdefs.h <<\EOF
8187 #define HAVE_XFACE 1
8191 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi
8194 if test "$with_gif" != "no"; then
8196 { test "$extra_verbose" = "yes" && cat << \EOF
8199 cat >> confdefs.h <<\EOF
8204 extra_objs="$extra_objs dgif_lib.o gif_io.o" && if test "$extra_verbose" = "yes"; then
8205 echo " xemacs will be linked with \"dgif_lib.o gif_io.o\""
8209 if test "$with_png $with_tiff" != "no no"; then
8211 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6
8212 echo "configure:8213: checking for inflate in -lc" >&5
8213 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'`
8215 xe_check_libs=" -lc "
8216 cat > conftest.$ac_ext <<EOF
8217 #line 8218 "configure"
8218 #include "confdefs.h"
8219 /* Override any gcc2 internal prototype to avoid an error. */
8220 /* We use char because int might match the return type of a gcc2
8221 builtin and then its argument prototype would still apply. */
8228 if { (eval echo configure:8229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8230 eval "ac_cv_lib_$ac_lib_var=yes"
8232 echo "configure: failed program was:" >&5
8233 cat conftest.$ac_ext >&5
8235 eval "ac_cv_lib_$ac_lib_var=no"
8240 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8241 echo "$ac_t""yes" 1>&6
8244 echo "$ac_t""no" 1>&6
8246 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
8247 echo "configure:8248: checking for inflate in -lz" >&5
8248 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
8250 xe_check_libs=" -lz "
8251 cat > conftest.$ac_ext <<EOF
8252 #line 8253 "configure"
8253 #include "confdefs.h"
8254 /* Override any gcc2 internal prototype to avoid an error. */
8255 /* We use char because int might match the return type of a gcc2
8256 builtin and then its argument prototype would still apply. */
8263 if { (eval echo configure:8264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8265 eval "ac_cv_lib_$ac_lib_var=yes"
8267 echo "configure: failed program was:" >&5
8268 cat conftest.$ac_ext >&5
8270 eval "ac_cv_lib_$ac_lib_var=no"
8275 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8276 echo "$ac_t""yes" 1>&6
8277 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi
8279 echo "$ac_t""no" 1>&6
8281 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6
8282 echo "configure:8283: checking for inflate in -lgz" >&5
8283 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'`
8285 xe_check_libs=" -lgz "
8286 cat > conftest.$ac_ext <<EOF
8287 #line 8288 "configure"
8288 #include "confdefs.h"
8289 /* Override any gcc2 internal prototype to avoid an error. */
8290 /* We use char because int might match the return type of a gcc2
8291 builtin and then its argument prototype would still apply. */
8298 if { (eval echo configure:8299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8300 eval "ac_cv_lib_$ac_lib_var=yes"
8302 echo "configure: failed program was:" >&5
8303 cat conftest.$ac_ext >&5
8305 eval "ac_cv_lib_$ac_lib_var=no"
8310 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8311 echo "$ac_t""yes" 1>&6
8312 libs_x="-lgz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgz\" to \$libs_x"; fi
8314 echo "$ac_t""no" 1>&6
8326 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
8327 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
8328 echo "configure:8329: checking for jpeglib.h" >&5
8330 cat > conftest.$ac_ext <<EOF
8331 #line 8332 "configure"
8332 #include "confdefs.h"
8333 #include <jpeglib.h>
8335 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8336 { (eval echo configure:8337: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8337 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8338 if test -z "$ac_err"; then
8340 eval "ac_cv_header_$ac_safe=yes"
8343 echo "configure: failed program was:" >&5
8344 cat conftest.$ac_ext >&5
8346 eval "ac_cv_header_$ac_safe=no"
8349 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8350 echo "$ac_t""yes" 1>&6
8353 echo "$ac_t""no" 1>&6
8357 test -z "$with_jpeg" && {
8358 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6
8359 echo "configure:8360: checking for jpeg_destroy_decompress in -ljpeg" >&5
8360 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'`
8362 xe_check_libs=" -ljpeg "
8363 cat > conftest.$ac_ext <<EOF
8364 #line 8365 "configure"
8365 #include "confdefs.h"
8366 /* Override any gcc2 internal prototype to avoid an error. */
8367 /* We use char because int might match the return type of a gcc2
8368 builtin and then its argument prototype would still apply. */
8369 char jpeg_destroy_decompress();
8372 jpeg_destroy_decompress()
8375 if { (eval echo configure:8376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8377 eval "ac_cv_lib_$ac_lib_var=yes"
8379 echo "configure: failed program was:" >&5
8380 cat conftest.$ac_ext >&5
8382 eval "ac_cv_lib_$ac_lib_var=no"
8387 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8388 echo "$ac_t""yes" 1>&6
8391 echo "$ac_t""no" 1>&6
8396 test -z "$with_jpeg" && with_jpeg=yes
8397 if test "$with_jpeg" = "yes"; then
8398 { test "$extra_verbose" = "yes" && cat << \EOF
8401 cat >> confdefs.h <<\EOF
8406 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi
8410 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6
8411 echo "configure:8412: checking for pow" >&5
8413 cat > conftest.$ac_ext <<EOF
8414 #line 8415 "configure"
8415 #include "confdefs.h"
8416 /* System header to define __stub macros and hopefully few prototypes,
8417 which can conflict with char pow(); below. */
8419 /* Override any gcc2 internal prototype to avoid an error. */
8420 /* We use char because int might match the return type of a gcc2
8421 builtin and then its argument prototype would still apply. */
8426 /* The GNU C library defines this for functions which it implements
8427 to always fail with ENOSYS. Some functions are actually named
8428 something starting with __ and the normal name is an alias. */
8429 #if defined (__stub_pow) || defined (__stub___pow)
8437 if { (eval echo configure:8438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8439 eval "ac_cv_func_pow=yes"
8441 echo "configure: failed program was:" >&5
8442 cat conftest.$ac_ext >&5
8444 eval "ac_cv_func_pow=no"
8448 if eval "test \"`echo '$ac_cv_func_'pow`\" = yes"; then
8449 echo "$ac_t""yes" 1>&6
8452 echo "$ac_t""no" 1>&6
8456 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
8457 echo $ac_n "checking for png.h""... $ac_c" 1>&6
8458 echo "configure:8459: checking for png.h" >&5
8460 cat > conftest.$ac_ext <<EOF
8461 #line 8462 "configure"
8462 #include "confdefs.h"
8465 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8466 { (eval echo configure:8467: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8467 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8468 if test -z "$ac_err"; then
8470 eval "ac_cv_header_$ac_safe=yes"
8473 echo "configure: failed program was:" >&5
8474 cat conftest.$ac_ext >&5
8476 eval "ac_cv_header_$ac_safe=no"
8479 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8480 echo "$ac_t""yes" 1>&6
8483 echo "$ac_t""no" 1>&6
8487 test -z "$with_png" && {
8488 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6
8489 echo "configure:8490: checking for png_read_image in -lpng" >&5
8490 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
8492 xe_check_libs=" -lpng "
8493 cat > conftest.$ac_ext <<EOF
8494 #line 8495 "configure"
8495 #include "confdefs.h"
8496 /* Override any gcc2 internal prototype to avoid an error. */
8497 /* We use char because int might match the return type of a gcc2
8498 builtin and then its argument prototype would still apply. */
8499 char png_read_image();
8505 if { (eval echo configure:8506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8507 eval "ac_cv_lib_$ac_lib_var=yes"
8509 echo "configure: failed program was:" >&5
8510 cat conftest.$ac_ext >&5
8512 eval "ac_cv_lib_$ac_lib_var=no"
8517 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8518 echo "$ac_t""yes" 1>&6
8521 echo "$ac_t""no" 1>&6
8526 if test -z "$with_png"; then
8527 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6
8528 echo "configure:8529: checking for workable png version information" >&5
8529 xe_check_libs="-lpng -lz"
8530 cat > conftest.$ac_ext <<EOF
8531 #line 8532 "configure"
8532 #include "confdefs.h"
8534 int main(int c, char **v) {
8535 if (c == 1) return 0;
8536 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1;
8537 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;}
8539 if { (eval echo configure:8540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
8541 ./conftest dummy_arg; png_status=$?;
8542 if test "$png_status" = "0"; then
8546 if test "$png_status" = "1"; then
8547 png_problem="PNG library version and header file don't match!"
8548 elif test "$png_status" = "2"; then
8549 png_problem="PNG library version too old (pre 1.0.2)!"
8552 *** WARNING *** $png_problem
8553 I'm not touching that with a 10-foot pole!
8554 If you really want to use the installed version of libPNG, rerun
8555 configure and add '--with-png=yes', but don't blame me if XEmacs crashes!"
8559 echo "configure: failed program was:" >&5
8560 cat conftest.$ac_ext >&5
8566 echo "$ac_t""$with_png" 1>&6
8568 if test "$with_png" = "yes"; then
8569 { test "$extra_verbose" = "yes" && cat << \EOF
8572 cat >> confdefs.h <<\EOF
8577 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi
8580 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
8581 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
8582 echo "configure:8583: checking for tiffio.h" >&5
8584 cat > conftest.$ac_ext <<EOF
8585 #line 8586 "configure"
8586 #include "confdefs.h"
8589 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8590 { (eval echo configure:8591: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8591 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8592 if test -z "$ac_err"; then
8594 eval "ac_cv_header_$ac_safe=yes"
8597 echo "configure: failed program was:" >&5
8598 cat conftest.$ac_ext >&5
8600 eval "ac_cv_header_$ac_safe=no"
8603 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8604 echo "$ac_t""yes" 1>&6
8607 echo "$ac_t""no" 1>&6
8611 test -z "$with_tiff" && {
8612 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6
8613 echo "configure:8614: checking for TIFFClientOpen in -ltiff" >&5
8614 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'`
8616 xe_check_libs=" -ltiff "
8617 cat > conftest.$ac_ext <<EOF
8618 #line 8619 "configure"
8619 #include "confdefs.h"
8620 /* Override any gcc2 internal prototype to avoid an error. */
8621 /* We use char because int might match the return type of a gcc2
8622 builtin and then its argument prototype would still apply. */
8623 char TIFFClientOpen();
8629 if { (eval echo configure:8630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8631 eval "ac_cv_lib_$ac_lib_var=yes"
8633 echo "configure: failed program was:" >&5
8634 cat conftest.$ac_ext >&5
8636 eval "ac_cv_lib_$ac_lib_var=no"
8641 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8642 echo "$ac_t""yes" 1>&6
8645 echo "$ac_t""no" 1>&6
8650 test -z "$with_tiff" && with_tiff=yes
8651 if test "$with_tiff" = "yes"; then
8652 { test "$extra_verbose" = "yes" && cat << \EOF
8655 cat >> confdefs.h <<\EOF
8660 libs_x="-ltiff $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltiff\" to \$libs_x"; fi
8665 if test "$with_gtk" = "yes"; then
8666 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
8667 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
8668 echo "configure:8669: checking for compface.h" >&5
8670 cat > conftest.$ac_ext <<EOF
8671 #line 8672 "configure"
8672 #include "confdefs.h"
8673 #include <compface.h>
8675 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8676 { (eval echo configure:8677: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8677 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8678 if test -z "$ac_err"; then
8680 eval "ac_cv_header_$ac_safe=yes"
8683 echo "configure: failed program was:" >&5
8684 cat conftest.$ac_ext >&5
8686 eval "ac_cv_header_$ac_safe=no"
8689 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8690 echo "$ac_t""yes" 1>&6
8693 echo "$ac_t""no" 1>&6
8697 test -z "$with_xface" && {
8698 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
8699 echo "configure:8700: checking for UnGenFace in -lcompface" >&5
8700 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
8702 xe_check_libs=" -lcompface "
8703 cat > conftest.$ac_ext <<EOF
8704 #line 8705 "configure"
8705 #include "confdefs.h"
8706 /* Override any gcc2 internal prototype to avoid an error. */
8707 /* We use char because int might match the return type of a gcc2
8708 builtin and then its argument prototype would still apply. */
8715 if { (eval echo configure:8716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8717 eval "ac_cv_lib_$ac_lib_var=yes"
8719 echo "configure: failed program was:" >&5
8720 cat conftest.$ac_ext >&5
8722 eval "ac_cv_lib_$ac_lib_var=no"
8727 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8728 echo "$ac_t""yes" 1>&6
8731 echo "$ac_t""no" 1>&6
8736 test -z "$with_xface" && with_xface=yes
8737 if test "$with_xface" = "yes"; then
8738 { test "$extra_verbose" = "yes" && cat << \EOF
8741 cat >> confdefs.h <<\EOF
8742 #define HAVE_XFACE 1
8746 libs_gtk="-lcompface $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_gtk"; fi
8752 if test "$with_x11" = "yes"; then
8754 echo "checking for X11 graphics libraries" 1>&6
8755 echo "configure:8756: checking for X11 graphics libraries" >&5
8757 echo "checking for the Athena widgets" 1>&6
8758 echo "configure:8759: checking for the Athena widgets" >&5
8760 case "$with_athena" in
8761 "xaw" | "") athena_variant=Xaw athena_3d=no ;;
8762 "3d") athena_variant=Xaw3d athena_3d=yes ;;
8763 "next") athena_variant=neXtaw athena_3d=yes ;;
8764 "95") athena_variant=Xaw95 athena_3d=yes ;;
8765 "xpm") athena_variant=XawXpm athena_3d=yes ;;
8766 *) { echo "Error:" "Unknown Athena widget set \`$with_athena'. This should not happen." >&2; exit 1; } ;;
8769 if test "$athena_3d" = "no"; then
8771 echo $ac_n "checking for XawScrollbarSetThumb in -l$athena_variant""... $ac_c" 1>&6
8772 echo "configure:8773: checking for XawScrollbarSetThumb in -l$athena_variant" >&5
8773 ac_lib_var=`echo $athena_variant'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
8775 xe_check_libs=" -l$athena_variant "
8776 cat > conftest.$ac_ext <<EOF
8777 #line 8778 "configure"
8778 #include "confdefs.h"
8779 /* Override any gcc2 internal prototype to avoid an error. */
8780 /* We use char because int might match the return type of a gcc2
8781 builtin and then its argument prototype would still apply. */
8782 char XawScrollbarSetThumb();
8785 XawScrollbarSetThumb()
8788 if { (eval echo configure:8789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8790 eval "ac_cv_lib_$ac_lib_var=yes"
8792 echo "configure: failed program was:" >&5
8793 cat conftest.$ac_ext >&5
8795 eval "ac_cv_lib_$ac_lib_var=no"
8800 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8801 echo "$ac_t""yes" 1>&6
8803 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
8804 echo "configure:8805: checking for threeDClassRec in -l$athena_variant" >&5
8805 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
8807 xe_check_libs=" -l$athena_variant "
8808 cat > conftest.$ac_ext <<EOF
8809 #line 8810 "configure"
8810 #include "confdefs.h"
8811 /* Override any gcc2 internal prototype to avoid an error. */
8812 /* We use char because int might match the return type of a gcc2
8813 builtin and then its argument prototype would still apply. */
8814 char threeDClassRec();
8820 if { (eval echo configure:8821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8822 eval "ac_cv_lib_$ac_lib_var=yes"
8824 echo "configure: failed program was:" >&5
8825 cat conftest.$ac_ext >&5
8827 eval "ac_cv_lib_$ac_lib_var=no"
8832 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8833 echo "$ac_t""yes" 1>&6
8834 echo "configure: warning: "Could not find a non-3d Athena widget library."" 1>&2
8836 echo "$ac_t""no" 1>&6
8837 athena_lib=$athena_variant
8843 echo "$ac_t""no" 1>&6
8844 echo "configure: warning: "Could not find an Athena widget library."" 1>&2
8850 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
8851 echo "configure:8852: checking for threeDClassRec in -l$athena_variant" >&5
8852 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
8854 xe_check_libs=" -l$athena_variant "
8855 cat > conftest.$ac_ext <<EOF
8856 #line 8857 "configure"
8857 #include "confdefs.h"
8858 /* Override any gcc2 internal prototype to avoid an error. */
8859 /* We use char because int might match the return type of a gcc2
8860 builtin and then its argument prototype would still apply. */
8861 char threeDClassRec();
8867 if { (eval echo configure:8868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8869 eval "ac_cv_lib_$ac_lib_var=yes"
8871 echo "configure: failed program was:" >&5
8872 cat conftest.$ac_ext >&5
8874 eval "ac_cv_lib_$ac_lib_var=no"
8879 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8880 echo "$ac_t""yes" 1>&6
8881 athena_lib=$athena_variant
8883 echo "$ac_t""no" 1>&6
8884 echo $ac_n "checking for threeDClassRec in -lXaw""... $ac_c" 1>&6
8885 echo "configure:8886: checking for threeDClassRec in -lXaw" >&5
8886 ac_lib_var=`echo Xaw'_'threeDClassRec | sed 'y%./+-%__p_%'`
8888 xe_check_libs=" -lXaw "
8889 cat > conftest.$ac_ext <<EOF
8890 #line 8891 "configure"
8891 #include "confdefs.h"
8892 /* Override any gcc2 internal prototype to avoid an error. */
8893 /* We use char because int might match the return type of a gcc2
8894 builtin and then its argument prototype would still apply. */
8895 char threeDClassRec();
8901 if { (eval echo configure:8902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8903 eval "ac_cv_lib_$ac_lib_var=yes"
8905 echo "configure: failed program was:" >&5
8906 cat conftest.$ac_ext >&5
8908 eval "ac_cv_lib_$ac_lib_var=no"
8913 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8914 echo "$ac_t""yes" 1>&6
8916 echo "configure: warning: "Assuming that libXaw is actually $athena_variant."" 1>&2;
8919 echo "$ac_t""no" 1>&6
8920 echo "configure: warning: "Could not find a 3d Athena widget library that looked like $athena_variant."" 1>&2
8929 if test "$athena_3d" = "no"; then
8930 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
8931 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
8932 echo "configure:8933: checking for X11/Xaw/ThreeD.h" >&5
8934 cat > conftest.$ac_ext <<EOF
8935 #line 8936 "configure"
8936 #include "confdefs.h"
8937 #include <X11/Xaw/ThreeD.h>
8939 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8940 { (eval echo configure:8941: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8941 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8942 if test -z "$ac_err"; then
8944 eval "ac_cv_header_$ac_safe=yes"
8947 echo "configure: failed program was:" >&5
8948 cat conftest.$ac_ext >&5
8950 eval "ac_cv_header_$ac_safe=no"
8953 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8954 echo "$ac_t""yes" 1>&6
8955 echo "configure: warning: "Could not find a non-3d Athena header set."" 1>&2
8957 echo "$ac_t""no" 1>&6
8958 ac_safe=`echo "X11/Xaw/XawInit.h" | sed 'y%./+-%__p_%'`
8959 echo $ac_n "checking for X11/Xaw/XawInit.h""... $ac_c" 1>&6
8960 echo "configure:8961: checking for X11/Xaw/XawInit.h" >&5
8962 cat > conftest.$ac_ext <<EOF
8963 #line 8964 "configure"
8964 #include "confdefs.h"
8965 #include <X11/Xaw/XawInit.h>
8967 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8968 { (eval echo configure:8969: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8969 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8970 if test -z "$ac_err"; then
8972 eval "ac_cv_header_$ac_safe=yes"
8975 echo "configure: failed program was:" >&5
8976 cat conftest.$ac_ext >&5
8978 eval "ac_cv_header_$ac_safe=no"
8981 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8982 echo "$ac_t""yes" 1>&6
8983 athena_h_path=X11/Xaw
8985 echo "$ac_t""no" 1>&6
8986 echo "configure: warning: "Could not find a non-3d Athena header set."" 1>&2
8992 ac_safe=`echo "X11/$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
8993 echo $ac_n "checking for X11/$athena_variant/XawInit.h""... $ac_c" 1>&6
8994 echo "configure:8995: checking for X11/$athena_variant/XawInit.h" >&5
8996 cat > conftest.$ac_ext <<EOF
8997 #line 8998 "configure"
8998 #include "confdefs.h"
8999 #include <X11/$athena_variant/XawInit.h>
9001 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9002 { (eval echo configure:9003: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9003 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9004 if test -z "$ac_err"; then
9006 eval "ac_cv_header_$ac_safe=yes"
9009 echo "configure: failed program was:" >&5
9010 cat conftest.$ac_ext >&5
9012 eval "ac_cv_header_$ac_safe=no"
9015 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9016 echo "$ac_t""yes" 1>&6
9017 ac_safe=`echo "X11/$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
9018 echo $ac_n "checking for X11/$athena_variant/ThreeD.h""... $ac_c" 1>&6
9019 echo "configure:9020: checking for X11/$athena_variant/ThreeD.h" >&5
9021 cat > conftest.$ac_ext <<EOF
9022 #line 9023 "configure"
9023 #include "confdefs.h"
9024 #include <X11/$athena_variant/ThreeD.h>
9026 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9027 { (eval echo configure:9028: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9028 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9029 if test -z "$ac_err"; then
9031 eval "ac_cv_header_$ac_safe=yes"
9034 echo "configure: failed program was:" >&5
9035 cat conftest.$ac_ext >&5
9037 eval "ac_cv_header_$ac_safe=no"
9040 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9041 echo "$ac_t""yes" 1>&6
9042 athena_h_path=X11/$athena_variant
9044 echo "$ac_t""no" 1>&6
9048 echo "$ac_t""no" 1>&6
9052 if test -z "$athena_h_path"; then
9053 ac_safe=`echo "$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
9054 echo $ac_n "checking for $athena_variant/XawInit.h""... $ac_c" 1>&6
9055 echo "configure:9056: checking for $athena_variant/XawInit.h" >&5
9057 cat > conftest.$ac_ext <<EOF
9058 #line 9059 "configure"
9059 #include "confdefs.h"
9060 #include <$athena_variant/XawInit.h>
9062 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9063 { (eval echo configure:9064: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9064 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9065 if test -z "$ac_err"; then
9067 eval "ac_cv_header_$ac_safe=yes"
9070 echo "configure: failed program was:" >&5
9071 cat conftest.$ac_ext >&5
9073 eval "ac_cv_header_$ac_safe=no"
9076 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9077 echo "$ac_t""yes" 1>&6
9078 ac_safe=`echo "$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
9079 echo $ac_n "checking for $athena_variant/ThreeD.h""... $ac_c" 1>&6
9080 echo "configure:9081: checking for $athena_variant/ThreeD.h" >&5
9082 cat > conftest.$ac_ext <<EOF
9083 #line 9084 "configure"
9084 #include "confdefs.h"
9085 #include <$athena_variant/ThreeD.h>
9087 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9088 { (eval echo configure:9089: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9089 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9090 if test -z "$ac_err"; then
9092 eval "ac_cv_header_$ac_safe=yes"
9095 echo "configure: failed program was:" >&5
9096 cat conftest.$ac_ext >&5
9098 eval "ac_cv_header_$ac_safe=no"
9101 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9102 echo "$ac_t""yes" 1>&6
9103 athena_h_path=$athena_variant
9105 echo "$ac_t""no" 1>&6
9109 echo "$ac_t""no" 1>&6
9114 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
9115 ac_safe=`echo "X11/Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
9116 echo $ac_n "checking for X11/Xaw3d/XawInit.h""... $ac_c" 1>&6
9117 echo "configure:9118: checking for X11/Xaw3d/XawInit.h" >&5
9119 cat > conftest.$ac_ext <<EOF
9120 #line 9121 "configure"
9121 #include "confdefs.h"
9122 #include <X11/Xaw3d/XawInit.h>
9124 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9125 { (eval echo configure:9126: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9126 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9127 if test -z "$ac_err"; then
9129 eval "ac_cv_header_$ac_safe=yes"
9132 echo "configure: failed program was:" >&5
9133 cat conftest.$ac_ext >&5
9135 eval "ac_cv_header_$ac_safe=no"
9138 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9139 echo "$ac_t""yes" 1>&6
9140 ac_safe=`echo "X11/Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
9141 echo $ac_n "checking for X11/Xaw3d/ThreeD.h""... $ac_c" 1>&6
9142 echo "configure:9143: checking for X11/Xaw3d/ThreeD.h" >&5
9144 cat > conftest.$ac_ext <<EOF
9145 #line 9146 "configure"
9146 #include "confdefs.h"
9147 #include <X11/Xaw3d/ThreeD.h>
9149 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9150 { (eval echo configure:9151: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9151 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9152 if test -z "$ac_err"; then
9154 eval "ac_cv_header_$ac_safe=yes"
9157 echo "configure: failed program was:" >&5
9158 cat conftest.$ac_ext >&5
9160 eval "ac_cv_header_$ac_safe=no"
9163 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9164 echo "$ac_t""yes" 1>&6
9166 echo "configure: warning: "Assuming that X11/Xaw3d headers are suitable for $athena_variant."" 1>&2
9167 athena_h_path=X11/Xaw3d
9170 echo "$ac_t""no" 1>&6
9174 echo "$ac_t""no" 1>&6
9179 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
9180 ac_safe=`echo "Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
9181 echo $ac_n "checking for Xaw3d/XawInit.h""... $ac_c" 1>&6
9182 echo "configure:9183: checking for Xaw3d/XawInit.h" >&5
9184 cat > conftest.$ac_ext <<EOF
9185 #line 9186 "configure"
9186 #include "confdefs.h"
9187 #include <Xaw3d/XawInit.h>
9189 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9190 { (eval echo configure:9191: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9191 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9192 if test -z "$ac_err"; then
9194 eval "ac_cv_header_$ac_safe=yes"
9197 echo "configure: failed program was:" >&5
9198 cat conftest.$ac_ext >&5
9200 eval "ac_cv_header_$ac_safe=no"
9203 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9204 echo "$ac_t""yes" 1>&6
9205 ac_safe=`echo "Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
9206 echo $ac_n "checking for Xaw3d/ThreeD.h""... $ac_c" 1>&6
9207 echo "configure:9208: checking for Xaw3d/ThreeD.h" >&5
9209 cat > conftest.$ac_ext <<EOF
9210 #line 9211 "configure"
9211 #include "confdefs.h"
9212 #include <Xaw3d/ThreeD.h>
9214 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9215 { (eval echo configure:9216: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9216 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9217 if test -z "$ac_err"; then
9219 eval "ac_cv_header_$ac_safe=yes"
9222 echo "configure: failed program was:" >&5
9223 cat conftest.$ac_ext >&5
9225 eval "ac_cv_header_$ac_safe=no"
9228 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9229 echo "$ac_t""yes" 1>&6
9231 echo "configure: warning: "Assuming that Xaw3d headers are suitable for $athena_variant."" 1>&2
9235 echo "$ac_t""no" 1>&6
9239 echo "$ac_t""no" 1>&6
9244 if test -z "$athena_h_path"; then
9245 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
9246 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
9247 echo "configure:9248: checking for X11/Xaw/ThreeD.h" >&5
9249 cat > conftest.$ac_ext <<EOF
9250 #line 9251 "configure"
9251 #include "confdefs.h"
9252 #include <X11/Xaw/ThreeD.h>
9254 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9255 { (eval echo configure:9256: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9256 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9257 if test -z "$ac_err"; then
9259 eval "ac_cv_header_$ac_safe=yes"
9262 echo "configure: failed program was:" >&5
9263 cat conftest.$ac_ext >&5
9265 eval "ac_cv_header_$ac_safe=no"
9268 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9269 echo "$ac_t""yes" 1>&6
9271 echo "configure: warning: "Assuming that X11/Xaw headers are suitable for $athena_variant."" 1>&2
9272 athena_h_path=X11/Xaw
9275 echo "$ac_t""no" 1>&6
9276 echo "configure: warning: "Could not find a suitable 3d Athena header set."" 1>&2
9282 if test -n "$athena_lib" -a -n "$athena_h_path"; then
9288 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
9289 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
9290 echo "configure:9291: checking for Xm/Xm.h" >&5
9292 cat > conftest.$ac_ext <<EOF
9293 #line 9294 "configure"
9294 #include "confdefs.h"
9297 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9298 { (eval echo configure:9299: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9299 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9300 if test -z "$ac_err"; then
9302 eval "ac_cv_header_$ac_safe=yes"
9305 echo "configure: failed program was:" >&5
9306 cat conftest.$ac_ext >&5
9308 eval "ac_cv_header_$ac_safe=no"
9311 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9312 echo "$ac_t""yes" 1>&6
9314 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
9315 echo "configure:9316: checking for XmStringFree in -lXm" >&5
9316 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
9318 xe_check_libs=" -lXm "
9319 cat > conftest.$ac_ext <<EOF
9320 #line 9321 "configure"
9321 #include "confdefs.h"
9322 /* Override any gcc2 internal prototype to avoid an error. */
9323 /* We use char because int might match the return type of a gcc2
9324 builtin and then its argument prototype would still apply. */
9325 char XmStringFree();
9331 if { (eval echo configure:9332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9333 eval "ac_cv_lib_$ac_lib_var=yes"
9335 echo "configure: failed program was:" >&5
9336 cat conftest.$ac_ext >&5
9338 eval "ac_cv_lib_$ac_lib_var=no"
9343 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9344 echo "$ac_t""yes" 1>&6
9347 echo "$ac_t""no" 1>&6
9353 echo "$ac_t""no" 1>&6
9358 if test "$have_motif" = "yes"; then
9359 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6
9360 echo "configure:9361: checking for Lesstif" >&5
9361 cat > conftest.$ac_ext <<EOF
9362 #line 9363 "configure"
9363 #include "confdefs.h"
9365 #ifdef LESSTIF_VERSION
9370 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9371 egrep "yes" >/dev/null 2>&1; then
9380 echo "$ac_t""$have_lesstif" 1>&6
9385 case "$with_menubars" in "" | "yes" | "athena" )
9386 with_menubars="lucid" ;;
9388 case "$with_dialogs" in "" | "yes" | "lucid" )
9389 if test "$have_motif" = "yes"; then with_dialogs="motif"
9390 elif test "$have_xaw" = "yes"; then with_dialogs="athena"
9391 else with_dialogs=no
9394 case "$with_scrollbars" in "" | "yes" )
9395 with_scrollbars="lucid" ;;
9397 case "$with_widgets" in "" | "yes" | "lucid")
9398 if test "$have_motif" = "yes"; then with_widgets="motif"
9399 elif test "$have_xaw" = "yes"; then with_widgets="athena"
9400 else with_widgets=no
9404 all_widgets="$with_menubars $with_scrollbars $with_dialogs $with_toolbars $with_widgets"
9406 case "$all_widgets" in
9408 if test "$have_xaw" != "yes"; then
9409 { echo "Error:" "Could not find a suitable Athena library to build with." >&2; exit 1; }
9412 lwlib_objs="$lwlib_objs lwlib-Xaw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xaw.o\" to \$lwlib_objs"; fi
9414 libs_x="-l$athena_lib $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$athena_lib\" to \$libs_x"; fi
9416 { test "$extra_verbose" = "yes" && cat << EOF
9417 Defining ATHENA_Scrollbar_h_ = "$athena_h_path/Scrollbar.h"
9419 cat >> confdefs.h <<EOF
9420 #define ATHENA_Scrollbar_h_ "$athena_h_path/Scrollbar.h"
9424 { test "$extra_verbose" = "yes" && cat << EOF
9425 Defining ATHENA_Dialog_h_ = "$athena_h_path/Dialog.h"
9427 cat >> confdefs.h <<EOF
9428 #define ATHENA_Dialog_h_ "$athena_h_path/Dialog.h"
9432 { test "$extra_verbose" = "yes" && cat << EOF
9433 Defining ATHENA_Form_h_ = "$athena_h_path/Form.h"
9435 cat >> confdefs.h <<EOF
9436 #define ATHENA_Form_h_ "$athena_h_path/Form.h"
9440 { test "$extra_verbose" = "yes" && cat << EOF
9441 Defining ATHENA_Command_h_ = "$athena_h_path/Command.h"
9443 cat >> confdefs.h <<EOF
9444 #define ATHENA_Command_h_ "$athena_h_path/Command.h"
9448 { test "$extra_verbose" = "yes" && cat << EOF
9449 Defining ATHENA_Label_h_ = "$athena_h_path/Label.h"
9451 cat >> confdefs.h <<EOF
9452 #define ATHENA_Label_h_ "$athena_h_path/Label.h"
9456 { test "$extra_verbose" = "yes" && cat << EOF
9457 Defining ATHENA_LabelP_h_ = "$athena_h_path/LabelP.h"
9459 cat >> confdefs.h <<EOF
9460 #define ATHENA_LabelP_h_ "$athena_h_path/LabelP.h"
9464 { test "$extra_verbose" = "yes" && cat << EOF
9465 Defining ATHENA_Toggle_h_ = "$athena_h_path/Toggle.h"
9467 cat >> confdefs.h <<EOF
9468 #define ATHENA_Toggle_h_ "$athena_h_path/Toggle.h"
9472 { test "$extra_verbose" = "yes" && cat << EOF
9473 Defining ATHENA_ToggleP_h_ = "$athena_h_path/ToggleP.h"
9475 cat >> confdefs.h <<EOF
9476 #define ATHENA_ToggleP_h_ "$athena_h_path/ToggleP.h"
9480 { test "$extra_verbose" = "yes" && cat << EOF
9481 Defining ATHENA_AsciiText_h_ = "$athena_h_path/AsciiText.h"
9483 cat >> confdefs.h <<EOF
9484 #define ATHENA_AsciiText_h_ "$athena_h_path/AsciiText.h"
9488 { test "$extra_verbose" = "yes" && cat << EOF
9489 Defining ATHENA_XawInit_h_ = "$athena_h_path/XawInit.h"
9491 cat >> confdefs.h <<EOF
9492 #define ATHENA_XawInit_h_ "$athena_h_path/XawInit.h"
9497 { test "$extra_verbose" = "yes" && cat << \EOF
9498 Defining LWLIB_USES_ATHENA
9500 cat >> confdefs.h <<\EOF
9501 #define LWLIB_USES_ATHENA 1
9505 { test "$extra_verbose" = "yes" && cat << \EOF
9506 Defining NEED_ATHENA
9508 cat >> confdefs.h <<\EOF
9509 #define NEED_ATHENA 1
9515 if test "$athena_3d" = "yes"; then
9516 { test "$extra_verbose" = "yes" && cat << \EOF
9517 Defining HAVE_ATHENA_3D
9519 cat >> confdefs.h <<\EOF
9520 #define HAVE_ATHENA_3D 1
9528 case "$all_widgets" in *motif* )
9529 { test "$extra_verbose" = "yes" && cat << \EOF
9530 Defining LWLIB_USES_MOTIF
9532 cat >> confdefs.h <<\EOF
9533 #define LWLIB_USES_MOTIF 1
9537 { test "$extra_verbose" = "yes" && cat << \EOF
9540 cat >> confdefs.h <<\EOF
9541 #define NEED_MOTIF 1
9545 lwlib_objs="$lwlib_objs lwlib-Xm.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xm.o\" to \$lwlib_objs"; fi
9549 test "$with_menubars" = "lucid" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
9550 test "$with_menubars" = "motif" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
9551 test "$with_scrollbars" = "lucid" && lwlib_objs="$lwlib_objs xlwscrollbar.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwscrollbar.o\" to \$lwlib_objs"; fi
9552 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
9553 lwlib_objs="$lwlib_objs xlwtabs.o xlwgcs.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwtabs.o xlwgcs.o\" to \$lwlib_objs"; fi
9554 case "$with_widgets" in athena* )
9555 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;;
9557 case "$all_widgets" in *lucid* )
9558 { test "$extra_verbose" = "yes" && cat << \EOF
9561 cat >> confdefs.h <<\EOF
9562 #define NEED_LUCID 1
9566 lwlib_objs="$lwlib_objs lwlib-Xlw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xlw.o\" to \$lwlib_objs"; fi ;;
9571 test "$with_scrollbars" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
9572 Defining LWLIB_SCROLLBARS_ATHENA
9574 cat >> confdefs.h <<\EOF
9575 #define LWLIB_SCROLLBARS_ATHENA 1
9579 test "$with_dialogs" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
9580 Defining LWLIB_DIALOGS_ATHENA
9582 cat >> confdefs.h <<\EOF
9583 #define LWLIB_DIALOGS_ATHENA 1
9588 if test "$athena_3d" = "yes"; then
9589 test "$with_scrollbars" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
9590 Defining LWLIB_SCROLLBARS_ATHENA3D
9592 cat >> confdefs.h <<\EOF
9593 #define LWLIB_SCROLLBARS_ATHENA3D 1
9597 test "$with_dialogs" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
9598 Defining LWLIB_DIALOGS_ATHENA3D
9600 cat >> confdefs.h <<\EOF
9601 #define LWLIB_DIALOGS_ATHENA3D 1
9607 case "$with_widgets" in athena* ) { test "$extra_verbose" = "yes" && cat << \EOF
9608 Defining LWLIB_WIDGETS_ATHENA
9610 cat >> confdefs.h <<\EOF
9611 #define LWLIB_WIDGETS_ATHENA 1
9615 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
9616 { test "$extra_verbose" = "yes" && cat << \EOF
9617 Defining LWLIB_TABS_LUCID
9619 cat >> confdefs.h <<\EOF
9620 #define LWLIB_TABS_LUCID 1
9625 test "$with_menubars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9626 Defining HAVE_MENUBARS
9628 cat >> confdefs.h <<\EOF
9629 #define HAVE_MENUBARS 1
9633 test "$with_scrollbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9634 Defining HAVE_SCROLLBARS
9636 cat >> confdefs.h <<\EOF
9637 #define HAVE_SCROLLBARS 1
9641 test "$with_dialogs" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9642 Defining HAVE_DIALOGS
9644 cat >> confdefs.h <<\EOF
9645 #define HAVE_DIALOGS 1
9649 test "$with_toolbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9650 Defining HAVE_TOOLBARS
9652 cat >> confdefs.h <<\EOF
9653 #define HAVE_TOOLBARS 1
9657 test "$with_widgets" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9658 Defining HAVE_WIDGETS
9660 cat >> confdefs.h <<\EOF
9661 #define HAVE_WIDGETS 1
9666 test "$with_menubars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
9667 Defining LWLIB_MENUBARS_LUCID
9669 cat >> confdefs.h <<\EOF
9670 #define LWLIB_MENUBARS_LUCID 1
9674 test "$with_scrollbars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
9675 Defining LWLIB_SCROLLBARS_LUCID
9677 cat >> confdefs.h <<\EOF
9678 #define LWLIB_SCROLLBARS_LUCID 1
9683 test "$with_menubars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9684 Defining LWLIB_MENUBARS_MOTIF
9686 cat >> confdefs.h <<\EOF
9687 #define LWLIB_MENUBARS_MOTIF 1
9691 test "$with_scrollbars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9692 Defining LWLIB_SCROLLBARS_MOTIF
9694 cat >> confdefs.h <<\EOF
9695 #define LWLIB_SCROLLBARS_MOTIF 1
9699 test "$with_dialogs" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9700 Defining LWLIB_DIALOGS_MOTIF
9702 cat >> confdefs.h <<\EOF
9703 #define LWLIB_DIALOGS_MOTIF 1
9707 test "$with_widgets" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9708 Defining LWLIB_WIDGETS_MOTIF
9710 cat >> confdefs.h <<\EOF
9711 #define LWLIB_WIDGETS_MOTIF 1
9716 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar.o" && if test "$extra_verbose" = "yes"; then
9717 echo " xemacs will be linked with \"menubar.o\""
9719 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar.o" && if test "$extra_verbose" = "yes"; then
9720 echo " xemacs will be linked with \"scrollbar.o\""
9722 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog.o" && if test "$extra_verbose" = "yes"; then
9723 echo " xemacs will be linked with \"dialog.o\""
9725 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar.o" && if test "$extra_verbose" = "yes"; then
9726 echo " xemacs will be linked with \"toolbar.o\""
9729 if test "$with_gtk" = "yes"; then
9730 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-gtk.o" && if test "$extra_verbose" = "yes"; then
9731 echo " xemacs will be linked with \"menubar-gtk.o\""
9733 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-gtk.o" && if test "$extra_verbose" = "yes"; then
9734 echo " xemacs will be linked with \"scrollbar-gtk.o\""
9736 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-gtk.o" && if test "$extra_verbose" = "yes"; then
9737 echo " xemacs will be linked with \"dialog-gtk.o\""
9739 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-gtk.o" && if test "$extra_verbose" = "yes"; then
9740 echo " xemacs will be linked with \"toolbar-gtk.o\""
9742 test "$all_widgets" != "no no no no no" && extra_objs="$extra_objs gui-gtk.o" && if test "$extra_verbose" = "yes"; then
9743 echo " xemacs will be linked with \"gui-gtk.o\""
9747 if test "$with_x11" = "yes"; then
9748 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-x.o" && if test "$extra_verbose" = "yes"; then
9749 echo " xemacs will be linked with \"menubar-x.o\""
9751 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-x.o" && if test "$extra_verbose" = "yes"; then
9752 echo " xemacs will be linked with \"scrollbar-x.o\""
9754 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-x.o" && if test "$extra_verbose" = "yes"; then
9755 echo " xemacs will be linked with \"dialog-x.o\""
9757 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-x.o" && if test "$extra_verbose" = "yes"; then
9758 echo " xemacs will be linked with \"toolbar-x.o\""
9760 test "$all_widgets" != "no no no no no" && extra_objs="$extra_objs gui-x.o" && if test "$extra_verbose" = "yes"; then
9761 echo " xemacs will be linked with \"gui-x.o\""
9766 test -z "$with_mule" && with_mule=no
9767 test -z "$with_file_coding" && with_file_coding=no
9770 if test "$with_file_coding" = "yes" && test "$with_mule" = "no"; then
9771 { test "$extra_verbose" = "yes" && cat << \EOF
9772 Defining FILE_CODING
9774 cat >> confdefs.h <<\EOF
9775 #define FILE_CODING 1
9779 extra_objs="$extra_objs file-coding.o" && if test "$extra_verbose" = "yes"; then
9780 echo " xemacs will be linked with \"file-coding.o\""
9784 if test "$with_mule" = "yes" ; then
9785 echo "checking for Mule-related features" 1>&6
9786 echo "configure:9787: checking for Mule-related features" >&5
9787 { test "$extra_verbose" = "yes" && cat << \EOF
9790 cat >> confdefs.h <<\EOF
9795 { test "$extra_verbose" = "yes" && cat << \EOF
9796 Defining FILE_CODING
9798 cat >> confdefs.h <<\EOF
9799 #define FILE_CODING 1
9803 extra_objs="$extra_objs mule.o mule-ccl.o mule-charset.o file-coding.o" && if test "$extra_verbose" = "yes"; then
9804 echo " xemacs will be linked with \"mule.o mule-ccl.o mule-charset.o file-coding.o\""
9807 for ac_hdr in libintl.h
9809 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9810 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9811 echo "configure:9812: checking for $ac_hdr" >&5
9813 cat > conftest.$ac_ext <<EOF
9814 #line 9815 "configure"
9815 #include "confdefs.h"
9818 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9819 { (eval echo configure:9820: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9820 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9821 if test -z "$ac_err"; then
9823 eval "ac_cv_header_$ac_safe=yes"
9826 echo "configure: failed program was:" >&5
9827 cat conftest.$ac_ext >&5
9829 eval "ac_cv_header_$ac_safe=no"
9832 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9833 echo "$ac_t""yes" 1>&6
9834 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9835 { test "$extra_verbose" = "yes" && cat << EOF
9838 cat >> confdefs.h <<EOF
9839 #define $ac_tr_hdr 1
9844 echo "$ac_t""no" 1>&6
9849 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
9850 echo "configure:9851: checking for strerror in -lintl" >&5
9851 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
9853 xe_check_libs=" -lintl "
9854 cat > conftest.$ac_ext <<EOF
9855 #line 9856 "configure"
9856 #include "confdefs.h"
9857 /* Override any gcc2 internal prototype to avoid an error. */
9858 /* We use char because int might match the return type of a gcc2
9859 builtin and then its argument prototype would still apply. */
9866 if { (eval echo configure:9867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9868 eval "ac_cv_lib_$ac_lib_var=yes"
9870 echo "configure: failed program was:" >&5
9871 cat conftest.$ac_ext >&5
9873 eval "ac_cv_lib_$ac_lib_var=no"
9878 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9879 echo "$ac_t""yes" 1>&6
9880 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9881 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9882 { test "$extra_verbose" = "yes" && cat << EOF
9885 cat >> confdefs.h <<EOF
9886 #define $ac_tr_lib 1
9890 LIBS="-lintl $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lintl\" to \$LIBS"; fi
9893 echo "$ac_t""no" 1>&6
9898 echo "checking for Mule input methods" 1>&6
9899 echo "configure:9900: checking for Mule input methods" >&5
9900 case "$with_xim" in "" | "yes" )
9901 echo "checking for XIM" 1>&6
9902 echo "configure:9903: checking for XIM" >&5
9904 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6
9905 echo "configure:9906: checking for XOpenIM in -lX11" >&5
9906 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'`
9908 xe_check_libs=" -lX11 "
9909 cat > conftest.$ac_ext <<EOF
9910 #line 9911 "configure"
9911 #include "confdefs.h"
9912 /* Override any gcc2 internal prototype to avoid an error. */
9913 /* We use char because int might match the return type of a gcc2
9914 builtin and then its argument prototype would still apply. */
9921 if { (eval echo configure:9922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9923 eval "ac_cv_lib_$ac_lib_var=yes"
9925 echo "configure: failed program was:" >&5
9926 cat conftest.$ac_ext >&5
9928 eval "ac_cv_lib_$ac_lib_var=no"
9933 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9934 echo "$ac_t""yes" 1>&6
9937 echo "$ac_t""no" 1>&6
9942 if test "$have_motif $have_lesstif" = "yes no"; then
9944 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
9945 echo "configure:9946: checking for XmImMbLookupString in -lXm" >&5
9946 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
9948 xe_check_libs=" -lXm "
9949 cat > conftest.$ac_ext <<EOF
9950 #line 9951 "configure"
9951 #include "confdefs.h"
9952 /* Override any gcc2 internal prototype to avoid an error. */
9953 /* We use char because int might match the return type of a gcc2
9954 builtin and then its argument prototype would still apply. */
9955 char XmImMbLookupString();
9958 XmImMbLookupString()
9961 if { (eval echo configure:9962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9963 eval "ac_cv_lib_$ac_lib_var=yes"
9965 echo "configure: failed program was:" >&5
9966 cat conftest.$ac_ext >&5
9968 eval "ac_cv_lib_$ac_lib_var=no"
9973 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9974 echo "$ac_t""yes" 1>&6
9977 echo "$ac_t""no" 1>&6
9983 if test "$with_xim" != "no"; then
9984 { test "$extra_verbose" = "yes" && cat << \EOF
9987 cat >> confdefs.h <<\EOF
9992 if test "$with_xim" = "xlib"; then
9993 { test "$extra_verbose" = "yes" && cat << \EOF
9996 cat >> confdefs.h <<\EOF
10001 extra_objs="$extra_objs input-method-xlib.o" && if test "$extra_verbose" = "yes"; then
10002 echo " xemacs will be linked with \"input-method-xlib.o\""
10005 if test "$with_xim" = "motif"; then
10006 { test "$extra_verbose" = "yes" && cat << \EOF
10009 cat >> confdefs.h <<\EOF
10010 #define XIM_MOTIF 1
10015 extra_objs="$extra_objs input-method-motif.o" && if test "$extra_verbose" = "yes"; then
10016 echo " xemacs will be linked with \"input-method-motif.o\""
10019 if test "$with_xim" = "motif"; then
10024 if test "$with_xfs" = "yes" ; then
10025 echo "checking for XFontSet" 1>&6
10026 echo "configure:10027: checking for XFontSet" >&5
10028 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6
10029 echo "configure:10030: checking for XmbDrawString in -lX11" >&5
10030 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
10032 xe_check_libs=" -lX11 "
10033 cat > conftest.$ac_ext <<EOF
10034 #line 10035 "configure"
10035 #include "confdefs.h"
10036 /* Override any gcc2 internal prototype to avoid an error. */
10037 /* We use char because int might match the return type of a gcc2
10038 builtin and then its argument prototype would still apply. */
10039 char XmbDrawString();
10045 if { (eval echo configure:10046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10047 eval "ac_cv_lib_$ac_lib_var=yes"
10049 echo "configure: failed program was:" >&5
10050 cat conftest.$ac_ext >&5
10052 eval "ac_cv_lib_$ac_lib_var=no"
10057 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10058 echo "$ac_t""yes" 1>&6
10061 echo "$ac_t""no" 1>&6
10066 if test "$with_xfs" = "yes" && test "$with_menubars" = "lucid"; then
10067 { test "$extra_verbose" = "yes" && cat << \EOF
10068 Defining USE_XFONTSET
10070 cat >> confdefs.h <<\EOF
10071 #define USE_XFONTSET 1
10075 if test "$with_xim" = "no" ; then
10076 extra_objs="$extra_objs input-method-xlib.o" && if test "$extra_verbose" = "yes"; then
10077 echo " xemacs will be linked with \"input-method-xlib.o\""
10082 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
10083 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
10084 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
10085 echo "configure:10086: checking for wnn/jllib.h" >&5
10087 cat > conftest.$ac_ext <<EOF
10088 #line 10089 "configure"
10089 #include "confdefs.h"
10090 #include <wnn/jllib.h>
10092 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10093 { (eval echo configure:10094: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10094 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10095 if test -z "$ac_err"; then
10097 eval "ac_cv_header_$ac_safe=yes"
10100 echo "configure: failed program was:" >&5
10101 cat conftest.$ac_ext >&5
10103 eval "ac_cv_header_$ac_safe=no"
10106 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10107 echo "$ac_t""yes" 1>&6
10110 echo "$ac_t""no" 1>&6
10114 test -z "$with_wnn" && { ac_safe=`echo "wnn/commonhd.h" | sed 'y%./+-%__p_%'`
10115 echo $ac_n "checking for wnn/commonhd.h""... $ac_c" 1>&6
10116 echo "configure:10117: checking for wnn/commonhd.h" >&5
10118 cat > conftest.$ac_ext <<EOF
10119 #line 10120 "configure"
10120 #include "confdefs.h"
10121 #include <wnn/commonhd.h>
10123 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10124 { (eval echo configure:10125: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10125 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10126 if test -z "$ac_err"; then
10128 eval "ac_cv_header_$ac_safe=yes"
10131 echo "configure: failed program was:" >&5
10132 cat conftest.$ac_ext >&5
10134 eval "ac_cv_header_$ac_safe=no"
10137 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10138 echo "$ac_t""yes" 1>&6
10141 echo "$ac_t""no" 1>&6
10145 if test "$with_wnn" != "no"; then
10146 for ac_func in crypt
10148 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10149 echo "configure:10150: checking for $ac_func" >&5
10151 cat > conftest.$ac_ext <<EOF
10152 #line 10153 "configure"
10153 #include "confdefs.h"
10154 /* System header to define __stub macros and hopefully few prototypes,
10155 which can conflict with char $ac_func(); below. */
10156 #include <assert.h>
10157 /* Override any gcc2 internal prototype to avoid an error. */
10158 /* We use char because int might match the return type of a gcc2
10159 builtin and then its argument prototype would still apply. */
10164 /* The GNU C library defines this for functions which it implements
10165 to always fail with ENOSYS. Some functions are actually named
10166 something starting with __ and the normal name is an alias. */
10167 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10175 if { (eval echo configure:10176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10177 eval "ac_cv_func_$ac_func=yes"
10179 echo "configure: failed program was:" >&5
10180 cat conftest.$ac_ext >&5
10182 eval "ac_cv_func_$ac_func=no"
10186 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10187 echo "$ac_t""yes" 1>&6
10188 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10189 { test "$extra_verbose" = "yes" && cat << EOF
10190 Defining $ac_tr_func
10192 cat >> confdefs.h <<EOF
10193 #define $ac_tr_func 1
10198 echo "$ac_t""no" 1>&6
10202 test "$ac_cv_func_crypt" != "yes" && {
10203 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
10204 echo "configure:10205: checking for crypt in -lcrypt" >&5
10205 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
10207 xe_check_libs=" -lcrypt "
10208 cat > conftest.$ac_ext <<EOF
10209 #line 10210 "configure"
10210 #include "confdefs.h"
10211 /* Override any gcc2 internal prototype to avoid an error. */
10212 /* We use char because int might match the return type of a gcc2
10213 builtin and then its argument prototype would still apply. */
10220 if { (eval echo configure:10221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10222 eval "ac_cv_lib_$ac_lib_var=yes"
10224 echo "configure: failed program was:" >&5
10225 cat conftest.$ac_ext >&5
10227 eval "ac_cv_lib_$ac_lib_var=no"
10232 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10233 echo "$ac_t""yes" 1>&6
10234 ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10235 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10236 { test "$extra_verbose" = "yes" && cat << EOF
10237 Defining $ac_tr_lib
10239 cat >> confdefs.h <<EOF
10240 #define $ac_tr_lib 1
10244 LIBS="-lcrypt $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcrypt\" to \$LIBS"; fi
10247 echo "$ac_t""no" 1>&6
10252 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then
10254 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
10255 echo "configure:10256: checking for jl_dic_list_e in -lwnn" >&5
10256 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
10258 xe_check_libs=" -lwnn "
10259 cat > conftest.$ac_ext <<EOF
10260 #line 10261 "configure"
10261 #include "confdefs.h"
10262 /* Override any gcc2 internal prototype to avoid an error. */
10263 /* We use char because int might match the return type of a gcc2
10264 builtin and then its argument prototype would still apply. */
10265 char jl_dic_list_e();
10271 if { (eval echo configure:10272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10273 eval "ac_cv_lib_$ac_lib_var=yes"
10275 echo "configure: failed program was:" >&5
10276 cat conftest.$ac_ext >&5
10278 eval "ac_cv_lib_$ac_lib_var=no"
10283 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10284 echo "$ac_t""yes" 1>&6
10287 echo "$ac_t""no" 1>&6
10288 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6
10289 echo "configure:10290: checking for jl_dic_list_e in -lwnn4" >&5
10290 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
10292 xe_check_libs=" -lwnn4 "
10293 cat > conftest.$ac_ext <<EOF
10294 #line 10295 "configure"
10295 #include "confdefs.h"
10296 /* Override any gcc2 internal prototype to avoid an error. */
10297 /* We use char because int might match the return type of a gcc2
10298 builtin and then its argument prototype would still apply. */
10299 char jl_dic_list_e();
10305 if { (eval echo configure:10306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10307 eval "ac_cv_lib_$ac_lib_var=yes"
10309 echo "configure: failed program was:" >&5
10310 cat conftest.$ac_ext >&5
10312 eval "ac_cv_lib_$ac_lib_var=no"
10317 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10318 echo "$ac_t""yes" 1>&6
10321 echo "$ac_t""no" 1>&6
10322 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6
10323 echo "configure:10324: checking for jl_dic_list_e in -lwnn6" >&5
10324 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
10326 xe_check_libs=" -lwnn6 "
10327 cat > conftest.$ac_ext <<EOF
10328 #line 10329 "configure"
10329 #include "confdefs.h"
10330 /* Override any gcc2 internal prototype to avoid an error. */
10331 /* We use char because int might match the return type of a gcc2
10332 builtin and then its argument prototype would still apply. */
10333 char jl_dic_list_e();
10339 if { (eval echo configure:10340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10341 eval "ac_cv_lib_$ac_lib_var=yes"
10343 echo "configure: failed program was:" >&5
10344 cat conftest.$ac_ext >&5
10346 eval "ac_cv_lib_$ac_lib_var=no"
10351 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10352 echo "$ac_t""yes" 1>&6
10355 echo "$ac_t""no" 1>&6
10356 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6
10357 echo "configure:10358: checking for dic_list_e in -lwnn6_fromsrc" >&5
10358 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'`
10360 xe_check_libs=" -lwnn6_fromsrc "
10361 cat > conftest.$ac_ext <<EOF
10362 #line 10363 "configure"
10363 #include "confdefs.h"
10364 /* Override any gcc2 internal prototype to avoid an error. */
10365 /* We use char because int might match the return type of a gcc2
10366 builtin and then its argument prototype would still apply. */
10373 if { (eval echo configure:10374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10375 eval "ac_cv_lib_$ac_lib_var=yes"
10377 echo "configure: failed program was:" >&5
10378 cat conftest.$ac_ext >&5
10380 eval "ac_cv_lib_$ac_lib_var=no"
10385 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10386 echo "$ac_t""yes" 1>&6
10387 libwnn=wnn6_fromsrc
10389 echo "$ac_t""no" 1>&6
10404 test -z "$with_wnn" && with_wnn=yes
10405 if test "$with_wnn" = "yes"; then
10406 { test "$extra_verbose" = "yes" && cat << \EOF
10409 cat >> confdefs.h <<\EOF
10414 libs_x="-l$libwnn $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$libwnn\" to \$libs_x"; fi
10415 extra_objs="$extra_objs mule-wnnfns.o" && if test "$extra_verbose" = "yes"; then
10416 echo " xemacs will be linked with \"mule-wnnfns.o\""
10418 if test "$with_wnn6" != "no"; then
10420 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6
10421 echo "configure:10422: checking for jl_fi_dic_list in -l$libwnn" >&5
10422 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
10424 xe_check_libs=" -l$libwnn "
10425 cat > conftest.$ac_ext <<EOF
10426 #line 10427 "configure"
10427 #include "confdefs.h"
10428 /* Override any gcc2 internal prototype to avoid an error. */
10429 /* We use char because int might match the return type of a gcc2
10430 builtin and then its argument prototype would still apply. */
10431 char jl_fi_dic_list();
10437 if { (eval echo configure:10438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10439 eval "ac_cv_lib_$ac_lib_var=yes"
10441 echo "configure: failed program was:" >&5
10442 cat conftest.$ac_ext >&5
10444 eval "ac_cv_lib_$ac_lib_var=no"
10449 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10450 echo "$ac_t""yes" 1>&6
10453 echo "$ac_t""no" 1>&6
10457 test "$with_wnn6" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
10460 cat >> confdefs.h <<\EOF
10468 canna_includes_found=no
10469 if test "$with_canna" != "no"; then
10470 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
10471 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
10472 echo "configure:10473: checking for canna/jrkanji.h" >&5
10474 cat > conftest.$ac_ext <<EOF
10475 #line 10476 "configure"
10476 #include "confdefs.h"
10477 #include <canna/jrkanji.h>
10479 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10480 { (eval echo configure:10481: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10481 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10482 if test -z "$ac_err"; then
10484 eval "ac_cv_header_$ac_safe=yes"
10487 echo "configure: failed program was:" >&5
10488 cat conftest.$ac_ext >&5
10490 eval "ac_cv_header_$ac_safe=no"
10493 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10494 echo "$ac_t""yes" 1>&6
10495 canna_includes_found=yes
10497 echo "$ac_t""no" 1>&6
10501 if test "$canna_includes_found" = "no" -a "$with_canna" != "no" -a \
10502 -d "/usr/local/canna/include"; then
10503 save_c_switch_site="$c_switch_site"
10504 c_switch_site="$c_switch_site -I/usr/local/canna/include"
10505 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
10506 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
10507 echo "configure:10508: checking for canna/jrkanji.h" >&5
10509 cat > conftest.$ac_ext <<EOF
10510 #line 10511 "configure"
10511 #include "confdefs.h"
10512 #include <canna/jrkanji.h>
10514 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10515 { (eval echo configure:10516: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10516 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10517 if test -z "$ac_err"; then
10519 eval "ac_cv_header_$ac_safe=yes"
10522 echo "configure: failed program was:" >&5
10523 cat conftest.$ac_ext >&5
10525 eval "ac_cv_header_$ac_safe=no"
10528 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10529 echo "$ac_t""yes" 1>&6
10530 canna_includes_found=yes
10532 echo "$ac_t""no" 1>&6
10535 if test "$canna_includes_found" != "yes"; then
10536 c_switch_site="$save_c_switch_site"
10541 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
10542 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
10543 echo "configure:10544: checking for canna/RK.h" >&5
10545 cat > conftest.$ac_ext <<EOF
10546 #line 10547 "configure"
10547 #include "confdefs.h"
10548 #include <canna/RK.h>
10550 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10551 { (eval echo configure:10552: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10552 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10553 if test -z "$ac_err"; then
10555 eval "ac_cv_header_$ac_safe=yes"
10558 echo "configure: failed program was:" >&5
10559 cat conftest.$ac_ext >&5
10561 eval "ac_cv_header_$ac_safe=no"
10564 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10565 echo "$ac_t""yes" 1>&6
10568 echo "$ac_t""no" 1>&6
10572 test -z "$with_canna" && {
10573 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
10574 echo "configure:10575: checking for RkBgnBun in -lRKC" >&5
10575 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
10577 xe_check_libs=" -lRKC "
10578 cat > conftest.$ac_ext <<EOF
10579 #line 10580 "configure"
10580 #include "confdefs.h"
10581 /* Override any gcc2 internal prototype to avoid an error. */
10582 /* We use char because int might match the return type of a gcc2
10583 builtin and then its argument prototype would still apply. */
10590 if { (eval echo configure:10591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10592 eval "ac_cv_lib_$ac_lib_var=yes"
10594 echo "configure: failed program was:" >&5
10595 cat conftest.$ac_ext >&5
10597 eval "ac_cv_lib_$ac_lib_var=no"
10602 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10603 echo "$ac_t""yes" 1>&6
10606 echo "$ac_t""no" 1>&6
10611 test -z "$with_canna" && {
10612 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
10613 echo "configure:10614: checking for jrKanjiControl in -lcanna" >&5
10614 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
10616 xe_check_libs=" -lcanna "
10617 cat > conftest.$ac_ext <<EOF
10618 #line 10619 "configure"
10619 #include "confdefs.h"
10620 /* Override any gcc2 internal prototype to avoid an error. */
10621 /* We use char because int might match the return type of a gcc2
10622 builtin and then its argument prototype would still apply. */
10623 char jrKanjiControl();
10629 if { (eval echo configure:10630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10631 eval "ac_cv_lib_$ac_lib_var=yes"
10633 echo "configure: failed program was:" >&5
10634 cat conftest.$ac_ext >&5
10636 eval "ac_cv_lib_$ac_lib_var=no"
10641 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10642 echo "$ac_t""yes" 1>&6
10645 echo "$ac_t""no" 1>&6
10650 test -z "$with_canna" && with_canna=yes
10651 if test "$with_canna" = "yes"; then
10652 { test "$extra_verbose" = "yes" && cat << \EOF
10653 Defining HAVE_CANNA
10655 cat >> confdefs.h <<\EOF
10656 #define HAVE_CANNA 1
10660 libs_x="-lcanna -lRKC $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcanna -lRKC\" to \$libs_x"; fi
10661 extra_objs="$extra_objs mule-canna.o" && if test "$extra_verbose" = "yes"; then
10662 echo " xemacs will be linked with \"mule-canna.o\""
10666 else for feature in xim canna wnn; do
10667 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
10668 echo "configure: warning: "--with-${feature} ignored: Not valid without Mule support"" 1>&2
10670 eval "with_${feature}=no"
10674 if test "$need_motif" = "yes" ; then
10675 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi
10677 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6
10678 echo "configure:10679: checking for layout_object_getvalue in -li18n" >&5
10679 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'`
10681 xe_check_libs=" -li18n "
10682 cat > conftest.$ac_ext <<EOF
10683 #line 10684 "configure"
10684 #include "confdefs.h"
10685 /* Override any gcc2 internal prototype to avoid an error. */
10686 /* We use char because int might match the return type of a gcc2
10687 builtin and then its argument prototype would still apply. */
10688 char layout_object_getvalue();
10691 layout_object_getvalue()
10694 if { (eval echo configure:10695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10696 eval "ac_cv_lib_$ac_lib_var=yes"
10698 echo "configure: failed program was:" >&5
10699 cat conftest.$ac_ext >&5
10701 eval "ac_cv_lib_$ac_lib_var=no"
10706 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10707 echo "$ac_t""yes" 1>&6
10708 libs_x="-li18n $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-li18n\" to \$libs_x"; fi
10710 echo "$ac_t""no" 1>&6
10715 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
10716 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
10717 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
10719 runpath="" runpath_dirs=""
10720 if test -n "$LD_RUN_PATH"; then
10721 runpath="$LD_RUN_PATH"
10722 elif test "$GCC" = "yes"; then
10723 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
10724 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
10725 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
10726 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
10727 case "$arg" in P,* | -L* | -R* )
10728 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
10730 xe_runpath_dir="$dir"
10731 test "$xe_runpath_dir" != "/lib" -a \
10732 "$xe_runpath_dir" != "/usr/lib" -a \
10733 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
10734 eval "$xe_add_unique_runpath_dir"
10739 ld_switch_run="$ld_switch_run_save"
10742 for arg in $ld_switch_site $ld_switch_x_site; do
10743 case "$arg" in -L*) {
10744 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
10745 test "$xe_runpath_dir" != "/lib" -a \
10746 "$xe_runpath_dir" != "/usr/lib" -a \
10747 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
10748 eval "$xe_add_unique_runpath_dir"
10751 if test "$opsys $need_motif" = "sol2 yes"; then
10752 xe_runpath_dir="/opt/SUNWdt/lib";
10753 eval "$xe_add_unique_runpath_dir";
10756 if test -n "$runpath"; then
10757 ld_switch_run="${dash_r}${runpath}"
10759 if test "$GCC" = "yes"; then
10760 set x $ld_switch_run; shift; ld_switch_run=""
10761 while test -n "$1"; do
10763 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
10764 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
10766 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
10771 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
10777 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
10779 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10780 echo "configure:10781: checking for $ac_func" >&5
10782 cat > conftest.$ac_ext <<EOF
10783 #line 10784 "configure"
10784 #include "confdefs.h"
10785 /* System header to define __stub macros and hopefully few prototypes,
10786 which can conflict with char $ac_func(); below. */
10787 #include <assert.h>
10788 /* Override any gcc2 internal prototype to avoid an error. */
10789 /* We use char because int might match the return type of a gcc2
10790 builtin and then its argument prototype would still apply. */
10795 /* The GNU C library defines this for functions which it implements
10796 to always fail with ENOSYS. Some functions are actually named
10797 something starting with __ and the normal name is an alias. */
10798 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10806 if { (eval echo configure:10807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10808 eval "ac_cv_func_$ac_func=yes"
10810 echo "configure: failed program was:" >&5
10811 cat conftest.$ac_ext >&5
10813 eval "ac_cv_func_$ac_func=no"
10817 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10818 echo "$ac_t""yes" 1>&6
10819 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10820 { test "$extra_verbose" = "yes" && cat << EOF
10821 Defining $ac_tr_func
10823 cat >> confdefs.h <<EOF
10824 #define $ac_tr_func 1
10829 echo "$ac_t""no" 1>&6
10835 for ac_func in getpt _getpty grantpt unlockpt ptsname killpg tcgetpgrp
10837 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10838 echo "configure:10839: checking for $ac_func" >&5
10840 cat > conftest.$ac_ext <<EOF
10841 #line 10842 "configure"
10842 #include "confdefs.h"
10843 /* System header to define __stub macros and hopefully few prototypes,
10844 which can conflict with char $ac_func(); below. */
10845 #include <assert.h>
10846 /* Override any gcc2 internal prototype to avoid an error. */
10847 /* We use char because int might match the return type of a gcc2
10848 builtin and then its argument prototype would still apply. */
10853 /* The GNU C library defines this for functions which it implements
10854 to always fail with ENOSYS. Some functions are actually named
10855 something starting with __ and the normal name is an alias. */
10856 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10864 if { (eval echo configure:10865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10866 eval "ac_cv_func_$ac_func=yes"
10868 echo "configure: failed program was:" >&5
10869 cat conftest.$ac_ext >&5
10871 eval "ac_cv_func_$ac_func=no"
10875 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10876 echo "$ac_t""yes" 1>&6
10877 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10878 { test "$extra_verbose" = "yes" && cat << EOF
10879 Defining $ac_tr_func
10881 cat >> confdefs.h <<EOF
10882 #define $ac_tr_func 1
10887 echo "$ac_t""no" 1>&6
10892 echo $ac_n "checking for openpty""... $ac_c" 1>&6
10893 echo "configure:10894: checking for openpty" >&5
10895 cat > conftest.$ac_ext <<EOF
10896 #line 10897 "configure"
10897 #include "confdefs.h"
10898 /* System header to define __stub macros and hopefully few prototypes,
10899 which can conflict with char openpty(); below. */
10900 #include <assert.h>
10901 /* Override any gcc2 internal prototype to avoid an error. */
10902 /* We use char because int might match the return type of a gcc2
10903 builtin and then its argument prototype would still apply. */
10908 /* The GNU C library defines this for functions which it implements
10909 to always fail with ENOSYS. Some functions are actually named
10910 something starting with __ and the normal name is an alias. */
10911 #if defined (__stub_openpty) || defined (__stub___openpty)
10919 if { (eval echo configure:10920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10921 eval "ac_cv_func_openpty=yes"
10923 echo "configure: failed program was:" >&5
10924 cat conftest.$ac_ext >&5
10926 eval "ac_cv_func_openpty=no"
10930 if eval "test \"`echo '$ac_cv_func_'openpty`\" = yes"; then
10931 echo "$ac_t""yes" 1>&6
10934 echo "$ac_t""no" 1>&6
10937 echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6
10938 echo "configure:10939: checking for openpty in -lutil" >&5
10939 ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'`
10941 xe_check_libs=" -lutil "
10942 cat > conftest.$ac_ext <<EOF
10943 #line 10944 "configure"
10944 #include "confdefs.h"
10945 /* Override any gcc2 internal prototype to avoid an error. */
10946 /* We use char because int might match the return type of a gcc2
10947 builtin and then its argument prototype would still apply. */
10954 if { (eval echo configure:10955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10956 eval "ac_cv_lib_$ac_lib_var=yes"
10958 echo "configure: failed program was:" >&5
10959 cat conftest.$ac_ext >&5
10961 eval "ac_cv_lib_$ac_lib_var=no"
10966 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10967 echo "$ac_t""yes" 1>&6
10968 have_openpty=yes need_libutil=yes
10970 echo "$ac_t""no" 1>&6
10976 if test "$have_openpty" = "yes"; then
10977 { test "$extra_verbose" = "yes" && cat << \EOF
10978 Defining HAVE_OPENPTY
10980 cat >> confdefs.h <<\EOF
10981 #define HAVE_OPENPTY 1
10985 for ac_hdr in pty.h libutil.h util.h
10987 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10988 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10989 echo "configure:10990: checking for $ac_hdr" >&5
10991 cat > conftest.$ac_ext <<EOF
10992 #line 10993 "configure"
10993 #include "confdefs.h"
10996 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10997 { (eval echo configure:10998: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10998 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10999 if test -z "$ac_err"; then
11001 eval "ac_cv_header_$ac_safe=yes"
11004 echo "configure: failed program was:" >&5
11005 cat conftest.$ac_ext >&5
11007 eval "ac_cv_header_$ac_safe=no"
11010 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11011 echo "$ac_t""yes" 1>&6
11012 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11013 { test "$extra_verbose" = "yes" && cat << EOF
11014 Defining $ac_tr_hdr
11016 cat >> confdefs.h <<EOF
11017 #define $ac_tr_hdr 1
11022 echo "$ac_t""no" 1>&6
11026 test "$need_libutil" = "yes" && libs_system="$libs_system -lutil" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lutil\" to \$libs_system"; fi
11029 for ac_hdr in stropts.h
11031 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11032 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11033 echo "configure:11034: checking for $ac_hdr" >&5
11035 cat > conftest.$ac_ext <<EOF
11036 #line 11037 "configure"
11037 #include "confdefs.h"
11040 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11041 { (eval echo configure:11042: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11042 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11043 if test -z "$ac_err"; then
11045 eval "ac_cv_header_$ac_safe=yes"
11048 echo "configure: failed program was:" >&5
11049 cat conftest.$ac_ext >&5
11051 eval "ac_cv_header_$ac_safe=no"
11054 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11055 echo "$ac_t""yes" 1>&6
11056 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11057 { test "$extra_verbose" = "yes" && cat << EOF
11058 Defining $ac_tr_hdr
11060 cat >> confdefs.h <<EOF
11061 #define $ac_tr_hdr 1
11066 echo "$ac_t""no" 1>&6
11070 if test "$ac_cv_header_stropts_h" = "yes"; then
11071 for ac_func in isastream
11073 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11074 echo "configure:11075: checking for $ac_func" >&5
11076 cat > conftest.$ac_ext <<EOF
11077 #line 11078 "configure"
11078 #include "confdefs.h"
11079 /* System header to define __stub macros and hopefully few prototypes,
11080 which can conflict with char $ac_func(); below. */
11081 #include <assert.h>
11082 /* Override any gcc2 internal prototype to avoid an error. */
11083 /* We use char because int might match the return type of a gcc2
11084 builtin and then its argument prototype would still apply. */
11089 /* The GNU C library defines this for functions which it implements
11090 to always fail with ENOSYS. Some functions are actually named
11091 something starting with __ and the normal name is an alias. */
11092 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11100 if { (eval echo configure:11101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11102 eval "ac_cv_func_$ac_func=yes"
11104 echo "configure: failed program was:" >&5
11105 cat conftest.$ac_ext >&5
11107 eval "ac_cv_func_$ac_func=no"
11111 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11112 echo "$ac_t""yes" 1>&6
11113 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11114 { test "$extra_verbose" = "yes" && cat << EOF
11115 Defining $ac_tr_func
11117 cat >> confdefs.h <<EOF
11118 #define $ac_tr_func 1
11123 echo "$ac_t""no" 1>&6
11127 for ac_hdr in strtio.h
11129 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11130 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11131 echo "configure:11132: checking for $ac_hdr" >&5
11133 cat > conftest.$ac_ext <<EOF
11134 #line 11135 "configure"
11135 #include "confdefs.h"
11138 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11139 { (eval echo configure:11140: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11140 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11141 if test -z "$ac_err"; then
11143 eval "ac_cv_header_$ac_safe=yes"
11146 echo "configure: failed program was:" >&5
11147 cat conftest.$ac_ext >&5
11149 eval "ac_cv_header_$ac_safe=no"
11152 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11153 echo "$ac_t""yes" 1>&6
11154 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11155 { test "$extra_verbose" = "yes" && cat << EOF
11156 Defining $ac_tr_hdr
11158 cat >> confdefs.h <<EOF
11159 #define $ac_tr_hdr 1
11164 echo "$ac_t""no" 1>&6
11169 extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
11170 echo " xemacs will be linked with \"realpath.o\""
11173 for ac_func in getloadavg
11175 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11176 echo "configure:11177: checking for $ac_func" >&5
11178 cat > conftest.$ac_ext <<EOF
11179 #line 11180 "configure"
11180 #include "confdefs.h"
11181 /* System header to define __stub macros and hopefully few prototypes,
11182 which can conflict with char $ac_func(); below. */
11183 #include <assert.h>
11184 /* Override any gcc2 internal prototype to avoid an error. */
11185 /* We use char because int might match the return type of a gcc2
11186 builtin and then its argument prototype would still apply. */
11191 /* The GNU C library defines this for functions which it implements
11192 to always fail with ENOSYS. Some functions are actually named
11193 something starting with __ and the normal name is an alias. */
11194 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11202 if { (eval echo configure:11203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11204 eval "ac_cv_func_$ac_func=yes"
11206 echo "configure: failed program was:" >&5
11207 cat conftest.$ac_ext >&5
11209 eval "ac_cv_func_$ac_func=no"
11213 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11214 echo "$ac_t""yes" 1>&6
11215 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11216 { test "$extra_verbose" = "yes" && cat << EOF
11217 Defining $ac_tr_func
11219 cat >> confdefs.h <<EOF
11220 #define $ac_tr_func 1
11225 echo "$ac_t""no" 1>&6
11230 if test "$ac_cv_func_getloadavg" = "yes"; then
11231 for ac_hdr in sys/loadavg.h
11233 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11234 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11235 echo "configure:11236: checking for $ac_hdr" >&5
11237 cat > conftest.$ac_ext <<EOF
11238 #line 11239 "configure"
11239 #include "confdefs.h"
11242 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11243 { (eval echo configure:11244: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11244 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11245 if test -z "$ac_err"; then
11247 eval "ac_cv_header_$ac_safe=yes"
11250 echo "configure: failed program was:" >&5
11251 cat conftest.$ac_ext >&5
11253 eval "ac_cv_header_$ac_safe=no"
11256 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11257 echo "$ac_t""yes" 1>&6
11258 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11259 { test "$extra_verbose" = "yes" && cat << EOF
11260 Defining $ac_tr_hdr
11262 cat >> confdefs.h <<EOF
11263 #define $ac_tr_hdr 1
11268 echo "$ac_t""no" 1>&6
11273 extra_objs="$extra_objs getloadavg.o" && if test "$extra_verbose" = "yes"; then
11274 echo " xemacs will be linked with \"getloadavg.o\""
11278 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
11279 echo "configure:11280: checking for kstat_open in -lkstat" >&5
11280 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
11282 xe_check_libs=" -lkstat "
11283 cat > conftest.$ac_ext <<EOF
11284 #line 11285 "configure"
11285 #include "confdefs.h"
11286 /* Override any gcc2 internal prototype to avoid an error. */
11287 /* We use char because int might match the return type of a gcc2
11288 builtin and then its argument prototype would still apply. */
11295 if { (eval echo configure:11296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11297 eval "ac_cv_lib_$ac_lib_var=yes"
11299 echo "configure: failed program was:" >&5
11300 cat conftest.$ac_ext >&5
11302 eval "ac_cv_lib_$ac_lib_var=no"
11307 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11308 echo "$ac_t""yes" 1>&6
11309 ac_tr_lib=HAVE_LIB`echo kstat | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11310 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11311 { test "$extra_verbose" = "yes" && cat << EOF
11312 Defining $ac_tr_lib
11314 cat >> confdefs.h <<EOF
11315 #define $ac_tr_lib 1
11319 LIBS="-lkstat $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkstat\" to \$LIBS"; fi
11322 echo "$ac_t""no" 1>&6
11326 for ac_hdr in kstat.h
11328 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11329 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11330 echo "configure:11331: checking for $ac_hdr" >&5
11332 cat > conftest.$ac_ext <<EOF
11333 #line 11334 "configure"
11334 #include "confdefs.h"
11337 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11338 { (eval echo configure:11339: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11339 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11340 if test -z "$ac_err"; then
11342 eval "ac_cv_header_$ac_safe=yes"
11345 echo "configure: failed program was:" >&5
11346 cat conftest.$ac_ext >&5
11348 eval "ac_cv_header_$ac_safe=no"
11351 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11352 echo "$ac_t""yes" 1>&6
11353 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11354 { test "$extra_verbose" = "yes" && cat << EOF
11355 Defining $ac_tr_hdr
11357 cat >> confdefs.h <<EOF
11358 #define $ac_tr_hdr 1
11363 echo "$ac_t""no" 1>&6
11369 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
11370 echo "configure:11371: checking for kvm_read in -lkvm" >&5
11371 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
11373 xe_check_libs=" -lkvm "
11374 cat > conftest.$ac_ext <<EOF
11375 #line 11376 "configure"
11376 #include "confdefs.h"
11377 /* Override any gcc2 internal prototype to avoid an error. */
11378 /* We use char because int might match the return type of a gcc2
11379 builtin and then its argument prototype would still apply. */
11386 if { (eval echo configure:11387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11388 eval "ac_cv_lib_$ac_lib_var=yes"
11390 echo "configure: failed program was:" >&5
11391 cat conftest.$ac_ext >&5
11393 eval "ac_cv_lib_$ac_lib_var=no"
11398 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11399 echo "$ac_t""yes" 1>&6
11400 ac_tr_lib=HAVE_LIB`echo kvm | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11401 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11402 { test "$extra_verbose" = "yes" && cat << EOF
11403 Defining $ac_tr_lib
11405 cat >> confdefs.h <<EOF
11406 #define $ac_tr_lib 1
11410 LIBS="-lkvm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkvm\" to \$LIBS"; fi
11413 echo "$ac_t""no" 1>&6
11419 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
11420 echo "configure:11421: checking whether netdb declares h_errno" >&5
11421 cat > conftest.$ac_ext <<EOF
11422 #line 11423 "configure"
11423 #include "confdefs.h"
11429 if { (eval echo configure:11430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11431 echo "$ac_t""yes" 1>&6
11432 { test "$extra_verbose" = "yes" && cat << \EOF
11433 Defining HAVE_H_ERRNO
11435 cat >> confdefs.h <<\EOF
11436 #define HAVE_H_ERRNO 1
11441 echo "configure: failed program was:" >&5
11442 cat conftest.$ac_ext >&5
11444 echo "$ac_t""no" 1>&6
11448 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
11449 echo "configure:11450: checking for sigsetjmp" >&5
11450 cat > conftest.$ac_ext <<EOF
11451 #line 11452 "configure"
11452 #include "confdefs.h"
11453 #include <setjmp.h>
11455 sigjmp_buf bar; sigsetjmp (bar, 0);
11458 if { (eval echo configure:11459: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11460 echo "$ac_t""yes" 1>&6
11461 { test "$extra_verbose" = "yes" && cat << \EOF
11462 Defining HAVE_SIGSETJMP
11464 cat >> confdefs.h <<\EOF
11465 #define HAVE_SIGSETJMP 1
11470 echo "configure: failed program was:" >&5
11471 cat conftest.$ac_ext >&5
11473 echo "$ac_t""no" 1>&6
11477 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
11478 echo "configure:11479: checking whether localtime caches TZ" >&5
11480 if test "$ac_cv_func_tzset" = "yes"; then
11481 cat > conftest.$ac_ext <<EOF
11482 #line 11483 "configure"
11483 #include "confdefs.h"
11486 # include <stdlib.h>
11488 extern char **environ;
11492 for (to = from = environ; (*to = *from); from++)
11493 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
11496 char TZ_GMT0[] = "TZ=GMT0";
11497 char TZ_PST8[] = "TZ=PST8";
11500 time_t now = time ((time_t *) 0);
11501 int hour_GMT0, hour_unset;
11502 if (putenv (TZ_GMT0) != 0)
11504 hour_GMT0 = localtime (&now)->tm_hour;
11506 hour_unset = localtime (&now)->tm_hour;
11507 if (putenv (TZ_PST8) != 0)
11509 if (localtime (&now)->tm_hour == hour_GMT0)
11512 if (localtime (&now)->tm_hour != hour_unset)
11517 if { (eval echo configure:11518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11519 emacs_cv_localtime_cache=no
11522 echo "configure: failed program was:" >&5
11523 cat conftest.$ac_ext >&5
11525 emacs_cv_localtime_cache=yes
11529 # If we lack tzset, report that localtime does not cache TZ,
11530 # since we can't invalidate the cache if we don't have tzset.
11531 emacs_cv_localtime_cache=no
11533 echo "$ac_t""$emacs_cv_localtime_cache" 1>&6
11534 if test $emacs_cv_localtime_cache = yes; then
11535 { test "$extra_verbose" = "yes" && cat << \EOF
11536 Defining LOCALTIME_CACHE
11538 cat >> confdefs.h <<\EOF
11539 #define LOCALTIME_CACHE 1
11545 if test "$HAVE_TIMEVAL" = "yes"; then
11546 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6
11547 echo "configure:11548: checking whether gettimeofday accepts one or two arguments" >&5
11548 cat > conftest.$ac_ext <<EOF
11549 #line 11550 "configure"
11550 #include "confdefs.h"
11552 #ifdef TIME_WITH_SYS_TIME
11553 #include <sys/time.h>
11556 #ifdef HAVE_SYS_TIME_H
11557 #include <sys/time.h>
11565 struct timeval time;
11566 gettimeofday (&time, 0);
11570 if { (eval echo configure:11571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11572 echo "$ac_t""two" 1>&6
11574 echo "configure: failed program was:" >&5
11575 cat conftest.$ac_ext >&5
11577 echo "$ac_t""one" 1>&6
11578 { test "$extra_verbose" = "yes" && cat << \EOF
11579 Defining GETTIMEOFDAY_ONE_ARGUMENT
11581 cat >> confdefs.h <<\EOF
11582 #define GETTIMEOFDAY_ONE_ARGUMENT 1
11591 echo $ac_n "checking for inline""... $ac_c" 1>&6
11592 echo "configure:11593: checking for inline" >&5
11595 for ac_kw in inline __inline__ __inline; do
11596 cat > conftest.$ac_ext <<EOF
11597 #line 11598 "configure"
11598 #include "confdefs.h"
11604 if { (eval echo configure:11605: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11606 ac_cv_c_inline=$ac_kw; break
11608 echo "configure: failed program was:" >&5
11609 cat conftest.$ac_ext >&5
11615 echo "$ac_t""$ac_cv_c_inline" 1>&6
11616 case "$ac_cv_c_inline" in
11618 no) { test "$extra_verbose" = "yes" && cat << \EOF
11621 cat >> confdefs.h <<\EOF
11626 *) { test "$extra_verbose" = "yes" && cat << EOF
11627 Defining inline = $ac_cv_c_inline
11629 cat >> confdefs.h <<EOF
11630 #define inline $ac_cv_c_inline
11636 test "$ac_cv_c_inline" != "no" -a "$GCC" = "yes" && extra_objs="$extra_objs inline.o" && if test "$extra_verbose" = "yes"; then
11637 echo " xemacs will be linked with \"inline.o\""
11641 if test "$__DECC" != "yes"; then
11642 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11643 # for constant arguments. Useless!
11644 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
11645 echo "configure:11646: checking for working alloca.h" >&5
11647 cat > conftest.$ac_ext <<EOF
11648 #line 11649 "configure"
11649 #include "confdefs.h"
11650 #include <alloca.h>
11652 char *p = alloca(2 * sizeof(int));
11655 if { (eval echo configure:11656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11657 ac_cv_header_alloca_h=yes
11659 echo "configure: failed program was:" >&5
11660 cat conftest.$ac_ext >&5
11662 ac_cv_header_alloca_h=no
11666 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
11667 if test $ac_cv_header_alloca_h = yes; then
11668 { test "$extra_verbose" = "yes" && cat << \EOF
11669 Defining HAVE_ALLOCA_H
11671 cat >> confdefs.h <<\EOF
11672 #define HAVE_ALLOCA_H 1
11678 echo $ac_n "checking for alloca""... $ac_c" 1>&6
11679 echo "configure:11680: checking for alloca" >&5
11681 cat > conftest.$ac_ext <<EOF
11682 #line 11683 "configure"
11683 #include "confdefs.h"
11686 # define alloca __builtin_alloca
11689 # include <malloc.h>
11690 # define alloca _alloca
11693 # include <alloca.h>
11698 # ifndef alloca /* predefined by HP cc +Olibcalls */
11707 char *p = (char *) alloca(1);
11710 if { (eval echo configure:11711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11712 ac_cv_func_alloca_works=yes
11714 echo "configure: failed program was:" >&5
11715 cat conftest.$ac_ext >&5
11717 ac_cv_func_alloca_works=no
11721 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
11722 if test $ac_cv_func_alloca_works = yes; then
11723 { test "$extra_verbose" = "yes" && cat << \EOF
11724 Defining HAVE_ALLOCA
11726 cat >> confdefs.h <<\EOF
11727 #define HAVE_ALLOCA 1
11733 if test $ac_cv_func_alloca_works = no; then
11734 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11735 # that cause trouble. Some versions do not even contain alloca or
11736 # contain a buggy version. If you still want to use their alloca,
11737 # use ar to extract alloca.o from them instead of compiling alloca.c.
11738 ALLOCA=alloca.${ac_objext}
11739 { test "$extra_verbose" = "yes" && cat << \EOF
11742 cat >> confdefs.h <<\EOF
11748 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
11749 echo "configure:11750: checking whether alloca needs Cray hooks" >&5
11751 cat > conftest.$ac_ext <<EOF
11752 #line 11753 "configure"
11753 #include "confdefs.h"
11754 #if defined(CRAY) && ! defined(CRAY2)
11761 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11762 egrep "webecray" >/dev/null 2>&1; then
11772 echo "$ac_t""$ac_cv_os_cray" 1>&6
11773 if test $ac_cv_os_cray = yes; then
11774 for ac_func in _getb67 GETB67 getb67; do
11775 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11776 echo "configure:11777: checking for $ac_func" >&5
11778 cat > conftest.$ac_ext <<EOF
11779 #line 11780 "configure"
11780 #include "confdefs.h"
11781 /* System header to define __stub macros and hopefully few prototypes,
11782 which can conflict with char $ac_func(); below. */
11783 #include <assert.h>
11784 /* Override any gcc2 internal prototype to avoid an error. */
11785 /* We use char because int might match the return type of a gcc2
11786 builtin and then its argument prototype would still apply. */
11791 /* The GNU C library defines this for functions which it implements
11792 to always fail with ENOSYS. Some functions are actually named
11793 something starting with __ and the normal name is an alias. */
11794 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11802 if { (eval echo configure:11803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11804 eval "ac_cv_func_$ac_func=yes"
11806 echo "configure: failed program was:" >&5
11807 cat conftest.$ac_ext >&5
11809 eval "ac_cv_func_$ac_func=no"
11813 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11814 echo "$ac_t""yes" 1>&6
11815 { test "$extra_verbose" = "yes" && cat << EOF
11816 Defining CRAY_STACKSEG_END = $ac_func
11818 cat >> confdefs.h <<EOF
11819 #define CRAY_STACKSEG_END $ac_func
11825 echo "$ac_t""no" 1>&6
11831 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
11832 echo "configure:11833: checking stack direction for C alloca" >&5
11834 cat > conftest.$ac_ext <<EOF
11835 #line 11836 "configure"
11836 #include "confdefs.h"
11837 find_stack_direction ()
11839 static char *addr = 0;
11844 return find_stack_direction ();
11847 return (&dummy > addr) ? 1 : -1;
11851 exit (find_stack_direction() < 0);
11854 if { (eval echo configure:11855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11856 ac_cv_c_stack_direction=1
11859 echo "configure: failed program was:" >&5
11860 cat conftest.$ac_ext >&5
11862 ac_cv_c_stack_direction=-1
11866 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
11867 { test "$extra_verbose" = "yes" && cat << EOF
11868 Defining STACK_DIRECTION = $ac_cv_c_stack_direction
11870 cat >> confdefs.h <<EOF
11871 #define STACK_DIRECTION $ac_cv_c_stack_direction
11877 test -n "$ALLOCA" && extra_objs="$extra_objs $ALLOCA" && if test "$extra_verbose" = "yes"; then
11878 echo " xemacs will be linked with \"$ALLOCA\""
11882 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
11883 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
11884 echo "configure:11885: checking for vfork.h" >&5
11886 cat > conftest.$ac_ext <<EOF
11887 #line 11888 "configure"
11888 #include "confdefs.h"
11891 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11892 { (eval echo configure:11893: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11893 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11894 if test -z "$ac_err"; then
11896 eval "ac_cv_header_$ac_safe=yes"
11899 echo "configure: failed program was:" >&5
11900 cat conftest.$ac_ext >&5
11902 eval "ac_cv_header_$ac_safe=no"
11905 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11906 echo "$ac_t""yes" 1>&6
11907 { test "$extra_verbose" = "yes" && cat << \EOF
11908 Defining HAVE_VFORK_H
11910 cat >> confdefs.h <<\EOF
11911 #define HAVE_VFORK_H 1
11916 echo "$ac_t""no" 1>&6
11919 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
11920 echo "configure:11921: checking for working vfork" >&5
11922 cat > conftest.$ac_ext <<EOF
11923 #line 11924 "configure"
11924 #include "confdefs.h"
11925 /* Thanks to Paul Eggert for this test. */
11927 #include <sys/types.h>
11928 #include <sys/stat.h>
11929 #ifdef HAVE_UNISTD_H
11930 #include <unistd.h>
11932 #ifdef HAVE_VFORK_H
11935 /* On some sparc systems, changes by the child to local and incoming
11936 argument registers are propagated back to the parent.
11937 The compiler is told about this with #include <vfork.h>,
11938 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
11939 Test for this by using a static variable whose address
11940 is put into a register that is clobbered by the vfork. */
11943 sparc_address_test (int arg)
11945 sparc_address_test (arg) int arg;
11948 static pid_t child;
11963 pid_t parent = getpid ();
11966 sparc_address_test ();
11971 /* Here is another test for sparc vfork register problems.
11972 This test uses lots of local variables, at least
11973 as many local variables as main has allocated so far
11974 including compiler temporaries. 4 locals are enough for
11975 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
11976 A buggy compiler should reuse the register of parent
11977 for one of the local variables, since it will think that
11978 parent can't possibly be used any more in this routine.
11979 Assigning to the local variable will thus munge parent
11980 in the parent process. */
11982 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11983 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11984 /* Convince the compiler that p..p7 are live; otherwise, it might
11985 use the same hardware register for all 8 local variables. */
11986 if (p != p1 || p != p2 || p != p3 || p != p4
11987 || p != p5 || p != p6 || p != p7)
11990 /* On some systems (e.g. IRIX 3.3),
11991 vfork doesn't separate parent from child file descriptors.
11992 If the child closes a descriptor before it execs or exits,
11993 this munges the parent's descriptor as well.
11994 Test for this by closing stdout in the child. */
11995 _exit(close(fileno(stdout)) != 0);
12000 while (wait(&status) != child)
12003 /* Was there some problem with vforking? */
12006 /* Did the child fail? (This shouldn't happen.) */
12009 /* Did the vfork/compiler bug occur? */
12010 || parent != getpid()
12012 /* Did the file descriptor bug occur? */
12013 || fstat(fileno(stdout), &st) != 0
12018 if { (eval echo configure:12019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12020 ac_cv_func_vfork_works=yes
12023 echo "configure: failed program was:" >&5
12024 cat conftest.$ac_ext >&5
12026 ac_cv_func_vfork_works=no
12030 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
12031 if test $ac_cv_func_vfork_works = no; then
12032 { test "$extra_verbose" = "yes" && cat << \EOF
12033 Defining vfork = fork
12035 cat >> confdefs.h <<\EOF
12043 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
12044 echo "configure:12045: checking for working strcoll" >&5
12046 cat > conftest.$ac_ext <<EOF
12047 #line 12048 "configure"
12048 #include "confdefs.h"
12049 #include <string.h>
12052 exit (strcoll ("abc", "def") >= 0 ||
12053 strcoll ("ABC", "DEF") >= 0 ||
12054 strcoll ("123", "456") >= 0);
12057 if { (eval echo configure:12058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12059 ac_cv_func_strcoll_works=yes
12062 echo "configure: failed program was:" >&5
12063 cat conftest.$ac_ext >&5
12065 ac_cv_func_strcoll_works=no
12069 echo "$ac_t""$ac_cv_func_strcoll_works" 1>&6
12070 if test $ac_cv_func_strcoll_works = yes; then
12071 { test "$extra_verbose" = "yes" && cat << \EOF
12072 Defining HAVE_STRCOLL
12074 cat >> confdefs.h <<\EOF
12075 #define HAVE_STRCOLL 1
12082 for ac_func in getpgrp
12084 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12085 echo "configure:12086: checking for $ac_func" >&5
12087 cat > conftest.$ac_ext <<EOF
12088 #line 12089 "configure"
12089 #include "confdefs.h"
12090 /* System header to define __stub macros and hopefully few prototypes,
12091 which can conflict with char $ac_func(); below. */
12092 #include <assert.h>
12093 /* Override any gcc2 internal prototype to avoid an error. */
12094 /* We use char because int might match the return type of a gcc2
12095 builtin and then its argument prototype would still apply. */
12100 /* The GNU C library defines this for functions which it implements
12101 to always fail with ENOSYS. Some functions are actually named
12102 something starting with __ and the normal name is an alias. */
12103 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12111 if { (eval echo configure:12112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12113 eval "ac_cv_func_$ac_func=yes"
12115 echo "configure: failed program was:" >&5
12116 cat conftest.$ac_ext >&5
12118 eval "ac_cv_func_$ac_func=no"
12122 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12123 echo "$ac_t""yes" 1>&6
12124 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12125 { test "$extra_verbose" = "yes" && cat << EOF
12126 Defining $ac_tr_func
12128 cat >> confdefs.h <<EOF
12129 #define $ac_tr_func 1
12134 echo "$ac_t""no" 1>&6
12138 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
12139 echo "configure:12140: checking whether getpgrp takes no argument" >&5
12141 cat > conftest.$ac_ext <<EOF
12142 #line 12143 "configure"
12143 #include "confdefs.h"
12146 * If this system has a BSD-style getpgrp(),
12147 * which takes a pid argument, exit unsuccessfully.
12149 * Snarfed from Chet Ramey's bash pgrp.c test program
12152 #include <sys/types.h>
12155 int pg1, pg2, pg3, pg4;
12156 int ng, np, s, child;
12163 pg3 = getpgrp(pid);
12167 * If all of these values are the same, it's pretty sure that
12168 * we're on a system that ignores getpgrp's first argument.
12170 if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3)
12176 else if (child == 0) {
12179 * If this is Sys V, this will not work; pgrp will be
12180 * set to np because setpgrp just changes a pgrp to be
12181 * the same as the pid.
12184 ng = getpgrp(0); /* Same result for Sys V and BSD */
12197 if { (eval echo configure:12198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12199 ac_cv_func_getpgrp_void=yes
12202 echo "configure: failed program was:" >&5
12203 cat conftest.$ac_ext >&5
12205 ac_cv_func_getpgrp_void=no
12210 echo "$ac_t""$ac_cv_func_getpgrp_void" 1>&6
12211 if test $ac_cv_func_getpgrp_void = yes; then
12212 { test "$extra_verbose" = "yes" && cat << \EOF
12213 Defining GETPGRP_VOID
12215 cat >> confdefs.h <<\EOF
12216 #define GETPGRP_VOID 1
12223 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
12224 echo "configure:12225: checking for working mmap" >&5
12225 case "$opsys" in ultrix* ) have_mmap=no ;; *)
12226 cat > conftest.$ac_ext <<EOF
12227 #line 12228 "configure"
12228 #include "confdefs.h"
12230 #include <unistd.h>
12232 #include <sys/mman.h>
12234 #ifndef MAP_VARIABLE
12235 #define MAP_VARIABLE 0
12239 #define MAP_FAILED -1
12242 int main (int argc, char *argv[])
12246 #ifndef MAP_ANONYMOUS
12247 fd = open ("/dev/zero", O_RDWR);
12250 #define MAP_ANONYMOUS 0
12252 if (mmap(0, 1024, PROT_READ | PROT_WRITE,
12253 MAP_PRIVATE | MAP_VARIABLE | MAP_ANONYMOUS,
12254 fd, 0) != (void *) MAP_FAILED)
12256 perror ("conftest: mmap failed");
12260 if { (eval echo configure:12261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12265 echo "configure: failed program was:" >&5
12266 cat conftest.$ac_ext >&5
12270 rm -fr conftest* ;;
12272 echo "$ac_t""$have_mmap" 1>&6
12273 test "$have_mmap" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
12276 cat >> confdefs.h <<\EOF
12277 #define HAVE_MMAP 1
12282 case "$opsys" in cygwin*)
12283 test "$rel_alloc" = "default" && rel_alloc=no ;;
12285 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no
12286 if test "$rel_alloc $have_mmap" = "default yes"; then
12287 if test "$doug_lea_malloc" = "yes"; then
12288 echo $ac_n "checking for M_MMAP_THRESHOLD""... $ac_c" 1>&6
12289 echo "configure:12290: checking for M_MMAP_THRESHOLD" >&5
12290 cat > conftest.$ac_ext <<EOF
12291 #line 12292 "configure"
12292 #include "confdefs.h"
12293 #include <malloc.h>
12296 #ifndef M_MMAP_THRESHOLD
12297 #error No M_MMAP_THRESHOLD :-(
12298 !@+$%^&*_)(_ - unlikely to compile...
12303 if { (eval echo configure:12304: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12305 rel_alloc=no; echo "$ac_t""yes" 1>&6;
12307 echo "configure: failed program was:" >&5
12308 cat conftest.$ac_ext >&5
12310 rel_alloc=yes; echo "$ac_t""no" 1>&6;
12317 test "$rel_alloc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
12320 cat >> confdefs.h <<\EOF
12321 #define REL_ALLOC 1
12326 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
12327 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
12328 echo "configure:12329: checking for termios.h" >&5
12330 cat > conftest.$ac_ext <<EOF
12331 #line 12332 "configure"
12332 #include "confdefs.h"
12333 #include <termios.h>
12335 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12336 { (eval echo configure:12337: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12337 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12338 if test -z "$ac_err"; then
12340 eval "ac_cv_header_$ac_safe=yes"
12343 echo "configure: failed program was:" >&5
12344 cat conftest.$ac_ext >&5
12346 eval "ac_cv_header_$ac_safe=no"
12349 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12350 echo "$ac_t""yes" 1>&6
12351 { test "$extra_verbose" = "yes" && cat << \EOF
12352 Defining HAVE_TERMIOS
12354 cat >> confdefs.h <<\EOF
12355 #define HAVE_TERMIOS 1
12359 { test "$extra_verbose" = "yes" && cat << \EOF
12360 Defining SIGNALS_VIA_CHARACTERS
12362 cat >> confdefs.h <<\EOF
12363 #define SIGNALS_VIA_CHARACTERS 1
12367 { test "$extra_verbose" = "yes" && cat << \EOF
12370 cat >> confdefs.h <<\EOF
12371 #define NO_TERMIO 1
12376 echo "$ac_t""no" 1>&6
12377 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
12378 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
12379 echo "configure:12380: checking for termio.h" >&5
12381 cat > conftest.$ac_ext <<EOF
12382 #line 12383 "configure"
12383 #include "confdefs.h"
12384 #include <termio.h>
12386 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12387 { (eval echo configure:12388: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12388 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12389 if test -z "$ac_err"; then
12391 eval "ac_cv_header_$ac_safe=yes"
12394 echo "configure: failed program was:" >&5
12395 cat conftest.$ac_ext >&5
12397 eval "ac_cv_header_$ac_safe=no"
12400 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12401 echo "$ac_t""yes" 1>&6
12402 { test "$extra_verbose" = "yes" && cat << \EOF
12403 Defining HAVE_TERMIO
12405 cat >> confdefs.h <<\EOF
12406 #define HAVE_TERMIO 1
12411 echo "$ac_t""no" 1>&6
12418 echo $ac_n "checking for socket""... $ac_c" 1>&6
12419 echo "configure:12420: checking for socket" >&5
12421 cat > conftest.$ac_ext <<EOF
12422 #line 12423 "configure"
12423 #include "confdefs.h"
12424 /* System header to define __stub macros and hopefully few prototypes,
12425 which can conflict with char socket(); below. */
12426 #include <assert.h>
12427 /* Override any gcc2 internal prototype to avoid an error. */
12428 /* We use char because int might match the return type of a gcc2
12429 builtin and then its argument prototype would still apply. */
12434 /* The GNU C library defines this for functions which it implements
12435 to always fail with ENOSYS. Some functions are actually named
12436 something starting with __ and the normal name is an alias. */
12437 #if defined (__stub_socket) || defined (__stub___socket)
12445 if { (eval echo configure:12446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12447 eval "ac_cv_func_socket=yes"
12449 echo "configure: failed program was:" >&5
12450 cat conftest.$ac_ext >&5
12452 eval "ac_cv_func_socket=no"
12456 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
12457 echo "$ac_t""yes" 1>&6
12458 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
12459 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
12460 echo "configure:12461: checking for netinet/in.h" >&5
12462 cat > conftest.$ac_ext <<EOF
12463 #line 12464 "configure"
12464 #include "confdefs.h"
12465 #include <netinet/in.h>
12467 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12468 { (eval echo configure:12469: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12469 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12470 if test -z "$ac_err"; then
12472 eval "ac_cv_header_$ac_safe=yes"
12475 echo "configure: failed program was:" >&5
12476 cat conftest.$ac_ext >&5
12478 eval "ac_cv_header_$ac_safe=no"
12481 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12482 echo "$ac_t""yes" 1>&6
12483 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
12484 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
12485 echo "configure:12486: checking for arpa/inet.h" >&5
12487 cat > conftest.$ac_ext <<EOF
12488 #line 12489 "configure"
12489 #include "confdefs.h"
12490 #include <arpa/inet.h>
12492 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12493 { (eval echo configure:12494: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12494 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12495 if test -z "$ac_err"; then
12497 eval "ac_cv_header_$ac_safe=yes"
12500 echo "configure: failed program was:" >&5
12501 cat conftest.$ac_ext >&5
12503 eval "ac_cv_header_$ac_safe=no"
12506 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12507 echo "$ac_t""yes" 1>&6
12509 { test "$extra_verbose" = "yes" && cat << \EOF
12510 Defining HAVE_SOCKETS
12512 cat >> confdefs.h <<\EOF
12513 #define HAVE_SOCKETS 1
12517 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
12518 echo "configure:12519: checking "for sun_len member in struct sockaddr_un"" >&5
12519 cat > conftest.$ac_ext <<EOF
12520 #line 12521 "configure"
12521 #include "confdefs.h"
12523 #include <sys/types.h>
12524 #include <sys/socket.h>
12525 #include <sys/un.h>
12528 static struct sockaddr_un x; x.sun_len = 1;
12531 if { (eval echo configure:12532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12533 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
12534 Defining HAVE_SOCKADDR_SUN_LEN
12536 cat >> confdefs.h <<\EOF
12537 #define HAVE_SOCKADDR_SUN_LEN 1
12542 echo "configure: failed program was:" >&5
12543 cat conftest.$ac_ext >&5
12545 echo "$ac_t""no" 1>&6
12548 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6
12549 echo "configure:12550: checking "for ip_mreq struct in netinet/in.h"" >&5
12550 cat > conftest.$ac_ext <<EOF
12551 #line 12552 "configure"
12552 #include "confdefs.h"
12554 #include <sys/types.h>
12555 #include <netinet/in.h>
12558 static struct ip_mreq x;
12561 if { (eval echo configure:12562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12563 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
12564 Defining HAVE_MULTICAST
12566 cat >> confdefs.h <<\EOF
12567 #define HAVE_MULTICAST 1
12572 echo "configure: failed program was:" >&5
12573 cat conftest.$ac_ext >&5
12575 echo "$ac_t""no" 1>&6
12579 echo "$ac_t""no" 1>&6
12583 echo "$ac_t""no" 1>&6
12587 echo "$ac_t""no" 1>&6
12591 echo $ac_n "checking for msgget""... $ac_c" 1>&6
12592 echo "configure:12593: checking for msgget" >&5
12594 cat > conftest.$ac_ext <<EOF
12595 #line 12596 "configure"
12596 #include "confdefs.h"
12597 /* System header to define __stub macros and hopefully few prototypes,
12598 which can conflict with char msgget(); below. */
12599 #include <assert.h>
12600 /* Override any gcc2 internal prototype to avoid an error. */
12601 /* We use char because int might match the return type of a gcc2
12602 builtin and then its argument prototype would still apply. */
12607 /* The GNU C library defines this for functions which it implements
12608 to always fail with ENOSYS. Some functions are actually named
12609 something starting with __ and the normal name is an alias. */
12610 #if defined (__stub_msgget) || defined (__stub___msgget)
12618 if { (eval echo configure:12619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12620 eval "ac_cv_func_msgget=yes"
12622 echo "configure: failed program was:" >&5
12623 cat conftest.$ac_ext >&5
12625 eval "ac_cv_func_msgget=no"
12629 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
12630 echo "$ac_t""yes" 1>&6
12631 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
12632 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
12633 echo "configure:12634: checking for sys/ipc.h" >&5
12635 cat > conftest.$ac_ext <<EOF
12636 #line 12637 "configure"
12637 #include "confdefs.h"
12638 #include <sys/ipc.h>
12640 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12641 { (eval echo configure:12642: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12642 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12643 if test -z "$ac_err"; then
12645 eval "ac_cv_header_$ac_safe=yes"
12648 echo "configure: failed program was:" >&5
12649 cat conftest.$ac_ext >&5
12651 eval "ac_cv_header_$ac_safe=no"
12654 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12655 echo "$ac_t""yes" 1>&6
12656 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
12657 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
12658 echo "configure:12659: checking for sys/msg.h" >&5
12660 cat > conftest.$ac_ext <<EOF
12661 #line 12662 "configure"
12662 #include "confdefs.h"
12663 #include <sys/msg.h>
12665 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12666 { (eval echo configure:12667: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12667 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12668 if test -z "$ac_err"; then
12670 eval "ac_cv_header_$ac_safe=yes"
12673 echo "configure: failed program was:" >&5
12674 cat conftest.$ac_ext >&5
12676 eval "ac_cv_header_$ac_safe=no"
12679 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12680 echo "$ac_t""yes" 1>&6
12681 { test "$extra_verbose" = "yes" && cat << \EOF
12682 Defining HAVE_SYSVIPC
12684 cat >> confdefs.h <<\EOF
12685 #define HAVE_SYSVIPC 1
12690 echo "$ac_t""no" 1>&6
12694 echo "$ac_t""no" 1>&6
12698 echo "$ac_t""no" 1>&6
12702 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
12703 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
12704 echo "configure:12705: checking for dirent.h" >&5
12706 cat > conftest.$ac_ext <<EOF
12707 #line 12708 "configure"
12708 #include "confdefs.h"
12709 #include <dirent.h>
12711 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12712 { (eval echo configure:12713: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12713 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12714 if test -z "$ac_err"; then
12716 eval "ac_cv_header_$ac_safe=yes"
12719 echo "configure: failed program was:" >&5
12720 cat conftest.$ac_ext >&5
12722 eval "ac_cv_header_$ac_safe=no"
12725 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12726 echo "$ac_t""yes" 1>&6
12727 { test "$extra_verbose" = "yes" && cat << \EOF
12728 Defining SYSV_SYSTEM_DIR
12730 cat >> confdefs.h <<\EOF
12731 #define SYSV_SYSTEM_DIR 1
12736 echo "$ac_t""no" 1>&6
12737 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
12738 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
12739 echo "configure:12740: checking for sys/dir.h" >&5
12741 cat > conftest.$ac_ext <<EOF
12742 #line 12743 "configure"
12743 #include "confdefs.h"
12744 #include <sys/dir.h>
12746 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12747 { (eval echo configure:12748: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12748 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12749 if test -z "$ac_err"; then
12751 eval "ac_cv_header_$ac_safe=yes"
12754 echo "configure: failed program was:" >&5
12755 cat conftest.$ac_ext >&5
12757 eval "ac_cv_header_$ac_safe=no"
12760 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12761 echo "$ac_t""yes" 1>&6
12764 echo "$ac_t""no" 1>&6
12765 { test "$extra_verbose" = "yes" && cat << \EOF
12766 Defining NONSYSTEM_DIR_LIBRARY
12768 cat >> confdefs.h <<\EOF
12769 #define NONSYSTEM_DIR_LIBRARY 1
12778 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
12779 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
12780 echo "configure:12781: checking for nlist.h" >&5
12782 cat > conftest.$ac_ext <<EOF
12783 #line 12784 "configure"
12784 #include "confdefs.h"
12787 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12788 { (eval echo configure:12789: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12789 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12790 if test -z "$ac_err"; then
12792 eval "ac_cv_header_$ac_safe=yes"
12795 echo "configure: failed program was:" >&5
12796 cat conftest.$ac_ext >&5
12798 eval "ac_cv_header_$ac_safe=no"
12801 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12802 echo "$ac_t""yes" 1>&6
12803 { test "$extra_verbose" = "yes" && cat << \EOF
12804 Defining NLIST_STRUCT
12806 cat >> confdefs.h <<\EOF
12807 #define NLIST_STRUCT 1
12812 echo "$ac_t""no" 1>&6
12817 echo "checking "for sound support"" 1>&6
12818 echo "configure:12819: checking "for sound support"" >&5
12819 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
12821 if test "$with_native_sound" != "no"; then
12822 if test -n "$native_sound_lib"; then
12823 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
12824 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
12825 echo "configure:12826: checking for multimedia/audio_device.h" >&5
12827 cat > conftest.$ac_ext <<EOF
12828 #line 12829 "configure"
12829 #include "confdefs.h"
12830 #include <multimedia/audio_device.h>
12832 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12833 { (eval echo configure:12834: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12834 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12835 if test -z "$ac_err"; then
12837 eval "ac_cv_header_$ac_safe=yes"
12840 echo "configure: failed program was:" >&5
12841 cat conftest.$ac_ext >&5
12843 eval "ac_cv_header_$ac_safe=no"
12846 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12847 echo "$ac_t""yes" 1>&6
12848 sound_found=yes sound_cflags=""
12849 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
12850 echo " xemacs will be linked with \"sunplay.o\""
12853 echo "$ac_t""no" 1>&6
12858 if test -z "$sound_found" -a -d "/usr/demo/SOUND"; then
12860 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
12861 echo " xemacs will be linked with \"sunplay.o\""
12863 if test -d "/usr/demo/SOUND/include"
12864 then sound_cflags="-I/usr/demo/SOUND/include"
12865 else sound_cflags="-I/usr/demo/SOUND"
12867 if test -z "$native_sound_lib" ; then
12868 if test -r "/usr/demo/SOUND/lib/libaudio.a"
12869 then native_sound_lib="/usr/demo/SOUND/lib/libaudio.a"
12870 else native_sound_lib="/usr/demo/SOUND/libaudio.a"
12875 if test -z "$sound_found"; then
12876 case "$canonical" in
12878 if test -z "$native_sound_lib"; then
12880 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
12881 echo "configure:12882: checking for ALopenport in -laudio" >&5
12882 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
12884 xe_check_libs=" -laudio "
12885 cat > conftest.$ac_ext <<EOF
12886 #line 12887 "configure"
12887 #include "confdefs.h"
12888 /* Override any gcc2 internal prototype to avoid an error. */
12889 /* We use char because int might match the return type of a gcc2
12890 builtin and then its argument prototype would still apply. */
12897 if { (eval echo configure:12898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12899 eval "ac_cv_lib_$ac_lib_var=yes"
12901 echo "configure: failed program was:" >&5
12902 cat conftest.$ac_ext >&5
12904 eval "ac_cv_lib_$ac_lib_var=no"
12909 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12910 echo "$ac_t""yes" 1>&6
12911 native_sound_lib="-laudio"
12913 echo "$ac_t""no" 1>&6
12918 if test -n "$native_sound_lib"; then
12919 sound_found=yes sound_cflags=""
12920 extra_objs="$extra_objs sgiplay.o" && if test "$extra_verbose" = "yes"; then
12921 echo " xemacs will be linked with \"sgiplay.o\""
12925 if test -z "$native_sound_lib"; then
12927 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
12928 echo "configure:12929: checking for AOpenAudio in -lAlib" >&5
12929 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
12931 xe_check_libs=" -lAlib "
12932 cat > conftest.$ac_ext <<EOF
12933 #line 12934 "configure"
12934 #include "confdefs.h"
12935 /* Override any gcc2 internal prototype to avoid an error. */
12936 /* We use char because int might match the return type of a gcc2
12937 builtin and then its argument prototype would still apply. */
12944 if { (eval echo configure:12945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12946 eval "ac_cv_lib_$ac_lib_var=yes"
12948 echo "configure: failed program was:" >&5
12949 cat conftest.$ac_ext >&5
12951 eval "ac_cv_lib_$ac_lib_var=no"
12956 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12957 echo "$ac_t""yes" 1>&6
12958 native_sound_lib="-lAlib"
12960 echo "$ac_t""no" 1>&6
12965 if test -n "$native_sound_lib"; then
12967 extra_objs="$extra_objs hpplay.o" && if test "$extra_verbose" = "yes"; then
12968 echo " xemacs will be linked with \"hpplay.o\""
12970 if test "$GCC" = "yes" # Kludge city
12971 then sound_cflags="-Dconst= -Dvolatile= -I/usr/audio/examples"
12972 else sound_cflags="+e -I/usr/audio/examples"
12978 if test -z "$sound_found"; then
12979 for dir in "machine" "sys" "linux"; do
12980 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
12981 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
12982 echo "configure:12983: checking for ${dir}/soundcard.h" >&5
12984 cat > conftest.$ac_ext <<EOF
12985 #line 12986 "configure"
12986 #include "confdefs.h"
12987 #include <${dir}/soundcard.h>
12989 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12990 { (eval echo configure:12991: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12991 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12992 if test -z "$ac_err"; then
12994 eval "ac_cv_header_$ac_safe=yes"
12997 echo "configure: failed program was:" >&5
12998 cat conftest.$ac_ext >&5
13000 eval "ac_cv_header_$ac_safe=no"
13003 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13004 echo "$ac_t""yes" 1>&6
13007 extra_objs="$extra_objs linuxplay.o" && if test "$extra_verbose" = "yes"; then
13008 echo " xemacs will be linked with \"linuxplay.o\""
13010 { test "$extra_verbose" = "yes" && cat << EOF
13011 Defining SOUNDCARD_H_FILE = "${dir}/soundcard.h"
13013 cat >> confdefs.h <<EOF
13014 #define SOUNDCARD_H_FILE "${dir}/soundcard.h"
13020 echo "$ac_t""no" 1>&6
13026 if test -z "$sound_found"; then
13027 if test "$with_msw" = "yes"; then
13033 test "$sound_found" = "yes" && with_native_sound=yes
13036 if test "$with_native_sound" = "yes"; then
13037 { test "$extra_verbose" = "yes" && cat << \EOF
13038 Defining HAVE_NATIVE_SOUND
13040 cat >> confdefs.h <<\EOF
13041 #define HAVE_NATIVE_SOUND 1
13045 test -n "$native_sound_lib" && LIBS="$native_sound_lib $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$native_sound_lib\" to \$LIBS"; fi
13048 if test "$with_nas_sound" != "no"; then
13049 ac_safe=`echo "audio/audiolib.h" | sed 'y%./+-%__p_%'`
13050 echo $ac_n "checking for audio/audiolib.h""... $ac_c" 1>&6
13051 echo "configure:13052: checking for audio/audiolib.h" >&5
13053 cat > conftest.$ac_ext <<EOF
13054 #line 13055 "configure"
13055 #include "confdefs.h"
13056 #include <audio/audiolib.h>
13058 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13059 { (eval echo configure:13060: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13060 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13061 if test -z "$ac_err"; then
13063 eval "ac_cv_header_$ac_safe=yes"
13066 echo "configure: failed program was:" >&5
13067 cat conftest.$ac_ext >&5
13069 eval "ac_cv_header_$ac_safe=no"
13072 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13073 echo "$ac_t""yes" 1>&6
13076 echo $ac_n "checking for AuOpenServer in -laudio""... $ac_c" 1>&6
13077 echo "configure:13078: checking for AuOpenServer in -laudio" >&5
13078 ac_lib_var=`echo audio'_'AuOpenServer | sed 'y%./+-%__p_%'`
13080 xe_check_libs=" -laudio "
13081 cat > conftest.$ac_ext <<EOF
13082 #line 13083 "configure"
13083 #include "confdefs.h"
13084 /* Override any gcc2 internal prototype to avoid an error. */
13085 /* We use char because int might match the return type of a gcc2
13086 builtin and then its argument prototype would still apply. */
13087 char AuOpenServer();
13093 if { (eval echo configure:13094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13095 eval "ac_cv_lib_$ac_lib_var=yes"
13097 echo "configure: failed program was:" >&5
13098 cat conftest.$ac_ext >&5
13100 eval "ac_cv_lib_$ac_lib_var=no"
13105 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13106 echo "$ac_t""yes" 1>&6
13109 echo "$ac_t""no" 1>&6
13114 echo "$ac_t""no" 1>&6
13117 if test "$have_nas_sound" = "yes"; then
13119 { test "$extra_verbose" = "yes" && cat << \EOF
13120 Defining HAVE_NAS_SOUND
13122 cat >> confdefs.h <<\EOF
13123 #define HAVE_NAS_SOUND 1
13127 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
13128 echo " xemacs will be linked with \"nas.o\""
13130 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi
13131 cat > conftest.$ac_ext <<EOF
13132 #line 13133 "configure"
13133 #include "confdefs.h"
13134 #include <audio/Xtutil.h>
13136 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13137 egrep "AuXtErrorJump" >/dev/null 2>&1; then
13141 old_nas=yes; { test "$extra_verbose" = "yes" && cat << \EOF
13142 Defining NAS_NO_ERROR_JUMP
13144 cat >> confdefs.h <<\EOF
13145 #define NAS_NO_ERROR_JUMP 1
13153 test "$with_nas_sound" = "yes" && \
13154 { echo "Error:" "Required NAS sound support cannot be provided." >&2; exit 1; }
13159 if test "$with_esd_sound" != "no"; then
13160 # Extract the first word of "esd-config", so it can be a program name with args.
13161 set dummy esd-config; ac_word=$2
13162 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
13163 echo "configure:13164: checking for $ac_word" >&5
13165 if test -n "$have_esd_config"; then
13166 ac_cv_prog_have_esd_config="$have_esd_config" # Let the user override the test.
13168 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
13170 for ac_dir in $ac_dummy; do
13171 test -z "$ac_dir" && ac_dir=.
13172 if test -f $ac_dir/$ac_word; then
13173 ac_cv_prog_have_esd_config="yes"
13178 test -z "$ac_cv_prog_have_esd_config" && ac_cv_prog_have_esd_config="no"
13180 have_esd_config="$ac_cv_prog_have_esd_config"
13181 if test -n "$have_esd_config"; then
13182 echo "$ac_t""$have_esd_config" 1>&6
13184 echo "$ac_t""no" 1>&6
13187 if test "$have_esd_config" = "yes"; then
13188 save_c_switch_site="$c_switch_site" save_LIBS="$LIBS"
13189 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
13190 LIBS="`esd-config --libs` $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"`esd-config --libs`\" to \$LIBS"; fi
13191 echo $ac_n "checking for esd_play_stream""... $ac_c" 1>&6
13192 echo "configure:13193: checking for esd_play_stream" >&5
13194 cat > conftest.$ac_ext <<EOF
13195 #line 13196 "configure"
13196 #include "confdefs.h"
13197 /* System header to define __stub macros and hopefully few prototypes,
13198 which can conflict with char esd_play_stream(); below. */
13199 #include <assert.h>
13200 /* Override any gcc2 internal prototype to avoid an error. */
13201 /* We use char because int might match the return type of a gcc2
13202 builtin and then its argument prototype would still apply. */
13203 char esd_play_stream();
13207 /* The GNU C library defines this for functions which it implements
13208 to always fail with ENOSYS. Some functions are actually named
13209 something starting with __ and the normal name is an alias. */
13210 #if defined (__stub_esd_play_stream) || defined (__stub___esd_play_stream)
13218 if { (eval echo configure:13219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13220 eval "ac_cv_func_esd_play_stream=yes"
13222 echo "configure: failed program was:" >&5
13223 cat conftest.$ac_ext >&5
13225 eval "ac_cv_func_esd_play_stream=no"
13229 if eval "test \"`echo '$ac_cv_func_'esd_play_stream`\" = yes"; then
13230 echo "$ac_t""yes" 1>&6
13233 echo "$ac_t""no" 1>&6
13234 c_switch_site="$save_c_switch_site" LIBS="$save_LIBS"
13239 if test "$have_esd_sound" = "yes"; then
13242 extra_objs="$extra_objs esd.o" && if test "$extra_verbose" = "yes"; then
13243 echo " xemacs will be linked with \"esd.o\""
13245 { test "$extra_verbose" = "yes" && cat << \EOF
13246 Defining HAVE_ESD_SOUND
13248 cat >> confdefs.h <<\EOF
13249 #define HAVE_ESD_SOUND 1
13254 test "$with_esd_sound" = "yes" && \
13255 { echo "Error:" "Required ESD sound support cannot be provided." >&2; exit 1; }
13260 test "$need_miscplay" = "yes" && extra_objs="$extra_objs miscplay.o" && if test "$extra_verbose" = "yes"; then
13261 echo " xemacs will be linked with \"miscplay.o\""
13265 test -z "$with_tty" && with_tty=yes
13267 if test "$with_tty" = "yes" ; then
13268 echo "checking for TTY-related features" 1>&6
13269 echo "configure:13270: checking for TTY-related features" >&5
13270 { test "$extra_verbose" = "yes" && cat << \EOF
13273 cat >> confdefs.h <<\EOF
13278 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
13279 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\""
13282 if test -z "$with_ncurses"; then
13284 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
13285 echo "configure:13286: checking for tgetent in -lncurses" >&5
13286 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
13288 xe_check_libs=" -lncurses "
13289 cat > conftest.$ac_ext <<EOF
13290 #line 13291 "configure"
13291 #include "confdefs.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. */
13301 if { (eval echo configure:13302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13303 eval "ac_cv_lib_$ac_lib_var=yes"
13305 echo "configure: failed program was:" >&5
13306 cat conftest.$ac_ext >&5
13308 eval "ac_cv_lib_$ac_lib_var=no"
13313 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13314 echo "$ac_t""yes" 1>&6
13317 echo "$ac_t""no" 1>&6
13323 if test "$with_ncurses" = "yes"; then
13324 { test "$extra_verbose" = "yes" && cat << \EOF
13325 Defining HAVE_NCURSES
13327 cat >> confdefs.h <<\EOF
13328 #define HAVE_NCURSES 1
13332 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
13333 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
13334 echo "configure:13335: checking for ncurses/curses.h" >&5
13336 cat > conftest.$ac_ext <<EOF
13337 #line 13338 "configure"
13338 #include "confdefs.h"
13339 #include <ncurses/curses.h>
13341 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13342 { (eval echo configure:13343: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13343 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13344 if test -z "$ac_err"; then
13346 eval "ac_cv_header_$ac_safe=yes"
13349 echo "configure: failed program was:" >&5
13350 cat conftest.$ac_ext >&5
13352 eval "ac_cv_header_$ac_safe=no"
13355 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13356 echo "$ac_t""yes" 1>&6
13357 curses_h_file=ncurses/curses.h
13359 echo "$ac_t""no" 1>&6
13362 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
13363 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
13364 echo "configure:13365: checking for ncurses/term.h" >&5
13366 cat > conftest.$ac_ext <<EOF
13367 #line 13368 "configure"
13368 #include "confdefs.h"
13369 #include <ncurses/term.h>
13371 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13372 { (eval echo configure:13373: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13373 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13374 if test -z "$ac_err"; then
13376 eval "ac_cv_header_$ac_safe=yes"
13379 echo "configure: failed program was:" >&5
13380 cat conftest.$ac_ext >&5
13382 eval "ac_cv_header_$ac_safe=no"
13385 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13386 echo "$ac_t""yes" 1>&6
13387 term_h_file=ncurses/term.h
13389 echo "$ac_t""no" 1>&6
13392 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
13393 echo " xemacs will be linked with \"terminfo.o\""
13395 LIBS="-lncurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lncurses\" to \$LIBS"; fi
13397 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
13398 save_c_switch_site="$c_switch_site"
13399 c_switch_site="$c_switch_site -I/usr/include/ncurses"
13400 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
13401 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
13402 echo "configure:13403: checking for ncurses/curses.h" >&5
13404 cat > conftest.$ac_ext <<EOF
13405 #line 13406 "configure"
13406 #include "confdefs.h"
13407 #include <ncurses/curses.h>
13409 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13410 { (eval echo configure:13411: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13411 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13412 if test -z "$ac_err"; then
13414 eval "ac_cv_header_$ac_safe=yes"
13417 echo "configure: failed program was:" >&5
13418 cat conftest.$ac_ext >&5
13420 eval "ac_cv_header_$ac_safe=no"
13423 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13424 echo "$ac_t""yes" 1>&6
13425 curses_h_file=ncurses/curses.h
13427 echo "$ac_t""no" 1>&6
13430 if test "$ac_cv_header_ncurses_curses_h" = "yes"
13431 then echo "configure: warning: "Your system has the bogus ncurses include bug."" 1>&2
13432 else c_switch_site="$save_c_switch_site"
13435 else if test "$have_terminfo" = "yes"; then
13436 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
13437 echo " xemacs will be linked with \"terminfo.o\""
13439 if test -n "$libs_termcap"; then
13440 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
13442 for lib in curses termlib termcap; do
13444 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
13445 echo "configure:13446: checking for tgetent in -l$lib" >&5
13446 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
13448 xe_check_libs=" -l$lib "
13449 cat > conftest.$ac_ext <<EOF
13450 #line 13451 "configure"
13451 #include "confdefs.h"
13452 /* Override any gcc2 internal prototype to avoid an error. */
13453 /* We use char because int might match the return type of a gcc2
13454 builtin and then its argument prototype would still apply. */
13461 if { (eval echo configure:13462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13463 eval "ac_cv_lib_$ac_lib_var=yes"
13465 echo "configure: failed program was:" >&5
13466 cat conftest.$ac_ext >&5
13468 eval "ac_cv_lib_$ac_lib_var=no"
13473 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13474 echo "$ac_t""yes" 1>&6
13475 LIBS="-l${lib} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${lib}\" to \$LIBS"; fi; break
13477 echo "$ac_t""no" 1>&6
13483 else extra_objs="$extra_objs tparam.o" && if test "$extra_verbose" = "yes"; then
13484 echo " xemacs will be linked with \"tparam.o\""
13486 case "$opsys" in *-hp-hpux* ) libs_termcap="-ltermcap" ;; esac
13487 if test -n "$libs_termcap"; then
13488 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
13491 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
13492 echo "configure:13493: checking for tgetent in -lcurses" >&5
13493 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
13495 xe_check_libs=" -lcurses "
13496 cat > conftest.$ac_ext <<EOF
13497 #line 13498 "configure"
13498 #include "confdefs.h"
13499 /* Override any gcc2 internal prototype to avoid an error. */
13500 /* We use char because int might match the return type of a gcc2
13501 builtin and then its argument prototype would still apply. */
13508 if { (eval echo configure:13509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13510 eval "ac_cv_lib_$ac_lib_var=yes"
13512 echo "configure: failed program was:" >&5
13513 cat conftest.$ac_ext >&5
13515 eval "ac_cv_lib_$ac_lib_var=no"
13520 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13521 echo "$ac_t""yes" 1>&6
13522 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
13524 echo "$ac_t""no" 1>&6
13525 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
13526 echo "configure:13527: checking for tgetent in -ltermcap" >&5
13527 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
13529 xe_check_libs=" -ltermcap "
13530 cat > conftest.$ac_ext <<EOF
13531 #line 13532 "configure"
13532 #include "confdefs.h"
13533 /* Override any gcc2 internal prototype to avoid an error. */
13534 /* We use char because int might match the return type of a gcc2
13535 builtin and then its argument prototype would still apply. */
13542 if { (eval echo configure:13543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13544 eval "ac_cv_lib_$ac_lib_var=yes"
13546 echo "configure: failed program was:" >&5
13547 cat conftest.$ac_ext >&5
13549 eval "ac_cv_lib_$ac_lib_var=no"
13554 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13555 echo "$ac_t""yes" 1>&6
13556 LIBS="-ltermcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltermcap\" to \$LIBS"; fi
13558 echo "$ac_t""no" 1>&6
13559 extra_objs="$extra_objs termcap.o" && if test "$extra_verbose" = "yes"; then
13560 echo " xemacs will be linked with \"termcap.o\""
13571 { test "$extra_verbose" = "yes" && cat << EOF
13572 Defining CURSES_H_FILE = "${curses_h_file-curses.h}"
13574 cat >> confdefs.h <<EOF
13575 #define CURSES_H_FILE "${curses_h_file-curses.h}"
13579 { test "$extra_verbose" = "yes" && cat << EOF
13580 Defining TERM_H_FILE = "${term_h_file-term.h}"
13582 cat >> confdefs.h <<EOF
13583 #define TERM_H_FILE "${term_h_file-term.h}"
13588 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
13589 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
13590 echo "configure:13591: checking for gpm.h" >&5
13592 cat > conftest.$ac_ext <<EOF
13593 #line 13594 "configure"
13594 #include "confdefs.h"
13597 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13598 { (eval echo configure:13599: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13599 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13600 if test -z "$ac_err"; then
13602 eval "ac_cv_header_$ac_safe=yes"
13605 echo "configure: failed program was:" >&5
13606 cat conftest.$ac_ext >&5
13608 eval "ac_cv_header_$ac_safe=no"
13611 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13612 echo "$ac_t""yes" 1>&6
13615 echo "$ac_t""no" 1>&6
13619 test -z "$with_gpm" && {
13620 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
13621 echo "configure:13622: checking for Gpm_Open in -lgpm" >&5
13622 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
13624 xe_check_libs=" -lgpm "
13625 cat > conftest.$ac_ext <<EOF
13626 #line 13627 "configure"
13627 #include "confdefs.h"
13628 /* Override any gcc2 internal prototype to avoid an error. */
13629 /* We use char because int might match the return type of a gcc2
13630 builtin and then its argument prototype would still apply. */
13637 if { (eval echo configure:13638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13639 eval "ac_cv_lib_$ac_lib_var=yes"
13641 echo "configure: failed program was:" >&5
13642 cat conftest.$ac_ext >&5
13644 eval "ac_cv_lib_$ac_lib_var=no"
13649 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13650 echo "$ac_t""yes" 1>&6
13653 echo "$ac_t""no" 1>&6
13658 if test "$with_gpm" = "yes"; then
13659 { test "$extra_verbose" = "yes" && cat << \EOF
13662 cat >> confdefs.h <<\EOF
13667 extra_objs="$extra_objs gpmevent.o" && if test "$extra_verbose" = "yes"; then
13668 echo " xemacs will be linked with \"gpmevent.o\""
13670 LIBS="-lgpm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgpm\" to \$LIBS"; fi
13673 else for feature in ncurses gpm; do
13674 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
13675 echo "configure: warning: "--with-${feature} ignored: Not valid without TTY support"" 1>&2
13677 eval "with_${feature}=no"
13680 test "$with_x11" = "yes" -o "$with_tty" = "yes" && extra_objs="$extra_objs event-unixoid.o" && if test "$extra_verbose" = "yes"; then
13681 echo " xemacs will be linked with \"event-unixoid.o\""
13685 test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
13686 != "no no no" && echo "checking for database support" 1>&6
13687 echo "configure:13688: checking for database support" >&5
13689 if test "$with_database_gdbm $with_database_dbm" != "no no"; then
13690 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'`
13691 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6
13692 echo "configure:13693: checking for ndbm.h" >&5
13694 cat > conftest.$ac_ext <<EOF
13695 #line 13696 "configure"
13696 #include "confdefs.h"
13699 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13700 { (eval echo configure:13701: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13701 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13702 if test -z "$ac_err"; then
13704 eval "ac_cv_header_$ac_safe=yes"
13707 echo "configure: failed program was:" >&5
13708 cat conftest.$ac_ext >&5
13710 eval "ac_cv_header_$ac_safe=no"
13713 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13714 echo "$ac_t""yes" 1>&6
13717 echo "$ac_t""no" 1>&6
13719 test "$with_database_gdbm" = "yes" -o \
13720 "$with_database_dbm" = "yes" && \
13721 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
13722 with_database_gdbm=no with_database_dbm=no
13727 if test "$with_database_gdbm" != "no"; then
13729 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
13730 echo "configure:13731: checking for dbm_open in -lgdbm" >&5
13731 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
13733 xe_check_libs=" -lgdbm "
13734 cat > conftest.$ac_ext <<EOF
13735 #line 13736 "configure"
13736 #include "confdefs.h"
13737 /* Override any gcc2 internal prototype to avoid an error. */
13738 /* We use char because int might match the return type of a gcc2
13739 builtin and then its argument prototype would still apply. */
13746 if { (eval echo configure:13747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13748 eval "ac_cv_lib_$ac_lib_var=yes"
13750 echo "configure: failed program was:" >&5
13751 cat conftest.$ac_ext >&5
13753 eval "ac_cv_lib_$ac_lib_var=no"
13758 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13759 echo "$ac_t""yes" 1>&6
13760 with_database_gdbm=yes with_database_dbm=no libdbm=-lgdbm
13762 echo "$ac_t""no" 1>&6
13763 if test "$with_database_gdbm" = "yes"; then
13764 { echo "Error:" "Required GNU DBM support cannot be provided." >&2; exit 1; }
13766 with_database_gdbm=no
13772 if test "$with_database_dbm" != "no"; then
13773 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
13774 echo "configure:13775: checking for dbm_open" >&5
13776 cat > conftest.$ac_ext <<EOF
13777 #line 13778 "configure"
13778 #include "confdefs.h"
13779 /* System header to define __stub macros and hopefully few prototypes,
13780 which can conflict with char dbm_open(); below. */
13781 #include <assert.h>
13782 /* Override any gcc2 internal prototype to avoid an error. */
13783 /* We use char because int might match the return type of a gcc2
13784 builtin and then its argument prototype would still apply. */
13789 /* The GNU C library defines this for functions which it implements
13790 to always fail with ENOSYS. Some functions are actually named
13791 something starting with __ and the normal name is an alias. */
13792 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
13800 if { (eval echo configure:13801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13802 eval "ac_cv_func_dbm_open=yes"
13804 echo "configure: failed program was:" >&5
13805 cat conftest.$ac_ext >&5
13807 eval "ac_cv_func_dbm_open=no"
13811 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
13812 echo "$ac_t""yes" 1>&6
13813 with_database_dbm=yes libdbm=
13815 echo "$ac_t""no" 1>&6
13818 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
13819 echo "configure:13820: checking for dbm_open in -ldbm" >&5
13820 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
13822 xe_check_libs=" -ldbm "
13823 cat > conftest.$ac_ext <<EOF
13824 #line 13825 "configure"
13825 #include "confdefs.h"
13826 /* Override any gcc2 internal prototype to avoid an error. */
13827 /* We use char because int might match the return type of a gcc2
13828 builtin and then its argument prototype would still apply. */
13835 if { (eval echo configure:13836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13837 eval "ac_cv_lib_$ac_lib_var=yes"
13839 echo "configure: failed program was:" >&5
13840 cat conftest.$ac_ext >&5
13842 eval "ac_cv_lib_$ac_lib_var=no"
13847 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13848 echo "$ac_t""yes" 1>&6
13849 with_database_dbm=yes libdbm=-ldbm
13851 echo "$ac_t""no" 1>&6
13852 test "$with_database_dbm" = "yes" && \
13853 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
13854 with_database_dbm=no
13862 test -n "$libdbm" && LIBS=""$libdbm" $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libdbm"\" to \$LIBS"; fi
13863 test "$with_database_gdbm" = "yes" -o \
13864 "$with_database_dbm" = "yes" && \
13865 { test "$extra_verbose" = "yes" && cat << \EOF
13868 cat >> confdefs.h <<\EOF
13874 if test "$with_database_berkdb" != "no"; then
13875 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6
13876 echo "configure:13877: checking for Berkeley db.h" >&5
13877 for header in "db/db.h" "db.h"; do
13878 cat > conftest.$ac_ext <<EOF
13879 #line 13880 "configure"
13880 #include "confdefs.h"
13882 #include <stdlib.h>
13883 #if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1)
13884 #ifdef HAVE_INTTYPES_H
13885 #define __BIT_TYPES_DEFINED__
13886 #include <inttypes.h>
13887 typedef uint8_t u_int8_t;
13888 typedef uint16_t u_int16_t;
13889 typedef uint32_t u_int32_t;
13890 #ifdef WE_DONT_NEED_QUADS
13891 typedef uint64_t u_int64_t;
13901 if { (eval echo configure:13902: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13903 db_h_file="$header"; break
13905 echo "configure: failed program was:" >&5
13906 cat conftest.$ac_ext >&5
13910 if test -z "$db_h_file"
13911 then echo "$ac_t""no" 1>&6; with_database_berkdb=no
13912 else echo "$ac_t""$db_h_file" 1>&6
13915 if test "$with_database_berkdb" != "no"; then
13916 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6
13917 echo "configure:13918: checking for Berkeley DB version" >&5
13918 cat > conftest.$ac_ext <<EOF
13919 #line 13920 "configure"
13920 #include "confdefs.h"
13921 #include <$db_h_file>
13922 #if DB_VERSION_MAJOR > 1
13927 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13928 egrep "yes" >/dev/null 2>&1; then
13930 cat > conftest.$ac_ext <<EOF
13931 #line 13932 "configure"
13932 #include "confdefs.h"
13933 #include <$db_h_file>
13934 #if DB_VERSION_MAJOR > 2
13939 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13940 egrep "yes" >/dev/null 2>&1; then
13942 echo "$ac_t""3" 1>&6; dbfunc=db_create
13946 echo "$ac_t""2" 1>&6; dbfunc=db_open
13953 echo "$ac_t""1" 1>&6; dbfunc=dbopen
13957 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6
13958 echo "configure:13959: checking for $dbfunc" >&5
13960 cat > conftest.$ac_ext <<EOF
13961 #line 13962 "configure"
13962 #include "confdefs.h"
13963 /* System header to define __stub macros and hopefully few prototypes,
13964 which can conflict with char $dbfunc(); below. */
13965 #include <assert.h>
13966 /* Override any gcc2 internal prototype to avoid an error. */
13967 /* We use char because int might match the return type of a gcc2
13968 builtin and then its argument prototype would still apply. */
13973 /* The GNU C library defines this for functions which it implements
13974 to always fail with ENOSYS. Some functions are actually named
13975 something starting with __ and the normal name is an alias. */
13976 #if defined (__stub_$dbfunc) || defined (__stub___$dbfunc)
13984 if { (eval echo configure:13985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13986 eval "ac_cv_func_$dbfunc=yes"
13988 echo "configure: failed program was:" >&5
13989 cat conftest.$ac_ext >&5
13991 eval "ac_cv_func_$dbfunc=no"
13995 if eval "test \"`echo '$ac_cv_func_'$dbfunc`\" = yes"; then
13996 echo "$ac_t""yes" 1>&6
13997 with_database_berkdb=yes need_libdb=no
13999 echo "$ac_t""no" 1>&6
14002 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6
14003 echo "configure:14004: checking for $dbfunc in -ldb" >&5
14004 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'`
14006 xe_check_libs=" -ldb "
14007 cat > conftest.$ac_ext <<EOF
14008 #line 14009 "configure"
14009 #include "confdefs.h"
14010 /* Override any gcc2 internal prototype to avoid an error. */
14011 /* We use char because int might match the return type of a gcc2
14012 builtin and then its argument prototype would still apply. */
14019 if { (eval echo configure:14020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14021 eval "ac_cv_lib_$ac_lib_var=yes"
14023 echo "configure: failed program was:" >&5
14024 cat conftest.$ac_ext >&5
14026 eval "ac_cv_lib_$ac_lib_var=no"
14031 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
14032 echo "$ac_t""yes" 1>&6
14033 with_database_berkdb=yes need_libdb=yes
14035 echo "$ac_t""no" 1>&6
14043 if test "$with_database_berkdb" = "yes"; then
14044 { test "$extra_verbose" = "yes" && cat << EOF
14045 Defining DB_H_FILE = "$db_h_file"
14047 cat >> confdefs.h <<EOF
14048 #define DB_H_FILE "$db_h_file"
14052 { test "$extra_verbose" = "yes" && cat << \EOF
14053 Defining HAVE_BERKELEY_DB
14055 cat >> confdefs.h <<\EOF
14056 #define HAVE_BERKELEY_DB 1
14060 test "$need_libdb" = "yes" && LIBS="-ldb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldb\" to \$LIBS"; fi
14061 else with_database_berkdb=no
14065 if test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
14066 != "no no no"; then
14067 { test "$extra_verbose" = "yes" && cat << \EOF
14068 Defining HAVE_DATABASE
14070 cat >> confdefs.h <<\EOF
14071 #define HAVE_DATABASE 1
14075 extra_objs="$extra_objs database.o" && if test "$extra_verbose" = "yes"; then
14076 echo " xemacs will be linked with \"database.o\""
14080 if test "$with_socks" = "yes"; then
14082 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
14083 echo "configure:14084: checking for SOCKSinit in -lsocks" >&5
14084 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
14086 xe_check_libs=" -lsocks "
14087 cat > conftest.$ac_ext <<EOF
14088 #line 14089 "configure"
14089 #include "confdefs.h"
14090 /* Override any gcc2 internal prototype to avoid an error. */
14091 /* We use char because int might match the return type of a gcc2
14092 builtin and then its argument prototype would still apply. */
14099 if { (eval echo configure:14100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14101 eval "ac_cv_lib_$ac_lib_var=yes"
14103 echo "configure: failed program was:" >&5
14104 cat conftest.$ac_ext >&5
14106 eval "ac_cv_lib_$ac_lib_var=no"
14111 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
14112 echo "$ac_t""yes" 1>&6
14113 ac_tr_lib=HAVE_LIB`echo socks | sed -e 's/[^a-zA-Z0-9_]/_/g' \
14114 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
14115 { test "$extra_verbose" = "yes" && cat << EOF
14116 Defining $ac_tr_lib
14118 cat >> confdefs.h <<EOF
14119 #define $ac_tr_lib 1
14123 LIBS="-lsocks $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lsocks\" to \$LIBS"; fi
14126 echo "$ac_t""no" 1>&6
14130 test -n "$ac_cv_lib_socks_SOCKSinit" && { test "$extra_verbose" = "yes" && cat << \EOF
14131 Defining HAVE_SOCKS
14133 cat >> confdefs.h <<\EOF
14134 #define HAVE_SOCKS 1
14140 if test "$usage_tracking" = "yes"; then
14141 { test "$extra_verbose" = "yes" && cat << \EOF
14142 Defining USAGE_TRACKING
14144 cat >> confdefs.h <<\EOF
14145 #define USAGE_TRACKING 1
14149 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi
14152 if test "$with_modules" != "no"; then
14153 echo "checking for module support" 1>&6
14154 echo "configure:14155: checking for module support" >&5
14156 if test "$with_msw" = "yes"; then
14159 ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'`
14160 echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6
14161 echo "configure:14162: checking for dlfcn.h" >&5
14163 cat > conftest.$ac_ext <<EOF
14164 #line 14165 "configure"
14165 #include "confdefs.h"
14168 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14169 { (eval echo configure:14170: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14170 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14171 if test -z "$ac_err"; then
14173 eval "ac_cv_header_$ac_safe=yes"
14176 echo "configure: failed program was:" >&5
14177 cat conftest.$ac_ext >&5
14179 eval "ac_cv_header_$ac_safe=no"
14182 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14183 echo "$ac_t""yes" 1>&6
14185 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6
14186 echo "configure:14187: checking for dlopen in -lc" >&5
14187 cat > conftest.$ac_ext <<EOF
14188 #line 14189 "configure"
14189 #include "confdefs.h"
14195 if { (eval echo configure:14196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14199 echo "configure: failed program was:" >&5
14200 cat conftest.$ac_ext >&5
14203 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
14204 echo "configure:14205: checking for dlopen in -ldl" >&5
14205 ac_save_LIBS="$LIBS"
14207 cat > conftest.$ac_ext <<EOF
14208 #line 14209 "configure"
14209 #include "confdefs.h"
14215 if { (eval echo configure:14216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14219 echo "configure: failed program was:" >&5
14220 cat conftest.$ac_ext >&5
14222 LIBS="$ac_save_LIBS"
14229 echo "$ac_t""no" 1>&6
14232 if test -n "$have_dl"; then
14233 { test "$extra_verbose" = "yes" && cat << \EOF
14234 Defining HAVE_DLOPEN
14236 cat >> confdefs.h <<\EOF
14237 #define HAVE_DLOPEN 1
14243 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
14244 echo "configure:14245: checking for shl_load in -ldld" >&5
14245 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
14247 xe_check_libs=" -ldld "
14248 cat > conftest.$ac_ext <<EOF
14249 #line 14250 "configure"
14250 #include "confdefs.h"
14251 /* Override any gcc2 internal prototype to avoid an error. */
14252 /* We use char because int might match the return type of a gcc2
14253 builtin and then its argument prototype would still apply. */
14260 if { (eval echo configure:14261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14262 eval "ac_cv_lib_$ac_lib_var=yes"
14264 echo "configure: failed program was:" >&5
14265 cat conftest.$ac_ext >&5
14267 eval "ac_cv_lib_$ac_lib_var=no"
14272 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
14273 echo "$ac_t""yes" 1>&6
14274 libdl=dld have_dl=yes;
14275 { test "$extra_verbose" = "yes" && cat << \EOF
14276 Defining HAVE_SHL_LOAD
14278 cat >> confdefs.h <<\EOF
14279 #define HAVE_SHL_LOAD 1
14284 echo "$ac_t""no" 1>&6
14286 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6
14287 echo "configure:14288: checking for dld_init in -ldld" >&5
14288 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'`
14290 xe_check_libs=" -ldld "
14291 cat > conftest.$ac_ext <<EOF
14292 #line 14293 "configure"
14293 #include "confdefs.h"
14294 /* Override any gcc2 internal prototype to avoid an error. */
14295 /* We use char because int might match the return type of a gcc2
14296 builtin and then its argument prototype would still apply. */
14303 if { (eval echo configure:14304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14305 eval "ac_cv_lib_$ac_lib_var=yes"
14307 echo "configure: failed program was:" >&5
14308 cat conftest.$ac_ext >&5
14310 eval "ac_cv_lib_$ac_lib_var=no"
14315 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
14316 echo "$ac_t""yes" 1>&6
14317 libdl=dld have_dl=yes;
14318 { test "$extra_verbose" = "yes" && cat << \EOF
14319 Defining HAVE_DLD_INIT
14321 cat >> confdefs.h <<\EOF
14322 #define HAVE_DLD_INIT 1
14327 echo "$ac_t""no" 1>&6
14336 if test -n "$have_dl"; then
14343 ld_dynamic_link_flags=
14345 xealias=$internal_configuration
14347 echo "checking how to build dynamic libraries for ${xehost}" 1>&6
14348 echo "configure:14349: checking how to build dynamic libraries for ${xehost}" >&5
14349 # Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts.
14352 *-*-linux*) xehost=`echo $xehost | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
14355 xehost_cpu=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
14356 xehost_vendor=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
14357 xehost_os=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
14359 case "$xehost_os" in
14361 # AIX sometimes has problems with the GCC collect2 program. For some
14362 # reason, if we set the COLLECT_NAMES environment variable, the problems
14363 # vanish in a puff of smoke.
14364 if test "${COLLECT_NAMES+set}" != set; then
14366 export COLLECT_NAMES
14371 # Now see if the compiler is really GCC.
14372 if test "$GCC" = "yes"; then
14375 echo $ac_n "checking checking whether we are using GNU C""... $ac_c" 1>&6
14376 echo "configure:14377: checking checking whether we are using GNU C" >&5
14377 cat > conftest.$ac_ext <<EOF
14378 #line 14379 "configure"
14379 #include "confdefs.h"
14386 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14387 egrep "yes" >/dev/null 2>&1; then
14396 echo "$ac_t""${XEGCC}" 1>&6
14399 echo $ac_n "checking how to produce PIC code""... $ac_c" 1>&6
14400 echo "configure:14401: checking how to produce PIC code" >&5
14403 can_build_shared=yes
14404 if test "$XEGCC" = yes; then
14407 case "$xehost_os" in
14408 aix[3-9]* | irix[5-9]* | osf[3-9])
14409 # PIC is the default for these OSes.
14413 # We can build DLLs from non-PIC.
14416 # FIXME: we need at least 68020 code to build shared libraries, but
14417 # adding the `-m68020' flag to GCC prevents building anything better,
14419 dll_cflags='-m68020 -resident32 -malways-restore-a4'
14421 *cygwin* | *mingw* )
14422 # PIC is the default
14429 # PORTME Check for PIC flags for the system compiler.
14430 case "$xehost_os" in
14431 hpux9* | hpux1[0-9]*)
14432 # Is there a better link_static_flag that works with the bundled CC?
14439 # PIC (with -KPIC) is the default.
14443 # We can build DLLs from non-PIC.
14447 # All OSF/1 code is PIC.
14452 # All AIX code is PIC.
14457 dll_cflags='-belf -Kpic'
14491 can_build_shared=no
14496 if test -n "$dll_cflags"; then
14497 echo "$ac_t""${dll_cflags}" 1>&6
14499 # Check to make sure the dll_cflags actually works.
14500 echo $ac_n "checking if PIC flag ${dll_cflags} really works""... $ac_c" 1>&6
14501 echo "configure:14502: checking if PIC flag ${dll_cflags} really works" >&5
14502 save_CFLAGS="$CFLAGS"
14503 CFLAGS="$CFLAGS $dll_cflags -DPIC"
14504 cat > conftest.$ac_ext <<EOF
14505 #line 14506 "configure"
14506 #include "confdefs.h"
14512 if { (eval echo configure:14513: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14515 # On HP-UX, the stripped-down bundled CC doesn't accept +Z, but also
14516 # reports no error. So, we need to grep stderr for (Bundled).
14517 if grep '(Bundled)' config.log >/dev/null; then
14518 echo "$ac_t""no" 1>&6
14519 can_build_shared=no
14522 echo "$ac_t""yes" 1>&6
14525 echo "configure: failed program was:" >&5
14526 cat conftest.$ac_ext >&5
14528 echo "$ac_t""no" 1>&6
14529 can_build_shared=no
14533 CFLAGS="$save_CFLAGS"
14535 echo "$ac_t""none" 1>&6
14538 if test "$can_build_shared" = "yes"; then
14542 echo $ac_n "checking if C compiler can produce shared libraries""... $ac_c" 1>&6
14543 echo "configure:14544: checking if C compiler can produce shared libraries" >&5
14544 if test "$XEGCC" = yes; then
14547 else # Not using GCC
14548 case "$xehost_os" in
14550 xldf="-bE:ELLSONAME.exp -H512 -T512 -bhalt:4 -bM:SRE -bnoentry -lc"
14551 xcldf="${wl}-bE:ELLSONAME.exp ${wl}-H512 ${wl}-T512 ${wl}-bhalt:4 ${wl}-bM:SRE ${wl}-bnoentry ${wl}-lc"
14554 freebsd2* | netbsd* | openbsd*)
14556 xcldf="${wl}-Bshareable"
14565 xcldf="${wl}-b ${wl}+s"
14568 irix[5-9]* | osf[3-9]*)
14569 xcldf="${wl}-shared"
14573 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7* | uts4*)
14579 xcldf="${wl}-assert ${wl}pure-text ${wl}-Bstatic"
14580 xldf="-assert pure-text -Bstatic"
14583 fi # End if if we are using gcc
14585 if test -n "$xcldf"; then
14586 save_LDFLAGS=$LDFLAGS
14588 save_xe_libs=$xe_libs
14589 LDFLAGS="$xcldf $LDFLAGS"
14592 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
14593 cat > conftest.$ac_ext <<EOF
14594 #line 14595 "configure"
14595 #include "confdefs.h"
14601 if { (eval echo configure:14602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14605 echo "configure: failed program was:" >&5
14606 cat conftest.$ac_ext >&5
14611 LDFLAGS=$save_LDFLAGS
14613 xe_libs=$save_xe_libs
14614 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
14618 echo "$ac_t""${cc_produces_so}" 1>&6
14621 if test -z "$LTLD"; then
14623 if test "$XEGCC" = yes; then
14624 # Check if gcc -print-prog-name=ld gives a path.
14625 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
14626 echo "configure:14627: checking for ld used by GCC" >&5
14627 ac_prog=`($CC -print-prog-name=ld) 2>&5`
14629 # Accept absolute paths.
14631 if test -z "$LTLD"; then
14633 *gcc-lib*) LTLD="$CC"
14641 # If it fails, then pretend we aren't using GCC.
14645 # If it is relative, then search for the first ld in PATH.
14646 with_gnu_ld=unknown
14650 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
14651 echo "configure:14652: checking for GNU ld" >&5
14654 if test -z "$LTLD"; then
14655 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
14656 for ac_dir in $PATH; do
14657 test -z "$ac_dir" && ac_dir=.
14658 if test -f "$ac_dir/$ac_prog"; then
14659 LTLD="$ac_dir/$ac_prog"
14660 # Check to see if the program is GNU ld. I'd rather use --version,
14661 # but apparently some GNU ld's only accept -v.
14662 # Break only if it was the GNU/non-GNU ld that we prefer.
14663 if "$LTLD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
14673 if test -n "$LTLD"; then
14674 echo "$ac_t""${LTLD}" 1>&6
14676 echo "$ac_t""no" 1>&6
14679 if test -z "$LTLD" -a "$cc_produces_so" = no; then
14680 { echo "configure: error: no acceptable linker found in \$PATH" 1>&2; exit 1; }
14685 ld_dynamic_link_flags=
14687 # Check to see if it really is or isn't GNU ld.
14688 echo $ac_n "checking if the linker is GNU ld""... $ac_c" 1>&6
14689 echo "configure:14690: checking if the linker is GNU ld" >&5
14690 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
14691 if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
14696 echo "$ac_t""${xe_gnu_ld}" 1>&6
14698 case "$xehost_os" in
14699 amigaos* | sunos4*)
14700 # On these operating systems, we should treat GNU ld like the system ld.
14701 gnu_ld_acts_native=yes
14704 gnu_ld_acts_native=no
14708 if test "$cc_produces_so" = "yes"; then
14711 can_build_shared=yes
14714 # OK - only NOW do we futz about with ld.
14715 # See if the linker supports building shared libraries.
14716 echo $ac_n "checking whether the linker supports shared libraries""... $ac_c" 1>&6
14717 echo "configure:14718: checking whether the linker supports shared libraries" >&5
14719 dll_ldflags=$LDFLAGS
14721 can_build_shared=yes
14722 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then
14723 # See if GNU ld supports shared libraries.
14724 if $LTLD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
14726 dll_ldflags="-shared"
14732 # PORTME fill in a description of your system's linker (not GNU ld)
14733 case "$xehost_os" in
14743 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14744 # support. Future versions do this automatically, but an explicit c++rt0.o
14745 # doesn't break anything, and helps significantly (at the cost of a little
14750 dll_post="/usr/lib/c++rt0.o"
14753 # Unfortunately, older versions of FreeBSD 2 don't have this feature.
14756 dll_ldflags="-Bshareable"
14759 # FreeBSD 3, at last, uses gcc -shared to do shared libraries.
14761 dll_ldflags="-shared"
14775 # Tested with NetBSD 1.2 ld
14790 # For both SCO and Solaris we MAY want to have LDFLAGS include -z text
14791 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7*)
14794 *gcc*) dll_ldflags="-shared"
14797 *) dll_ldflags="-G"
14803 if test "$XEGCC" = yes; then
14823 can_build_shared=no
14827 echo "$ac_t""${ld_shlibs}" 1>&6
14828 if test "$ld_shlibs" = "no"; then
14829 can_build_shared=no
14831 fi # End of if cc_produces_so = no
14834 if test "$xe_gnu_ld" = yes; then
14835 if test "$ld_shlibs" = yes; then
14836 ld_dynamic_link_flags="${wl}-export-dynamic"
14840 if test -z "$ld_dynamic_link_flags"; then
14841 case "$xehost_os" in
14843 ld_dynamic_link_flags=
14847 ld_dynamic_link_flags=
14851 ld_dynamic_link_flags=
14855 ld_dynamic_link_flags=
14859 ld_dynamic_link_flags="${wl}-E"
14863 ld_dynamic_link_flags=
14867 ld_dynamic_link_flags=
14871 ld_dynamic_link_flags=
14875 ld_dynamic_link_flags=
14878 solaris2* | solaris7*)
14879 ld_dynamic_link_flags=
14882 sco3.2v5* | unixware* | sysv5* | sysv4*)
14883 ld_dynamic_link_flags="${wl}-Bexport"
14887 ld_dynamic_link_flags=
14891 ld_dynamic_link_flags=
14895 ld_dynamic_link_flags=
14899 fi # End of if -z ld_dynamic_link_flags
14900 fi # End of if test "$can_build_shared" = "yes"
14911 if test "$can_build_shared" = "yes"; then
14912 { test "$extra_verbose" = "yes" && cat << \EOF
14913 Defining HAVE_SHLIB
14915 cat >> confdefs.h <<\EOF
14916 #define HAVE_SHLIB 1
14920 extra_objs="$extra_objs sysdll.o emodules.o" && if test "$extra_verbose" = "yes"; then
14921 echo " xemacs will be linked with \"sysdll.o emodules.o\""
14923 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
14924 test -n "$libdl" && LIBS="-l${libdl} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${libdl}\" to \$LIBS"; fi
14925 for ac_func in dlerror _dlerror
14927 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14928 echo "configure:14929: checking for $ac_func" >&5
14930 cat > conftest.$ac_ext <<EOF
14931 #line 14932 "configure"
14932 #include "confdefs.h"
14933 /* System header to define __stub macros and hopefully few prototypes,
14934 which can conflict with char $ac_func(); below. */
14935 #include <assert.h>
14936 /* Override any gcc2 internal prototype to avoid an error. */
14937 /* We use char because int might match the return type of a gcc2
14938 builtin and then its argument prototype would still apply. */
14943 /* The GNU C library defines this for functions which it implements
14944 to always fail with ENOSYS. Some functions are actually named
14945 something starting with __ and the normal name is an alias. */
14946 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14954 if { (eval echo configure:14955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14956 eval "ac_cv_func_$ac_func=yes"
14958 echo "configure: failed program was:" >&5
14959 cat conftest.$ac_ext >&5
14961 eval "ac_cv_func_$ac_func=no"
14965 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14966 echo "$ac_t""yes" 1>&6
14967 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14968 { test "$extra_verbose" = "yes" && cat << EOF
14969 Defining $ac_tr_func
14971 cat >> confdefs.h <<EOF
14972 #define $ac_tr_func 1
14977 echo "$ac_t""no" 1>&6
14983 if test "$with_modules" = "yes"; then
14984 { echo "Error:" "Required module support cannot be provided." >&2; exit 1; }
14986 echo "configure: warning: "Module support cannot be provided."" 1>&2
14992 cat > conftest.$ac_ext <<EOF
14993 #line 14994 "configure"
14994 #include "confdefs.h"
14995 int main(int c,char *v[]){return 0;}
14997 if { (eval echo configure:14998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
15002 echo "configure: failed program was:" >&5
15003 cat conftest.$ac_ext >&5
15007 echo "*** PANIC *** The C compiler can no longer build working executables."
15008 echo "*** PANIC *** Please examine the tail of config.log for runtime errors."
15009 echo "*** PANIC *** The most likely reason for this problem is that configure"
15010 echo "*** PANIC *** links with shared libraries, but those libraries cannot be"
15011 echo "*** PANIC *** found at run time."
15012 echo "*** PANIC ***"
15013 echo "*** PANIC *** On a Linux system, edit /etc/ld.so.conf and re-run ldconfig."
15014 echo "*** PANIC *** On other systems, try telling configure where to find the"
15015 echo "*** PANIC *** shared libraries using the --site-runtime-libraries option"
15016 echo "*** PANIC ***"
15017 echo "*** PANIC *** Another way to shoot yourself in the foot is to specify"
15018 echo "*** PANIC *** --with-FEATURE when FEATURE is not actually installed"
15019 echo "*** PANIC *** on your system. Don't do that."
15024 if test "$win32_processes" = "yes"; then
15025 extra_objs="$extra_objs process-nt.o" && if test "$extra_verbose" = "yes"; then
15026 echo " xemacs will be linked with \"process-nt.o\""
15029 { test "$extra_verbose" = "yes" && cat << \EOF
15030 Defining HAVE_UNIX_PROCESSES
15032 cat >> confdefs.h <<\EOF
15033 #define HAVE_UNIX_PROCESSES 1
15037 extra_objs="$extra_objs process-unix.o" && if test "$extra_verbose" = "yes"; then
15038 echo " xemacs will be linked with \"process-unix.o\""
15045 for W in $CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15050 for W in $extra_objs; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15055 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
15056 c_switch_general="$T"
15060 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
15061 c_switch_window_system="$T"
15065 for W in $c_switch_general $c_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15070 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
15071 ld_switch_general="$T"
15075 for W in $ld_switch_x_site; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15076 ld_switch_window_system="$T"
15080 for W in $ld_switch_general $ld_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15085 for W in $LIBS $libs_machine $libs_system $libs_standard; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15086 ld_libs_general="$T"
15090 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
15091 ld_libs_window_system="$T"
15095 for W in $ld_libs_window_system $ld_libs_general; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15100 MAKE_SUBDIR="$MAKE_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$MAKE_SUBDIR"; fi
15101 internal_makefile_list="Makefile.in"
15102 SUBDIR_MAKEFILES=''
15103 test -d lock || mkdir lock
15104 for dir in $MAKE_SUBDIR; do
15105 case "$dir" in */* ) ( for d in `echo $dir | sed 's:/: :g'` ; do
15106 test -d "$d" || mkdir "$d"; cd "$d"
15108 * ) test -d "$dir" || mkdir "$dir" ;;
15112 for W in $SUBDIR_MAKEFILES $dir/Makefile $dir/GNUmakefile; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15113 SUBDIR_MAKEFILES="$T"
15117 for W in $internal_makefile_list $dir/Makefile.in; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15118 internal_makefile_list="$T"
15125 for dir in src/s src/m; do
15126 if test ! -d "$dir" ; then
15127 echo Making symbolic link to "$srcdir/$dir"
15128 ${LN_S} "$srcdir/$dir" "$dir"
15132 if test "$extra_verbose" = "yes"; then
15134 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
15139 if test -f "$srcdir/src/.gdbinit" -a ! -f "src/.gdbinit"; then
15140 test "$extra_verbose" = "yes" && echo "creating src/.gdbinit"
15141 echo "source $srcdir/src/.gdbinit" > "src/.gdbinit"
15144 if test -f "$srcdir/src/.dbxrc" -a ! -f "src/.dbxrc"; then
15145 test "$extra_verbose" = "yes" && echo "creating src/.dbxrc"
15146 echo ". $srcdir/src/.dbxrc" > "src/.dbxrc"
15149 if test -f "$srcdir/TAGS" -a ! -f "TAGS"; then
15150 test "$extra_verbose" = "yes" && echo "creating TAGS"
15152 $srcdir/TAGS,include" > "TAGS"
15155 if test "$__SUNPRO_C" = "yes"; then
15156 test "$extra_verbose" = "yes" && echo "creating .sbinit"
15157 ( echo "# For use with Sun WorkShop's Source browser."
15158 echo "# See sbquery(1) and sbinit(4) for more information"
15159 for dir in $MAKE_SUBDIR; do echo "import $dir"; done
15187 *\$* ) eval "PREFIX=$PREFIX" ;;
15195 EXEC_PREFIX=$exec_prefix
15197 case "$EXEC_PREFIX" in
15198 *\$* ) eval "EXEC_PREFIX=$EXEC_PREFIX" ;;
15209 *\$* ) eval "INFODIR=$INFODIR" ;;
15219 case "$INFOPATH" in
15220 *\$* ) eval "INFOPATH=$INFOPATH" ;;
15228 PACKAGE_PATH=$package_path
15230 case "$PACKAGE_PATH" in
15231 *\$* ) eval "PACKAGE_PATH=$PACKAGE_PATH" ;;
15242 *\$* ) eval "LISPDIR=$LISPDIR" ;;
15250 MODULEDIR=$moduledir
15252 case "$MODULEDIR" in
15253 *\$* ) eval "MODULEDIR=$MODULEDIR" ;;
15261 SITELISPDIR=$sitelispdir
15263 case "$SITELISPDIR" in
15264 *\$* ) eval "SITELISPDIR=$SITELISPDIR" ;;
15272 SITEMODULEDIR=$sitemoduledir
15274 case "$SITEMODULEDIR" in
15275 *\$* ) eval "SITEMODULEDIR=$SITEMODULEDIR" ;;
15286 *\$* ) eval "ETCDIR=$ETCDIR" ;;
15297 *\$* ) eval "DOCDIR=$DOCDIR" ;;
15305 ARCHLIBDIR=$archlibdir
15307 case "$ARCHLIBDIR" in
15308 *\$* ) eval "ARCHLIBDIR=$ARCHLIBDIR" ;;
15332 RECURSIVE_MAKE="\$(MAKE) \$(MFLAGS) CC='\$(CC)' CFLAGS='\$(CFLAGS)' LDFLAGS='\$(LDFLAGS)' CPPFLAGS='\$(CPPFLAGS)'"
15340 : ${XEMACS_CC:=$CC}
15343 if test "$with_prefix" = "yes"; then
15344 { test "$extra_verbose" = "yes" && cat << \EOF
15345 Defining PREFIX_USER_DEFINED
15347 cat >> confdefs.h <<\EOF
15348 #define PREFIX_USER_DEFINED 1
15354 if test "$with_site_lisp" = "no"; then
15355 { test "$extra_verbose" = "yes" && cat << \EOF
15356 Defining INHIBIT_SITE_LISP
15358 cat >> confdefs.h <<\EOF
15359 #define INHIBIT_SITE_LISP 1
15364 if test "$with_site_modules" = "no"; then
15365 { test "$extra_verbose" = "yes" && cat << \EOF
15366 Defining INHIBIT_SITE_MODULES
15368 cat >> confdefs.h <<\EOF
15369 #define INHIBIT_SITE_MODULES 1
15377 for W in $ac_configure_args; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15378 ac_configure_args="$T"
15380 { test "$extra_verbose" = "yes" && cat << EOF
15381 Defining EMACS_CONFIGURATION = "$configuration"
15383 cat >> confdefs.h <<EOF
15384 #define EMACS_CONFIGURATION "$configuration"
15388 { test "$extra_verbose" = "yes" && cat << EOF
15389 Defining EMACS_CONFIG_OPTIONS = "$ac_configure_args"
15391 cat >> confdefs.h <<EOF
15392 #define EMACS_CONFIG_OPTIONS "$ac_configure_args"
15399 { test "$extra_verbose" = "yes" && cat << EOF
15400 Defining LD_SWITCH_X_SITE = $null_string
15402 cat >> confdefs.h <<EOF
15403 #define LD_SWITCH_X_SITE $null_string
15407 { test "$extra_verbose" = "yes" && cat << EOF
15408 Defining LD_SWITCH_X_SITE_AUX = $null_string
15410 cat >> confdefs.h <<EOF
15411 #define LD_SWITCH_X_SITE_AUX $null_string
15415 { test "$extra_verbose" = "yes" && cat << EOF
15416 Defining C_SWITCH_X_SITE = $null_string
15418 cat >> confdefs.h <<EOF
15419 #define C_SWITCH_X_SITE $null_string
15423 { test "$extra_verbose" = "yes" && cat << EOF
15424 Defining LD_SWITCH_SITE = $null_string
15426 cat >> confdefs.h <<EOF
15427 #define LD_SWITCH_SITE $null_string
15431 { test "$extra_verbose" = "yes" && cat << EOF
15432 Defining C_SWITCH_SITE = $null_string
15434 cat >> confdefs.h <<EOF
15435 #define C_SWITCH_SITE $null_string
15441 if test "$GNU_MALLOC" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
15442 Defining GNU_MALLOC
15444 cat >> confdefs.h <<\EOF
15445 #define GNU_MALLOC 1
15449 elif test "$with_system_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
15450 Defining USE_SYSTEM_MALLOC
15452 cat >> confdefs.h <<\EOF
15453 #define USE_SYSTEM_MALLOC 1
15457 elif test "$with_debug_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
15458 Defining USE_DEBUG_MALLOC
15460 cat >> confdefs.h <<\EOF
15461 #define USE_DEBUG_MALLOC 1
15465 { test "$extra_verbose" = "yes" && cat << \EOF
15466 Defining USE_SYSTEM_MALLOC
15468 cat >> confdefs.h <<\EOF
15469 #define USE_SYSTEM_MALLOC 1
15474 test "$with_i18n3" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15477 cat >> confdefs.h <<\EOF
15482 test "$GCC" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15485 cat >> confdefs.h <<\EOF
15490 test "$external_widget" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15491 Defining EXTERNAL_WIDGET
15493 cat >> confdefs.h <<\EOF
15494 #define EXTERNAL_WIDGET 1
15498 test "$quick_build" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15499 Defining QUICK_BUILD
15501 cat >> confdefs.h <<\EOF
15502 #define QUICK_BUILD 1
15506 test "$with_purify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15509 cat >> confdefs.h <<\EOF
15514 test "$with_quantify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15517 cat >> confdefs.h <<\EOF
15522 test "$with_pop" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15523 Defining MAIL_USE_POP
15525 cat >> confdefs.h <<\EOF
15526 #define MAIL_USE_POP 1
15530 test "$with_kerberos" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15533 cat >> confdefs.h <<\EOF
15538 test "$with_hesiod" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15541 cat >> confdefs.h <<\EOF
15546 test "$use_union_type" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15547 Defining USE_UNION_TYPE
15549 cat >> confdefs.h <<\EOF
15550 #define USE_UNION_TYPE 1
15554 test "$pdump" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15557 cat >> confdefs.h <<\EOF
15565 if test -f /etc/osversion; then echo "osversion: `cat /etc/osversion`"
15567 echo "uname -a: `uname -a`"
15570 echo "$0 $quoted_arguments"
15573 if test ! -z ${emacs_beta_version} ; then
15574 if test -z "${emacs_is_beta}" ; then
15575 xemacs_betaname=".${emacs_beta_version}"
15577 xemacs_betaname="-b${emacs_beta_version}"
15586 XEmacs ${emacs_major_version}.${emacs_minor_version}${xemacs_betaname} \"$xemacs_codename\" configured for \`$canonical'.
15589 Compilation / Installation:"
15590 echo " Source code location: $srcdir"
15591 echo " Installation prefix: $prefix"
15592 if test -n "$site_includes"; then
15593 echo " Additional header files: $site_includes"
15595 if test -n "$site_libraries"; then
15596 echo " Additional libraries: $site_libraries"
15598 if test -n "$site_prefixes"; then
15599 echo " Additional prefixes: $site_prefixes"
15601 if test -n "$runpath"; then
15602 echo " Runtime library search path: $runpath"
15605 if test -n "$opsysfile"
15606 then echo " Operating system description file: \`$opsysfile'"
15607 else echo " Not using any operating system description file"
15609 if test -n "$machfile"
15610 then echo " Machine description file: \`$machfile'"
15611 else echo " Not using any machine description file"
15614 echo " Compiler: $CC $CFLAGS"
15615 echo " Relocating allocator for buffers: $rel_alloc"
15616 echo " GNU version of malloc: ${GNU_MALLOC}${GNU_MALLOC_reason}"
15620 if test "$with_msw" = "yes"; then
15621 echo " Compiling in support for the Microsoft window system."
15623 if test "$with_x11" = "yes"; then
15624 echo " Compiling in support for the X window system:"
15625 echo " - X Windows headers location: $x_includes"
15626 echo " - X Windows libraries location: $x_libraries"
15627 if test "$with_xauth" != yes; then
15628 echo " - Xau (X authority) not available."
15630 if test "$with_xmu" != yes; then
15631 echo " - Xmu library not available; substituting equivalent routines."
15633 if test "$with_wmcommand" != no; then
15634 echo " - Handling WM_COMMAND properly."
15637 if test "$need_athena" = "yes"; then
15638 echo " Compiling in support for the Athena widget set:"
15639 echo " - Athena headers location: $athena_h_path"
15640 echo " - Athena library to link: $athena_lib"
15642 case "$with_menubars" in
15643 gtk ) echo " Using GTK menubars." ;;
15644 lucid ) echo " Using Lucid menubars." ;;
15645 motif ) echo " Using Motif menubars."
15646 echo " *WARNING* The Motif menubar implementation is currently buggy."
15647 echo " We recommend using the Lucid menubar instead."
15648 echo " Re-run configure with --with-menubars='lucid'." ;;
15649 msw ) echo " Using MS-Windows menubars." ;;
15651 case "$with_scrollbars" in
15652 gtk ) echo " Using GTK scrollbars." ;;
15653 lucid ) echo " Using Lucid scrollbars." ;;
15654 motif ) echo " Using Motif scrollbars." ;;
15655 athena ) echo " Using Athena scrollbars." ;;
15656 msw ) echo " Using MS-Windows scrollbars." ;;
15658 case "$with_dialogs" in
15659 gtk ) echo " Using GTK dialog boxes." ;;
15660 motif ) echo " Using Motif dialog boxes."
15661 if test "$unexec" = "unexaix.o"; then if test "`uname -v`" = 4 -a "`uname -r`" -ge 3; then
15662 echo " *WARNING* The Motif dialog boxes cause problems on AIX 4.3 and higher."
15663 echo " We recommend using the Athena dialog boxes instead."
15664 echo " Install libXaw and re-run configure with --with-dialogs='athena'."
15665 echo " Read the PROBLEMS file for more information."
15667 athena ) echo " Using Athena dialog boxes." ;;
15668 msw ) echo " Using MS-Windows dialog boxes." ;;
15670 case "$with_widgets" in
15671 gtk ) echo " Using GTK native widgets." ;;
15672 motif ) echo " Using Motif native widgets." ;;
15673 athena ) echo " Using Athena native widgets." ;;
15674 msw ) echo " Using MS-Windows native widgets." ;;
15676 if test "$with_dragndrop" = yes; then
15677 echo " Compiling in support for Drag'n'Drop (EXPERIMENTAL)."
15678 echo " - Drag'n'Drop prototype: $dragndrop_proto."
15683 test "$with_ncurses" = yes && echo " Compiling in support for ncurses."
15684 test "$with_gpm" = yes && echo " Compiling in support for GPM (General Purpose Mouse)."
15688 test "$with_gif" = yes && echo " Compiling in support for GIF images (builtin)."
15689 if test "$with_xpm" = yes; then
15690 echo " Compiling in support for XPM images."
15691 elif test "$with_x11" = yes; then
15692 echo " WARNING: -----------------------------------------------------------"
15693 echo " WARNING: Compiling without XPM image support."
15694 if test "$xpm_problem" != ""; then
15695 echo " Reason: $xpm_problem"
15697 echo " WARNING: You should strongly consider installing XPM."
15698 echo " WARNING: Otherwise toolbars and other graphics will look suboptimal."
15699 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
15700 echo " WARNING: -----------------------------------------------------------"
15702 if test "$with_png" = yes; then
15703 echo " Compiling in support for PNG images."
15704 elif test "$window_system" != "none"; then
15705 echo " WARNING: -----------------------------------------------------------"
15706 echo " WARNING: Compiling without PNG image support."
15707 if test "$png_problem" != ""; then
15708 echo " Reason: $png_problem"
15710 echo " WARNING: You should strongly consider installing the PNG libraries."
15711 echo " WARNING: Otherwise certain images and glyphs may not display."
15712 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
15713 echo " WARNING: -----------------------------------------------------------"
15715 test "$with_jpeg" = yes && echo " Compiling in support for JPEG images."
15716 test "$with_tiff" = yes && echo " Compiling in support for TIFF images."
15717 test "$with_xface" = yes && echo " Compiling in support for X-Face message headers."
15721 test "$with_native_sound" = yes && echo " Compiling in support for sound (native)."
15722 test "$with_nas_sound" = yes && echo " Compiling in support for NAS (network audio system)."
15723 test "$old_nas" = yes && echo " - NAS library lacks error trapping; will play synchronously."
15724 test "$with_esd_sound" = yes && echo " Compiling in support for ESD (Enlightened Sound Daemon)."
15728 test "$with_database_berkdb" = yes && echo " Compiling in support for Berkeley database."
15729 test "$with_database_dbm" = yes && echo " Compiling in support for DBM."
15730 test "$with_database_gdbm" = yes && echo " Compiling in support for GNU DBM."
15731 test "$with_ldap" = yes && echo " Compiling in support for LDAP."
15732 if test "$with_postgresql" = yes; then
15733 echo " Compiling in support for PostgreSQL."
15734 echo " - Using PostgreSQL header file: $libpq_fe_h_file"
15735 test "$with_postgresqlv7" = yes && echo " - Using PostgreSQL V7 bindings."
15739 Internationalization:"
15740 test "$with_mule" = yes && echo " Compiling in support for Mule (multi-lingual Emacs)."
15741 test "$with_file_coding" = yes && echo " Compiling in support for file coding."
15742 test "$with_xim" != no && echo " Compiling in support for XIM (X11R5+ I18N input method)."
15743 test "$with_xim" = motif && echo " - Using Motif to provide XIM support."
15744 test "$with_xim" = xlib && echo " - Using raw Xlib to provide XIM support."
15745 test "$with_xfs" = yes && echo " - Using XFontSet to provide bilingual menubar."
15746 test "$with_canna" = yes && echo " Compiling in support for Canna on Mule."
15747 if test "$with_wnn" = yes; then
15748 echo " Compiling in support for the WNN input method on Mule."
15749 test "$with_wnn6" = yes && echo " - Using WNN version 6."
15751 test "$with_i18n3" = yes && echo " Compiling in support for I18N level 3 (doesn't currently work)."
15755 test "$with_pop" = yes && echo " Compiling in support for POP mail retrieval."
15756 test "$with_kerberos" = yes && echo " Compiling in support for Kerberos POP authentication."
15757 test "$with_hesiod" = yes && echo " Compiling in support for Hesiod POP server access."
15758 test -n "$mail_locking" && echo " Compiling in support for \"$mail_locking\" mail spool file locking method."
15762 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk."
15763 test "$with_workshop" = yes && echo " Compiling in support for Sun WorkShop."
15764 test "$with_socks" = yes && echo " Compiling in support for SOCKS."
15765 test "$with_dnet" = yes && echo " Compiling in support for DNET."
15766 test "$with_modules" = "yes" && echo " Compiling in support for dynamic shared object modules."
15767 test "$use_union_type" = yes && echo " Using the union type for Lisp_Objects."
15768 test "$pdump" = yes && echo " Using the new portable dumper."
15769 test "$debug" = yes && echo " Compiling in support for extra debugging code."
15770 test "$usage_tracking" = yes && echo " Compiling in support for active usage tracking (Sun internal)."
15771 if test "$error_check_extents $error_check_typecheck $error_check_bufpos $error_check_gc $error_check_malloc $error_check_glyphs" \
15772 != "no no no no no no"; then
15773 echo " WARNING: ---------------------------------------------------------"
15774 echo " WARNING: Compiling in support for runtime error checking."
15775 echo " WARNING: XEmacs will run noticeably more slowly as a result."
15776 echo " WARNING: Error checking is on by default for XEmacs beta releases."
15777 echo " WARNING: ---------------------------------------------------------"
15780 ) | tee -a Installation
15784 # Remove any trailing slashes in these variables.
15785 test -n "$prefix" &&
15786 prefix=`echo '' "$prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
15787 test -n "$exec_prefix" &&
15788 exec_prefix=`echo '' "$exec_prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
15791 for file in $internal_makefile_list; do
15792 test "$file" = src/Makefile.in && \
15793 file="src/Makefile.in:src/Makefile.in.in:src/depend"
15794 ac_output_files="$ac_output_files $file" && if test "$extra_verbose" = "yes"; then echo " Appending \"$file\" to \$ac_output_files"; fi
15796 ac_output_files="$ac_output_files src/paths.h lib-src/config.values"
15797 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
15801 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
15803 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15804 # Let make expand exec_prefix.
15805 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15807 # Any assignment to VPATH causes Sun make to only execute
15808 # the first set of double-colon rules, so remove it if not needed.
15809 # If there is a colon in the path, we need to keep it.
15810 if test "x$srcdir" = x.; then
15811 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
15814 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
15816 DEFS=-DHAVE_CONFIG_H
15818 # Without the "./", some shells look in PATH for config.status.
15819 : ${CONFIG_STATUS=./config.status}
15821 echo creating $CONFIG_STATUS
15822 rm -f $CONFIG_STATUS
15823 cat > $CONFIG_STATUS <<EOF
15825 # Generated automatically by configure.
15826 # Run this file to recreate the current configuration.
15827 # This directory was configured as follows,
15828 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15830 # $0 $ac_configure_args
15832 # Compiler output produced by configure, useful for debugging
15833 # configure, is in ./config.log if it exists.
15835 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
15838 case "\$ac_option" in
15839 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15840 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
15841 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
15842 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
15843 echo "$CONFIG_STATUS generated by autoconf version 2.13"
15845 -help | --help | --hel | --he | --h)
15846 echo "\$ac_cs_usage"; exit 0 ;;
15847 *) echo "\$ac_cs_usage"; exit 1 ;;
15851 ac_given_srcdir=$srcdir
15852 ac_given_INSTALL="$INSTALL"
15854 trap 'rm -fr `echo "$ac_output_files src/config.h lwlib/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
15856 cat >> $CONFIG_STATUS <<EOF
15858 # Protect against being on the right side of a sed subst in config.status.
15859 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
15860 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
15864 s%@CFLAGS@%$CFLAGS%g
15865 s%@CPPFLAGS@%$CPPFLAGS%g
15866 s%@CXXFLAGS@%$CXXFLAGS%g
15867 s%@FFLAGS@%$FFLAGS%g
15869 s%@LDFLAGS@%$LDFLAGS%g
15871 s%@exec_prefix@%$exec_prefix%g
15872 s%@prefix@%$prefix%g
15873 s%@program_transform_name@%$program_transform_name%g
15874 s%@bindir@%$bindir%g
15875 s%@sbindir@%$sbindir%g
15876 s%@libexecdir@%$libexecdir%g
15877 s%@datadir@%$datadir%g
15878 s%@sysconfdir@%$sysconfdir%g
15879 s%@sharedstatedir@%$sharedstatedir%g
15880 s%@localstatedir@%$localstatedir%g
15881 s%@libdir@%$libdir%g
15882 s%@includedir@%$includedir%g
15883 s%@oldincludedir@%$oldincludedir%g
15884 s%@infodir@%$infodir%g
15885 s%@mandir@%$mandir%g
15887 s%@blddir@%$blddir%g
15890 s%@start_flags@%$start_flags%g
15891 s%@ld_switch_shared@%$ld_switch_shared%g
15892 s%@start_files@%$start_files%g
15894 s%@lib_gcc@%$lib_gcc%g
15895 s%@RANLIB@%$RANLIB%g
15896 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
15897 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
15898 s%@INSTALL_DATA@%$INSTALL_DATA%g
15900 s%@SET_MAKE@%$SET_MAKE%g
15901 s%@GTK_CONFIG@%$GTK_CONFIG%g
15902 s%@X_CFLAGS@%$X_CFLAGS%g
15903 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
15904 s%@X_LIBS@%$X_LIBS%g
15905 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
15906 s%@install_pp@%$install_pp%g
15907 s%@libs_xauth@%$libs_xauth%g
15908 s%@dnd_objs@%$dnd_objs%g
15909 s%@lwlib_objs@%$lwlib_objs%g
15910 s%@ALLOCA@%$ALLOCA%g
15911 s%@have_esd_config@%$have_esd_config%g
15912 s%@dll_ld@%$dll_ld%g
15913 s%@dll_cflags@%$dll_cflags%g
15914 s%@dll_ldflags@%$dll_ldflags%g
15915 s%@dll_post@%$dll_post%g
15916 s%@dll_ldo@%$dll_ldo%g
15917 s%@ld_dynamic_link_flags@%$ld_dynamic_link_flags%g
15918 s%@SRC_SUBDIR_DEPS@%$SRC_SUBDIR_DEPS%g
15919 s%@INSTALL_ARCH_DEP_SUBDIR@%$INSTALL_ARCH_DEP_SUBDIR%g
15920 s%@MAKE_SUBDIR@%$MAKE_SUBDIR%g
15921 s%@SUBDIR_MAKEFILES@%$SUBDIR_MAKEFILES%g
15922 s%@PROGNAME@%$PROGNAME%g
15923 s%@version@%$version%g
15924 s%@configuration@%$configuration%g
15925 s%@canonical@%$canonical%g
15926 s%@inststaticdir@%$inststaticdir%g
15927 s%@instvardir@%$instvardir%g
15928 s%@srcdir@%$srcdir%g
15929 s%@pkgdir@%$pkgdir%g
15930 s%@statedir@%$statedir%g
15931 s%@extra_includes@%$extra_includes%g
15932 s%@PREFIX_USER_DEFINED@%$PREFIX_USER_DEFINED%g
15933 s%@PREFIX@%$PREFIX%g
15934 s%@EXEC_PREFIX_USER_DEFINED@%$EXEC_PREFIX_USER_DEFINED%g
15935 s%@EXEC_PREFIX@%$EXEC_PREFIX%g
15936 s%@INFODIR_USER_DEFINED@%$INFODIR_USER_DEFINED%g
15937 s%@INFODIR@%$INFODIR%g
15938 s%@infopath@%$infopath%g
15939 s%@INFOPATH_USER_DEFINED@%$INFOPATH_USER_DEFINED%g
15940 s%@INFOPATH@%$INFOPATH%g
15941 s%@package_path@%$package_path%g
15942 s%@PACKAGE_PATH_USER_DEFINED@%$PACKAGE_PATH_USER_DEFINED%g
15943 s%@PACKAGE_PATH@%$PACKAGE_PATH%g
15944 s%@lispdir@%$lispdir%g
15945 s%@LISPDIR_USER_DEFINED@%$LISPDIR_USER_DEFINED%g
15946 s%@LISPDIR@%$LISPDIR%g
15947 s%@moduledir@%$moduledir%g
15948 s%@MODULEDIR_USER_DEFINED@%$MODULEDIR_USER_DEFINED%g
15949 s%@MODULEDIR@%$MODULEDIR%g
15950 s%@sitelispdir@%$sitelispdir%g
15951 s%@SITELISPDIR_USER_DEFINED@%$SITELISPDIR_USER_DEFINED%g
15952 s%@SITELISPDIR@%$SITELISPDIR%g
15953 s%@sitemoduledir@%$sitemoduledir%g
15954 s%@SITEMODULEDIR_USER_DEFINED@%$SITEMODULEDIR_USER_DEFINED%g
15955 s%@SITEMODULEDIR@%$SITEMODULEDIR%g
15956 s%@etcdir@%$etcdir%g
15957 s%@ETCDIR_USER_DEFINED@%$ETCDIR_USER_DEFINED%g
15958 s%@ETCDIR@%$ETCDIR%g
15959 s%@docdir@%$docdir%g
15960 s%@DOCDIR_USER_DEFINED@%$DOCDIR_USER_DEFINED%g
15961 s%@DOCDIR@%$DOCDIR%g
15962 s%@archlibdir@%$archlibdir%g
15963 s%@ARCHLIBDIR_USER_DEFINED@%$ARCHLIBDIR_USER_DEFINED%g
15964 s%@ARCHLIBDIR@%$ARCHLIBDIR%g
15965 s%@bitmapdir@%$bitmapdir%g
15966 s%@extra_objs@%$extra_objs%g
15967 s%@machfile@%$machfile%g
15968 s%@opsysfile@%$opsysfile%g
15969 s%@c_switch_general@%$c_switch_general%g
15970 s%@c_switch_window_system@%$c_switch_window_system%g
15971 s%@c_switch_all@%$c_switch_all%g
15972 s%@ld_switch_general@%$ld_switch_general%g
15973 s%@ld_switch_window_system@%$ld_switch_window_system%g
15974 s%@ld_switch_all@%$ld_switch_all%g
15975 s%@ld_libs_general@%$ld_libs_general%g
15976 s%@ld_libs_window_system@%$ld_libs_window_system%g
15977 s%@ld_libs_all@%$ld_libs_all%g
15978 s%@RECURSIVE_MAKE@%$RECURSIVE_MAKE%g
15979 s%@native_sound_lib@%$native_sound_lib%g
15980 s%@sound_cflags@%$sound_cflags%g
15981 s%@dynodump_arch@%$dynodump_arch%g
15982 s%@XEMACS_CC@%$XEMACS_CC%g
15983 s%@internal_makefile_list@%$internal_makefile_list%g
15988 cat >> $CONFIG_STATUS <<\EOF
15990 # Split the substitutions into bite-sized pieces for seds with
15991 # small command number limits, like on Digital OSF/1 and HP-UX.
15992 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
15993 ac_file=1 # Number of current file.
15994 ac_beg=1 # First line for current file.
15995 ac_end=$ac_max_sed_cmds # Line after last line for current file.
15998 while $ac_more_lines; do
15999 if test $ac_beg -gt 1; then
16000 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
16002 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
16004 if test ! -s conftest.s$ac_file; then
16005 ac_more_lines=false
16006 rm -f conftest.s$ac_file
16008 if test -z "$ac_sed_cmds"; then
16009 ac_sed_cmds="sed -f conftest.s$ac_file"
16011 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
16013 ac_file=`expr $ac_file + 1`
16015 ac_end=`expr $ac_end + $ac_max_sed_cmds`
16018 if test -z "$ac_sed_cmds"; then
16023 cat >> $CONFIG_STATUS <<EOF
16025 CONFIG_FILES=\${CONFIG_FILES-"$ac_output_files"}
16027 cat >> $CONFIG_STATUS <<\EOF
16028 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
16029 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16031 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16032 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16033 *) ac_file_in="${ac_file}.in" ;;
16036 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
16038 # Remove last slash and all that follows it. Not all systems have dirname.
16039 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16040 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16041 # The file is in a subdirectory.
16042 test ! -d "$ac_dir" && mkdir "$ac_dir"
16043 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
16044 # A "../" for each directory in $ac_dir_suffix.
16045 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
16047 ac_dir_suffix= ac_dots=
16050 case "$ac_given_srcdir" in
16052 if test -z "$ac_dots"; then top_srcdir=.
16053 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
16054 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
16055 *) # Relative path.
16056 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
16057 top_srcdir="$ac_dots$ac_given_srcdir" ;;
16060 case "$ac_given_INSTALL" in
16061 [/$]*) INSTALL="$ac_given_INSTALL" ;;
16062 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
16065 echo creating "$ac_file"
16067 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
16069 *Makefile*) ac_comsub="1i\\
16070 # $configure_input" ;;
16074 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16076 s%@configure_input@%$configure_input%g
16077 s%@srcdir@%$srcdir%g
16078 s%@top_srcdir@%$top_srcdir%g
16079 s%@INSTALL@%$INSTALL%g
16080 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
16084 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16085 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16087 # ac_d sets the value in "#define NAME VALUE" lines.
16088 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16089 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
16092 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
16093 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16094 ac_uB='\([ ]\)%\1#\2define\3'
16097 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16098 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16099 ac_eB='$%\1#\2define\3'
16103 if test "${CONFIG_HEADERS+set}" != set; then
16105 cat >> $CONFIG_STATUS <<EOF
16106 CONFIG_HEADERS="src/config.h lwlib/config.h"
16108 cat >> $CONFIG_STATUS <<\EOF
16110 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
16111 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16113 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16114 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16115 *) ac_file_in="${ac_file}.in" ;;
16118 echo creating $ac_file
16120 rm -f conftest.frag conftest.in conftest.out
16121 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16122 cat $ac_file_inputs > conftest.in
16126 # Transform confdefs.h into a sed script conftest.vals that substitutes
16127 # the proper values into config.h.in to produce config.h. And first:
16128 # Protect against being on the right side of a sed subst in config.status.
16129 # Protect against being in an unquoted here document in config.status.
16130 rm -f conftest.vals
16131 cat > conftest.hdr <<\EOF
16134 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
16138 sed -n -f conftest.hdr confdefs.h > conftest.vals
16141 # This sed command replaces #undef with comments. This is necessary, for
16142 # example, in the case of _POSIX_SOURCE, which is predefined and required
16143 # on some systems where configure will not decide to define it.
16144 cat >> conftest.vals <<\EOF
16145 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
16148 # Break up conftest.vals because some shells have a limit on
16149 # the size of here documents, and old seds have small limits too.
16151 rm -f conftest.tail
16154 ac_lines=`grep -c . conftest.vals`
16155 # grep -c gives empty output for an empty file on some AIX systems.
16156 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
16157 # Write a limited-size here document to conftest.frag.
16158 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
16159 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
16161 sed -f conftest.frag conftest.in > conftest.out
16163 mv conftest.out conftest.in
16164 ' >> $CONFIG_STATUS
16165 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
16166 rm -f conftest.vals
16167 mv conftest.tail conftest.vals
16169 rm -f conftest.vals
16171 cat >> $CONFIG_STATUS <<\EOF
16172 rm -f conftest.frag conftest.h
16173 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
16174 cat conftest.in >> conftest.h
16176 if cmp -s $ac_file conftest.h 2>/dev/null; then
16177 echo "$ac_file is unchanged"
16180 # Remove last slash and all that follows it. Not all systems have dirname.
16181 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16182 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16183 # The file is in a subdirectory.
16184 test ! -d "$ac_dir" && mkdir "$ac_dir"
16187 mv conftest.h $ac_file
16192 cat >> $CONFIG_STATUS <<EOF
16194 top_srcdir="$srcdir"
16195 MAKE_SUBDIR="$MAKE_SUBDIR"
16198 cat >> $CONFIG_STATUS <<\EOF
16199 for dir in . $MAKE_SUBDIR; do
16204 sed -e '/^# Generated/d' \
16205 -e 's%/\*\*/#.*%%' \
16220 echo creating $dir/Makefile
16221 $CPP -I. -I${top_srcdir}/src junk.c \
16222 | sed -e 's/^\#.*//' \
16223 -e 's/^[ ][ ]*$//'\
16231 chmod 444 Makefile.new
16232 mv -f Makefile.new Makefile
16234 echo creating $dir/GNUmakefile
16235 $CPP -I. -I${top_srcdir}/src -DUSE_GNU_MAKE junk.c \
16236 | sed -e 's/^\#.*//' \
16237 -e 's/^[ ][ ]*$//'\
16245 chmod 444 Makefile.new
16246 mv -f Makefile.new GNUmakefile
16252 sed < config.status >> lib-src/config.values \
16253 -e '/{ac_dA}.*{ac_dB}.*{ac_dC}.*{ac_dD}$/!d' \
16254 -e 's/\${ac_dA}\(.*\)\${ac_dB}.*\${ac_dC}\(.*\)\${ac_dD}/\1 \2/' \
16255 -e 's/^\([^ ]*\) $/\1 ""/' \
16261 chmod +x $CONFIG_STATUS
16262 rm -fr confdefs* $ac_clean_files
16263 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1