annotate configure @ 1161:8e95979f01c6

[xemacs-hg @ 2002-12-16 02:32:47 by ben] fixes for window-config problems and set-window-point
author ben
date Mon, 16 Dec 2002 02:33:04 +0000
parents 37bdd24225ef
children 6041a741b6d6
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1 #! /bin/sh
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3 #### Configuration script for XEmacs. Largely divergent from FSF.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4 #### Guess values for system-dependent variables and create Makefiles.
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
5 #### Generated automatically using autoconf version 2.13
460
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
6 #### Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7 #### Copyright (C) 1993-1995 Board of Trustees, University of Illinois.
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8 #### Copyright (C) 1996, 1997 Sun Microsystems, Inc.
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
9 #### Copyright (C) 1995, 1996, 2002 Ben Wing.
460
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
10 #### Copyright (C) 2000, 2001 Martin Buchholz.
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
11 #### Copyright (C) 1998, 1999 J. Kean Johnston.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13 ### Don't edit this script!
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14 ### This script was automatically generated by the `autoconf' program
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15 ### from the file `./configure.in'.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16 ### To rebuild it, execute the command
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17 ### autoconf
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
18 ### in the this directory. You must have autoconf version 2.13 or later.
724
76d5a3dd827a [xemacs-hg @ 2002-01-05 07:33:11 by stephent]
stephent
parents: 720
diff changeset
19 ### Note: this script has not yet been ported to autoconf version 2.5x.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
20
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
21 ### This file is part of XEmacs.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
22
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
23 ### XEmacs is free software; you can redistribute it and/or modify it
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
24 ### under the terms of the GNU General Public License as published by
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
25 ### the Free Software Foundation; either version 2, or (at your
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
26 ### option) any later version.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
27
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
28 ### XEmacs is distributed in the hope that it will be useful, but
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
29 ### WITHOUT ANY WARRANTY; without even the implied warranty of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
30 ### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
31 ### General Public License for more details.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
32
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
33 ### You should have received a copy of the GNU General Public License
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
34 ### along with XEmacs; see the file COPYING. If not, write to the Free
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
35 ### Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
36 ### 02111-1307, USA.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
37
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
38 ### For usage, run `./configure --help'
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
39 ### For more detailed information on building and installing XEmacs,
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
40 ### read the file `INSTALL'.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
41 ###
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
42 ### If configure succeeds, it leaves its status in config.status.
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
43 ### A log of configuration tests can be found in config.log.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
44 ### If configure fails after disturbing the status quo,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
45 ### config.status is removed.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
46
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
47 ac_help="$ac_help
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
48 --with-x use the X Window System"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
49
284
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
50
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
51
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
52 if test -n "$ZSH_VERSION"; then
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
53 setopt NO_BAD_PATTERN NO_BANG_HIST NO_BG_NICE NO_EQUALS NO_FUNCTION_ARGZERO
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
54 setopt GLOB_SUBST NO_HUP INTERACTIVE_COMMENTS KSH_ARRAYS NO_MULTIOS NO_NOMATCH
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
55 setopt RM_STAR_SILENT POSIX_BUILTINS SH_FILE_EXPANSION SH_GLOB SH_OPTION_LETTERS
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
56 setopt SH_WORD_SPLIT BSD_ECHO IGNORE_BRACES
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
57 if test -n "$CDPATH"; then CDPATH="."; export CDPATH; fi
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
58 elif test -n "$BASH_VERSION"; then
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
59 set -o posix
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
60 unset CDPATH
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
61 else
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
62 if test -n "$CDPATH"; then CDPATH="."; export CDPATH; fi
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
63 fi
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
64
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
65 exec_prefix=NONE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
66 host=NONE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
67 no_create=
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
68 nonopt=NONE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
69 no_recursion=
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
70 prefix=NONE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
71 program_prefix=NONE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
72 program_suffix=NONE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
73 program_transform_name=s,x,x,
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
74 silent=
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
75 site=
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
76 srcdir=
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
77 target=NONE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
78 verbose=
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
79 x_includes=NONE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
80 x_libraries=NONE
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
81
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
82 subdirs=
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
83 MFLAGS= MAKEFLAGS=
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
84 SHELL=${CONFIG_SHELL-/bin/sh}
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
85 ac_max_here_lines=12
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
86
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
87 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
88
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
89 # File descriptor usage:
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
90 # 0 standard input
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
91 # 1 file creation
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
92 # 2 errors and warnings
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
93 # 3 some systems may open it to /dev/tty
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
94 # 4 used on the Kubota Titan
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
95 # 6 checking for... messages and results
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
96 # 5 compiler messages saved in config.log
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
97 if test "$silent" = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
98 exec 6>/dev/null
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
99 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
100 exec 6>&1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
101 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
102 exec 5>./config.log
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
103
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
104 echo "\
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
105 This file contains any messages produced by compilers while
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
106 running configure, to aid debugging if configure makes a mistake.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
107 " 1>&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
108
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
109 # Strip out --no-create and --no-recursion so they do not pile up.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
110 # Also quote any args containing shell metacharacters.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
111 ac_configure_args=
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
112 for ac_arg
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
113 do
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
114 case "$ac_arg" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
115 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
116 | --no-cr | --no-c) ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
117 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
118 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
119 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
120 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
121 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
122 esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
123 done
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
124
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
125 # NLS nuisances.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
126 # Only set these to C if already set. These must not be set unconditionally
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
127 # because not all systems understand e.g. LANG=C (notably SCO).
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
128 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
129 # Non-C LC_CTYPE values break the ctype check.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
130 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
131 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
132 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
133 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
134
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
135 # confdefs.h avoids OS command line length limits that DEFS can exceed.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
136 rm -rf conftest* confdefs.h
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
137 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
138 echo > confdefs.h
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
139
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
140 # A filename unique to this package, relative to the directory that
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
141 # configure is in, which we can look for to find out if srcdir is correct.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
142 ac_unique_file=src/lisp.h
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
143
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
144 # Find the source files, if location was not specified.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
145 if test -z "$srcdir"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
146 ac_srcdir_defaulted=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
147 # Try the directory containing this script, then its parent.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
148 ac_prog=$0
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
149 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
150 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
151 srcdir=$ac_confdir
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
152 if test ! -r $srcdir/$ac_unique_file; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
153 srcdir=..
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
154 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
155 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
156 ac_srcdir_defaulted=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
157 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
158 if test ! -r $srcdir/$ac_unique_file; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
159 if test "$ac_srcdir_defaulted" = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
160 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
161 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
162 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
163 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
164 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
165 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
166
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
167 # Prefer explicitly selected file to automatically selected ones.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
168 if test -z "$CONFIG_SITE"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
169 if test "x$prefix" != xNONE; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
170 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
171 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
172 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
173 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
174 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
175 for ac_site_file in $CONFIG_SITE; do
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
176 if test -r "$ac_site_file"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
177 echo "loading site script $ac_site_file"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
178 . "$ac_site_file"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
179 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
180 done
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
181
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
182
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
183 ac_ext=c
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
184 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
185 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
186 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
187 ac_cpp='$CPP '"$xe_cppflags"
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
188 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
189 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
190 cross_compiling=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
191
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
192 ac_exeext=
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
193 ac_objext=o
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
194 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
195 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
196 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
197 ac_n= ac_c='
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
198 ' ac_t=' '
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
199 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
200 ac_n=-n ac_c= ac_t=
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
201 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
202 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
203 ac_n= ac_c='\c' ac_t=
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
204 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
205
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
206
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
207 progname="`echo $0 | sed 's:^\./\./:\./:'`"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
208
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
209
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
210 MAKE_SUBDIR="$MAKE_SUBDIR lib-src" && if test "$extra_verbose" = "yes"; then echo " Appending \"lib-src\" to \$MAKE_SUBDIR"; fi
167
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
211 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR lib-src" && if test "$extra_verbose" = "yes"; then echo " Appending \"lib-src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
212
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
213 prefix='/usr/local'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
214 exec_prefix='${prefix}'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
215 bindir='${exec_prefix}/bin'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
216 datadir='${prefix}/lib'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
217 statedir='${prefix}/lib'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
218 libdir='${exec_prefix}/lib'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
219 mandir='${prefix}/man/man1'
422
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
220 inststaticdir='${PROGNAME}'
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
221 instvardir='${PROGNAME}-${version}'
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
222 infodir='${datadir}/${instvardir}/info'
274
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
223 infopath=''
276
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
224 install_pp=''
422
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
225 lispdir='${datadir}/${instvardir}/lisp'
670
12095b04a9b6 [xemacs-hg @ 2001-09-29 08:02:03 by ben]
ben
parents: 665
diff changeset
226 moduledir='${libdir}/${instvardir}/${configuration}/modules'
422
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
227 sitelispdir='${datadir}/${inststaticdir}/site-lisp'
670
12095b04a9b6 [xemacs-hg @ 2001-09-29 08:02:03 by ben]
ben
parents: 665
diff changeset
228 sitemoduledir='${libdir}/${inststaticdir}/site-modules'
422
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
229 pkgdir='${datadir}/${instvardir}/lisp'
274
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
230 package_path=''
422
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
231 etcdir='${datadir}/${instvardir}/etc'
670
12095b04a9b6 [xemacs-hg @ 2001-09-29 08:02:03 by ben]
ben
parents: 665
diff changeset
232 archlibdir='${libdir}/${instvardir}/${configuration}'
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
233 docdir='${archlibdir}'
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
234 with_netinstall="no"
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
235 with_prefix='yes'
269
b2472a1930f2 Import from CVS: tag r20-5b33
cvs
parents: 267
diff changeset
236 with_site_lisp='no'
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
237 with_site_modules='yes'
1111
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
238 need_modules_common=''
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
239 with_menubars=''
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
240 with_scrollbars=''
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
241 with_widgets=''
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
242 with_dialogs=''
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
243 cpp='' cppflags='' libs='' ldflags=''
452
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 450
diff changeset
244 extra_includes=''
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
245 dynamic=''
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
246 with_x11=''
263
727739f917cb Import from CVS: tag r20-5b30
cvs
parents: 261
diff changeset
247 with_msw=''
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
248 rel_alloc='default'
181
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
249 with_system_malloc='default'
261
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
250 with_dlmalloc='default'
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
251 native_sound_lib=''
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
252 with_gtk='no'
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
253 with_gnome='no'
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
254 use_assertions="yes"
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
255 with_toolbars=""
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
256 with_tty=""
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
257 use_union_type="no"
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
258 with_dnet=""
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
259 pdump=""
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
260 with_dragndrop_default="no"
708
512e4a478e9d [xemacs-hg @ 2001-12-20 06:08:09 by andyp]
andyp
parents: 670
diff changeset
261 with_ipv6_cname="no"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
262
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
263
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
264
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
265
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
266 arguments="$@"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
267
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
268 quoted_sed_magic=s/"'"/"'"'"'"'"'"'"'"/g
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
269 quoted_arguments=
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
270 for i in "$@"; do
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
271 case "$i" in
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
272 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
273 | --no-cr | --no-c) ;;
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
274 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
275 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
276 *)
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
277 quoted_i="`echo '' $i | sed -e 's:^ ::' -e $quoted_sed_magic`"
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
278 quoted_arguments="$quoted_arguments '$quoted_i'" ;;
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
279 esac
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
280 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
281
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
282 while test $# != 0; do
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
283 arg="$1"; shift
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
284 case "$arg" in
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
285 --no-create|--no-recursion) ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
286 -* )
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
287 case "$arg" in
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
288 -*=*)
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
289 opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\([^=]*\)=.*$:\1:'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
290 val=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*[^=]*=\(.*\)$:\1:'`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
291 valomitted=no
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
292 ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
293 -*)
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
294 opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\(.*\)$:\1:'`
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
295 val="yes" valomitted=yes
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
296 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
297 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
298
274
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
299 optname="$opt"
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
300 opt="`echo '' $opt | sed -e 's:^ ::' | tr - _`"
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
301
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
302 case "${valomitted}-${opt}" in yes-without_* )
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
303 opt=`echo $opt | sed 's/without/with/'`
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
304 valomitted="no" val="no" ;;
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
305 esac
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
306
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
307 case "$opt" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
308
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
309 with_site_lisp | \
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
310 with_prefix | \
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
311 with_site_modules | \
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
312 with_x | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
313 with_x11 | \
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
314 with_gtk | \
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
315 with_gnome | \
263
727739f917cb Import from CVS: tag r20-5b30
cvs
parents: 261
diff changeset
316 with_msw | \
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
317 with_gcc | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
318 dynamic | \
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
319 with_ncurses | \
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
320 with_dnet | \
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
321 with_socks | \
282
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 280
diff changeset
322 with_dragndrop | \
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
323 with_cde | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
324 with_offix | \
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
325 with_gpm | \
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
326 with_xpm | \
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
327 with_xface | \
251
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
328 with_gif | \
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
329 with_jpeg | \
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
330 with_png | \
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
331 with_tiff | \
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
332 with_zlib | \
414
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
333 with_wmcommand | \
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
334 with_xmu | \
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
335 with_purify | \
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
336 with_quantify | \
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
337 with_toolbars | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
338 with_tty | \
215
1f0dabaa0855 Import from CVS: tag r20-4b6
cvs
parents: 213
diff changeset
339 with_xfs | \
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
340 with_mule | \
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
341 with_default_eol_detection | \
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
342 with_canna | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
343 with_wnn | \
98
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 92
diff changeset
344 with_wnn6 | \
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
345 with_workshop | \
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
346 with_sparcworks | \
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
347 with_tooltalk | \
259
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
348 with_ldap | \
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
349 with_postgresql | \
118
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
350 with_pop | \
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
351 with_kerberos | \
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
352 with_hesiod | \
136
b980b6286996 Import from CVS: tag r20-2b2
cvs
parents: 126
diff changeset
353 with_dnet | \
280
7df0dd720c89 Import from CVS: tag r21-0b38
cvs
parents: 278
diff changeset
354 with_infodock | \
724
76d5a3dd827a [xemacs-hg @ 2002-01-05 07:33:11 by stephent]
stephent
parents: 720
diff changeset
355 with_netinstall | \
76d5a3dd827a [xemacs-hg @ 2002-01-05 07:33:11 by stephent]
stephent
parents: 720
diff changeset
356 with_ipv6_cname | \
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
357 external_widget | \
925
c4937d1216b6 [xemacs-hg @ 2002-07-16 08:26:38 by michaels]
michaels
parents: 911
diff changeset
358 use_kkcc | \
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
359 verbose | \
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
360 extra_verbose | \
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
361 usage_tracking | \
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
362 use_union_type | \
424
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
363 pdump | \
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
364 debug | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
365 use_assertions | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
366 memory_usage_stats | \
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
367 with_clash_detection | \
422
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
368 with_modules | \
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
369 quick_build )
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
370 case "$val" in
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
371 y | ye | yes ) val=yes ;;
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
372 n | no ) val=no ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
373 * ) (echo "$progname: Usage error:"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
374 echo " " "The \`--$optname' option requires a boolean value: \`yes' or \`no'."
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
375 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
376 esac
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
377 eval "$opt=\"$val\"" ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
378
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
379
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
380 srcdir | \
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
381 compiler | \
596
cdb192350f65 [xemacs-hg @ 2001-06-01 04:40:34 by martinb]
martinb
parents: 594
diff changeset
382 xemacs_compiler | \
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
383 cflags | \
1111
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
384 cflags_warning | \
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
385 cpp | \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
386 cppflags | \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
387 libs | \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
388 ldflags | \
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
389 cache_file | \
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
390 native_sound_lib| \
267
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
391 site_lisp | \
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
392 x_includes | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
393 x_libraries | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
394 site_includes | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
395 site_libraries | \
209
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents: 207
diff changeset
396 site_prefixes | \
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
397 site_runtime_libraries )
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
398 if test "$valomitted" = "yes" ; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
399 if test "$#" = 0 ; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
400 (echo "$progname: Usage error:"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
401 echo " " "The \`--$optname' option requires a value."
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
402 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
403 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
404 val="$1"; shift
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
405 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
406 eval "$opt=\"$val\""
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
407 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
408
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
409 rel_alloc | \
261
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
410 with_dlmalloc | \
181
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
411 with_debug_malloc | use_debug_malloc | \
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
412 with_system_malloc | use_system_malloc )
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
413 case "$val" in
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
414 y | ye | yes ) val=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
415 n | no ) val=no ;;
181
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
416 d | de | def | defa | defau | defaul | default ) val=default ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
417 * ) (echo "$progname: Usage error:"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
418 echo " " "The \`--$optname' option requires one of these values:
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
419 \`yes', \`no', or \`default'."
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
420 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
421 esac
265
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
422 case "$opt" in use_* ) opt="`echo $opt | sed s/use/with/`" ;; esac
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
423 eval "$opt=\"$val\""
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
424 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
425
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
426 "with_database" )
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
427 with_database_berkdb=no
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
428 with_database_dbm=no
426
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
429 with_database_gdbm=no
300
3cc9f0ebfbd1 Import from CVS: tag r21-0b48
cvs
parents: 298
diff changeset
430 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
431 case "$x" in
426
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
432 no ) ;;
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
433 b | be | ber | berk | berkd | berkdb ) with_database_berkdb=yes ;;
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
434 d | db | dbm ) with_database_dbm=yes ;;
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
435 g | gn | gnu | gnud | gnudb | gnudbm | gdbm) with_database_gdbm=yes ;;
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
436 * ) (echo "$progname: Usage error:"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
437 echo " " "The \`--$optname' option value
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
438 must be either \`no' or a comma-separated list
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
439 of one or more of \`berkdb' and either \`dbm' or \`gnudbm'."
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
440 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
441 esac
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
442 done
426
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
443 if test "$with_database_dbm" = "yes" -a \
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
444 "$with_database_gdbm" = "yes"; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
445 (echo "$progname: Usage error:"
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
446 echo " " "Only one of \`dbm' and \`gnudbm' may be specified
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
447 with the \`--$optname' option."
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
448 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
449 fi
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
450 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
451
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
452 "with_sound" )
426
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
453 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
454 case "$x" in
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
455 n | no | non | none ) new_sdefault=no ;;
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
456 a | al | all | both ) new_sdefault=yes ;;
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
457
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
458 native ) with_native_sound=yes ;;
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
459 nonative ) with_native_sound=no ;;
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
460
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
461 nas ) with_nas_sound=yes ;;
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
462 nonas ) with_nas_sound=no ;;
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
463
432
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
464 esd ) with_esd_sound=yes ;;
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
465 noesd ) with_esd_sound=no ;;
426
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
466
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
467 * ) bogus_sound=yes ;;
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
468 esac
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
469 if test "$bogus_sound" -o \
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
470 \( -n "$new_sdefault" -a -n "$sound_notfirst" \) ; then
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
471 types="\`all', \`none', \`(no)native', \`no(nas)', \`(no)esd'."
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
472 (echo "$progname: Usage error:"
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
473 echo " " "Valid types for the \`--$optname' option are:
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
474 $types.
724
76d5a3dd827a [xemacs-hg @ 2002-01-05 07:33:11 by stephent]
stephent
parents: 720
diff changeset
475 Option \`all' or \`none' must be first in the list.
76d5a3dd827a [xemacs-hg @ 2002-01-05 07:33:11 by stephent]
stephent
parents: 720
diff changeset
476 The default is to autodetect native and NAS sound support."
426
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
477 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
478 elif test -n "$new_sdefault" ; then
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
479 with_native_sound=$new_sdefault
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
480 with_nas_sound=$new_sdefault
432
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
481 with_esd_sound=$new_sdefault
426
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
482 new_sdefault= # reset this
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
483 fi
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
484 sound_notfirst=true
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
485 done
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
486 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
487
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
488 "with_athena" )
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
489 case "$val" in
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
490 xa | xaw ) val=xaw ;;
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
491 3 | 3d | xaw3d ) val=3d ;;
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
492 ne | nex | next | naxtaw) val=next ;;
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
493 9 | 95 | xaw95 ) val=95 ;;
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
494 xp | xpm | xawxpm ) val=xpm ;;
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
495 * ) (echo "$progname: Usage error:"
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
496 echo " " "The \`--$optname' option must have one of these values:
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
497 \`xaw', \`3d', \`next', \`95', or \`xpm'."
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
498 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
499 esac
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
500 eval "$opt=\"$val\""
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
501 ;;
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
502
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
503 "with_xim" )
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
504 case "$val" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
505 y | ye | yes ) val=yes ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
506 n | no | non | none ) val=no ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
507 x | xl | xli | xlib ) val=xlib ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
508 m | mo | mot | moti | motif ) val=motif ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
509 * ) (echo "$progname: Usage error:"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
510 echo " " "The \`--$optname' option must have one of these values:
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
511 \`motif', \`xlib', \`yes', or \`no'."
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
512 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
513 esac
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
514 eval "$opt=\"$val\""
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
515 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
516
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
517 "mail_locking" )
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
518 case "$val" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
519 lockf ) val=lockf ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
520 flock ) val=flock ;;
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
521 file | dot ) val=file ;;
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
522 locking ) val=locking ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
523 * ) (echo "$progname: Usage error:"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
524 echo " " "The \`--$optname' option must have one of these values:
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
525 \`lockf', \`flock', \`file', \`locking', or \`mmdf'."
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
526 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
527 esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
528 eval "$opt=\"$val\""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
529 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
530
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
531 "error_checking" )
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
532
267
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
533 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
534 case "$x" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
535 n | no | non | none ) new_default=no ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
536 a | al | all ) new_default=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
537
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
538 extents ) error_check_extents=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
539 noextents ) error_check_extents=no ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
540
800
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
541 types ) error_check_types=yes ;;
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
542 notypes ) error_check_types=no ;;
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
543
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
544 text ) error_check_text=yes ;;
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
545 notext ) error_check_text=no ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
546
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
547 gc ) error_check_gc=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
548 nogc ) error_check_gc=no ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
549
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
550 malloc ) error_check_malloc=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
551 nomalloc ) error_check_malloc=no ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
552
414
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
553 byte_code ) error_check_byte_code=yes ;;
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
554 nobyte_code ) error_check_byte_code=no ;;
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
555
800
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
556 glyphs ) error_check_glyphs=yes ;;
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
557 noglyphs ) error_check_glyphs=no ;;
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
558
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
559 display ) error_check_display=yes ;;
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
560 nodisplay ) error_check_display=no ;;
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
561
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
562 structures ) error_check_structures=yes ;;
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
563 nostructures ) error_check_structures=no ;;
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
564
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
565 * ) bogus_error_check=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
566 esac
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
567 if test "$bogus_error_check" -o \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
568 \( -n "$new_default" -a -n "$echeck_notfirst" \) ; then
267
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
569 if test "$error_check_default" = yes ; then
800
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
570 types="\`all' (default), \`none', \`noextents', \`notypes', \`notext', \`nogc', \`nomalloc', \`noglyphs', \`nobyte-code', \`nodisplay', \`nostructures'."
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
571 else
800
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
572 types="\`all', \`none' (default), \`extents', \`types', \`text', \`gc', \`malloc', \`glyphs', \`byte-code', \`display', \`structures'."
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
573 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
574 (echo "$progname: Usage error:"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
575 echo " " "Valid types for the \`--$optname' option are:
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
576 $types."
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
577 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
578 elif test -n "$new_default" ; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
579 error_check_extents=$new_default
800
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
580 error_check_types=$new_default
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
581 error_check_text=$new_default
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
582 error_check_gc=$new_default
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
583 error_check_malloc=$new_default
414
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
584 error_check_byte_code=$new_default
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
585 error_check_glyphs=$new_default
800
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
586 error_check_display=$new_default
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
587 error_check_structures=$new_default
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
588 new_default= # reset this
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
589 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
590 echeck_notfirst=true
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
591 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
592 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
593
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
594
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
595 prefix | exec_prefix | bindir | datadir | statedir | libdir | \
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
596 mandir | infodir | infopath | lispdir | etcdir | pkgdir | \
867
804517e16990 [xemacs-hg @ 2002-06-05 09:54:39 by ben]
ben
parents: 853
diff changeset
597 archlibdir | docdir | package_path | moduledir )
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
598 if test "$valomitted" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
599 if test "$#" = 0; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
600 (echo "$progname: Usage error:"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
601 echo " " "The \`--$optname' option requires a value."
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
602 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
603 fi
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
604 val="$1"; shift
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
605 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
606 eval "$opt=\"$val\""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
607
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
608 case "$opt" in
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
609 exec_prefix ) { test "$extra_verbose" = "yes" && cat << \EOF
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
610 Defining EXEC_PREFIX_USER_DEFINED
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
611 EOF
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
612 cat >> confdefs.h <<\EOF
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
613 #define EXEC_PREFIX_USER_DEFINED 1
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
614 EOF
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
615 }
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
616 ;;
274
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
617 lispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
618 Defining LISPDIR_USER_DEFINED
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
619 EOF
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
620 cat >> confdefs.h <<\EOF
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
621 #define LISPDIR_USER_DEFINED 1
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
622 EOF
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
623 }
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
624 ;;
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
625 sitelispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
626 Defining SITELISPDIR_USER_DEFINED
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
627 EOF
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
628 cat >> confdefs.h <<\EOF
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
629 #define SITELISPDIR_USER_DEFINED 1
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
630 EOF
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
631 }
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
632 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
633 moduledir ) { test "$extra_verbose" = "yes" && cat << \EOF
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
634 Defining MODULEDIR_USER_DEFINED
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
635 EOF
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
636 cat >> confdefs.h <<\EOF
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
637 #define MODULEDIR_USER_DEFINED 1
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
638 EOF
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
639 }
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
640 ;;
274
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
641 etcdir ) { test "$extra_verbose" = "yes" && cat << \EOF
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
642 Defining ETCDIR_USER_DEFINED
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
643 EOF
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
644 cat >> confdefs.h <<\EOF
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
645 #define ETCDIR_USER_DEFINED 1
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
646 EOF
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
647 }
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
648 ;;
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
649 infodir ) { test "$extra_verbose" = "yes" && cat << \EOF
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
650 Defining INFODIR_USER_DEFINED
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
651 EOF
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
652 cat >> confdefs.h <<\EOF
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
653 #define INFODIR_USER_DEFINED 1
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
654 EOF
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
655 }
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
656 ;;
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
657 infopath ) { test "$extra_verbose" = "yes" && cat << \EOF
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
658 Defining INFOPATH_USER_DEFINED
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
659 EOF
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
660 cat >> confdefs.h <<\EOF
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
661 #define INFOPATH_USER_DEFINED 1
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
662 EOF
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
663 }
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
664 ;;
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
665 package_path ) { test "$extra_verbose" = "yes" && cat << \EOF
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
666 Defining PACKAGE_PATH_USER_DEFINED
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
667 EOF
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
668 cat >> confdefs.h <<\EOF
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
669 #define PACKAGE_PATH_USER_DEFINED 1
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
670 EOF
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
671 }
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
672 ;;
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
673 datadir )
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
674 { test "$extra_verbose" = "yes" && cat << \EOF
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
675 Defining INFODIR_USER_DEFINED
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
676 EOF
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
677 cat >> confdefs.h <<\EOF
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
678 #define INFODIR_USER_DEFINED 1
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
679 EOF
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
680 }
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
681
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
682 { test "$extra_verbose" = "yes" && cat << \EOF
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
683 Defining LISPDIR_USER_DEFINED
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
684 EOF
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
685 cat >> confdefs.h <<\EOF
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
686 #define LISPDIR_USER_DEFINED 1
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
687 EOF
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
688 }
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
689
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
690 { test "$extra_verbose" = "yes" && cat << \EOF
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
691 Defining MODULEDIR_USER_DEFINED
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
692 EOF
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
693 cat >> confdefs.h <<\EOF
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
694 #define MODULEDIR_USER_DEFINED 1
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
695 EOF
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
696 }
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
697
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
698 { test "$extra_verbose" = "yes" && cat << \EOF
274
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
699 Defining ETCDIR_USER_DEFINED
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
700 EOF
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
701 cat >> confdefs.h <<\EOF
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
702 #define ETCDIR_USER_DEFINED 1
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
703 EOF
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
704 }
458
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
705
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
706 { test "$extra_verbose" = "yes" && cat << \EOF
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
707 Defining DOCDIR_USER_DEFINED
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
708 EOF
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
709 cat >> confdefs.h <<\EOF
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
710 #define DOCDIR_USER_DEFINED 1
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
711 EOF
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
712 }
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
713
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
714 { test "$extra_verbose" = "yes" && cat << \EOF
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
715 Defining ARCHLIBDIR_USER_DEFINED
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
716 EOF
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
717 cat >> confdefs.h <<\EOF
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
718 #define ARCHLIBDIR_USER_DEFINED 1
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
719 EOF
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
720 }
274
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
721 ;;
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
722 docdir ) { test "$extra_verbose" = "yes" && cat << \EOF
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
723 Defining DOCDIR_USER_DEFINED
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
724 EOF
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
725 cat >> confdefs.h <<\EOF
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
726 #define DOCDIR_USER_DEFINED 1
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
727 EOF
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
728 }
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
729 ;;
274
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
730 exec_prefix | libdir | archlibdir ) { test "$extra_verbose" = "yes" && cat << \EOF
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
731 Defining ARCHLIBDIR_USER_DEFINED
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
732 EOF
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
733 cat >> confdefs.h <<\EOF
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
734 #define ARCHLIBDIR_USER_DEFINED 1
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
735 EOF
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
736 }
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
737 ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
738 esac
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
739 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
740
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
741 "no_create" ) ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
742
215
1f0dabaa0855 Import from CVS: tag r20-4b6
cvs
parents: 213
diff changeset
743 "usage" | "help" ) ${PAGER-more} ${srcdir}/configure.usage; exit 0 ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
744
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
745 "with_menubars" | \
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
746 "with_scrollbars" | \
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
747 "with_dialogs" | \
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
748 "with_widgets" )
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
749 case "$val" in
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
750 l | lu | luc | luci | lucid ) val=lucid ;;
724
76d5a3dd827a [xemacs-hg @ 2002-01-05 07:33:11 by stephent]
stephent
parents: 720
diff changeset
751 mo | mot | moti | motif ) val=motif ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
752 a | at | ath | athe | athen | athena ) val=athena ;;
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
753 n | no | non | none ) val=no ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
754 y | ye | yes ) val=yes ;;
726
1f525cb38373 [xemacs-hg @ 2002-01-09 18:58:56 by janv]
janv
parents: 724
diff changeset
755 "") val=yes ;;
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
756 g | gt | gtk ) val=gtk ;;
724
76d5a3dd827a [xemacs-hg @ 2002-01-05 07:33:11 by stephent]
stephent
parents: 720
diff changeset
757 ms | msw ) val=msw ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
758 * ) (echo "$progname: Usage error:"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
759 echo " " "The \`--$optname' option must have one of these values:
585
5ce8d1ac7bde [xemacs-hg @ 2001-05-29 04:21:30 by martinb]
martinb
parents: 582
diff changeset
760 \`gtk', \`lucid', \`motif', \`athena', \`yes', or \`no'."
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
761 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
762 esac
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
763 eval "$opt=\"$val\""
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
764 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
765
424
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
766 "use_minimal_tagbits" | \
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
767 "use_indexed_lrecord_implementation" | \
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
768 "run_in_place" | \
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
769 "const_is_losing" | \
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
770 "with_gnu_make" )
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
771 echo "configure: warning: Obsolete option \`--$optname' ignored." 1>&2
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
772 ;;
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
773
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
774 * ) (echo "$progname: Usage error:"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
775 echo " " "Unrecognized option: $arg"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
776 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
777
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
778 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
779 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
780
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
781 *-*-*) configuration="$arg" ;;
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
782
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
783 *) (echo "$progname: Usage error:"
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
784 echo " " "Unrecognized argument: $arg"
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
785 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
786
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
787 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
788 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
789
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
790
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
791 test -n "$cpp" && CPP="$cpp"
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
792 test -n "$cppflags" && CPPFLAGS="$cppflags"
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
793 test -n "$libs" && LIBS="$libs"
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
794 test -n "$ldflags" && LDFLAGS="$ldflags"
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
795
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
796 eval set x "$quoted_arguments"; shift
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
797
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
798 test "$extra_verbose" = "yes" && verbose=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
799
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
800 test -n "$with_x" && with_x11="$with_x"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
801
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
802 if test "$with_purify" = "yes" -o "$with_quantify" = "yes"; then
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
803 test "$with_system_malloc" = "default" && with_system_malloc=yes
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
804 fi
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
805
284
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
806
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
807
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
808 if test "$with_cde $with_tooltalk" = "yes no"; then
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
809 (echo "$progname: Usage error:"
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
810 echo " " "--with-cde requires --with-tooltalk"
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
811 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
812 elif test "$with_tooltalk" = "no" ; then with_cde=no
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
813 elif test "$with_cde" = "yes"; then with_tooltalk=yes
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
814 fi
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
815
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
816
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
817 case "$srcdir" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
818
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
819 "" )
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
820 for dir in "`echo $0 | sed 's|//|/|' | sed 's|/[^/]*$||'`" "." ".." ; do
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
821 if test -f "$dir/src/lisp.h" -a \
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
822 -f "$dir/lisp/version.el" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
823 srcdir="$dir"
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
824 break
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
825 fi
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
826 done
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
827 if test -z "$srcdir" ; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
828 (echo "$progname: Usage error:"
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
829 echo " " "Neither the current directory nor its parent seem to
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
830 contain the XEmacs sources. If you do not want to build XEmacs in its
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
831 source tree, you should run \`$progname' in the directory in which
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
832 you wish to build XEmacs, using the \`--srcdir' option to say where the
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
833 sources may be found."
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
834 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
835 fi
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
836 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
837
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
838 * )
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
839 if test ! -f "$srcdir/src/lisp.h" -o \
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
840 ! -f "$srcdir/lisp/version.el" ; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
841 (echo "$progname: Usage error:"
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
842 echo " " "The directory specified with the \`--srcdir' option,
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
843 \`$srcdir', doesn't seem to contain the XEmacs sources. You should
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
844 either run the \`$progname' script at the top of the XEmacs source
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
845 tree, or use the \`--srcdir' option to specify the XEmacs source directory."
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
846 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
847 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
848 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
849 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
850
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
851 if test -z "$configuration"; then
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
852 configuration=`${CONFIG_SHELL-/bin/sh} $srcdir/config.guess`
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
853 if test -z "$configuration"; then
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
854 (echo "$progname: Usage error:"
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
855 echo " " "XEmacs has not been ported to this host type.
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
856 Try explicitly specifying the CONFIGURATION when rerunning configure."
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
857 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
858 fi
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
859 fi
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
860
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
861 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1111
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
862 echo "configure:863: checking whether ln -s works" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
863
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
864 rm -f conftestdata
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
865 if ln -s X conftestdata 2>/dev/null
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
866 then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
867 rm -f conftestdata
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
868 ac_cv_prog_LN_S="ln -s"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
869 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
870 ac_cv_prog_LN_S=ln
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
871 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
872 LN_S="$ac_cv_prog_LN_S"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
873 if test "$ac_cv_prog_LN_S" = "ln -s"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
874 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
875 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
876 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
877 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
878
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
879
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
880 for dir in lisp etc man info tests; do
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
881 if test ! -d "$dir" ; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
882 echo Making symbolic link to "$srcdir/$dir"
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
883 ${LN_S} "$srcdir/$dir" "$dir"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
884 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
885 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
886
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
887
181
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
888 absolute_pwd="`pwd`";
187
b405438285a2 Import from CVS: tag r20-3b20
cvs
parents: 185
diff changeset
889 if test -n "$PWD" -a "`cd $PWD && pwd`" = "$absolute_pwd"
181
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
890 then blddir="$PWD"
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
891 else blddir="$absolute_pwd"; if test -d "/net"; then
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
892 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
893 blddir=`echo "$blddir" | \
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
894 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
895 fi
181
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
896 fi
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
897
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
898
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
899 case "$srcdir" in
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
900 /* ) ;;
181
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
901 . ) srcdir="$blddir" ;;
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
902 * ) srcdir="`cd $srcdir && pwd`"; if test -d "/net"; then
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
903 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
904 srcdir=`echo "$srcdir" | \
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
905 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
906 fi ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
907 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
908
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
909 if test `pwd` != `sh -c cd $srcdir && pwd` \
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
910 && test -f "$srcdir/src/config.h"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
911 (echo "$progname: WARNING: The directory tree \`$srcdir' is being used"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
912 echo " as a build directory right now; it has been configured in its own"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
913 echo " right. To configure in another directory as well, you MUST"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
914 echo " use GNU make. If you do not have GNU make, then you must"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
915 echo " now do \`make distclean' in $srcdir,"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
916 echo " and then run $progname again.") >&2
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
917 extrasub='/^VPATH[ ]*=/c\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
918 vpath %.c $(srcdir)\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
919 vpath %.h $(srcdir)\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
920 vpath %.y $(srcdir)\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
921 vpath %.l $(srcdir)\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
922 vpath %.s $(srcdir)\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
923 vpath %.in $(srcdir)'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
924 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
925
171
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
926 . "$srcdir/version.sh" || exit 1;
414
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
927 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
928 : "${extra_verbose=$beta}"
171
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
929 version="${emacs_major_version}.${emacs_minor_version}"
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
930 { test "$extra_verbose" = "yes" && cat << EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
931 Defining EMACS_MAJOR_VERSION = $emacs_major_version
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
932 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
933 cat >> confdefs.h <<EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
934 #define EMACS_MAJOR_VERSION $emacs_major_version
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
935 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
936 }
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
937
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
938 { test "$extra_verbose" = "yes" && cat << EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
939 Defining EMACS_MINOR_VERSION = $emacs_minor_version
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
940 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
941 cat >> confdefs.h <<EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
942 #define EMACS_MINOR_VERSION $emacs_minor_version
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
943 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
944 }
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
945
414
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
946 if test -n "$emacs_beta_version" ; then
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
947 if test "$beta" = "yes"; then
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
948 version="${version}-b${emacs_beta_version}"
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
949 { test "$extra_verbose" = "yes" && cat << EOF
171
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
950 Defining EMACS_BETA_VERSION = $emacs_beta_version
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
951 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
952 cat >> confdefs.h <<EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
953 #define EMACS_BETA_VERSION $emacs_beta_version
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
954 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
955 }
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
956
414
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
957 else
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
958 version="${version}.${emacs_beta_version}"
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
959 { test "$extra_verbose" = "yes" && cat << EOF
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
960 Defining EMACS_PATCH_LEVEL = $emacs_beta_version
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
961 EOF
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
962 cat >> confdefs.h <<EOF
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
963 #define EMACS_PATCH_LEVEL $emacs_beta_version
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
964 EOF
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
965 }
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
966
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
967 fi
171
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
968 fi
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
969 { test "$extra_verbose" = "yes" && cat << EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
970 Defining XEMACS_CODENAME = "$xemacs_codename"
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
971 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
972 cat >> confdefs.h <<EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
973 #define XEMACS_CODENAME "$xemacs_codename"
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
974 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
975 }
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
976
975
151d438d2d55 [xemacs-hg @ 2002-08-28 05:36:20 by youngs]
youngs
parents: 925
diff changeset
977 if test "X$xemacs_extra_name" != "X"; then
151d438d2d55 [xemacs-hg @ 2002-08-28 05:36:20 by youngs]
youngs
parents: 925
diff changeset
978 { test "$extra_verbose" = "yes" && cat << EOF
151d438d2d55 [xemacs-hg @ 2002-08-28 05:36:20 by youngs]
youngs
parents: 925
diff changeset
979 Defining XEMACS_EXTRA_NAME = "$xemacs_extra_name"
151d438d2d55 [xemacs-hg @ 2002-08-28 05:36:20 by youngs]
youngs
parents: 925
diff changeset
980 EOF
151d438d2d55 [xemacs-hg @ 2002-08-28 05:36:20 by youngs]
youngs
parents: 925
diff changeset
981 cat >> confdefs.h <<EOF
151d438d2d55 [xemacs-hg @ 2002-08-28 05:36:20 by youngs]
youngs
parents: 925
diff changeset
982 #define XEMACS_EXTRA_NAME "$xemacs_extra_name"
151d438d2d55 [xemacs-hg @ 2002-08-28 05:36:20 by youngs]
youngs
parents: 925
diff changeset
983 EOF
151d438d2d55 [xemacs-hg @ 2002-08-28 05:36:20 by youngs]
youngs
parents: 925
diff changeset
984 }
151d438d2d55 [xemacs-hg @ 2002-08-28 05:36:20 by youngs]
youngs
parents: 925
diff changeset
985
151d438d2d55 [xemacs-hg @ 2002-08-28 05:36:20 by youngs]
youngs
parents: 925
diff changeset
986 fi
171
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
987 { test "$extra_verbose" = "yes" && cat << EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
988 Defining EMACS_VERSION = "$version"
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
989 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
990 cat >> confdefs.h <<EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
991 #define EMACS_VERSION "$version"
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
992 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
993 }
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
994
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
995
280
7df0dd720c89 Import from CVS: tag r21-0b38
cvs
parents: 278
diff changeset
996 if test "$with_infodock" = "yes"; then
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
997 if test ! -f ../../ID-INSTALL; then
280
7df0dd720c89 Import from CVS: tag r21-0b38
cvs
parents: 278
diff changeset
998 echo "Cannot build InfoDock without InfoDock sources"
7df0dd720c89 Import from CVS: tag r21-0b38
cvs
parents: 278
diff changeset
999 with_infodock=no
7df0dd720c89 Import from CVS: tag r21-0b38
cvs
parents: 278
diff changeset
1000 fi
7df0dd720c89 Import from CVS: tag r21-0b38
cvs
parents: 278
diff changeset
1001 fi
7df0dd720c89 Import from CVS: tag r21-0b38
cvs
parents: 278
diff changeset
1002
7df0dd720c89 Import from CVS: tag r21-0b38
cvs
parents: 278
diff changeset
1003 if test "$with_infodock" = "yes"; then
7df0dd720c89 Import from CVS: tag r21-0b38
cvs
parents: 278
diff changeset
1004 { test "$extra_verbose" = "yes" && cat << EOF
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
1005 Defining INFODOCK_MAJOR_VERSION = $infodock_major_version
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
1006 EOF
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
1007 cat >> confdefs.h <<EOF
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
1008 #define INFODOCK_MAJOR_VERSION $infodock_major_version
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
1009 EOF
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
1010 }
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
1011
280
7df0dd720c89 Import from CVS: tag r21-0b38
cvs
parents: 278
diff changeset
1012 { test "$extra_verbose" = "yes" && cat << EOF
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
1013 Defining INFODOCK_MINOR_VERSION = $infodock_minor_version
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
1014 EOF
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
1015 cat >> confdefs.h <<EOF
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
1016 #define INFODOCK_MINOR_VERSION $infodock_minor_version
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
1017 EOF
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
1018 }
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
1019
280
7df0dd720c89 Import from CVS: tag r21-0b38
cvs
parents: 278
diff changeset
1020 { test "$extra_verbose" = "yes" && cat << EOF
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
1021 Defining INFODOCK_BUILD_VERSION = $infodock_build_version
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
1022 EOF
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
1023 cat >> confdefs.h <<EOF
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
1024 #define INFODOCK_BUILD_VERSION $infodock_build_version
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
1025 EOF
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
1026 }
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
1027
280
7df0dd720c89 Import from CVS: tag r21-0b38
cvs
parents: 278
diff changeset
1028 version=${infodock_major_version}.${infodock_minor_version}.${infodock_build_version}
7df0dd720c89 Import from CVS: tag r21-0b38
cvs
parents: 278
diff changeset
1029 PROGNAME=infodock
7df0dd720c89 Import from CVS: tag r21-0b38
cvs
parents: 278
diff changeset
1030 CPPFLAGS="$CPPFLAGS -DINFODOCK"
7df0dd720c89 Import from CVS: tag r21-0b38
cvs
parents: 278
diff changeset
1031 else
7df0dd720c89 Import from CVS: tag r21-0b38
cvs
parents: 278
diff changeset
1032 PROGNAME=xemacs
7df0dd720c89 Import from CVS: tag r21-0b38
cvs
parents: 278
diff changeset
1033 fi
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
1034
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1035 { test "$extra_verbose" = "yes" && cat << EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1036 Defining EMACS_PROGNAME = "$PROGNAME"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1037 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1038 cat >> confdefs.h <<EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1039 #define EMACS_PROGNAME "$PROGNAME"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1040 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1041 }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1042
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1043
414
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
1044 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
800
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
1045 test "${error_check_extents=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
171
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1046 Defining ERROR_CHECK_EXTENTS
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1047 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1048 cat >> confdefs.h <<\EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1049 #define ERROR_CHECK_EXTENTS 1
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1050 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1051 }
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1052
800
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
1053 test "${error_check_types=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
1054 Defining ERROR_CHECK_TYPES
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
1055 EOF
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
1056 cat >> confdefs.h <<\EOF
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
1057 #define ERROR_CHECK_TYPES 1
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
1058 EOF
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
1059 }
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
1060
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
1061 test "${error_check_text=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
1062 Defining ERROR_CHECK_TEXT
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
1063 EOF
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
1064 cat >> confdefs.h <<\EOF
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
1065 #define ERROR_CHECK_TEXT 1
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
1066 EOF
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
1067 }
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
1068
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
1069 test "${error_check_gc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
171
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1070 Defining ERROR_CHECK_GC
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1071 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1072 cat >> confdefs.h <<\EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1073 #define ERROR_CHECK_GC 1
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1074 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1075 }
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1076
800
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
1077 test "${error_check_malloc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
171
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1078 Defining ERROR_CHECK_MALLOC
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1079 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1080 cat >> confdefs.h <<\EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1081 #define ERROR_CHECK_MALLOC 1
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1082 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1083 }
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1084
800
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
1085 test "${error_check_byte_code=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
414
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
1086 Defining ERROR_CHECK_BYTE_CODE
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
1087 EOF
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
1088 cat >> confdefs.h <<\EOF
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
1089 #define ERROR_CHECK_BYTE_CODE 1
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
1090 EOF
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
1091 }
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
1092
800
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
1093 test "${error_check_glyphs=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1094 Defining ERROR_CHECK_GLYPHS
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1095 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1096 cat >> confdefs.h <<\EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1097 #define ERROR_CHECK_GLYPHS 1
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1098 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1099 }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1100
800
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
1101 test "${error_check_display=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
1102 Defining ERROR_CHECK_DISPLAY
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
1103 EOF
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
1104 cat >> confdefs.h <<\EOF
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
1105 #define ERROR_CHECK_DISPLAY 1
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
1106 EOF
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
1107 }
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
1108
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
1109 test "${error_check_structures=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
1110 Defining ERROR_CHECK_STRUCTURES
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
1111 EOF
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
1112 cat >> confdefs.h <<\EOF
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
1113 #define ERROR_CHECK_STRUCTURES 1
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
1114 EOF
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
1115 }
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
1116
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
1117 if test "${debug:=$beta}" = "yes"; then
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
1118 use_assertions=yes
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
1119 memory_usage_stats=yes
171
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1120 { test "$extra_verbose" = "yes" && cat << \EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1121 Defining DEBUG_XEMACS
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1122 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1123 cat >> confdefs.h <<\EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1124 #define DEBUG_XEMACS 1
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1125 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1126 }
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1127
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1128 fi
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1129 test "$use_assertions" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1130 Defining USE_ASSERTIONS
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1131 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1132 cat >> confdefs.h <<\EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1133 #define USE_ASSERTIONS 1
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1134 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1135 }
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1136
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1137 test "$memory_usage_stats" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1138 Defining MEMORY_USAGE_STATS
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1139 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1140 cat >> confdefs.h <<\EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1141 #define MEMORY_USAGE_STATS 1
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1142 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1143 }
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1144
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1145
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1146
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
1147 echo $ac_n "checking "host system type"""... $ac_c" 1>&6
1111
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
1148 echo "configure:1149: checking "host system type"" >&5
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
1149 internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'`
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
1150 canonical=`${CONFIG_SHELL-/bin/sh} $srcdir/config.sub "$internal_configuration"`
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
1151 configuration=`echo "$configuration" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
1152 canonical=`echo "$canonical" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
1153 echo "$ac_t""$configuration" 1>&6
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1154
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1155
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1156
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1157
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1158
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1159 machine='' opsys=''
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1160
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1161 case "$canonical" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1162 sparc-*-* ) machine=sparc ;;
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
1163 alpha*-*-* ) machine=alpha ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1164 vax-*-* ) machine=vax ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1165 mips-dec-* ) machine=pmax ;;
440
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
1166 mips-sgi-irix6* ) machine=iris6d ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1167 mips-sgi-* ) machine=iris4d ;;
424
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
1168 mips*-linux ) machine=mips ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1169 romp-ibm-* ) machine=ibmrt ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1170 rs6000-ibm-aix* ) machine=ibmrs6000 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1171 powerpc-ibm-aix* ) machine=ibmrs6000 ;;
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1172 powerpc*-* ) machine=powerpc ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1173 hppa-*-* ) machine=hp800 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1174 m88k-dg-* ) machine=aviion ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1175 m68*-sony-* ) machine=news ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1176 mips-sony-* ) machine=news-risc ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1177 clipper-* ) machine=clipper ;;
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1178 arm* ) machine=arm ;;
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
1179 ns32k-* ) machine=ns32000 ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1180 esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1181
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1182 case "$canonical" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1183 *-*-linux* ) opsys=linux ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1184 *-*-netbsd* ) opsys=netbsd ;;
286
57709be46d1b Import from CVS: tag r21-0b41
cvs
parents: 284
diff changeset
1185 *-*-openbsd* ) opsys=openbsd ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1186 *-*-nextstep* ) opsys=nextstep ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1187 *-*-vms ) opsys=vms ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1188
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1189 *-dec-osf1.3 | *-dec-osf2* ) opsys=decosf1-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1190 *-dec-osf1.2 | *-dec-osf1* ) opsys=decosf1-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1191 *-dec-osf3.[2-9] ) opsys=decosf3-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1192 *-dec-osf3* ) opsys=decosf3-1 ;;
444
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
1193 *-dec-osf[4-9]* ) opsys=decosf4-0 ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1194
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1195 *-*-ultrix[0-3].* | *-*-ultrix4.0* ) opsys=bsd4-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1196 *-*-ultrix4.[12]* ) opsys=bsd4-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1197 *-*-ultrix* ) opsys=ultrix4-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1198
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1199 *-*-aix3.1* ) opsys=aix3-1 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1200 *-*-aix3.2.5 ) opsys=aix3-2-5 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1201 *-*-aix3* ) opsys=aix3-2 ;;
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
1202 *-*-aix4.0* ) opsys=aix4 ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1203 *-*-aix4.1* ) opsys=aix4-1 ;;
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
1204 *-*-aix4* ) opsys=aix4-2 ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1205
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1206 *-gnu* ) opsys=gnu ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1207 *-*-bsd4.[01] ) opsys=bsd4-1 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1208 *-*-bsd4.2 ) opsys=bsd4-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1209 *-*-bsd4.3 ) opsys=bsd4-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1210 *-*-aos4.2 ) opsys=bsd4-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1211 *-*-aos* ) opsys=bsd4-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1212 *-*-sysv0 | *-*-sysvr0 ) opsys=usg5-0 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1213 *-*-sysv2 | *-*-sysvr2 ) opsys=usg5-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1214 *-*-sysv2.2 | *-*-sysvr2.2 ) opsys=usg5-2-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1215 *-*-sysv3* | *-*-sysvr3* ) opsys=usg5-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1216 *-*-sysv4.1* | *-*-sysvr4.1* )opsys=usg5-4 NON_GNU_CPP=/usr/lib/cpp ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1217 *-*-sysv4.[2-9]* | *-sysvr4.[2-9]* )
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1218 if test -z "$NON_GNU_CPP" ; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1219 for prog in "/usr/ccs/lib/cpp" "/lib/cpp"; do
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1220 if test -f "$prog"; then NON_GNU_CPP="$prog"; break; fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1221 done
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1222 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1223 opsys=usg5-4-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1224 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1225 *-*-mach_bsd4.3* ) opsys=mach-bsd4-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1226 esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1227
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1228 case "$canonical" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1229
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1230 *-*-netbsd* )
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1231 case "$canonical" in
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1232 i[3-9]86-*-netbsd*) machine=intel386 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1233 hp300-*-netbsd* | amiga-*-netbsd* | sun3-*-netbsd* | mac68k-*-netbsd* | da30-*-netbsd* | m68k-*-netbsd* )
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1234 machine=hp9000s300 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1235 pc532-*-netbsd* | ns32k-*-netbsd* ) machine=ns32000 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1236 pmax-*-netbsd* | mips-*-netbsd* ) machine=pmax ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1237 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1238 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1239
286
57709be46d1b Import from CVS: tag r21-0b41
cvs
parents: 284
diff changeset
1240 *-*-openbsd* )
57709be46d1b Import from CVS: tag r21-0b41
cvs
parents: 284
diff changeset
1241 case "${canonical}" in
57709be46d1b Import from CVS: tag r21-0b41
cvs
parents: 284
diff changeset
1242 i386-*-openbsd*) machine=intel386 ;;
57709be46d1b Import from CVS: tag r21-0b41
cvs
parents: 284
diff changeset
1243 m68k-*-openbsd*) machine=hp9000s300 ;;
57709be46d1b Import from CVS: tag r21-0b41
cvs
parents: 284
diff changeset
1244 mipsel-*-openbsd*) machine=pmax ;;
57709be46d1b Import from CVS: tag r21-0b41
cvs
parents: 284
diff changeset
1245 esac
57709be46d1b Import from CVS: tag r21-0b41
cvs
parents: 284
diff changeset
1246 ;;
57709be46d1b Import from CVS: tag r21-0b41
cvs
parents: 284
diff changeset
1247
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1248 arm-acorn-riscix1.1* ) machine=acorn opsys=riscix1-1 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1249 arm-acorn-riscix1.2* | arm-acorn-riscix ) machine=acorn opsys=riscix1-2 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1250
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1251 fx80-alliant-* ) machine=alliant4 opsys=bsd4-2 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1252 i860-alliant-* ) machine=alliant-2800 opsys=bsd4-3 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1253
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1254 m68*-altos-sysv* ) machine=altos opsys=usg5-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1255
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1256 580-amdahl-sysv* ) machine=amdahl opsys=usg5-2-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1257
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1258 m68*-apollo-* ) machine=apollo opsys=bsd4-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1259
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1260 we32k-att-sysv* ) machine=att3b opsys=usg5-2-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1261
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1262 m68*-att-sysv* ) machine=7300 opsys=usg5-2-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1263
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1264 rs6000-bull-bosx* ) machine=ibmrs6000 opsys=aix3-2 ;; # dpx20
74
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
1265 m68*-bull-sysv3* ) machine=dpx2 opsys=usg5-3 ;; # dpx2
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
1266 m68*-bull-sysv2* ) machine=sps7 opsys=usg5-2 ;; # sps7
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1267
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1268
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1269 celerity-celerity-bsd* ) machine=celerity opsys=bsd4-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1270
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1271 *-convex-bsd* | *-convex-convexos* )
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1272 machine=convex opsys=bsd4-3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1273 NON_GNU_CPP="cc -E -P"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1274 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1275
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1276 i[3-9]86-cubix-sysv* ) machine=intel386 opsys=usg5-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1277
867
804517e16990 [xemacs-hg @ 2002-06-05 09:54:39 by ben]
ben
parents: 853
diff changeset
1278 *-*-darwin*)
804517e16990 [xemacs-hg @ 2002-06-05 09:54:39 by ben]
ben
parents: 853
diff changeset
1279 opsys=darwin
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
1280 RANLIB="ranlib -c" ;;
867
804517e16990 [xemacs-hg @ 2002-06-05 09:54:39 by ben]
ben
parents: 853
diff changeset
1281
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1282 i586-dg-dgux*R4* | i586-dg-dgux5.4.4* ) machine=aviion opsys=dgux5-4r4 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1283 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) opsys=dgux5-4r3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1284 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) opsys=dgux5-4r2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1285 m88k-dg-dgux* ) opsys=dgux ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1286
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1287 m68k-motorola-sysv* | m68000-motorola-sysv* ) machine=delta opsys=usg5-3 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1288 m88k-motorola-sysv4* )
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1289 machine=delta88k opsys=usg5-4-2
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1290 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1291 m88k-motorola-sysv* | m88k-motorola-m88kbcs* ) machine=delta88k opsys=usg5-3 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1292
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1293 m68*-dual-sysv* ) machine=dual opsys=usg5-2 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1294 m68*-dual-uniplus* ) machine=dual opsys=unipl5-2 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1295
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1296 ns16k-encore-bsd* ) machine=ns16000 opsys=umax ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1297
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1298 pn-gould-bsd4.2* ) machine=gould opsys=bsd4-2 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1299 pn-gould-bsd4.3* ) machine=gould opsys=bsd4-3 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1300 np1-gould-bsd* ) machine=gould-np1 opsys=bsd4-3 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1301
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1302 m88k-harris-cxux* )
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1303 case "`uname -r`" in
74
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
1304 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1305 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1306 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1307 NON_GNU_CPP="/lib/cpp"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1308 ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1309 m68k-harris-cxux* ) machine=nh3000 opsys=cxux ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1310 powerpc-harris-powerunix ) machine=nh6000 opsys=powerunix NON_GNU_CPP="cc -Xo -E -P" ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1311
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1312 xps*-honeywell-sysv* ) machine=xps100 opsys=usg5-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1313
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1314 m68*-hp-bsd* ) machine=hp9000s300 opsys=bsd4-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1315
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1316 *-hp-hpux* )
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1317 case "$canonical" in
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1318 m68* ) machine=hp9000s300 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1319 hppa* ) machine=hp800 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1320 esac
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1321
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1322 case "$canonical" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1323 *-hp-hpux7* ) opsys=hpux ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1324 *-hp-hpux8* ) opsys=hpux8 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1325 *-hp-hpux9* ) opsys=hpux9 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1326 *-hp-hpux10* ) opsys=hpux10 ;;
269
b2472a1930f2 Import from CVS: tag r20-5b33
cvs
parents: 267
diff changeset
1327 *-hp-hpux11* ) opsys=hpux11 ;;
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1328 * ) opsys=hpux ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1329 esac
72
b9518feda344 Import from CVS: tag r20-0b31
cvs
parents: 70
diff changeset
1330
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1331 case "$opsys" in hpux9 | hpux10 ) extra_objs="$extra_objs strcat.o" && if test "$extra_verbose" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1332 echo " xemacs will be linked with \"strcat.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1333 fi ;; esac
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1334
269
b2472a1930f2 Import from CVS: tag r20-5b33
cvs
parents: 267
diff changeset
1335 if test "$opsys" = "hpux10" -o "$opsys" = "hpux11"; then \
b2472a1930f2 Import from CVS: tag r20-5b33
cvs
parents: 267
diff changeset
1336 ansi_flag="-Ae"; else ansi_flag="-Aa"; fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1337 NON_GNU_CC="cc $ansi_flag" NON_GNU_CPP="cc $ansi_flag -E"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1338
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1339 case "$canonical" in *-hp-hpux*shr* ) opsys="${opsys}-shr" ;; esac
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1340 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1341
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1342 orion-orion-bsd* ) machine=orion opsys=bsd4-2 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1343 clipper-orion-bsd* ) machine=orion105 opsys=bsd4-2 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1344
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1345 i[3-9]86-ibm-aix1.1* ) machine=ibmps2-aix opsys=usg5-2-2 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1346 i[3-9]86-ibm-aix1.[23]* | i[3-9]86-ibm-aix* ) machine=ibmps2-aix opsys=usg5-3 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1347 i370-ibm-aix*) machine=ibm370aix opsys=usg5-3 ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1348 romp-ibm-aos* ) opsys=bsd4-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1349 romp-ibm-bsd* ) opsys=bsd4-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1350 romp-ibm-mach* ) opsys=mach-bsd4-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1351
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1352 m68*-isi-bsd4.2* ) machine=isi-ov opsys=bsd4-2 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1353 m68*-isi-bsd4.3* ) machine=isi-ov opsys=bsd4-3 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1354
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1355 i[3-9]86-intsys-sysv* ) machine=is386 opsys=usg5-2-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1356
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1357 i[3-9]86-prime-sysv* ) machine=i386 opsys=usg5-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1358
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1359 i[3-9]86-sequent-bsd* ) machine=symmetry opsys=bsd4-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1360
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1361 i[3-9]86-sequent-ptx* ) machine=sequent-ptx opsys=ptx NON_GNU_CPP="/lib/cpp" ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1362
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1363 i[3-9]86-ncr-sysv* ) machine=ncr386 opsys=usg5-4-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1364
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1365 i860-intel-osf1* ) machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1366
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1367 i860-*-sysv4* ) machine=i860 opsys=usg5-4 NON_GNU_CC="/bin/cc" NON_GNU_CPP="/usr/ccs/lib/cpp" ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1368
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1369 m68*-masscomp-rtu* ) machine=masscomp opsys=rtu ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1370
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1371 m68*-megatest-bsd* ) machine=mega68 opsys=bsd4-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1372
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1373 mips-mips-usg* ) machine=mips4 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1374 mips-mips-riscos4 )
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1375 machine=mips4
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1376 NON_GNU_CC="cc -systype bsd43"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1377 NON_GNU_CPP="cc -systype bsd43 -E"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1378 case "$canonical" in
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1379 mips-mips-riscos4* ) opsys=bsd4-3 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1380 mips-mips-riscos5* ) opsys=riscos5 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1381 esac
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1382 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1383 mips-mips-bsd* ) machine=mips opsys=bsd4-3 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1384 mips-mips-* ) machine=mips opsys=usg5-2-2 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1385
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1386 m68*-next-* | m68k-*-nextstep* ) machine=m68k opsys=nextstep ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1387
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1388 ns32k-ns-genix* ) machine=ns32000 opsys=usg5-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1389
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1390 m68*-ncr-sysv2* | m68*-ncr-sysvr2* ) machine=tower32 opsys=usg5-2-2 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1391 m68*-ncr-sysv3* | m68*-ncr-sysvr3* ) machine=tower32v3 opsys=usg5-3 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1392
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1393 m68*-nixdorf-sysv* ) machine=targon31 opsys=usg5-2-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1394
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1395 m68*-nu-sysv* ) machine=nu opsys=usg5-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1396
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1397 m68*-plexus-sysv* ) machine=plexus opsys=usg5-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1398
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1399 pyramid-pyramid-bsd* ) machine=pyramid opsys=bsd4-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1400
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1401 ns32k-sequent-bsd4.2* ) machine=sequent opsys=bsd4-2 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1402 ns32k-sequent-bsd4.3* ) machine=sequent opsys=bsd4-3 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1403
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1404 mips-siemens-sysv* | mips-sni-sysv*)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1405 machine=mips-siemens opsys=usg5-4
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1406 NON_GNU_CC=/usr/ccs/bin/cc
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1407 NON_GNU_CPP=/usr/ccs/lib/cpp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1408 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1409
377
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
1410 mips-nec-sysv*)
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
1411 machine=mips-nec
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
1412 NON_GNU_CC=/usr/ccs/bin/cc
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
1413 NON_GNU_CPP=/usr/ccs/lib/cpp
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
1414 ;;
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
1415
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1416 m68*-sgi-iris3.5* ) machine=irist opsys=iris3-5 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1417 m68*-sgi-iris3.6* | m68*-sgi-iris*) machine=irist opsys=iris3-6 ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1418 mips-sgi-irix3.* ) opsys=irix3-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1419 mips-sgi-irix4.* ) opsys=irix4-0 ;;
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
1420 mips-sgi-irix6* ) opsys=irix6-0 ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1421 mips-sgi-irix5.1* ) opsys=irix5-1 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1422 mips-sgi-irix5.2* ) opsys=irix5-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1423 mips-sgi-irix5.* ) opsys=irix5-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1424 mips-sgi-irix* ) opsys=irix5-0 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1425
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1426 *-sony-newsos[34]* | *-sony-news[34]* ) opsys=bsd4-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1427 *-sony-news* ) opsys=newsos5 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1428
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1429 m68*-stride-sysv* ) machine=stride opsys=usg5-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1430
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1431 *-*-solaris* | *-*-sunos* | *-sun-mach* | *-sun-bsd* )
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1432 case "$canonical" in
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1433 m68*-sunos1* ) machine=sun1 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1434 m68*-sunos2* ) machine=sun2 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1435 m68* ) machine=sun3 ;;
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1436 i*86*-sun-sunos[34]* ) machine=sun386 ;;
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1437 i*86-*-* ) machine=intel386 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1438 rs6000* ) machine=rs6000 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1439 esac
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1440
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1441 case "$canonical" in *-sunos5*)
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1442 canonical=`echo $canonical | sed -e s/sunos5/solaris2/`;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1443 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1444
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1445 case "$canonical" in
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1446 *-sunos4* )
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1447 #test -f /usr/lib/cpp && NON_GNU_CPP=/usr/lib/cpp ;;
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1448 : ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1449 *-solaris2* )
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1450 #test -f /usr/ccs/lib/cpp && NON_GNU_CPP=/usr/ccs/lib/cpp
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1451 RANLIB=':' ;;
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1452 esac
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1453
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1454 case "$canonical" in
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1455 *-solaris* )
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1456 opsys=sol2
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1457 os_release=`uname -r | sed -e 's/^\([0-9]\)\.\([0-9]\).*/\1\2/'`
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1458 { test "$extra_verbose" = "yes" && cat << EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1459 Defining OS_RELEASE = $os_release
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1460 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1461 cat >> confdefs.h <<EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1462 #define OS_RELEASE $os_release
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1463 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1464 }
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1465 ;;
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1466
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1467 i*86-*-sunos4* ) opsys=sunos4-0 ;;
74
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
1468 *-sunos4.0* ) opsys=sunos4-0 ;;
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
1469 *-sunos4.1.2* ) opsys=sunos4-1-2 ;;
110
fe104dbd9147 Import from CVS: tag r20-1b7
cvs
parents: 108
diff changeset
1470 *-sunos4.1.3* ) opsys=sunos4-1-3 ;;
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
1471 *-sunos4.1.[4-9]* ) opsys=sunos4-1-4 ;;
74
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
1472 *-sunos4* | *-sunos ) opsys=sunos4-1 ;;
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
1473 *-mach* ) opsys=mach-bsd4-3 ;;
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
1474 * ) opsys=bsd4-2 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1475 esac
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1476
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1477 case "$canonical" in *-sunos4*shr* ) opsys="${opsys}-shr" ;; esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1478
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1479 test "$opsys $CC" = "sol2 /usr/ucb/cc" && CC=""
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1480 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1481
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1482 m68*-tadpole-sysv* ) machine=tad68k opsys=usg5-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1483
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1484 tahoe-tahoe-bsd4.2* ) machine=tahoe opsys=bsd4-2 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1485 tahoe-tahoe-bsd4.3* ) machine=tahoe opsys=bsd4-3 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1486
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1487 mips-tandem-sysv* ) machine=tandem-s2 opsys=usg5-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1488
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1489 m88k-tektronix-sysv3* ) machine=tekxd88 opsys=usg5-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1490
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1491 ns16k-tektronix-bsd* ) machine=ns16000 opsys=bsd4-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1492 m68*-tektronix-bsd* ) machine=tek4300 opsys=bsd4-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1493
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1494 titan-titan-sysv* ) machine=titan opsys=usg5-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1495
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1496 m68*-unisys-uniplus* ) machine=ustation opsystem=unipl5-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1497
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1498 vax-dec-* )
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1499 case "$canonical" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1500 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1501 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1502 *-mach* ) opsys=mach-bsd4-3 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1503 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1504 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1505
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1506 ns16k-whitechapel-* ) machine=mg1 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1507
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1508 m68*-wicat-sysv* ) machine=wicat opsys=usg5-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1509
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1510 i[3-9]86-*-* )
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1511 machine=intel386
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1512 case "$canonical" in
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
1513 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1514 *-isc2.2* ) opsys=isc2-2 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1515 *-isc4.0* ) opsys=isc4-0 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1516 *-isc4.* ) opsys=isc4-1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1517 GCC_TEST_OPTIONS=-posix
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1518 NON_GCC_TEST_OPTIONS=-Xp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1519 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1520 *-isc* ) opsys=isc3-0 ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1521 *-esix5* ) opsys=esix5r4 NON_GNU_CPP=/usr/lib/cpp ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1522 *-esix* ) opsys=esix ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1523 *-mach* ) opsys=mach-bsd4-3 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1524 *-xenix* ) opsys=xenix ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1525 *-sco3.2v4* ) opsys=sco4 NON_GNU_CPP=/lib/cpp ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1526 *-bsd386* | *-bsdi1* ) opsys=bsd386 ;;
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1527 *-bsdi4* ) opsys=bsdos4 ;;
110
fe104dbd9147 Import from CVS: tag r20-1b7
cvs
parents: 108
diff changeset
1528 *-bsdi3* ) opsys=bsdos3 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1529 *-bsdi2.1* ) opsys=bsdos2-1 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1530 *-bsdi2* ) opsys=bsdos2 ;;
460
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
1531 *-sco3.2v5* ) opsys=sco5 ;;
422
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
1532 *-sysv5* ) opsys=sco7 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1533 *-386bsd* ) opsys=386bsd ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1534 *-freebsd* ) opsys=freebsd ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1535 *-nextstep* ) opsys=nextstep ;;
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
1536 *-pc-cygwin* ) opsys=cygwin32 ;;
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
1537 *-pc-mingw* ) opsys=mingw32 ;
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
1538 test -z "$with_tty" && with_tty="no";;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1539 esac
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1540 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1541
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1542 m68k-*-linux* ) machine=m68k opsys=linux ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1543
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1544 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1545
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1546 test -z "$machine" && machine=`echo $canonical | sed 's/-.*$//'`
505
6495d35ba9df [xemacs-hg @ 2001-05-05 08:26:03 by martinb]
martinb
parents: 473
diff changeset
1547
6495d35ba9df [xemacs-hg @ 2001-05-05 08:26:03 by martinb]
martinb
parents: 473
diff changeset
1548 test -z "$opsys" && opsys=`uname -s | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1549
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1550 if test -r "${srcdir}/src/m/${machine}.h"; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1551 machfile="m/${machine}.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1552 { test "$extra_verbose" = "yes" && cat << EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1553 Defining config_machfile = "$machfile"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1554 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1555 cat >> confdefs.h <<EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1556 #define config_machfile "$machfile"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1557 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1558 }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1559
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1560 else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1561 echo "XEmacs has no builtin knowledge of \`$machine' machines."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1562 echo "Using configure-time autodetection only."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1563 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1564
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1565 if test -r "${srcdir}/src/s/${opsys}.h"; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1566 opsysfile="s/${opsys}.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1567 { test "$extra_verbose" = "yes" && cat << EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1568 Defining config_opsysfile = "$opsysfile"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1569 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1570 cat >> confdefs.h <<EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1571 #define config_opsysfile "$opsysfile"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1572 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1573 }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1574
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1575 else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1576 echo "XEmacs has no builtin knowledge of \`$opsys' operating systems."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1577 echo "Using configure-time autodetection only."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1578 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1579
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1580
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
1581 if test -z "$pdump"; then
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
1582 case "$opsys" in
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
1583 linux* ) pdump=yes ;; *-*-darwin* ) pdump=yes ;; *) pdump=no ;;
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
1584 esac
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
1585 fi
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
1586
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1587 if test -z "$dynamic"; then
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1588 case "$opsys" in
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
1589 hpux* | sunos4* ) dynamic=no ;;
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1590 *) dynamic=yes ;;
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1591 esac
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1592 fi
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1593 if test "$dynamic" = "yes"; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1594 case "$opsys" in
72
b9518feda344 Import from CVS: tag r20-0b31
cvs
parents: 70
diff changeset
1595 hpux* | sunos4* | sco5 ) opsys="${opsys}-shr" ;;
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1596 decosf* ) ld_call_shared="-call_shared" ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1597 esac
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1598 else case "$opsys" in
187
b405438285a2 Import from CVS: tag r20-3b20
cvs
parents: 185
diff changeset
1599 sol2 )
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1600 echo "Static linking is not supported on Solaris 2."
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1601 echo "Rerun configure without specifying --dynamic=no."
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1602 exit 1 ;;
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1603 linux ) ld_call_shared="-Bstatic" ;;
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1604 decosf* ) ld_call_shared="-non_shared" ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1605 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1606 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1607
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
1608 case "$opsys" in aix*) NON_GNU_CC=xlc ;; esac
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
1609
280
7df0dd720c89 Import from CVS: tag r21-0b38
cvs
parents: 278
diff changeset
1610 stack_trace_eye_catcher=`echo ${PROGNAME}_${version}_${canonical} | sed 'y/.-/__/'`
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1611 { test "$extra_verbose" = "yes" && cat << EOF
177
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
1612 Defining STACK_TRACE_EYE_CATCHER = $stack_trace_eye_catcher
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1613 EOF
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1614 cat >> confdefs.h <<EOF
177
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
1615 #define STACK_TRACE_EYE_CATCHER $stack_trace_eye_catcher
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1616 EOF
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1617 }
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1618
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1619
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1620
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1621 test "$with_sparcworks" = "yes" && with_workshop=yes # compatibility alias
284
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
1622 if test "$with_workshop $with_tooltalk" = "yes no"; then
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
1623 (echo "$progname: Usage error:"
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
1624 echo " " "--with-workshop requires --with-tooltalk"
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
1625 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
1626 elif test "$with_tooltalk" = "no" ; then with_workshop=no
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
1627 elif test "$with_workshop" = "yes"; then with_tooltalk=yes
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
1628 fi
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
1629
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1630 if test "$with_workshop" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1631 { test "$extra_verbose" = "yes" && cat << \EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1632 Defining SUNPRO
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1633 EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1634 cat >> confdefs.h <<\EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1635 #define SUNPRO 1
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1636 EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1637 }
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1638
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1639 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1640
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1641 if test "$with_clash_detection" != "no"; then
175
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
1642 { test "$extra_verbose" = "yes" && cat << \EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
1643 Defining CLASH_DETECTION
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
1644 EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
1645 cat >> confdefs.h <<\EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
1646 #define CLASH_DETECTION 1
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
1647 EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
1648 }
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
1649
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
1650 fi
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
1651
169
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
1652 test -n "$compiler" && CC="$compiler"
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
1653 if test "$with_gcc" = "no"; then case "$CC" in "" | *gcc* ) CC="${NON_GNU_CC-cc}" ;; esac
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
1654 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1655
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
1656 test "${cflags-unset}" != unset && CFLAGS="$cflags"
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
1657 if test "${CFLAGS-unset}" != unset
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
1658 then cflags_specified=yes;
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
1659 else cflags_specified=no;
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
1660 fi
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
1661
1111
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
1662 if test "${cflags_warning-unset}" != unset
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
1663 then cflags_warning_specified=yes;
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
1664 else cflags_warning_specified=no;
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
1665 fi
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
1666
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1667 xe_save_CFLAGS="$CFLAGS"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1668
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1669 # Extract the first word of "gcc", so it can be a program name with args.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1670 set dummy gcc; ac_word=$2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1671 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
1672 echo "configure:1673: checking for $ac_word" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1673
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1674 if test -n "$CC"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1675 ac_cv_prog_CC="$CC" # Let the user override the test.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1676 else
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1677 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1678 ac_dummy="$PATH"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1679 for ac_dir in $ac_dummy; do
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1680 test -z "$ac_dir" && ac_dir=.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1681 if test -f $ac_dir/$ac_word; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1682 ac_cv_prog_CC="gcc"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1683 break
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1684 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1685 done
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1686 IFS="$ac_save_ifs"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1687 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1688 CC="$ac_cv_prog_CC"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1689 if test -n "$CC"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1690 echo "$ac_t""$CC" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1691 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1692 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1693 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1694
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1695 if test -z "$CC"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1696 # Extract the first word of "cc", so it can be a program name with args.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1697 set dummy cc; ac_word=$2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1698 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
1699 echo "configure:1700: checking for $ac_word" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1700
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1701 if test -n "$CC"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1702 ac_cv_prog_CC="$CC" # Let the user override the test.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1703 else
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1704 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1705 ac_prog_rejected=no
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1706 ac_dummy="$PATH"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1707 for ac_dir in $ac_dummy; do
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1708 test -z "$ac_dir" && ac_dir=.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1709 if test -f $ac_dir/$ac_word; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1710 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1711 ac_prog_rejected=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1712 continue
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1713 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1714 ac_cv_prog_CC="cc"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1715 break
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1716 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1717 done
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1718 IFS="$ac_save_ifs"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1719 if test $ac_prog_rejected = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1720 # We found a bogon in the path, so make sure we never use it.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1721 set dummy $ac_cv_prog_CC
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1722 shift
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1723 if test $# -gt 0; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1724 # We chose a different compiler from the bogus one.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1725 # However, it has the same basename, so the bogon will be chosen
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1726 # first if we set CC to just the basename; use the full file name.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1727 shift
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1728 set dummy "$ac_dir/$ac_word" "$@"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1729 shift
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1730 ac_cv_prog_CC="$@"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1731 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1732 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1733 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1734 CC="$ac_cv_prog_CC"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1735 if test -n "$CC"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1736 echo "$ac_t""$CC" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1737 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1738 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1739 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1740
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1741 if test -z "$CC"; then
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1742 case "`uname -s`" in
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1743 *win32* | *WIN32*)
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1744 # Extract the first word of "cl", so it can be a program name with args.
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1745 set dummy cl; ac_word=$2
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1746 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
1747 echo "configure:1748: checking for $ac_word" >&5
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1748
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1749 if test -n "$CC"; then
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1750 ac_cv_prog_CC="$CC" # Let the user override the test.
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1751 else
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1752 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1753 ac_dummy="$PATH"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1754 for ac_dir in $ac_dummy; do
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1755 test -z "$ac_dir" && ac_dir=.
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1756 if test -f $ac_dir/$ac_word; then
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1757 ac_cv_prog_CC="cl"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1758 break
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1759 fi
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1760 done
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1761 IFS="$ac_save_ifs"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1762 fi
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1763 CC="$ac_cv_prog_CC"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1764 if test -n "$CC"; then
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1765 echo "$ac_t""$CC" 1>&6
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1766 else
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1767 echo "$ac_t""no" 1>&6
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1768 fi
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1769 ;;
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1770 esac
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1771 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1772 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1773 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1774
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1775 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
1776 echo "configure:1777: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1777
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1778 ac_ext=c
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1779 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1780 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
1781 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'
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1782 ac_cpp='$CPP '"$xe_cppflags"
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1783 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1784 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1785 cross_compiling=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1786
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1787 cat > conftest.$ac_ext << EOF
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1788
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
1789 #line 1790 "configure"
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1790 #include "confdefs.h"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1791
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1792 main(){return(0);}
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1793 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
1794 if { (eval echo configure:1795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1795 ac_cv_prog_cc_works=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1796 # If we can't run a trivial program, we are probably using a cross compiler.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1797 if (./conftest; exit) 2>/dev/null; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1798 ac_cv_prog_cc_cross=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1799 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1800 ac_cv_prog_cc_cross=yes
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1801 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1802 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1803 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1804 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1805 ac_cv_prog_cc_works=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1806 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1807 rm -fr conftest*
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1808 ac_ext=c
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1809 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1810 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
1811 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'
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1812 ac_cpp='$CPP '"$xe_cppflags"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1813 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1814 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1815 cross_compiling=no
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1816
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1817 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1818 if test $ac_cv_prog_cc_works = no; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1819 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1820 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1821 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
1822 echo "configure:1823: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1823 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1824 cross_compiling=$ac_cv_prog_cc_cross
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1825
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1826 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
1827 echo "configure:1828: checking whether we are using GNU C" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1828
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1829 cat > conftest.c <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1830 #ifdef __GNUC__
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1831 yes;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1832 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1833 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
1834 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1835: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1835 ac_cv_prog_gcc=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1836 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1837 ac_cv_prog_gcc=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1838 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1839
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1840 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1841
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1842 if test $ac_cv_prog_gcc = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1843 GCC=yes
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1844 else
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1845 GCC=
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1846 fi
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1847
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1848 ac_test_CFLAGS="${CFLAGS+set}"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1849 ac_save_CFLAGS="$CFLAGS"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1850 CFLAGS=
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1851 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
1852 echo "configure:1853: checking whether ${CC-cc} accepts -g" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1853
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1854 echo 'void f(){}' > conftest.c
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1855 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1856 ac_cv_prog_cc_g=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1857 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1858 ac_cv_prog_cc_g=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1859 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1860 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1861
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1862
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1863 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1864 if test "$ac_test_CFLAGS" = set; then
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1865 CFLAGS="$ac_save_CFLAGS"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1866 elif test $ac_cv_prog_cc_g = yes; then
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1867 if test "$GCC" = yes; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1868 CFLAGS="-g -O2"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1869 else
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1870 CFLAGS="-g"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1871 fi
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1872 else
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1873 if test "$GCC" = yes; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1874 CFLAGS="-O2"
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1875 else
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1876 CFLAGS=
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1877 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1878 fi
169
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
1879
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
1880 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1881 CC=${NON_GNU_CC-cc}
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1882 # Extract the first word of "gcc", so it can be a program name with args.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1883 set dummy gcc; ac_word=$2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1884 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
1885 echo "configure:1886: checking for $ac_word" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1886
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1887 if test -n "$CC"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1888 ac_cv_prog_CC="$CC" # Let the user override the test.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1889 else
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1890 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1891 ac_dummy="$PATH"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1892 for ac_dir in $ac_dummy; do
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1893 test -z "$ac_dir" && ac_dir=.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1894 if test -f $ac_dir/$ac_word; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1895 ac_cv_prog_CC="gcc"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1896 break
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1897 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1898 done
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1899 IFS="$ac_save_ifs"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1900 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1901 CC="$ac_cv_prog_CC"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1902 if test -n "$CC"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1903 echo "$ac_t""$CC" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1904 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1905 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1906 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1907
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1908 if test -z "$CC"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1909 # Extract the first word of "cc", so it can be a program name with args.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1910 set dummy cc; ac_word=$2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1911 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
1912 echo "configure:1913: checking for $ac_word" >&5
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1913
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1914 if test -n "$CC"; then
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1915 ac_cv_prog_CC="$CC" # Let the user override the test.
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1916 else
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1917 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1918 ac_prog_rejected=no
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1919 ac_dummy="$PATH"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1920 for ac_dir in $ac_dummy; do
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1921 test -z "$ac_dir" && ac_dir=.
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1922 if test -f $ac_dir/$ac_word; then
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1923 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1924 ac_prog_rejected=yes
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1925 continue
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1926 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1927 ac_cv_prog_CC="cc"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1928 break
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1929 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1930 done
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1931 IFS="$ac_save_ifs"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1932 if test $ac_prog_rejected = yes; then
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1933 # We found a bogon in the path, so make sure we never use it.
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1934 set dummy $ac_cv_prog_CC
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1935 shift
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1936 if test $# -gt 0; then
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1937 # We chose a different compiler from the bogus one.
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1938 # However, it has the same basename, so the bogon will be chosen
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1939 # first if we set CC to just the basename; use the full file name.
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1940 shift
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1941 set dummy "$ac_dir/$ac_word" "$@"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1942 shift
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1943 ac_cv_prog_CC="$@"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1944 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1945 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1946 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1947 CC="$ac_cv_prog_CC"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1948 if test -n "$CC"; then
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1949 echo "$ac_t""$CC" 1>&6
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1950 else
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1951 echo "$ac_t""no" 1>&6
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1952 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1953
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1954 if test -z "$CC"; then
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1955 case "`uname -s`" in
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1956 *win32* | *WIN32*)
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1957 # Extract the first word of "cl", so it can be a program name with args.
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1958 set dummy cl; ac_word=$2
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1959 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
1960 echo "configure:1961: checking for $ac_word" >&5
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1961
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1962 if test -n "$CC"; then
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1963 ac_cv_prog_CC="$CC" # Let the user override the test.
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1964 else
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1965 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1966 ac_dummy="$PATH"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1967 for ac_dir in $ac_dummy; do
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1968 test -z "$ac_dir" && ac_dir=.
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1969 if test -f $ac_dir/$ac_word; then
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1970 ac_cv_prog_CC="cl"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1971 break
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1972 fi
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1973 done
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1974 IFS="$ac_save_ifs"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1975 fi
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1976 CC="$ac_cv_prog_CC"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1977 if test -n "$CC"; then
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1978 echo "$ac_t""$CC" 1>&6
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1979 else
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1980 echo "$ac_t""no" 1>&6
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1981 fi
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1982 ;;
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1983 esac
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1984 fi
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1985 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1986 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1987
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1988 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
1989 echo "configure:1990: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1990
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1991 ac_ext=c
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1992 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1993 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
1994 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'
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1995 ac_cpp='$CPP '"$xe_cppflags"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1996 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1997 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1998 cross_compiling=no
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1999
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2000 cat > conftest.$ac_ext << EOF
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2001
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
2002 #line 2003 "configure"
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2003 #include "confdefs.h"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2004
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2005 main(){return(0);}
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2006 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
2007 if { (eval echo configure:2008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2008 ac_cv_prog_cc_works=yes
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2009 # If we can't run a trivial program, we are probably using a cross compiler.
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2010 if (./conftest; exit) 2>/dev/null; then
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2011 ac_cv_prog_cc_cross=no
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2012 else
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2013 ac_cv_prog_cc_cross=yes
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2014 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2015 else
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2016 echo "configure: failed program was:" >&5
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2017 cat conftest.$ac_ext >&5
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2018 ac_cv_prog_cc_works=no
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2019 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2020 rm -fr conftest*
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2021 ac_ext=c
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2022 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2023 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
2024 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'
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2025 ac_cpp='$CPP '"$xe_cppflags"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2026 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2027 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2028 cross_compiling=no
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2029
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2030 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2031 if test $ac_cv_prog_cc_works = no; then
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2032 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2033 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2034 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
2035 echo "configure:2036: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2036 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2037 cross_compiling=$ac_cv_prog_cc_cross
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2038
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2039 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
2040 echo "configure:2041: checking whether we are using GNU C" >&5
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2041
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2042 cat > conftest.c <<EOF
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2043 #ifdef __GNUC__
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2044 yes;
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2045 #endif
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2046 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
2047 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2048: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2048 ac_cv_prog_gcc=yes
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2049 else
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2050 ac_cv_prog_gcc=no
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2051 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2052
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2053 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2054
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2055 if test $ac_cv_prog_gcc = yes; then
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2056 GCC=yes
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2057 else
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2058 GCC=
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2059 fi
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2060
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2061 ac_test_CFLAGS="${CFLAGS+set}"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2062 ac_save_CFLAGS="$CFLAGS"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2063 CFLAGS=
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2064 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
2065 echo "configure:2066: checking whether ${CC-cc} accepts -g" >&5
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2066
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2067 echo 'void f(){}' > conftest.c
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2068 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2069 ac_cv_prog_cc_g=yes
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2070 else
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2071 ac_cv_prog_cc_g=no
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2072 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2073 rm -f conftest*
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2074
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2075
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2076 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2077 if test "$ac_test_CFLAGS" = set; then
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2078 CFLAGS="$ac_save_CFLAGS"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2079 elif test $ac_cv_prog_cc_g = yes; then
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2080 if test "$GCC" = yes; then
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2081 CFLAGS="-g -O2"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2082 else
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2083 CFLAGS="-g"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2084 fi
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2085 else
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2086 if test "$GCC" = yes; then
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2087 CFLAGS="-O2"
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2088 else
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2089 CFLAGS=
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2090 fi
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2091 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2092
169
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
2093 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2094 CC=gcc
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2095 # Extract the first word of "gcc", so it can be a program name with args.
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2096 set dummy gcc; ac_word=$2
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2097 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
2098 echo "configure:2099: checking for $ac_word" >&5
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2099
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2100 if test -n "$CC"; then
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2101 ac_cv_prog_CC="$CC" # Let the user override the test.
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2102 else
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2103 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2104 ac_dummy="$PATH"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2105 for ac_dir in $ac_dummy; do
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2106 test -z "$ac_dir" && ac_dir=.
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2107 if test -f $ac_dir/$ac_word; then
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2108 ac_cv_prog_CC="gcc"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2109 break
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2110 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2111 done
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2112 IFS="$ac_save_ifs"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2113 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2114 CC="$ac_cv_prog_CC"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2115 if test -n "$CC"; then
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2116 echo "$ac_t""$CC" 1>&6
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2117 else
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2118 echo "$ac_t""no" 1>&6
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2119 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2120
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2121 if test -z "$CC"; then
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2122 # Extract the first word of "cc", so it can be a program name with args.
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2123 set dummy cc; ac_word=$2
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2124 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
2125 echo "configure:2126: checking for $ac_word" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2126
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2127 if test -n "$CC"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2128 ac_cv_prog_CC="$CC" # Let the user override the test.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2129 else
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2130 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2131 ac_prog_rejected=no
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2132 ac_dummy="$PATH"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2133 for ac_dir in $ac_dummy; do
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2134 test -z "$ac_dir" && ac_dir=.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2135 if test -f $ac_dir/$ac_word; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2136 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2137 ac_prog_rejected=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2138 continue
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2139 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2140 ac_cv_prog_CC="cc"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2141 break
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2142 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2143 done
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2144 IFS="$ac_save_ifs"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2145 if test $ac_prog_rejected = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2146 # We found a bogon in the path, so make sure we never use it.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2147 set dummy $ac_cv_prog_CC
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2148 shift
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2149 if test $# -gt 0; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2150 # We chose a different compiler from the bogus one.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2151 # However, it has the same basename, so the bogon will be chosen
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2152 # first if we set CC to just the basename; use the full file name.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2153 shift
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2154 set dummy "$ac_dir/$ac_word" "$@"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2155 shift
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2156 ac_cv_prog_CC="$@"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2157 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2158 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2159 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2160 CC="$ac_cv_prog_CC"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2161 if test -n "$CC"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2162 echo "$ac_t""$CC" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2163 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2164 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2165 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2166
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2167 if test -z "$CC"; then
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2168 case "`uname -s`" in
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2169 *win32* | *WIN32*)
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2170 # Extract the first word of "cl", so it can be a program name with args.
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2171 set dummy cl; ac_word=$2
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2172 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
2173 echo "configure:2174: checking for $ac_word" >&5
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2174
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2175 if test -n "$CC"; then
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2176 ac_cv_prog_CC="$CC" # Let the user override the test.
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2177 else
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2178 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2179 ac_dummy="$PATH"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2180 for ac_dir in $ac_dummy; do
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2181 test -z "$ac_dir" && ac_dir=.
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2182 if test -f $ac_dir/$ac_word; then
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2183 ac_cv_prog_CC="cl"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2184 break
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2185 fi
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2186 done
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2187 IFS="$ac_save_ifs"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2188 fi
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2189 CC="$ac_cv_prog_CC"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2190 if test -n "$CC"; then
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2191 echo "$ac_t""$CC" 1>&6
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2192 else
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2193 echo "$ac_t""no" 1>&6
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2194 fi
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2195 ;;
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2196 esac
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2197 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2198 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2199 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2200
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2201 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
2202 echo "configure:2203: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2203
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2204 ac_ext=c
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2205 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2206 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
2207 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'
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2208 ac_cpp='$CPP '"$xe_cppflags"
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2209 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2210 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2211 cross_compiling=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2212
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2213 cat > conftest.$ac_ext << EOF
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2214
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
2215 #line 2216 "configure"
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2216 #include "confdefs.h"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2217
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2218 main(){return(0);}
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2219 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
2220 if { (eval echo configure:2221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2221 ac_cv_prog_cc_works=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2222 # If we can't run a trivial program, we are probably using a cross compiler.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2223 if (./conftest; exit) 2>/dev/null; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2224 ac_cv_prog_cc_cross=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2225 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2226 ac_cv_prog_cc_cross=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2227 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2228 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2229 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2230 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2231 ac_cv_prog_cc_works=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2232 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2233 rm -fr conftest*
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2234 ac_ext=c
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2235 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2236 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
2237 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'
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2238 ac_cpp='$CPP '"$xe_cppflags"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2239 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2240 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2241 cross_compiling=no
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2242
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2243 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2244 if test $ac_cv_prog_cc_works = no; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2245 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2246 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2247 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
2248 echo "configure:2249: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2249 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2250 cross_compiling=$ac_cv_prog_cc_cross
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2251
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2252 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
2253 echo "configure:2254: checking whether we are using GNU C" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2254
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2255 cat > conftest.c <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2256 #ifdef __GNUC__
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2257 yes;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2258 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2259 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
2260 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2261: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2261 ac_cv_prog_gcc=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2262 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2263 ac_cv_prog_gcc=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2264 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2265
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2266 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2267
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2268 if test $ac_cv_prog_gcc = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2269 GCC=yes
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2270 else
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2271 GCC=
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2272 fi
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2273
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2274 ac_test_CFLAGS="${CFLAGS+set}"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2275 ac_save_CFLAGS="$CFLAGS"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2276 CFLAGS=
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2277 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
2278 echo "configure:2279: checking whether ${CC-cc} accepts -g" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2279
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2280 echo 'void f(){}' > conftest.c
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2281 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2282 ac_cv_prog_cc_g=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2283 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2284 ac_cv_prog_cc_g=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2285 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2286 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2287
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2288
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2289 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2290 if test "$ac_test_CFLAGS" = set; then
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2291 CFLAGS="$ac_save_CFLAGS"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2292 elif test $ac_cv_prog_cc_g = yes; then
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2293 if test "$GCC" = yes; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2294 CFLAGS="-g -O2"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2295 else
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2296 CFLAGS="-g"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2297 fi
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2298 else
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2299 if test "$GCC" = yes; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2300 CFLAGS="-O2"
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2301 else
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2302 CFLAGS=
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2303 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2304 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2305
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2306 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2307 CFLAGS="$xe_save_CFLAGS"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2308
1123
37bdd24225ef [xemacs-hg @ 2002-11-27 07:15:02 by ben]
ben
parents: 1111
diff changeset
2309 if test "$GCC" = "yes"; then
37bdd24225ef [xemacs-hg @ 2002-11-27 07:15:02 by ben]
ben
parents: 1111
diff changeset
2310 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
2311 #line 2312 "configure"
1123
37bdd24225ef [xemacs-hg @ 2002-11-27 07:15:02 by ben]
ben
parents: 1111
diff changeset
2312 #include "confdefs.h"
37bdd24225ef [xemacs-hg @ 2002-11-27 07:15:02 by ben]
ben
parents: 1111
diff changeset
2313 int main () {
37bdd24225ef [xemacs-hg @ 2002-11-27 07:15:02 by ben]
ben
parents: 1111
diff changeset
2314 #if __GNUC__ >= 3
37bdd24225ef [xemacs-hg @ 2002-11-27 07:15:02 by ben]
ben
parents: 1111
diff changeset
2315 return 11;
37bdd24225ef [xemacs-hg @ 2002-11-27 07:15:02 by ben]
ben
parents: 1111
diff changeset
2316 #else
37bdd24225ef [xemacs-hg @ 2002-11-27 07:15:02 by ben]
ben
parents: 1111
diff changeset
2317 return 0;
37bdd24225ef [xemacs-hg @ 2002-11-27 07:15:02 by ben]
ben
parents: 1111
diff changeset
2318 #endif
37bdd24225ef [xemacs-hg @ 2002-11-27 07:15:02 by ben]
ben
parents: 1111
diff changeset
2319 }
37bdd24225ef [xemacs-hg @ 2002-11-27 07:15:02 by ben]
ben
parents: 1111
diff changeset
2320 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
2321 if { (eval echo configure:2322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
1123
37bdd24225ef [xemacs-hg @ 2002-11-27 07:15:02 by ben]
ben
parents: 1111
diff changeset
2322 then
37bdd24225ef [xemacs-hg @ 2002-11-27 07:15:02 by ben]
ben
parents: 1111
diff changeset
2323 :
37bdd24225ef [xemacs-hg @ 2002-11-27 07:15:02 by ben]
ben
parents: 1111
diff changeset
2324 else
37bdd24225ef [xemacs-hg @ 2002-11-27 07:15:02 by ben]
ben
parents: 1111
diff changeset
2325 conftest_rc="$?"
37bdd24225ef [xemacs-hg @ 2002-11-27 07:15:02 by ben]
ben
parents: 1111
diff changeset
2326 echo "configure: failed program was:" >&5
37bdd24225ef [xemacs-hg @ 2002-11-27 07:15:02 by ben]
ben
parents: 1111
diff changeset
2327 cat conftest.$ac_ext >&5
37bdd24225ef [xemacs-hg @ 2002-11-27 07:15:02 by ben]
ben
parents: 1111
diff changeset
2328 rm -fr conftest*
37bdd24225ef [xemacs-hg @ 2002-11-27 07:15:02 by ben]
ben
parents: 1111
diff changeset
2329 case "$conftest_rc" in
37bdd24225ef [xemacs-hg @ 2002-11-27 07:15:02 by ben]
ben
parents: 1111
diff changeset
2330 11) echo "You appear to be using GCC version 3 or above."; __GCC3=yes ;;
37bdd24225ef [xemacs-hg @ 2002-11-27 07:15:02 by ben]
ben
parents: 1111
diff changeset
2331 esac
37bdd24225ef [xemacs-hg @ 2002-11-27 07:15:02 by ben]
ben
parents: 1111
diff changeset
2332 fi
37bdd24225ef [xemacs-hg @ 2002-11-27 07:15:02 by ben]
ben
parents: 1111
diff changeset
2333 rm -fr conftest*
37bdd24225ef [xemacs-hg @ 2002-11-27 07:15:02 by ben]
ben
parents: 1111
diff changeset
2334 fi
37bdd24225ef [xemacs-hg @ 2002-11-27 07:15:02 by ben]
ben
parents: 1111
diff changeset
2335
171
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
2336
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
2337 test -n "$CPP" -a -d "$CPP" && CPP=
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
2338
169
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
2339 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2340
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2341 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
2342 echo "configure:2343: checking how to run the C preprocessor" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2343 # On Suns, sometimes $CPP names a directory.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2344 if test -n "$CPP" && test -d "$CPP"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2345 CPP=
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2346 fi
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2347 if test -z "$CPP"; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2348
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2349 # This must be in double quotes, not single quotes, because CPP may get
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2350 # substituted into the Makefile and "${CC-cc}" will confuse make.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2351 CPP="${CC-cc} -E"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2352 # On the NeXT, cc -E runs the code through the compiler's parser,
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2353 # not just through cpp.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2354 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
2355 #line 2356 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2356 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2357 #include <assert.h>
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2358 Syntax Error
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2359 EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2360 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
2361 { (eval echo configure:2362: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2362 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2363 if test -z "$ac_err"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2364 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2365 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2366 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2367 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2368 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2369 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2370 CPP="${CC-cc} -E -traditional-cpp"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2371 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
2372 #line 2373 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2373 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2374 #include <assert.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2375 Syntax Error
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2376 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2377 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
2378 { (eval echo configure:2379: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2379 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2380 if test -z "$ac_err"; then
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2381 :
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2382 else
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2383 echo "$ac_err" >&5
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2384 echo "configure: failed program was:" >&5
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2385 cat conftest.$ac_ext >&5
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2386 rm -rf conftest*
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2387 CPP="${CC-cc} -nologo -E"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2388 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
2389 #line 2390 "configure"
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2390 #include "confdefs.h"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2391 #include <assert.h>
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2392 Syntax Error
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2393 EOF
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2394 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
2395 { (eval echo configure:2396: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2396 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2397 if test -z "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2398 :
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2399 else
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2400 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2401 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2402 cat conftest.$ac_ext >&5
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2403 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2404 CPP=/lib/cpp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2405 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2406 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2407 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2408 rm -f conftest*
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2409 fi
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2410 rm -f conftest*
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2411 ac_cv_prog_CPP="$CPP"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2412 CPP="$ac_cv_prog_CPP"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2413 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2414 ac_cv_prog_CPP="$CPP"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2415 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2416 echo "$ac_t""$CPP" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2417
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2418
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2419
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2420 echo $ac_n "checking for AIX""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
2421 echo "configure:2422: checking for AIX" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
2422 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
2423 #line 2424 "configure"
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2424 #include "confdefs.h"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2425 #ifdef _AIX
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2426 yes
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2427 #endif
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2428
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2429 EOF
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2430 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2431 egrep "yes" >/dev/null 2>&1; then
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2432 rm -rf conftest*
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2433 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2434 Defining _ALL_SOURCE
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2435 EOF
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2436 cat >> confdefs.h <<\EOF
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2437 #define _ALL_SOURCE 1
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2438 EOF
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2439 }
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2440
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2441 else
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2442 rm -rf conftest*
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2443 echo "$ac_t""no" 1>&6
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2444 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2445 rm -f conftest*
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2446
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2447
410
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
2448
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
2449 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
2450 echo "configure:2451: checking for GNU libc" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
2451 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
2452 #line 2453 "configure"
406
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 404
diff changeset
2453 #include "confdefs.h"
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2454 #include <features.h>
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2455 int main() {
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2456
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2457 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2458 #error Not a GNU libc system :-(
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2459 ******* ======= ******** &&&&&&&&
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2460 #endif
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2461
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2462 ; return 0; }
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2463 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
2464 if { (eval echo configure:2465: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2465 rm -rf conftest*
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2466 have_glibc=yes
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2467 else
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2468 echo "configure: failed program was:" >&5
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2469 cat conftest.$ac_ext >&5
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2470 rm -rf conftest*
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2471 have_glibc=no
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2472 fi
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2473 rm -f conftest*
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2474 echo "$ac_t""$have_glibc" 1>&6
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2475 test "$have_glibc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2476 Defining _GNU_SOURCE
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2477 EOF
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2478 cat >> confdefs.h <<\EOF
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2479 #define _GNU_SOURCE 1
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2480 EOF
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2481 }
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2482
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2483
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2484 case "$opsys" in
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2485 sol2)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2486 { test "$extra_verbose" = "yes" && cat << \EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2487 Defining __EXTENSIONS__
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2488 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2489 cat >> confdefs.h <<\EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2490 #define __EXTENSIONS__ 1
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2491 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2492 }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2493
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2494 if test "$os_release" -ge 55; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2495 { test "$extra_verbose" = "yes" && cat << \EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2496 Defining _XOPEN_SOURCE = 500
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2497 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2498 cat >> confdefs.h <<\EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2499 #define _XOPEN_SOURCE 500
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2500 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2501 }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2502
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2503 { test "$extra_verbose" = "yes" && cat << \EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2504 Defining _XOPEN_SOURCE_EXTENDED
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2505 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2506 cat >> confdefs.h <<\EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2507 #define _XOPEN_SOURCE_EXTENDED 1
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2508 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2509 }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2510
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2511 fi ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2512 linux)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2513 { test "$extra_verbose" = "yes" && cat << \EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2514 Defining _POSIX_C_SOURCE = 199506L
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2515 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2516 cat >> confdefs.h <<\EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2517 #define _POSIX_C_SOURCE 199506L
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2518 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2519 }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2520
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2521 { test "$extra_verbose" = "yes" && cat << \EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2522 Defining _XOPEN_SOURCE = 500
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2523 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2524 cat >> confdefs.h <<\EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2525 #define _XOPEN_SOURCE 500
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2526 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2527 }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2528
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2529 { test "$extra_verbose" = "yes" && cat << \EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2530 Defining _XOPEN_SOURCE_EXTENDED
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2531 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2532 cat >> confdefs.h <<\EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2533 #define _XOPEN_SOURCE_EXTENDED 1
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2534 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2535 }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2536
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2537 ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2538 esac
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2539
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2540 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
2541 #line 2542 "configure"
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2542 #include "confdefs.h"
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2543 int main () {
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2544 #if defined __SUNPRO_C
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2545 return 11;
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2546 #elif defined __DECC
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2547 return 12;
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2548 #elif defined __USLC__ && defined __SCO_VERSION__
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2549 return 13;
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2550 #else
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2551 return 0;
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2552 #endif
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2553 }
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2554 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
2555 if { (eval echo configure:2556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2556 then
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2557 :
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2558 else
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2559 conftest_rc="$?"
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2560 echo "configure: failed program was:" >&5
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2561 cat conftest.$ac_ext >&5
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2562 rm -fr conftest*
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2563 case "$conftest_rc" in
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2564 11) echo "You appear to be using the SunPro C compiler."; __SUNPRO_C=yes ;;
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2565 12) echo "You appear to be using the DEC C compiler." ; __DECC=yes ;;
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2566 13) echo "You appear to be using the SCO C compiler." ; __USLC__=yes ;;
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2567 esac
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2568 fi
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2569 rm -fr conftest*
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2570
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2571
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2572
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2573
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2574 echo "Extracting information from the machine- and system-dependent headers..."
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2575
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2576 tempcname="conftest.c"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2577
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2578
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2579
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2580 cat > $tempcname < confdefs.h
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2581 cat >> $tempcname <<EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2582 #define NOT_C_CODE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2583 #define C_SWITCH_SITE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2584 #define C_SWITCH_X_SITE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2585 #define LD_SWITCH_SITE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2586 #define LD_SWITCH_X_SITE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2587 #define LD_SWITCH_X_SITE_AUX
284
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
2588 #define OS_RELEASE $os_release
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2589
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2590 #ifdef config_opsysfile
284
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
2591 #include "$srcdir/src/$opsysfile"
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2592 #endif
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2593
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2594 #ifdef config_machfile
284
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
2595 #include "$srcdir/src/$machfile"
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2596 #endif
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2597
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2598 #ifndef LIBS_MACHINE
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2599 #define LIBS_MACHINE
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2600 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2601 configure___ libs_machine=LIBS_MACHINE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2602
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2603 #ifndef LIBS_SYSTEM
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2604 #define LIBS_SYSTEM
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2605 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2606 configure___ libs_system=LIBS_SYSTEM
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2607
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2608 #ifndef LIBS_TERMCAP
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2609 #define LIBS_TERMCAP
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2610 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2611 configure___ libs_termcap=LIBS_TERMCAP
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2612
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2613 #ifndef LIB_STANDARD
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2614 #define LIB_STANDARD
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2615 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2616 configure___ libs_standard=LIB_STANDARD
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2617
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2618
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2619 #ifndef OBJECTS_MACHINE
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2620 #define OBJECTS_MACHINE
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2621 #endif
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2622 configure___ objects_machine=OBJECTS_MACHINE
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2623
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2624 #ifndef OBJECTS_SYSTEM
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2625 #define OBJECTS_SYSTEM
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2626 #endif
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2627 configure___ objects_system=OBJECTS_SYSTEM
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2628
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2629
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2630 #ifndef C_SWITCH_MACHINE
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2631 #define C_SWITCH_MACHINE
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2632 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2633 configure___ c_switch_machine=C_SWITCH_MACHINE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2634
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2635 #ifndef C_SWITCH_SYSTEM
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2636 #define C_SWITCH_SYSTEM
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2637 #endif
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2638 configure___ c_switch_system=C_SWITCH_SYSTEM
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2639
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2640
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2641 #ifndef LD_SWITCH_MACHINE
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2642 #define LD_SWITCH_MACHINE
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2643 #endif
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2644 configure___ ld_switch_machine=LD_SWITCH_MACHINE
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2645
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2646 #ifndef LD_SWITCH_SYSTEM
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2647 #define LD_SWITCH_SYSTEM
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2648 #endif
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2649 configure___ ld_switch_system=LD_SWITCH_SYSTEM
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2650
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2651
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2652 #ifndef UNEXEC
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
2653 #define UNEXEC
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2654 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2655 configure___ unexec=UNEXEC
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2656
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2657
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
2658 #ifndef SYSTEM_TYPE
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
2659 #define SYSTEM_TYPE
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
2660 #endif
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
2661 configure___ system_type=SYSTEM_TYPE
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
2662
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
2663
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2664 #ifndef LD_SWITCH_SHARED
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2665 #define LD_SWITCH_SHARED "-c"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2666 #endif
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2667 configure___ ld_switch_shared=LD_SWITCH_SHARED
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2668
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2669
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2670 #define ORDINARY_LD "\$(CC) \$(CFLAGS)"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2671 configure___ ordinary_ld=ORDINARY_LD
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2672
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2673 #ifdef ORDINARY_LINK
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2674 #define LD ORDINARY_LD
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2675 #else /* no ORDINARY LINK */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2676 #ifdef COFF_ENCAPSULATE
284
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
2677 #define LD "\$(CC) -nostdlib"
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2678 #else /* not COFF_ENCAPSULATE */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2679 #ifdef LINKER
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2680 #define LD LINKER
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2681 #else /* ! defined (LINKER) */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2682 #define LD "ld"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2683 #endif /* ! defined (LINKER) */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2684 #endif /* ! defined (COFF_ENCAPSULATE) */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2685 #endif /* not ORDINARY_LINK */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2686 configure___ ld=LD
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2687
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2688 #ifndef LIB_GCC
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2689 #define LIB_GCC
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2690 #endif
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2691 configure___ lib_gcc=LIB_GCC
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2692
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2693 #ifndef LD_TEXT_START_ADDR
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2694 #define LD_TEXT_START_ADDR
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2695 #endif
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2696 configure___ ld_text_start_addr=LD_TEXT_START_ADDR
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2697
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2698
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2699 #if ! defined (ORDINARY_LINK) && !defined (START_FILES)
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2700 #ifdef NO_REMAP
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2701 #ifdef COFF_ENCAPSULATE
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2702 #define START_FILES "pre-crt0.o /usr/local/lib/gcc-crt0.o"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2703 #else /* ! defined (COFF_ENCAPSULATE) */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2704 #define START_FILES "pre-crt0.o /lib/crt0.o"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2705 #endif /* ! defined (COFF_ENCAPSULATE) */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2706 #else /* ! defined (NO_REMAP) */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2707 #define START_FILES "ecrt0.o"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2708 #endif /* ! defined (NO_REMAP) */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2709 #endif /* no ORDINARY_LINK */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2710 #ifndef START_FILES
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2711 #define START_FILES
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2712 #endif
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2713 configure___ start_files=START_FILES
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2714
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
2715 #ifdef ORDINARY_LINK
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
2716 configure___ ordinary_link=yes
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
2717 #else
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
2718 configure___ ordinary_link=no
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
2719 #endif
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
2720
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2721 #ifdef SYSTEM_MALLOC
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2722 configure___ system_malloc=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2723 #else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2724 configure___ system_malloc=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2725 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2726
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2727 #ifdef TERMINFO
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2728 configure___ have_terminfo=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2729 #else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2730 configure___ have_terminfo=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2731 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2732
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2733 #ifdef MAIL_USE_FLOCK
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2734 configure___ mail_use_flock=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2735 #else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2736 configure___ mail_use_flock=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2737 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2738
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2739 #ifdef MAIL_USE_LOCKF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2740 configure___ mail_use_lockf=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2741 #else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2742 configure___ mail_use_lockf=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2743 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2744
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
2745 #ifdef MAIL_USE_LOCKING
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
2746 configure___ mail_use_locking=yes
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
2747 #else
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
2748 configure___ mail_use_locking=no
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
2749 #endif
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
2750
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
2751 #ifdef HAVE_WIN32_PROCESSES
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
2752 configure___ win32_processes=yes
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
2753 #else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
2754 configure___ win32_processes=no
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
2755 #endif
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
2756
284
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
2757 EOF
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
2758
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
2759 CPP=`eval "echo $CPP $CPPFLAGS"`
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2760 eval `$CPP -Isrc $tempcname \
165
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents: 163
diff changeset
2761 | sed -n -e "s/[ ]*=[ \"]*/='/" -e "s/[ \"]*\$/'/" -e "s/^configure___//p"`
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
2762
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2763 rm $tempcname
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2764
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
2765 test -z "$system_type" && \
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
2766 { test "$extra_verbose" = "yes" && cat << EOF
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
2767 Defining SYSTEM_TYPE = "`uname -s | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`"
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
2768 EOF
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
2769 cat >> confdefs.h <<EOF
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
2770 #define SYSTEM_TYPE "`uname -s | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`"
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
2771 EOF
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
2772 }
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
2773
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
2774
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
2775 test -z "$unexec" && pdump=yes
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
2776
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2777 if test "$pdump" = "yes"; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2778 ordinary_link="yes"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2779 ld="${ordinary_ld}"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2780 start_files=
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2781 libs_standard=
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2782 unexec=
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2783 lib_gcc=
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2784 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2785
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2786 test "$extra_verbose" = "yes" && \
201
eb5470882647 Import from CVS: tag r20-3b27
cvs
parents: 197
diff changeset
2787 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 ""
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2788
458
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
2789 case "$opsys" in mingw* | cygwin*)
452
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 450
diff changeset
2790 cygwin_include=`eval "gcc -print-file-name=libc.a"` ;
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 450
diff changeset
2791 cygwin_include=`eval "dirname $cygwin_include"` ;
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 450
diff changeset
2792 cygwin_include="-I$cygwin_include/../include" ;
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
2793 extra_includes="$cygwin_include/mingw $cygwin_include" ;
458
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
2794 case "$opsys" in mingw*)
452
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 450
diff changeset
2795 c_switch_system="$c_switch_system $extra_includes" && if test "$extra_verbose" = "yes"; then echo " Appending \"$extra_includes\" to \$c_switch_system"; fi ;;
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 450
diff changeset
2796 esac
458
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
2797 ;;
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
2798 esac
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
2799
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
2800 test "$ordinary_link" = "no" -a -z "$libs_standard" && libs_standard="-lc"
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
2801
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2802
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2803 test "$__DECC" = "yes" && c_switch_site="$c_switch_site -std1" && if test "$extra_verbose" = "yes"; then echo " Appending \"-std1\" to \$c_switch_site"; fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2804
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2805 if test "$__USLC__" = yes; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2806 echo $ac_n "checking for whether the -Kalloca compiler flag is needed""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
2807 echo "configure:2808: checking for whether the -Kalloca compiler flag is needed" >&5
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2808 need_kalloca=no
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2809 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
2810 #line 2811 "configure"
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2811 #include "confdefs.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2812
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2813 int main() {
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2814 void *x = alloca(4);
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2815 ; return 0; }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2816 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
2817 if { (eval echo configure:2818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2818 rm -rf conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2819 :
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2820 else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2821 echo "configure: failed program was:" >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2822 cat conftest.$ac_ext >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2823 rm -rf conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2824
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2825 xe_save_c_switch_system="$c_switch_system"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2826 c_switch_system="$c_switch_system -Kalloca"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2827 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
2828 #line 2829 "configure"
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2829 #include "confdefs.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2830
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2831 int main() {
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2832 void *x = alloca(4);
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2833 ; return 0; }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2834 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
2835 if { (eval echo configure:2836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2836 rm -rf conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2837 need_kalloca=yes
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2838 else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2839 echo "configure: failed program was:" >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2840 cat conftest.$ac_ext >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2841 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2842 rm -f conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2843 c_switch_system="$xe_save_c_switch_system"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2844 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2845 rm -f conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2846 echo "$ac_t""$need_kalloca" 1>&6
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2847 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
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2848 fi
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2849
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2850 if test "$cflags_specified" = "no"; then
1123
37bdd24225ef [xemacs-hg @ 2002-11-27 07:15:02 by ben]
ben
parents: 1111
diff changeset
2851 if test "$GCC" = "yes"; then
1111
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
2852 CFLAGS="-g -O3"
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
2853 elif test "$__SUNPRO_C" = "yes"; then
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2854 case "$opsys" in
1111
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
2855 sol2 ) CFLAGS="-xO4" ;;
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
2856 sunos4* ) CFLAGS="-xO2" ;;
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2857 esac
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2858 elif test "$__DECC" = "yes"; then
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2859 CFLAGS="-O3"
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
2860 elif test "$CC" = "xlc"; then
1111
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
2861 CFLAGS="-g -O3 -qstrict -qnoansialias -qlibansi -qro -qmaxmem=20000"
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2862 else
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2863 CFLAGS="-O" ; fi
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2864 fi
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2865
1111
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
2866
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
2867 if test "$cflags_warning_specified" = "no"; then
1123
37bdd24225ef [xemacs-hg @ 2002-11-27 07:15:02 by ben]
ben
parents: 1111
diff changeset
2868 if test "$GCC" = "yes"; then
1111
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
2869 cflags_warning="-Wall -Wno-switch -Winline -Wmissing-prototypes"
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
2870 cflags_warning="$cflags_warning -Wsign-compare"
1123
37bdd24225ef [xemacs-hg @ 2002-11-27 07:15:02 by ben]
ben
parents: 1111
diff changeset
2871 cflags_warning="$cflags_warning -Wundef -Wstrict-prototypes"
37bdd24225ef [xemacs-hg @ 2002-11-27 07:15:02 by ben]
ben
parents: 1111
diff changeset
2872 if test "$__GCC3" = "yes"; then
37bdd24225ef [xemacs-hg @ 2002-11-27 07:15:02 by ben]
ben
parents: 1111
diff changeset
2873 cflags_warning="$cflags_warning -Wpacked"
37bdd24225ef [xemacs-hg @ 2002-11-27 07:15:02 by ben]
ben
parents: 1111
diff changeset
2874 fi
1111
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
2875 if test "$xemacs_compiler" != "g++"; then
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
2876 cflags_warning="$cflags_warning -Wshadow -Wmissing-declarations"
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
2877 else
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
2878 cflags_warning="$cflags_warning -Weffc++"
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
2879 fi
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
2880 test "$have_glibc" != "yes" && \
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
2881 cflags_warning="$cflags_warning -Wpointer-arith"
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
2882 elif test "$__SUNPRO_C" = "yes"; then
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
2883 case "$opsys" in
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
2884 sol2 ) cflags_warning="-v" ;;
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
2885 esac
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
2886 elif test "$CC" = "xlc"; then
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
2887 cflags_warning="-qinfo"
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
2888 fi
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
2889 fi
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
2890
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
2891 CFLAGS="$cflags_warning $CFLAGS"
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
2892
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2893 if test "$GCC" = "yes"; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2894 echo $ac_n "checking for buggy gcc versions""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
2895 echo "configure:2896: checking for buggy gcc versions" >&5
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2896 GCC_VERSION=`$CC --version`
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2897 case `uname -s`:`uname -m`:$GCC_VERSION in
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2898 *:sun4*:2.8.1|*:sun4*:egcs-2.90.*)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2899 case "$CFLAGS" in
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2900 *-O2*|*-O3*)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2901 case "$CFLAGS" in
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2902 *-fno-schedule-insns*) ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2903 *)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2904 echo "$ac_t""yes" 1>&6
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2905 echo "configure: warning: Don't use -O2 with gcc 2.8.1 and egcs 1.0 under SPARC architectures" 1>&2
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2906 echo "configure: warning: without also using -fno-schedule-insns." 1>&2
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2907 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2908 ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2909 esac
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2910 ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2911 esac
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2912 ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2913 Linux:alpha:egcs-2.91.*)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2914 echo "$ac_t""yes" 1>&6
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2915 echo "configure: warning: There have been reports of egcs-1.1 not compiling XEmacs correctly on" 1>&2
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2916 echo "configure: warning: Alpha Linux. There have also been reports that egcs-1.0.3a is O.K." 1>&2
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2917 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2918 ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2919 *:i*86*:2.7.2*)
448
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 446
diff changeset
2920 case "$CFLAGS" in
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 446
diff changeset
2921 *-O2*|*-O3*)
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 446
diff changeset
2922 case "$GCC_VERSION" in
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 446
diff changeset
2923 2.7.2)
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2924 case "$CFLAGS" in
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2925 *-fno-strength-reduce*) ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2926 *)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2927 echo "$ac_t""yes" 1>&6
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2928 echo "configure: warning: Don't use -O2 with gcc 2.7.2 under Intel/XXX without also using" 1>&2
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2929 echo "configure: warning: -fno-strength-reduce." 1>&2
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2930 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2931 ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2932 esac
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2933 ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2934 esac
448
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 446
diff changeset
2935 case "$CFLAGS" in
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 446
diff changeset
2936 *-fno-caller-saves*) ;;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 446
diff changeset
2937 *)
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 446
diff changeset
2938 echo "$ac_t""yes" 1>&6
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 446
diff changeset
2939 echo "configure: warning: Don't use -O2 with gcc 2.7.2 under Intel/XXX without also using" 1>&2
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 446
diff changeset
2940 echo "configure: warning: -fno-caller-saves." 1>&2
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 446
diff changeset
2941 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 446
diff changeset
2942 ;;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 446
diff changeset
2943 esac
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2944 ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2945 esac
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2946 ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2947 esac
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2948 echo "$ac_t""no" 1>&6
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2949 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2950
853
2b6fa2618f76 [xemacs-hg @ 2002-05-28 08:44:22 by ben]
ben
parents: 831
diff changeset
2951 if test "$pdump" != "yes"; then
2b6fa2618f76 [xemacs-hg @ 2002-05-28 08:44:22 by ben]
ben
parents: 831
diff changeset
2952 echo $ac_n "checking for \"-z nocombreloc\" linker flag""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
2953 echo "configure:2954: checking for \"-z nocombreloc\" linker flag" >&5
853
2b6fa2618f76 [xemacs-hg @ 2002-05-28 08:44:22 by ben]
ben
parents: 831
diff changeset
2954 case "`ld --help 2>&1`" in
2b6fa2618f76 [xemacs-hg @ 2002-05-28 08:44:22 by ben]
ben
parents: 831
diff changeset
2955 *-z\ nocombreloc* ) echo "$ac_t""yes" 1>&6
2b6fa2618f76 [xemacs-hg @ 2002-05-28 08:44:22 by ben]
ben
parents: 831
diff changeset
2956 ld_switch_site="-z nocombreloc $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z nocombreloc\" to \$ld_switch_site"; fi ;;
2b6fa2618f76 [xemacs-hg @ 2002-05-28 08:44:22 by ben]
ben
parents: 831
diff changeset
2957 *) echo "$ac_t""no" 1>&6 ;;
2b6fa2618f76 [xemacs-hg @ 2002-05-28 08:44:22 by ben]
ben
parents: 831
diff changeset
2958 esac
2b6fa2618f76 [xemacs-hg @ 2002-05-28 08:44:22 by ben]
ben
parents: 831
diff changeset
2959 fi
2b6fa2618f76 [xemacs-hg @ 2002-05-28 08:44:22 by ben]
ben
parents: 831
diff changeset
2960
2b6fa2618f76 [xemacs-hg @ 2002-05-28 08:44:22 by ben]
ben
parents: 831
diff changeset
2961
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2962
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2963 if test "$GCC" = "yes"; then
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2964 set x $ld_switch_system; shift; ld_switch_system=""
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2965 while test -n "$1"; do
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2966 case $1 in
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
2967 -L | -l | -u ) ld_switch_system="$ld_switch_system $1 $2"; shift ;;
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
2968 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_system="$ld_switch_system $1" ;;
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2969 -Xlinker* ) ;;
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2970 * ) ld_switch_system="$ld_switch_system -Xlinker $1" ;;
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2971 esac
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2972 shift
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2973 done
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2974 fi
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2975
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2976 if test "$GCC" = "yes"; then
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2977 set x $ld_switch_machine; shift; ld_switch_machine=""
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2978 while test -n "$1"; do
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2979 case $1 in
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
2980 -L | -l | -u ) ld_switch_machine="$ld_switch_machine $1 $2"; shift ;;
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
2981 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_machine="$ld_switch_machine $1" ;;
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2982 -Xlinker* ) ;;
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2983 * ) ld_switch_machine="$ld_switch_machine -Xlinker $1" ;;
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2984 esac
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2985 shift
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2986 done
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2987 fi
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2988
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2989 if test "$GCC" = "yes"; then
853
2b6fa2618f76 [xemacs-hg @ 2002-05-28 08:44:22 by ben]
ben
parents: 831
diff changeset
2990 set x $ld_switch_site; shift; ld_switch_site=""
2b6fa2618f76 [xemacs-hg @ 2002-05-28 08:44:22 by ben]
ben
parents: 831
diff changeset
2991 while test -n "$1"; do
2b6fa2618f76 [xemacs-hg @ 2002-05-28 08:44:22 by ben]
ben
parents: 831
diff changeset
2992 case $1 in
2b6fa2618f76 [xemacs-hg @ 2002-05-28 08:44:22 by ben]
ben
parents: 831
diff changeset
2993 -L | -l | -u ) ld_switch_site="$ld_switch_site $1 $2"; shift ;;
2b6fa2618f76 [xemacs-hg @ 2002-05-28 08:44:22 by ben]
ben
parents: 831
diff changeset
2994 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_site="$ld_switch_site $1" ;;
2b6fa2618f76 [xemacs-hg @ 2002-05-28 08:44:22 by ben]
ben
parents: 831
diff changeset
2995 -Xlinker* ) ;;
2b6fa2618f76 [xemacs-hg @ 2002-05-28 08:44:22 by ben]
ben
parents: 831
diff changeset
2996 * ) ld_switch_site="$ld_switch_site -Xlinker $1" ;;
2b6fa2618f76 [xemacs-hg @ 2002-05-28 08:44:22 by ben]
ben
parents: 831
diff changeset
2997 esac
2b6fa2618f76 [xemacs-hg @ 2002-05-28 08:44:22 by ben]
ben
parents: 831
diff changeset
2998 shift
2b6fa2618f76 [xemacs-hg @ 2002-05-28 08:44:22 by ben]
ben
parents: 831
diff changeset
2999 done
2b6fa2618f76 [xemacs-hg @ 2002-05-28 08:44:22 by ben]
ben
parents: 831
diff changeset
3000 fi
2b6fa2618f76 [xemacs-hg @ 2002-05-28 08:44:22 by ben]
ben
parents: 831
diff changeset
3001
2b6fa2618f76 [xemacs-hg @ 2002-05-28 08:44:22 by ben]
ben
parents: 831
diff changeset
3002 if test "$GCC" = "yes"; then
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3003 set x $LDFLAGS; shift; LDFLAGS=""
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3004 while test -n "$1"; do
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3005 case $1 in
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
3006 -L | -l | -u ) LDFLAGS="$LDFLAGS $1 $2"; shift ;;
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
3007 -L* | -l* | -u* | -Wl* | -pg ) LDFLAGS="$LDFLAGS $1" ;;
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3008 -Xlinker* ) ;;
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3009 * ) LDFLAGS="$LDFLAGS -Xlinker $1" ;;
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3010 esac
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3011 shift
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3012 done
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3013 fi
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3014
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3015 if test "$GCC" = "yes"; then
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3016 set x $ld_call_shared; shift; ld_call_shared=""
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3017 while test -n "$1"; do
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3018 case $1 in
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
3019 -L | -l | -u ) ld_call_shared="$ld_call_shared $1 $2"; shift ;;
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
3020 -L* | -l* | -u* | -Wl* | -pg ) ld_call_shared="$ld_call_shared $1" ;;
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
3021 -Xlinker* ) ;;
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3022 * ) ld_call_shared="$ld_call_shared -Xlinker $1" ;;
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
3023 esac
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3024 shift
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
3025 done
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3026 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3027
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3028 test -n "$objects_machine" && extra_objs="$extra_objs $objects_machine" && if test "$extra_verbose" = "yes"; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3029 echo " xemacs will be linked with \"$objects_machine\""
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3030 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3031 test -n "$objects_system" && extra_objs="$extra_objs $objects_system" && if test "$extra_verbose" = "yes"; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3032 echo " xemacs will be linked with \"$objects_system\""
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3033 fi
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
3034 test -n "$unexec" && test ! "$pdump" = "yes" && extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3035 echo " xemacs will be linked with \"$unexec\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3036 fi
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
3037 test "$pdump" = "yes" && extra_objs="$extra_objs dumper.o" && if test "$extra_verbose" = "yes"; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
3038 echo " xemacs will be linked with \"dumper.o\""
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
3039 fi
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3040
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3041 echo $ac_n "checking for dynodump""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
3042 echo "configure:3043: checking for dynodump" >&5
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3043 if test "$unexec" != "unexsol2.o"; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3044 echo "$ac_t""no" 1>&6
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3045 else
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3046 echo "$ac_t""yes" 1>&6
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3047 { test "$extra_verbose" = "yes" && cat << \EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3048 Defining DYNODUMP
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3049 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3050 cat >> confdefs.h <<\EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3051 #define DYNODUMP 1
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3052 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3053 }
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3054
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3055 MAKE_SUBDIR="$MAKE_SUBDIR dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$MAKE_SUBDIR"; fi
175
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
3056 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$SRC_SUBDIR_DEPS"; fi
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3057 case "$machine" in
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3058 sparc ) dynodump_arch=sparc ;;
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3059 *86* ) dynodump_arch=i386 ;;
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3060 powerpc ) dynodump_arch=ppc ;;
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3061 esac
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3062 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
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3063 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3064
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3065
274
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
3066 test "$machine$opsys" = "powerpclinux" && start_flags="-T $srcdir/src/ppc.ldscript"
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3067
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
3068 if test "$unexec" = "unexaix.o"; then
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
3069 if test "$dynamic" = "no"; then
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
3070 start_flags="-Wl,-bnso,-bnodelcsect"
209
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents: 207
diff changeset
3071 test "$GCC" = "yes" && start_flags="-B/bin/ ${start_flags}"
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3072 for f in "/lib/syscalls.exp" "/lib/threads.exp"; do
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
3073 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; fi
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
3074 done
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
3075 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
3076 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
3077 done
294
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
3078
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
3079 echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
3080 echo "configure:3081: checking for terminateAndUnload in -lC" >&5
294
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
3081 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'`
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
3082
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
3083 xe_check_libs=" -lC "
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
3084 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
3085 #line 3086 "configure"
294
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
3086 #include "confdefs.h"
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
3087 /* Override any gcc2 internal prototype to avoid an error. */
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
3088 /* We use char because int might match the return type of a gcc2
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
3089 builtin and then its argument prototype would still apply. */
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
3090 char terminateAndUnload();
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
3091
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
3092 int main() {
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
3093 terminateAndUnload()
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
3094 ; return 0; }
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
3095 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
3096 if { (eval echo configure:3097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
294
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
3097 rm -rf conftest*
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
3098 eval "ac_cv_lib_$ac_lib_var=yes"
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
3099 else
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
3100 echo "configure: failed program was:" >&5
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
3101 cat conftest.$ac_ext >&5
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
3102 rm -rf conftest*
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
3103 eval "ac_cv_lib_$ac_lib_var=no"
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
3104 fi
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
3105 rm -f conftest*
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
3106 xe_check_libs=""
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
3107
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
3108 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
3109 echo "$ac_t""yes" 1>&6
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
3110 libs_system="$libs_system -lC" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lC\" to \$libs_system"; fi
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
3111 else
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
3112 echo "$ac_t""no" 1>&6
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
3113 fi
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
3114
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
3115
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3116 fi
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
3117 elif test -n "$ld_text_start_addr"; then
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
3118 start_flags="-T $ld_text_start_addr -e __start"
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
3119 fi
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
3120
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
3121
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
3122
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3123
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3124 if test "$ordinary_link" = "no" -a "$GCC" = "yes"; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3125 test -z "$linker" && linker='$(CC) -nostdlib'
175
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
3126 test -z "$lib_gcc" && lib_gcc='`$(CC) -print-libgcc-file-name`'
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3127 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3128 test "$GCC" != "yes" && lib_gcc=
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3129
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3130
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3131
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3132
209
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents: 207
diff changeset
3133
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
3134 case "$site_libraries" in *:* ) site_libraries="`echo '' $site_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3135 if test -n "$site_libraries"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3136 for arg in $site_libraries; do
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
3137 case "$arg" in
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
3138 -* ) ;;
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
3139 * ) test -d "$arg" || \
384
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
3140 { echo "Error:" "Invalid site library \`$arg': no such directory" >&2; exit 1; }
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
3141 arg="-L${arg}" ;;
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
3142 esac
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3143 ld_switch_site="$ld_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$ld_switch_site"; fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3144 done
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3145 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3146
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
3147 case "$site_includes" in *:* ) site_includes="`echo '' $site_includes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3148 if test -n "$site_includes"; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3149 for arg in $site_includes; do
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
3150 case "$arg" in
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
3151 -* ) ;;
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
3152 * ) test -d "$arg" || \
384
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
3153 { echo "Error:" "Invalid site include \`$arg': no such directory" >&2; exit 1; }
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
3154 arg="-I${arg}" ;;
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
3155 esac
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3156 c_switch_site="$c_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$c_switch_site"; fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3157 done
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3158 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3159
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
3160 case "$site_prefixes" in *:* ) site_prefixes="`echo '' $site_prefixes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
3161 if test -n "$site_prefixes"; then
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
3162 for dir in $site_prefixes; do
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
3163 lib_dir="${dir}/lib"
416
ebe98a74bd68 Import from CVS: tag r21-2-16
cvs
parents: 414
diff changeset
3164 inc_dir="${dir}/include"
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
3165 if test ! -d "$dir"; then
384
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
3166 { echo "Error:" "Invalid site prefix \`$dir': no such directory" >&2; exit 1; }
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
3167 elif test ! -d "$lib_dir"; then
384
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
3168 { echo "Error:" "Invalid site prefix \`$dir': no such directory \`$lib_dir'" >&2; exit 1; }
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
3169 else
414
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
3170 if test -d "$inc_dir"; then
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
3171 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
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
3172 fi
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
3173 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
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
3174 fi
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
3175 done
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
3176 fi
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
3177
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
3178
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3179 for dir in "/usr/ccs/lib"; do
440
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
3180 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
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3181 done
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3182
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
3183 case "$site_runtime_libraries" in *:* ) site_runtime_libraries="`echo '' $site_runtime_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3184 if test -n "$site_runtime_libraries"; then
165
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents: 163
diff changeset
3185 LD_RUN_PATH="`echo $site_runtime_libraries | sed -e 's/ */:/g'`"
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3186 export LD_RUN_PATH
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3187 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3188
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3189
440
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
3190
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
3191
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
3192
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
3193 if test -n "$add_runtime_path"; then :;
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
3194 elif test "$dynamic" = "no"; then add_runtime_path=no
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3195 elif test -n "$LD_RUN_PATH"; then add_runtime_path=yes
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3196 else case "$opsys" in
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
3197 sol2 | irix* | *bsd* | decosf* ) add_runtime_path=yes ;;
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3198 * ) add_runtime_path=no ;;
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3199 esac
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3200 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3201
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3202 if test "$add_runtime_path" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3203 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
3204 echo "configure:3205: checking "for runtime libraries flag"" >&5
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
3205 case "$opsys" in
377
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
3206 sol2 ) dash_r="-R" ;;
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
3207 decosf* | linux* | irix*) dash_r="-rpath " ;;
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
3208 *)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
3209 dash_r=""
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
3210 for try_dash_r in "-R" "-R " "-rpath "; do
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
3211 xe_check_libs="${try_dash_r}/no/such/file-or-directory"
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
3212
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3213 if test "$GCC" = "yes"; then
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3214 set x $xe_check_libs; shift; xe_check_libs=""
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3215 while test -n "$1"; do
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3216 case $1 in
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
3217 -L | -l | -u ) xe_check_libs="$xe_check_libs $1 $2"; shift ;;
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
3218 -L* | -l* | -u* | -Wl* | -pg ) xe_check_libs="$xe_check_libs $1" ;;
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3219 -Xlinker* ) ;;
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3220 * ) xe_check_libs="$xe_check_libs -Xlinker $1" ;;
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3221 esac
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3222 shift
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3223 done
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3224 fi
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
3225 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
3226 #line 3227 "configure"
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
3227 #include "confdefs.h"
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
3228
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
3229 int main() {
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
3230
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
3231 ; return 0; }
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
3232 EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
3233 if { (eval echo configure:3234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3234 rm -rf conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3235 dash_r="$try_dash_r"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3236 else
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3237 echo "configure: failed program was:" >&5
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3238 cat conftest.$ac_ext >&5
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3239 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3240 rm -f conftest*
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
3241 xe_check_libs=""
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
3242 test -n "$dash_r" && break
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
3243 done ;;
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
3244 esac
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3245 if test -n "$dash_r";
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3246 then echo "$ac_t"""\"${dash_r}\""" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3247 else echo "$ac_t""NONE" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3248 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3249 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3250
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3251 xe_add_unique_runpath_dir='
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3252 xe_add_p=yes
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3253 for xe_dir in $runpath_dirs; do test "$xe_dir" = "$xe_runpath_dir" && xe_add_p=no
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3254 done
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3255 if test "$xe_add_p" = "yes"; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3256 test -n "$runpath" && runpath="${runpath}:"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3257 runpath="${runpath}${xe_runpath_dir}"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3258 runpath_dirs="$runpath_dirs $xe_runpath_dir"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3259 fi'
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3260
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3261
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3262
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3263
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3264 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
165
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents: 163
diff changeset
3265 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents: 163
diff changeset
3266 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3267
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3268 runpath="" runpath_dirs=""
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3269 if test -n "$LD_RUN_PATH"; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3270 runpath="$LD_RUN_PATH"
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3271 elif test "$GCC" = "yes"; then
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3272 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3273 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3274 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3275 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3276 case "$arg" in P,* | -L* | -R* )
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
3277 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3278 {
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3279 xe_runpath_dir="$dir"
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3280 test "$xe_runpath_dir" != "/lib" -a \
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3281 "$xe_runpath_dir" != "/usr/lib" -a \
371
cc15677e0335 Import from CVS: tag r21-2b1
cvs
parents: 369
diff changeset
3282 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3283 eval "$xe_add_unique_runpath_dir"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3284 }
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3285 done ;;
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3286 esac
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3287 done
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3288 ld_switch_run="$ld_switch_run_save"
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3289 rm -f conftest*
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3290 else
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3291 for arg in $ld_switch_site $ld_switch_x_site; do
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3292 case "$arg" in -L*) {
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
3293 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3294 test "$xe_runpath_dir" != "/lib" -a \
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3295 "$xe_runpath_dir" != "/usr/lib" -a \
371
cc15677e0335 Import from CVS: tag r21-2b1
cvs
parents: 369
diff changeset
3296 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3297 eval "$xe_add_unique_runpath_dir"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3298 };; esac
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3299 done
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3300 if test "$opsys $need_motif" = "sol2 yes"; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3301 xe_runpath_dir="/opt/SUNWdt/lib";
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3302 eval "$xe_add_unique_runpath_dir";
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3303 fi
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3304 fi
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3305 if test -n "$runpath"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3306 ld_switch_run="${dash_r}${runpath}"
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3307
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3308 if test "$GCC" = "yes"; then
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3309 set x $ld_switch_run; shift; ld_switch_run=""
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3310 while test -n "$1"; do
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3311 case $1 in
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
3312 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
3313 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3314 -Xlinker* ) ;;
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3315 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3316 esac
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3317 shift
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3318 done
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3319 fi
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3320 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3321 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3322 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3323
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3324
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3325
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3326 GNU_MALLOC=yes
261
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
3327 if test "$with_dlmalloc" != "no"; then
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
3328 doug_lea_malloc=yes
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
3329 else
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
3330 doug_lea_malloc=no
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
3331 fi
259
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
3332 after_morecore_hook_exists=yes
255
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3333 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
3334 echo "configure:3335: checking for malloc_set_state" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
3335
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
3336 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
3337 #line 3338 "configure"
255
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3338 #include "confdefs.h"
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3339 /* System header to define __stub macros and hopefully few prototypes,
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3340 which can conflict with char malloc_set_state(); below. */
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3341 #include <assert.h>
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3342 /* Override any gcc2 internal prototype to avoid an error. */
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3343 /* We use char because int might match the return type of a gcc2
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3344 builtin and then its argument prototype would still apply. */
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3345 char malloc_set_state();
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3346
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3347 int main() {
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3348
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3349 /* The GNU C library defines this for functions which it implements
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3350 to always fail with ENOSYS. Some functions are actually named
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3351 something starting with __ and the normal name is an alias. */
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3352 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3353 choke me
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3354 #else
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3355 malloc_set_state();
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3356 #endif
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3357
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3358 ; return 0; }
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3359 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
3360 if { (eval echo configure:3361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
255
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3361 rm -rf conftest*
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3362 eval "ac_cv_func_malloc_set_state=yes"
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3363 else
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3364 echo "configure: failed program was:" >&5
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3365 cat conftest.$ac_ext >&5
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3366 rm -rf conftest*
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3367 eval "ac_cv_func_malloc_set_state=no"
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3368 fi
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3369 rm -f conftest*
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3370
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3371 if eval "test \"`echo '$ac_cv_func_'malloc_set_state`\" = yes"; then
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3372 echo "$ac_t""yes" 1>&6
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3373 :
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3374 else
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3375 echo "$ac_t""no" 1>&6
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3376 doug_lea_malloc=no
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3377 fi
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3378
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3379 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
3380 echo "configure:3381: checking whether __after_morecore_hook exists" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
3381 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
3382 #line 3383 "configure"
255
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3383 #include "confdefs.h"
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3384 extern void (* __after_morecore_hook)();
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3385 int main() {
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3386 __after_morecore_hook = 0
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3387 ; return 0; }
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3388 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
3389 if { (eval echo configure:3390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
259
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
3390 rm -rf conftest*
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
3391 echo "$ac_t""yes" 1>&6
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
3392 else
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
3393 echo "configure: failed program was:" >&5
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
3394 cat conftest.$ac_ext >&5
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
3395 rm -rf conftest*
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
3396 echo "$ac_t""no" 1>&6
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
3397 after_morecore_hook_exists=no
255
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3398 fi
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3399 rm -f conftest*
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3400 if test "$system_malloc" = "yes" ; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3401 GNU_MALLOC=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3402 GNU_MALLOC_reason="
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
3403 - The GNU allocators don't work with this system configuration."
181
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
3404 elif test "$with_system_malloc" = "yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3405 GNU_MALLOC=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3406 GNU_MALLOC_reason="
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
3407 - User chose not to use GNU allocators."
181
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
3408 elif test "$with_debug_malloc" = "yes" ; then
177
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
3409 GNU_MALLOC=no
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
3410 GNU_MALLOC_reason="
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
3411 - User chose to use Debugging Malloc."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
3412 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
3413
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
3414 if test "$doug_lea_malloc" = "yes" -a "$GNU_MALLOC" = "yes" ; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
3415 GNU_MALLOC_reason="
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
3416 - Using Doug Lea's new malloc from the GNU C Library."
255
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3417 { test "$extra_verbose" = "yes" && cat << \EOF
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3418 Defining DOUG_LEA_MALLOC
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3419 EOF
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3420 cat >> confdefs.h <<\EOF
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3421 #define DOUG_LEA_MALLOC 1
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3422 EOF
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3423 }
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3424
259
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
3425 if test "$after_morecore_hook_exists" = "no" ; then
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
3426 GNU_MALLOC_reason="
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
3427 - Using Doug Lea's new malloc from the Linux C Library."
259
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
3428 { test "$extra_verbose" = "yes" && cat << \EOF
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
3429 Defining _NO_MALLOC_WARNING_
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
3430 EOF
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
3431 cat >> confdefs.h <<\EOF
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
3432 #define _NO_MALLOC_WARNING_ 1
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
3433 EOF
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
3434 }
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
3435
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
3436 fi
255
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3437 fi
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3438
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3439
267
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
3440
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
3441
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3442 # Extract the first word of "ranlib", so it can be a program name with args.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3443 set dummy ranlib; ac_word=$2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3444 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
3445 echo "configure:3446: checking for $ac_word" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3446
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3447 if test -n "$RANLIB"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3448 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3449 else
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
3450 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
3451 ac_dummy="$PATH"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
3452 for ac_dir in $ac_dummy; do
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3453 test -z "$ac_dir" && ac_dir=.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3454 if test -f $ac_dir/$ac_word; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3455 ac_cv_prog_RANLIB="ranlib"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3456 break
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3457 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3458 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3459 IFS="$ac_save_ifs"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3460 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3461 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3462 RANLIB="$ac_cv_prog_RANLIB"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3463 if test -n "$RANLIB"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3464 echo "$ac_t""$RANLIB" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3465 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3466 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3467 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3468
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3469 ac_aux_dir=
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3470 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3471 if test -f $ac_dir/install-sh; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3472 ac_aux_dir=$ac_dir
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3473 ac_install_sh="$ac_aux_dir/install-sh -c"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3474 break
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3475 elif test -f $ac_dir/install.sh; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3476 ac_aux_dir=$ac_dir
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3477 ac_install_sh="$ac_aux_dir/install.sh -c"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3478 break
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3479 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3480 done
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3481 if test -z "$ac_aux_dir"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3482 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3483 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3484 ac_config_guess=$ac_aux_dir/config.guess
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3485 ac_config_sub=$ac_aux_dir/config.sub
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3486 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3487
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3488 # Find a good install program. We prefer a C program (faster),
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3489 # so one script is as good as another. But avoid the broken or
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3490 # incompatible versions:
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3491 # SysV /etc/install, /usr/sbin/install
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3492 # SunOS /usr/etc/install
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3493 # IRIX /sbin/install
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3494 # AIX /bin/install
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
3495 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3496 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3497 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3498 # ./install, which can be erroneously created by make from ./install.sh.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3499 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
3500 echo "configure:3501: checking for a BSD compatible install" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3501 if test -z "$INSTALL"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3502
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
3503 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3504 for ac_dir in $PATH; do
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3505 # Account for people who put trailing slashes in PATH elements.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3506 case "$ac_dir/" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3507 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3508 *)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3509 # OSF1 and SCO ODT 3.0 have their own names for install.
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
3510 # Don't use installbsd from OSF since it installs stuff as root
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
3511 # by default.
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
3512 for ac_prog in ginstall scoinst install; do
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3513 if test -f $ac_dir/$ac_prog; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3514 if test $ac_prog = install &&
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3515 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3516 # AIX install. It has an incompatible calling convention.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3517 :
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3518 else
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3519 ac_cv_path_install="$ac_dir/$ac_prog -c"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3520 break 2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3521 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3522 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3523 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3524 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3525 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3526 done
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3527 IFS="$ac_save_IFS"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3528
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3529 if test "${ac_cv_path_install+set}" = set; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3530 INSTALL="$ac_cv_path_install"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3531 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3532 # As a last resort, use the slow shell script. We don't cache a
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3533 # path for INSTALL within a source directory, because that will
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3534 # break other packages using the cache if that directory is
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3535 # removed, or if the path is relative.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3536 INSTALL="$ac_install_sh"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3537 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3538 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3539 echo "$ac_t""$INSTALL" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3540
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3541 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3542 # It thinks the first close brace ends the variable substitution.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3543 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3544
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
3545 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
3546
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3547 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3548
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3549 for ac_prog in 'bison -y' byacc
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3550 do
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3551 # Extract the first word of "$ac_prog", so it can be a program name with args.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3552 set dummy $ac_prog; ac_word=$2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3553 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
3554 echo "configure:3555: checking for $ac_word" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3555
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3556 if test -n "$YACC"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3557 ac_cv_prog_YACC="$YACC" # Let the user override the test.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3558 else
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
3559 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
3560 ac_dummy="$PATH"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
3561 for ac_dir in $ac_dummy; do
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3562 test -z "$ac_dir" && ac_dir=.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3563 if test -f $ac_dir/$ac_word; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3564 ac_cv_prog_YACC="$ac_prog"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3565 break
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3566 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3567 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3568 IFS="$ac_save_ifs"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3569 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3570 YACC="$ac_cv_prog_YACC"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3571 if test -n "$YACC"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3572 echo "$ac_t""$YACC" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3573 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3574 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3575 fi
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3576
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3577 test -n "$YACC" && break
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3578 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3579 test -n "$YACC" || YACC="yacc"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3580
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3581
911
428608d46017 [xemacs-hg @ 2002-07-09 11:57:41 by michaels]
michaels
parents: 894
diff changeset
3582 for ac_hdr in a.out.h elf.h cygwin/version.h fcntl.h inttypes.h libgen.h locale.h wchar.h mach/mach.h sys/param.h sys/pstat.h sys/time.h sys/timeb.h sys/times.h sys/un.h ulimit.h unistd.h
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
3583 do
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3584 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3585 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
3586 echo "configure:3587: checking for $ac_hdr" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
3587
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
3588 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
3589 #line 3590 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3590 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3591 #include <$ac_hdr>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3592 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3593 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
3594 { (eval echo configure:3595: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
3595 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3596 if test -z "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3597 rm -rf conftest*
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3598 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3599 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3600 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3601 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3602 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3603 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3604 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3605 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3606 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3607 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3608 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3609 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3610 { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3611 Defining $ac_tr_hdr
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3612 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3613 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3614 #define $ac_tr_hdr 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3615 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3616 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3617
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3618 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3619 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3620 fi
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3621 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3622
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3623 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
3624 echo "configure:3625: checking for sys/wait.h that is POSIX.1 compatible" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
3625
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
3626 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
3627 #line 3628 "configure"
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3628 #include "confdefs.h"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3629 #include <sys/types.h>
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3630 #include <sys/wait.h>
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3631 #ifndef WEXITSTATUS
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3632 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3633 #endif
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3634 #ifndef WIFEXITED
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3635 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3636 #endif
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3637 int main() {
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3638 int s;
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3639 wait (&s);
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3640 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3641 ; return 0; }
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3642 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
3643 if { (eval echo configure:3644: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3644 rm -rf conftest*
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3645 ac_cv_header_sys_wait_h=yes
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3646 else
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3647 echo "configure: failed program was:" >&5
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3648 cat conftest.$ac_ext >&5
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3649 rm -rf conftest*
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3650 ac_cv_header_sys_wait_h=no
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3651 fi
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3652 rm -f conftest*
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3653
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3654 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3655 if test $ac_cv_header_sys_wait_h = yes; then
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3656 { test "$extra_verbose" = "yes" && cat << \EOF
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3657 Defining HAVE_SYS_WAIT_H
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3658 EOF
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3659 cat >> confdefs.h <<\EOF
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3660 #define HAVE_SYS_WAIT_H 1
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3661 EOF
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3662 }
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3663
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3664 fi
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3665
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3666 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
3667 echo "configure:3668: checking for ANSI C header files" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
3668
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
3669 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
3670 #line 3671 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3671 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3672 #include <stdlib.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3673 #include <stdarg.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3674 #include <string.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3675 #include <float.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3676 EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3677 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
3678 { (eval echo configure:3679: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
3679 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3680 if test -z "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3681 rm -rf conftest*
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3682 ac_cv_header_stdc=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3683 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3684 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3685 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3686 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3687 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3688 ac_cv_header_stdc=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3689 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3690 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3691
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3692 if test $ac_cv_header_stdc = yes; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3693 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3694 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
3695 #line 3696 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3696 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3697 #include <string.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3698 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3699 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3700 egrep "memchr" >/dev/null 2>&1; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3701 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3702 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3703 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3704 ac_cv_header_stdc=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3705 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3706 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3707
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3708 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3709
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3710 if test $ac_cv_header_stdc = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3711 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3712 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
3713 #line 3714 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3714 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3715 #include <stdlib.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3716 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3717 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3718 egrep "free" >/dev/null 2>&1; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3719 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3720 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3721 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3722 ac_cv_header_stdc=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3723 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3724 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3725
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3726 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3727
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3728 if test $ac_cv_header_stdc = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3729 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3730 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
3731 #line 3732 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3732 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3733 #include <ctype.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3734 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3735 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3736 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3737 int main () { int i; for (i = 0; i < 256; i++)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3738 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3739 exit (0); }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3740
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3741 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
3742 if { (eval echo configure:3743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3743 then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3744 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3745 else
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
3746 conftest_rc="$?"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3747 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3748 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3749 rm -fr conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3750 ac_cv_header_stdc=no
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3751 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3752 rm -fr conftest*
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3753 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3754
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3755 echo "$ac_t""$ac_cv_header_stdc" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3756 if test $ac_cv_header_stdc = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3757 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3758 Defining STDC_HEADERS
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3759 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3760 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3761 #define STDC_HEADERS 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3762 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3763 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3764
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3765 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3766
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3767 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
3768 echo "configure:3769: checking whether time.h and sys/time.h may both be included" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
3769
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
3770 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
3771 #line 3772 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3772 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3773 #include <sys/types.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3774 #include <sys/time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3775 #include <time.h>
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3776 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3777 struct tm *tp;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3778 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3779 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
3780 if { (eval echo configure:3781: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3781 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3782 ac_cv_header_time=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3783 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3784 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3785 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3786 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3787 ac_cv_header_time=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3788 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3789 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3790
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3791 echo "$ac_t""$ac_cv_header_time" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3792 if test $ac_cv_header_time = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3793 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3794 Defining TIME_WITH_SYS_TIME
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3795 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3796 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3797 #define TIME_WITH_SYS_TIME 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3798 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3799 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3800
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3801 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3802
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3803 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
3804 echo "configure:3805: checking for sys_siglist declaration in signal.h or unistd.h" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
3805
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
3806 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
3807 #line 3808 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3808 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3809 #include <sys/types.h>
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3810 #include <signal.h>
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3811 /* NetBSD declares sys_siglist in unistd.h. */
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3812 #ifdef HAVE_UNISTD_H
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3813 #include <unistd.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3814 #endif
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3815 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3816 char *msg = *(sys_siglist + 1);
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3817 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3818 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
3819 if { (eval echo configure:3820: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3820 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3821 ac_cv_decl_sys_siglist=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3822 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3823 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3824 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3825 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3826 ac_cv_decl_sys_siglist=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3827 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3828 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3829
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3830 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3831 if test $ac_cv_decl_sys_siglist = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3832 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3833 Defining SYS_SIGLIST_DECLARED
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3834 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3835 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3836 #define SYS_SIGLIST_DECLARED 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3837 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3838 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3839
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3840 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3841
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3842
460
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3843
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3844 echo $ac_n "checking for utime""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
3845 echo "configure:3846: checking for utime" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
3846 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
3847 #line 3848 "configure"
460
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3848 #include "confdefs.h"
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3849 #include <sys/types.h>
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3850 #include <utime.h>
460
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3851 int main() {
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3852 struct utimbuf x; x.actime = x.modtime = 0; utime ("/", &x);
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3853 ; return 0; }
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3854 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
3855 if { (eval echo configure:3856: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3856 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3857 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3858 { test "$extra_verbose" = "yes" && cat << \EOF
460
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3859 Defining HAVE_UTIME
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3860 EOF
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3861 cat >> confdefs.h <<\EOF
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3862 #define HAVE_UTIME 1
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3863 EOF
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3864 }
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3865
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3866 else
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3867 echo "configure: failed program was:" >&5
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3868 cat conftest.$ac_ext >&5
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3869 rm -rf conftest*
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3870 echo "$ac_t""no" 1>&6
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3871 for ac_func in utimes
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3872 do
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3873 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
3874 echo "configure:3875: checking for $ac_func" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
3875
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
3876 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
3877 #line 3878 "configure"
460
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3878 #include "confdefs.h"
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3879 /* System header to define __stub macros and hopefully few prototypes,
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3880 which can conflict with char $ac_func(); below. */
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3881 #include <assert.h>
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3882 /* Override any gcc2 internal prototype to avoid an error. */
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3883 /* We use char because int might match the return type of a gcc2
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3884 builtin and then its argument prototype would still apply. */
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3885 char $ac_func();
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3886
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3887 int main() {
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3888
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3889 /* The GNU C library defines this for functions which it implements
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3890 to always fail with ENOSYS. Some functions are actually named
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3891 something starting with __ and the normal name is an alias. */
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3892 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3893 choke me
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3894 #else
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3895 $ac_func();
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3896 #endif
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3897
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3898 ; return 0; }
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3899 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
3900 if { (eval echo configure:3901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
460
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3901 rm -rf conftest*
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3902 eval "ac_cv_func_$ac_func=yes"
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3903 else
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3904 echo "configure: failed program was:" >&5
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3905 cat conftest.$ac_ext >&5
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3906 rm -rf conftest*
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3907 eval "ac_cv_func_$ac_func=no"
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3908 fi
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3909 rm -f conftest*
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3910
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3911 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3912 echo "$ac_t""yes" 1>&6
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3913 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3914 { test "$extra_verbose" = "yes" && cat << EOF
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3915 Defining $ac_tr_func
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3916 EOF
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3917 cat >> confdefs.h <<EOF
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3918 #define $ac_tr_func 1
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3919 EOF
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3920 }
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3921
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3922 else
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3923 echo "$ac_t""no" 1>&6
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3924 fi
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3925 done
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3926
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3927 fi
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3928 rm -f conftest*
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3929
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3930
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3931 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
3932 echo "configure:3933: checking return type of signal handlers" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
3933
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
3934 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
3935 #line 3936 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3936 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3937 #include <sys/types.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3938 #include <signal.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3939 #ifdef signal
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3940 #undef signal
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3941 #endif
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3942 #ifdef __cplusplus
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3943 extern "C" void (*signal (int, void (*)(int)))(int);
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3944 #else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3945 void (*signal ()) ();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3946 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3947
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3948 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3949 int i;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3950 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3951 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
3952 if { (eval echo configure:3953: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3953 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3954 ac_cv_type_signal=void
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3955 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3956 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3957 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3958 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3959 ac_cv_type_signal=int
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3960 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3961 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3962
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3963 echo "$ac_t""$ac_cv_type_signal" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3964 { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3965 Defining RETSIGTYPE = $ac_cv_type_signal
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3966 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3967 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3968 #define RETSIGTYPE $ac_cv_type_signal
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3969 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3970 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3971
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3972
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3973 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
3974 echo "configure:3975: checking for size_t" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
3975
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
3976 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
3977 #line 3978 "configure"
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3978 #include "confdefs.h"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3979 #include <sys/types.h>
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3980 #if STDC_HEADERS
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3981 #include <stdlib.h>
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3982 #include <stddef.h>
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3983 #endif
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3984 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3985 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
3986 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3987 rm -rf conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3988 ac_cv_type_size_t=yes
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3989 else
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3990 rm -rf conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3991 ac_cv_type_size_t=no
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3992 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3993 rm -f conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3994
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3995 echo "$ac_t""$ac_cv_type_size_t" 1>&6
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3996 if test $ac_cv_type_size_t = no; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3997 { test "$extra_verbose" = "yes" && cat << \EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3998 Defining size_t = unsigned
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3999 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4000 cat >> confdefs.h <<\EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4001 #define size_t unsigned
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4002 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4003 }
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4004
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4005 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4006
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4007 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
4008 echo "configure:4009: checking for pid_t" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
4009
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
4010 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
4011 #line 4012 "configure"
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4012 #include "confdefs.h"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4013 #include <sys/types.h>
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4014 #if STDC_HEADERS
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4015 #include <stdlib.h>
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4016 #include <stddef.h>
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4017 #endif
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4018 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4019 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
4020 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4021 rm -rf conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4022 ac_cv_type_pid_t=yes
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4023 else
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4024 rm -rf conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4025 ac_cv_type_pid_t=no
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4026 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4027 rm -f conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4028
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4029 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4030 if test $ac_cv_type_pid_t = no; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4031 { test "$extra_verbose" = "yes" && cat << \EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4032 Defining pid_t = int
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4033 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4034 cat >> confdefs.h <<\EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4035 #define pid_t int
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4036 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4037 }
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4038
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4039 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4040
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4041 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
4042 echo "configure:4043: checking for uid_t in sys/types.h" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
4043
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
4044 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
4045 #line 4046 "configure"
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4046 #include "confdefs.h"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4047 #include <sys/types.h>
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4048 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4049 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4050 egrep "uid_t" >/dev/null 2>&1; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4051 rm -rf conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4052 ac_cv_type_uid_t=yes
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4053 else
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4054 rm -rf conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4055 ac_cv_type_uid_t=no
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4056 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4057 rm -f conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4058
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4059
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4060 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4061 if test $ac_cv_type_uid_t = no; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4062 { test "$extra_verbose" = "yes" && cat << \EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4063 Defining uid_t = int
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4064 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4065 cat >> confdefs.h <<\EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4066 #define uid_t int
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4067 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4068 }
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4069
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4070 { test "$extra_verbose" = "yes" && cat << \EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4071 Defining gid_t = int
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4072 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4073 cat >> confdefs.h <<\EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4074 #define gid_t int
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4075 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4076 }
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4077
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4078 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4079
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4080 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
4081 echo "configure:4082: checking for mode_t" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
4082
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
4083 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
4084 #line 4085 "configure"
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4085 #include "confdefs.h"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4086 #include <sys/types.h>
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4087 #if STDC_HEADERS
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4088 #include <stdlib.h>
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4089 #include <stddef.h>
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4090 #endif
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4091 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4092 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
4093 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4094 rm -rf conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4095 ac_cv_type_mode_t=yes
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4096 else
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4097 rm -rf conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4098 ac_cv_type_mode_t=no
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4099 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4100 rm -f conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4101
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4102 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4103 if test $ac_cv_type_mode_t = no; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4104 { test "$extra_verbose" = "yes" && cat << \EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4105 Defining mode_t = int
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4106 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4107 cat >> confdefs.h <<\EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4108 #define mode_t int
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4109 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4110 }
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4111
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4112 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4113
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4114 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
4115 echo "configure:4116: checking for off_t" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
4116
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
4117 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
4118 #line 4119 "configure"
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4119 #include "confdefs.h"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4120 #include <sys/types.h>
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4121 #if STDC_HEADERS
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4122 #include <stdlib.h>
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4123 #include <stddef.h>
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4124 #endif
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4125 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4126 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
4127 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4128 rm -rf conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4129 ac_cv_type_off_t=yes
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4130 else
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4131 rm -rf conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4132 ac_cv_type_off_t=no
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4133 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4134 rm -f conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4135
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4136 echo "$ac_t""$ac_cv_type_off_t" 1>&6
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4137 if test $ac_cv_type_off_t = no; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4138 { test "$extra_verbose" = "yes" && cat << \EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4139 Defining off_t = long
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4140 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4141 cat >> confdefs.h <<\EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4142 #define off_t long
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4143 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4144 }
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4145
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4146 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4147
426
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
4148 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
4149 echo "configure:4150: checking for ssize_t" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
4150
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
4151 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
4152 #line 4153 "configure"
426
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
4153 #include "confdefs.h"
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
4154 #include <sys/types.h>
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
4155 #if STDC_HEADERS
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
4156 #include <stdlib.h>
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
4157 #include <stddef.h>
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
4158 #endif
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
4159 EOF
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
4160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
4161 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
4162 rm -rf conftest*
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
4163 ac_cv_type_ssize_t=yes
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
4164 else
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
4165 rm -rf conftest*
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
4166 ac_cv_type_ssize_t=no
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
4167 fi
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
4168 rm -f conftest*
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
4169
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
4170 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
4171 if test $ac_cv_type_ssize_t = no; then
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
4172 { test "$extra_verbose" = "yes" && cat << \EOF
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
4173 Defining ssize_t = int
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
4174 EOF
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
4175 cat >> confdefs.h <<\EOF
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
4176 #define ssize_t int
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
4177 EOF
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
4178 }
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
4179
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
4180 fi
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
4181
410
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
4182
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4183 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
4184 echo "configure:4185: checking for socklen_t" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
4185 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
4186 #line 4187 "configure"
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4187 #include "confdefs.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4188 #include <sys/socket.h>
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4189 socklen_t x;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4190
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4191 int main() {
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4192
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4193 ; return 0; }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4194 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
4195 if { (eval echo configure:4196: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4196 rm -rf conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4197 echo "$ac_t""yes" 1>&6
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4198 else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4199 echo "configure: failed program was:" >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4200 cat conftest.$ac_ext >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4201 rm -rf conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4202
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4203 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
4204 #line 4205 "configure"
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4205 #include "confdefs.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4206 #include <sys/socket.h>
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4207 int accept (int, struct sockaddr *, size_t *);
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4208
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4209 int main() {
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4210
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4211 ; return 0; }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4212 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
4213 if { (eval echo configure:4214: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4214 rm -rf conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4215
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4216 echo "$ac_t""size_t" 1>&6
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4217 { test "$extra_verbose" = "yes" && cat << \EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4218 Defining socklen_t = size_t
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4219 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4220 cat >> confdefs.h <<\EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4221 #define socklen_t size_t
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4222 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4223 }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4224
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4225 else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4226 echo "configure: failed program was:" >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4227 cat conftest.$ac_ext >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4228 rm -rf conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4229
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4230 echo "$ac_t""int" 1>&6
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4231 { test "$extra_verbose" = "yes" && cat << \EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4232 Defining socklen_t = int
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4233 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4234 cat >> confdefs.h <<\EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4235 #define socklen_t int
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4236 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4237 }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4238
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4239 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4240 rm -f conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4241 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4242 rm -f conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4243
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4244 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
4245 echo "configure:4246: checking for struct timeval" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
4246 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
4247 #line 4248 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4248 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4249 #ifdef TIME_WITH_SYS_TIME
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4250 #include <sys/time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4251 #include <time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4252 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4253 #ifdef HAVE_SYS_TIME_H
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4254 #include <sys/time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4255 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4256 #include <time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4257 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4258 #endif
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4259 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4260 static struct timeval x; x.tv_sec = x.tv_usec;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4261 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4262 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
4263 if { (eval echo configure:4264: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4264 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4265 echo "$ac_t""yes" 1>&6
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4266 HAVE_TIMEVAL=yes
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4267 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4268 Defining HAVE_TIMEVAL
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4269 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4270 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4271 #define HAVE_TIMEVAL 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4272 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4273 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4274
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4275 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4276 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4277 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4278 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4279 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4280 HAVE_TIMEVAL=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4281 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4282 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4283
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4284 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
4285 echo "configure:4286: checking whether struct tm is in sys/time.h or time.h" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
4286
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
4287 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
4288 #line 4289 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4289 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4290 #include <sys/types.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4291 #include <time.h>
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4292 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4293 struct tm *tp; tp->tm_sec;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4294 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4295 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
4296 if { (eval echo configure:4297: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4297 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4298 ac_cv_struct_tm=time.h
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4299 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4300 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4301 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4302 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4303 ac_cv_struct_tm=sys/time.h
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4304 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4305 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4306
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4307 echo "$ac_t""$ac_cv_struct_tm" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4308 if test $ac_cv_struct_tm = sys/time.h; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4309 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4310 Defining TM_IN_SYS_TIME
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4311 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4312 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4313 #define TM_IN_SYS_TIME 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4314 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4315 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4316
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4317 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4318
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4319 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
4320 echo "configure:4321: checking for tm_zone in struct tm" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
4321
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
4322 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
4323 #line 4324 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4324 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4325 #include <sys/types.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4326 #include <$ac_cv_struct_tm>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4327 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4328 struct tm tm; tm.tm_zone;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4329 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4330 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
4331 if { (eval echo configure:4332: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4332 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4333 ac_cv_struct_tm_zone=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4334 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4335 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4336 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4337 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4338 ac_cv_struct_tm_zone=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4339 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4340 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4341
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4342 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4343 if test "$ac_cv_struct_tm_zone" = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4344 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4345 Defining HAVE_TM_ZONE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4346 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4347 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4348 #define HAVE_TM_ZONE 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4349 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4350 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4351
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4352 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4353 echo $ac_n "checking for tzname""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
4354 echo "configure:4355: checking for tzname" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
4355
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
4356 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
4357 #line 4358 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4358 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4359 #include <time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4360 #ifndef tzname /* For SGI. */
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4361 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4362 #endif
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4363 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4364 atoi(*tzname);
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4365 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4366 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
4367 if { (eval echo configure:4368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4368 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4369 ac_cv_var_tzname=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4370 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4371 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4372 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4373 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4374 ac_cv_var_tzname=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4375 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4376 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4377
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4378 echo "$ac_t""$ac_cv_var_tzname" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4379 if test $ac_cv_var_tzname = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4380 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4381 Defining HAVE_TZNAME
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4382 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4383 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4384 #define HAVE_TZNAME 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4385 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4386 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4387
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4388 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4389 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4390
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4391
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4392 echo $ac_n "checking for working const""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
4393 echo "configure:4394: checking for working const" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
4394
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
4395 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
4396 #line 4397 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4397 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4398
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4399 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4400
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4401 /* Ultrix mips cc rejects this. */
744
8ae895c67ce7 [xemacs-hg @ 2002-02-04 15:44:37 by wmperry]
wmperry
parents: 726
diff changeset
4402 typedef int charset[2]; const charset x;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4403 /* SunOS 4.1.1 cc rejects this. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4404 char const *const *ccp;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4405 char **p;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4406 /* NEC SVR4.0.2 mips cc rejects this. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4407 struct point {int x, y;};
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4408 static struct point const zero = {0,0};
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4409 /* AIX XL C 1.02.0.0 rejects this.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4410 It does not let you subtract one const X* pointer from another in an arm
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4411 of an if-expression whose if-part is not a constant expression */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4412 const char *g = "string";
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4413 ccp = &g + (g ? g-g : 0);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4414 /* HPUX 7.0 cc rejects these. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4415 ++ccp;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4416 p = (char**) ccp;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4417 ccp = (char const *const *) p;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4418 { /* SCO 3.2v4 cc rejects this. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4419 char *t;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4420 char const *s = 0 ? (char *) 0 : (char const *) 0;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4421
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4422 *t++ = 0;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4423 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4424 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4425 int x[] = {25, 17};
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4426 const int *foo = &x[0];
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4427 ++foo;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4428 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4429 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4430 typedef const int *iptr;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4431 iptr p = 0;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4432 ++p;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4433 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4434 { /* AIX XL C 1.02.0.0 rejects this saying
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4435 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4436 struct s { int j; const int *ap[3]; };
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4437 struct s *b; b->j = 5;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4438 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4439 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4440 const int foo = 10;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4441 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4442
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4443 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4444 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
4445 if { (eval echo configure:4446: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4446 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4447 ac_cv_c_const=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4448 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4449 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4450 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4451 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4452 ac_cv_c_const=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4453 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4454 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4455
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4456 echo "$ac_t""$ac_cv_c_const" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4457 if test $ac_cv_c_const = no; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4458 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4459 Defining const =
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4460 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4461 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4462 #define const
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4463 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4464 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4465
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4466 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4467
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4468
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4469 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
4470 echo "configure:4471: checking whether ${MAKE-make} sets \${MAKE}" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4471 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4472
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4473 cat > conftestmake <<\EOF
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4474 all:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4475 @echo 'ac_maketemp="${MAKE}"'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4476 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4477 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4478 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4479 if test -n "$ac_maketemp"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4480 eval ac_cv_prog_make_${ac_make}_set=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4481 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4482 eval ac_cv_prog_make_${ac_make}_set=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4483 fi
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4484 rm -f conftestmake
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4485 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4486 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4487 SET_MAKE=
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4488 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4489 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4490 SET_MAKE="MAKE=${MAKE-make}"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4491 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4492
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4493
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4494 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
4495 echo "configure:4496: checking whether byte ordering is bigendian" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4496
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4497 ac_cv_c_bigendian=unknown
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4498 # See if sys/param.h defines the BYTE_ORDER macro.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4499 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
4500 #line 4501 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4501 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4502 #include <sys/types.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4503 #include <sys/param.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4504 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4505
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4506 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4507 bogus endian macros
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4508 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4509 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4510 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
4511 if { (eval echo configure:4512: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4512 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4513 # It does; now see whether it defined to BIG_ENDIAN or not.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4514 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
4515 #line 4516 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4516 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4517 #include <sys/types.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4518 #include <sys/param.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4519 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4520
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4521 #if BYTE_ORDER != BIG_ENDIAN
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4522 not big endian
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4523 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4524 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4525 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
4526 if { (eval echo configure:4527: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4527 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4528 ac_cv_c_bigendian=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4529 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4530 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4531 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4532 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4533 ac_cv_c_bigendian=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4534 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4535 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4536 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4537 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4538 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4539 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4540 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4541 if test $ac_cv_c_bigendian = unknown; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4542 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
4543 #line 4544 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4544 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4545 main () {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4546 /* Are we little or big endian? From Harbison&Steele. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4547 union
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4548 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4549 long l;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4550 char c[sizeof (long)];
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4551 } u;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4552 u.l = 1;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4553 exit (u.c[sizeof (long) - 1] == 1);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4554 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4555 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
4556 if { (eval echo configure:4557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4557 then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4558 ac_cv_c_bigendian=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4559 else
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
4560 conftest_rc="$?"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4561 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4562 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4563 rm -fr conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4564 ac_cv_c_bigendian=yes
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4565 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4566 rm -fr conftest*
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4567 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4568
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4569 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4570 if test $ac_cv_c_bigendian = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4571 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4572 Defining WORDS_BIGENDIAN
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4573 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4574 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4575 #define WORDS_BIGENDIAN 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4576 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4577 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4578
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4579 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4580
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4581
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4582 echo $ac_n "checking size of short""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
4583 echo "configure:4584: checking size of short" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
4584
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
4585 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
4586 #line 4587 "configure"
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4587 #include "confdefs.h"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4588 #include <stdio.h>
1070
989ddde6705d [xemacs-hg @ 2002-10-24 16:19:39 by youngs]
youngs
parents: 997
diff changeset
4589 main()
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4590 {
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4591 FILE *f=fopen("conftestval", "w");
1070
989ddde6705d [xemacs-hg @ 2002-10-24 16:19:39 by youngs]
youngs
parents: 997
diff changeset
4592 if (!f) exit(1);
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4593 fprintf(f, "%d\n", sizeof(short));
1070
989ddde6705d [xemacs-hg @ 2002-10-24 16:19:39 by youngs]
youngs
parents: 997
diff changeset
4594 exit(0);
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4595 }
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4596 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
4597 if { (eval echo configure:4598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4598 then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4599 ac_cv_sizeof_short=`cat conftestval`
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4600 else
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
4601 conftest_rc="$?"
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4602 echo "configure: failed program was:" >&5
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4603 cat conftest.$ac_ext >&5
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4604 rm -fr conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4605 ac_cv_sizeof_short=0
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4606 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4607 rm -fr conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4608 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4609 { test "$extra_verbose" = "yes" && cat << EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4610 Defining SIZEOF_SHORT = $ac_cv_sizeof_short
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4611 EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4612 cat >> confdefs.h <<EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4613 #define SIZEOF_SHORT $ac_cv_sizeof_short
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4614 EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4615 }
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4616
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4617
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4618 if test "$ac_cv_sizeof_short" = 0; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4619 echo ""
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4620 echo "*** PANIC *** Configure tests are not working - compiler is broken."
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4621 echo "*** PANIC *** Please examine config.log for compilation errors."
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4622 exit 1
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4623 fi
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4624 echo $ac_n "checking size of int""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
4625 echo "configure:4626: checking size of int" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
4626
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
4627 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
4628 #line 4629 "configure"
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4629 #include "confdefs.h"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4630 #include <stdio.h>
1070
989ddde6705d [xemacs-hg @ 2002-10-24 16:19:39 by youngs]
youngs
parents: 997
diff changeset
4631 main()
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4632 {
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4633 FILE *f=fopen("conftestval", "w");
1070
989ddde6705d [xemacs-hg @ 2002-10-24 16:19:39 by youngs]
youngs
parents: 997
diff changeset
4634 if (!f) exit(1);
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4635 fprintf(f, "%d\n", sizeof(int));
1070
989ddde6705d [xemacs-hg @ 2002-10-24 16:19:39 by youngs]
youngs
parents: 997
diff changeset
4636 exit(0);
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4637 }
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4638 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
4639 if { (eval echo configure:4640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4640 then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4641 ac_cv_sizeof_int=`cat conftestval`
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4642 else
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
4643 conftest_rc="$?"
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4644 echo "configure: failed program was:" >&5
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4645 cat conftest.$ac_ext >&5
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4646 rm -fr conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4647 ac_cv_sizeof_int=0
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4648 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4649 rm -fr conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4650 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4651 { test "$extra_verbose" = "yes" && cat << EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4652 Defining SIZEOF_INT = $ac_cv_sizeof_int
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4653 EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4654 cat >> confdefs.h <<EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4655 #define SIZEOF_INT $ac_cv_sizeof_int
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4656 EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4657 }
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4658
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4659
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4660 echo $ac_n "checking size of long""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
4661 echo "configure:4662: checking size of long" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
4662
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
4663 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
4664 #line 4665 "configure"
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4665 #include "confdefs.h"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4666 #include <stdio.h>
1070
989ddde6705d [xemacs-hg @ 2002-10-24 16:19:39 by youngs]
youngs
parents: 997
diff changeset
4667 main()
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4668 {
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4669 FILE *f=fopen("conftestval", "w");
1070
989ddde6705d [xemacs-hg @ 2002-10-24 16:19:39 by youngs]
youngs
parents: 997
diff changeset
4670 if (!f) exit(1);
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4671 fprintf(f, "%d\n", sizeof(long));
1070
989ddde6705d [xemacs-hg @ 2002-10-24 16:19:39 by youngs]
youngs
parents: 997
diff changeset
4672 exit(0);
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4673 }
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4674 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
4675 if { (eval echo configure:4676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4676 then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4677 ac_cv_sizeof_long=`cat conftestval`
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4678 else
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
4679 conftest_rc="$?"
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4680 echo "configure: failed program was:" >&5
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4681 cat conftest.$ac_ext >&5
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4682 rm -fr conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4683 ac_cv_sizeof_long=0
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4684 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4685 rm -fr conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4686 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4687 { test "$extra_verbose" = "yes" && cat << EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4688 Defining SIZEOF_LONG = $ac_cv_sizeof_long
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4689 EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4690 cat >> confdefs.h <<EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4691 #define SIZEOF_LONG $ac_cv_sizeof_long
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4692 EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4693 }
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4694
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4695
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4696 echo $ac_n "checking size of long long""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
4697 echo "configure:4698: checking size of long long" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
4698
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
4699 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
4700 #line 4701 "configure"
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4701 #include "confdefs.h"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4702 #include <stdio.h>
1070
989ddde6705d [xemacs-hg @ 2002-10-24 16:19:39 by youngs]
youngs
parents: 997
diff changeset
4703 main()
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4704 {
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4705 FILE *f=fopen("conftestval", "w");
1070
989ddde6705d [xemacs-hg @ 2002-10-24 16:19:39 by youngs]
youngs
parents: 997
diff changeset
4706 if (!f) exit(1);
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4707 fprintf(f, "%d\n", sizeof(long long));
1070
989ddde6705d [xemacs-hg @ 2002-10-24 16:19:39 by youngs]
youngs
parents: 997
diff changeset
4708 exit(0);
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4709 }
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4710 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
4711 if { (eval echo configure:4712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4712 then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4713 ac_cv_sizeof_long_long=`cat conftestval`
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4714 else
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
4715 conftest_rc="$?"
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4716 echo "configure: failed program was:" >&5
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4717 cat conftest.$ac_ext >&5
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4718 rm -fr conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4719 ac_cv_sizeof_long_long=0
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4720 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4721 rm -fr conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4722 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4723 { test "$extra_verbose" = "yes" && cat << EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4724 Defining SIZEOF_LONG_LONG = $ac_cv_sizeof_long_long
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4725 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4726 cat >> confdefs.h <<EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4727 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4728 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4729 }
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4730
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4731
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4732 echo $ac_n "checking size of void *""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
4733 echo "configure:4734: checking size of void *" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
4734
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
4735 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
4736 #line 4737 "configure"
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4737 #include "confdefs.h"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4738 #include <stdio.h>
1070
989ddde6705d [xemacs-hg @ 2002-10-24 16:19:39 by youngs]
youngs
parents: 997
diff changeset
4739 main()
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4740 {
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4741 FILE *f=fopen("conftestval", "w");
1070
989ddde6705d [xemacs-hg @ 2002-10-24 16:19:39 by youngs]
youngs
parents: 997
diff changeset
4742 if (!f) exit(1);
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4743 fprintf(f, "%d\n", sizeof(void *));
1070
989ddde6705d [xemacs-hg @ 2002-10-24 16:19:39 by youngs]
youngs
parents: 997
diff changeset
4744 exit(0);
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4745 }
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4746 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
4747 if { (eval echo configure:4748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4748 then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4749 ac_cv_sizeof_void_p=`cat conftestval`
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4750 else
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
4751 conftest_rc="$?"
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4752 echo "configure: failed program was:" >&5
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4753 cat conftest.$ac_ext >&5
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4754 rm -fr conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4755 ac_cv_sizeof_void_p=0
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4756 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4757 rm -fr conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4758 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4759 { test "$extra_verbose" = "yes" && cat << EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4760 Defining SIZEOF_VOID_P = $ac_cv_sizeof_void_p
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4761 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4762 cat >> confdefs.h <<EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4763 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4764 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4765 }
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4766
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4767
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4768
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4769 echo $ac_n "checking for long file names""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
4770 echo "configure:4771: checking for long file names" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4771
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4772 ac_cv_sys_long_file_names=yes
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4773 # Test for long file names in all the places we know might matter:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4774 # . the current directory, where building will happen
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4775 # $prefix/lib where we will be installing things
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4776 # $exec_prefix/lib likewise
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4777 # eval it to expand exec_prefix.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4778 # $TMPDIR if set, where it might want to write temporary files
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4779 # if $TMPDIR is not set:
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4780 # /tmp where it might want to write temporary files
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4781 # /var/tmp likewise
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4782 # /usr/tmp likewise
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4783 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4784 ac_tmpdirs="$TMPDIR"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4785 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4786 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4787 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4788 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4789 test -d $ac_dir || continue
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4790 test -w $ac_dir || continue # It is less confusing to not echo anything here.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4791 (echo 1 > $ac_dir/conftest9012345) 2>/dev/null
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4792 (echo 2 > $ac_dir/conftest9012346) 2>/dev/null
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4793 val=`cat $ac_dir/conftest9012345 2>/dev/null`
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4794 if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4795 ac_cv_sys_long_file_names=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4796 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4797 break
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4798 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4799 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4800 done
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4801
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4802 echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4803 if test $ac_cv_sys_long_file_names = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4804 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4805 Defining HAVE_LONG_FILE_NAMES
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4806 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4807 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4808 #define HAVE_LONG_FILE_NAMES 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4809 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4810 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4811
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4812 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4813
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4814
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4815 echo $ac_n "checking for sin""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
4816 echo "configure:4817: checking for sin" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
4817
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
4818 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
4819 #line 4820 "configure"
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4820 #include "confdefs.h"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4821 /* System header to define __stub macros and hopefully few prototypes,
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4822 which can conflict with char sin(); below. */
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4823 #include <assert.h>
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4824 /* Override any gcc2 internal prototype to avoid an error. */
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4825 /* We use char because int might match the return type of a gcc2
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4826 builtin and then its argument prototype would still apply. */
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4827 char sin();
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4828
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4829 int main() {
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4830
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4831 /* The GNU C library defines this for functions which it implements
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4832 to always fail with ENOSYS. Some functions are actually named
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4833 something starting with __ and the normal name is an alias. */
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4834 #if defined (__stub_sin) || defined (__stub___sin)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4835 choke me
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4836 #else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4837 sin();
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4838 #endif
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4839
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4840 ; return 0; }
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4841 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
4842 if { (eval echo configure:4843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4843 rm -rf conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4844 eval "ac_cv_func_sin=yes"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4845 else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4846 echo "configure: failed program was:" >&5
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4847 cat conftest.$ac_ext >&5
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4848 rm -rf conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4849 eval "ac_cv_func_sin=no"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4850 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4851 rm -f conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4852
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4853 if eval "test \"`echo '$ac_cv_func_'sin`\" = yes"; then
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4854 echo "$ac_t""yes" 1>&6
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4855 :
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4856 else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4857 echo "$ac_t""no" 1>&6
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4858
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
4859 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
4860 echo "configure:4861: checking for sin in -lm" >&5
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
4861 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4862
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4863 xe_check_libs=" -lm "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4864 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
4865 #line 4866 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4866 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4867 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4868 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4869 builtin and then its argument prototype would still apply. */
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
4870 char sin();
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4871
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4872 int main() {
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
4873 sin()
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4874 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4875 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
4876 if { (eval echo configure:4877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4877 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4878 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4879 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4880 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4881 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4882 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4883 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4884 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4885 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4886 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4887
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4888 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4889 echo "$ac_t""yes" 1>&6
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4890 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/^a-zA-Z0-9_/_/g' \
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4891 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4892 { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4893 Defining $ac_tr_lib
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4894 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4895 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4896 #define $ac_tr_lib 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4897 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4898 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4899
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4900 LIBS="-lm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lm\" to \$LIBS"; fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4901
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4902 else
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4903 echo "$ac_t""no" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4904 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4905
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4906
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4907 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4908
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4909
1123
37bdd24225ef [xemacs-hg @ 2002-11-27 07:15:02 by ben]
ben
parents: 1111
diff changeset
4910 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
4911 #line 4912 "configure"
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4912 #include "confdefs.h"
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4913 #include <math.h>
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4914 int main() {
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4915 return atanh(1.0) + asinh(1.0) + acosh(1.0);
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4916 ; return 0; }
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4917 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
4918 if { (eval echo configure:4919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4919 rm -rf conftest*
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4920 { test "$extra_verbose" = "yes" && cat << \EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4921 Defining HAVE_INVERSE_HYPERBOLIC
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4922 EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4923 cat >> confdefs.h <<\EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4924 #define HAVE_INVERSE_HYPERBOLIC 1
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4925 EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4926 }
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4927
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4928 else
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4929 echo "configure: failed program was:" >&5
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4930 cat conftest.$ac_ext >&5
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4931 fi
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4932 rm -f conftest*
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4933
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
4934 for ac_func in mkstemp
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
4935 do
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
4936 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
4937 echo "configure:4938: checking for $ac_func" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
4938
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
4939 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
4940 #line 4941 "configure"
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
4941 #include "confdefs.h"
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
4942 /* System header to define __stub macros and hopefully few prototypes,
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
4943 which can conflict with char $ac_func(); below. */
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
4944 #include <assert.h>
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
4945 /* Override any gcc2 internal prototype to avoid an error. */
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
4946 /* We use char because int might match the return type of a gcc2
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
4947 builtin and then its argument prototype would still apply. */
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
4948 char $ac_func();
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
4949
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
4950 int main() {
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
4951
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
4952 /* The GNU C library defines this for functions which it implements
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
4953 to always fail with ENOSYS. Some functions are actually named
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
4954 something starting with __ and the normal name is an alias. */
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
4955 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
4956 choke me
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
4957 #else
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
4958 $ac_func();
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
4959 #endif
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
4960
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
4961 ; return 0; }
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
4962 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
4963 if { (eval echo configure:4964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
4964 rm -rf conftest*
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
4965 eval "ac_cv_func_$ac_func=yes"
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
4966 else
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
4967 echo "configure: failed program was:" >&5
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
4968 cat conftest.$ac_ext >&5
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
4969 rm -rf conftest*
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
4970 eval "ac_cv_func_$ac_func=no"
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
4971 fi
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
4972 rm -f conftest*
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
4973
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
4974 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
4975 echo "$ac_t""yes" 1>&6
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
4976 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
4977 { test "$extra_verbose" = "yes" && cat << EOF
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
4978 Defining $ac_tr_func
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
4979 EOF
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
4980 cat >> confdefs.h <<EOF
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
4981 #define $ac_tr_func 1
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
4982 EOF
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
4983 }
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
4984
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
4985 else
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
4986 echo "$ac_t""no" 1>&6
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
4987 fi
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
4988 done
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
4989
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
4990
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
4991 echo "checking type of mail spool file locking" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
4992 echo "configure:4993: checking type of mail spool file locking" >&5
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
4993 for ac_func in lockf flock
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
4994 do
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
4995 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
4996 echo "configure:4997: checking for $ac_func" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
4997
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
4998 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
4999 #line 5000 "configure"
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5000 #include "confdefs.h"
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5001 /* System header to define __stub macros and hopefully few prototypes,
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5002 which can conflict with char $ac_func(); below. */
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5003 #include <assert.h>
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5004 /* Override any gcc2 internal prototype to avoid an error. */
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5005 /* We use char because int might match the return type of a gcc2
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5006 builtin and then its argument prototype would still apply. */
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5007 char $ac_func();
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5008
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5009 int main() {
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5010
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5011 /* The GNU C library defines this for functions which it implements
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5012 to always fail with ENOSYS. Some functions are actually named
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5013 something starting with __ and the normal name is an alias. */
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5014 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5015 choke me
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5016 #else
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5017 $ac_func();
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5018 #endif
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5019
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5020 ; return 0; }
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5021 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
5022 if { (eval echo configure:5023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5023 rm -rf conftest*
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5024 eval "ac_cv_func_$ac_func=yes"
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5025 else
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5026 echo "configure: failed program was:" >&5
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5027 cat conftest.$ac_ext >&5
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5028 rm -rf conftest*
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5029 eval "ac_cv_func_$ac_func=no"
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5030 fi
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5031 rm -f conftest*
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5032
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5033 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5034 echo "$ac_t""yes" 1>&6
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5035 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5036 { test "$extra_verbose" = "yes" && cat << EOF
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5037 Defining $ac_tr_func
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5038 EOF
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5039 cat >> confdefs.h <<EOF
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5040 #define $ac_tr_func 1
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5041 EOF
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5042 }
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5043
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5044 else
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5045 echo "$ac_t""no" 1>&6
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5046 fi
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5047 done
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5048
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5049 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5050 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5051 test -z "$mail_locking" -a "$mail_use_locking" = "yes" && mail_locking=locking
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
5052 if test -z "$mail_locking"; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
5053 case "$opsys" in cygwin* | mingw*)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
5054 mail_locking=pop ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
5055 esac
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
5056 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
5057
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5058 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5059 Defining MAIL_LOCK_LOCKF
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5060 EOF
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5061 cat >> confdefs.h <<\EOF
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5062 #define MAIL_LOCK_LOCKF 1
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5063 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5064 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5065
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5066 elif test "$mail_locking" = "flock"; then { test "$extra_verbose" = "yes" && cat << \EOF
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5067 Defining MAIL_LOCK_FLOCK
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5068 EOF
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5069 cat >> confdefs.h <<\EOF
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5070 #define MAIL_LOCK_FLOCK 1
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5071 EOF
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5072 }
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5073
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5074 elif test "$mail_locking" = "locking"; then { test "$extra_verbose" = "yes" && cat << \EOF
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5075 Defining MAIL_LOCK_LOCKING
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5076 EOF
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5077 cat >> confdefs.h <<\EOF
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5078 #define MAIL_LOCK_LOCKING 1
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5079 EOF
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5080 }
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5081
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
5082 elif test "$mail_locking" = "pop"; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
5083 with_pop=yes
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
5084 mail_locking=
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5085 else mail_locking="dot-locking"; { test "$extra_verbose" = "yes" && cat << \EOF
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5086 Defining MAIL_LOCK_DOT
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5087 EOF
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5088 cat >> confdefs.h <<\EOF
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5089 #define MAIL_LOCK_DOT 1
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5090 EOF
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5091 }
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5092
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5093 fi
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5094 test "$mail_locking" = "lockf" -a "$ac_cv_func_lockf" != "yes" && \
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5095 { echo "Error:" "lockf mail locking requested but not available." >&2; exit 1; }
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5096 test "$mail_locking" = "flock" -a "$ac_cv_func_flock" != "yes" && \
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5097 { echo "Error:" "flock mail locking requested but not available." >&2; exit 1; }
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5098 test "$mail_locking" = "locking" -a "$ac_cv_func_locking" != "yes" && \
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5099 { echo "Error:" "locking mail locking requested but not available." >&2; exit 1; }
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5100
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
5101 case "$opsys" in decosf*)
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
5102
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5103 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
5104 echo "configure:5105: checking for cma_open in -lpthreads" >&5
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5105 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5106
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5107 xe_check_libs=" -lpthreads "
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5108 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
5109 #line 5110 "configure"
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5110 #include "confdefs.h"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5111 /* Override any gcc2 internal prototype to avoid an error. */
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5112 /* We use char because int might match the return type of a gcc2
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5113 builtin and then its argument prototype would still apply. */
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5114 char cma_open();
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5115
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5116 int main() {
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5117 cma_open()
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5118 ; return 0; }
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5119 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
5120 if { (eval echo configure:5121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5121 rm -rf conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5122 eval "ac_cv_lib_$ac_lib_var=yes"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5123 else
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5124 echo "configure: failed program was:" >&5
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5125 cat conftest.$ac_ext >&5
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5126 rm -rf conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5127 eval "ac_cv_lib_$ac_lib_var=no"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5128 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5129 rm -f conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5130 xe_check_libs=""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5131
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5132 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5133 echo "$ac_t""yes" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5134 ac_tr_lib=HAVE_LIB`echo pthreads | sed -e 's/[^a-zA-Z0-9_]/_/g' \
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5135 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5136 { test "$extra_verbose" = "yes" && cat << EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5137 Defining $ac_tr_lib
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5138 EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5139 cat >> confdefs.h <<EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5140 #define $ac_tr_lib 1
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5141 EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5142 }
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5143
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5144 LIBS="-lpthreads $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpthreads\" to \$LIBS"; fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5145
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5146 else
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5147 echo "$ac_t""no" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5148 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5149
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5150
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
5151 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
5152 c_switch_site="$c_switch_site -threads" ;;
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
5153 esac
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5154
708
512e4a478e9d [xemacs-hg @ 2001-12-20 06:08:09 by andyp]
andyp
parents: 670
diff changeset
5155
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5156 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
5157 echo "configure:5158: checking whether the -xildoff compiler flag is required" >&5
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5158 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5159 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ;
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5160 then echo "$ac_t""no" 1>&6;
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5161 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
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5162 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5163 else echo "$ac_t""no" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5164 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5165
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
5166 if test "$opsys" = "sol2"; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
5167 if test "$os_release" -ge 56; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
5168 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
5169 echo "configure:5170: checking for \"-z ignore\" linker flag" >&5
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
5170 case "`ld -h 2>&1`" in
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
5171 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
5172 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
5173 *) echo "$ac_t""no" 1>&6 ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
5174 esac
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
5175 fi
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
5176 fi
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
5177
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5178
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5179 echo "checking "for specified window system"" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
5180 echo "configure:5181: checking "for specified window system"" >&5
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5181
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5182
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5183 GNOME_CONFIG=no
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5184 GTK_CONFIG=no
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5185
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5186 if test "$with_gnome" != "no"; then
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5187 echo $ac_n "checking for GNOME configuration script""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
5188 echo "configure:5189: checking for GNOME configuration script" >&5
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5189 for possible in gnome-config
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5190 do
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5191 possible_version=`${possible} --version 2> /dev/null`
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5192 if test "x${possible_version}" != "x"; then
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5193 GNOME_CONFIG="${possible}"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5194 with_gnome=yes
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5195 with_gtk=yes
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5196 break
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5197 fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5198 done
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5199 echo "$ac_t""${GNOME_CONFIG}" 1>&6
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5200 fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5201
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5202 if test "${GNOME_CONFIG}" != "no"; then
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5203 GNOME_LIBS=`${GNOME_CONFIG} --libs gnomeui`
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5204 GNOME_CFLAGS=`${GNOME_CONFIG} --cflags gnomeui`
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5205 { test "$extra_verbose" = "yes" && cat << \EOF
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5206 Defining HAVE_GNOME
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5207 EOF
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5208 cat >> confdefs.h <<\EOF
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5209 #define HAVE_GNOME 1
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5210 EOF
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5211 }
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5212
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5213 libs_gtk="$libs_gtk ${GNOME_LIBS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GNOME_LIBS}\" to \$libs_gtk"; fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5214 c_switch_gtk="$c_switch_gtk ${GNOME_CFLAGS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GNOME_CFLAGS}\" to \$c_switch_gtk"; fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5215 fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5216
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5217 if test "$with_gtk" != "no";then
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5218 echo $ac_n "checking for GTK configuration script""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
5219 echo "configure:5220: checking for GTK configuration script" >&5
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5220 for possible in gtk12-config gtk14-config gtk-config
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5221 do
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5222 possible_version=`${possible} --version 2> /dev/null`
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5223 if test "x${possible_version}" != "x"; then
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5224 GTK_CONFIG="${possible}"
527
7b35ad872326 [xemacs-hg @ 2001-05-10 08:09:13 by yoshiki]
yoshiki
parents: 505
diff changeset
5225 case "${possible_version}" in
7b35ad872326 [xemacs-hg @ 2001-05-10 08:09:13 by yoshiki]
yoshiki
parents: 505
diff changeset
5226 1.0.*) echo "configure: warning: GTK 1.2 is required, please upgrade your version of GTK." 1>&2; with_gtk=no;;
7b35ad872326 [xemacs-hg @ 2001-05-10 08:09:13 by yoshiki]
yoshiki
parents: 505
diff changeset
5227 1.3.*) echo "configure: warning: GTK 1.3 is not supported right now" 1>&2; with_gtk=no;;
7b35ad872326 [xemacs-hg @ 2001-05-10 08:09:13 by yoshiki]
yoshiki
parents: 505
diff changeset
5228 1.2.*)
7b35ad872326 [xemacs-hg @ 2001-05-10 08:09:13 by yoshiki]
yoshiki
parents: 505
diff changeset
5229 with_gtk=yes
7b35ad872326 [xemacs-hg @ 2001-05-10 08:09:13 by yoshiki]
yoshiki
parents: 505
diff changeset
5230 break
7b35ad872326 [xemacs-hg @ 2001-05-10 08:09:13 by yoshiki]
yoshiki
parents: 505
diff changeset
5231 ;;
7b35ad872326 [xemacs-hg @ 2001-05-10 08:09:13 by yoshiki]
yoshiki
parents: 505
diff changeset
5232 *) echo "configure: warning: Found unsupported version of GTK: $possible_version" 1>&2;;
7b35ad872326 [xemacs-hg @ 2001-05-10 08:09:13 by yoshiki]
yoshiki
parents: 505
diff changeset
5233 esac
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5234 fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5235 done
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5236 echo "$ac_t""${GTK_CONFIG}" 1>&6
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5237 fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5238
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5239 if test "${GTK_CONFIG}" != "no"; then
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5240 echo $ac_n "checking gtk version""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
5241 echo "configure:5242: checking gtk version" >&5
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5242 GTK_VERSION=`${GTK_CONFIG} --version`
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5243 echo "$ac_t""${GTK_VERSION}" 1>&6
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5244
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5245 echo $ac_n "checking gtk libs""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
5246 echo "configure:5247: checking gtk libs" >&5
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5247 GTK_LIBS=`${GTK_CONFIG} --libs`
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5248 libs_gtk="$libs_gtk ${GTK_LIBS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GTK_LIBS}\" to \$libs_gtk"; fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5249 echo "$ac_t""${GTK_LIBS}" 1>&6
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5250
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5251 echo $ac_n "checking gtk cflags""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
5252 echo "configure:5253: checking gtk cflags" >&5
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5253 GTK_CFLAGS=`${GTK_CONFIG} --cflags`
720
128e95ac472f [xemacs-hg @ 2001-12-30 04:12:04 by wmperry]
wmperry
parents: 708
diff changeset
5254 if test "$GCC" = "yes"; then
128e95ac472f [xemacs-hg @ 2001-12-30 04:12:04 by wmperry]
wmperry
parents: 708
diff changeset
5255 GTK_CFLAGS="${GTK_CFLAGS} -Wno-shadow"
128e95ac472f [xemacs-hg @ 2001-12-30 04:12:04 by wmperry]
wmperry
parents: 708
diff changeset
5256 fi
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5257 c_switch_gtk="$c_switch_gtk ${GTK_CFLAGS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GTK_CFLAGS}\" to \$c_switch_gtk"; fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5258 echo "$ac_t""${GTK_CFLAGS}" 1>&6
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5259
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5260
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5261 echo $ac_n "checking for main in -lgdk_imlib""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
5262 echo "configure:5263: checking for main in -lgdk_imlib" >&5
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5263 ac_lib_var=`echo gdk_imlib'_'main | sed 'y%./+-%__p_%'`
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5264
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5265 xe_check_libs=" -lgdk_imlib "
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5266 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
5267 #line 5268 "configure"
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5268 #include "confdefs.h"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5269
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5270 int main() {
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5271 main()
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5272 ; return 0; }
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5273 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
5274 if { (eval echo configure:5275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5275 rm -rf conftest*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5276 eval "ac_cv_lib_$ac_lib_var=yes"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5277 else
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5278 echo "configure: failed program was:" >&5
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5279 cat conftest.$ac_ext >&5
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5280 rm -rf conftest*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5281 eval "ac_cv_lib_$ac_lib_var=no"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5282 fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5283 rm -f conftest*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5284 xe_check_libs=""
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5285
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5286 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5287 echo "$ac_t""yes" 1>&6
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5288 libs_gtk="-lgdk_imlib $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgdk_imlib\" to \$libs_gtk"; fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5289 else
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5290 echo "$ac_t""no" 1>&6
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5291 fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5292
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5293
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5294
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5295 echo $ac_n "checking for Imlib_init in -lImlib""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
5296 echo "configure:5297: checking for Imlib_init in -lImlib" >&5
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5297 ac_lib_var=`echo Imlib'_'Imlib_init | sed 'y%./+-%__p_%'`
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5298
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5299 xe_check_libs=" -lImlib "
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5300 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
5301 #line 5302 "configure"
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5302 #include "confdefs.h"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5303 /* Override any gcc2 internal prototype to avoid an error. */
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5304 /* We use char because int might match the return type of a gcc2
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5305 builtin and then its argument prototype would still apply. */
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5306 char Imlib_init();
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5307
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5308 int main() {
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5309 Imlib_init()
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5310 ; return 0; }
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5311 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
5312 if { (eval echo configure:5313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5313 rm -rf conftest*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5314 eval "ac_cv_lib_$ac_lib_var=yes"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5315 else
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5316 echo "configure: failed program was:" >&5
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5317 cat conftest.$ac_ext >&5
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5318 rm -rf conftest*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5319 eval "ac_cv_lib_$ac_lib_var=no"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5320 fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5321 rm -f conftest*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5322 xe_check_libs=""
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5323
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5324 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5325 echo "$ac_t""yes" 1>&6
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5326 libs_gtk="$libs_gtk -lImlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lImlib\" to \$libs_gtk"; fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5327 else
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5328 echo "$ac_t""no" 1>&6
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5329 fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5330
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5331
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5332 for ac_func in gdk_imlib_init
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5333 do
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5334 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
5335 echo "configure:5336: checking for $ac_func" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
5336
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
5337 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
5338 #line 5339 "configure"
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5339 #include "confdefs.h"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5340 /* System header to define __stub macros and hopefully few prototypes,
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5341 which can conflict with char $ac_func(); below. */
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5342 #include <assert.h>
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5343 /* Override any gcc2 internal prototype to avoid an error. */
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5344 /* We use char because int might match the return type of a gcc2
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5345 builtin and then its argument prototype would still apply. */
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5346 char $ac_func();
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5347
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5348 int main() {
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5349
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5350 /* The GNU C library defines this for functions which it implements
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5351 to always fail with ENOSYS. Some functions are actually named
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5352 something starting with __ and the normal name is an alias. */
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5353 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5354 choke me
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5355 #else
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5356 $ac_func();
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5357 #endif
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5358
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5359 ; return 0; }
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5360 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
5361 if { (eval echo configure:5362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5362 rm -rf conftest*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5363 eval "ac_cv_func_$ac_func=yes"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5364 else
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5365 echo "configure: failed program was:" >&5
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5366 cat conftest.$ac_ext >&5
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5367 rm -rf conftest*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5368 eval "ac_cv_func_$ac_func=no"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5369 fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5370 rm -f conftest*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5371
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5372 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5373 echo "$ac_t""yes" 1>&6
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5374 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5375 { test "$extra_verbose" = "yes" && cat << EOF
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5376 Defining $ac_tr_func
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5377 EOF
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5378 cat >> confdefs.h <<EOF
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5379 #define $ac_tr_func 1
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5380 EOF
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5381 }
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5382
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5383 else
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5384 echo "$ac_t""no" 1>&6
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5385 fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5386 done
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5387
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5388
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5389 { test "$extra_verbose" = "yes" && cat << \EOF
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5390 Defining HAVE_XPM
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5391 EOF
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5392 cat >> confdefs.h <<\EOF
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5393 #define HAVE_XPM 1
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5394 EOF
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5395 }
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5396
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5397 { test "$extra_verbose" = "yes" && cat << \EOF
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5398 Defining HAVE_GTK
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5399 EOF
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5400 cat >> confdefs.h <<\EOF
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5401 #define HAVE_GTK 1
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5402 EOF
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5403 }
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5404
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5405
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5406
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5407 window_system=gtk
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5408 with_gtk=yes
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5409 with_x11=no
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5410
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5411 test "${with_scrollbars}" != "no" && with_scrollbars=gtk
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5412 test "${with_toolbars}" != no && with_toolbars=gtk
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5413 test "${with_menubars}" != "no" && with_menubars=gtk
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5414 test "${with_dialogs}" != "no" && with_dialogs=gtk
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5415 test "${with_widgets}" != "no" && with_widgets=gtk
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5416
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5417 OLD_CFLAGS="${CFLAGS}"
724
76d5a3dd827a [xemacs-hg @ 2002-01-05 07:33:11 by stephent]
stephent
parents: 720
diff changeset
5418 OLD_CPPFLAGS="${CPPFLAGS}"
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5419 OLD_LDFLAGS="${LDFLAGS}"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5420 CFLAGS="${GTK_CFLAGS} ${CFLAGS}"
724
76d5a3dd827a [xemacs-hg @ 2002-01-05 07:33:11 by stephent]
stephent
parents: 720
diff changeset
5421 CPPFLAGS="${GTK_CFLAGS} ${CFLAGS}"
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5422 LDFLAGS="${LDFLAGS} ${GTK_LIBS}"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5423 for ac_hdr in glade/glade.h glade.h
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5424 do
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5425 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5426 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
5427 echo "configure:5428: checking for $ac_hdr" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
5428
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
5429 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
5430 #line 5431 "configure"
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5431 #include "confdefs.h"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5432 #include <$ac_hdr>
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5433 EOF
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5434 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
5435 { (eval echo configure:5436: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5436 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5437 if test -z "$ac_err"; then
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5438 rm -rf conftest*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5439 eval "ac_cv_header_$ac_safe=yes"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5440 else
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5441 echo "$ac_err" >&5
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5442 echo "configure: failed program was:" >&5
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5443 cat conftest.$ac_ext >&5
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5444 rm -rf conftest*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5445 eval "ac_cv_header_$ac_safe=no"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5446 fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5447 rm -f conftest*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5448 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5449 echo "$ac_t""yes" 1>&6
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5450 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5451 { test "$extra_verbose" = "yes" && cat << EOF
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5452 Defining $ac_tr_hdr
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5453 EOF
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5454 cat >> confdefs.h <<EOF
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5455 #define $ac_tr_hdr 1
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5456 EOF
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5457 }
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5458
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5459 else
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5460 echo "$ac_t""no" 1>&6
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5461 fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5462 done
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5463
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5464
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5465 echo $ac_n "checking for main in -lxml""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
5466 echo "configure:5467: checking for main in -lxml" >&5
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5467 ac_lib_var=`echo xml'_'main | sed 'y%./+-%__p_%'`
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5468
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5469 xe_check_libs=" -lxml "
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5470 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
5471 #line 5472 "configure"
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5472 #include "confdefs.h"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5473
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5474 int main() {
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5475 main()
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5476 ; return 0; }
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5477 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
5478 if { (eval echo configure:5479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5479 rm -rf conftest*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5480 eval "ac_cv_lib_$ac_lib_var=yes"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5481 else
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5482 echo "configure: failed program was:" >&5
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5483 cat conftest.$ac_ext >&5
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5484 rm -rf conftest*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5485 eval "ac_cv_lib_$ac_lib_var=no"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5486 fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5487 rm -f conftest*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5488 xe_check_libs=""
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5489
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5490 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5491 echo "$ac_t""yes" 1>&6
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5492 libs_gtk="-lxml $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lxml\" to \$libs_gtk"; fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5493 else
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5494 echo "$ac_t""no" 1>&6
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5495 fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5496
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5497
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5498
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5499 echo $ac_n "checking for main in -lglade""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
5500 echo "configure:5501: checking for main in -lglade" >&5
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5501 ac_lib_var=`echo glade'_'main | sed 'y%./+-%__p_%'`
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5502
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5503 xe_check_libs=" -lglade "
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5504 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
5505 #line 5506 "configure"
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5506 #include "confdefs.h"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5507
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5508 int main() {
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5509 main()
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5510 ; return 0; }
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5511 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
5512 if { (eval echo configure:5513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5513 rm -rf conftest*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5514 eval "ac_cv_lib_$ac_lib_var=yes"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5515 else
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5516 echo "configure: failed program was:" >&5
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5517 cat conftest.$ac_ext >&5
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5518 rm -rf conftest*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5519 eval "ac_cv_lib_$ac_lib_var=no"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5520 fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5521 rm -f conftest*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5522 xe_check_libs=""
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5523
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5524 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5525 echo "$ac_t""yes" 1>&6
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5526 libs_gtk="-lglade $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lglade\" to \$libs_gtk"; fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5527 else
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5528 echo "$ac_t""no" 1>&6
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5529 fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5530
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5531
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5532
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5533 echo $ac_n "checking for main in -lglade-gnome""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
5534 echo "configure:5535: checking for main in -lglade-gnome" >&5
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5535 ac_lib_var=`echo glade-gnome'_'main | sed 'y%./+-%__p_%'`
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5536
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5537 xe_check_libs=" -lglade-gnome "
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5538 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
5539 #line 5540 "configure"
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5540 #include "confdefs.h"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5541
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5542 int main() {
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5543 main()
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5544 ; return 0; }
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5545 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
5546 if { (eval echo configure:5547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5547 rm -rf conftest*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5548 eval "ac_cv_lib_$ac_lib_var=yes"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5549 else
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5550 echo "configure: failed program was:" >&5
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5551 cat conftest.$ac_ext >&5
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5552 rm -rf conftest*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5553 eval "ac_cv_lib_$ac_lib_var=no"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5554 fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5555 rm -f conftest*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5556 xe_check_libs=""
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5557
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5558 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5559 echo "$ac_t""yes" 1>&6
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5560 libs_gtk="-lglade-gnome $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lglade-gnome\" to \$libs_gtk"; fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5561 else
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5562 echo "$ac_t""no" 1>&6
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5563 fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5564
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5565
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5566 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
5567 #line 5568 "configure"
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5568 #include "confdefs.h"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5569 #include <glade/glade-xml.h>
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5570 EOF
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5571 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5572 egrep "char \*txtdomain;" >/dev/null 2>&1; then
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5573 rm -rf conftest*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5574 echo "$ac_t""yes" 1>&6
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5575 { test "$extra_verbose" = "yes" && cat << \EOF
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5576 Defining LIBGLADE_XML_TXTDOMAIN = 1
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5577 EOF
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5578 cat >> confdefs.h <<\EOF
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5579 #define LIBGLADE_XML_TXTDOMAIN 1
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5580 EOF
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5581 }
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5582
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5583 else
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5584 rm -rf conftest*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5585 echo "$ac_t""no" 1>&6
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5586 fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5587 rm -f conftest*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5588
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5589 CFLAGS="${OLD_CFLAGS}"
724
76d5a3dd827a [xemacs-hg @ 2002-01-05 07:33:11 by stephent]
stephent
parents: 720
diff changeset
5590 CPPFLAGS="${OLD_CPPFLAGS}"
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5591 LDFLAGS="${OLD_LDFLAGS}"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5592 fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5593
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5594
187
b405438285a2 Import from CVS: tag r20-3b20
cvs
parents: 185
diff changeset
5595 if test "$with_x11" != "no"; then
b405438285a2 Import from CVS: tag r20-3b20
cvs
parents: 185
diff changeset
5596 test "$x_includes $x_libraries" != "NONE NONE" && \
b405438285a2 Import from CVS: tag r20-3b20
cvs
parents: 185
diff changeset
5597 window_system=x11 with_x11=yes
b405438285a2 Import from CVS: tag r20-3b20
cvs
parents: 185
diff changeset
5598
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
5599
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
5600 if test "$x_includes $x_libraries" = "NONE NONE" \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
5601 -a -n "$OPENWINHOME" \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
5602 -a "$OPENWINHOME" != "/usr/openwin" \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
5603 -a -d "$OPENWINHOME"; then
187
b405438285a2 Import from CVS: tag r20-3b20
cvs
parents: 185
diff changeset
5604 test -d "$OPENWINHOME/lib" && x_libraries="$OPENWINHOME/lib"
b405438285a2 Import from CVS: tag r20-3b20
cvs
parents: 185
diff changeset
5605 test -d "$OPENWINHOME/include" && x_includes="$OPENWINHOME/include"
b405438285a2 Import from CVS: tag r20-3b20
cvs
parents: 185
diff changeset
5606 test -d "$OPENWINHOME/share/include" && x_includes="$OPENWINHOME/share/include"
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
5607 fi
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
5608
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
5609 if test "$x_includes" = "NONE"; then
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
5610 for dir in "/usr/X11" "/usr/X11R6"; do
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
5611 if test -d "$dir/include/X11"; then x_includes="$dir/include"; break; fi
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
5612 done
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
5613 fi
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
5614
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
5615 if test "$x_libraries" = "NONE"; then
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
5616 for dir in "/usr/X11/lib" "/usr/X11R6/lib" "/usr/lib/X11R6"; do
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
5617 if test -r "$dir/libX11.a"; then x_libraries="$dir"; break; fi
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
5618 done
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5619 fi
187
b405438285a2 Import from CVS: tag r20-3b20
cvs
parents: 185
diff changeset
5620
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5621 # If we find X, set shell vars x_includes and x_libraries to the
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5622 # paths, otherwise set no_x=yes.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5623 # Uses ac_ vars as temps to allow command line to override cache and checks.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5624 # --without-x overrides everything else, but does not touch the cache.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5625 echo $ac_n "checking for X""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
5626 echo "configure:5627: checking for X" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5627
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5628 # Check whether --with-x or --without-x was given.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5629 if test "${with_x+set}" = set; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5630 withval="$with_x"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5631 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5632 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5633
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5634 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5635 if test "x$with_x" = xno; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5636 # The user explicitly disabled X.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5637 have_x=disabled
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5638 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5639 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5640 # Both variables are already set.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5641 have_x=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5642 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5643
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5644 # One or both of the vars are not set, and there is no cached value.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5645 ac_x_includes=NO ac_x_libraries=NO
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5646 rm -fr conftestdir
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5647 if mkdir conftestdir; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5648 cd conftestdir
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5649 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5650 cat > Imakefile <<'EOF'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5651 acfindx:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5652 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5653 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5654 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5655 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5656 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5657 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5658 for ac_extension in a so sl; do
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5659 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5660 test -f $ac_im_libdir/libX11.$ac_extension; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5661 ac_im_usrlibdir=$ac_im_libdir; break
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5662 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5663 done
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5664 # Screen out bogus values from the imake configuration. They are
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5665 # bogus both because they are the default anyway, and because
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5666 # using them would break gcc on systems where it needs fixed includes.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5667 case "$ac_im_incroot" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5668 /usr/include) ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5669 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5670 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5671 case "$ac_im_usrlibdir" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5672 /usr/lib | /lib) ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5673 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5674 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5675 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5676 cd ..
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5677 rm -fr conftestdir
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5678 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5679
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5680 if test "$ac_x_includes" = NO; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5681 # Guess where to find include files, by looking for this one X11 .h file.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5682 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5683
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5684 # First, try using that file with no special directory specified.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5685 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
5686 #line 5687 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5687 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5688 #include <$x_direct_test_include>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5689 EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5690 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
5691 { (eval echo configure:5692: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
5692 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5693 if test -z "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5694 rm -rf conftest*
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5695 # We can compile using X headers with no special include directory.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5696 ac_x_includes=
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5697 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5698 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5699 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5700 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5701 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5702 # Look for the header file in a standard set of common directories.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5703 # Check X11 before X11Rn because it is often a symlink to the current release.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5704 for ac_dir in \
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5705 /usr/X11/include \
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5706 /usr/X11R6/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5707 /usr/X11R5/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5708 /usr/X11R4/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5709 \
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5710 /usr/include/X11 \
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5711 /usr/include/X11R6 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5712 /usr/include/X11R5 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5713 /usr/include/X11R4 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5714 \
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5715 /usr/local/X11/include \
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5716 /usr/local/X11R6/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5717 /usr/local/X11R5/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5718 /usr/local/X11R4/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5719 \
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5720 /usr/local/include/X11 \
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5721 /usr/local/include/X11R6 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5722 /usr/local/include/X11R5 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5723 /usr/local/include/X11R4 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5724 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5725 /usr/X386/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5726 /usr/x386/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5727 /usr/XFree86/include/X11 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5728 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5729 /usr/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5730 /usr/local/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5731 /usr/unsupported/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5732 /usr/athena/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5733 /usr/local/x11r5/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5734 /usr/lpp/Xamples/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5735 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5736 /usr/openwin/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5737 /usr/openwin/share/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5738 ; \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5739 do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5740 if test -r "$ac_dir/$x_direct_test_include"; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5741 ac_x_includes=$ac_dir
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5742 break
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5743 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5744 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5745 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5746 rm -f conftest*
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5747 fi # $ac_x_includes = NO
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5748
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5749 if test "$ac_x_libraries" = NO; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5750 # Check for the libraries.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5751
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5752 test -z "$x_direct_test_library" && x_direct_test_library=Xt
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5753 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5754
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5755 # See if we find them without any special options.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5756 # Don't add to $LIBS permanently.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5757 ac_save_LIBS="$LIBS"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5758 LIBS="-l$x_direct_test_library $LIBS"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5759 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
5760 #line 5761 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5761 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5762
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5763 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5764 ${x_direct_test_function}()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5765 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5766 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
5767 if { (eval echo configure:5768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5768 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5769 LIBS="$ac_save_LIBS"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5770 # We can link X programs with no special library path.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5771 ac_x_libraries=
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5772 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5773 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5774 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5775 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5776 LIBS="$ac_save_LIBS"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5777 # First see if replacing the include by lib works.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5778 # Check X11 before X11Rn because it is often a symlink to the current release.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5779 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5780 /usr/X11/lib \
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5781 /usr/X11R6/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5782 /usr/X11R5/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5783 /usr/X11R4/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5784 \
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5785 /usr/lib/X11 \
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5786 /usr/lib/X11R6 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5787 /usr/lib/X11R5 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5788 /usr/lib/X11R4 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5789 \
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5790 /usr/local/X11/lib \
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5791 /usr/local/X11R6/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5792 /usr/local/X11R5/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5793 /usr/local/X11R4/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5794 \
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5795 /usr/local/lib/X11 \
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5796 /usr/local/lib/X11R6 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5797 /usr/local/lib/X11R5 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5798 /usr/local/lib/X11R4 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5799 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5800 /usr/X386/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5801 /usr/x386/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5802 /usr/XFree86/lib/X11 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5803 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5804 /usr/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5805 /usr/local/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5806 /usr/unsupported/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5807 /usr/athena/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5808 /usr/local/x11r5/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5809 /usr/lpp/Xamples/lib \
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5810 /lib/usr/lib/X11 \
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5811 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5812 /usr/openwin/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5813 /usr/openwin/share/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5814 ; \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5815 do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5816 for ac_extension in a so sl; do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5817 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5818 ac_x_libraries=$ac_dir
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5819 break 2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5820 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5821 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5822 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5823 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5824 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5825 fi # $ac_x_libraries = NO
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5826
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5827 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5828 # Didn't find X anywhere. Cache the known absence of X.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5829 ac_cv_have_x="have_x=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5830 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5831 # Record where we found X for the cache.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5832 ac_cv_have_x="have_x=yes \
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5833 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5834 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5835 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5836 eval "$ac_cv_have_x"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5837 fi # $with_x != no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5838
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5839 if test "$have_x" != yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5840 echo "$ac_t""$have_x" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5841 no_x=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5842 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5843 # If each of the values was on the command line, it overrides each guess.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5844 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5845 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5846 # Update the cache value to reflect the command line values.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5847 ac_cv_have_x="have_x=yes \
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5848 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5849 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5850 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5851
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5852 if test "$no_x" = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5853 # Not all programs may use this symbol, but it does not hurt to define it.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5854 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5855 Defining X_DISPLAY_MISSING
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5856 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5857 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5858 #define X_DISPLAY_MISSING 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5859 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5860 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5861
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5862 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5863 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5864 if test -n "$x_includes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5865 X_CFLAGS="$X_CFLAGS -I$x_includes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5866 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5867
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5868 # It would also be nice to do this for all -L options, not just this one.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5869 if test -n "$x_libraries"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5870 X_LIBS="$X_LIBS -L$x_libraries"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5871 # For Solaris; some versions of Sun CC require a space after -R and
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5872 # others require no space. Words are not sufficient . . . .
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5873 case "`(uname -sr) 2>/dev/null`" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5874 "SunOS 5"*)
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5875 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
5876 echo "configure:5877: checking whether -R must be followed by a space" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5877 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5878 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
5879 #line 5880 "configure"
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
5880 #include "confdefs.h"
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
5881
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
5882 int main() {
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
5883
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
5884 ; return 0; }
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
5885 EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
5886 if { (eval echo configure:5887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5887 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5888 ac_R_nospace=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5889 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5890 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5891 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5892 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5893 ac_R_nospace=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5894 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5895 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5896 if test $ac_R_nospace = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5897 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5898 X_LIBS="$X_LIBS -R$x_libraries"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5899 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5900 LIBS="$ac_xsave_LIBS -R $x_libraries"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5901 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
5902 #line 5903 "configure"
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
5903 #include "confdefs.h"
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
5904
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
5905 int main() {
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
5906
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
5907 ; return 0; }
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
5908 EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
5909 if { (eval echo configure:5910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5910 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5911 ac_R_space=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5912 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5913 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5914 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5915 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5916 ac_R_space=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5917 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5918 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5919 if test $ac_R_space = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5920 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5921 X_LIBS="$X_LIBS -R $x_libraries"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5922 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5923 echo "$ac_t""neither works" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5924 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5925 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5926 LIBS="$ac_xsave_LIBS"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5927 esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5928 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5929
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5930 # Check for system-dependent libraries X programs must link with.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5931 # Do this before checking for the system-independent R6 libraries
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5932 # (-lICE), since we may need -lsocket or whatever for X linking.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5933
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5934 if test "$ISC" = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5935 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5936 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5937 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5938 # libraries were built with DECnet support. And karl@cs.umb.edu says
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5939 # the Alpha needs dnet_stub (dnet does not exist).
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5940 if test "$with_dnet" = "no" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5941 ac_cv_lib_dnet_dnet_ntoa=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5942 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5943
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5944 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
5945 echo "configure:5946: checking for dnet_ntoa in -ldnet" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5946 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5947
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5948 xe_check_libs=" -ldnet "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5949 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
5950 #line 5951 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5951 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5952 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5953 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5954 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5955 char dnet_ntoa();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5956
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5957 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5958 dnet_ntoa()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5959 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5960 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
5961 if { (eval echo configure:5962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5962 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5963 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5964 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5965 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5966 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5967 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5968 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5969 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5970 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5971 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5972
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5973 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5974 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5975 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5976 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5977 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5978 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5979
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5980 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5981
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5982 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5983
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5984 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
5985 echo "configure:5986: checking for dnet_ntoa in -ldnet_stub" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5986 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5987
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5988 xe_check_libs=" -ldnet_stub "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5989 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
5990 #line 5991 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5991 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5992 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5993 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5994 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5995 char dnet_ntoa();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5996
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5997 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5998 dnet_ntoa()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5999 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6000 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
6001 if { (eval echo configure:6002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6002 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6003 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6004 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6005 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6006 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6007 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6008 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6009 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6010 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6011 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6012
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6013 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6014 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6015 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6016 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6017 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6018 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6019
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6020
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6021 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6022
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6023 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6024 # to get the SysV transport functions.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6025 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6026 # needs -lnsl.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6027 # The nsl library prevents programs from opening the X display
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6028 # on Irix 5.2, according to dickey@clark.net.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6029 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
6030 echo "configure:6031: checking for gethostbyname" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
6031
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
6032 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
6033 #line 6034 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6034 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6035 /* System header to define __stub macros and hopefully few prototypes,
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6036 which can conflict with char gethostbyname(); below. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6037 #include <assert.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6038 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6039 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6040 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6041 char gethostbyname();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6042
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6043 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6044
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6045 /* The GNU C library defines this for functions which it implements
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6046 to always fail with ENOSYS. Some functions are actually named
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6047 something starting with __ and the normal name is an alias. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6048 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6049 choke me
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6050 #else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6051 gethostbyname();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6052 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6053
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6054 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6055 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
6056 if { (eval echo configure:6057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6057 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6058 eval "ac_cv_func_gethostbyname=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6059 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6060 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6061 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6062 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6063 eval "ac_cv_func_gethostbyname=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6064 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6065 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6066
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6067 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6068 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6069 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6070 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6071 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6072 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6073
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6074 if test $ac_cv_func_gethostbyname = no; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6075
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6076 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
6077 echo "configure:6078: checking for gethostbyname in -lnsl" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6078 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6079
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6080 xe_check_libs=" -lnsl "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6081 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
6082 #line 6083 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6083 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6084 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6085 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6086 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6087 char gethostbyname();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6088
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6089 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6090 gethostbyname()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6091 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6092 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
6093 if { (eval echo configure:6094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6094 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6095 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6096 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6097 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6098 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6099 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6100 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6101 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6102 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6103 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6104
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6105 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6106 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6107 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6108 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6109 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6110 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6111
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6112
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6113 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6114
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6115 # lieder@skyler.mavd.honeywell.com says without -lsocket,
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6116 # socket/setsockopt and other routines are undefined under SCO ODT
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6117 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6118 # on later versions), says simon@lia.di.epfl.ch: it contains
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6119 # gethostby* variants that don't use the nameserver (or something).
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6120 # -lsocket must be given before -lnsl if both are needed.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6121 # We assume that if connect needs -lnsl, so does gethostbyname.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6122 echo $ac_n "checking for connect""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
6123 echo "configure:6124: checking for connect" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
6124
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
6125 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
6126 #line 6127 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6127 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6128 /* System header to define __stub macros and hopefully few prototypes,
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6129 which can conflict with char connect(); below. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6130 #include <assert.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6131 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6132 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6133 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6134 char connect();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6135
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6136 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6137
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6138 /* The GNU C library defines this for functions which it implements
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6139 to always fail with ENOSYS. Some functions are actually named
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6140 something starting with __ and the normal name is an alias. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6141 #if defined (__stub_connect) || defined (__stub___connect)
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6142 choke me
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6143 #else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6144 connect();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6145 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6146
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6147 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6148 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
6149 if { (eval echo configure:6150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6150 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6151 eval "ac_cv_func_connect=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6152 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6153 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6154 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6155 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6156 eval "ac_cv_func_connect=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6157 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6158 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6159
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6160 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6161 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6162 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6163 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6164 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6165 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6166
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6167 if test $ac_cv_func_connect = no; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6168
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6169 xe_msg_checking="for connect in -lsocket"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6170 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6171 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
6172 echo "configure:6173: checking "$xe_msg_checking"" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6173 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6174
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6175 xe_check_libs=" -lsocket $X_EXTRA_LIBS"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6176 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
6177 #line 6178 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6178 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6179 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6180 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6181 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6182 char connect();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6183
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6184 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6185 connect()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6186 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6187 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
6188 if { (eval echo configure:6189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6189 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6190 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6191 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6192 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6193 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6194 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6195 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6196 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6197 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6198 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6199
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6200 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6201 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6202 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6203 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6204 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6205 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6206
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6207
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6208 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6209
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6210 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6211 echo $ac_n "checking for remove""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
6212 echo "configure:6213: checking for remove" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
6213
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
6214 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
6215 #line 6216 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6216 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6217 /* System header to define __stub macros and hopefully few prototypes,
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6218 which can conflict with char remove(); below. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6219 #include <assert.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6220 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6221 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6222 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6223 char remove();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6224
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6225 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6226
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6227 /* The GNU C library defines this for functions which it implements
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6228 to always fail with ENOSYS. Some functions are actually named
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6229 something starting with __ and the normal name is an alias. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6230 #if defined (__stub_remove) || defined (__stub___remove)
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6231 choke me
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6232 #else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6233 remove();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6234 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6235
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6236 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6237 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
6238 if { (eval echo configure:6239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6239 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6240 eval "ac_cv_func_remove=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6241 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6242 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6243 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6244 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6245 eval "ac_cv_func_remove=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6246 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6247 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6248
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6249 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6250 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6251 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6252 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6253 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6254 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6255
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6256 if test $ac_cv_func_remove = no; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6257
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6258 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
6259 echo "configure:6260: checking for remove in -lposix" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6260 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6261
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6262 xe_check_libs=" -lposix "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6263 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
6264 #line 6265 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6265 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6266 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6267 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6268 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6269 char remove();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6270
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6271 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6272 remove()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6273 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6274 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
6275 if { (eval echo configure:6276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6276 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6277 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6278 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6279 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6280 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6281 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6282 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6283 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6284 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6285 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6286
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6287 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6288 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6289 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6290 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6291 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6292 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6293
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6294
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6295 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6296
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6297 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6298 echo $ac_n "checking for shmat""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
6299 echo "configure:6300: checking for shmat" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
6300
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
6301 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
6302 #line 6303 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6303 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6304 /* System header to define __stub macros and hopefully few prototypes,
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6305 which can conflict with char shmat(); below. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6306 #include <assert.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6307 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6308 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6309 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6310 char shmat();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6311
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6312 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6313
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6314 /* The GNU C library defines this for functions which it implements
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6315 to always fail with ENOSYS. Some functions are actually named
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6316 something starting with __ and the normal name is an alias. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6317 #if defined (__stub_shmat) || defined (__stub___shmat)
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6318 choke me
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6319 #else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6320 shmat();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6321 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6322
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6323 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6324 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
6325 if { (eval echo configure:6326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6326 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6327 eval "ac_cv_func_shmat=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6328 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6329 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6330 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6331 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6332 eval "ac_cv_func_shmat=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6333 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6334 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6335
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6336 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6337 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6338 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6339 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6340 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6341 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6342
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6343 if test $ac_cv_func_shmat = no; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6344
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6345 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
6346 echo "configure:6347: checking for shmat in -lipc" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6347 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6348
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6349 xe_check_libs=" -lipc "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6350 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
6351 #line 6352 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6352 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6353 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6354 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6355 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6356 char shmat();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6357
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6358 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6359 shmat()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6360 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6361 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
6362 if { (eval echo configure:6363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6363 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6364 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6365 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6366 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6367 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6368 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6369 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6370 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6371 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6372 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6373
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6374 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6375 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6376 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6377 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6378 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6379 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6380
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6381
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6382 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6383 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6384
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6385 # Check for libraries that X11R6 Xt/Xaw programs need.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6386 ac_save_LDFLAGS="$LDFLAGS"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6387 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6388 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6389 # check for ICE first), but we must link in the order -lSM -lICE or
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6390 # we get undefined symbols. So assume we have SM if we have ICE.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6391 # These have to be linked with before -lX11, unlike the other
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6392 # libraries we check for below, so use a different variable.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6393 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6394
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
6395 xe_msg_checking="for IceConnectionNumber in -lICE"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
6396 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
6397 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
6398 echo "configure:6399: checking "$xe_msg_checking"" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6399 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6400
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
6401 xe_check_libs=" -lICE $X_EXTRA_LIBS"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
6402 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
6403 #line 6404 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6404 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6405 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6406 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6407 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6408 char IceConnectionNumber();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6409
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6410 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6411 IceConnectionNumber()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6412 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6413 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
6414 if { (eval echo configure:6415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6415 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6416 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6417 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6418 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6419 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6420 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6421 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6422 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6423 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6424 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6425
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6426 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6427 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6428 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6429 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6430 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6431 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6432
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6433
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6434 LDFLAGS="$ac_save_LDFLAGS"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6435
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6436 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6437 # Autoconf claims to find X library and include dirs for us.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6438 if test "$no_x" = "yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6439 then with_x11=no window_system=none HAVE_X_WINDOWS=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6440 else with_x11=yes window_system=x11 HAVE_X_WINDOWS=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6441 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6442 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6443
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6444
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6445 if test "$with_x11" = "yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6446 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6447 Defining HAVE_X_WINDOWS
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6448 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6449 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6450 #define HAVE_X_WINDOWS 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6451 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6452 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6453
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6454 MAKE_SUBDIR="$MAKE_SUBDIR lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$MAKE_SUBDIR"; fi
175
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
6455 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$SRC_SUBDIR_DEPS"; fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6456
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
6457 for lib_dir in "/usr/dt/lib" "/usr/lib/Motif2.1" "/usr/lib/Motif1.2" "/usr/lib/Motif1.1"; do
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
6458 inc_dir=`echo $lib_dir | sed -e 's/lib/include/'`
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6459 if test -d "$lib_dir" -a -d "$inc_dir"; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6460 case "$x_libraries" in *"$lib_dir"* ) ;; *)
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6461 x_libraries="$lib_dir $x_libraries"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6462 X_LIBS="-L${lib_dir} $X_LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-L${lib_dir}\" to \$X_LIBS"; fi ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6463 esac
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6464 case "$x_includes" in "$inc_dir"* ) ;; *)
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6465 x_includes="$inc_dir $x_includes"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6466 X_CFLAGS="-I${inc_dir} $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-I${inc_dir}\" to \$X_CFLAGS"; fi ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6467 esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6468 break; fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6469 done
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6470
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6471 for rel in "X11R6" "X11R5" "X11R4"; do
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6472 lib_dir="/usr/contrib/$rel/lib" inc_dir="/usr/contrib/$rel/include"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6473 if test -d "$lib_dir" -a -d "$inc_dir"; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6474 case "$x_libraries" in *"$lib_dir"* ) ;; *)
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6475 x_libraries="$x_libraries $lib_dir"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6476 X_LIBS="$X_LIBS -L${lib_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L${lib_dir}\" to \$X_LIBS"; fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6477 esac
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6478 case "$x_includes" in "$inc_dir"* ) ;; *)
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6479 x_includes="$x_includes $inc_dir"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6480 X_CFLAGS="$X_CFLAGS -I${inc_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-I${inc_dir}\" to \$X_CFLAGS"; fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6481 esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6482 break; fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6483 done
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6484
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6485 case "$opsys" in
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6486 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 ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6487 esac
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
6488
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6489 ld_switch_x_site="$X_LIBS"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6490
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6491
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6492 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
165
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents: 163
diff changeset
6493 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents: 163
diff changeset
6494 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6495
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
6496 runpath="" runpath_dirs=""
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6497 if test -n "$LD_RUN_PATH"; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6498 runpath="$LD_RUN_PATH"
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6499 elif test "$GCC" = "yes"; then
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
6500 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
6501 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6502 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6503 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6504 case "$arg" in P,* | -L* | -R* )
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
6505 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
6506 {
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6507 xe_runpath_dir="$dir"
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
6508 test "$xe_runpath_dir" != "/lib" -a \
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6509 "$xe_runpath_dir" != "/usr/lib" -a \
371
cc15677e0335 Import from CVS: tag r21-2b1
cvs
parents: 369
diff changeset
6510 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
6511 eval "$xe_add_unique_runpath_dir"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
6512 }
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6513 done ;;
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6514 esac
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6515 done
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
6516 ld_switch_run="$ld_switch_run_save"
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6517 rm -f conftest*
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6518 else
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6519 for arg in $ld_switch_site $ld_switch_x_site; do
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
6520 case "$arg" in -L*) {
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
6521 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
6522 test "$xe_runpath_dir" != "/lib" -a \
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6523 "$xe_runpath_dir" != "/usr/lib" -a \
371
cc15677e0335 Import from CVS: tag r21-2b1
cvs
parents: 369
diff changeset
6524 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
6525 eval "$xe_add_unique_runpath_dir"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
6526 };; esac
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6527 done
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
6528 if test "$opsys $need_motif" = "sol2 yes"; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
6529 xe_runpath_dir="/opt/SUNWdt/lib";
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
6530 eval "$xe_add_unique_runpath_dir";
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
6531 fi
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6532 fi
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6533 if test -n "$runpath"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6534 ld_switch_run="${dash_r}${runpath}"
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
6535
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
6536 if test "$GCC" = "yes"; then
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
6537 set x $ld_switch_run; shift; ld_switch_run=""
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
6538 while test -n "$1"; do
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
6539 case $1 in
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
6540 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
6541 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
6542 -Xlinker* ) ;;
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
6543 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
6544 esac
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
6545 shift
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
6546 done
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
6547 fi
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6548 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6549 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6550 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6551
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6552
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6553 if test "$extra_verbose" = "yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6554 echo; echo "X11 compilation variables:"
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
6555 for var in x_libraries x_includes X_CFLAGS X_LIBS X_PRE_LIBS X_EXTRA_LIBS; do eval "echo \"$var = '\$$var'\""; done
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6556 echo
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6557 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6558
265
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6559 bitmapdirs=
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6560 if test "$x_includes" != NONE; then
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6561 for i in $x_includes; do
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6562 if test -d "$i/bitmaps"; then
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6563 bitmapdirs="$i/bitmaps:$bitmapdirs"
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6564 fi
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6565 if test -d "$i/X11/bitmaps"; then
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6566 bitmapdirs="$i/X11/bitmaps:$bitmapdirs"
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6567 fi
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6568 done
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6569 bitmapdirs=`echo "$bitmapdirs" | sed s/.$//`
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6570 fi
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6571 test ! -z "$bitmapdirs" && { test "$extra_verbose" = "yes" && cat << EOF
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6572 Defining BITMAPDIR = "$bitmapdirs"
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6573 EOF
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6574 cat >> confdefs.h <<EOF
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6575 #define BITMAPDIR "$bitmapdirs"
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6576 EOF
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6577 }
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6578
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6579
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
6580 echo "checking for X defines extracted by xmkmf" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
6581 echo "configure:6582: checking for X defines extracted by xmkmf" >&5
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
6582 rm -fr conftestdir
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
6583 if mkdir conftestdir; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
6584 cd conftestdir
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
6585 cat > Imakefile <<'EOF'
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
6586 xetest:
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
6587 @echo ${PROTO_DEFINES} ${STD_DEFINES}
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
6588 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
6589 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
6590 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
6591 xmkmf_defines=`${MAKE-make} xetest 2>/dev/null | grep -v make`
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
6592 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
6593 cd ..
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
6594 rm -fr conftestdir
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
6595 for word in $xmkmf_defines; do
535
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
6596 case "$word" in
473
77c75d85635e [xemacs-hg @ 2001-04-18 09:07:27 by martinb]
martinb
parents: 464
diff changeset
6597 -D__STDC__*) ;;
77c75d85635e [xemacs-hg @ 2001-04-18 09:07:27 by martinb]
martinb
parents: 464
diff changeset
6598 -D* )
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6599 sym=`echo '' $word | sed -e 's:^ *-D::' -e 's:=.*::'`
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6600 case "$word" in
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6601 -D*=* ) val=`echo '' $word | sed -e 's:^.*=::'` ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6602 * ) val=1 ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6603 esac
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6604 if grep "^#define $sym " confdefs.h >/dev/null; then :; else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6605 if test "$val" = "1"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6606 then { test "$extra_verbose" = "yes" && cat << EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6607 Defining $sym
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6608 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6609 cat >> confdefs.h <<EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6610 #define $sym 1
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6611 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6612 }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6613
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6614 else { test "$extra_verbose" = "yes" && cat << EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6615 Defining $sym = $val
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6616 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6617 cat >> confdefs.h <<EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6618 #define $sym $val
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6619 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6620 }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6621
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6622 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6623 fi ;;
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
6624 esac
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
6625 done
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
6626 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
6627
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6628 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6629 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
6630 echo "configure:6631: checking for X11/Intrinsic.h" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
6631
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
6632 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
6633 #line 6634 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6634 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6635 #include <X11/Intrinsic.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6636 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6637 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
6638 { (eval echo configure:6639: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
6639 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6640 if test -z "$ac_err"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6641 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6642 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6643 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6644 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6645 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6646 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6647 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6648 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6649 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6650 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6651 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6652 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6653 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6654 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6655 echo "$ac_t""no" 1>&6
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
6656 { echo "configure: error: Unable to find X11 header files." 1>&2; exit 1; }
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6657 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6658
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6659
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6660
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6661 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
6662 echo "configure:6663: checking for XOpenDisplay in -lX11" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6663 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6664
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6665 xe_check_libs=" -lX11 "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6666 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
6667 #line 6668 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6668 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6669 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6670 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6671 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6672 char XOpenDisplay();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6673
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6674 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6675 XOpenDisplay()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6676 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6677 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
6678 if { (eval echo configure:6679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6679 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6680 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6681 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6682 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6683 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6684 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6685 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6686 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6687 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6688 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6689
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6690 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6691 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6692 have_lib_x11=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6693 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6694 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6695 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6696
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6697
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6698 if test "$have_lib_x11" != "yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6699
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6700 xe_msg_checking="for XGetFontProperty in -lX11"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6701 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6702 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
6703 echo "configure:6704: checking "$xe_msg_checking"" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6704 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6705
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6706 xe_check_libs=" -lX11 -b i486-linuxaout"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6707 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
6708 #line 6709 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6709 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6710 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6711 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6712 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6713 char XGetFontProperty();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6714
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6715 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6716 XGetFontProperty()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6717 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6718 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
6719 if { (eval echo configure:6720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6720 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6721 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6722 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6723 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6724 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6725 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6726 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6727 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6728 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6729 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6730
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6731 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6732 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6733 ld_switch_x_site="-b i486-linuxaout $ld_switch_x_site"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6734 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6735 echo "$ac_t""no" 1>&6
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
6736 { echo "configure: error: Unable to find X11 libraries." 1>&2; exit 1; }
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6737 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6738
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6739
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6740 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6741 libs_x="-lX11"
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6742 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6743
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
6744
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
6745 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
6746 echo "configure:6747: checking for XShapeSelectInput in -lXext" >&5
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
6747 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
6748
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
6749 xe_check_libs=" -lXext "
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
6750 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
6751 #line 6752 "configure"
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
6752 #include "confdefs.h"
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
6753 /* Override any gcc2 internal prototype to avoid an error. */
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
6754 /* We use char because int might match the return type of a gcc2
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
6755 builtin and then its argument prototype would still apply. */
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
6756 char XShapeSelectInput();
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
6757
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
6758 int main() {
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
6759 XShapeSelectInput()
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
6760 ; return 0; }
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
6761 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
6762 if { (eval echo configure:6763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
6763 rm -rf conftest*
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
6764 eval "ac_cv_lib_$ac_lib_var=yes"
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
6765 else
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
6766 echo "configure: failed program was:" >&5
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
6767 cat conftest.$ac_ext >&5
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
6768 rm -rf conftest*
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
6769 eval "ac_cv_lib_$ac_lib_var=no"
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
6770 fi
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
6771 rm -f conftest*
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
6772 xe_check_libs=""
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
6773
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
6774 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
6775 echo "$ac_t""yes" 1>&6
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
6776 libs_x="-lXext $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXext\" to \$libs_x"; fi
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
6777 else
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
6778 echo "$ac_t""no" 1>&6
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
6779 fi
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
6780
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
6781
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
6782
169
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
6783
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6784 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
6785 echo "configure:6786: checking for XtOpenDisplay in -lXt" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6786 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6787
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6788 xe_check_libs=" -lXt "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6789 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
6790 #line 6791 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6791 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6792 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6793 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6794 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6795 char XtOpenDisplay();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6796
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6797 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6798 XtOpenDisplay()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6799 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6800 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
6801 if { (eval echo configure:6802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6802 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6803 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6804 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6805 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6806 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6807 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6808 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6809 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6810 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6811 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6812
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6813 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6814 echo "$ac_t""yes" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6815 libs_x="-lXt $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXt\" to \$libs_x"; fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6816 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6817 echo "$ac_t""no" 1>&6
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
6818 { echo "configure: error: Unable to find X11 libraries." 1>&2; exit 1; }
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6819 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6820
169
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
6821
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6822
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6823 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
6824 echo "configure:6825: checking the version of X11 being used" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6825 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
6826 #line 6827 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6827 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6828 #include <X11/Intrinsic.h>
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
6829 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; }
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
6830 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
6831 if { (eval echo configure:6832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6832 then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6833 ./conftest foobar; x11_release=$?
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6834 else
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
6835 conftest_rc="$?"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6836 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6837 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6838 rm -fr conftest*
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6839 x11_release=4
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6840 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6841 rm -fr conftest*
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6842 echo "$ac_t""R${x11_release}" 1>&6
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6843 { test "$extra_verbose" = "yes" && cat << EOF
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6844 Defining THIS_IS_X11R${x11_release}
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6845 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6846 cat >> confdefs.h <<EOF
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6847 #define THIS_IS_X11R${x11_release} 1
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6848 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6849 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6850
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6851
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6852 if test "${x11_release}" = "4"; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6853 case "$with_widgets" in
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6854 "" | "no") with_widgets=no ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6855 *) { echo "Error:" "Widget support requires X11R5 or greater" >&2; exit 1; } ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6856 esac
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6857 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6858
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6859 for ac_func in XConvertCase
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6860 do
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6861 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
6862 echo "configure:6863: checking for $ac_func" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
6863
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
6864 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
6865 #line 6866 "configure"
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6866 #include "confdefs.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6867 /* System header to define __stub macros and hopefully few prototypes,
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6868 which can conflict with char $ac_func(); below. */
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6869 #include <assert.h>
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6870 /* Override any gcc2 internal prototype to avoid an error. */
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6871 /* We use char because int might match the return type of a gcc2
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6872 builtin and then its argument prototype would still apply. */
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6873 char $ac_func();
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6874
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6875 int main() {
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6876
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6877 /* The GNU C library defines this for functions which it implements
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6878 to always fail with ENOSYS. Some functions are actually named
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6879 something starting with __ and the normal name is an alias. */
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6880 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6881 choke me
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6882 #else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6883 $ac_func();
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6884 #endif
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6885
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6886 ; return 0; }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6887 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
6888 if { (eval echo configure:6889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6889 rm -rf conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6890 eval "ac_cv_func_$ac_func=yes"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6891 else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6892 echo "configure: failed program was:" >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6893 cat conftest.$ac_ext >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6894 rm -rf conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6895 eval "ac_cv_func_$ac_func=no"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6896 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6897 rm -f conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6898
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6899 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6900 echo "$ac_t""yes" 1>&6
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6901 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6902 { test "$extra_verbose" = "yes" && cat << EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6903 Defining $ac_tr_func
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6904 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6905 cat >> confdefs.h <<EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6906 #define $ac_tr_func 1
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6907 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6908 }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6909
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6910 else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6911 echo "$ac_t""no" 1>&6
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6912 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6913 done
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6914
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6915
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6916 for ac_hdr in X11/Xlocale.h
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6917 do
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6918 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6919 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
6920 echo "configure:6921: checking for $ac_hdr" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
6921
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
6922 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
6923 #line 6924 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6924 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6925 #include <$ac_hdr>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6926 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6927 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
6928 { (eval echo configure:6929: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
6929 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6930 if test -z "$ac_err"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6931 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6932 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6933 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6934 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6935 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6936 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6937 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6938 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6939 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6940 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6941 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6942 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6943 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6944 { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6945 Defining $ac_tr_hdr
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6946 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6947 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6948 #define $ac_tr_hdr 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6949 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6950 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6951
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6952 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6953 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6954 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6955 done
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6956
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6957
444
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6958 for ac_func in XRegisterIMInstantiateCallback
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6959 do
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6960 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
6961 echo "configure:6962: checking for $ac_func" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
6962
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
6963 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
6964 #line 6965 "configure"
444
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6965 #include "confdefs.h"
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6966 /* System header to define __stub macros and hopefully few prototypes,
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6967 which can conflict with char $ac_func(); below. */
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6968 #include <assert.h>
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6969 /* Override any gcc2 internal prototype to avoid an error. */
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6970 /* We use char because int might match the return type of a gcc2
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6971 builtin and then its argument prototype would still apply. */
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6972 char $ac_func();
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6973
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6974 int main() {
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6975
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6976 /* The GNU C library defines this for functions which it implements
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6977 to always fail with ENOSYS. Some functions are actually named
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6978 something starting with __ and the normal name is an alias. */
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6979 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6980 choke me
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6981 #else
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6982 $ac_func();
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6983 #endif
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6984
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6985 ; return 0; }
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6986 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
6987 if { (eval echo configure:6988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
444
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6988 rm -rf conftest*
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6989 eval "ac_cv_func_$ac_func=yes"
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6990 else
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6991 echo "configure: failed program was:" >&5
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6992 cat conftest.$ac_ext >&5
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6993 rm -rf conftest*
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6994 eval "ac_cv_func_$ac_func=no"
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6995 fi
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6996 rm -f conftest*
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6997
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6998 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6999 echo "$ac_t""yes" 1>&6
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7000 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7001 { test "$extra_verbose" = "yes" && cat << EOF
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7002 Defining $ac_tr_func
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7003 EOF
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7004 cat >> confdefs.h <<EOF
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7005 #define $ac_tr_func 1
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7006 EOF
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7007 }
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7008
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7009 else
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7010 echo "$ac_t""no" 1>&6
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7011 fi
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7012 done
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7013
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7014 echo $ac_n "checking for standard XRegisterIMInstantiateCallback prototype""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
7015 echo "configure:7016: checking for standard XRegisterIMInstantiateCallback prototype" >&5
444
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7016 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
7017 #line 7018 "configure"
444
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7018 #include "confdefs.h"
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7019
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7020 #define NeedFunctionPrototypes 1
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7021 #include <X11/Xlib.h>
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7022 extern Bool XRegisterIMInstantiateCallback(
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7023 Display*, struct _XrmHashBucketRec*, char*, char*, XIMProc, XPointer*);
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7024
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7025 int main() {
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7026
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7027 ; return 0; }
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7028 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
7029 if { (eval echo configure:7030: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
444
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7030 rm -rf conftest*
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7031 echo "$ac_t""yes" 1>&6
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7032 else
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7033 echo "configure: failed program was:" >&5
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7034 cat conftest.$ac_ext >&5
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7035 rm -rf conftest*
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7036 echo "$ac_t""no" 1>&6
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7037 { test "$extra_verbose" = "yes" && cat << \EOF
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7038 Defining XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7039 EOF
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7040 cat >> confdefs.h <<\EOF
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7041 #define XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE 1
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7042 EOF
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7043 }
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7044
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7045 fi
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7046 rm -f conftest*
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7047
169
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
7048 test -z "$with_xmu" && {
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
7049 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
7050 echo "configure:7051: checking for XmuReadBitmapDataFromFile in -lXmu" >&5
169
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
7051 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'`
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7052
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7053 xe_check_libs=" -lXmu "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7054 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
7055 #line 7056 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7056 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7057 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7058 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7059 builtin and then its argument prototype would still apply. */
169
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
7060 char XmuReadBitmapDataFromFile();
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7061
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7062 int main() {
169
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
7063 XmuReadBitmapDataFromFile()
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7064 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7065 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
7066 if { (eval echo configure:7067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7067 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7068 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7069 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7070 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7071 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7072 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7073 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7074 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7075 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7076 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7077
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7078 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7079 echo "$ac_t""yes" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7080 with_xmu=yes
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7081 else
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7082 echo "$ac_t""no" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7083 with_xmu=no
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7084 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7085
169
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
7086 }
185
3d6bfa290dbd Import from CVS: tag r20-3b19
cvs
parents: 183
diff changeset
7087 if test "$with_xmu" = "no"; then
3d6bfa290dbd Import from CVS: tag r20-3b19
cvs
parents: 183
diff changeset
7088 extra_objs="$extra_objs xmu.o" && if test "$extra_verbose" = "yes"; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7089 echo " xemacs will be linked with \"xmu.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7090 fi
187
b405438285a2 Import from CVS: tag r20-3b20
cvs
parents: 185
diff changeset
7091 else
185
3d6bfa290dbd Import from CVS: tag r20-3b19
cvs
parents: 183
diff changeset
7092 libs_x="-lXmu $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXmu\" to \$libs_x"; fi
3d6bfa290dbd Import from CVS: tag r20-3b19
cvs
parents: 183
diff changeset
7093 { test "$extra_verbose" = "yes" && cat << \EOF
3d6bfa290dbd Import from CVS: tag r20-3b19
cvs
parents: 183
diff changeset
7094 Defining HAVE_XMU
3d6bfa290dbd Import from CVS: tag r20-3b19
cvs
parents: 183
diff changeset
7095 EOF
3d6bfa290dbd Import from CVS: tag r20-3b19
cvs
parents: 183
diff changeset
7096 cat >> confdefs.h <<\EOF
3d6bfa290dbd Import from CVS: tag r20-3b19
cvs
parents: 183
diff changeset
7097 #define HAVE_XMU 1
3d6bfa290dbd Import from CVS: tag r20-3b19
cvs
parents: 183
diff changeset
7098 EOF
3d6bfa290dbd Import from CVS: tag r20-3b19
cvs
parents: 183
diff changeset
7099 }
3d6bfa290dbd Import from CVS: tag r20-3b19
cvs
parents: 183
diff changeset
7100
169
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
7101 fi
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7102
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7103
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7104 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
7105 echo "configure:7106: checking for main in -lXbsd" >&5
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7106 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7107
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7108 xe_check_libs=" -lXbsd "
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7109 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
7110 #line 7111 "configure"
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7111 #include "confdefs.h"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7112
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7113 int main() {
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7114 main()
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7115 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7116 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
7117 if { (eval echo configure:7118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7118 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7119 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7120 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7121 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7122 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7123 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7124 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7125 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7126 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7127 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7128
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7129 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7130 echo "$ac_t""yes" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7131 libs_x="-lXbsd $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXbsd\" to \$libs_x"; fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7132 else
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7133 echo "$ac_t""no" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7134 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7135
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7136
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7137
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
7138 if test "$unexec" = "unexaix.o" -a "$x11_release" = "6"; then
274
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
7139 if test "$GCC" = "yes"; then
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
7140 X_CFLAGS="-mthreads $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$X_CFLAGS"; fi
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
7141 libs_x="-mthreads $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$libs_x"; fi
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
7142 else
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
7143 case "$CC" in
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
7144 "xlc" ) CC="xlc_r" ;;
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
7145 "xlC" ) CC="xlC_r" ;;
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
7146 "cc" ) CC="cc_r" ;;
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
7147 esac
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
7148 fi
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
7149 fi
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
7150
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7151 fi
265
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7152 if test "$with_msw" != "no"; then
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7153 echo "checking for MS-Windows" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
7154 echo "configure:7155: checking for MS-Windows" >&5
265
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7155
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7156 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
7157 echo "configure:7158: checking for main in -lgdi32" >&5
265
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7158 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'`
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7159
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7160 xe_check_libs=" -lgdi32 "
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7161 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
7162 #line 7163 "configure"
265
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7163 #include "confdefs.h"
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7164
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7165 int main() {
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7166 main()
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7167 ; return 0; }
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7168 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
7169 if { (eval echo configure:7170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
265
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7170 rm -rf conftest*
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7171 eval "ac_cv_lib_$ac_lib_var=yes"
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7172 else
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7173 echo "configure: failed program was:" >&5
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7174 cat conftest.$ac_ext >&5
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7175 rm -rf conftest*
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7176 eval "ac_cv_lib_$ac_lib_var=no"
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7177 fi
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7178 rm -f conftest*
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7179 xe_check_libs=""
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7180
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7181 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7182 echo "$ac_t""yes" 1>&6
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7183 with_msw=yes
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7184 else
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7185 echo "$ac_t""no" 1>&6
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7186 fi
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7187
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7188
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7189 if test "$with_msw" = "yes"; then
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7190 { test "$extra_verbose" = "yes" && cat << \EOF
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7191 Defining HAVE_MS_WINDOWS
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7192 EOF
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7193 cat >> confdefs.h <<\EOF
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7194 #define HAVE_MS_WINDOWS 1
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7195 EOF
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7196 }
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7197
448
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 446
diff changeset
7198
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
7199 if test "$with_netinstall" = "yes"; then
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
7200 MAKE_SUBDIR="$MAKE_SUBDIR netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$MAKE_SUBDIR"; fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
7201 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$SRC_SUBDIR_DEPS"; fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
7202 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
7203 fi
458
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
7204
276
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
7205 install_pp="$blddir/lib-src/installexe.sh"
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
7206 libs_system="$libs_system -limm32 -lshell32 -lgdi32 -luser32 -lcomdlg32 -lcomctl32 -lole32 -luuid -lwinspool -lmpr" && if test "$extra_verbose" = "yes"; then echo " Appending \"-limm32 -lshell32 -lgdi32 -luser32 -lcomdlg32 -lcomctl32 -lole32 -luuid -lwinspool -lmpr\" to \$libs_system"; fi
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
7207 if test "$with_dragndrop" != no; then
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
7208 dragndrop_proto="$dragndrop_proto msw" && if test "$extra_verbose" = "yes"; then echo " Appending \"msw\" to \$dragndrop_proto"; fi
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
7209 with_dragndrop=yes
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
7210 fi
265
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7211 if test "$window_system" != x11; then
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
7212 window_system=msw
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
7213 test "$with_scrollbars" != "no" && with_scrollbars=msw
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
7214 test "$with_menubars" != "no" && with_menubars=msw
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
7215 test "$with_toolbars" != "no" && with_toolbars=msw
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
7216 test "$with_dialogs" != "no" && with_dialogs=msw
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
7217 test "$with_widgets" != "no" && with_widgets=msw
265
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7218 fi
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7219 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
7220 #line 7221 "configure"
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7221 #include "confdefs.h"
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7222 #include <fcntl.h>
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7223 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; }
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7224 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
7225 if { (eval echo configure:7226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7226 then
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
7227 { test "$extra_verbose" = "yes" && cat << \EOF
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7228 Defining HAVE_MSG_SELECT
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7229 EOF
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7230 cat >> confdefs.h <<\EOF
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7231 #define HAVE_MSG_SELECT 1
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7232 EOF
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7233 }
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7234
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7235 else
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
7236 conftest_rc="$?"
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7237 echo "configure: failed program was:" >&5
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7238 cat conftest.$ac_ext >&5
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7239 fi
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7240 rm -fr conftest*
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
7241 fi
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
7242 fi
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
7243
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
7244
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
7245
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
7246 test -z "$with_dragndrop" && with_dragndrop="$with_dragndrop_default"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7247 test -z "$window_system" && window_system="none"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7248
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7249 if test "$window_system" = "none"; then
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
7250 for feature in menubars scrollbars toolbars dialogs dragndrop xface
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7251 do
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7252 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7253 echo "configure: warning: --with-$feature ignored: Not valid without window system support" 1>&2
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7254 fi
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7255 eval "with_${feature}=no"
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7256 done
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7257 else
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7258 test -z "$with_toolbars" && with_toolbars=yes
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7259 fi
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7260
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7261 if test "$with_msw" != "yes"; then
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7262 for feature in MARTIN_IS_CLUELESS_ABOUT_MSW_FEATURES
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7263 do
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7264 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7265 echo "configure: warning: --with-$feature ignored: Not valid without MS-Windows support" 1>&2
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7266 fi
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7267 eval "with_${feature}=no"
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7268 done
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7269 else
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7270 :
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7271 fi
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7273 if test "$with_x11" != "yes"; then
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
7274 for feature in tooltalk cde offix wmcommand xim xmu nas_sound
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
7275 do
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7276 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7277 echo "configure: warning: --with-$feature ignored: Not valid without X support" 1>&2
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
7278 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7279 eval "with_${feature}=no"
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
7280 done
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7281 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7282
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7283 if test "$with_x11" = "yes"; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7284 ac_safe=`echo "X11/extensions/shape.h" | sed 'y%./+-%__p_%'`
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7285 echo $ac_n "checking for X11/extensions/shape.h""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
7286 echo "configure:7287: checking for X11/extensions/shape.h" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
7287
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
7288 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
7289 #line 7290 "configure"
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7290 #include "confdefs.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7291 #include <X11/extensions/shape.h>
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7292 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7293 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
7294 { (eval echo configure:7295: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7295 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7296 if test -z "$ac_err"; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7297 rm -rf conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7298 eval "ac_cv_header_$ac_safe=yes"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7299 else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7300 echo "$ac_err" >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7301 echo "configure: failed program was:" >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7302 cat conftest.$ac_ext >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7303 rm -rf conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7304 eval "ac_cv_header_$ac_safe=no"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7305 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7306 rm -f conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7307 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7308 echo "$ac_t""yes" 1>&6
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7309
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7310 { test "$extra_verbose" = "yes" && cat << \EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7311 Defining HAVE_BALLOON_HELP
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7312 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7313 cat >> confdefs.h <<\EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7314 #define HAVE_BALLOON_HELP 1
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7315 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7316 }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7317
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
7318
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7319 else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7320 echo "$ac_t""no" 1>&6
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7321 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7322
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7323 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7324
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7325 bitmapdir=
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7326
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7327 case "$window_system" in
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
7328 x11 ) HAVE_X_WINDOWS=yes; echo " Using X11." ;;
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7329 msw ) HAVE_X_WINDOWS=no ; echo " Using MS-Windows." ;;
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
7330 gtk )
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
7331 HAVE_X_WINDOWS=no
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
7332 test "$with_gnome" = "yes" && echo " Using GNOME."
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
7333 test "$with_gnome" = "no" && echo " Using GTK."
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
7334 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
7335 none ) HAVE_X_WINDOWS=no ; echo " Using no window system." ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7336 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7337
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7338 case "$x_libraries" in *X11R4* )
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7339 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7340 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7341 esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7342
414
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
7343 echo "checking for WM_COMMAND option" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
7344 echo "configure:7345: checking for WM_COMMAND option" >&5;
414
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
7345 if test "$with_wmcommand" != "no"; then
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
7346 { test "$extra_verbose" = "yes" && cat << \EOF
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
7347 Defining HAVE_WMCOMMAND
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
7348 EOF
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
7349 cat >> confdefs.h <<\EOF
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
7350 #define HAVE_WMCOMMAND 1
177
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
7351 EOF
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
7352 }
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
7353
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
7354 fi
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
7355
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7356 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7357 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7358 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
7359 echo "configure:7360: checking for X11/Xauth.h" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
7360
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
7361 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
7362 #line 7363 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7363 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7364 #include <X11/Xauth.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7365 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7366 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
7367 { (eval echo configure:7368: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
7368 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7369 if test -z "$ac_err"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7370 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7371 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7372 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7373 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7374 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7375 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7376 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7377 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7378 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7379 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7380 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7381 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7382 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7383 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7384 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7385 with_xauth=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7386 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7387 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7388 test -z "$with_xauth" && {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7389 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
7390 echo "configure:7391: checking for XauGetAuthByAddr in -lXau" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7391 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7392
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7393 xe_check_libs=" -lXau "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7394 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
7395 #line 7396 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7396 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7397 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7398 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7399 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7400 char XauGetAuthByAddr();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7401
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7402 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7403 XauGetAuthByAddr()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7404 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7405 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
7406 if { (eval echo configure:7407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7407 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7408 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7409 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7410 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7411 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7412 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7413 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7414 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7415 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7416 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7417
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7418 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7419 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7420 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7421 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7422 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7423 with_xauth=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7424 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7425
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7426 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7427 test -z "$with_xauth" && with_xauth=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7428 if test "$with_xauth" = "yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7429 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7430 Defining HAVE_XAUTH
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7431 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7432 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7433 #define HAVE_XAUTH 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7434 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7435 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7436
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
7437
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
7438 T=""
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
7439 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
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
7440 libs_xauth="$T"
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
7441
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
7442 fi
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
7443
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7444
274
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
7445
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7446
1111
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
7447
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
7448 test -n "$xemacs_compiler" && XEMACS_CC="$xemacs_compiler"
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
7449 : ${XEMACS_CC:="$CC"}
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
7450
997
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7451 if test "$with_modules" != "no"; then
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7452 echo "checking for module support" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
7453 echo "configure:7454: checking for module support" >&5
997
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7454
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7455 if test "$with_msw" = "yes"; then
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7456 have_dl=yes;
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7457 else
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7458 ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'`
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7459 echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
7460 echo "configure:7461: checking for dlfcn.h" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
7461
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
7462 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
7463 #line 7464 "configure"
997
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7464 #include "confdefs.h"
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7465 #include <dlfcn.h>
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7466 EOF
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7467 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
7468 { (eval echo configure:7469: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
997
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7469 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7470 if test -z "$ac_err"; then
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7471 rm -rf conftest*
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7472 eval "ac_cv_header_$ac_safe=yes"
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7473 else
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7474 echo "$ac_err" >&5
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7475 echo "configure: failed program was:" >&5
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7476 cat conftest.$ac_ext >&5
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7477 rm -rf conftest*
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7478 eval "ac_cv_header_$ac_safe=no"
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7479 fi
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7480 rm -f conftest*
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7481 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7482 echo "$ac_t""yes" 1>&6
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7483
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7484 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
7485 echo "configure:7486: checking for dlopen in -lc" >&5
997
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7486 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
7487 #line 7488 "configure"
997
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7488 #include "confdefs.h"
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7489 #include <dlfcn.h>
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7490 int main() {
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7491 dlopen ("", 0);
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7492 ; return 0; }
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7493 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
7494 if { (eval echo configure:7495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
997
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7495 rm -rf conftest*
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7496 have_dl=yes
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7497 else
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7498 echo "configure: failed program was:" >&5
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7499 cat conftest.$ac_ext >&5
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7500 rm -rf conftest*
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7501
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7502 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
7503 echo "configure:7504: checking for dlopen in -ldl" >&5
997
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7504 ac_save_LIBS="$LIBS"
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7505 LIBS="-ldl $LIBS"
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7506 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
7507 #line 7508 "configure"
997
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7508 #include "confdefs.h"
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7509 #include <dlfcn.h>
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7510 int main() {
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7511 dlopen ("", 0);
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7512 ; return 0; }
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7513 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
7514 if { (eval echo configure:7515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
997
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7515 rm -rf conftest*
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7516 have_dl=yes
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7517 else
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7518 echo "configure: failed program was:" >&5
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7519 cat conftest.$ac_ext >&5
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7520 rm -rf conftest*
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7521 LIBS="$ac_save_LIBS"
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7522 fi
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7523 rm -f conftest*
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7524 ac_save_LIBS=
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7525 fi
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7526 rm -f conftest*
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7527 else
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7528 echo "$ac_t""no" 1>&6
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7529 fi
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7530
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7531 if test -n "$have_dl"; then
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7532 { test "$extra_verbose" = "yes" && cat << \EOF
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7533 Defining HAVE_DLOPEN
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7534 EOF
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7535 cat >> confdefs.h <<\EOF
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7536 #define HAVE_DLOPEN 1
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7537 EOF
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7538 }
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7539
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7540 else
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7541
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7542 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
7543 echo "configure:7544: checking for shl_load in -ldld" >&5
997
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7544 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7545
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7546 xe_check_libs=" -ldld "
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7547 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
7548 #line 7549 "configure"
997
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7549 #include "confdefs.h"
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7550 /* Override any gcc2 internal prototype to avoid an error. */
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7551 /* We use char because int might match the return type of a gcc2
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7552 builtin and then its argument prototype would still apply. */
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7553 char shl_load();
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7554
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7555 int main() {
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7556 shl_load()
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7557 ; return 0; }
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7558 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
7559 if { (eval echo configure:7560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
997
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7560 rm -rf conftest*
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7561 eval "ac_cv_lib_$ac_lib_var=yes"
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7562 else
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7563 echo "configure: failed program was:" >&5
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7564 cat conftest.$ac_ext >&5
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7565 rm -rf conftest*
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7566 eval "ac_cv_lib_$ac_lib_var=no"
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7567 fi
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7568 rm -f conftest*
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7569 xe_check_libs=""
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7570
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7571 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7572 echo "$ac_t""yes" 1>&6
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7573 libdl=dld have_dl=yes;
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7574 { test "$extra_verbose" = "yes" && cat << \EOF
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7575 Defining HAVE_SHL_LOAD
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7576 EOF
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7577 cat >> confdefs.h <<\EOF
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7578 #define HAVE_SHL_LOAD 1
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7579 EOF
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7580 }
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7581
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7582 else
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7583 echo "$ac_t""no" 1>&6
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7584
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7585 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
7586 echo "configure:7587: checking for dld_init in -ldld" >&5
997
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7587 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'`
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7588
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7589 xe_check_libs=" -ldld "
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7590 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
7591 #line 7592 "configure"
997
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7592 #include "confdefs.h"
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7593 /* Override any gcc2 internal prototype to avoid an error. */
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7594 /* We use char because int might match the return type of a gcc2
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7595 builtin and then its argument prototype would still apply. */
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7596 char dld_init();
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7597
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7598 int main() {
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7599 dld_init()
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7600 ; return 0; }
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7601 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
7602 if { (eval echo configure:7603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
997
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7603 rm -rf conftest*
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7604 eval "ac_cv_lib_$ac_lib_var=yes"
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7605 else
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7606 echo "configure: failed program was:" >&5
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7607 cat conftest.$ac_ext >&5
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7608 rm -rf conftest*
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7609 eval "ac_cv_lib_$ac_lib_var=no"
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7610 fi
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7611 rm -f conftest*
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7612 xe_check_libs=""
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7613
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7614 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7615 echo "$ac_t""yes" 1>&6
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7616 libdl=dld have_dl=yes;
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7617 { test "$extra_verbose" = "yes" && cat << \EOF
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7618 Defining HAVE_DLD_INIT
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7619 EOF
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7620 cat >> confdefs.h <<\EOF
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7621 #define HAVE_DLD_INIT 1
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7622 EOF
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7623 }
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7624
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7625 else
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7626 echo "$ac_t""no" 1>&6
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7627 fi
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7628
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7629
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7630 fi
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7631
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7632
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7633 fi
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7634 fi
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7635 if test -n "$have_dl"; then
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7636
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7637 dll_ld=
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7638 dll_ldflags=
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7639 dll_cflags=
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7640 dll_post=
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7641 dll_ldo="-o"
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7642 ld_dynamic_link_flags=
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7643 xehost=$canonical
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7644 xealias=$internal_configuration
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7645
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7646 echo "checking how to build dynamic libraries for ${xehost}" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
7647 echo "configure:7648: checking how to build dynamic libraries for ${xehost}" >&5
997
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7648 # Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts.
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7649 case "$xehost" in
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7650 *-*-linux-gnu*) ;;
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7651 *-*-linux*) xehost=`echo $xehost | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7652 esac
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7653
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7654 xehost_cpu=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7655 xehost_vendor=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7656 xehost_os=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7657
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7658 case "$xehost_os" in
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7659 aix3*)
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7660 # AIX sometimes has problems with the GCC collect2 program. For some
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7661 # reason, if we set the COLLECT_NAMES environment variable, the problems
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7662 # vanish in a puff of smoke.
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7663 if test "${COLLECT_NAMES+set}" != set; then
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7664 COLLECT_NAMES=
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7665 export COLLECT_NAMES
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7666 fi
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7667 ;;
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7668 esac
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7669
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7670 # Now see if the compiler is really GCC.
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7671 if test "$GCC" = "yes"; then
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7672 XEGCC=yes
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7673 else
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7674 echo $ac_n "checking checking whether we are using GNU C""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
7675 echo "configure:7676: checking checking whether we are using GNU C" >&5
997
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7676 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
7677 #line 7678 "configure"
997
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7678 #include "confdefs.h"
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7679
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7680 #ifdef __GNUC__
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7681 yes;
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7682 #endif
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7683
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7684 EOF
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7685 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7686 egrep "yes" >/dev/null 2>&1; then
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7687 rm -rf conftest*
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7688 XEGCC=yes
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7689 else
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7690 rm -rf conftest*
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7691 XEGCC=no
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7692 fi
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7693 rm -f conftest*
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7694
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7695 echo "$ac_t""${XEGCC}" 1>&6
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7696 fi
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7697
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7698 echo $ac_n "checking how to produce PIC code""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
7699 echo "configure:7700: checking how to produce PIC code" >&5
997
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7700 wl=
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7701
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7702 can_build_shared=yes
1111
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
7703 cygwin_warn=
997
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7704 if test "$XEGCC" = yes; then
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7705 wl='-Wl,'
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7706
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7707 case "$xehost_os" in
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7708 aix[3-9]* | irix[5-9]* | osf[3-9])
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7709 # PIC is the default for these OSes.
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7710 ;;
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7711
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7712 os2*)
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7713 # We can build DLLs from non-PIC.
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7714 ;;
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7715 amigaos*)
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7716 # FIXME: we need at least 68020 code to build shared libraries, but
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7717 # adding the `-m68020' flag to GCC prevents building anything better,
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7718 # like `-m68040'.
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7719 dll_cflags='-m68020 -resident32 -malways-restore-a4'
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7720 ;;
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7721 *cygwin* | *mingw* )
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7722 # PIC is the default
1111
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
7723 cygwin_warn=yes
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
7724 # #### Need some trickery involving import libraries that we don't
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
7725 # currently support.
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
7726 can_build_shared=no
997
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7727 ;;
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7728 *)
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7729 dll_cflags='-fPIC'
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7730 ;;
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7731 esac
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7732 else
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7733 # PORTME Check for PIC flags for the system compiler.
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7734 case "$xehost_os" in
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7735 hpux9* | hpux1[0-9]*)
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7736 # Is there a better link_static_flag that works with the bundled CC?
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7737 wl='-Wl,'
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7738 dll_cflags='+Z'
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7739 ;;
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7740
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7741 irix[5-9]*)
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7742 wl='-Wl,'
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7743 # PIC (with -KPIC) is the default.
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7744 ;;
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7745
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7746 os2*)
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7747 # We can build DLLs from non-PIC.
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7748 ;;
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7749
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7750 osf[3-9]*)
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7751 # All OSF/1 code is PIC.
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7752 wl='-Wl,'
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7753 ;;
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7754
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7755 aix[3-9]*)
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7756 # All AIX code is PIC.
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7757 wl='-Wl,'
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7758 ;;
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7759
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7760 sco3.2v5*)
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7761 dll_cflags='-belf -Kpic'
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7762 wl='-Wl,'
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7763 ;;
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7764
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7765 unixware*)
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7766 dll_cflags="-KPIC"
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7767 wl="-Wl,"
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7768 ;;
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7769
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7770 sysv4*)
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7771 dll_cflags="-KPIC"
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7772 wl="-Wl,"
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7773 ;;
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7774
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7775 sysv5*)
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7776 dll_cflags="-KPIC"
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7777 wl="-Wl,"
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7778 ;;
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7779
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7780 solaris2*)
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7781 dll_cflags='-KPIC'
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7782 wl='-Wl,'
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7783 ;;
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7784
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7785 sunos4*)
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7786 dll_cflags='-PIC'
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7787 wl='-Qoption ld '
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7788 ;;
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7789
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7790 uts4*)
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7791 dll_cflags='-pic'
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7792 ;;
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7793
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7794 *)
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7795 can_build_shared=no
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7796 ;;
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7797 esac
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7798 fi
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7799
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7800 if test -n "$dll_cflags"; then
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7801 echo "$ac_t""${dll_cflags}" 1>&6
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7802
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7803 # Check to make sure the dll_cflags actually works.
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7804 echo $ac_n "checking if PIC flag ${dll_cflags} really works""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
7805 echo "configure:7806: checking if PIC flag ${dll_cflags} really works" >&5
997
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7806 save_CFLAGS="$CFLAGS"
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7807 CFLAGS="$CFLAGS $dll_cflags -DPIC"
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7808 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
7809 #line 7810 "configure"
997
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7810 #include "confdefs.h"
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7811
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7812 int main() {
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7813 int x=0;
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7814 ; return 0; }
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7815 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
7816 if { (eval echo configure:7817: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
997
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7817 rm -rf conftest*
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7818
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7819 # On HP-UX, the stripped-down bundled CC doesn't accept +Z, but also
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7820 # reports no error. So, we need to grep stderr for (Bundled).
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7821 if grep '(Bundled)' config.log >/dev/null; then
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7822 echo "$ac_t""no" 1>&6
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7823 can_build_shared=no
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7824 dll_cflags=
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7825 else
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7826 echo "$ac_t""yes" 1>&6
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7827 fi
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7828 else
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7829 echo "configure: failed program was:" >&5
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7830 cat conftest.$ac_ext >&5
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7831 rm -rf conftest*
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7832 echo "$ac_t""no" 1>&6
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7833 can_build_shared=no
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7834 dll_cflags=
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7835 fi
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7836 rm -f conftest*
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7837 CFLAGS="$save_CFLAGS"
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7838 else
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7839 echo "$ac_t""none" 1>&6
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7840 fi
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7841
1111
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
7842 if test -n "$cygwin_warn"; then
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
7843 echo "configure: warning: Cannot currently build modules under Cygwin." 1>&2
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
7844 fi
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
7845
997
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7846 if test "$can_build_shared" = "yes"; then
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7847 cc_produces_so=no
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7848 xldf=
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7849 xcldf=
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7850 echo $ac_n "checking if C compiler can produce shared libraries""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
7851 echo "configure:7852: checking if C compiler can produce shared libraries" >&5
997
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7852 if test "$XEGCC" = yes; then
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7853 xcldf="-shared"
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7854 xldf="-shared"
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7855 else # Not using GCC
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7856 case "$xehost_os" in
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7857 aix[3-9]*)
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7858 xldf="-bE:ELLSONAME.exp -H512 -T512 -bhalt:4 -bM:SRE -bnoentry -lc"
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7859 xcldf="${wl}-bE:ELLSONAME.exp ${wl}-H512 ${wl}-T512 ${wl}-bhalt:4 ${wl}-bM:SRE ${wl}-bnoentry ${wl}-lc"
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7860 ;;
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7861
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7862 freebsd2* | netbsd* | openbsd*)
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7863 xldf="-Bshareable"
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7864 xcldf="${wl}-Bshareable"
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7865 ;;
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7866
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7867 freebsd3*)
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7868 xcldf="-shared"
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7869 ;;
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7870
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7871 hpux*)
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7872 xldf="-b +s"
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7873 xcldf="${wl}-b ${wl}+s"
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7874 ;;
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7875
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7876 irix[5-9]* | osf[3-9]*)
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7877 xcldf="${wl}-shared"
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7878 xldf="-shared"
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7879 ;;
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7880
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7881 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7* | uts4*)
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7882 xcldf="-G"
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7883 xldf="-G"
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7884 ;;
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7885
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7886 sunos4*)
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7887 xcldf="${wl}-assert ${wl}pure-text ${wl}-Bstatic"
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7888 xldf="-assert pure-text -Bstatic"
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7889 ;;
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7890 esac
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7891 fi # End if if we are using gcc
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7892
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7893 if test -n "$xcldf"; then
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7894 save_LDFLAGS=$LDFLAGS
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7895 save_LIBS=$LIBS
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7896 save_xe_libs=$xe_libs
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7897 LDFLAGS="$xcldf $LDFLAGS"
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7898 LIBS=
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7899 xe_libs=
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7900 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7901 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
7902 #line 7903 "configure"
997
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7903 #include "confdefs.h"
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7904
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7905 int main() {
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7906 int x=0;
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7907 ; return 0; }
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7908 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
7909 if { (eval echo configure:7910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
997
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7910 rm -rf conftest*
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7911 cc_produces_so=yes
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7912 else
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7913 echo "configure: failed program was:" >&5
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7914 cat conftest.$ac_ext >&5
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7915 rm -rf conftest*
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7916 cc_produces_so=no
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7917 fi
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7918 rm -f conftest*
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7919 LDFLAGS=$save_LDFLAGS
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7920 LIBS=$save_LIBS
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7921 xe_libs=$save_xe_libs
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7922 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7923 else
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7924 cc_produces_so=no
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7925 fi
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7926 echo "$ac_t""${cc_produces_so}" 1>&6
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7927
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7928 LTLD=$LD
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7929 if test -z "$LTLD"; then
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7930 ac_prog=ld
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7931 if test "$XEGCC" = yes; then
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7932 # Check if gcc -print-prog-name=ld gives a path.
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7933 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
7934 echo "configure:7935: checking for ld used by GCC" >&5
997
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7935 ac_prog=`($CC -print-prog-name=ld) 2>&5`
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7936 case "$ac_prog" in
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7937 # Accept absolute paths.
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7938 /*)
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7939 if test -z "$LTLD"; then
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7940 # case "$ac_prog" in
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7941 # *gcc-lib*) LTLD="$CC"
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7942 # ;;
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7943 # *)
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7944 LTLD="$ac_prog"
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7945 # ;;
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7946 # esac
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7947 fi
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7948 ;;
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7949 "")
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7950 # If it fails, then pretend we aren't using GCC.
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7951 ac_prog=ld
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7952 ;;
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7953 *)
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7954 # If it is relative, then search for the first ld in PATH.
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7955 with_gnu_ld=unknown
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7956 ;;
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7957 esac
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7958 else
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7959 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
7960 echo "configure:7961: checking for GNU ld" >&5
997
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7961 fi
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7962
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7963 if test -z "$LTLD"; then
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7964 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7965 for ac_dir in $PATH; do
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7966 test -z "$ac_dir" && ac_dir=.
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7967 if test -f "$ac_dir/$ac_prog"; then
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7968 LTLD="$ac_dir/$ac_prog"
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7969 # Check to see if the program is GNU ld. I'd rather use --version,
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7970 # but apparently some GNU ld's only accept -v.
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7971 # Break only if it was the GNU/non-GNU ld that we prefer.
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7972 if "$LTLD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7973 xe_gnu_ld=yes
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7974 else
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7975 xe_gnu_ld=no
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7976 fi
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7977 fi
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7978 done
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7979 IFS="$ac_save_ifs"
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7980 fi
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7981
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7982 if test -n "$LTLD"; then
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7983 echo "$ac_t""${LTLD}" 1>&6
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7984 else
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7985 echo "$ac_t""no" 1>&6
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7986 fi
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7987
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7988 if test -z "$LTLD" -a "$cc_produces_so" = no; then
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7989 { echo "configure: error: no acceptable linker found in \$PATH" 1>&2; exit 1; }
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7990 exit 1
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7991 fi
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7992 fi
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7993
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7994 ld_dynamic_link_flags=
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7995
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7996 # Check to see if it really is or isn't GNU ld.
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7997 echo $ac_n "checking if the linker is GNU ld""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
7998 echo "configure:7999: checking if the linker is GNU ld" >&5
997
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
7999 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8000 if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8001 xe_gnu_ld=yes
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8002 else
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8003 xe_gnu_ld=no
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8004 fi
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8005 echo "$ac_t""${xe_gnu_ld}" 1>&6
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8006
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8007 case "$xehost_os" in
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8008 amigaos* | sunos4*)
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8009 # On these operating systems, we should treat GNU ld like the system ld.
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8010 gnu_ld_acts_native=yes
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8011 ;;
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8012 *)
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8013 gnu_ld_acts_native=no
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8014 ;;
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8015 esac
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8016
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8017 if test "$cc_produces_so" = "yes"; then
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8018 dll_ld=$CC
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8019 dll_ldflags=$xcldf
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8020 can_build_shared=yes
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8021 ld_shlibs=yes
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8022 else
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8023 # OK - only NOW do we futz about with ld.
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8024 # See if the linker supports building shared libraries.
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8025 echo $ac_n "checking whether the linker supports shared libraries""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
8026 echo "configure:8027: checking whether the linker supports shared libraries" >&5
997
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8027 dll_ld=$CC
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8028 dll_ldflags=$LDFLAGS
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8029 ld_shlibs=yes
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8030 can_build_shared=yes
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8031 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8032 # See if GNU ld supports shared libraries.
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8033 if $LTLD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8034 dll_ld=$CC
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8035 dll_ldflags="-shared"
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8036 ld_shlibs=yes
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8037 else
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8038 ld_shlibs=no
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8039 fi
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8040 else
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8041 # PORTME fill in a description of your system's linker (not GNU ld)
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8042 case "$xehost_os" in
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8043 aix3*)
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8044 dll_ld=$LTLD
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8045 dll_ldflags=$xldf
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8046 ;;
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8047
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8048 aix[4-9]*)
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8049 dll_ldflags=$xcldf
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8050 ;;
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8051
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8052 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8053 # support. Future versions do this automatically, but an explicit c++rt0.o
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8054 # doesn't break anything, and helps significantly (at the cost of a little
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8055 # extra space).
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8056 freebsd2.2*)
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8057 dll_ld=$LTLD
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8058 dll_ldflags=$xldf
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8059 dll_post="/usr/lib/c++rt0.o"
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8060 ;;
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8061
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8062 # Unfortunately, older versions of FreeBSD 2 don't have this feature.
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8063 freebsd2*)
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8064 dll_ld=$LTLD
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8065 dll_ldflags="-Bshareable"
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8066 ;;
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8067
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8068 # FreeBSD 3, at last, uses gcc -shared to do shared libraries.
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8069 freebsd3*)
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8070 dll_ldflags="-shared"
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8071 ;;
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8072
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8073 hpux*)
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8074 dll_ld=$LTLD
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8075 dll_ldflags=$xldf
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8076 ;;
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8077
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8078 irix[5-9]*)
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8079 dll_ld=$LTLD
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8080 dll_ldflags=$xldf
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8081 ;;
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8082
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8083 netbsd*)
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8084 # Tested with NetBSD 1.2 ld
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8085 dll_ld=$LTLD
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8086 dll_ldflags=$xldf
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8087 ;;
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8088
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8089 openbsd*)
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8090 dll_ld=$LTLD
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8091 dll_ldflags=$xldf
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8092 ;;
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8093
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8094 osf3* | osf4*)
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8095 dll_ld=$LTLD
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8096 dll_ldflags=$xldf
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8097 ;;
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8098
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8099 # For both SCO and Solaris we MAY want to have LDFLAGS include -z text
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8100 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7*)
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8101 dll_ld=$LTLD
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8102 case "$dll_ld" in
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8103 *gcc*) dll_ldflags="-shared"
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8104 dll_ld=$CC
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8105 ;;
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8106 *) dll_ldflags="-G"
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8107 ;;
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8108 esac
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8109 ;;
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8110
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8111 sunos4*)
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8112 if test "$XEGCC" = yes; then
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8113 dll_ld=$CC
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8114 else
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8115 dll_ld=$LTLD
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8116 fi
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8117 dll_ldflags=$xldf
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8118 ;;
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8119
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8120 uts4*)
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8121 dll_ld=$LTLD
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8122 dll_ldflags="-G"
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8123 ;;
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8124
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8125 bsdi*)
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8126 dll_ldflags="-r"
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8127 dll_ld="shlicc2"
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8128 ;;
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8129
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8130 *)
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8131 ld_shlibs=no
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8132 can_build_shared=no
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8133 ;;
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8134 esac
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8135 fi
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8136 echo "$ac_t""${ld_shlibs}" 1>&6
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8137 if test "$ld_shlibs" = "no"; then
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8138 can_build_shared=no
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8139 fi
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8140 fi # End of if cc_produces_so = no
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8141
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8142
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8143 if test "$xe_gnu_ld" = yes; then
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8144 if test "$ld_shlibs" = yes; then
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8145 ld_dynamic_link_flags="${wl}-export-dynamic"
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8146 fi
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8147 fi
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8148
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8149 if test -z "$ld_dynamic_link_flags"; then
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8150 case "$xehost_os" in
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8151 aix[3-9]*)
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8152 ld_dynamic_link_flags=
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8153 ;;
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8154
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8155 freebsd2.2*)
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8156 ld_dynamic_link_flags=
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8157 ;;
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8158
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8159 freebsd2*)
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8160 ld_dynamic_link_flags=
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8161 ;;
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8162
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8163 freebsd3*)
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8164 ld_dynamic_link_flags=
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8165 ;;
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8166
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8167 hpux*)
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8168 ld_dynamic_link_flags="${wl}-E"
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8169 ;;
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8170
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8171 irix[5-9]*)
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8172 ld_dynamic_link_flags=
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8173 ;;
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8174
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8175 netbsd*)
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8176 ld_dynamic_link_flags=
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8177 ;;
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8178
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8179 openbsd*)
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8180 ld_dynamic_link_flags=
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8181 ;;
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8182
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8183 osf3* | osf4*)
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8184 ld_dynamic_link_flags=
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8185 ;;
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8186
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8187 solaris2* | solaris7*)
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8188 ld_dynamic_link_flags=
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8189 ;;
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8190
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8191 sco3.2v5* | unixware* | sysv5* | sysv4*)
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8192 ld_dynamic_link_flags="${wl}-Bexport"
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8193 ;;
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8194
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8195 sunos4*)
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8196 ld_dynamic_link_flags=
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8197 ;;
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8198
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8199 uts4*)
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8200 ld_dynamic_link_flags=
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8201 ;;
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8202
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8203 bsdi*)
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8204 ld_dynamic_link_flags=
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8205 ;;
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8206
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8207 esac
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8208 fi # End of if -z ld_dynamic_link_flags
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8209 fi # End of if test "$can_build_shared" = "yes"
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8210
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8211
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8212
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8213
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8214
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8215
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8216
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8217
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8218 fi
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8219
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8220 if test "$can_build_shared" = "yes"; then
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8221 { test "$extra_verbose" = "yes" && cat << \EOF
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8222 Defining HAVE_SHLIB
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8223 EOF
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8224 cat >> confdefs.h <<\EOF
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8225 #define HAVE_SHLIB 1
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8226 EOF
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8227 }
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8228
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8229 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8230 test -n "$libdl" && LIBS="-l${libdl} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${libdl}\" to \$LIBS"; fi
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8231 for ac_func in dlerror _dlerror
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8232 do
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8233 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
8234 echo "configure:8235: checking for $ac_func" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
8235
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
8236 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
8237 #line 8238 "configure"
997
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8238 #include "confdefs.h"
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8239 /* System header to define __stub macros and hopefully few prototypes,
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8240 which can conflict with char $ac_func(); below. */
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8241 #include <assert.h>
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8242 /* Override any gcc2 internal prototype to avoid an error. */
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8243 /* We use char because int might match the return type of a gcc2
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8244 builtin and then its argument prototype would still apply. */
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8245 char $ac_func();
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8246
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8247 int main() {
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8248
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8249 /* The GNU C library defines this for functions which it implements
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8250 to always fail with ENOSYS. Some functions are actually named
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8251 something starting with __ and the normal name is an alias. */
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8252 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8253 choke me
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8254 #else
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8255 $ac_func();
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8256 #endif
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8257
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8258 ; return 0; }
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8259 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
8260 if { (eval echo configure:8261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
997
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8261 rm -rf conftest*
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8262 eval "ac_cv_func_$ac_func=yes"
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8263 else
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8264 echo "configure: failed program was:" >&5
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8265 cat conftest.$ac_ext >&5
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8266 rm -rf conftest*
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8267 eval "ac_cv_func_$ac_func=no"
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8268 fi
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8269 rm -f conftest*
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8270
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8271 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8272 echo "$ac_t""yes" 1>&6
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8273 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8274 { test "$extra_verbose" = "yes" && cat << EOF
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8275 Defining $ac_tr_func
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8276 EOF
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8277 cat >> confdefs.h <<EOF
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8278 #define $ac_tr_func 1
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8279 EOF
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8280 }
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8281
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8282 else
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8283 echo "$ac_t""no" 1>&6
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8284 fi
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8285 done
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8286
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8287 with_modules=yes
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8288 MOD_CC="../../lib-src/ellcc"
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8289 MODCFLAGS="\$(CFLAGS) --mode=compile --mod-output=\$@ -I../../src -I\$(srcdir)/../../src"
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8290 INSTALLPATH="\$(moduledir)"
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8291 MOD_INSTALL_PROGRAM=${INSTALL_PROGRAM}
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8292 OBJECT_TO_BUILD="\$(MODNAME).ell"
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8293 else
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8294 if test "$with_modules" = "yes"; then
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8295 { echo "Error:" "Required module support cannot be provided." >&2; exit 1; }
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8296 else
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8297 echo " No module support."
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8298 fi
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8299 with_modules=no
1111
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
8300 MOD_CC="$XEMACS_CC"
997
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8301 MODCFLAGS="\$(CFLAGS) -I../../src -I\$(srcdir)/../../src"
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8302 INSTALLPATH=""
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8303 MOD_INSTALL_PROGRAM="true"
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8304 OBJECT_TO_BUILD="\$(MODNAME).o"
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8305 fi
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8306 fi
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8307 MODARCHDIR=
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8308 MAKE_DOCFILE="../../lib-src/make-docfile"
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8309
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8310
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8311
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8312
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8313
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8314
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8315
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8316
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8317
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8318 if test "$with_tooltalk" != "no" ; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8319 for dir in "" "Tt/" "desktop/" ; do
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8320 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8321 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
8322 echo "configure:8323: checking for ${dir}tt_c.h" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
8323
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
8324 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
8325 #line 8326 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8326 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8327 #include <${dir}tt_c.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8328 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8329 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
8330 { (eval echo configure:8331: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
8331 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8332 if test -z "$ac_err"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8333 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8334 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8335 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8336 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8337 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8338 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8339 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8340 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8341 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8342 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8343 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8344 echo "$ac_t""yes" 1>&6
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8345 tt_c_h_file="${dir}tt_c.h"; break
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8346 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8347 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8348 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8349
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8350 done
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8351 if test -z "$tt_c_h_file"; then
284
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
8352 if test "$with_tooltalk" = "yes"; then
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
8353 (echo "$progname: Usage error:"
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
8354 echo " " "Unable to find required tooltalk header files."
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
8355 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
8356 fi
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
8357 with_tooltalk=no
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
8358 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8359 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8360 if test "$with_tooltalk" != "no" ; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8361 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8362
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8363 xe_msg_checking="for tt_message_create in -ltt"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8364 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8365 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
8366 echo "configure:8367: checking "$xe_msg_checking"" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8367 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8368
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8369 xe_check_libs=" -ltt $extra_libs"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8370 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
8371 #line 8372 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8372 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8373 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8374 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8375 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8376 char tt_message_create();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8377
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8378 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8379 tt_message_create()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8380 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8381 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
8382 if { (eval echo configure:8383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8383 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8384 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8385 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8386 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8387 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8388 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8389 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8390 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8391 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8392 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8393
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
8394 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8395 echo "$ac_t""yes" 1>&6
284
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
8396 tt_libs="-ltt $extra_libs"; break
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8397 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8398 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8399 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8400 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8401
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8402
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8403 done
284
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
8404 if test -z "$tt_libs"; then
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
8405 if test "$with_tooltalk" = "yes"; then
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
8406 (echo "$progname: Usage error:"
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
8407 echo " " "Unable to find required tooltalk libraries."
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
8408 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
8409 fi
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
8410 with_tooltalk=no
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
8411 fi
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
8412 fi
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
8413 test -z "$with_tooltalk" && with_tooltalk=yes
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8414 if test "$with_tooltalk" = "yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8415 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8416 Defining TOOLTALK
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8417 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8418 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8419 #define TOOLTALK 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8420 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8421 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8422
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8423 { test "$extra_verbose" = "yes" && cat << EOF
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8424 Defining TT_C_H_FILE = "$tt_c_h_file"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8425 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8426 cat >> confdefs.h <<EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8427 #define TT_C_H_FILE "$tt_c_h_file"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8428 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8429 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8430
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
8431 libs_x="$tt_libs $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$tt_libs\" to \$libs_x"; fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8432 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8433
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8434 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8435 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
8436 echo "configure:8437: checking for Dt/Dt.h" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
8437
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
8438 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
8439 #line 8440 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8440 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8441 #include <Dt/Dt.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8442 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8443 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
8444 { (eval echo configure:8445: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
8445 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8446 if test -z "$ac_err"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8447 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8448 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8449 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8450 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8451 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8452 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8453 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8454 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8455 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8456 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8457 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8458 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8459 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8460 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8461 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8462 with_cde=no
136
b980b6286996 Import from CVS: tag r20-2b2
cvs
parents: 126
diff changeset
8463 fi
b980b6286996 Import from CVS: tag r20-2b2
cvs
parents: 126
diff changeset
8464 }
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8465 test -z "$with_cde" && {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8466 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
8467 echo "configure:8468: checking for DtDndDragStart in -lDtSvc" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8468 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8469
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8470 xe_check_libs=" -lDtSvc "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8471 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
8472 #line 8473 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8473 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8474 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8475 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8476 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8477 char DtDndDragStart();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8478
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8479 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8480 DtDndDragStart()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8481 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8482 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
8483 if { (eval echo configure:8484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8484 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8485 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8486 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8487 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8488 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8489 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8490 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8491 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8492 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8493 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8494
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
8495 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8496 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8497 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8498 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8499 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8500 with_cde=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8501 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8502
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8503 }
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8504 if test "$with_dragndrop" = "no" ; then
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8505 if test "$with_cde" = "yes" ; then
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8506 echo "configure: warning: --with-cde forced to \`no'; no generic Drag'n'Drop support" 1>&2
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8507 fi
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8508 with_cde=no
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8509 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8510 test -z "$with_cde" && with_cde=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8511 if test "$with_cde" = "yes" ; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8512 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8513 Defining HAVE_CDE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8514 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8515 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8516 #define HAVE_CDE 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8517 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8518 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8519
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
8520 libs_x="-lDtSvc $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lDtSvc\" to \$libs_x"; fi
282
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 280
diff changeset
8521 dragndrop_proto="$dragndrop_proto CDE" && if test "$extra_verbose" = "yes"; then echo " Appending \"CDE\" to \$dragndrop_proto"; fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8522 with_tooltalk=yes # CDE requires Tooltalk
167
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
8523 need_motif=yes # CDE requires Motif
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8524 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8525
288
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 286
diff changeset
8526 test "$window_system" != "x11" && with_offix=no
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 286
diff changeset
8527 if test "$with_xmu" != yes -a "$with_x11" = yes; then
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8528 if test "$with_offix" = "yes" ; then
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8529 echo "configure: warning: --with-offix forced to \`no'; no real Xmu support" 1>&2
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8530 fi
288
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 286
diff changeset
8531 with_offix=no
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 286
diff changeset
8532 fi
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 286
diff changeset
8533 if test "$with_dragndrop" = no; then
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8534 if test "$with_offix" = "yes" ; then
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8535 echo "configure: warning: --with-offix forced to \`no'; no generic Drag'n'Drop support" 1>&2
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8536 fi
288
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 286
diff changeset
8537 with_offix=no
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 286
diff changeset
8538 fi
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 286
diff changeset
8539 if test "$with_cde" = yes; then
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8540 if test "$with_offix" = "yes" ; then
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8541 echo "configure: warning: --with-offix forced to \`no'; CDE already found" 1>&2
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8542 fi
288
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 286
diff changeset
8543 with_offix=no
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 286
diff changeset
8544 fi
300
3cc9f0ebfbd1 Import from CVS: tag r21-0b48
cvs
parents: 298
diff changeset
8545 test -z "$with_offix" && with_offix=no
288
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 286
diff changeset
8546 if test "$with_offix" = "yes"; then
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 286
diff changeset
8547 { test "$extra_verbose" = "yes" && cat << \EOF
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 286
diff changeset
8548 Defining HAVE_OFFIX_DND
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 286
diff changeset
8549 EOF
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 286
diff changeset
8550 cat >> confdefs.h <<\EOF
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 286
diff changeset
8551 #define HAVE_OFFIX_DND 1
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 286
diff changeset
8552 EOF
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 286
diff changeset
8553 }
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 286
diff changeset
8554
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 286
diff changeset
8555 dnd_objs="$dnd_objs offix.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"offix.o\" to \$dnd_objs"; fi
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 286
diff changeset
8556 dragndrop_proto="$dragndrop_proto OffiX" && if test "$extra_verbose" = "yes"; then echo " Appending \"OffiX\" to \$dragndrop_proto"; fi
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 286
diff changeset
8557 fi
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
8558 if test "$with_gtk" = "yes"; then
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
8559 dragndrop_proto="$dragndrop_proto GTK" && if test "$extra_verbose" = "yes"; then echo " Appending \"GTK\" to \$dragndrop_proto"; fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
8560 fi
288
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 286
diff changeset
8561
282
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 280
diff changeset
8562 if test "$with_dragndrop" != "no" ; then
446
1ccc32a20af4 Import from CVS: tag r21-2-38
cvs
parents: 444
diff changeset
8563 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
8564 echo "configure:8565: checking if drag and drop API is needed" >&5
282
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 280
diff changeset
8565 if test -n "$dragndrop_proto" ; then
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 280
diff changeset
8566 with_dragndrop=yes
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 280
diff changeset
8567 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 280
diff changeset
8568 { test "$extra_verbose" = "yes" && cat << \EOF
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 280
diff changeset
8569 Defining HAVE_DRAGNDROP
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 280
diff changeset
8570 EOF
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 280
diff changeset
8571 cat >> confdefs.h <<\EOF
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 280
diff changeset
8572 #define HAVE_DRAGNDROP 1
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 280
diff changeset
8573 EOF
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 280
diff changeset
8574 }
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 280
diff changeset
8575
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 280
diff changeset
8576 extra_objs="$extra_objs dragdrop.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"dragdrop.o\" to \$extra_objs"; fi
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 280
diff changeset
8577 else
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 280
diff changeset
8578 with_dragndrop=no
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 280
diff changeset
8579 echo "$ac_t""no" 1>&6
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 280
diff changeset
8580 fi
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 280
diff changeset
8581 fi
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 280
diff changeset
8582
259
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
8583 echo "checking for LDAP" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
8584 echo "configure:8585: checking for LDAP" >&5
997
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8585 ldap_libs=
259
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
8586 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'`
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
8587 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
8588 echo "configure:8589: checking for ldap.h" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
8589
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
8590 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
8591 #line 8592 "configure"
259
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
8592 #include "confdefs.h"
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
8593 #include <ldap.h>
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
8594 EOF
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
8595 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
8596 { (eval echo configure:8597: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
8597 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
259
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
8598 if test -z "$ac_err"; then
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
8599 rm -rf conftest*
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
8600 eval "ac_cv_header_$ac_safe=yes"
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
8601 else
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
8602 echo "$ac_err" >&5
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
8603 echo "configure: failed program was:" >&5
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
8604 cat conftest.$ac_ext >&5
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
8605 rm -rf conftest*
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
8606 eval "ac_cv_header_$ac_safe=no"
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
8607 fi
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
8608 rm -f conftest*
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
8609 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
8610 echo "$ac_t""yes" 1>&6
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
8611 :
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
8612 else
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
8613 echo "$ac_t""no" 1>&6
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
8614 with_ldap=no
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
8615 fi
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
8616 }
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
8617 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'`
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
8618 echo $ac_n "checking for lber.h""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
8619 echo "configure:8620: checking for lber.h" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
8620
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
8621 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
8622 #line 8623 "configure"
259
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
8623 #include "confdefs.h"
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
8624 #include <lber.h>
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
8625 EOF
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
8626 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
8627 { (eval echo configure:8628: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
8628 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
259
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
8629 if test -z "$ac_err"; then
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
8630 rm -rf conftest*
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
8631 eval "ac_cv_header_$ac_safe=yes"
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
8632 else
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
8633 echo "$ac_err" >&5
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
8634 echo "configure: failed program was:" >&5
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
8635 cat conftest.$ac_ext >&5
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
8636 rm -rf conftest*
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
8637 eval "ac_cv_header_$ac_safe=no"
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
8638 fi
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
8639 rm -f conftest*
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
8640 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
8641 echo "$ac_t""yes" 1>&6
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
8642 :
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
8643 else
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
8644 echo "$ac_t""no" 1>&6
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
8645 with_ldap=no
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
8646 fi
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
8647 }
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
8648 if test "$with_ldap" != "no"; then
418
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
8649
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
8650 echo $ac_n "checking for ldap_search in -lldap""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
8651 echo "configure:8652: checking for ldap_search in -lldap" >&5
418
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
8652 ac_lib_var=`echo ldap'_'ldap_search | sed 'y%./+-%__p_%'`
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
8653
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
8654 xe_check_libs=" -lldap "
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
8655 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
8656 #line 8657 "configure"
418
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
8657 #include "confdefs.h"
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
8658 /* Override any gcc2 internal prototype to avoid an error. */
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
8659 /* We use char because int might match the return type of a gcc2
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
8660 builtin and then its argument prototype would still apply. */
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
8661 char ldap_search();
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
8662
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
8663 int main() {
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
8664 ldap_search()
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
8665 ; return 0; }
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
8666 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
8667 if { (eval echo configure:8668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
259
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
8668 rm -rf conftest*
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
8669 eval "ac_cv_lib_$ac_lib_var=yes"
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
8670 else
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
8671 echo "configure: failed program was:" >&5
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
8672 cat conftest.$ac_ext >&5
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
8673 rm -rf conftest*
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
8674 eval "ac_cv_lib_$ac_lib_var=no"
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
8675 fi
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
8676 rm -f conftest*
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
8677 xe_check_libs=""
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
8678
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
8679 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
8680 echo "$ac_t""yes" 1>&6
418
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
8681 with_ldap_nolber=yes
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
8682 else
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
8683 echo "$ac_t""no" 1>&6
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
8684 with_ldap_nolber=no
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
8685 fi
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
8686
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
8687
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
8688 test "$with_ldap_nolber" = "no" && {
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
8689 xe_msg_checking="for ldap_open in -lldap"
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
8690 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber"
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
8691 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
8692 echo "configure:8693: checking "$xe_msg_checking"" >&5
418
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
8693 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
8694
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
8695 xe_check_libs=" -lldap -llber"
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
8696 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
8697 #line 8698 "configure"
418
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
8698 #include "confdefs.h"
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
8699 /* Override any gcc2 internal prototype to avoid an error. */
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
8700 /* We use char because int might match the return type of a gcc2
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
8701 builtin and then its argument prototype would still apply. */
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
8702 char ldap_open();
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
8703
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
8704 int main() {
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
8705 ldap_open()
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
8706 ; return 0; }
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
8707 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
8708 if { (eval echo configure:8709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
259
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
8709 rm -rf conftest*
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
8710 eval "ac_cv_lib_$ac_lib_var=yes"
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
8711 else
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
8712 echo "configure: failed program was:" >&5
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
8713 cat conftest.$ac_ext >&5
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
8714 rm -rf conftest*
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
8715 eval "ac_cv_lib_$ac_lib_var=no"
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
8716 fi
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
8717 rm -f conftest*
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
8718 xe_check_libs=""
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
8719
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
8720 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
8721 echo "$ac_t""yes" 1>&6
418
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
8722 with_ldap_lber=yes
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
8723 else
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
8724 echo "$ac_t""no" 1>&6
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
8725 with_ldap_lber=no
259
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
8726 fi
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
8727
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
8728 }
422
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
8729 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" && {
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
8730 xe_msg_checking="for ldap_open in -lldap"
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
8731 test -n "-llber -lkrb" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb"
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
8732 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
8733 echo "configure:8734: checking "$xe_msg_checking"" >&5
422
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
8734 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
8735
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
8736 xe_check_libs=" -lldap -llber -lkrb"
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
8737 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
8738 #line 8739 "configure"
422
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
8739 #include "confdefs.h"
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
8740 /* Override any gcc2 internal prototype to avoid an error. */
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
8741 /* We use char because int might match the return type of a gcc2
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
8742 builtin and then its argument prototype would still apply. */
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
8743 char ldap_open();
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
8744
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
8745 int main() {
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
8746 ldap_open()
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
8747 ; return 0; }
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
8748 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
8749 if { (eval echo configure:8750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
422
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
8750 rm -rf conftest*
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
8751 eval "ac_cv_lib_$ac_lib_var=yes"
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
8752 else
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
8753 echo "configure: failed program was:" >&5
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
8754 cat conftest.$ac_ext >&5
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
8755 rm -rf conftest*
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
8756 eval "ac_cv_lib_$ac_lib_var=no"
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
8757 fi
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
8758 rm -f conftest*
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
8759 xe_check_libs=""
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
8760
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
8761 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
8762 echo "$ac_t""yes" 1>&6
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
8763 with_ldap_krb=yes
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
8764 else
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
8765 echo "$ac_t""no" 1>&6
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
8766 with_ldap_krb=no
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
8767 fi
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
8768
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
8769 }
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
8770 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" -a "$with_ldap_krb" = "no" && {
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
8771 xe_msg_checking="for ldap_open in -lldap"
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
8772 test -n "-llber -lkrb -ldes" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb -ldes"
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
8773 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
8774 echo "configure:8775: checking "$xe_msg_checking"" >&5
422
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
8775 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
8776
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
8777 xe_check_libs=" -lldap -llber -lkrb -ldes"
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
8778 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
8779 #line 8780 "configure"
422
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
8780 #include "confdefs.h"
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
8781 /* Override any gcc2 internal prototype to avoid an error. */
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
8782 /* We use char because int might match the return type of a gcc2
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
8783 builtin and then its argument prototype would still apply. */
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
8784 char ldap_open();
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
8785
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
8786 int main() {
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
8787 ldap_open()
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
8788 ; return 0; }
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
8789 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
8790 if { (eval echo configure:8791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
422
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
8791 rm -rf conftest*
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
8792 eval "ac_cv_lib_$ac_lib_var=yes"
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
8793 else
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
8794 echo "configure: failed program was:" >&5
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
8795 cat conftest.$ac_ext >&5
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
8796 rm -rf conftest*
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
8797 eval "ac_cv_lib_$ac_lib_var=no"
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
8798 fi
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
8799 rm -f conftest*
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
8800 xe_check_libs=""
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
8801
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
8802 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
8803 echo "$ac_t""yes" 1>&6
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
8804 with_ldap_krbdes=yes
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
8805 else
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
8806 echo "$ac_t""no" 1>&6
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
8807 with_ldap_krbdes=no
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
8808 fi
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
8809
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
8810 }
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
8811 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
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
8812 fi
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
8813 if test "$with_ldap" = "yes"; then
259
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
8814 { test "$extra_verbose" = "yes" && cat << \EOF
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
8815 Defining HAVE_LDAP
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
8816 EOF
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
8817 cat >> confdefs.h <<\EOF
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
8818 #define HAVE_LDAP 1
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
8819 EOF
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
8820 }
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
8821
418
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
8822 if test "$with_ldap_nolber" = "yes" ; then
997
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8823 ldap_libs="-lldap $ldap_libs" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$ldap_libs"; fi
418
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
8824 else
422
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
8825 if test "$with_ldap_krb" = "yes" ; then
997
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8826 ldap_libs="-lkrb $ldap_libs" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$ldap_libs"; fi
422
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
8827 fi
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
8828 if test "$with_ldap_krbdes" = "yes" ; then
997
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8829 ldap_libs="-ldes $ldap_libs" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldes\" to \$ldap_libs"; fi
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8830 ldap_libs="-lkrb $ldap_libs" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$ldap_libs"; fi
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8831 fi
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8832 ldap_libs="-llber $ldap_libs" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-llber\" to \$ldap_libs"; fi
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8833 ldap_libs="-lldap $ldap_libs" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$ldap_libs"; fi
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8834 fi
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8835 save_LIBS="$LIBS" LIBS="$LIBS $ldap_libs"
418
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
8836 for ac_func in ldap_set_option ldap_get_lderrno ldap_result2error ldap_parse_result
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
8837 do
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
8838 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
8839 echo "configure:8840: checking for $ac_func" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
8840
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
8841 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
8842 #line 8843 "configure"
418
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
8843 #include "confdefs.h"
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
8844 /* System header to define __stub macros and hopefully few prototypes,
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
8845 which can conflict with char $ac_func(); below. */
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
8846 #include <assert.h>
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
8847 /* Override any gcc2 internal prototype to avoid an error. */
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
8848 /* We use char because int might match the return type of a gcc2
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
8849 builtin and then its argument prototype would still apply. */
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
8850 char $ac_func();
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
8851
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
8852 int main() {
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
8853
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
8854 /* The GNU C library defines this for functions which it implements
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
8855 to always fail with ENOSYS. Some functions are actually named
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
8856 something starting with __ and the normal name is an alias. */
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
8857 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
8858 choke me
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
8859 #else
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
8860 $ac_func();
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
8861 #endif
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
8862
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
8863 ; return 0; }
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
8864 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
8865 if { (eval echo configure:8866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
418
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
8866 rm -rf conftest*
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
8867 eval "ac_cv_func_$ac_func=yes"
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
8868 else
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
8869 echo "configure: failed program was:" >&5
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
8870 cat conftest.$ac_ext >&5
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
8871 rm -rf conftest*
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
8872 eval "ac_cv_func_$ac_func=no"
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
8873 fi
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
8874 rm -f conftest*
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
8875
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
8876 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
8877 echo "$ac_t""yes" 1>&6
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
8878 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
8879 { test "$extra_verbose" = "yes" && cat << EOF
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
8880 Defining $ac_tr_func
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
8881 EOF
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
8882 cat >> confdefs.h <<EOF
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
8883 #define $ac_tr_func 1
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
8884 EOF
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
8885 }
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
8886
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
8887 else
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
8888 echo "$ac_t""no" 1>&6
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
8889 fi
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
8890 done
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
8891
997
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8892 LIBS="$save_LIBS"
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8893 MAKE_SUBDIR="$MAKE_SUBDIR modules/ldap" && if test "$extra_verbose" = "yes"; then echo " Appending \"modules/ldap\" to \$MAKE_SUBDIR"; fi
1111
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
8894 need_modules_common=yes
997
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8895 if test "$with_modules" = "yes"; then
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8896 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR modules/ldap" && if test "$extra_verbose" = "yes"; then echo " Appending \"modules/ldap\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8897 fi
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8898 fi
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8899
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8900
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8901 postgresql_libs=
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8902 if test "$with_postgresql" != "no"; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8903 echo "checking for PostgreSQL" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
8904 echo "configure:8905: checking for PostgreSQL" >&5
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8905
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8906 for header_dir in "" "pgsql/" "postgresql/"; do
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8907 ac_safe=`echo "${header_dir}libpq-fe.h" | sed 'y%./+-%__p_%'`
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8908 echo $ac_n "checking for ${header_dir}libpq-fe.h""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
8909 echo "configure:8910: checking for ${header_dir}libpq-fe.h" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
8910
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
8911 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
8912 #line 8913 "configure"
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8913 #include "confdefs.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8914 #include <${header_dir}libpq-fe.h>
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8915 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8916 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
8917 { (eval echo configure:8918: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8918 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8919 if test -z "$ac_err"; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8920 rm -rf conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8921 eval "ac_cv_header_$ac_safe=yes"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8922 else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8923 echo "$ac_err" >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8924 echo "configure: failed program was:" >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8925 cat conftest.$ac_ext >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8926 rm -rf conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8927 eval "ac_cv_header_$ac_safe=no"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8928 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8929 rm -f conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8930 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8931 echo "$ac_t""yes" 1>&6
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8932 libpq_fe_h_file=${header_dir}libpq-fe.h; break
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8933 else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8934 echo "$ac_t""no" 1>&6
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8935 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8936
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8937 done
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8938
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8939 test -n "$libpq_fe_h_file" && {
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8940 echo $ac_n "checking for PQconnectdb in -lpq""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
8941 echo "configure:8942: checking for PQconnectdb in -lpq" >&5
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8942 ac_lib_var=`echo pq'_'PQconnectdb | sed 'y%./+-%__p_%'`
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8943
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8944 xe_check_libs=" -lpq "
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8945 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
8946 #line 8947 "configure"
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8947 #include "confdefs.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8948 /* Override any gcc2 internal prototype to avoid an error. */
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8949 /* We use char because int might match the return type of a gcc2
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8950 builtin and then its argument prototype would still apply. */
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8951 char PQconnectdb();
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8952
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8953 int main() {
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8954 PQconnectdb()
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8955 ; return 0; }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8956 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
8957 if { (eval echo configure:8958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8958 rm -rf conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8959 eval "ac_cv_lib_$ac_lib_var=yes"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8960 else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8961 echo "configure: failed program was:" >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8962 cat conftest.$ac_ext >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8963 rm -rf conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8964 eval "ac_cv_lib_$ac_lib_var=no"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8965 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8966 rm -f conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8967 xe_check_libs=""
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8968
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8969 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8970 echo "$ac_t""yes" 1>&6
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8971 have_libpq=yes
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8972 else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8973 echo "$ac_t""no" 1>&6
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8974 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8975
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8976 }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8977
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8978 if test -n "$libpq_fe_h_file" -a "$have_libpq" = "yes"; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8979 with_postgresql=yes
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8980 { test "$extra_verbose" = "yes" && cat << \EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8981 Defining HAVE_POSTGRESQL
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8982 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8983 cat >> confdefs.h <<\EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8984 #define HAVE_POSTGRESQL 1
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8985 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8986 }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8987
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8988
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8989 echo $ac_n "checking for PQconnectStart in -lpq""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
8990 echo "configure:8991: checking for PQconnectStart in -lpq" >&5
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8991 ac_lib_var=`echo pq'_'PQconnectStart | sed 'y%./+-%__p_%'`
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8992
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8993 xe_check_libs=" -lpq "
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8994 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
8995 #line 8996 "configure"
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8996 #include "confdefs.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8997 /* Override any gcc2 internal prototype to avoid an error. */
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8998 /* We use char because int might match the return type of a gcc2
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8999 builtin and then its argument prototype would still apply. */
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9000 char PQconnectStart();
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9001
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9002 int main() {
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9003 PQconnectStart()
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9004 ; return 0; }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9005 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
9006 if { (eval echo configure:9007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9007 rm -rf conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9008 eval "ac_cv_lib_$ac_lib_var=yes"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9009 else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9010 echo "configure: failed program was:" >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9011 cat conftest.$ac_ext >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9012 rm -rf conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9013 eval "ac_cv_lib_$ac_lib_var=no"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9014 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9015 rm -f conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9016 xe_check_libs=""
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9017
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9018 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9019 echo "$ac_t""yes" 1>&6
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9020 with_postgresqlv7=yes;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9021 { test "$extra_verbose" = "yes" && cat << \EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9022 Defining HAVE_POSTGRESQLV7
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9023 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9024 cat >> confdefs.h <<\EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9025 #define HAVE_POSTGRESQLV7 1
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9026 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9027 }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9028
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9029 else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9030 echo "$ac_t""no" 1>&6
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9031 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9032
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9033
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9034 { test "$extra_verbose" = "yes" && cat << EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9035 Defining LIBPQ_FE_H_FILE = "$libpq_fe_h_file"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9036 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9037 cat >> confdefs.h <<EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9038 #define LIBPQ_FE_H_FILE "$libpq_fe_h_file"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9039 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9040 }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9041
997
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
9042 postgresql_libs="-lpq $postgresql_libs" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpq\" to \$postgresql_libs"; fi
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
9043 MAKE_SUBDIR="$MAKE_SUBDIR modules/postgresql" && if test "$extra_verbose" = "yes"; then echo " Appending \"modules/postgresql\" to \$MAKE_SUBDIR"; fi
1111
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
9044 need_modules_common=yes
997
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
9045 if test "$with_modules" = "yes"; then
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
9046 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR modules/postgresql" && if test "$extra_verbose" = "yes"; then echo " Appending \"modules/postgresql\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
9047 fi
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9048 elif test "$with_postgresql" = "yes"; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9049 { echo "Error:" "Required PostgreSQL support cannot be provided. Check --site-prefixes." >&2; exit 1; }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9050 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9051 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9052
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9053
997
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
9054
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9055 if test "$window_system" != "none"; then
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9056 echo "checking for graphics libraries" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
9057 echo "configure:9058: checking for graphics libraries" >&5
724
76d5a3dd827a [xemacs-hg @ 2002-01-05 07:33:11 by stephent]
stephent
parents: 720
diff changeset
9058
76d5a3dd827a [xemacs-hg @ 2002-01-05 07:33:11 by stephent]
stephent
parents: 720
diff changeset
9059 libpath_xpm=
76d5a3dd827a [xemacs-hg @ 2002-01-05 07:33:11 by stephent]
stephent
parents: 720
diff changeset
9060 incpath_xpm=
76d5a3dd827a [xemacs-hg @ 2002-01-05 07:33:11 by stephent]
stephent
parents: 720
diff changeset
9061 case "$opsys" in
76d5a3dd827a [xemacs-hg @ 2002-01-05 07:33:11 by stephent]
stephent
parents: 720
diff changeset
9062 cygwin*)
76d5a3dd827a [xemacs-hg @ 2002-01-05 07:33:11 by stephent]
stephent
parents: 720
diff changeset
9063 cygwin_top=`eval "gcc -print-file-name=libc.a"` ;
76d5a3dd827a [xemacs-hg @ 2002-01-05 07:33:11 by stephent]
stephent
parents: 720
diff changeset
9064 cygwin_top=`eval "dirname ${cygwin_top}"`;
76d5a3dd827a [xemacs-hg @ 2002-01-05 07:33:11 by stephent]
stephent
parents: 720
diff changeset
9065 cygwin_top="${cygwin_top}/..";
76d5a3dd827a [xemacs-hg @ 2002-01-05 07:33:11 by stephent]
stephent
parents: 720
diff changeset
9066 case "$window_system" in
76d5a3dd827a [xemacs-hg @ 2002-01-05 07:33:11 by stephent]
stephent
parents: 720
diff changeset
9067 x11) ;;
76d5a3dd827a [xemacs-hg @ 2002-01-05 07:33:11 by stephent]
stephent
parents: 720
diff changeset
9068 msw) libpath_xpm="-L${cygwin_top}/lib/noX"
76d5a3dd827a [xemacs-hg @ 2002-01-05 07:33:11 by stephent]
stephent
parents: 720
diff changeset
9069 incpath_xpm="-I${cygwin_top}/include/noX"
76d5a3dd827a [xemacs-hg @ 2002-01-05 07:33:11 by stephent]
stephent
parents: 720
diff changeset
9070 ;;
76d5a3dd827a [xemacs-hg @ 2002-01-05 07:33:11 by stephent]
stephent
parents: 720
diff changeset
9071 gtk) ;;
76d5a3dd827a [xemacs-hg @ 2002-01-05 07:33:11 by stephent]
stephent
parents: 720
diff changeset
9072 none) ;;
76d5a3dd827a [xemacs-hg @ 2002-01-05 07:33:11 by stephent]
stephent
parents: 720
diff changeset
9073 *) ;;
76d5a3dd827a [xemacs-hg @ 2002-01-05 07:33:11 by stephent]
stephent
parents: 720
diff changeset
9074 esac
76d5a3dd827a [xemacs-hg @ 2002-01-05 07:33:11 by stephent]
stephent
parents: 720
diff changeset
9075 ;;
76d5a3dd827a [xemacs-hg @ 2002-01-05 07:33:11 by stephent]
stephent
parents: 720
diff changeset
9076 *) ;;
76d5a3dd827a [xemacs-hg @ 2002-01-05 07:33:11 by stephent]
stephent
parents: 720
diff changeset
9077 esac
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9078 xpm_problem=""
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9079 if test -z "$with_xpm"; then
724
76d5a3dd827a [xemacs-hg @ 2002-01-05 07:33:11 by stephent]
stephent
parents: 720
diff changeset
9080 CFLAGS=""$incpath_xpm" $CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$incpath_xpm"\" to \$CFLAGS"; fi
76d5a3dd827a [xemacs-hg @ 2002-01-05 07:33:11 by stephent]
stephent
parents: 720
diff changeset
9081 LDFLAGS=""$libpath_xpm" $LDFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libpath_xpm"\" to \$LDFLAGS"; fi
193
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
9082 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
9083 echo "configure:9084: checking for Xpm - no older than 3.4f" >&5
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9084 xe_check_libs=-lXpm
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9085 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
9086 #line 9087 "configure"
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9087 #include "confdefs.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9088 #define XPM_NUMBERS
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9089 #include <X11/xpm.h>
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9090 int main(int c, char **v) {
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9091 return c == 1 ? 0 :
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9092 XpmIncludeVersion != XpmLibraryVersion() ? 1 :
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9093 XpmIncludeVersion < 30406 ? 2 : 0 ;}
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9094 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
9095 if { (eval echo configure:9096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
9096 then
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9097 ./conftest dummy_arg; xpm_status=$?;
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9098 if test "$xpm_status" = "0"; then
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9099 with_xpm=yes;
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9100 else
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9101 with_xpm=no;
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9102 if test "$xpm_status" = "1"; then
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9103 xpm_problem="Xpm library version and header file version don't match!"
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9104 elif test "$xpm_status" = "2"; then
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9105 xpm_problem="Xpm library version is too old!"
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9106 else
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9107 xpm_problem="Internal xpm detection logic error!"
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9108 fi
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9109 echo "
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9110 *** WARNING *** $xpm_problem
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9111 I'm not touching that with a 10-foot pole!
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9112 If you really want to use the installed version of Xpm, rerun
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9113 configure and add '--with-xpm=yes', but don't blame me if XEmacs crashes!"
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9114 fi
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
9115 else
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9116 conftest_rc="$?"
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
9117 echo "configure: failed program was:" >&5
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
9118 cat conftest.$ac_ext >&5
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
9119 rm -fr conftest*
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
9120 with_xpm=no
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
9121 fi
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
9122 rm -fr conftest*
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9123 xe_check_libs=
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9124 echo "$ac_t""$with_xpm" 1>&6
193
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
9125 fi
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
9126 if test "$with_xpm" = "yes"; then
458
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
9127 { test "$extra_verbose" = "yes" && cat << \EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9128 Defining HAVE_XPM
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9129 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9130 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9131 #define HAVE_XPM 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9132 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9133 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9134
724
76d5a3dd827a [xemacs-hg @ 2002-01-05 07:33:11 by stephent]
stephent
parents: 720
diff changeset
9135 LDFLAGS=""$libpath_xpm" $LDFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libpath_xpm"\" to \$LDFLAGS"; fi
193
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
9136 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
724
76d5a3dd827a [xemacs-hg @ 2002-01-05 07:33:11 by stephent]
stephent
parents: 720
diff changeset
9137 CFLAGS=""$incpath_xpm" $CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$incpath_xpm"\" to \$CFLAGS"; fi
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9138 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
9139 echo "configure:9140: checking for \"FOR_MSW\" xpm" >&5
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9140 xe_check_libs=-lXpm
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9141 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
9142 #line 9143 "configure"
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9143 #include "confdefs.h"
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9144
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9145 int main() {
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9146 XpmCreatePixmapFromData()
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9147 ; return 0; }
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9148 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
9149 if { (eval echo configure:9150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9150 rm -rf conftest*
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9151 xpm_for_msw=no
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9152 else
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9153 echo "configure: failed program was:" >&5
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9154 cat conftest.$ac_ext >&5
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9155 rm -rf conftest*
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9156 xpm_for_msw=yes
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9157 fi
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9158 rm -f conftest*
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9159 xe_check_libs=
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9160 echo "$ac_t""$xpm_for_msw" 1>&6
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9161 if test "$xpm_for_msw" = "yes"; then
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9162 { test "$extra_verbose" = "yes" && cat << \EOF
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9163 Defining FOR_MSW
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9164 EOF
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9165 cat >> confdefs.h <<\EOF
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9166 #define FOR_MSW 1
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9167 EOF
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9168 }
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9169
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9170 fi
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9171 fi
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9172
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9173 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9174 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
9175 echo "configure:9176: checking for compface.h" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
9176
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
9177 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
9178 #line 9179 "configure"
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9179 #include "confdefs.h"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9180 #include <compface.h>
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9181 EOF
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9182 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
9183 { (eval echo configure:9184: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
9184 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9185 if test -z "$ac_err"; then
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9186 rm -rf conftest*
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9187 eval "ac_cv_header_$ac_safe=yes"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9188 else
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9189 echo "$ac_err" >&5
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9190 echo "configure: failed program was:" >&5
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9191 cat conftest.$ac_ext >&5
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9192 rm -rf conftest*
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9193 eval "ac_cv_header_$ac_safe=no"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9194 fi
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9195 rm -f conftest*
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9196 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9197 echo "$ac_t""yes" 1>&6
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9198 :
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9199 else
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9200 echo "$ac_t""no" 1>&6
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9201 with_xface=no
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9202 fi
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9203 }
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9204 test -z "$with_xface" && {
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9205 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
9206 echo "configure:9207: checking for UnGenFace in -lcompface" >&5
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9207 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9208
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9209 xe_check_libs=" -lcompface "
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9210 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
9211 #line 9212 "configure"
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9212 #include "confdefs.h"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9213 /* Override any gcc2 internal prototype to avoid an error. */
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9214 /* We use char because int might match the return type of a gcc2
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9215 builtin and then its argument prototype would still apply. */
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9216 char UnGenFace();
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9217
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9218 int main() {
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9219 UnGenFace()
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9220 ; return 0; }
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9221 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
9222 if { (eval echo configure:9223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9223 rm -rf conftest*
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9224 eval "ac_cv_lib_$ac_lib_var=yes"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9225 else
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9226 echo "configure: failed program was:" >&5
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9227 cat conftest.$ac_ext >&5
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9228 rm -rf conftest*
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9229 eval "ac_cv_lib_$ac_lib_var=no"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9230 fi
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9231 rm -f conftest*
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9232 xe_check_libs=""
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9233
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9234 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9235 echo "$ac_t""yes" 1>&6
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9236 :
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9237 else
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9238 echo "$ac_t""no" 1>&6
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9239 with_xface=no
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9240 fi
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9241
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9242 }
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9243 test -z "$with_xface" && with_xface=yes
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9244 if test "$with_xface" = "yes"; then
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9245 { test "$extra_verbose" = "yes" && cat << \EOF
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9246 Defining HAVE_XFACE
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9247 EOF
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9248 cat >> confdefs.h <<\EOF
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9249 #define HAVE_XFACE 1
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9250 EOF
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9251 }
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9252
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9253 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9254 fi
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9255
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9256 if test "$with_gif" != "no"; then
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9257 with_gif="yes"
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9258 { test "$extra_verbose" = "yes" && cat << \EOF
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9259 Defining HAVE_GIF
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9260 EOF
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9261 cat >> confdefs.h <<\EOF
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9262 #define HAVE_GIF 1
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9263 EOF
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9264 }
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9265
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9266 fi
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9267
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9268 if test "$with_png $with_tiff" != "no no"; then
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9269
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9270 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
9271 echo "configure:9272: checking for inflate in -lc" >&5
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9272 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'`
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9273
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9274 xe_check_libs=" -lc "
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9275 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
9276 #line 9277 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9277 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9278 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9279 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9280 builtin and then its argument prototype would still apply. */
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9281 char inflate();
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9282
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9283 int main() {
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9284 inflate()
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9285 ; return 0; }
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9286 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
9287 if { (eval echo configure:9288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9288 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9289 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9290 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9291 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9292 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9293 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9294 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9295 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9296 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9297 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9298
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9299 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9300 echo "$ac_t""yes" 1>&6
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9301 :
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9302 else
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9303 echo "$ac_t""no" 1>&6
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9304
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9305 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
9306 echo "configure:9307: checking for inflate in -lz" >&5
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9307 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9308
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9309 xe_check_libs=" -lz "
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9310 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
9311 #line 9312 "configure"
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9312 #include "confdefs.h"
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9313 /* Override any gcc2 internal prototype to avoid an error. */
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9314 /* We use char because int might match the return type of a gcc2
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9315 builtin and then its argument prototype would still apply. */
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9316 char inflate();
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9317
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9318 int main() {
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9319 inflate()
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9320 ; return 0; }
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9321 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
9322 if { (eval echo configure:9323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9323 rm -rf conftest*
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9324 eval "ac_cv_lib_$ac_lib_var=yes"
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9325 else
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9326 echo "configure: failed program was:" >&5
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9327 cat conftest.$ac_ext >&5
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9328 rm -rf conftest*
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9329 eval "ac_cv_lib_$ac_lib_var=no"
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9330 fi
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9331 rm -f conftest*
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9332 xe_check_libs=""
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9333
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9334 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9335 echo "$ac_t""yes" 1>&6
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9336 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9337 else
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9338 echo "$ac_t""no" 1>&6
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9339
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9340 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
9341 echo "configure:9342: checking for inflate in -lgz" >&5
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9342 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'`
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9343
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9344 xe_check_libs=" -lgz "
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9345 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
9346 #line 9347 "configure"
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9347 #include "confdefs.h"
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9348 /* Override any gcc2 internal prototype to avoid an error. */
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9349 /* We use char because int might match the return type of a gcc2
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9350 builtin and then its argument prototype would still apply. */
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9351 char inflate();
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9352
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9353 int main() {
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9354 inflate()
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9355 ; return 0; }
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9356 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
9357 if { (eval echo configure:9358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9358 rm -rf conftest*
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9359 eval "ac_cv_lib_$ac_lib_var=yes"
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9360 else
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9361 echo "configure: failed program was:" >&5
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9362 cat conftest.$ac_ext >&5
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9363 rm -rf conftest*
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9364 eval "ac_cv_lib_$ac_lib_var=no"
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9365 fi
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9366 rm -f conftest*
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9367 xe_check_libs=""
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9368
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9369 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9370 echo "$ac_t""yes" 1>&6
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9371 libs_x="-lgz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgz\" to \$libs_x"; fi
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9372 else
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9373 echo "$ac_t""no" 1>&6
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9374 fi
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9375
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9376
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9377 fi
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9378
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9379
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9380 fi
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9381
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9382
193
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
9383 fi
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
9384
251
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9385 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9386 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
9387 echo "configure:9388: checking for jpeglib.h" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
9388
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
9389 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
9390 #line 9391 "configure"
251
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9391 #include "confdefs.h"
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9392 #include <jpeglib.h>
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9393 EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9394 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
9395 { (eval echo configure:9396: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
9396 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
251
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9397 if test -z "$ac_err"; then
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9398 rm -rf conftest*
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9399 eval "ac_cv_header_$ac_safe=yes"
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9400 else
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9401 echo "$ac_err" >&5
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9402 echo "configure: failed program was:" >&5
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9403 cat conftest.$ac_ext >&5
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9404 rm -rf conftest*
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9405 eval "ac_cv_header_$ac_safe=no"
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9406 fi
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9407 rm -f conftest*
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9408 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9409 echo "$ac_t""yes" 1>&6
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9410 :
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9411 else
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9412 echo "$ac_t""no" 1>&6
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9413 with_jpeg=no
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9414 fi
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9415 }
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9416 test -z "$with_jpeg" && {
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9417 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
9418 echo "configure:9419: checking for jpeg_destroy_decompress in -ljpeg" >&5
251
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9419 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'`
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9420
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9421 xe_check_libs=" -ljpeg "
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9422 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
9423 #line 9424 "configure"
251
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9424 #include "confdefs.h"
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9425 /* Override any gcc2 internal prototype to avoid an error. */
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9426 /* We use char because int might match the return type of a gcc2
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9427 builtin and then its argument prototype would still apply. */
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9428 char jpeg_destroy_decompress();
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9429
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9430 int main() {
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9431 jpeg_destroy_decompress()
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9432 ; return 0; }
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9433 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
9434 if { (eval echo configure:9435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
251
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9435 rm -rf conftest*
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9436 eval "ac_cv_lib_$ac_lib_var=yes"
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9437 else
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9438 echo "configure: failed program was:" >&5
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9439 cat conftest.$ac_ext >&5
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9440 rm -rf conftest*
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9441 eval "ac_cv_lib_$ac_lib_var=no"
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9442 fi
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9443 rm -f conftest*
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9444 xe_check_libs=""
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9445
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9446 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9447 echo "$ac_t""yes" 1>&6
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9448 :
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9449 else
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9450 echo "$ac_t""no" 1>&6
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9451 with_jpeg=no
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9452 fi
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9453
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9454 }
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9455 test -z "$with_jpeg" && with_jpeg=yes
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9456 if test "$with_jpeg" = "yes"; then
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9457 { test "$extra_verbose" = "yes" && cat << \EOF
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9458 Defining HAVE_JPEG
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9459 EOF
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9460 cat >> confdefs.h <<\EOF
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9461 #define HAVE_JPEG 1
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9462 EOF
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9463 }
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9464
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9465 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9466 fi
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9467
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9468 png_problem=""
251
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9469 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
9470 echo "configure:9471: checking for pow" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
9471
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
9472 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
9473 #line 9474 "configure"
251
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9474 #include "confdefs.h"
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9475 /* System header to define __stub macros and hopefully few prototypes,
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9476 which can conflict with char pow(); below. */
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9477 #include <assert.h>
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
9478 /* Override any gcc2 internal prototype to avoid an error. */
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
9479 /* We use char because int might match the return type of a gcc2
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
9480 builtin and then its argument prototype would still apply. */
251
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9481 char pow();
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
9482
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
9483 int main() {
251
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9484
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9485 /* The GNU C library defines this for functions which it implements
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9486 to always fail with ENOSYS. Some functions are actually named
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9487 something starting with __ and the normal name is an alias. */
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9488 #if defined (__stub_pow) || defined (__stub___pow)
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9489 choke me
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9490 #else
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9491 pow();
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9492 #endif
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9493
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
9494 ; return 0; }
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
9495 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
9496 if { (eval echo configure:9497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
251
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9497 rm -rf conftest*
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9498 eval "ac_cv_func_pow=yes"
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9499 else
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9500 echo "configure: failed program was:" >&5
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9501 cat conftest.$ac_ext >&5
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9502 rm -rf conftest*
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9503 eval "ac_cv_func_pow=no"
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9504 fi
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9505 rm -f conftest*
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9506
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9507 if eval "test \"`echo '$ac_cv_func_'pow`\" = yes"; then
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9508 echo "$ac_t""yes" 1>&6
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9509 :
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9510 else
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9511 echo "$ac_t""no" 1>&6
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9512 with_png=no
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9513 fi
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9514 }
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9515 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9516 echo $ac_n "checking for png.h""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
9517 echo "configure:9518: checking for png.h" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
9518
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
9519 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
9520 #line 9521 "configure"
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9521 #include "confdefs.h"
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9522 #include <png.h>
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9523 EOF
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9524 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
9525 { (eval echo configure:9526: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
9526 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9527 if test -z "$ac_err"; then
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9528 rm -rf conftest*
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9529 eval "ac_cv_header_$ac_safe=yes"
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9530 else
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9531 echo "$ac_err" >&5
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9532 echo "configure: failed program was:" >&5
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9533 cat conftest.$ac_ext >&5
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9534 rm -rf conftest*
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9535 eval "ac_cv_header_$ac_safe=no"
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9536 fi
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9537 rm -f conftest*
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9538 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9539 echo "$ac_t""yes" 1>&6
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9540 :
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9541 else
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9542 echo "$ac_t""no" 1>&6
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9543 with_png=no
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9544 fi
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9545 }
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9546 test -z "$with_png" && {
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9547 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
9548 echo "configure:9549: checking for png_read_image in -lpng" >&5
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9549 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9550
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9551 xe_check_libs=" -lpng "
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9552 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
9553 #line 9554 "configure"
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
9554 #include "confdefs.h"
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
9555 /* Override any gcc2 internal prototype to avoid an error. */
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
9556 /* We use char because int might match the return type of a gcc2
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
9557 builtin and then its argument prototype would still apply. */
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9558 char png_read_image();
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9559
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9560 int main() {
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9561 png_read_image()
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9562 ; return 0; }
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9563 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
9564 if { (eval echo configure:9565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
9565 rm -rf conftest*
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
9566 eval "ac_cv_lib_$ac_lib_var=yes"
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
9567 else
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
9568 echo "configure: failed program was:" >&5
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
9569 cat conftest.$ac_ext >&5
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
9570 rm -rf conftest*
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
9571 eval "ac_cv_lib_$ac_lib_var=no"
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
9572 fi
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
9573 rm -f conftest*
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
9574 xe_check_libs=""
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
9575
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
9576 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
9577 echo "$ac_t""yes" 1>&6
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9578 :
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9579 else
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9580 echo "$ac_t""no" 1>&6
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9581 with_png=no
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9582 fi
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9583
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9584 }
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9585 if test -z "$with_png"; then
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9586 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
9587 echo "configure:9588: checking for workable png version information" >&5
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9588 xe_check_libs="-lpng -lz"
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9589 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
9590 #line 9591 "configure"
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9591 #include "confdefs.h"
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9592 #include <png.h>
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9593 int main(int c, char **v) {
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9594 if (c == 1) return 0;
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9595 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1;
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9596 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;}
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9597 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
9598 if { (eval echo configure:9599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9599 then
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9600 ./conftest dummy_arg; png_status=$?;
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9601 if test "$png_status" = "0"; then
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9602 with_png=yes;
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9603 else
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9604 with_png=no;
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9605 if test "$png_status" = "1"; then
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9606 png_problem="PNG library version and header file don't match!"
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9607 elif test "$png_status" = "2"; then
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9608 png_problem="PNG library version too old (pre 1.0.2)!"
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9609 fi
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9610 echo "
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9611 *** WARNING *** $png_problem
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9612 I'm not touching that with a 10-foot pole!
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9613 If you really want to use the installed version of libPNG, rerun
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9614 configure and add '--with-png=yes', but don't blame me if XEmacs crashes!"
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9615 fi
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9616 else
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9617 conftest_rc="$?"
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9618 echo "configure: failed program was:" >&5
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9619 cat conftest.$ac_ext >&5
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9620 rm -fr conftest*
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9621 with_png=no
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9622 fi
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9623 rm -fr conftest*
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9624 xe_check_libs=
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9625 echo "$ac_t""$with_png" 1>&6
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9626 fi
251
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9627 if test "$with_png" = "yes"; then
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9628 { test "$extra_verbose" = "yes" && cat << \EOF
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9629 Defining HAVE_PNG
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9630 EOF
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9631 cat >> confdefs.h <<\EOF
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9632 #define HAVE_PNG 1
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9633 EOF
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9634 }
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9635
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9636 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi
251
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9637 fi
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9638
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9639 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9640 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
9641 echo "configure:9642: checking for tiffio.h" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
9642
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
9643 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
9644 #line 9645 "configure"
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9645 #include "confdefs.h"
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9646 #include <tiffio.h>
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9647 EOF
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9648 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
9649 { (eval echo configure:9650: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
9650 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9651 if test -z "$ac_err"; then
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9652 rm -rf conftest*
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9653 eval "ac_cv_header_$ac_safe=yes"
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9654 else
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9655 echo "$ac_err" >&5
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9656 echo "configure: failed program was:" >&5
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9657 cat conftest.$ac_ext >&5
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9658 rm -rf conftest*
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9659 eval "ac_cv_header_$ac_safe=no"
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9660 fi
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9661 rm -f conftest*
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9662 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9663 echo "$ac_t""yes" 1>&6
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9664 :
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9665 else
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9666 echo "$ac_t""no" 1>&6
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9667 with_tiff=no
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9668 fi
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9669 }
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9670 test -z "$with_tiff" && {
286
57709be46d1b Import from CVS: tag r21-0b41
cvs
parents: 284
diff changeset
9671 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
9672 echo "configure:9673: checking for TIFFClientOpen in -ltiff" >&5
286
57709be46d1b Import from CVS: tag r21-0b41
cvs
parents: 284
diff changeset
9673 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'`
251
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9674
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9675 xe_check_libs=" -ltiff "
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9676 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
9677 #line 9678 "configure"
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
9678 #include "confdefs.h"
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
9679 /* Override any gcc2 internal prototype to avoid an error. */
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
9680 /* We use char because int might match the return type of a gcc2
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
9681 builtin and then its argument prototype would still apply. */
286
57709be46d1b Import from CVS: tag r21-0b41
cvs
parents: 284
diff changeset
9682 char TIFFClientOpen();
57709be46d1b Import from CVS: tag r21-0b41
cvs
parents: 284
diff changeset
9683
57709be46d1b Import from CVS: tag r21-0b41
cvs
parents: 284
diff changeset
9684 int main() {
57709be46d1b Import from CVS: tag r21-0b41
cvs
parents: 284
diff changeset
9685 TIFFClientOpen()
57709be46d1b Import from CVS: tag r21-0b41
cvs
parents: 284
diff changeset
9686 ; return 0; }
57709be46d1b Import from CVS: tag r21-0b41
cvs
parents: 284
diff changeset
9687 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
9688 if { (eval echo configure:9689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
9689 rm -rf conftest*
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
9690 eval "ac_cv_lib_$ac_lib_var=yes"
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
9691 else
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
9692 echo "configure: failed program was:" >&5
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
9693 cat conftest.$ac_ext >&5
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
9694 rm -rf conftest*
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
9695 eval "ac_cv_lib_$ac_lib_var=no"
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
9696 fi
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
9697 rm -f conftest*
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
9698 xe_check_libs=""
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
9699
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
9700 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
9701 echo "$ac_t""yes" 1>&6
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9702 :
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9703 else
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9704 echo "$ac_t""no" 1>&6
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9705 with_tiff=no
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9706 fi
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9707
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9708 }
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9709 test -z "$with_tiff" && with_tiff=yes
251
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9710 if test "$with_tiff" = "yes"; then
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9711 { test "$extra_verbose" = "yes" && cat << \EOF
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9712 Defining HAVE_TIFF
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9713 EOF
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9714 cat >> confdefs.h <<\EOF
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9715 #define HAVE_TIFF 1
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9716 EOF
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9717 }
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9718
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9719 libs_x="-ltiff $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltiff\" to \$libs_x"; fi
251
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9720 fi
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9721 fi
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9722
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9723
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
9724 if test "$with_gtk" = "yes"; then
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
9725 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
9726 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
9727 echo "configure:9728: checking for compface.h" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
9728
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
9729 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
9730 #line 9731 "configure"
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
9731 #include "confdefs.h"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
9732 #include <compface.h>
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
9733 EOF
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
9734 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
9735 { (eval echo configure:9736: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
9736 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
9737 if test -z "$ac_err"; then
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
9738 rm -rf conftest*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
9739 eval "ac_cv_header_$ac_safe=yes"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
9740 else
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
9741 echo "$ac_err" >&5
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
9742 echo "configure: failed program was:" >&5
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
9743 cat conftest.$ac_ext >&5
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
9744 rm -rf conftest*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
9745 eval "ac_cv_header_$ac_safe=no"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
9746 fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
9747 rm -f conftest*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
9748 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
9749 echo "$ac_t""yes" 1>&6
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
9750 :
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
9751 else
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
9752 echo "$ac_t""no" 1>&6
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
9753 with_xface=no
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
9754 fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
9755 }
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
9756 test -z "$with_xface" && {
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
9757 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
9758 echo "configure:9759: checking for UnGenFace in -lcompface" >&5
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
9759 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
9760
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
9761 xe_check_libs=" -lcompface "
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
9762 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
9763 #line 9764 "configure"
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
9764 #include "confdefs.h"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
9765 /* Override any gcc2 internal prototype to avoid an error. */
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
9766 /* We use char because int might match the return type of a gcc2
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
9767 builtin and then its argument prototype would still apply. */
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
9768 char UnGenFace();
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
9769
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
9770 int main() {
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
9771 UnGenFace()
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
9772 ; return 0; }
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
9773 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
9774 if { (eval echo configure:9775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
9775 rm -rf conftest*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
9776 eval "ac_cv_lib_$ac_lib_var=yes"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
9777 else
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
9778 echo "configure: failed program was:" >&5
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
9779 cat conftest.$ac_ext >&5
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
9780 rm -rf conftest*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
9781 eval "ac_cv_lib_$ac_lib_var=no"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
9782 fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
9783 rm -f conftest*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
9784 xe_check_libs=""
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
9785
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
9786 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
9787 echo "$ac_t""yes" 1>&6
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
9788 :
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
9789 else
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
9790 echo "$ac_t""no" 1>&6
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
9791 with_xface=no
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
9792 fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
9793
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
9794 }
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
9795 test -z "$with_xface" && with_xface=yes
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
9796 if test "$with_xface" = "yes"; then
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
9797 { test "$extra_verbose" = "yes" && cat << \EOF
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
9798 Defining HAVE_XFACE
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
9799 EOF
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
9800 cat >> confdefs.h <<\EOF
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
9801 #define HAVE_XFACE 1
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
9802 EOF
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
9803 }
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
9804
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
9805 libs_gtk="-lcompface $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_gtk"; fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
9806 fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
9807 fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
9808
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
9809
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
9810
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9811 if test "$with_x11" = "yes"; then
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9812 echo "checking for X11 graphics libraries" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
9813 echo "configure:9814: checking for X11 graphics libraries" >&5
726
1f525cb38373 [xemacs-hg @ 2002-01-09 18:58:56 by janv]
janv
parents: 724
diff changeset
9814 fi
1f525cb38373 [xemacs-hg @ 2002-01-09 18:58:56 by janv]
janv
parents: 724
diff changeset
9815
1f525cb38373 [xemacs-hg @ 2002-01-09 18:58:56 by janv]
janv
parents: 724
diff changeset
9816 case "$with_widgets" in
1f525cb38373 [xemacs-hg @ 2002-01-09 18:58:56 by janv]
janv
parents: 724
diff changeset
9817 "yes" | "athena") detect_athena=yes ;;
1f525cb38373 [xemacs-hg @ 2002-01-09 18:58:56 by janv]
janv
parents: 724
diff changeset
9818 *) detect_athena=no ;;
1f525cb38373 [xemacs-hg @ 2002-01-09 18:58:56 by janv]
janv
parents: 724
diff changeset
9819 esac
1f525cb38373 [xemacs-hg @ 2002-01-09 18:58:56 by janv]
janv
parents: 724
diff changeset
9820
1f525cb38373 [xemacs-hg @ 2002-01-09 18:58:56 by janv]
janv
parents: 724
diff changeset
9821 if test "$with_x11" = "yes" -a "$detect_athena" = "yes" ; then
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9822 echo "checking for the Athena widgets" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
9823 echo "configure:9824: checking for the Athena widgets" >&5
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9824
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9825 case "$with_athena" in
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9826 "xaw" | "") athena_variant=Xaw athena_3d=no ;;
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9827 "3d") athena_variant=Xaw3d athena_3d=yes ;;
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9828 "next") athena_variant=neXtaw athena_3d=yes ;;
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9829 "95") athena_variant=Xaw95 athena_3d=yes ;;
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9830 "xpm") athena_variant=XawXpm athena_3d=yes ;;
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9831 *) { echo "Error:" "Unknown Athena widget set \`$with_athena'. This should not happen." >&2; exit 1; } ;;
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9832 esac
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9833
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9834 if test "$athena_3d" = "no"; then
193
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
9835
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9836 echo $ac_n "checking for XawScrollbarSetThumb in -l$athena_variant""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
9837 echo "configure:9838: checking for XawScrollbarSetThumb in -l$athena_variant" >&5
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9838 ac_lib_var=`echo $athena_variant'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9839
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9840 xe_check_libs=" -l$athena_variant "
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9841 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
9842 #line 9843 "configure"
193
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
9843 #include "confdefs.h"
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
9844 /* Override any gcc2 internal prototype to avoid an error. */
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
9845 /* We use char because int might match the return type of a gcc2
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
9846 builtin and then its argument prototype would still apply. */
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
9847 char XawScrollbarSetThumb();
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
9848
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
9849 int main() {
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
9850 XawScrollbarSetThumb()
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
9851 ; return 0; }
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
9852 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
9853 if { (eval echo configure:9854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9854 rm -rf conftest*
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9855 eval "ac_cv_lib_$ac_lib_var=yes"
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9856 else
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9857 echo "configure: failed program was:" >&5
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9858 cat conftest.$ac_ext >&5
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9859 rm -rf conftest*
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9860 eval "ac_cv_lib_$ac_lib_var=no"
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9861 fi
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9862 rm -f conftest*
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9863 xe_check_libs=""
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9864
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9865 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9866 echo "$ac_t""yes" 1>&6
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9867
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9868 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
9869 echo "configure:9870: checking for threeDClassRec in -l$athena_variant" >&5
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9870 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9871
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9872 xe_check_libs=" -l$athena_variant "
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9873 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
9874 #line 9875 "configure"
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9875 #include "confdefs.h"
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9876 /* Override any gcc2 internal prototype to avoid an error. */
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9877 /* We use char because int might match the return type of a gcc2
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9878 builtin and then its argument prototype would still apply. */
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9879 char threeDClassRec();
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9880
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9881 int main() {
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9882 threeDClassRec()
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9883 ; return 0; }
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9884 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
9885 if { (eval echo configure:9886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
9886 rm -rf conftest*
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
9887 eval "ac_cv_lib_$ac_lib_var=yes"
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
9888 else
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
9889 echo "configure: failed program was:" >&5
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
9890 cat conftest.$ac_ext >&5
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
9891 rm -rf conftest*
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
9892 eval "ac_cv_lib_$ac_lib_var=no"
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
9893 fi
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
9894 rm -f conftest*
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
9895 xe_check_libs=""
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
9896
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
9897 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
9898 echo "$ac_t""yes" 1>&6
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
9899 echo "configure: warning: Could not find a non-3d Athena widget library." 1>&2
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9900 else
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9901 echo "$ac_t""no" 1>&6
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9902 athena_lib=$athena_variant
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9903 fi
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9904
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9905
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9906
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9907 else
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9908 echo "$ac_t""no" 1>&6
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
9909 echo "configure: warning: Could not find an Athena widget library." 1>&2
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9910 fi
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9911
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9912
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9913 else
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9914
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9915 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
9916 echo "configure:9917: checking for threeDClassRec in -l$athena_variant" >&5
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9917 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9918
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9919 xe_check_libs=" -l$athena_variant "
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9920 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
9921 #line 9922 "configure"
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9922 #include "confdefs.h"
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9923 /* Override any gcc2 internal prototype to avoid an error. */
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9924 /* We use char because int might match the return type of a gcc2
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9925 builtin and then its argument prototype would still apply. */
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9926 char threeDClassRec();
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9927
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9928 int main() {
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9929 threeDClassRec()
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9930 ; return 0; }
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9931 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
9932 if { (eval echo configure:9933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9933 rm -rf conftest*
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9934 eval "ac_cv_lib_$ac_lib_var=yes"
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9935 else
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9936 echo "configure: failed program was:" >&5
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9937 cat conftest.$ac_ext >&5
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9938 rm -rf conftest*
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9939 eval "ac_cv_lib_$ac_lib_var=no"
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9940 fi
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9941 rm -f conftest*
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9942 xe_check_libs=""
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9943
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9944 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9945 echo "$ac_t""yes" 1>&6
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9946 athena_lib=$athena_variant
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9947 else
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9948 echo "$ac_t""no" 1>&6
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9949 echo $ac_n "checking for threeDClassRec in -lXaw""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
9950 echo "configure:9951: checking for threeDClassRec in -lXaw" >&5
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9951 ac_lib_var=`echo Xaw'_'threeDClassRec | sed 'y%./+-%__p_%'`
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9952
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9953 xe_check_libs=" -lXaw "
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9954 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
9955 #line 9956 "configure"
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9956 #include "confdefs.h"
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9957 /* Override any gcc2 internal prototype to avoid an error. */
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9958 /* We use char because int might match the return type of a gcc2
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9959 builtin and then its argument prototype would still apply. */
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9960 char threeDClassRec();
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9961
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9962 int main() {
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9963 threeDClassRec()
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9964 ; return 0; }
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9965 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
9966 if { (eval echo configure:9967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
193
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
9967 rm -rf conftest*
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
9968 eval "ac_cv_lib_$ac_lib_var=yes"
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
9969 else
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
9970 echo "configure: failed program was:" >&5
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
9971 cat conftest.$ac_ext >&5
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
9972 rm -rf conftest*
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
9973 eval "ac_cv_lib_$ac_lib_var=no"
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
9974 fi
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
9975 rm -f conftest*
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
9976 xe_check_libs=""
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
9977
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
9978 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
9979 echo "$ac_t""yes" 1>&6
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
9980 athena_lib=Xaw;
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
9981 echo "configure: warning: Assuming that libXaw is actually $athena_variant." 1>&2;
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9982
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9983 else
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9984 echo "$ac_t""no" 1>&6
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
9985 echo "configure: warning: Could not find a 3d Athena widget library that looked like $athena_variant." 1>&2
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9986 fi
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9987
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9988
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9989 fi
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9990
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9991
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9992 fi
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9993
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9994 if test "$athena_3d" = "no"; then
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9995 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9996 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
9997 echo "configure:9998: checking for X11/Xaw/ThreeD.h" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
9998
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
9999 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
10000 #line 10001 "configure"
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10001 #include "confdefs.h"
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10002 #include <X11/Xaw/ThreeD.h>
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10003 EOF
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10004 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
10005 { (eval echo configure:10006: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
10006 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
10007 if test -z "$ac_err"; then
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
10008 rm -rf conftest*
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
10009 eval "ac_cv_header_$ac_safe=yes"
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
10010 else
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
10011 echo "$ac_err" >&5
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
10012 echo "configure: failed program was:" >&5
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
10013 cat conftest.$ac_ext >&5
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
10014 rm -rf conftest*
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
10015 eval "ac_cv_header_$ac_safe=no"
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
10016 fi
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
10017 rm -f conftest*
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
10018 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
10019 echo "$ac_t""yes" 1>&6
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
10020 echo "configure: warning: Could not find a non-3d Athena header set." 1>&2
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10021 else
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10022 echo "$ac_t""no" 1>&6
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10023 ac_safe=`echo "X11/Xaw/XawInit.h" | sed 'y%./+-%__p_%'`
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10024 echo $ac_n "checking for X11/Xaw/XawInit.h""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
10025 echo "configure:10026: checking for X11/Xaw/XawInit.h" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
10026
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
10027 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
10028 #line 10029 "configure"
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10029 #include "confdefs.h"
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10030 #include <X11/Xaw/XawInit.h>
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10031 EOF
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10032 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
10033 { (eval echo configure:10034: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10034 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10035 if test -z "$ac_err"; then
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10036 rm -rf conftest*
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10037 eval "ac_cv_header_$ac_safe=yes"
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10038 else
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10039 echo "$ac_err" >&5
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10040 echo "configure: failed program was:" >&5
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10041 cat conftest.$ac_ext >&5
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10042 rm -rf conftest*
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10043 eval "ac_cv_header_$ac_safe=no"
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10044 fi
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10045 rm -f conftest*
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10046 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10047 echo "$ac_t""yes" 1>&6
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10048 athena_h_path=X11/Xaw
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10049 else
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10050 echo "$ac_t""no" 1>&6
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
10051 echo "configure: warning: Could not find a non-3d Athena header set." 1>&2
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10052 fi
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10053
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10054 fi
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10055
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10056 else
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10057 ac_safe=`echo "X11/$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10058 echo $ac_n "checking for X11/$athena_variant/XawInit.h""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
10059 echo "configure:10060: checking for X11/$athena_variant/XawInit.h" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
10060
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
10061 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
10062 #line 10063 "configure"
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10063 #include "confdefs.h"
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10064 #include <X11/$athena_variant/XawInit.h>
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10065 EOF
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10066 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
10067 { (eval echo configure:10068: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10068 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10069 if test -z "$ac_err"; then
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10070 rm -rf conftest*
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10071 eval "ac_cv_header_$ac_safe=yes"
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10072 else
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10073 echo "$ac_err" >&5
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10074 echo "configure: failed program was:" >&5
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10075 cat conftest.$ac_ext >&5
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10076 rm -rf conftest*
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10077 eval "ac_cv_header_$ac_safe=no"
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10078 fi
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10079 rm -f conftest*
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10080 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10081 echo "$ac_t""yes" 1>&6
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10082 ac_safe=`echo "X11/$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10083 echo $ac_n "checking for X11/$athena_variant/ThreeD.h""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
10084 echo "configure:10085: checking for X11/$athena_variant/ThreeD.h" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
10085
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
10086 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
10087 #line 10088 "configure"
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10088 #include "confdefs.h"
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10089 #include <X11/$athena_variant/ThreeD.h>
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10090 EOF
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10091 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
10092 { (eval echo configure:10093: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10093 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10094 if test -z "$ac_err"; then
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10095 rm -rf conftest*
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10096 eval "ac_cv_header_$ac_safe=yes"
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10097 else
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10098 echo "$ac_err" >&5
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10099 echo "configure: failed program was:" >&5
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10100 cat conftest.$ac_ext >&5
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10101 rm -rf conftest*
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10102 eval "ac_cv_header_$ac_safe=no"
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10103 fi
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10104 rm -f conftest*
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10105 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10106 echo "$ac_t""yes" 1>&6
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10107 athena_h_path=X11/$athena_variant
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10108 else
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10109 echo "$ac_t""no" 1>&6
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10110 fi
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10111
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10112 else
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10113 echo "$ac_t""no" 1>&6
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10114 fi
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10115
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10116
440
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10117 if test -z "$athena_h_path"; then
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10118 ac_safe=`echo "$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10119 echo $ac_n "checking for $athena_variant/XawInit.h""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
10120 echo "configure:10121: checking for $athena_variant/XawInit.h" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
10121
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
10122 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
10123 #line 10124 "configure"
440
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10124 #include "confdefs.h"
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10125 #include <$athena_variant/XawInit.h>
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10126 EOF
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10127 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
10128 { (eval echo configure:10129: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
440
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10129 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10130 if test -z "$ac_err"; then
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10131 rm -rf conftest*
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10132 eval "ac_cv_header_$ac_safe=yes"
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10133 else
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10134 echo "$ac_err" >&5
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10135 echo "configure: failed program was:" >&5
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10136 cat conftest.$ac_ext >&5
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10137 rm -rf conftest*
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10138 eval "ac_cv_header_$ac_safe=no"
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10139 fi
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10140 rm -f conftest*
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10141 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10142 echo "$ac_t""yes" 1>&6
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10143 ac_safe=`echo "$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10144 echo $ac_n "checking for $athena_variant/ThreeD.h""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
10145 echo "configure:10146: checking for $athena_variant/ThreeD.h" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
10146
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
10147 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
10148 #line 10149 "configure"
440
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10149 #include "confdefs.h"
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10150 #include <$athena_variant/ThreeD.h>
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10151 EOF
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10152 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
10153 { (eval echo configure:10154: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
440
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10154 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10155 if test -z "$ac_err"; then
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10156 rm -rf conftest*
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10157 eval "ac_cv_header_$ac_safe=yes"
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10158 else
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10159 echo "$ac_err" >&5
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10160 echo "configure: failed program was:" >&5
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10161 cat conftest.$ac_ext >&5
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10162 rm -rf conftest*
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10163 eval "ac_cv_header_$ac_safe=no"
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10164 fi
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10165 rm -f conftest*
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10166 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10167 echo "$ac_t""yes" 1>&6
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10168 athena_h_path=$athena_variant
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10169 else
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10170 echo "$ac_t""no" 1>&6
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10171 fi
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10172
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10173 else
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10174 echo "$ac_t""no" 1>&6
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10175 fi
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10176
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10177 fi
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10178
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10179 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10180 ac_safe=`echo "X11/Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10181 echo $ac_n "checking for X11/Xaw3d/XawInit.h""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
10182 echo "configure:10183: checking for X11/Xaw3d/XawInit.h" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
10183
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
10184 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
10185 #line 10186 "configure"
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10186 #include "confdefs.h"
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10187 #include <X11/Xaw3d/XawInit.h>
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10188 EOF
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10189 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
10190 { (eval echo configure:10191: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10191 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10192 if test -z "$ac_err"; then
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10193 rm -rf conftest*
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10194 eval "ac_cv_header_$ac_safe=yes"
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10195 else
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10196 echo "$ac_err" >&5
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10197 echo "configure: failed program was:" >&5
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10198 cat conftest.$ac_ext >&5
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10199 rm -rf conftest*
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10200 eval "ac_cv_header_$ac_safe=no"
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10201 fi
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10202 rm -f conftest*
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10203 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10204 echo "$ac_t""yes" 1>&6
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10205 ac_safe=`echo "X11/Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10206 echo $ac_n "checking for X11/Xaw3d/ThreeD.h""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
10207 echo "configure:10208: checking for X11/Xaw3d/ThreeD.h" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
10208
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
10209 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
10210 #line 10211 "configure"
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10211 #include "confdefs.h"
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10212 #include <X11/Xaw3d/ThreeD.h>
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10213 EOF
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10214 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
10215 { (eval echo configure:10216: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10216 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10217 if test -z "$ac_err"; then
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10218 rm -rf conftest*
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10219 eval "ac_cv_header_$ac_safe=yes"
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10220 else
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10221 echo "$ac_err" >&5
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10222 echo "configure: failed program was:" >&5
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10223 cat conftest.$ac_ext >&5
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10224 rm -rf conftest*
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10225 eval "ac_cv_header_$ac_safe=no"
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10226 fi
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10227 rm -f conftest*
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10228 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10229 echo "$ac_t""yes" 1>&6
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10230
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
10231 echo "configure: warning: Assuming that X11/Xaw3d headers are suitable for $athena_variant." 1>&2
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10232 athena_h_path=X11/Xaw3d
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10233
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10234 else
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10235 echo "$ac_t""no" 1>&6
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10236 fi
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10237
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10238 else
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10239 echo "$ac_t""no" 1>&6
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10240 fi
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10241
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10242 fi
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10243
440
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10244 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10245 ac_safe=`echo "Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10246 echo $ac_n "checking for Xaw3d/XawInit.h""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
10247 echo "configure:10248: checking for Xaw3d/XawInit.h" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
10248
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
10249 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
10250 #line 10251 "configure"
440
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10251 #include "confdefs.h"
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10252 #include <Xaw3d/XawInit.h>
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10253 EOF
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10254 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
10255 { (eval echo configure:10256: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
440
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10256 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10257 if test -z "$ac_err"; then
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10258 rm -rf conftest*
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10259 eval "ac_cv_header_$ac_safe=yes"
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10260 else
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10261 echo "$ac_err" >&5
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10262 echo "configure: failed program was:" >&5
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10263 cat conftest.$ac_ext >&5
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10264 rm -rf conftest*
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10265 eval "ac_cv_header_$ac_safe=no"
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10266 fi
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10267 rm -f conftest*
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10268 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10269 echo "$ac_t""yes" 1>&6
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10270 ac_safe=`echo "Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10271 echo $ac_n "checking for Xaw3d/ThreeD.h""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
10272 echo "configure:10273: checking for Xaw3d/ThreeD.h" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
10273
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
10274 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
10275 #line 10276 "configure"
440
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10276 #include "confdefs.h"
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10277 #include <Xaw3d/ThreeD.h>
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10278 EOF
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10279 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
10280 { (eval echo configure:10281: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
440
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10281 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10282 if test -z "$ac_err"; then
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10283 rm -rf conftest*
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10284 eval "ac_cv_header_$ac_safe=yes"
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10285 else
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10286 echo "$ac_err" >&5
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10287 echo "configure: failed program was:" >&5
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10288 cat conftest.$ac_ext >&5
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10289 rm -rf conftest*
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10290 eval "ac_cv_header_$ac_safe=no"
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10291 fi
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10292 rm -f conftest*
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10293 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10294 echo "$ac_t""yes" 1>&6
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10295
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
10296 echo "configure: warning: Assuming that Xaw3d headers are suitable for $athena_variant." 1>&2
440
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10297 athena_h_path=Xaw3d
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10298
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10299 else
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10300 echo "$ac_t""no" 1>&6
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10301 fi
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10302
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10303 else
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10304 echo "$ac_t""no" 1>&6
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10305 fi
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10306
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10307 fi
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10308
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10309 if test -z "$athena_h_path"; then
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10310 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10311 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
10312 echo "configure:10313: checking for X11/Xaw/ThreeD.h" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
10313
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
10314 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
10315 #line 10316 "configure"
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10316 #include "confdefs.h"
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10317 #include <X11/Xaw/ThreeD.h>
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10318 EOF
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10319 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
10320 { (eval echo configure:10321: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10321 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10322 if test -z "$ac_err"; then
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10323 rm -rf conftest*
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10324 eval "ac_cv_header_$ac_safe=yes"
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10325 else
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10326 echo "$ac_err" >&5
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10327 echo "configure: failed program was:" >&5
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10328 cat conftest.$ac_ext >&5
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10329 rm -rf conftest*
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10330 eval "ac_cv_header_$ac_safe=no"
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10331 fi
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10332 rm -f conftest*
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10333 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10334 echo "$ac_t""yes" 1>&6
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10335
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
10336 echo "configure: warning: Assuming that X11/Xaw headers are suitable for $athena_variant." 1>&2
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10337 athena_h_path=X11/Xaw
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10338
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10339 else
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10340 echo "$ac_t""no" 1>&6
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
10341 echo "configure: warning: Could not find a suitable 3d Athena header set." 1>&2
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10342 fi
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10343
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10344 fi
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10345 fi
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10346
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10347 if test -n "$athena_lib" -a -n "$athena_h_path"; then
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10348 have_xaw=yes
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10349 else
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10350 have_xaw=no
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10351 fi
424
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
10352
724
76d5a3dd827a [xemacs-hg @ 2002-01-05 07:33:11 by stephent]
stephent
parents: 720
diff changeset
10353 else
76d5a3dd827a [xemacs-hg @ 2002-01-05 07:33:11 by stephent]
stephent
parents: 720
diff changeset
10354 have_xaw=no
76d5a3dd827a [xemacs-hg @ 2002-01-05 07:33:11 by stephent]
stephent
parents: 720
diff changeset
10355 fi
76d5a3dd827a [xemacs-hg @ 2002-01-05 07:33:11 by stephent]
stephent
parents: 720
diff changeset
10356 if test "$with_x11" = "yes"; then
193
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
10357 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10358 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
10359 echo "configure:10360: checking for Xm/Xm.h" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
10360
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
10361 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
10362 #line 10363 "configure"
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10363 #include "confdefs.h"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10364 #include <Xm/Xm.h>
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10365 EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10366 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
10367 { (eval echo configure:10368: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
10368 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10369 if test -z "$ac_err"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10370 rm -rf conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10371 eval "ac_cv_header_$ac_safe=yes"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10372 else
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10373 echo "$ac_err" >&5
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10374 echo "configure: failed program was:" >&5
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10375 cat conftest.$ac_ext >&5
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10376 rm -rf conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10377 eval "ac_cv_header_$ac_safe=no"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10378 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10379 rm -f conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10380 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10381 echo "$ac_t""yes" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10382
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10383 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
10384 echo "configure:10385: checking for XmStringFree in -lXm" >&5
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10385 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10386
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10387 xe_check_libs=" -lXm "
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10388 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
10389 #line 10390 "configure"
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10390 #include "confdefs.h"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10391 /* Override any gcc2 internal prototype to avoid an error. */
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10392 /* We use char because int might match the return type of a gcc2
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10393 builtin and then its argument prototype would still apply. */
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10394 char XmStringFree();
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10395
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10396 int main() {
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10397 XmStringFree()
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10398 ; return 0; }
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10399 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
10400 if { (eval echo configure:10401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10401 rm -rf conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10402 eval "ac_cv_lib_$ac_lib_var=yes"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10403 else
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10404 echo "configure: failed program was:" >&5
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10405 cat conftest.$ac_ext >&5
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10406 rm -rf conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10407 eval "ac_cv_lib_$ac_lib_var=no"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10408 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10409 rm -f conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10410 xe_check_libs=""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10411
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10412 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10413 echo "$ac_t""yes" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10414 have_motif=yes
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10415 else
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10416 echo "$ac_t""no" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10417 have_motif=no
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10418 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10419
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10420
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10421 else
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10422 echo "$ac_t""no" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10423 have_motif=no
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10424 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10425
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10426
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
10427 if test "$have_motif" = "yes"; then
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
10428 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
10429 echo "configure:10430: checking for Lesstif" >&5
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
10430 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
10431 #line 10432 "configure"
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
10432 #include "confdefs.h"
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
10433 #include <Xm/Xm.h>
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
10434 #ifdef LESSTIF_VERSION
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
10435 yes
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
10436 #endif
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
10437
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
10438 EOF
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
10439 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
10440 egrep "yes" >/dev/null 2>&1; then
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
10441 rm -rf conftest*
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
10442 have_lesstif=yes
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
10443 else
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
10444 rm -rf conftest*
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
10445 have_lesstif=no
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
10446 fi
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
10447 rm -f conftest*
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
10448
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
10449 echo "$ac_t""$have_lesstif" 1>&6
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
10450 fi
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
10451
193
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
10452 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10453
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10454 case "$with_menubars" in "" | "yes" | "athena" )
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10455 with_menubars="lucid" ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10456 esac
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
10457 case "$with_dialogs" in "" | "yes" | "lucid" )
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10458 if test "$have_motif" = "yes"; then with_dialogs="motif"
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10459 elif test "$have_xaw" = "yes"; then with_dialogs="athena"
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
10460 elif test "$with_msw" = "yes"; then with_dialogs="msw"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10461 else with_dialogs=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10462 fi ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10463 esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10464 case "$with_scrollbars" in "" | "yes" )
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10465 with_scrollbars="lucid" ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10466 esac
424
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
10467 case "$with_widgets" in "" | "yes" | "lucid")
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
10468 if test "$have_motif" = "yes"; then with_widgets="motif"
424
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
10469 elif test "$have_xaw" = "yes"; then with_widgets="athena"
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
10470 elif test "$with_msw" = "yes"; then with_widgets="msw"
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
10471 else with_widgets=no
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
10472 fi ;;
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
10473 esac
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
10474
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
10475 all_widgets="$with_menubars $with_scrollbars $with_dialogs $with_toolbars $with_widgets"
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 410
diff changeset
10476
424
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
10477 case "$all_widgets" in
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10478 *athena* )
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10479 if test "$have_xaw" != "yes"; then
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10480 { echo "Error:" "Could not find a suitable Athena library to build with." >&2; exit 1; }
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10481 fi
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10482
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10483 lwlib_objs="$lwlib_objs lwlib-Xaw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xaw.o\" to \$lwlib_objs"; fi
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10484
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10485 libs_x="-l$athena_lib $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$athena_lib\" to \$libs_x"; fi
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10486
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10487 { test "$extra_verbose" = "yes" && cat << EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10488 Defining ATHENA_Scrollbar_h_ = "$athena_h_path/Scrollbar.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10489 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10490 cat >> confdefs.h <<EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10491 #define ATHENA_Scrollbar_h_ "$athena_h_path/Scrollbar.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10492 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10493 }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10494
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10495 { test "$extra_verbose" = "yes" && cat << EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10496 Defining ATHENA_Dialog_h_ = "$athena_h_path/Dialog.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10497 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10498 cat >> confdefs.h <<EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10499 #define ATHENA_Dialog_h_ "$athena_h_path/Dialog.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10500 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10501 }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10502
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10503 { test "$extra_verbose" = "yes" && cat << EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10504 Defining ATHENA_Form_h_ = "$athena_h_path/Form.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10505 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10506 cat >> confdefs.h <<EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10507 #define ATHENA_Form_h_ "$athena_h_path/Form.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10508 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10509 }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10510
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10511 { test "$extra_verbose" = "yes" && cat << EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10512 Defining ATHENA_Command_h_ = "$athena_h_path/Command.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10513 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10514 cat >> confdefs.h <<EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10515 #define ATHENA_Command_h_ "$athena_h_path/Command.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10516 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10517 }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10518
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10519 { test "$extra_verbose" = "yes" && cat << EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10520 Defining ATHENA_Label_h_ = "$athena_h_path/Label.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10521 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10522 cat >> confdefs.h <<EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10523 #define ATHENA_Label_h_ "$athena_h_path/Label.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10524 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10525 }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10526
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10527 { test "$extra_verbose" = "yes" && cat << EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10528 Defining ATHENA_LabelP_h_ = "$athena_h_path/LabelP.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10529 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10530 cat >> confdefs.h <<EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10531 #define ATHENA_LabelP_h_ "$athena_h_path/LabelP.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10532 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10533 }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10534
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10535 { test "$extra_verbose" = "yes" && cat << EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10536 Defining ATHENA_Toggle_h_ = "$athena_h_path/Toggle.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10537 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10538 cat >> confdefs.h <<EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10539 #define ATHENA_Toggle_h_ "$athena_h_path/Toggle.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10540 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10541 }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10542
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10543 { test "$extra_verbose" = "yes" && cat << EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10544 Defining ATHENA_ToggleP_h_ = "$athena_h_path/ToggleP.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10545 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10546 cat >> confdefs.h <<EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10547 #define ATHENA_ToggleP_h_ "$athena_h_path/ToggleP.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10548 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10549 }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10550
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10551 { test "$extra_verbose" = "yes" && cat << EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10552 Defining ATHENA_AsciiText_h_ = "$athena_h_path/AsciiText.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10553 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10554 cat >> confdefs.h <<EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10555 #define ATHENA_AsciiText_h_ "$athena_h_path/AsciiText.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10556 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10557 }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10558
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10559 { test "$extra_verbose" = "yes" && cat << EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10560 Defining ATHENA_XawInit_h_ = "$athena_h_path/XawInit.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10561 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10562 cat >> confdefs.h <<EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10563 #define ATHENA_XawInit_h_ "$athena_h_path/XawInit.h"
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10564 EOF
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10565 }
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10566
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10567
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10568 { test "$extra_verbose" = "yes" && cat << \EOF
424
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
10569 Defining LWLIB_USES_ATHENA
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
10570 EOF
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
10571 cat >> confdefs.h <<\EOF
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
10572 #define LWLIB_USES_ATHENA 1
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
10573 EOF
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
10574 }
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
10575
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10576 { test "$extra_verbose" = "yes" && cat << \EOF
424
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
10577 Defining NEED_ATHENA
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
10578 EOF
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
10579 cat >> confdefs.h <<\EOF
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
10580 #define NEED_ATHENA 1
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
10581 EOF
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
10582 }
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
10583
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10584 need_athena="yes"
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10585
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10586 if test "$athena_3d" = "yes"; then
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10587 { test "$extra_verbose" = "yes" && cat << \EOF
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10588 Defining HAVE_ATHENA_3D
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10589 EOF
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10590 cat >> confdefs.h <<\EOF
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10591 #define HAVE_ATHENA_3D 1
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10592 EOF
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10593 }
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10594
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10595 fi
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10596 ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10597 esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10598
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10599 case "$all_widgets" in *motif* )
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10600 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10601 Defining LWLIB_USES_MOTIF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10602 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10603 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10604 #define LWLIB_USES_MOTIF 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10605 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10606 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10607
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
10608 { test "$extra_verbose" = "yes" && cat << \EOF
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
10609 Defining NEED_MOTIF
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
10610 EOF
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
10611 cat >> confdefs.h <<\EOF
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
10612 #define NEED_MOTIF 1
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
10613 EOF
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
10614 }
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
10615
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
10616 lwlib_objs="$lwlib_objs lwlib-Xm.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xm.o\" to \$lwlib_objs"; fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10617 need_motif=yes ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
10618 esac
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
10619
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
10620 test "$with_menubars" = "lucid" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
10621 test "$with_menubars" = "motif" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
10622 test "$with_scrollbars" = "lucid" && lwlib_objs="$lwlib_objs xlwscrollbar.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwscrollbar.o\" to \$lwlib_objs"; fi
424
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
10623 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
10624 lwlib_objs="$lwlib_objs xlwtabs.o xlwgcs.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwtabs.o xlwgcs.o\" to \$lwlib_objs"; fi
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
10625 case "$with_widgets" in athena* )
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
10626 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;;
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
10627 esac
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
10628 case "$all_widgets" in *lucid* )
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
10629 { test "$extra_verbose" = "yes" && cat << \EOF
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
10630 Defining NEED_LUCID
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
10631 EOF
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
10632 cat >> confdefs.h <<\EOF
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
10633 #define NEED_LUCID 1
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
10634 EOF
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
10635 }
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
10636
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
10637 lwlib_objs="$lwlib_objs lwlib-Xlw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xlw.o\" to \$lwlib_objs"; fi ;;
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
10638 esac
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
10639
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
10640
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
10641
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10642 test "$with_scrollbars" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10643 Defining LWLIB_SCROLLBARS_ATHENA
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10644 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10645 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10646 #define LWLIB_SCROLLBARS_ATHENA 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10647 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10648 }
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10649
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10650 test "$with_dialogs" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10651 Defining LWLIB_DIALOGS_ATHENA
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10652 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10653 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10654 #define LWLIB_DIALOGS_ATHENA 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10655 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10656 }
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10657
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10658
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10659 if test "$athena_3d" = "yes"; then
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10660 test "$with_scrollbars" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10661 Defining LWLIB_SCROLLBARS_ATHENA3D
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10662 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10663 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10664 #define LWLIB_SCROLLBARS_ATHENA3D 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10665 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10666 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10667
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10668 test "$with_dialogs" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10669 Defining LWLIB_DIALOGS_ATHENA3D
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10670 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10671 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10672 #define LWLIB_DIALOGS_ATHENA3D 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10673 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10674 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10675
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10676 fi
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10677
424
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
10678 case "$with_widgets" in athena* ) { test "$extra_verbose" = "yes" && cat << \EOF
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
10679 Defining LWLIB_WIDGETS_ATHENA
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
10680 EOF
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
10681 cat >> confdefs.h <<\EOF
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
10682 #define LWLIB_WIDGETS_ATHENA 1
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
10683 EOF
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
10684 }
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
10685 ;; esac
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
10686 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
10687 { test "$extra_verbose" = "yes" && cat << \EOF
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
10688 Defining LWLIB_TABS_LUCID
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
10689 EOF
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
10690 cat >> confdefs.h <<\EOF
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
10691 #define LWLIB_TABS_LUCID 1
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
10692 EOF
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
10693 }
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
10694
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10695
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10696 test "$with_menubars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10697 Defining HAVE_MENUBARS
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10698 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10699 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10700 #define HAVE_MENUBARS 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10701 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10702 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10703
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10704 test "$with_scrollbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10705 Defining HAVE_SCROLLBARS
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10706 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10707 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10708 #define HAVE_SCROLLBARS 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10709 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10710 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10711
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10712 test "$with_dialogs" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10713 Defining HAVE_DIALOGS
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10714 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10715 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10716 #define HAVE_DIALOGS 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10717 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10718 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10719
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10720 test "$with_toolbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10721 Defining HAVE_TOOLBARS
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10722 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10723 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10724 #define HAVE_TOOLBARS 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10725 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10726 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10727
440
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10728 test "$with_widgets" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
424
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
10729 Defining HAVE_WIDGETS
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
10730 EOF
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
10731 cat >> confdefs.h <<\EOF
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
10732 #define HAVE_WIDGETS 1
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
10733 EOF
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
10734 }
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
10735
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10736
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10737 test "$with_menubars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10738 Defining LWLIB_MENUBARS_LUCID
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10739 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10740 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10741 #define LWLIB_MENUBARS_LUCID 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10742 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10743 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10744
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10745 test "$with_scrollbars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10746 Defining LWLIB_SCROLLBARS_LUCID
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10747 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10748 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10749 #define LWLIB_SCROLLBARS_LUCID 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10750 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10751 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10752
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10753
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10754 test "$with_menubars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10755 Defining LWLIB_MENUBARS_MOTIF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10756 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10757 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10758 #define LWLIB_MENUBARS_MOTIF 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10759 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10760 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10761
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10762 test "$with_scrollbars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10763 Defining LWLIB_SCROLLBARS_MOTIF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10764 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10765 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10766 #define LWLIB_SCROLLBARS_MOTIF 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10767 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10768 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10769
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10770 test "$with_dialogs" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10771 Defining LWLIB_DIALOGS_MOTIF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10772 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10773 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10774 #define LWLIB_DIALOGS_MOTIF 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10775 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10776 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10777
424
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
10778 test "$with_widgets" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
10779 Defining LWLIB_WIDGETS_MOTIF
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
10780 EOF
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
10781 cat >> confdefs.h <<\EOF
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
10782 #define LWLIB_WIDGETS_MOTIF 1
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
10783 EOF
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
10784 }
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
10785
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 410
diff changeset
10786
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
10787
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
10788 test -z "$with_mule" && with_mule=no
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
10789
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
10790
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
10791 if test "$with_default_eol_detection" = "yes"; then
251
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
10792 { test "$extra_verbose" = "yes" && cat << \EOF
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
10793 Defining HAVE_DEFAULT_EOL_DETECTION
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
10794 EOF
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
10795 cat >> confdefs.h <<\EOF
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
10796 #define HAVE_DEFAULT_EOL_DETECTION 1
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
10797 EOF
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
10798 }
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
10799
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
10800 fi
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
10801
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10802 if test "$with_mule" = "yes" ; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10803 echo "checking for Mule-related features" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
10804 echo "configure:10805: checking for Mule-related features" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10805 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10806 Defining MULE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10807 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10808 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10809 #define MULE 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10810 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10811 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10812
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10813
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10814 for ac_hdr in libintl.h
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10815 do
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10816 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10817 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
10818 echo "configure:10819: checking for $ac_hdr" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
10819
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
10820 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
10821 #line 10822 "configure"
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10822 #include "confdefs.h"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10823 #include <$ac_hdr>
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10824 EOF
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10825 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
10826 { (eval echo configure:10827: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
10827 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10828 if test -z "$ac_err"; then
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10829 rm -rf conftest*
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10830 eval "ac_cv_header_$ac_safe=yes"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10831 else
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10832 echo "$ac_err" >&5
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10833 echo "configure: failed program was:" >&5
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10834 cat conftest.$ac_ext >&5
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10835 rm -rf conftest*
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10836 eval "ac_cv_header_$ac_safe=no"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10837 fi
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10838 rm -f conftest*
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10839 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10840 echo "$ac_t""yes" 1>&6
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10841 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10842 { test "$extra_verbose" = "yes" && cat << EOF
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10843 Defining $ac_tr_hdr
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10844 EOF
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10845 cat >> confdefs.h <<EOF
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10846 #define $ac_tr_hdr 1
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10847 EOF
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10848 }
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10849
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10850 else
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10851 echo "$ac_t""no" 1>&6
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10852 fi
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10853 done
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10854
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10855
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10856 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
10857 echo "configure:10858: checking for strerror in -lintl" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10858 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10859
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10860 xe_check_libs=" -lintl "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10861 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
10862 #line 10863 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10863 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10864 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10865 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10866 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10867 char strerror();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10868
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10869 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10870 strerror()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10871 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10872 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
10873 if { (eval echo configure:10874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10874 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10875 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10876 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10877 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10878 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10879 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10880 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10881 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10882 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10883 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10884
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10885 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10886 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10887 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10888 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10889 { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10890 Defining $ac_tr_lib
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10891 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10892 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10893 #define $ac_tr_lib 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10894 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10895 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10896
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10897 LIBS="-lintl $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lintl\" to \$LIBS"; fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10898
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10899 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10900 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10901 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10902
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10903
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10904
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10905 echo "checking for Mule input methods" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
10906 echo "configure:10907: checking for Mule input methods" >&5
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
10907 case "$with_xim" in "" | "yes" )
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10908 echo "checking for XIM" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
10909 echo "configure:10910: checking for XIM" >&5
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
10910
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
10911 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
10912 echo "configure:10913: checking for XOpenIM in -lX11" >&5
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
10913 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'`
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
10914
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
10915 xe_check_libs=" -lX11 "
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
10916 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
10917 #line 10918 "configure"
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
10918 #include "confdefs.h"
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
10919 /* Override any gcc2 internal prototype to avoid an error. */
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
10920 /* We use char because int might match the return type of a gcc2
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
10921 builtin and then its argument prototype would still apply. */
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
10922 char XOpenIM();
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
10923
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
10924 int main() {
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
10925 XOpenIM()
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
10926 ; return 0; }
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
10927 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
10928 if { (eval echo configure:10929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
10929 rm -rf conftest*
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
10930 eval "ac_cv_lib_$ac_lib_var=yes"
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
10931 else
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
10932 echo "configure: failed program was:" >&5
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
10933 cat conftest.$ac_ext >&5
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
10934 rm -rf conftest*
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
10935 eval "ac_cv_lib_$ac_lib_var=no"
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
10936 fi
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
10937 rm -f conftest*
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
10938 xe_check_libs=""
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
10939
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
10940 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
10941 echo "$ac_t""yes" 1>&6
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
10942 with_xim=xlib
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
10943 else
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
10944 echo "$ac_t""no" 1>&6
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
10945 with_xim=no
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
10946 fi
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
10947
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
10948
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
10949 if test "$have_motif $have_lesstif" = "yes no"; then
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
10950
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10951 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
10952 echo "configure:10953: checking for XmImMbLookupString in -lXm" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10953 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10954
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10955 xe_check_libs=" -lXm "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10956 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
10957 #line 10958 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10958 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10959 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10960 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10961 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10962 char XmImMbLookupString();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10963
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10964 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10965 XmImMbLookupString()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10966 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10967 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
10968 if { (eval echo configure:10969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10969 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10970 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10971 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10972 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10973 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10974 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10975 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10976 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10977 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10978 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10979
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10980 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10981 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10982 with_xim=motif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10983 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10984 echo "$ac_t""no" 1>&6
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
10985 fi
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
10986
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
10987
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
10988 fi ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10989 esac
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
10990 if test "$with_xim" != "no"; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10991 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10992 Defining HAVE_XIM
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10993 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10994 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10995 #define HAVE_XIM 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10996 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10997 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10998
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10999 if test "$with_xim" = "xlib"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11000 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11001 Defining XIM_XLIB
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11002 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11003 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11004 #define XIM_XLIB 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11005 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11006 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11007
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11008 extra_objs="$extra_objs input-method-xlib.o" && if test "$extra_verbose" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11009 echo " xemacs will be linked with \"input-method-xlib.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11010 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11011 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11012 if test "$with_xim" = "motif"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11013 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11014 Defining XIM_MOTIF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11015 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11016 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11017 #define XIM_MOTIF 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11018 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11019 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11020
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11021 need_motif=yes
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11022 extra_objs="$extra_objs input-method-motif.o" && if test "$extra_verbose" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11023 echo " xemacs will be linked with \"input-method-motif.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11024 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11025 fi
215
1f0dabaa0855 Import from CVS: tag r20-4b6
cvs
parents: 213
diff changeset
11026 if test "$with_xim" = "motif"; then
177
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
11027 with_xfs=no
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
11028 fi
215
1f0dabaa0855 Import from CVS: tag r20-4b6
cvs
parents: 213
diff changeset
11029 fi
1f0dabaa0855 Import from CVS: tag r20-4b6
cvs
parents: 213
diff changeset
11030
1f0dabaa0855 Import from CVS: tag r20-4b6
cvs
parents: 213
diff changeset
11031 if test "$with_xfs" = "yes" ; then
1f0dabaa0855 Import from CVS: tag r20-4b6
cvs
parents: 213
diff changeset
11032 echo "checking for XFontSet" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
11033 echo "configure:11034: checking for XFontSet" >&5
215
1f0dabaa0855 Import from CVS: tag r20-4b6
cvs
parents: 213
diff changeset
11034
177
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
11035 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
11036 echo "configure:11037: checking for XmbDrawString in -lX11" >&5
177
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
11037 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
11038
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
11039 xe_check_libs=" -lX11 "
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
11040 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
11041 #line 11042 "configure"
177
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
11042 #include "confdefs.h"
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
11043 /* Override any gcc2 internal prototype to avoid an error. */
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
11044 /* We use char because int might match the return type of a gcc2
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
11045 builtin and then its argument prototype would still apply. */
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
11046 char XmbDrawString();
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
11047
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
11048 int main() {
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
11049 XmbDrawString()
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
11050 ; return 0; }
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
11051 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
11052 if { (eval echo configure:11053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
177
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
11053 rm -rf conftest*
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
11054 eval "ac_cv_lib_$ac_lib_var=yes"
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
11055 else
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
11056 echo "configure: failed program was:" >&5
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
11057 cat conftest.$ac_ext >&5
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
11058 rm -rf conftest*
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
11059 eval "ac_cv_lib_$ac_lib_var=no"
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
11060 fi
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
11061 rm -f conftest*
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
11062 xe_check_libs=""
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
11063
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
11064 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
11065 echo "$ac_t""yes" 1>&6
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
11066 :
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
11067 else
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
11068 echo "$ac_t""no" 1>&6
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
11069 with_xfs=no
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
11070 fi
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
11071
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
11072
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
11073 if test "$with_xfs" = "yes" && test "$with_menubars" = "lucid"; then
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
11074 { test "$extra_verbose" = "yes" && cat << \EOF
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
11075 Defining USE_XFONTSET
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
11076 EOF
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
11077 cat >> confdefs.h <<\EOF
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
11078 #define USE_XFONTSET 1
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
11079 EOF
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
11080 }
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
11081
215
1f0dabaa0855 Import from CVS: tag r20-4b6
cvs
parents: 213
diff changeset
11082 if test "$with_xim" = "no" ; then
450
98528da0b7fc Import from CVS: tag r21-2-40
cvs
parents: 448
diff changeset
11083 extra_objs="$extra_objs input-method-xlib.o" && if test "$extra_verbose" = "yes"; then
98528da0b7fc Import from CVS: tag r21-2-40
cvs
parents: 448
diff changeset
11084 echo " xemacs will be linked with \"input-method-xlib.o\""
177
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
11085 fi
215
1f0dabaa0855 Import from CVS: tag r20-4b6
cvs
parents: 213
diff changeset
11086 fi
177
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
11087 fi
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11088 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11089 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11090 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11091 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
11092 echo "configure:11093: checking for wnn/jllib.h" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
11093
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
11094 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
11095 #line 11096 "configure"
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11096 #include "confdefs.h"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11097 #include <wnn/jllib.h>
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11098 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11099 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
11100 { (eval echo configure:11101: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
458
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
11101 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
11102 if test -z "$ac_err"; then
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
11103 rm -rf conftest*
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
11104 eval "ac_cv_header_$ac_safe=yes"
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
11105 else
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
11106 echo "$ac_err" >&5
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
11107 echo "configure: failed program was:" >&5
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
11108 cat conftest.$ac_ext >&5
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
11109 rm -rf conftest*
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
11110 eval "ac_cv_header_$ac_safe=no"
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
11111 fi
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
11112 rm -f conftest*
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
11113 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
11114 echo "$ac_t""yes" 1>&6
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
11115 :
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
11116 else
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
11117 echo "$ac_t""no" 1>&6
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
11118 with_wnn=no
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
11119 fi
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
11120 }
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
11121 test -z "$with_wnn" && { ac_safe=`echo "wnn/commonhd.h" | sed 'y%./+-%__p_%'`
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
11122 echo $ac_n "checking for wnn/commonhd.h""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
11123 echo "configure:11124: checking for wnn/commonhd.h" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
11124
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
11125 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
11126 #line 11127 "configure"
458
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
11127 #include "confdefs.h"
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
11128 #include <wnn/commonhd.h>
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
11129 EOF
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
11130 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
11131 { (eval echo configure:11132: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
11132 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11133 if test -z "$ac_err"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11134 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11135 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11136 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11137 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11138 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11139 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11140 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11141 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11142 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11143 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11144 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11145 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11146 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11147 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11148 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11149 with_wnn=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11150 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11151 }
167
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11152 if test "$with_wnn" != "no"; then
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11153 for ac_func in crypt
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11154 do
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11155 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
11156 echo "configure:11157: checking for $ac_func" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
11157
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
11158 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
11159 #line 11160 "configure"
167
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11160 #include "confdefs.h"
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11161 /* System header to define __stub macros and hopefully few prototypes,
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11162 which can conflict with char $ac_func(); below. */
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11163 #include <assert.h>
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11164 /* Override any gcc2 internal prototype to avoid an error. */
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11165 /* We use char because int might match the return type of a gcc2
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11166 builtin and then its argument prototype would still apply. */
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11167 char $ac_func();
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11168
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11169 int main() {
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11170
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11171 /* The GNU C library defines this for functions which it implements
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11172 to always fail with ENOSYS. Some functions are actually named
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11173 something starting with __ and the normal name is an alias. */
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11174 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11175 choke me
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11176 #else
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11177 $ac_func();
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11178 #endif
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11179
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11180 ; return 0; }
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11181 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
11182 if { (eval echo configure:11183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
167
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11183 rm -rf conftest*
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11184 eval "ac_cv_func_$ac_func=yes"
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11185 else
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11186 echo "configure: failed program was:" >&5
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11187 cat conftest.$ac_ext >&5
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11188 rm -rf conftest*
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11189 eval "ac_cv_func_$ac_func=no"
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11190 fi
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11191 rm -f conftest*
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11192
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11193 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11194 echo "$ac_t""yes" 1>&6
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11195 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11196 { test "$extra_verbose" = "yes" && cat << EOF
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11197 Defining $ac_tr_func
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11198 EOF
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11199 cat >> confdefs.h <<EOF
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11200 #define $ac_tr_func 1
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11201 EOF
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11202 }
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11203
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11204 else
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11205 echo "$ac_t""no" 1>&6
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11206 fi
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11207 done
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11208
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11209 test "$ac_cv_func_crypt" != "yes" && {
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11210 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
11211 echo "configure:11212: checking for crypt in -lcrypt" >&5
167
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11212 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11213
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11214 xe_check_libs=" -lcrypt "
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11215 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
11216 #line 11217 "configure"
167
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11217 #include "confdefs.h"
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11218 /* Override any gcc2 internal prototype to avoid an error. */
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11219 /* We use char because int might match the return type of a gcc2
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11220 builtin and then its argument prototype would still apply. */
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11221 char crypt();
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11222
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11223 int main() {
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11224 crypt()
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11225 ; return 0; }
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11226 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
11227 if { (eval echo configure:11228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
167
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11228 rm -rf conftest*
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11229 eval "ac_cv_lib_$ac_lib_var=yes"
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11230 else
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11231 echo "configure: failed program was:" >&5
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11232 cat conftest.$ac_ext >&5
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11233 rm -rf conftest*
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11234 eval "ac_cv_lib_$ac_lib_var=no"
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11235 fi
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11236 rm -f conftest*
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11237 xe_check_libs=""
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11238
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11239 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11240 echo "$ac_t""yes" 1>&6
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11241 ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11242 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11243 { test "$extra_verbose" = "yes" && cat << EOF
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11244 Defining $ac_tr_lib
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11245 EOF
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11246 cat >> confdefs.h <<EOF
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11247 #define $ac_tr_lib 1
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11248 EOF
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11249 }
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11250
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11251 LIBS="-lcrypt $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcrypt\" to \$LIBS"; fi
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11252
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11253 else
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11254 echo "$ac_t""no" 1>&6
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11255 fi
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11256
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11257 }
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11258 fi
377
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11259 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11260
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
11261 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
11262 echo "configure:11263: checking for jl_dic_list_e in -lwnn" >&5
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
11263 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11264
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
11265 xe_check_libs=" -lwnn "
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
11266 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
11267 #line 11268 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11268 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11269 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11270 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11271 builtin and then its argument prototype would still apply. */
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
11272 char jl_dic_list_e();
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11273
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11274 int main() {
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
11275 jl_dic_list_e()
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11276 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11277 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
11278 if { (eval echo configure:11279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
377
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11279 rm -rf conftest*
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11280 eval "ac_cv_lib_$ac_lib_var=yes"
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11281 else
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11282 echo "configure: failed program was:" >&5
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11283 cat conftest.$ac_ext >&5
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11284 rm -rf conftest*
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11285 eval "ac_cv_lib_$ac_lib_var=no"
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11286 fi
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11287 rm -f conftest*
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11288 xe_check_libs=""
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11289
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11290 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11291 echo "$ac_t""yes" 1>&6
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11292 libwnn=wnn
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11293 else
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11294 echo "$ac_t""no" 1>&6
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11295 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
11296 echo "configure:11297: checking for jl_dic_list_e in -lwnn4" >&5
377
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11297 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11298
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11299 xe_check_libs=" -lwnn4 "
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11300 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
11301 #line 11302 "configure"
377
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11302 #include "confdefs.h"
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11303 /* Override any gcc2 internal prototype to avoid an error. */
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11304 /* We use char because int might match the return type of a gcc2
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11305 builtin and then its argument prototype would still apply. */
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11306 char jl_dic_list_e();
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11307
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11308 int main() {
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11309 jl_dic_list_e()
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11310 ; return 0; }
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11311 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
11312 if { (eval echo configure:11313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11313 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11314 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11315 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11316 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11317 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11318 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11319 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11320 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11321 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11322 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11323
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11324 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11325 echo "$ac_t""yes" 1>&6
377
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11326 libwnn=wnn4
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11327 else
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11328 echo "$ac_t""no" 1>&6
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11329 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
11330 echo "configure:11331: checking for jl_dic_list_e in -lwnn6" >&5
377
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11331 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11332
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11333 xe_check_libs=" -lwnn6 "
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11334 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
11335 #line 11336 "configure"
377
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11336 #include "confdefs.h"
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11337 /* Override any gcc2 internal prototype to avoid an error. */
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11338 /* We use char because int might match the return type of a gcc2
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11339 builtin and then its argument prototype would still apply. */
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11340 char jl_dic_list_e();
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11341
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11342 int main() {
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11343 jl_dic_list_e()
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11344 ; return 0; }
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11345 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
11346 if { (eval echo configure:11347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
377
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11347 rm -rf conftest*
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11348 eval "ac_cv_lib_$ac_lib_var=yes"
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11349 else
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11350 echo "configure: failed program was:" >&5
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11351 cat conftest.$ac_ext >&5
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11352 rm -rf conftest*
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11353 eval "ac_cv_lib_$ac_lib_var=no"
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11354 fi
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11355 rm -f conftest*
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11356 xe_check_libs=""
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11357
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11358 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11359 echo "$ac_t""yes" 1>&6
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11360 libwnn=wnn6
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11361 else
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11362 echo "$ac_t""no" 1>&6
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11363 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
11364 echo "configure:11365: checking for dic_list_e in -lwnn6_fromsrc" >&5
377
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11365 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'`
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11366
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11367 xe_check_libs=" -lwnn6_fromsrc "
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11368 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
11369 #line 11370 "configure"
377
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11370 #include "confdefs.h"
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11371 /* Override any gcc2 internal prototype to avoid an error. */
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11372 /* We use char because int might match the return type of a gcc2
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11373 builtin and then its argument prototype would still apply. */
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11374 char dic_list_e();
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11375
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11376 int main() {
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11377 dic_list_e()
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11378 ; return 0; }
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11379 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
11380 if { (eval echo configure:11381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
377
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11381 rm -rf conftest*
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11382 eval "ac_cv_lib_$ac_lib_var=yes"
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11383 else
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11384 echo "configure: failed program was:" >&5
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11385 cat conftest.$ac_ext >&5
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11386 rm -rf conftest*
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11387 eval "ac_cv_lib_$ac_lib_var=no"
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11388 fi
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11389 rm -f conftest*
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11390 xe_check_libs=""
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11391
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11392 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11393 echo "$ac_t""yes" 1>&6
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11394 libwnn=wnn6_fromsrc
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
11395 else
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
11396 echo "$ac_t""no" 1>&6
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
11397 with_wnn=no
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11398 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11399
377
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11400
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11401 fi
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11402
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11403
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11404 fi
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11405
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11406
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11407 fi
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11408
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11409
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11410 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11411 test -z "$with_wnn" && with_wnn=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11412 if test "$with_wnn" = "yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11413 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11414 Defining HAVE_WNN
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11415 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11416 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11417 #define HAVE_WNN 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11418 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11419 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11420
377
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11421 libs_x="-l$libwnn $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$libwnn\" to \$libs_x"; fi
284
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
11422 if test "$with_wnn6" != "no"; then
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
11423
377
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11424 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
11425 echo "configure:11426: checking for jl_fi_dic_list in -l$libwnn" >&5
377
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11426 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11427
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11428 xe_check_libs=" -l$libwnn "
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11429 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
11430 #line 11431 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11431 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11432 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11433 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11434 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11435 char jl_fi_dic_list();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11436
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11437 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11438 jl_fi_dic_list()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11439 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11440 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
11441 if { (eval echo configure:11442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11442 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11443 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11444 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11445 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11446 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11447 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11448 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11449 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11450 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11451 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11452
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11453 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11454 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11455 with_wnn6=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11456 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11457 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11458 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11459
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11460
284
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
11461 test "$with_wnn6" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11462 Defining WNN6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11463 EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11464 cat >> confdefs.h <<\EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11465 #define WNN6 1
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11466 EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11467 }
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11468
284
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
11469 fi
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11470 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11471
267
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11472 canna_includes_found=no
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11473 if test "$with_canna" != "no"; then
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11474 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11475 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
11476 echo "configure:11477: checking for canna/jrkanji.h" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
11477
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
11478 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
11479 #line 11480 "configure"
267
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11480 #include "confdefs.h"
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11481 #include <canna/jrkanji.h>
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11482 EOF
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11483 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
11484 { (eval echo configure:11485: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
11485 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
267
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11486 if test -z "$ac_err"; then
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11487 rm -rf conftest*
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11488 eval "ac_cv_header_$ac_safe=yes"
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11489 else
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11490 echo "$ac_err" >&5
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11491 echo "configure: failed program was:" >&5
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11492 cat conftest.$ac_ext >&5
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11493 rm -rf conftest*
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11494 eval "ac_cv_header_$ac_safe=no"
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11495 fi
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11496 rm -f conftest*
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11497 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11498 echo "$ac_t""yes" 1>&6
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11499 canna_includes_found=yes
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11500 else
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11501 echo "$ac_t""no" 1>&6
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11502 fi
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11503
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11504 fi
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11505 if test "$canna_includes_found" = "no" -a "$with_canna" != "no" -a \
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11506 -d "/usr/local/canna/include"; then
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11507 save_c_switch_site="$c_switch_site"
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11508 c_switch_site="$c_switch_site -I/usr/local/canna/include"
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11509 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11510 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
11511 echo "configure:11512: checking for canna/jrkanji.h" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
11512
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
11513 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
11514 #line 11515 "configure"
267
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11515 #include "confdefs.h"
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11516 #include <canna/jrkanji.h>
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11517 EOF
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11518 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
11519 { (eval echo configure:11520: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
11520 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
267
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11521 if test -z "$ac_err"; then
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11522 rm -rf conftest*
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11523 eval "ac_cv_header_$ac_safe=yes"
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11524 else
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11525 echo "$ac_err" >&5
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11526 echo "configure: failed program was:" >&5
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11527 cat conftest.$ac_ext >&5
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11528 rm -rf conftest*
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11529 eval "ac_cv_header_$ac_safe=no"
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11530 fi
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11531 rm -f conftest*
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11532 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11533 echo "$ac_t""yes" 1>&6
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11534 canna_includes_found=yes
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11535 else
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11536 echo "$ac_t""no" 1>&6
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11537 fi
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11538
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11539 if test "$canna_includes_found" != "yes"; then
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11540 c_switch_site="$save_c_switch_site"
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11541 with_canna="no"
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11542 fi
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11543 fi
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11544
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11545 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11546 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
11547 echo "configure:11548: checking for canna/RK.h" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
11548
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
11549 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
11550 #line 11551 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11551 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11552 #include <canna/RK.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11553 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11554 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
11555 { (eval echo configure:11556: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
11556 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11557 if test -z "$ac_err"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11558 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11559 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11560 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11561 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11562 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11563 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11564 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11565 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11566 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11567 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11568 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11569 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11570 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11571 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11572 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11573 with_canna=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11574 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11575 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11576 test -z "$with_canna" && {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11577 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
11578 echo "configure:11579: checking for RkBgnBun in -lRKC" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11579 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11580
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11581 xe_check_libs=" -lRKC "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11582 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
11583 #line 11584 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11584 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11585 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11586 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11587 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11588 char RkBgnBun();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11589
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11590 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11591 RkBgnBun()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11592 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11593 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
11594 if { (eval echo configure:11595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11595 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11596 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11597 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11598 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11599 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11600 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11601 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11602 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11603 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11604 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11605
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11606 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11607 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11608 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11609 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11610 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11611 with_canna=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11612 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11613
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11614 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11615 test -z "$with_canna" && {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11616 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
11617 echo "configure:11618: checking for jrKanjiControl in -lcanna" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11618 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11619
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11620 xe_check_libs=" -lcanna "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11621 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
11622 #line 11623 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11623 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11624 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11625 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11626 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11627 char jrKanjiControl();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11628
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11629 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11630 jrKanjiControl()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11631 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11632 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
11633 if { (eval echo configure:11634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11634 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11635 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11636 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11637 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11638 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11639 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11640 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11641 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11642 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11643 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11644
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11645 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11646 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11647 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11648 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11649 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11650 with_canna=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11651 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11652
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11653 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11654 test -z "$with_canna" && with_canna=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11655 if test "$with_canna" = "yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11656 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11657 Defining HAVE_CANNA
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11658 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11659 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11660 #define HAVE_CANNA 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11661 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11662 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11663
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11664 libs_x="-lcanna -lRKC $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcanna -lRKC\" to \$libs_x"; fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11665 fi
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
11666
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11667 else for feature in xim canna wnn; do
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11668 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
11669 echo "configure: warning: --with-${feature} ignored: Not valid without Mule support" 1>&2
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11670 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11671 eval "with_${feature}=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11672 done
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11673 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11674
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11675 if test "$need_motif" = "yes" ; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11676 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
11677
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
11678 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
11679 echo "configure:11680: checking for layout_object_getvalue in -li18n" >&5
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
11680 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'`
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
11681
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
11682 xe_check_libs=" -li18n "
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
11683 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
11684 #line 11685 "configure"
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
11685 #include "confdefs.h"
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
11686 /* Override any gcc2 internal prototype to avoid an error. */
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
11687 /* We use char because int might match the return type of a gcc2
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
11688 builtin and then its argument prototype would still apply. */
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
11689 char layout_object_getvalue();
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
11690
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
11691 int main() {
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
11692 layout_object_getvalue()
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
11693 ; return 0; }
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
11694 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
11695 if { (eval echo configure:11696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
11696 rm -rf conftest*
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
11697 eval "ac_cv_lib_$ac_lib_var=yes"
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
11698 else
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
11699 echo "configure: failed program was:" >&5
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
11700 cat conftest.$ac_ext >&5
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
11701 rm -rf conftest*
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
11702 eval "ac_cv_lib_$ac_lib_var=no"
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
11703 fi
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
11704 rm -f conftest*
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
11705 xe_check_libs=""
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
11706
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
11707 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
11708 echo "$ac_t""yes" 1>&6
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
11709 libs_x="-li18n $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-li18n\" to \$libs_x"; fi
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
11710 else
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
11711 echo "$ac_t""no" 1>&6
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
11712 fi
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
11713
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
11714
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11715
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11716 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
165
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents: 163
diff changeset
11717 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents: 163
diff changeset
11718 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11719
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
11720 runpath="" runpath_dirs=""
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
11721 if test -n "$LD_RUN_PATH"; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11722 runpath="$LD_RUN_PATH"
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
11723 elif test "$GCC" = "yes"; then
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
11724 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
11725 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
11726 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
11727 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
11728 case "$arg" in P,* | -L* | -R* )
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
11729 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
11730 {
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
11731 xe_runpath_dir="$dir"
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
11732 test "$xe_runpath_dir" != "/lib" -a \
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
11733 "$xe_runpath_dir" != "/usr/lib" -a \
371
cc15677e0335 Import from CVS: tag r21-2b1
cvs
parents: 369
diff changeset
11734 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
11735 eval "$xe_add_unique_runpath_dir"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
11736 }
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
11737 done ;;
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
11738 esac
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
11739 done
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
11740 ld_switch_run="$ld_switch_run_save"
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
11741 rm -f conftest*
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11742 else
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
11743 for arg in $ld_switch_site $ld_switch_x_site; do
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
11744 case "$arg" in -L*) {
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
11745 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
11746 test "$xe_runpath_dir" != "/lib" -a \
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
11747 "$xe_runpath_dir" != "/usr/lib" -a \
371
cc15677e0335 Import from CVS: tag r21-2b1
cvs
parents: 369
diff changeset
11748 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
11749 eval "$xe_add_unique_runpath_dir"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
11750 };; esac
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11751 done
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
11752 if test "$opsys $need_motif" = "sol2 yes"; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
11753 xe_runpath_dir="/opt/SUNWdt/lib";
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
11754 eval "$xe_add_unique_runpath_dir";
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
11755 fi
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
11756 fi
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11757 if test -n "$runpath"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11758 ld_switch_run="${dash_r}${runpath}"
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
11759
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
11760 if test "$GCC" = "yes"; then
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
11761 set x $ld_switch_run; shift; ld_switch_run=""
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
11762 while test -n "$1"; do
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
11763 case $1 in
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
11764 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
11765 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
11766 -Xlinker* ) ;;
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
11767 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
11768 esac
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
11769 shift
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
11770 done
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
11771 fi
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11772 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11773 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11774 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11775
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11776 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11777
1070
989ddde6705d [xemacs-hg @ 2002-10-24 16:19:39 by youngs]
youngs
parents: 997
diff changeset
11778
1111
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
11779 for ac_func in cbrt closedir dup2 eaccess fmod fpathconf frexp ftime getaddrinfo gethostname getnameinfo getpagesize gettimeofday getcwd getwd link logb lrand48 matherr mkdir mktime perror poll random readlink rename res_init rint rmdir select setitimer setpgid setlocale setsid sigblock sighold sigprocmask snprintf stpcpy strerror symlink tzset ulimit usleep waitpid vsnprintf fsync ftruncate umask wcslen wcscmp
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11780 do
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11781 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
11782 echo "configure:11783: checking for $ac_func" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
11783
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
11784 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
11785 #line 11786 "configure"
410
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
11786 #include "confdefs.h"
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
11787 /* System header to define __stub macros and hopefully few prototypes,
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
11788 which can conflict with char $ac_func(); below. */
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
11789 #include <assert.h>
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
11790 /* Override any gcc2 internal prototype to avoid an error. */
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
11791 /* We use char because int might match the return type of a gcc2
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
11792 builtin and then its argument prototype would still apply. */
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
11793 char $ac_func();
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
11794
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
11795 int main() {
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
11796
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
11797 /* The GNU C library defines this for functions which it implements
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
11798 to always fail with ENOSYS. Some functions are actually named
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
11799 something starting with __ and the normal name is an alias. */
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
11800 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
11801 choke me
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
11802 #else
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
11803 $ac_func();
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
11804 #endif
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
11805
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
11806 ; return 0; }
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
11807 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
11808 if { (eval echo configure:11809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11809 rm -rf conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11810 eval "ac_cv_func_$ac_func=yes"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11811 else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11812 echo "configure: failed program was:" >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11813 cat conftest.$ac_ext >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11814 rm -rf conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11815 eval "ac_cv_func_$ac_func=no"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11816 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11817 rm -f conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11818
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11819 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11820 echo "$ac_t""yes" 1>&6
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11821 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11822 { test "$extra_verbose" = "yes" && cat << EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11823 Defining $ac_tr_func
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11824 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11825 cat >> confdefs.h <<EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11826 #define $ac_tr_func 1
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11827 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11828 }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11829
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11830 else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11831 echo "$ac_t""no" 1>&6
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11832 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11833 done
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11834
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11835
1070
989ddde6705d [xemacs-hg @ 2002-10-24 16:19:39 by youngs]
youngs
parents: 997
diff changeset
11836 if test "$ac_cv_func_getaddrinfo" != "no" ; then
989ddde6705d [xemacs-hg @ 2002-10-24 16:19:39 by youngs]
youngs
parents: 997
diff changeset
11837 case "$opsys" in
989ddde6705d [xemacs-hg @ 2002-10-24 16:19:39 by youngs]
youngs
parents: 997
diff changeset
11838 hpux11 )
989ddde6705d [xemacs-hg @ 2002-10-24 16:19:39 by youngs]
youngs
parents: 997
diff changeset
11839 echo "configure: warning: Use of getaddrinfo is disabled for HP-UX 11.XX." 1>&2
989ddde6705d [xemacs-hg @ 2002-10-24 16:19:39 by youngs]
youngs
parents: 997
diff changeset
11840 ac_cv_func_getaddrinfo=no
989ddde6705d [xemacs-hg @ 2002-10-24 16:19:39 by youngs]
youngs
parents: 997
diff changeset
11841 ;;
989ddde6705d [xemacs-hg @ 2002-10-24 16:19:39 by youngs]
youngs
parents: 997
diff changeset
11842 esac
989ddde6705d [xemacs-hg @ 2002-10-24 16:19:39 by youngs]
youngs
parents: 997
diff changeset
11843 fi
989ddde6705d [xemacs-hg @ 2002-10-24 16:19:39 by youngs]
youngs
parents: 997
diff changeset
11844
458
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
11845
444
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
11846 for ac_func in getpt _getpty grantpt unlockpt ptsname killpg tcgetpgrp
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11847 do
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11848 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
11849 echo "configure:11850: checking for $ac_func" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
11850
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
11851 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
11852 #line 11853 "configure"
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11853 #include "confdefs.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11854 /* System header to define __stub macros and hopefully few prototypes,
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11855 which can conflict with char $ac_func(); below. */
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11856 #include <assert.h>
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11857 /* Override any gcc2 internal prototype to avoid an error. */
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11858 /* We use char because int might match the return type of a gcc2
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11859 builtin and then its argument prototype would still apply. */
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11860 char $ac_func();
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11861
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11862 int main() {
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11863
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11864 /* The GNU C library defines this for functions which it implements
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11865 to always fail with ENOSYS. Some functions are actually named
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11866 something starting with __ and the normal name is an alias. */
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11867 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11868 choke me
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11869 #else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11870 $ac_func();
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11871 #endif
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11872
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11873 ; return 0; }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11874 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
11875 if { (eval echo configure:11876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
410
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
11876 rm -rf conftest*
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
11877 eval "ac_cv_func_$ac_func=yes"
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
11878 else
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
11879 echo "configure: failed program was:" >&5
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
11880 cat conftest.$ac_ext >&5
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
11881 rm -rf conftest*
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
11882 eval "ac_cv_func_$ac_func=no"
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
11883 fi
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
11884 rm -f conftest*
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
11885
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
11886 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
11887 echo "$ac_t""yes" 1>&6
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
11888 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
11889 { test "$extra_verbose" = "yes" && cat << EOF
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
11890 Defining $ac_tr_func
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
11891 EOF
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
11892 cat >> confdefs.h <<EOF
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
11893 #define $ac_tr_func 1
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
11894 EOF
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
11895 }
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
11896
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
11897 else
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
11898 echo "$ac_t""no" 1>&6
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
11899 fi
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
11900 done
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
11901
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
11902
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11903 echo $ac_n "checking for openpty""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
11904 echo "configure:11905: checking for openpty" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
11905
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
11906 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
11907 #line 11908 "configure"
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11908 #include "confdefs.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11909 /* System header to define __stub macros and hopefully few prototypes,
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11910 which can conflict with char openpty(); below. */
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11911 #include <assert.h>
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11912 /* Override any gcc2 internal prototype to avoid an error. */
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11913 /* We use char because int might match the return type of a gcc2
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11914 builtin and then its argument prototype would still apply. */
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11915 char openpty();
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11916
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11917 int main() {
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11918
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11919 /* The GNU C library defines this for functions which it implements
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11920 to always fail with ENOSYS. Some functions are actually named
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11921 something starting with __ and the normal name is an alias. */
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11922 #if defined (__stub_openpty) || defined (__stub___openpty)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11923 choke me
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11924 #else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11925 openpty();
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11926 #endif
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11927
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11928 ; return 0; }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11929 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
11930 if { (eval echo configure:11931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11931 rm -rf conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11932 eval "ac_cv_func_openpty=yes"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11933 else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11934 echo "configure: failed program was:" >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11935 cat conftest.$ac_ext >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11936 rm -rf conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11937 eval "ac_cv_func_openpty=no"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11938 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11939 rm -f conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11940
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11941 if eval "test \"`echo '$ac_cv_func_'openpty`\" = yes"; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11942 echo "$ac_t""yes" 1>&6
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11943 have_openpty=yes
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11944 else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11945 echo "$ac_t""no" 1>&6
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11946
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11947
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11948 echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
11949 echo "configure:11950: checking for openpty in -lutil" >&5
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11950 ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'`
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11951
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11952 xe_check_libs=" -lutil "
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11953 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
11954 #line 11955 "configure"
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11955 #include "confdefs.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11956 /* Override any gcc2 internal prototype to avoid an error. */
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11957 /* We use char because int might match the return type of a gcc2
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11958 builtin and then its argument prototype would still apply. */
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11959 char openpty();
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11960
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11961 int main() {
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11962 openpty()
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11963 ; return 0; }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11964 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
11965 if { (eval echo configure:11966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11966 rm -rf conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11967 eval "ac_cv_lib_$ac_lib_var=yes"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11968 else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11969 echo "configure: failed program was:" >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11970 cat conftest.$ac_ext >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11971 rm -rf conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11972 eval "ac_cv_lib_$ac_lib_var=no"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11973 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11974 rm -f conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11975 xe_check_libs=""
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11976
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11977 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11978 echo "$ac_t""yes" 1>&6
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11979 have_openpty=yes need_libutil=yes
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11980 else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11981 echo "$ac_t""no" 1>&6
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11982 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11983
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11984
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11985 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11986
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11987 if test "$have_openpty" = "yes"; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11988 { test "$extra_verbose" = "yes" && cat << \EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11989 Defining HAVE_OPENPTY
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11990 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11991 cat >> confdefs.h <<\EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11992 #define HAVE_OPENPTY 1
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11993 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11994 }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11995
535
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11996 for ac_hdr in libutil.h util.h
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11997 do
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11998 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11999 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
12000 echo "configure:12001: checking for $ac_hdr" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
12001
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
12002 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
12003 #line 12004 "configure"
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12004 #include "confdefs.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12005 #include <$ac_hdr>
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12006 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12007 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
12008 { (eval echo configure:12009: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12009 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12010 if test -z "$ac_err"; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12011 rm -rf conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12012 eval "ac_cv_header_$ac_safe=yes"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12013 else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12014 echo "$ac_err" >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12015 echo "configure: failed program was:" >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12016 cat conftest.$ac_ext >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12017 rm -rf conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12018 eval "ac_cv_header_$ac_safe=no"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12019 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12020 rm -f conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12021 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12022 echo "$ac_t""yes" 1>&6
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12023 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12024 { test "$extra_verbose" = "yes" && cat << EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12025 Defining $ac_tr_hdr
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12026 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12027 cat >> confdefs.h <<EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12028 #define $ac_tr_hdr 1
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12029 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12030 }
458
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
12031 break
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12032 else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12033 echo "$ac_t""no" 1>&6
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12034 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12035 done
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12036
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12037 test "$need_libutil" = "yes" && libs_system="$libs_system -lutil" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lutil\" to \$libs_system"; fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12038 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12039
535
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12040 case "$opsys" in
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12041 hpux*) for ac_hdr in sys/ptyio.h
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12042 do
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12043 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12044 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
12045 echo "configure:12046: checking for $ac_hdr" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
12046
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
12047 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
12048 #line 12049 "configure"
535
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12049 #include "confdefs.h"
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12050 #include <$ac_hdr>
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12051 EOF
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12052 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
12053 { (eval echo configure:12054: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
535
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12054 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12055 if test -z "$ac_err"; then
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12056 rm -rf conftest*
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12057 eval "ac_cv_header_$ac_safe=yes"
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12058 else
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12059 echo "$ac_err" >&5
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12060 echo "configure: failed program was:" >&5
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12061 cat conftest.$ac_ext >&5
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12062 rm -rf conftest*
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12063 eval "ac_cv_header_$ac_safe=no"
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12064 fi
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12065 rm -f conftest*
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12066 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12067 echo "$ac_t""yes" 1>&6
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12068 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12069 { test "$extra_verbose" = "yes" && cat << EOF
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12070 Defining $ac_tr_hdr
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12071 EOF
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12072 cat >> confdefs.h <<EOF
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12073 #define $ac_tr_hdr 1
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12074 EOF
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12075 }
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12076
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12077 else
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12078 echo "$ac_t""no" 1>&6
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12079 fi
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12080 done
1111
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
12081 ;;
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
12082 *) for ac_hdr in pty.h
535
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12083 do
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12084 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12085 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
12086 echo "configure:12087: checking for $ac_hdr" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
12087
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
12088 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
12089 #line 12090 "configure"
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12090 #include "confdefs.h"
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12091 #include <$ac_hdr>
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12092 EOF
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12093 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
12094 { (eval echo configure:12095: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12095 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12096 if test -z "$ac_err"; then
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12097 rm -rf conftest*
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12098 eval "ac_cv_header_$ac_safe=yes"
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12099 else
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12100 echo "$ac_err" >&5
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12101 echo "configure: failed program was:" >&5
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12102 cat conftest.$ac_ext >&5
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12103 rm -rf conftest*
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12104 eval "ac_cv_header_$ac_safe=no"
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12105 fi
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12106 rm -f conftest*
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12107 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12108 echo "$ac_t""yes" 1>&6
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12109 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12110 { test "$extra_verbose" = "yes" && cat << EOF
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12111 Defining $ac_tr_hdr
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12112 EOF
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12113 cat >> confdefs.h <<EOF
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12114 #define $ac_tr_hdr 1
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12115 EOF
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12116 }
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12117
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12118 else
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12119 echo "$ac_t""no" 1>&6
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12120 fi
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12121 done
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12122
1111
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
12123 test "$ac_cv_header_pty_h" = "no" && for ac_hdr in sys/pty.h
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
12124 do
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
12125 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
12126 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
12127 echo "configure:12128: checking for $ac_hdr" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
12128
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
12129 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
12130 #line 12131 "configure"
1111
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
12131 #include "confdefs.h"
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
12132 #include <$ac_hdr>
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
12133 EOF
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
12134 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
12135 { (eval echo configure:12136: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1111
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
12136 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
12137 if test -z "$ac_err"; then
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
12138 rm -rf conftest*
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
12139 eval "ac_cv_header_$ac_safe=yes"
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
12140 else
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
12141 echo "$ac_err" >&5
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
12142 echo "configure: failed program was:" >&5
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
12143 cat conftest.$ac_ext >&5
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
12144 rm -rf conftest*
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
12145 eval "ac_cv_header_$ac_safe=no"
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
12146 fi
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
12147 rm -f conftest*
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
12148 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
12149 echo "$ac_t""yes" 1>&6
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
12150 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
12151 { test "$extra_verbose" = "yes" && cat << EOF
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
12152 Defining $ac_tr_hdr
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
12153 EOF
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
12154 cat >> confdefs.h <<EOF
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
12155 #define $ac_tr_hdr 1
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
12156 EOF
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
12157 }
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
12158
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
12159 else
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
12160 echo "$ac_t""no" 1>&6
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
12161 fi
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
12162 done
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
12163
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12164 ;;
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12165 esac
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12166
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12167 for ac_hdr in stropts.h
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12168 do
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12169 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12170 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
12171 echo "configure:12172: checking for $ac_hdr" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
12172
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
12173 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
12174 #line 12175 "configure"
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12175 #include "confdefs.h"
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12176 #include <$ac_hdr>
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12177 EOF
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12178 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
12179 { (eval echo configure:12180: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12180 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12181 if test -z "$ac_err"; then
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12182 rm -rf conftest*
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12183 eval "ac_cv_header_$ac_safe=yes"
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12184 else
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12185 echo "$ac_err" >&5
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12186 echo "configure: failed program was:" >&5
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12187 cat conftest.$ac_ext >&5
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12188 rm -rf conftest*
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12189 eval "ac_cv_header_$ac_safe=no"
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12190 fi
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12191 rm -f conftest*
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12192 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12193 echo "$ac_t""yes" 1>&6
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12194 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12195 { test "$extra_verbose" = "yes" && cat << EOF
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12196 Defining $ac_tr_hdr
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12197 EOF
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12198 cat >> confdefs.h <<EOF
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12199 #define $ac_tr_hdr 1
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12200 EOF
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12201 }
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12202
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12203 else
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12204 echo "$ac_t""no" 1>&6
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12205 fi
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12206 done
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12207
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12208 if test "$ac_cv_header_stropts_h" = "yes"; then
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12209 for ac_func in isastream
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12210 do
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12211 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
12212 echo "configure:12213: checking for $ac_func" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
12213
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
12214 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
12215 #line 12216 "configure"
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12216 #include "confdefs.h"
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12217 /* System header to define __stub macros and hopefully few prototypes,
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12218 which can conflict with char $ac_func(); below. */
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12219 #include <assert.h>
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12220 /* Override any gcc2 internal prototype to avoid an error. */
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12221 /* We use char because int might match the return type of a gcc2
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12222 builtin and then its argument prototype would still apply. */
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12223 char $ac_func();
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12224
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12225 int main() {
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12226
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12227 /* The GNU C library defines this for functions which it implements
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12228 to always fail with ENOSYS. Some functions are actually named
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12229 something starting with __ and the normal name is an alias. */
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12230 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12231 choke me
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12232 #else
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12233 $ac_func();
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12234 #endif
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12235
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12236 ; return 0; }
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12237 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
12238 if { (eval echo configure:12239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12239 rm -rf conftest*
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12240 eval "ac_cv_func_$ac_func=yes"
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12241 else
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12242 echo "configure: failed program was:" >&5
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12243 cat conftest.$ac_ext >&5
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12244 rm -rf conftest*
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12245 eval "ac_cv_func_$ac_func=no"
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12246 fi
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12247 rm -f conftest*
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12248
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12249 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12250 echo "$ac_t""yes" 1>&6
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12251 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12252 { test "$extra_verbose" = "yes" && cat << EOF
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12253 Defining $ac_tr_func
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12254 EOF
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12255 cat >> confdefs.h <<EOF
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12256 #define $ac_tr_func 1
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12257 EOF
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12258 }
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12259
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12260 else
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12261 echo "$ac_t""no" 1>&6
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12262 fi
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12263 done
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12264
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12265 for ac_hdr in strtio.h
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12266 do
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12267 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12268 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
12269 echo "configure:12270: checking for $ac_hdr" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
12270
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
12271 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
12272 #line 12273 "configure"
535
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12273 #include "confdefs.h"
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12274 #include <$ac_hdr>
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12275 EOF
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12276 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
12277 { (eval echo configure:12278: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
535
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12278 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12279 if test -z "$ac_err"; then
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12280 rm -rf conftest*
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12281 eval "ac_cv_header_$ac_safe=yes"
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12282 else
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12283 echo "$ac_err" >&5
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12284 echo "configure: failed program was:" >&5
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12285 cat conftest.$ac_ext >&5
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12286 rm -rf conftest*
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12287 eval "ac_cv_header_$ac_safe=no"
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12288 fi
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12289 rm -f conftest*
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12290 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12291 echo "$ac_t""yes" 1>&6
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12292 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12293 { test "$extra_verbose" = "yes" && cat << EOF
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12294 Defining $ac_tr_hdr
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12295 EOF
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12296 cat >> confdefs.h <<EOF
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12297 #define $ac_tr_hdr 1
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12298 EOF
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12299 }
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12300
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12301 else
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12302 echo "$ac_t""no" 1>&6
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12303 fi
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12304 done
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12305 fi
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12306
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12307 for ac_func in getloadavg
410
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
12308 do
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
12309 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
12310 echo "configure:12311: checking for $ac_func" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
12311
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
12312 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
12313 #line 12314 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12314 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12315 /* System header to define __stub macros and hopefully few prototypes,
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12316 which can conflict with char $ac_func(); below. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12317 #include <assert.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12318 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12319 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12320 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12321 char $ac_func();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12322
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12323 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12324
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
12325 /* The GNU C library defines this for functions which it implements
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
12326 to always fail with ENOSYS. Some functions are actually named
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
12327 something starting with __ and the normal name is an alias. */
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12328 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
12329 choke me
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
12330 #else
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12331 $ac_func();
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
12332 #endif
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12333
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
12334 ; return 0; }
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
12335 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
12336 if { (eval echo configure:12337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12337 rm -rf conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12338 eval "ac_cv_func_$ac_func=yes"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12339 else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12340 echo "configure: failed program was:" >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12341 cat conftest.$ac_ext >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12342 rm -rf conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12343 eval "ac_cv_func_$ac_func=no"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12344 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12345 rm -f conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12346
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12347 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12348 echo "$ac_t""yes" 1>&6
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12349 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12350 { test "$extra_verbose" = "yes" && cat << EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12351 Defining $ac_tr_func
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12352 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12353 cat >> confdefs.h <<EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12354 #define $ac_tr_func 1
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12355 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12356 }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12357
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12358 else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12359 echo "$ac_t""no" 1>&6
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12360 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12361 done
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12362
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12363
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12364 if test "$ac_cv_func_getloadavg" = "yes"; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12365 for ac_hdr in sys/loadavg.h
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12366 do
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12367 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12368 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
12369 echo "configure:12370: checking for $ac_hdr" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
12370
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
12371 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
12372 #line 12373 "configure"
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12373 #include "confdefs.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12374 #include <$ac_hdr>
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12375 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12376 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
12377 { (eval echo configure:12378: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12378 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12379 if test -z "$ac_err"; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12380 rm -rf conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12381 eval "ac_cv_header_$ac_safe=yes"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12382 else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12383 echo "$ac_err" >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12384 echo "configure: failed program was:" >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12385 cat conftest.$ac_ext >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12386 rm -rf conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12387 eval "ac_cv_header_$ac_safe=no"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12388 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12389 rm -f conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12390 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12391 echo "$ac_t""yes" 1>&6
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12392 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12393 { test "$extra_verbose" = "yes" && cat << EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12394 Defining $ac_tr_hdr
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12395 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12396 cat >> confdefs.h <<EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12397 #define $ac_tr_hdr 1
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12398 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12399 }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12400
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12401 else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12402 echo "$ac_t""no" 1>&6
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12403 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12404 done
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12405
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12406 else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12407 extra_objs="$extra_objs getloadavg.o" && if test "$extra_verbose" = "yes"; then
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12408 echo " xemacs will be linked with \"getloadavg.o\""
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12409 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12410
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12411
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12412 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
12413 echo "configure:12414: checking for kstat_open in -lkstat" >&5
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12414 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12415
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12416 xe_check_libs=" -lkstat "
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12417 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
12418 #line 12419 "configure"
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12419 #include "confdefs.h"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12420 /* Override any gcc2 internal prototype to avoid an error. */
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12421 /* We use char because int might match the return type of a gcc2
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12422 builtin and then its argument prototype would still apply. */
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12423 char kstat_open();
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12424
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12425 int main() {
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12426 kstat_open()
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12427 ; return 0; }
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12428 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
12429 if { (eval echo configure:12430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12430 rm -rf conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12431 eval "ac_cv_lib_$ac_lib_var=yes"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12432 else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12433 echo "configure: failed program was:" >&5
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12434 cat conftest.$ac_ext >&5
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12435 rm -rf conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12436 eval "ac_cv_lib_$ac_lib_var=no"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12437 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12438 rm -f conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12439 xe_check_libs=""
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12440
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12441 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12442 echo "$ac_t""yes" 1>&6
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12443 ac_tr_lib=HAVE_LIB`echo kstat | sed -e 's/[^a-zA-Z0-9_]/_/g' \
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12444 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
369
1d62742628b6 Import from CVS: tag r21-1-14
cvs
parents: 367
diff changeset
12445 { test "$extra_verbose" = "yes" && cat << EOF
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12446 Defining $ac_tr_lib
369
1d62742628b6 Import from CVS: tag r21-1-14
cvs
parents: 367
diff changeset
12447 EOF
1d62742628b6 Import from CVS: tag r21-1-14
cvs
parents: 367
diff changeset
12448 cat >> confdefs.h <<EOF
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12449 #define $ac_tr_lib 1
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12450 EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12451 }
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12452
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12453 LIBS="-lkstat $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkstat\" to \$LIBS"; fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12454
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12455 else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12456 echo "$ac_t""no" 1>&6
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12457 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12458
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12459
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12460 for ac_hdr in kstat.h
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12461 do
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12462 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12463 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
12464 echo "configure:12465: checking for $ac_hdr" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
12465
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
12466 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
12467 #line 12468 "configure"
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12468 #include "confdefs.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12469 #include <$ac_hdr>
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12470 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12471 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
12472 { (eval echo configure:12473: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12473 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12474 if test -z "$ac_err"; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12475 rm -rf conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12476 eval "ac_cv_header_$ac_safe=yes"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12477 else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12478 echo "$ac_err" >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12479 echo "configure: failed program was:" >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12480 cat conftest.$ac_ext >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12481 rm -rf conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12482 eval "ac_cv_header_$ac_safe=no"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12483 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12484 rm -f conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12485 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12486 echo "$ac_t""yes" 1>&6
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12487 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12488 { test "$extra_verbose" = "yes" && cat << EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12489 Defining $ac_tr_hdr
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12490 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12491 cat >> confdefs.h <<EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12492 #define $ac_tr_hdr 1
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12493 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12494 }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12495
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12496 else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12497 echo "$ac_t""no" 1>&6
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12498 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12499 done
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12500
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12501
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12502
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12503 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
12504 echo "configure:12505: checking for kvm_read in -lkvm" >&5
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12505 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12506
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12507 xe_check_libs=" -lkvm "
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12508 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
12509 #line 12510 "configure"
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12510 #include "confdefs.h"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12511 /* Override any gcc2 internal prototype to avoid an error. */
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12512 /* We use char because int might match the return type of a gcc2
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12513 builtin and then its argument prototype would still apply. */
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12514 char kvm_read();
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12515
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12516 int main() {
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12517 kvm_read()
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12518 ; return 0; }
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12519 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
12520 if { (eval echo configure:12521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12521 rm -rf conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12522 eval "ac_cv_lib_$ac_lib_var=yes"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12523 else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12524 echo "configure: failed program was:" >&5
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12525 cat conftest.$ac_ext >&5
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12526 rm -rf conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12527 eval "ac_cv_lib_$ac_lib_var=no"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12528 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12529 rm -f conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12530 xe_check_libs=""
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12531
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12532 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12533 echo "$ac_t""yes" 1>&6
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12534 ac_tr_lib=HAVE_LIB`echo kvm | sed -e 's/[^a-zA-Z0-9_]/_/g' \
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12535 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12536 { test "$extra_verbose" = "yes" && cat << EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12537 Defining $ac_tr_lib
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12538 EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12539 cat >> confdefs.h <<EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12540 #define $ac_tr_lib 1
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12541 EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12542 }
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12543
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12544 LIBS="-lkvm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkvm\" to \$LIBS"; fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12545
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12546 else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12547 echo "$ac_t""no" 1>&6
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12548 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12549
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12550
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12551 fi
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
12552
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12553 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
12554 echo "configure:12555: checking whether netdb declares h_errno" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
12555 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
12556 #line 12557 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12557 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12558 #include <netdb.h>
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12559 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12560 return h_errno;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12561 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12562 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
12563 if { (eval echo configure:12564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12564 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12565 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12566 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12567 Defining HAVE_H_ERRNO
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12568 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12569 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12570 #define HAVE_H_ERRNO 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12571 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12572 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12573
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12574 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12575 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12576 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12577 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12578 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12579 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12580 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12581
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12582 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
12583 echo "configure:12584: checking for sigsetjmp" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
12584 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
12585 #line 12586 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12586 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12587 #include <setjmp.h>
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12588 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12589 sigjmp_buf bar; sigsetjmp (bar, 0);
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12590 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12591 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
12592 if { (eval echo configure:12593: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12593 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12594 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12595 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12596 Defining HAVE_SIGSETJMP
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12597 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12598 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12599 #define HAVE_SIGSETJMP 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12600 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12601 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12602
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12603 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12604 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12605 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12606 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12607 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12608 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12609 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12610
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12611 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
12612 echo "configure:12613: checking whether localtime caches TZ" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12613
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12614 if test "$ac_cv_func_tzset" = "yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12615 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
12616 #line 12617 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12617 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12618 #include <time.h>
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12619 #if STDC_HEADERS
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12620 # include <stdlib.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12621 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12622 extern char **environ;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12623 unset_TZ ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12624 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12625 char **from, **to;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12626 for (to = from = environ; (*to = *from); from++)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12627 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12628 to++;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12629 }
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12630 char TZ_GMT0[] = "TZ=GMT0";
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12631 char TZ_PST8[] = "TZ=PST8";
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12632 main()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12633 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12634 time_t now = time ((time_t *) 0);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12635 int hour_GMT0, hour_unset;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12636 if (putenv (TZ_GMT0) != 0)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12637 exit (1);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12638 hour_GMT0 = localtime (&now)->tm_hour;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12639 unset_TZ ();
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12640 hour_unset = localtime (&now)->tm_hour;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12641 if (putenv (TZ_PST8) != 0)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12642 exit (1);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12643 if (localtime (&now)->tm_hour == hour_GMT0)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12644 exit (1);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12645 unset_TZ ();
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12646 if (localtime (&now)->tm_hour != hour_unset)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12647 exit (1);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12648 exit (0);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12649 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12650 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
12651 if { (eval echo configure:12652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12652 then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12653 emacs_cv_localtime_cache=no
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12654 else
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
12655 conftest_rc="$?"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12656 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12657 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12658 rm -fr conftest*
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12659 emacs_cv_localtime_cache=yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12660 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12661 rm -fr conftest*
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12662 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12663 # If we lack tzset, report that localtime does not cache TZ,
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12664 # since we can't invalidate the cache if we don't have tzset.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12665 emacs_cv_localtime_cache=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12666 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12667 echo "$ac_t""$emacs_cv_localtime_cache" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12668 if test $emacs_cv_localtime_cache = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12669 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12670 Defining LOCALTIME_CACHE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12671 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12672 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12673 #define LOCALTIME_CACHE 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12674 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12675 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12676
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12677 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12678
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12679 if test "$HAVE_TIMEVAL" = "yes"; then
274
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
12680 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
12681 echo "configure:12682: checking whether gettimeofday accepts one or two arguments" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
12682 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
12683 #line 12684 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12684 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12685
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12686 #ifdef TIME_WITH_SYS_TIME
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12687 #include <sys/time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12688 #include <time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12689 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12690 #ifdef HAVE_SYS_TIME_H
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12691 #include <sys/time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12692 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12693 #include <time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12694 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12695 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12696
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12697 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12698
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12699 struct timeval time;
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12700 gettimeofday (&time, 0);
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12701
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12702 ; return 0; }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12703 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
12704 if { (eval echo configure:12705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
274
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
12705 rm -rf conftest*
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
12706 echo "$ac_t""two" 1>&6
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
12707 else
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
12708 echo "configure: failed program was:" >&5
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
12709 cat conftest.$ac_ext >&5
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
12710 rm -rf conftest*
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
12711 echo "$ac_t""one" 1>&6
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12712 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12713 Defining GETTIMEOFDAY_ONE_ARGUMENT
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12714 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12715 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12716 #define GETTIMEOFDAY_ONE_ARGUMENT 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12717 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12718 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12719
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12720 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12721 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12722 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12723
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12724
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12725 echo $ac_n "checking for inline""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
12726 echo "configure:12727: checking for inline" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12727
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12728 ac_cv_c_inline=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12729 for ac_kw in inline __inline__ __inline; do
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12730 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
12731 #line 12732 "configure"
744
8ae895c67ce7 [xemacs-hg @ 2002-02-04 15:44:37 by wmperry]
wmperry
parents: 726
diff changeset
12732 #include "confdefs.h"
8ae895c67ce7 [xemacs-hg @ 2002-02-04 15:44:37 by wmperry]
wmperry
parents: 726
diff changeset
12733
8ae895c67ce7 [xemacs-hg @ 2002-02-04 15:44:37 by wmperry]
wmperry
parents: 726
diff changeset
12734 int main() {
8ae895c67ce7 [xemacs-hg @ 2002-02-04 15:44:37 by wmperry]
wmperry
parents: 726
diff changeset
12735 } $ac_kw foo() {
8ae895c67ce7 [xemacs-hg @ 2002-02-04 15:44:37 by wmperry]
wmperry
parents: 726
diff changeset
12736 ; return 0; }
8ae895c67ce7 [xemacs-hg @ 2002-02-04 15:44:37 by wmperry]
wmperry
parents: 726
diff changeset
12737 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
12738 if { (eval echo configure:12739: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12739 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12740 ac_cv_c_inline=$ac_kw; break
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12741 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12742 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12743 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12744 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12745 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12746 done
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12747
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12748
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12749 echo "$ac_t""$ac_cv_c_inline" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12750 case "$ac_cv_c_inline" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12751 inline | yes) ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12752 no) { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12753 Defining inline =
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12754 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12755 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12756 #define inline
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12757 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12758 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12759 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12760 *) { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12761 Defining inline = $ac_cv_c_inline
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12762 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12763 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12764 #define inline $ac_cv_c_inline
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12765 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12766 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12767 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12768 esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12769
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12770 test "$ac_cv_c_inline" != "no" -a "$GCC" = "yes" && extra_objs="$extra_objs inline.o" && if test "$extra_verbose" = "yes"; then
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
12771 echo " xemacs will be linked with \"inline.o\""
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
12772 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12773
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12774
444
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
12775 if test "$__DECC" != "yes"; then
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
12776 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12777 # for constant arguments. Useless!
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12778 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
12779 echo "configure:12780: checking for working alloca.h" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
12780
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
12781 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
12782 #line 12783 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12783 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12784 #include <alloca.h>
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12785 int main() {
744
8ae895c67ce7 [xemacs-hg @ 2002-02-04 15:44:37 by wmperry]
wmperry
parents: 726
diff changeset
12786 char *p = alloca(2 * sizeof(int));
8ae895c67ce7 [xemacs-hg @ 2002-02-04 15:44:37 by wmperry]
wmperry
parents: 726
diff changeset
12787 ; return 0; }
8ae895c67ce7 [xemacs-hg @ 2002-02-04 15:44:37 by wmperry]
wmperry
parents: 726
diff changeset
12788 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
12789 if { (eval echo configure:12790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12790 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12791 ac_cv_header_alloca_h=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12792 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12793 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12794 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12795 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12796 ac_cv_header_alloca_h=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12797 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12798 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12799
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12800 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12801 if test $ac_cv_header_alloca_h = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12802 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12803 Defining HAVE_ALLOCA_H
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12804 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12805 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12806 #define HAVE_ALLOCA_H 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12807 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12808 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12809
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12810 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12811
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12812 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
12813 echo "configure:12814: checking for alloca" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
12814
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
12815 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
12816 #line 12817 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12817 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12818
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12819 #ifdef __GNUC__
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12820 # define alloca __builtin_alloca
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12821 #else
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
12822 # ifdef _MSC_VER
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
12823 # include <malloc.h>
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
12824 # define alloca _alloca
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12825 # else
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
12826 # if HAVE_ALLOCA_H
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
12827 # include <alloca.h>
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12828 # else
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
12829 # ifdef _AIX
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
12830 #pragma alloca
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
12831 # else
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
12832 # ifndef alloca /* predefined by HP cc +Olibcalls */
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12833 char *alloca ();
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
12834 # endif
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12835 # endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12836 # endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12837 # endif
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12838 #endif
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12839
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12840 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12841 char *p = (char *) alloca(1);
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12842 ; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12843 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
12844 if { (eval echo configure:12845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12845 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12846 ac_cv_func_alloca_works=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12847 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12848 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12849 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12850 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12851 ac_cv_func_alloca_works=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12852 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12853 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12854
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12855 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12856 if test $ac_cv_func_alloca_works = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12857 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12858 Defining HAVE_ALLOCA
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12859 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12860 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12861 #define HAVE_ALLOCA 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12862 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12863 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12864
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12865 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12866
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12867 if test $ac_cv_func_alloca_works = no; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12868 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12869 # that cause trouble. Some versions do not even contain alloca or
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12870 # contain a buggy version. If you still want to use their alloca,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12871 # use ar to extract alloca.o from them instead of compiling alloca.c.
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
12872 ALLOCA=alloca.${ac_objext}
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12873 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12874 Defining C_ALLOCA
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12875 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12876 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12877 #define C_ALLOCA 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12878 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12879 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12880
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12881
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12882 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
12883 echo "configure:12884: checking whether alloca needs Cray hooks" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
12884
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
12885 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
12886 #line 12887 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12887 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12888 #if defined(CRAY) && ! defined(CRAY2)
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12889 webecray
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12890 #else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12891 wenotbecray
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12892 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12893
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12894 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12895 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12896 egrep "webecray" >/dev/null 2>&1; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12897 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12898 ac_cv_os_cray=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12899 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12900 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12901 ac_cv_os_cray=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12902 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12903 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12904
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12905
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12906 echo "$ac_t""$ac_cv_os_cray" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12907 if test $ac_cv_os_cray = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12908 for ac_func in _getb67 GETB67 getb67; do
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12909 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
12910 echo "configure:12911: checking for $ac_func" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
12911
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
12912 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
12913 #line 12914 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12914 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12915 /* System header to define __stub macros and hopefully few prototypes,
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12916 which can conflict with char $ac_func(); below. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12917 #include <assert.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12918 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12919 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12920 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12921 char $ac_func();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12922
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12923 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12924
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12925 /* The GNU C library defines this for functions which it implements
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12926 to always fail with ENOSYS. Some functions are actually named
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12927 something starting with __ and the normal name is an alias. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12928 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12929 choke me
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12930 #else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12931 $ac_func();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12932 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12933
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12934 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12935 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
12936 if { (eval echo configure:12937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12937 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12938 eval "ac_cv_func_$ac_func=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12939 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12940 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12941 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12942 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12943 eval "ac_cv_func_$ac_func=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12944 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12945 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12946
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12947 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12948 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12949 { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12950 Defining CRAY_STACKSEG_END = $ac_func
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12951 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12952 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12953 #define CRAY_STACKSEG_END $ac_func
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12954 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12955 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12956
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12957 break
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12958 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12959 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12960 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12961
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12962 done
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12963 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12964
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12965 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
12966 echo "configure:12967: checking stack direction for C alloca" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
12967
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
12968 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
12969 #line 12970 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12970 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12971 find_stack_direction ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12972 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12973 static char *addr = 0;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12974 auto char dummy;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12975 if (addr == 0)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12976 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12977 addr = &dummy;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12978 return find_stack_direction ();
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12979 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12980 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12981 return (&dummy > addr) ? 1 : -1;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12982 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12983 main ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12984 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12985 exit (find_stack_direction() < 0);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12986 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12987 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
12988 if { (eval echo configure:12989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12989 then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12990 ac_cv_c_stack_direction=1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12991 else
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
12992 conftest_rc="$?"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12993 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12994 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12995 rm -fr conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12996 ac_cv_c_stack_direction=-1
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12997 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12998 rm -fr conftest*
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12999
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13000 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13001 { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13002 Defining STACK_DIRECTION = $ac_cv_c_stack_direction
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13003 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13004 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13005 #define STACK_DIRECTION $ac_cv_c_stack_direction
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13006 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13007 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13008
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13009 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13010
444
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
13011 test -n "$ALLOCA" && extra_objs="$extra_objs $ALLOCA" && if test "$extra_verbose" = "yes"; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13012 echo " xemacs will be linked with \"$ALLOCA\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13013 fi
444
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
13014 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13015
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13016 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
13017 echo "configure:13018: checking for working strcoll" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
13018
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
13019 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
13020 #line 13021 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13021 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13022 #include <string.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13023 main ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13024 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13025 exit (strcoll ("abc", "def") >= 0 ||
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13026 strcoll ("ABC", "DEF") >= 0 ||
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13027 strcoll ("123", "456") >= 0);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13028 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13029 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
13030 if { (eval echo configure:13031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13031 then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13032 ac_cv_func_strcoll_works=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13033 else
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
13034 conftest_rc="$?"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13035 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13036 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13037 rm -fr conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13038 ac_cv_func_strcoll_works=no
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13039 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13040 rm -fr conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13041
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13042 echo "$ac_t""$ac_cv_func_strcoll_works" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13043 if test $ac_cv_func_strcoll_works = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13044 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13045 Defining HAVE_STRCOLL
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13046 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13047 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13048 #define HAVE_STRCOLL 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13049 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13050 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13051
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13052 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13053
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13054
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13055 for ac_func in getpgrp
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13056 do
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13057 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
13058 echo "configure:13059: checking for $ac_func" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
13059
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
13060 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
13061 #line 13062 "configure"
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13062 #include "confdefs.h"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13063 /* System header to define __stub macros and hopefully few prototypes,
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13064 which can conflict with char $ac_func(); below. */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13065 #include <assert.h>
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13066 /* Override any gcc2 internal prototype to avoid an error. */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13067 /* We use char because int might match the return type of a gcc2
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13068 builtin and then its argument prototype would still apply. */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13069 char $ac_func();
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13070
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13071 int main() {
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13072
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13073 /* The GNU C library defines this for functions which it implements
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13074 to always fail with ENOSYS. Some functions are actually named
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13075 something starting with __ and the normal name is an alias. */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13076 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13077 choke me
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13078 #else
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13079 $ac_func();
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13080 #endif
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13081
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13082 ; return 0; }
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13083 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
13084 if { (eval echo configure:13085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13085 rm -rf conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13086 eval "ac_cv_func_$ac_func=yes"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13087 else
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13088 echo "configure: failed program was:" >&5
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13089 cat conftest.$ac_ext >&5
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13090 rm -rf conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13091 eval "ac_cv_func_$ac_func=no"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13092 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13093 rm -f conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13094
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13095 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13096 echo "$ac_t""yes" 1>&6
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13097 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13098 { test "$extra_verbose" = "yes" && cat << EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13099 Defining $ac_tr_func
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13100 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13101 cat >> confdefs.h <<EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13102 #define $ac_tr_func 1
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13103 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13104 }
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13105
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13106 else
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13107 echo "$ac_t""no" 1>&6
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13108 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13109 done
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13110
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13111 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
13112 echo "configure:13113: checking whether getpgrp takes no argument" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
13113
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
13114 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
13115 #line 13116 "configure"
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13116 #include "confdefs.h"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13117
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13118 /*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13119 * If this system has a BSD-style getpgrp(),
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13120 * which takes a pid argument, exit unsuccessfully.
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13121 *
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13122 * Snarfed from Chet Ramey's bash pgrp.c test program
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13123 */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13124 #include <stdio.h>
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13125 #include <sys/types.h>
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13126
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13127 int pid;
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13128 int pg1, pg2, pg3, pg4;
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13129 int ng, np, s, child;
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13130
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13131 main()
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13132 {
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13133 pid = getpid();
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13134 pg1 = getpgrp(0);
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13135 pg2 = getpgrp();
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13136 pg3 = getpgrp(pid);
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13137 pg4 = getpgrp(1);
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13138
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13139 /*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13140 * If all of these values are the same, it's pretty sure that
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13141 * we're on a system that ignores getpgrp's first argument.
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13142 */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13143 if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3)
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13144 exit(0);
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13145
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13146 child = fork();
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13147 if (child < 0)
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13148 exit(1);
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13149 else if (child == 0) {
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13150 np = getpid();
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13151 /*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13152 * If this is Sys V, this will not work; pgrp will be
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13153 * set to np because setpgrp just changes a pgrp to be
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13154 * the same as the pid.
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13155 */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13156 setpgrp(np, pg1);
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13157 ng = getpgrp(0); /* Same result for Sys V and BSD */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13158 if (ng == pg1) {
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13159 exit(1);
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13160 } else {
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13161 exit(0);
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13162 }
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13163 } else {
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13164 wait(&s);
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13165 exit(s>>8);
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13166 }
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13167 }
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13168
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13169 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
13170 if { (eval echo configure:13171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13171 then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13172 ac_cv_func_getpgrp_void=yes
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13173 else
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
13174 conftest_rc="$?"
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13175 echo "configure: failed program was:" >&5
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13176 cat conftest.$ac_ext >&5
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13177 rm -fr conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13178 ac_cv_func_getpgrp_void=no
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13179 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13180 rm -fr conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13181
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13182
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13183 echo "$ac_t""$ac_cv_func_getpgrp_void" 1>&6
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13184 if test $ac_cv_func_getpgrp_void = yes; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13185 { test "$extra_verbose" = "yes" && cat << \EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13186 Defining GETPGRP_VOID
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13187 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13188 cat >> confdefs.h <<\EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13189 #define GETPGRP_VOID 1
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13190 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13191 }
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13192
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13193 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13194
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13195
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13196 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
13197 echo "configure:13198: checking for working mmap" >&5
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13198 case "$opsys" in ultrix* ) have_mmap=no ;; *)
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13199 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
13200 #line 13201 "configure"
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
13201 #include "confdefs.h"
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
13202 #include <stdio.h>
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
13203 #include <unistd.h>
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13204 #include <fcntl.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13205 #include <sys/mman.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13206
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
13207 #ifndef MAP_VARIABLE
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
13208 #define MAP_VARIABLE 0
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13209 #endif
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13210
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
13211 #ifndef MAP_FAILED
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
13212 #define MAP_FAILED -1
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
13213 #endif
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
13214
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
13215 int main (int argc, char *argv[])
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13216 {
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
13217 int fd = -1;
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
13218 caddr_t p;
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
13219 #ifndef MAP_ANONYMOUS
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
13220 fd = open ("/dev/zero", O_RDWR);
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
13221 if (fd < 0)
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
13222 return 1;
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
13223 #define MAP_ANONYMOUS 0
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
13224 #endif
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
13225 if (mmap(0, 1024, PROT_READ | PROT_WRITE,
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
13226 MAP_PRIVATE | MAP_VARIABLE | MAP_ANONYMOUS,
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
13227 fd, 0) != (void *) MAP_FAILED)
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
13228 return 0;
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
13229 perror ("conftest: mmap failed");
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
13230 return 1;
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
13231 }
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
13232 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
13233 if { (eval echo configure:13234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13234 then
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
13235 have_mmap=yes
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13236 else
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
13237 conftest_rc="$?"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13238 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13239 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13240 rm -fr conftest*
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
13241 have_mmap=no
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13242 fi
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13243 rm -fr conftest* ;;
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13244 esac
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
13245 echo "$ac_t""$have_mmap" 1>&6
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
13246 test "$have_mmap" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13247 Defining HAVE_MMAP
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13248 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13249 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13250 #define HAVE_MMAP 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13251 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13252 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13253
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 410
diff changeset
13254
535
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
13255 case "$opsys" in cygwin*)
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
13256 test "$rel_alloc" = "default" && rel_alloc=no ;;
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
13257 esac
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
13258 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
13259 if test "$rel_alloc $have_mmap" = "default yes"; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
13260 if test "$doug_lea_malloc" = "yes"; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
13261 echo $ac_n "checking for M_MMAP_THRESHOLD""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
13262 echo "configure:13263: checking for M_MMAP_THRESHOLD" >&5
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
13263 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
13264 #line 13265 "configure"
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
13265 #include "confdefs.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
13266 #include <malloc.h>
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
13267 int main() {
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
13268
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
13269 #ifndef M_MMAP_THRESHOLD
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
13270 #error No M_MMAP_THRESHOLD :-(
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
13271 !@+$%^&*_)(_ - unlikely to compile...
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
13272 #endif
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
13273
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
13274 ; return 0; }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
13275 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
13276 if { (eval echo configure:13277: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
13277 rm -rf conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
13278 rel_alloc=no; echo "$ac_t""yes" 1>&6;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
13279 else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
13280 echo "configure: failed program was:" >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
13281 cat conftest.$ac_ext >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
13282 rm -rf conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
13283 rel_alloc=yes; echo "$ac_t""no" 1>&6;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
13284 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
13285 rm -f conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
13286 else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
13287 rel_alloc=yes
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
13288 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
13289 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13290 test "$rel_alloc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13291 Defining REL_ALLOC
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13292 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13293 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13294 #define REL_ALLOC 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13295 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13296 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13297
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13298
175
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13299 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13300 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
13301 echo "configure:13302: checking for termios.h" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
13302
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
13303 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
13304 #line 13305 "configure"
175
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13305 #include "confdefs.h"
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13306 #include <termios.h>
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13307 EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13308 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
13309 { (eval echo configure:13310: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
13310 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
175
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13311 if test -z "$ac_err"; then
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13312 rm -rf conftest*
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13313 eval "ac_cv_header_$ac_safe=yes"
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13314 else
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13315 echo "$ac_err" >&5
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13316 echo "configure: failed program was:" >&5
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13317 cat conftest.$ac_ext >&5
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13318 rm -rf conftest*
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13319 eval "ac_cv_header_$ac_safe=no"
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13320 fi
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13321 rm -f conftest*
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13322 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13323 echo "$ac_t""yes" 1>&6
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13324 { test "$extra_verbose" = "yes" && cat << \EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13325 Defining HAVE_TERMIOS
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13326 EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13327 cat >> confdefs.h <<\EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13328 #define HAVE_TERMIOS 1
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13329 EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13330 }
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13331
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13332 { test "$extra_verbose" = "yes" && cat << \EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13333 Defining SIGNALS_VIA_CHARACTERS
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13334 EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13335 cat >> confdefs.h <<\EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13336 #define SIGNALS_VIA_CHARACTERS 1
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13337 EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13338 }
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13339
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13340 { test "$extra_verbose" = "yes" && cat << \EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13341 Defining NO_TERMIO
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13342 EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13343 cat >> confdefs.h <<\EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13344 #define NO_TERMIO 1
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13345 EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13346 }
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13347
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13348 else
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13349 echo "$ac_t""no" 1>&6
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13350 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13351 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
13352 echo "configure:13353: checking for termio.h" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
13353
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
13354 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
13355 #line 13356 "configure"
175
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13356 #include "confdefs.h"
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13357 #include <termio.h>
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13358 EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13359 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
13360 { (eval echo configure:13361: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
13361 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
175
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13362 if test -z "$ac_err"; then
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13363 rm -rf conftest*
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13364 eval "ac_cv_header_$ac_safe=yes"
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13365 else
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13366 echo "$ac_err" >&5
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13367 echo "configure: failed program was:" >&5
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13368 cat conftest.$ac_ext >&5
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13369 rm -rf conftest*
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13370 eval "ac_cv_header_$ac_safe=no"
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13371 fi
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13372 rm -f conftest*
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13373 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13374 echo "$ac_t""yes" 1>&6
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13375 { test "$extra_verbose" = "yes" && cat << \EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13376 Defining HAVE_TERMIO
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13377 EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13378 cat >> confdefs.h <<\EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13379 #define HAVE_TERMIO 1
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13380 EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13381 }
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13382
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13383 else
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13384 echo "$ac_t""no" 1>&6
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13385 fi
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13386
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13387 fi
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13388
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13389
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13390
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13391 echo $ac_n "checking for socket""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
13392 echo "configure:13393: checking for socket" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
13393
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
13394 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
13395 #line 13396 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13396 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13397 /* System header to define __stub macros and hopefully few prototypes,
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13398 which can conflict with char socket(); below. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13399 #include <assert.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13400 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13401 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13402 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13403 char socket();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13404
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13405 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13406
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13407 /* The GNU C library defines this for functions which it implements
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13408 to always fail with ENOSYS. Some functions are actually named
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13409 something starting with __ and the normal name is an alias. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13410 #if defined (__stub_socket) || defined (__stub___socket)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13411 choke me
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13412 #else
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13413 socket();
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13414 #endif
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13415
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13416 ; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13417 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
13418 if { (eval echo configure:13419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13419 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13420 eval "ac_cv_func_socket=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13421 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13422 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13423 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13424 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13425 eval "ac_cv_func_socket=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13426 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13427 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13428
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13429 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13430 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13431 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13432 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
13433 echo "configure:13434: checking for netinet/in.h" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
13434
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
13435 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
13436 #line 13437 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13437 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13438 #include <netinet/in.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13439 EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13440 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
13441 { (eval echo configure:13442: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
13442 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13443 if test -z "$ac_err"; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13444 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13445 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13446 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13447 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13448 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13449 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13450 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13451 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13452 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13453 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13454 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13455 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13456 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13457 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
13458 echo "configure:13459: checking for arpa/inet.h" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
13459
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
13460 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
13461 #line 13462 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13462 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13463 #include <arpa/inet.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13464 EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13465 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
13466 { (eval echo configure:13467: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
13467 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13468 if test -z "$ac_err"; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13469 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13470 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13471 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13472 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13473 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13474 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13475 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13476 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13477 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13478 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13479 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13480 echo "$ac_t""yes" 1>&6
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13481
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13482 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13483 Defining HAVE_SOCKETS
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13484 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13485 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13486 #define HAVE_SOCKETS 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13487 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13488 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13489
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13490 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
13491 echo "configure:13492: checking "for sun_len member in struct sockaddr_un"" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13492 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
13493 #line 13494 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13494 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13495
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13496 #include <sys/types.h>
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13497 #include <sys/socket.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13498 #include <sys/un.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13499
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13500 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13501 static struct sockaddr_un x; x.sun_len = 1;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13502 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13503 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
13504 if { (eval echo configure:13505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13505 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13506 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13507 Defining HAVE_SOCKADDR_SUN_LEN
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13508 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13509 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13510 #define HAVE_SOCKADDR_SUN_LEN 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13511 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13512 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13513
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13514 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13515 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13516 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13517 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13518 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13519 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13520 rm -f conftest*
259
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
13521 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
13522 echo "configure:13523: checking "for ip_mreq struct in netinet/in.h"" >&5
259
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
13523 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
13524 #line 13525 "configure"
284
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
13525 #include "confdefs.h"
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
13526
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
13527 #include <sys/types.h>
259
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
13528 #include <netinet/in.h>
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
13529
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
13530 int main() {
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
13531 static struct ip_mreq x;
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
13532 ; return 0; }
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
13533 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
13534 if { (eval echo configure:13535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
259
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
13535 rm -rf conftest*
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
13536 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
13537 Defining HAVE_MULTICAST
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
13538 EOF
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
13539 cat >> confdefs.h <<\EOF
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
13540 #define HAVE_MULTICAST 1
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
13541 EOF
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
13542 }
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
13543
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
13544 else
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
13545 echo "configure: failed program was:" >&5
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
13546 cat conftest.$ac_ext >&5
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
13547 rm -rf conftest*
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
13548 echo "$ac_t""no" 1>&6
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
13549 fi
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
13550 rm -f conftest*
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13551 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13552 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13553 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13554
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13555 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13556 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13557 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13558
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13559 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13560 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13561 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13562
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13563
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13564 echo $ac_n "checking for msgget""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
13565 echo "configure:13566: checking for msgget" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
13566
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
13567 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
13568 #line 13569 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13569 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13570 /* System header to define __stub macros and hopefully few prototypes,
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13571 which can conflict with char msgget(); below. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13572 #include <assert.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13573 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13574 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13575 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13576 char msgget();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13577
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13578 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13579
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13580 /* The GNU C library defines this for functions which it implements
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13581 to always fail with ENOSYS. Some functions are actually named
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13582 something starting with __ and the normal name is an alias. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13583 #if defined (__stub_msgget) || defined (__stub___msgget)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13584 choke me
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13585 #else
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13586 msgget();
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13587 #endif
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13588
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13589 ; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13590 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
13591 if { (eval echo configure:13592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13592 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13593 eval "ac_cv_func_msgget=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13594 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13595 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13596 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13597 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13598 eval "ac_cv_func_msgget=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13599 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13600 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13601
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13602 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13603 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13604 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13605 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
13606 echo "configure:13607: checking for sys/ipc.h" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
13607
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
13608 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
13609 #line 13610 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13610 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13611 #include <sys/ipc.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13612 EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13613 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
13614 { (eval echo configure:13615: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
13615 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13616 if test -z "$ac_err"; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13617 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13618 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13619 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13620 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13621 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13622 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13623 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13624 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13625 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13626 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13627 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13628 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13629 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13630 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
13631 echo "configure:13632: checking for sys/msg.h" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
13632
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
13633 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
13634 #line 13635 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13635 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13636 #include <sys/msg.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13637 EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13638 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
13639 { (eval echo configure:13640: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
13640 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13641 if test -z "$ac_err"; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13642 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13643 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13644 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13645 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13646 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13647 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13648 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13649 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13650 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13651 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13652 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13653 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13654 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13655 Defining HAVE_SYSVIPC
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13656 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13657 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13658 #define HAVE_SYSVIPC 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13659 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13660 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13661
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13662 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13663 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13664 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13665
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13666 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13667 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13668 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13669
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13670 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13671 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13672 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13673
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13674
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13675 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13676 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
13677 echo "configure:13678: checking for dirent.h" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
13678
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
13679 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
13680 #line 13681 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13681 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13682 #include <dirent.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13683 EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13684 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
13685 { (eval echo configure:13686: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
13686 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13687 if test -z "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13688 rm -rf conftest*
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13689 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13690 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13691 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13692 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13693 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13694 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13695 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13696 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13697 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13698 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13699 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13700 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13701 Defining SYSV_SYSTEM_DIR
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13702 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13703 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13704 #define SYSV_SYSTEM_DIR 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13705 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13706 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13707
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13708 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13709 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13710 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13711 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
13712 echo "configure:13713: checking for sys/dir.h" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
13713
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
13714 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
13715 #line 13716 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13716 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13717 #include <sys/dir.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13718 EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13719 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
13720 { (eval echo configure:13721: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
13721 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13722 if test -z "$ac_err"; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13723 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13724 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13725 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13726 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13727 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13728 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13729 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13730 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13731 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13732 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13733 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13734 echo "$ac_t""yes" 1>&6
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13735 :
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13736 else
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13737 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13738 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13739 Defining NONSYSTEM_DIR_LIBRARY
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13740 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13741 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13742 #define NONSYSTEM_DIR_LIBRARY 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13743 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13744 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13745
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13746 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13747
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13748 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13749
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13750
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13751 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13752 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
13753 echo "configure:13754: checking for nlist.h" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
13754
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
13755 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
13756 #line 13757 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13757 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13758 #include <nlist.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13759 EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13760 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
13761 { (eval echo configure:13762: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
13762 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13763 if test -z "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13764 rm -rf conftest*
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13765 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13766 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13767 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13768 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13769 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13770 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13771 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13772 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13773 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13774 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13775 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13776 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13777 Defining NLIST_STRUCT
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13778 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13779 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13780 #define NLIST_STRUCT 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13781 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13782 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13783
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13784 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13785 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13786 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13787
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13788
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13789
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13790 echo "checking "for sound support"" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
13791 echo "configure:13792: checking "for sound support"" >&5
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13792 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13793
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13794 if test "$with_native_sound" != "no"; then
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13795 if test -n "$native_sound_lib"; then
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13796 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13797 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
13798 echo "configure:13799: checking for multimedia/audio_device.h" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
13799
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
13800 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
13801 #line 13802 "configure"
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13802 #include "confdefs.h"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13803 #include <multimedia/audio_device.h>
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13804 EOF
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13805 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
13806 { (eval echo configure:13807: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
13807 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13808 if test -z "$ac_err"; then
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13809 rm -rf conftest*
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13810 eval "ac_cv_header_$ac_safe=yes"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13811 else
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13812 echo "$ac_err" >&5
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13813 echo "configure: failed program was:" >&5
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13814 cat conftest.$ac_ext >&5
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13815 rm -rf conftest*
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13816 eval "ac_cv_header_$ac_safe=no"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13817 fi
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13818 rm -f conftest*
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13819 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13820 echo "$ac_t""yes" 1>&6
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13821 sound_found=yes sound_cflags=""
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13822 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13823 echo " xemacs will be linked with \"sunplay.o\""
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13824 fi
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13825 else
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13826 echo "$ac_t""no" 1>&6
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13827 fi
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13828
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13829 fi
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13830
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13831 if test -z "$sound_found" -a -d "/usr/demo/SOUND"; then
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13832 sound_found=yes
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13833 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13834 echo " xemacs will be linked with \"sunplay.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13835 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13836 if test -d "/usr/demo/SOUND/include"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13837 then sound_cflags="-I/usr/demo/SOUND/include"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13838 else sound_cflags="-I/usr/demo/SOUND"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13839 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13840 if test -z "$native_sound_lib" ; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13841 if test -r "/usr/demo/SOUND/lib/libaudio.a"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13842 then native_sound_lib="/usr/demo/SOUND/lib/libaudio.a"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13843 else native_sound_lib="/usr/demo/SOUND/libaudio.a"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13844 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13845 fi
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13846 fi
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13847
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13848 if test -z "$sound_found"; then
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13849 case "$canonical" in
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13850 *-sgi-* )
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13851 if test -z "$native_sound_lib"; then
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13852
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13853 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
13854 echo "configure:13855: checking for ALopenport in -laudio" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13855 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13856
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13857 xe_check_libs=" -laudio "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13858 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
13859 #line 13860 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13860 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13861 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13862 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13863 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13864 char ALopenport();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13865
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13866 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13867 ALopenport()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13868 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13869 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
13870 if { (eval echo configure:13871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13871 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13872 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13873 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13874 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13875 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13876 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13877 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13878 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13879 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13880 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13881
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13882 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13883 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13884 native_sound_lib="-laudio"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13885 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13886 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13887 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13888
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13889
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13890 fi
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13891 if test -n "$native_sound_lib"; then
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13892 sound_found=yes sound_cflags=""
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13893 extra_objs="$extra_objs sgiplay.o" && if test "$extra_verbose" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13894 echo " xemacs will be linked with \"sgiplay.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13895 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13896 fi ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13897 hppa*-hp-hpux* )
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13898 if test -z "$native_sound_lib"; then
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13899
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13900 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
13901 echo "configure:13902: checking for AOpenAudio in -lAlib" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13902 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13903
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13904 xe_check_libs=" -lAlib "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13905 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
13906 #line 13907 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13907 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13908 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13909 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13910 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13911 char AOpenAudio();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13912
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13913 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13914 AOpenAudio()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13915 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13916 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
13917 if { (eval echo configure:13918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13918 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13919 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13920 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13921 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13922 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13923 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13924 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13925 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13926 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13927 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13928
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13929 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13930 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13931 native_sound_lib="-lAlib"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13932 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13933 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13934 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13935
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13936
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13937 fi
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13938 if test -n "$native_sound_lib"; then
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13939 sound_found=yes
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13940 extra_objs="$extra_objs hpplay.o" && if test "$extra_verbose" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13941 echo " xemacs will be linked with \"hpplay.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13942 fi
169
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
13943 if test "$GCC" = "yes" # Kludge city
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13944 then sound_cflags="-Dconst= -Dvolatile= -I/usr/audio/examples"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13945 else sound_cflags="+e -I/usr/audio/examples"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13946 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13947 fi ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13948 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13949 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13950
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13951 if test -z "$sound_found"; then
553
5c6dc7d576ad [xemacs-hg @ 2001-05-21 08:02:46 by yoshiki]
yoshiki
parents: 551
diff changeset
13952 if test "$with_msw" = "yes"; then
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
13953 sound_found=yes
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
13954 native_sound_lib=
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
13955 extra_objs="$extra_objs ntplay.o" && if test "$extra_verbose" = "yes"; then
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
13956 echo " xemacs will be linked with \"ntplay.o\""
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
13957 fi
553
5c6dc7d576ad [xemacs-hg @ 2001-05-21 08:02:46 by yoshiki]
yoshiki
parents: 551
diff changeset
13958 fi
5c6dc7d576ad [xemacs-hg @ 2001-05-21 08:02:46 by yoshiki]
yoshiki
parents: 551
diff changeset
13959 fi
5c6dc7d576ad [xemacs-hg @ 2001-05-21 08:02:46 by yoshiki]
yoshiki
parents: 551
diff changeset
13960
5c6dc7d576ad [xemacs-hg @ 2001-05-21 08:02:46 by yoshiki]
yoshiki
parents: 551
diff changeset
13961 if test -z "$sound_found"; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13962 for dir in "machine" "sys" "linux"; do
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13963 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13964 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
13965 echo "configure:13966: checking for ${dir}/soundcard.h" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
13966
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
13967 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
13968 #line 13969 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13969 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13970 #include <${dir}/soundcard.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13971 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13972 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
13973 { (eval echo configure:13974: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
13974 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13975 if test -z "$ac_err"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13976 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13977 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13978 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13979 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13980 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13981 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13982 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13983 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13984 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13985 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13986 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13987 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13988 sound_found=yes
426
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
13989 need_miscplay=yes
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13990 extra_objs="$extra_objs linuxplay.o" && if test "$extra_verbose" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13991 echo " xemacs will be linked with \"linuxplay.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13992 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13993 { test "$extra_verbose" = "yes" && cat << EOF
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
13994 Defining SOUNDCARD_H_FILE = "${dir}/soundcard.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
13995 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
13996 cat >> confdefs.h <<EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
13997 #define SOUNDCARD_H_FILE "${dir}/soundcard.h"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13998 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13999 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14000
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14001 break
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14002 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14003 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14004 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14005
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14006 done
100
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
14007 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14008
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14009 test "$sound_found" = "yes" && with_native_sound=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14010 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14011
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14012 if test "$with_native_sound" = "yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14013 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14014 Defining HAVE_NATIVE_SOUND
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14015 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14016 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14017 #define HAVE_NATIVE_SOUND 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14018 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14019 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14020
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14021 test -n "$native_sound_lib" && LIBS="$native_sound_lib $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$native_sound_lib\" to \$LIBS"; fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14022 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14023
432
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14024 if test "$with_nas_sound" != "no"; then
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14025 ac_safe=`echo "audio/audiolib.h" | sed 'y%./+-%__p_%'`
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14026 echo $ac_n "checking for audio/audiolib.h""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
14027 echo "configure:14028: checking for audio/audiolib.h" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
14028
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
14029 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
14030 #line 14031 "configure"
432
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14031 #include "confdefs.h"
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14032 #include <audio/audiolib.h>
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14033 EOF
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14034 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
14035 { (eval echo configure:14036: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
432
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14036 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14037 if test -z "$ac_err"; then
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14038 rm -rf conftest*
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14039 eval "ac_cv_header_$ac_safe=yes"
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14040 else
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14041 echo "$ac_err" >&5
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14042 echo "configure: failed program was:" >&5
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14043 cat conftest.$ac_ext >&5
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14044 rm -rf conftest*
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14045 eval "ac_cv_header_$ac_safe=no"
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14046 fi
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14047 rm -f conftest*
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14048 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14049 echo "$ac_t""yes" 1>&6
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14050
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14051
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14052 echo $ac_n "checking for AuOpenServer in -laudio""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
14053 echo "configure:14054: checking for AuOpenServer in -laudio" >&5
432
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14054 ac_lib_var=`echo audio'_'AuOpenServer | sed 'y%./+-%__p_%'`
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14055
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14056 xe_check_libs=" -laudio "
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14057 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
14058 #line 14059 "configure"
432
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14059 #include "confdefs.h"
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14060 /* Override any gcc2 internal prototype to avoid an error. */
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14061 /* We use char because int might match the return type of a gcc2
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14062 builtin and then its argument prototype would still apply. */
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14063 char AuOpenServer();
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14064
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14065 int main() {
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14066 AuOpenServer()
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14067 ; return 0; }
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14068 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
14069 if { (eval echo configure:14070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
432
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14070 rm -rf conftest*
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14071 eval "ac_cv_lib_$ac_lib_var=yes"
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14072 else
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14073 echo "configure: failed program was:" >&5
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14074 cat conftest.$ac_ext >&5
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14075 rm -rf conftest*
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14076 eval "ac_cv_lib_$ac_lib_var=no"
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14077 fi
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14078 rm -f conftest*
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14079 xe_check_libs=""
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14080
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14081 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14082 echo "$ac_t""yes" 1>&6
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14083 have_nas_sound=yes
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14084 else
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14085 echo "$ac_t""no" 1>&6
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14086 fi
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14087
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14088
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14089 else
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14090 echo "$ac_t""no" 1>&6
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14091 fi
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14092
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14093 if test "$have_nas_sound" = "yes"; then
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14094 with_nas_sound=yes
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14095 { test "$extra_verbose" = "yes" && cat << \EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14096 Defining HAVE_NAS_SOUND
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14097 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14098 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14099 #define HAVE_NAS_SOUND 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14100 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14101 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14102
432
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14103 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14104 echo " xemacs will be linked with \"nas.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14105 fi
432
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14106 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14107 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
14108 #line 14109 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14109 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14110 #include <audio/Xtutil.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14111 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14112 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14113 egrep "AuXtErrorJump" >/dev/null 2>&1; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14114 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14115 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14116 rm -rf conftest*
432
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14117 old_nas=yes; { test "$extra_verbose" = "yes" && cat << \EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14118 Defining NAS_NO_ERROR_JUMP
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14119 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14120 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14121 #define NAS_NO_ERROR_JUMP 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14122 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14123 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14124
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14125 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14126 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14127
432
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14128 else
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14129 test "$with_nas_sound" = "yes" && \
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14130 { echo "Error:" "Required NAS sound support cannot be provided." >&2; exit 1; }
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14131 with_nas_sound=no
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14132 fi
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14133 fi
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14134
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14135 if test "$with_esd_sound" != "no"; then
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14136 # Extract the first word of "esd-config", so it can be a program name with args.
426
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
14137 set dummy esd-config; ac_word=$2
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
14138 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
14139 echo "configure:14140: checking for $ac_word" >&5
426
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
14140
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
14141 if test -n "$have_esd_config"; then
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
14142 ac_cv_prog_have_esd_config="$have_esd_config" # Let the user override the test.
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
14143 else
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
14144 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
14145 ac_dummy="$PATH"
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
14146 for ac_dir in $ac_dummy; do
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
14147 test -z "$ac_dir" && ac_dir=.
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
14148 if test -f $ac_dir/$ac_word; then
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
14149 ac_cv_prog_have_esd_config="yes"
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
14150 break
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
14151 fi
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
14152 done
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
14153 IFS="$ac_save_ifs"
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
14154 test -z "$ac_cv_prog_have_esd_config" && ac_cv_prog_have_esd_config="no"
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
14155 fi
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
14156 have_esd_config="$ac_cv_prog_have_esd_config"
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
14157 if test -n "$have_esd_config"; then
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
14158 echo "$ac_t""$have_esd_config" 1>&6
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
14159 else
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
14160 echo "$ac_t""no" 1>&6
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
14161 fi
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
14162
432
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14163 if test "$have_esd_config" = "yes"; then
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14164 save_c_switch_site="$c_switch_site" save_LIBS="$LIBS"
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14165 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
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14166 LIBS="`esd-config --libs` $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"`esd-config --libs`\" to \$LIBS"; fi
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14167 echo $ac_n "checking for esd_play_stream""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
14168 echo "configure:14169: checking for esd_play_stream" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
14169
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
14170 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
14171 #line 14172 "configure"
432
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14172 #include "confdefs.h"
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14173 /* System header to define __stub macros and hopefully few prototypes,
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14174 which can conflict with char esd_play_stream(); below. */
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14175 #include <assert.h>
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14176 /* Override any gcc2 internal prototype to avoid an error. */
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14177 /* We use char because int might match the return type of a gcc2
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14178 builtin and then its argument prototype would still apply. */
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14179 char esd_play_stream();
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14180
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14181 int main() {
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14182
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14183 /* The GNU C library defines this for functions which it implements
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14184 to always fail with ENOSYS. Some functions are actually named
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14185 something starting with __ and the normal name is an alias. */
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14186 #if defined (__stub_esd_play_stream) || defined (__stub___esd_play_stream)
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14187 choke me
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14188 #else
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14189 esd_play_stream();
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14190 #endif
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14191
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14192 ; return 0; }
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14193 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
14194 if { (eval echo configure:14195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
432
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14195 rm -rf conftest*
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14196 eval "ac_cv_func_esd_play_stream=yes"
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14197 else
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14198 echo "configure: failed program was:" >&5
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14199 cat conftest.$ac_ext >&5
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14200 rm -rf conftest*
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14201 eval "ac_cv_func_esd_play_stream=no"
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14202 fi
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14203 rm -f conftest*
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14204
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14205 if eval "test \"`echo '$ac_cv_func_'esd_play_stream`\" = yes"; then
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14206 echo "$ac_t""yes" 1>&6
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14207 have_esd_sound=yes
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14208 else
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14209 echo "$ac_t""no" 1>&6
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14210 c_switch_site="$save_c_switch_site" LIBS="$save_LIBS"
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14211 fi
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14212
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14213 fi
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14214
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14215 if test "$have_esd_sound" = "yes"; then
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14216 with_esd_sound=yes
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14217 need_miscplay=yes
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14218 extra_objs="$extra_objs esd.o" && if test "$extra_verbose" = "yes"; then
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14219 echo " xemacs will be linked with \"esd.o\""
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14220 fi
426
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
14221 { test "$extra_verbose" = "yes" && cat << \EOF
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
14222 Defining HAVE_ESD_SOUND
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
14223 EOF
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
14224 cat >> confdefs.h <<\EOF
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
14225 #define HAVE_ESD_SOUND 1
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
14226 EOF
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
14227 }
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
14228
432
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14229 else
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14230 test "$with_esd_sound" = "yes" && \
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14231 { echo "Error:" "Required ESD sound support cannot be provided." >&2; exit 1; }
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14232 with_esd_sound=no
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14233 fi
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14234 fi
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14235
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14236 test "$need_miscplay" = "yes" && extra_objs="$extra_objs miscplay.o" && if test "$extra_verbose" = "yes"; then
426
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
14237 echo " xemacs will be linked with \"miscplay.o\""
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
14238 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14239
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14240
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14241 test -z "$with_tty" && with_tty=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14242
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14243 if test "$with_tty" = "yes" ; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14244 echo "checking for TTY-related features" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
14245 echo "configure:14246: checking for TTY-related features" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14246 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14247 Defining HAVE_TTY
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14248 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14249 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14250 #define HAVE_TTY 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14251 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14252 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14253
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14254
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14255 if test -z "$with_ncurses"; then
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
14256
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14257 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
14258 echo "configure:14259: checking for tgetent in -lncurses" >&5
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14259 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14260
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14261 xe_check_libs=" -lncurses "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14262 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
14263 #line 14264 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14264 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14265 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14266 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14267 builtin and then its argument prototype would still apply. */
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14268 char tgetent();
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14269
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14270 int main() {
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14271 tgetent()
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14272 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14273 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
14274 if { (eval echo configure:14275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14275 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14276 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14277 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14278 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14279 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14280 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14281 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14282 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14283 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14284 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14285
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14286 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14287 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14288 with_ncurses=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14289 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14290 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14291 with_ncurses=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14292 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14293
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14294
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14295 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14296 if test "$with_ncurses" = "yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14297 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14298 Defining HAVE_NCURSES
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14299 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14300 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14301 #define HAVE_NCURSES 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14302 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14303 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14304
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14305 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14306 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
14307 echo "configure:14308: checking for ncurses/curses.h" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
14308
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
14309 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
14310 #line 14311 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14311 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14312 #include <ncurses/curses.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14313 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14314 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
14315 { (eval echo configure:14316: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
14316 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14317 if test -z "$ac_err"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14318 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14319 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14320 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14321 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14322 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14323 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14324 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14325 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14326 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14327 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14328 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14329 echo "$ac_t""yes" 1>&6
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
14330 curses_h_file=ncurses/curses.h
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14331 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14332 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14333 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14334
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14335 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14336 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
14337 echo "configure:14338: checking for ncurses/term.h" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
14338
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
14339 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
14340 #line 14341 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14341 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14342 #include <ncurses/term.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14343 EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14344 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
14345 { (eval echo configure:14346: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
14346 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14347 if test -z "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14348 rm -rf conftest*
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14349 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14350 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14351 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14352 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14353 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14354 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14355 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14356 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14357 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14358 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14359 echo "$ac_t""yes" 1>&6
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
14360 term_h_file=ncurses/term.h
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14361 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14362 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14363 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14364
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14365 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14366 echo " xemacs will be linked with \"terminfo.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14367 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14368 LIBS="-lncurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lncurses\" to \$LIBS"; fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14369
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
14370 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14371 save_c_switch_site="$c_switch_site"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14372 c_switch_site="$c_switch_site -I/usr/include/ncurses"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14373 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14374 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
14375 echo "configure:14376: checking for ncurses/curses.h" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
14376
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
14377 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
14378 #line 14379 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14379 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14380 #include <ncurses/curses.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14381 EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14382 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
14383 { (eval echo configure:14384: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
14384 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14385 if test -z "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14386 rm -rf conftest*
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14387 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14388 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14389 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14390 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14391 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14392 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14393 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14394 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14395 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14396 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14397 echo "$ac_t""yes" 1>&6
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
14398 curses_h_file=ncurses/curses.h
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14399 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14400 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14401 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14402
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
14403 if test "$ac_cv_header_ncurses_curses_h" = "yes"
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
14404 then echo "configure: warning: Your system has the bogus ncurses include bug." 1>&2
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14405 else c_switch_site="$save_c_switch_site"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14406 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14407 fi
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14408 else if test "$have_terminfo" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14409 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14410 echo " xemacs will be linked with \"terminfo.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14411 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14412 if test -n "$libs_termcap"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14413 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14414 else
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14415 for lib in curses termlib termcap; do
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14416
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14417 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
14418 echo "configure:14419: checking for tgetent in -l$lib" >&5
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14419 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14420
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14421 xe_check_libs=" -l$lib "
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14422 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
14423 #line 14424 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14424 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14425 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14426 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14427 builtin and then its argument prototype would still apply. */
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14428 char tgetent();
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14429
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14430 int main() {
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14431 tgetent()
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14432 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14433 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
14434 if { (eval echo configure:14435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14435 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14436 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14437 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14438 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14439 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14440 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14441 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14442 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14443 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14444 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14445
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14446 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14447 echo "$ac_t""yes" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14448 LIBS="-l${lib} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${lib}\" to \$LIBS"; fi; break
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14449 else
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14450 echo "$ac_t""no" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14451 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14452
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14453
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14454 done
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14455 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14456 else extra_objs="$extra_objs tparam.o" && if test "$extra_verbose" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14457 echo " xemacs will be linked with \"tparam.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14458 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14459 case "$opsys" in *-hp-hpux* ) libs_termcap="-ltermcap" ;; esac
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14460 if test -n "$libs_termcap"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14461 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14462 else
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14463
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14464 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
14465 echo "configure:14466: checking for tgetent in -lcurses" >&5
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14466 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14467
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14468 xe_check_libs=" -lcurses "
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14469 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
14470 #line 14471 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14471 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14472 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14473 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14474 builtin and then its argument prototype would still apply. */
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14475 char tgetent();
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14476
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14477 int main() {
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14478 tgetent()
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14479 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14480 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
14481 if { (eval echo configure:14482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14482 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14483 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14484 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14485 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14486 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14487 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14488 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14489 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14490 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14491 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14492
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14493 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14494 echo "$ac_t""yes" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14495 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14496 else
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14497 echo "$ac_t""no" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14498 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
14499 echo "configure:14500: checking for tgetent in -ltermcap" >&5
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14500 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14501
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14502 xe_check_libs=" -ltermcap "
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14503 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
14504 #line 14505 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14505 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14506 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14507 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14508 builtin and then its argument prototype would still apply. */
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14509 char tgetent();
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14510
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14511 int main() {
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14512 tgetent()
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14513 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14514 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
14515 if { (eval echo configure:14516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14516 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14517 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14518 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14519 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14520 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14521 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14522 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14523 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14524 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14525 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14526
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14527 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14528 echo "$ac_t""yes" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14529 LIBS="-ltermcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltermcap\" to \$LIBS"; fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14530 else
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14531 echo "$ac_t""no" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14532 extra_objs="$extra_objs termcap.o" && if test "$extra_verbose" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14533 echo " xemacs will be linked with \"termcap.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14534 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14535 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14536
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14537
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14538 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14539
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14540
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14541 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14542 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14543 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14544 { test "$extra_verbose" = "yes" && cat << EOF
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
14545 Defining CURSES_H_FILE = "${curses_h_file-curses.h}"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
14546 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
14547 cat >> confdefs.h <<EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
14548 #define CURSES_H_FILE "${curses_h_file-curses.h}"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14549 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14550 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14551
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14552 { test "$extra_verbose" = "yes" && cat << EOF
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
14553 Defining TERM_H_FILE = "${term_h_file-term.h}"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
14554 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
14555 cat >> confdefs.h <<EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
14556 #define TERM_H_FILE "${term_h_file-term.h}"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14557 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14558 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14559
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14560
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14561 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14562 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
14563 echo "configure:14564: checking for gpm.h" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
14564
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
14565 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
14566 #line 14567 "configure"
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14567 #include "confdefs.h"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14568 #include <gpm.h>
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14569 EOF
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14570 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
14571 { (eval echo configure:14572: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
14572 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14573 if test -z "$ac_err"; then
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14574 rm -rf conftest*
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14575 eval "ac_cv_header_$ac_safe=yes"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14576 else
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14577 echo "$ac_err" >&5
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14578 echo "configure: failed program was:" >&5
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14579 cat conftest.$ac_ext >&5
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14580 rm -rf conftest*
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14581 eval "ac_cv_header_$ac_safe=no"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14582 fi
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14583 rm -f conftest*
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14584 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14585 echo "$ac_t""yes" 1>&6
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14586 :
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14587 else
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14588 echo "$ac_t""no" 1>&6
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14589 with_gpm=no
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14590 fi
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14591 }
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14592 test -z "$with_gpm" && {
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14593 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
14594 echo "configure:14595: checking for Gpm_Open in -lgpm" >&5
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14595 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14596
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14597 xe_check_libs=" -lgpm "
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14598 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
14599 #line 14600 "configure"
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14600 #include "confdefs.h"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14601 /* Override any gcc2 internal prototype to avoid an error. */
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14602 /* We use char because int might match the return type of a gcc2
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14603 builtin and then its argument prototype would still apply. */
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14604 char Gpm_Open();
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14605
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14606 int main() {
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14607 Gpm_Open()
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14608 ; return 0; }
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14609 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
14610 if { (eval echo configure:14611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14611 rm -rf conftest*
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14612 eval "ac_cv_lib_$ac_lib_var=yes"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14613 else
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14614 echo "configure: failed program was:" >&5
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14615 cat conftest.$ac_ext >&5
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14616 rm -rf conftest*
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14617 eval "ac_cv_lib_$ac_lib_var=no"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14618 fi
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14619 rm -f conftest*
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14620 xe_check_libs=""
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14621
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14622 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14623 echo "$ac_t""yes" 1>&6
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14624 with_gpm=yes
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14625 else
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14626 echo "$ac_t""no" 1>&6
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14627 with_gpm=no
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14628 fi
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14629
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14630 }
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14631 if test "$with_gpm" = "yes"; then
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14632 { test "$extra_verbose" = "yes" && cat << \EOF
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14633 Defining HAVE_GPM
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14634 EOF
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14635 cat >> confdefs.h <<\EOF
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14636 #define HAVE_GPM 1
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14637 EOF
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14638 }
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14639
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14640 LIBS="-lgpm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgpm\" to \$LIBS"; fi
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14641 fi
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14642
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14643 else for feature in ncurses gpm; do
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14644 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
14645 echo "configure: warning: --with-${feature} ignored: Not valid without TTY support" 1>&2
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14646 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14647 eval "with_${feature}=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14648 done
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14649 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14650
426
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
14651 test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
384
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
14652 != "no no no" && echo "checking for database support" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
14653 echo "configure:14654: checking for database support" >&5
426
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
14654
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
14655 if test "$with_database_gdbm $with_database_dbm" != "no no"; then
384
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
14656 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'`
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
14657 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
14658 echo "configure:14659: checking for ndbm.h" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
14659
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
14660 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
14661 #line 14662 "configure"
384
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
14662 #include "confdefs.h"
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
14663 #include <ndbm.h>
265
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
14664 EOF
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
14665 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
14666 { (eval echo configure:14667: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
14667 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
265
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
14668 if test -z "$ac_err"; then
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
14669 rm -rf conftest*
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
14670 eval "ac_cv_header_$ac_safe=yes"
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
14671 else
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
14672 echo "$ac_err" >&5
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
14673 echo "configure: failed program was:" >&5
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
14674 cat conftest.$ac_ext >&5
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
14675 rm -rf conftest*
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
14676 eval "ac_cv_header_$ac_safe=no"
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
14677 fi
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
14678 rm -f conftest*
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
14679 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
14680 echo "$ac_t""yes" 1>&6
384
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
14681 :
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
14682 else
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
14683 echo "$ac_t""no" 1>&6
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
14684
426
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
14685 test "$with_database_gdbm" = "yes" -o \
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
14686 "$with_database_dbm" = "yes" && \
384
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
14687 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
426
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
14688 with_database_gdbm=no with_database_dbm=no
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
14689 fi
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
14690
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
14691 fi
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
14692
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
14693 if test "$with_database_gdbm" != "no"; then
384
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
14694
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14695 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
14696 echo "configure:14697: checking for dbm_open in -lgdbm" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14697 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14698
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14699 xe_check_libs=" -lgdbm "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14700 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
14701 #line 14702 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14702 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14703 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14704 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14705 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14706 char dbm_open();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14707
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14708 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14709 dbm_open()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14710 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14711 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
14712 if { (eval echo configure:14713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14713 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14714 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14715 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14716 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14717 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14718 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14719 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14720 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14721 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14722 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14723
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14724 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14725 echo "$ac_t""yes" 1>&6
426
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
14726 with_database_gdbm=yes with_database_dbm=no libdbm=-lgdbm
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
14727 else
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
14728 echo "$ac_t""no" 1>&6
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
14729 if test "$with_database_gdbm" = "yes"; then
384
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
14730 { echo "Error:" "Required GNU DBM support cannot be provided." >&2; exit 1; }
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
14731 fi
426
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
14732 with_database_gdbm=no
384
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
14733 fi
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
14734
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
14735
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14736 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14737
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14738 if test "$with_database_dbm" != "no"; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14739 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
14740 echo "configure:14741: checking for dbm_open" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
14741
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
14742 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
14743 #line 14744 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14744 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14745 /* System header to define __stub macros and hopefully few prototypes,
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14746 which can conflict with char dbm_open(); below. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14747 #include <assert.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14748 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14749 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14750 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14751 char dbm_open();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14752
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14753 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14754
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14755 /* The GNU C library defines this for functions which it implements
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14756 to always fail with ENOSYS. Some functions are actually named
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14757 something starting with __ and the normal name is an alias. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14758 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14759 choke me
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14760 #else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14761 dbm_open();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14762 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14763
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14764 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14765 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
14766 if { (eval echo configure:14767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14767 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14768 eval "ac_cv_func_dbm_open=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14769 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14770 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14771 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14772 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14773 eval "ac_cv_func_dbm_open=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14774 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14775 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14776
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14777 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14778 echo "$ac_t""yes" 1>&6
384
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
14779 with_database_dbm=yes libdbm=
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
14780 else
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
14781 echo "$ac_t""no" 1>&6
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
14782
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14783
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14784 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
14785 echo "configure:14786: checking for dbm_open in -ldbm" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14786 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14787
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14788 xe_check_libs=" -ldbm "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14789 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
14790 #line 14791 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14791 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14792 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14793 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14794 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14795 char dbm_open();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14796
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14797 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14798 dbm_open()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14799 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14800 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
14801 if { (eval echo configure:14802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14802 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14803 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14804 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14805 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14806 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14807 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14808 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14809 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14810 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14811 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14812
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14813 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14814 echo "$ac_t""yes" 1>&6
384
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
14815 with_database_dbm=yes libdbm=-ldbm
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
14816 else
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
14817 echo "$ac_t""no" 1>&6
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
14818 test "$with_database_dbm" = "yes" && \
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
14819 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
14820 with_database_dbm=no
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
14821 fi
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
14822
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
14823
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
14824 fi
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
14825
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
14826 fi
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
14827
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
14828 test -n "$libdbm" && LIBS=""$libdbm" $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libdbm"\" to \$LIBS"; fi
426
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
14829 test "$with_database_gdbm" = "yes" -o \
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
14830 "$with_database_dbm" = "yes" && \
384
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
14831 { test "$extra_verbose" = "yes" && cat << \EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14832 Defining HAVE_DBM
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14833 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14834 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14835 #define HAVE_DBM 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14836 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14837 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14838
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14839
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14840 if test "$with_database_berkdb" != "no"; then
298
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14841 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
14842 echo "configure:14843: checking for Berkeley db.h" >&5
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
14843 for header in "db/db.h" "db.h"; do
298
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14844 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
14845 #line 14846 "configure"
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
14846 #include "confdefs.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
14847
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
14848 #include <stdlib.h>
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
14849 #if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1)
298
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14850 #ifdef HAVE_INTTYPES_H
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14851 #define __BIT_TYPES_DEFINED__
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14852 #include <inttypes.h>
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14853 typedef uint8_t u_int8_t;
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14854 typedef uint16_t u_int16_t;
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14855 typedef uint32_t u_int32_t;
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14856 #ifdef WE_DONT_NEED_QUADS
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14857 typedef uint64_t u_int64_t;
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14858 #endif
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14859 #endif
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
14860 #endif
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
14861 #include <$header>
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
14862
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
14863 int main() {
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
14864
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
14865 ; return 0; }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
14866 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
14867 if { (eval echo configure:14868: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
14868 rm -rf conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
14869 db_h_file="$header"; break
298
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14870 else
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14871 echo "configure: failed program was:" >&5
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14872 cat conftest.$ac_ext >&5
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14873 fi
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14874 rm -f conftest*
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14875 done
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
14876 if test -z "$db_h_file"
298
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14877 then echo "$ac_t""no" 1>&6; with_database_berkdb=no
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
14878 else echo "$ac_t""$db_h_file" 1>&6
298
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14879 fi
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14880
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14881 if test "$with_database_berkdb" != "no"; then
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14882 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
14883 echo "configure:14884: checking for Berkeley DB version" >&5
298
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14884 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
14885 #line 14886 "configure"
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
14886 #include "confdefs.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
14887 #include <$db_h_file>
298
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14888 #if DB_VERSION_MAJOR > 1
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14889 yes
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14890 #endif
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14891
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14892 EOF
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14893 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14894 egrep "yes" >/dev/null 2>&1; then
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14895 rm -rf conftest*
448
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 446
diff changeset
14896 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
14897 #line 14898 "configure"
448
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 446
diff changeset
14898 #include "confdefs.h"
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 446
diff changeset
14899 #include <$db_h_file>
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 446
diff changeset
14900 #if DB_VERSION_MAJOR > 2
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 446
diff changeset
14901 yes
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 446
diff changeset
14902 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 446
diff changeset
14903
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 446
diff changeset
14904 EOF
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 446
diff changeset
14905 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 446
diff changeset
14906 egrep "yes" >/dev/null 2>&1; then
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 446
diff changeset
14907 rm -rf conftest*
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 446
diff changeset
14908 echo "$ac_t""3" 1>&6; dbfunc=db_create
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 446
diff changeset
14909 else
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 446
diff changeset
14910 rm -rf conftest*
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 446
diff changeset
14911
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 446
diff changeset
14912 echo "$ac_t""2" 1>&6; dbfunc=db_open
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 446
diff changeset
14913 fi
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 446
diff changeset
14914 rm -f conftest*
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 446
diff changeset
14915
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 446
diff changeset
14916 else
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 446
diff changeset
14917 rm -rf conftest*
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 446
diff changeset
14918
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 446
diff changeset
14919 echo "$ac_t""1" 1>&6; dbfunc=dbopen
298
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14920 fi
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14921 rm -f conftest*
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14922
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14923 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
14924 echo "configure:14925: checking for $dbfunc" >&5
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
14925
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
14926 cat > conftest.$ac_ext <<EOF
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
14927 #line 14928 "configure"
298
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14928 #include "confdefs.h"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14929 /* System header to define __stub macros and hopefully few prototypes,
298
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14930 which can conflict with char $dbfunc(); below. */
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14931 #include <assert.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14932 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14933 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14934 builtin and then its argument prototype would still apply. */
298
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14935 char $dbfunc();
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14936
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14937 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14938
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14939 /* The GNU C library defines this for functions which it implements
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14940 to always fail with ENOSYS. Some functions are actually named
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14941 something starting with __ and the normal name is an alias. */
298
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14942 #if defined (__stub_$dbfunc) || defined (__stub___$dbfunc)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14943 choke me
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14944 #else
298
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14945 $dbfunc();
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14946 #endif
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14947
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14948 ; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14949 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
14950 if { (eval echo configure:14951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
298
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14951 rm -rf conftest*
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14952 eval "ac_cv_func_$dbfunc=yes"
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14953 else
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14954 echo "configure: failed program was:" >&5
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14955 cat conftest.$ac_ext >&5
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14956 rm -rf conftest*
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14957 eval "ac_cv_func_$dbfunc=no"
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14958 fi
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14959 rm -f conftest*
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14960
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14961 if eval "test \"`echo '$ac_cv_func_'$dbfunc`\" = yes"; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14962 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14963 with_database_berkdb=yes need_libdb=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14964 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14965 echo "$ac_t""no" 1>&6
298
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14966
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14967
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14968 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
14969 echo "configure:14970: checking for $dbfunc in -ldb" >&5
298
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14970 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'`
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14971
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14972 xe_check_libs=" -ldb "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14973 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
14974 #line 14975 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14975 #include "confdefs.h"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14976 /* Override any gcc2 internal prototype to avoid an error. */
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14977 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14978 builtin and then its argument prototype would still apply. */
298
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14979 char $dbfunc();
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14980
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14981 int main() {
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14982 $dbfunc()
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14983 ; return 0; }
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14984 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
14985 if { (eval echo configure:14986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14986 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14987 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14988 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14989 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14990 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14991 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14992 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14993 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14994 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14995 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14996
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14997 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14998 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14999 with_database_berkdb=yes need_libdb=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15000 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15001 echo "$ac_t""no" 1>&6
298
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
15002 fi
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
15003
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
15004
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
15005 fi
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
15006
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
15007 fi
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
15008
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15009 if test "$with_database_berkdb" = "yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15010 { test "$extra_verbose" = "yes" && cat << EOF
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15011 Defining DB_H_FILE = "$db_h_file"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15012 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15013 cat >> confdefs.h <<EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15014 #define DB_H_FILE "$db_h_file"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15015 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15016 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15017
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15018 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15019 Defining HAVE_BERKELEY_DB
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15020 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15021 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15022 #define HAVE_BERKELEY_DB 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15023 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15024 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15025
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
15026 test "$need_libdb" = "yes" && LIBS="-ldb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldb\" to \$LIBS"; fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15027 else with_database_berkdb=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15028 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15029 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15030
426
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
15031 if test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
15032 != "no no no"; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15033 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15034 Defining HAVE_DATABASE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15035 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15036 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15037 #define HAVE_DATABASE 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15038 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15039 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15040
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15041 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15042
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15043 if test "$with_socks" = "yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15044
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15045 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
15046 echo "configure:15047: checking for SOCKSinit in -lsocks" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15047 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15048
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15049 xe_check_libs=" -lsocks "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15050 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
15051 #line 15052 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15052 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15053 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15054 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15055 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15056 char SOCKSinit();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15057
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15058 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15059 SOCKSinit()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15060 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15061 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
15062 if { (eval echo configure:15063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15063 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15064 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15065 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15066 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15067 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15068 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15069 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15070 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15071 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15072 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15073
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
15074 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15075 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15076 ac_tr_lib=HAVE_LIB`echo socks | sed -e 's/[^a-zA-Z0-9_]/_/g' \
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15077 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15078 { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15079 Defining $ac_tr_lib
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15080 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15081 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15082 #define $ac_tr_lib 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15083 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15084 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15085
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
15086 LIBS="-lsocks $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lsocks\" to \$LIBS"; fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15087
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15088 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15089 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15090 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15091
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15092
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15093 test -n "$ac_cv_lib_socks_SOCKSinit" && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15094 Defining HAVE_SOCKS
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15095 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15096 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15097 #define HAVE_SOCKS 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15098 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15099 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15100
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15101 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15102
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15103 if test "$usage_tracking" = "yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15104 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15105 Defining USAGE_TRACKING
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15106 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15107 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15108 #define USAGE_TRACKING 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15109 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15110 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15111
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
15112 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15113 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15114
997
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
15115 cat > conftest.$ac_ext <<EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
15116 #line 15117 "configure"
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
15117 #include "confdefs.h"
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
15118 int main(int c,char *v[]){return 0;}
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
15119 EOF
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
15120 if { (eval echo configure:15121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
15121 then
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
15122 :
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
15123 else
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
15124 conftest_rc="$?"
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
15125 echo "configure: failed program was:" >&5
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
15126 cat conftest.$ac_ext >&5
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
15127 rm -fr conftest*
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
15128
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
15129 echo ""
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
15130 echo "*** PANIC *** The C compiler can no longer build working executables."
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
15131 echo "*** PANIC *** Please examine the tail of config.log for runtime errors."
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
15132 echo "*** PANIC *** The most likely reason for this problem is that configure"
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
15133 echo "*** PANIC *** links with shared libraries, but those libraries cannot be"
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
15134 echo "*** PANIC *** found at run time."
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
15135 echo "*** PANIC ***"
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
15136 echo "*** PANIC *** On a Linux system, edit /etc/ld.so.conf and re-run ldconfig."
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
15137 echo "*** PANIC *** On other systems, try telling configure where to find the"
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
15138 echo "*** PANIC *** shared libraries using the --site-runtime-libraries option"
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
15139 echo "*** PANIC ***"
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
15140 echo "*** PANIC *** Another way to shoot yourself in the foot is to specify"
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
15141 echo "*** PANIC *** --with-FEATURE when FEATURE is not actually installed"
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
15142 echo "*** PANIC *** on your system. Don't do that."
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
15143 exit 1
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
15144 fi
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
15145 rm -fr conftest*
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
15146
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
15147 if test "$win32_processes" != "yes"; then
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
15148 { test "$extra_verbose" = "yes" && cat << \EOF
263
727739f917cb Import from CVS: tag r20-5b30
cvs
parents: 261
diff changeset
15149 Defining HAVE_UNIX_PROCESSES
727739f917cb Import from CVS: tag r20-5b30
cvs
parents: 261
diff changeset
15150 EOF
727739f917cb Import from CVS: tag r20-5b30
cvs
parents: 261
diff changeset
15151 cat >> confdefs.h <<\EOF
727739f917cb Import from CVS: tag r20-5b30
cvs
parents: 261
diff changeset
15152 #define HAVE_UNIX_PROCESSES 1
727739f917cb Import from CVS: tag r20-5b30
cvs
parents: 261
diff changeset
15153 EOF
727739f917cb Import from CVS: tag r20-5b30
cvs
parents: 261
diff changeset
15154 }
727739f917cb Import from CVS: tag r20-5b30
cvs
parents: 261
diff changeset
15155
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
15156 fi
261
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
15157
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15158
997
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
15159 if test "$with_modules" = "yes"; then
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
15160 ld_libs_module=
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
15161 else
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
15162
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
15163 T=""
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
15164 for W in $ldap_libs $postgresql_libs; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
15165 ld_libs_module="$T"
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
15166
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
15167 fi
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
15168
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15169
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15170 T=""
175
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
15171 for W in $CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
15172 CFLAGS="$T"
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
15173
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
15174
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
15175 T=""
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15176 for W in $extra_objs; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15177 extra_objs="$T"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15178
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15179
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15180 T=""
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15181 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
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15182 c_switch_general="$T"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15183
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15184
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15185 T=""
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
15186 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
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15187 c_switch_window_system="$T"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15188
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15189
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15190 T=""
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15191 for W in $c_switch_general $c_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15192 c_switch_all="$T"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15193
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15194
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15195 T=""
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15196 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
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15197 ld_switch_general="$T"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15198
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15199
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15200 T=""
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15201 for W in $ld_switch_x_site; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15202 ld_switch_window_system="$T"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15203
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15204
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15205 T=""
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15206 for W in $ld_switch_general $ld_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15207 ld_switch_all="$T"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15208
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15209
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15210 T=""
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15211 for W in $LIBS $libs_machine $libs_system $libs_standard; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15212 ld_libs_general="$T"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15213
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15214
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15215 T=""
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
15216 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
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15217 ld_libs_window_system="$T"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15218
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15219
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15220 T=""
997
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
15221 for W in $ld_libs_window_system $ld_libs_general $ld_libs_module; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15222 ld_libs_all="$T"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15223
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15224
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
15225
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
15226 MAKE_SUBDIR="$MAKE_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$MAKE_SUBDIR"; fi
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
15227 internal_makefile_list="Makefile.in"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15228 SUBDIR_MAKEFILES=''
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
15229 test -d lock || mkdir lock
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15230 for dir in $MAKE_SUBDIR; do
167
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
15231 case "$dir" in */* ) ( for d in `echo $dir | sed 's:/: :g'` ; do
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
15232 test -d "$d" || mkdir "$d"; cd "$d"
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
15233 done ) ;;
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
15234 * ) test -d "$dir" || mkdir "$dir" ;;
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
15235 esac
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15236
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15237 T=""
384
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
15238 for W in $SUBDIR_MAKEFILES $dir/Makefile $dir/GNUmakefile; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15239 SUBDIR_MAKEFILES="$T"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15240
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15241
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15242 T=""
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15243 for W in $internal_makefile_list $dir/Makefile.in; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15244 internal_makefile_list="$T"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15245
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15246 done
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15247
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15248
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15249
167
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
15250
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
15251 for dir in src/s src/m; do
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
15252 if test ! -d "$dir" ; then
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
15253 echo Making symbolic link to "$srcdir/$dir"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
15254 ${LN_S} "$srcdir/$dir" "$dir"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
15255 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
15256 done
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
15257
1111
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
15258 if test "$need_modules_common" = "yes"; then
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
15259 for dir in modules/common; do
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
15260 if test ! -d "$dir" ; then
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
15261 echo Making symbolic link to "$srcdir/$dir"
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
15262 ${LN_S} "$srcdir/$dir" "$dir"
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
15263 fi
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
15264 done
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
15265 fi
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
15266
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15267 if test "$extra_verbose" = "yes"; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
15268 echo ""
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
15269 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
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15270 echo ""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15271 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15272
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
15273
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
15274 if test -f "$srcdir/src/.gdbinit" -a ! -f "src/.gdbinit"; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
15275 test "$extra_verbose" = "yes" && echo "creating src/.gdbinit"
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
15276 echo "source $srcdir/src/.gdbinit" > "src/.gdbinit"
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
15277 fi
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
15278
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
15279 if test -f "$srcdir/src/.dbxrc" -a ! -f "src/.dbxrc"; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
15280 test "$extra_verbose" = "yes" && echo "creating src/.dbxrc"
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
15281 echo ". $srcdir/src/.dbxrc" > "src/.dbxrc"
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
15282 fi
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
15283
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
15284 if test -f "$srcdir/TAGS" -a ! -f "TAGS"; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
15285 test "$extra_verbose" = "yes" && echo "creating TAGS"
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
15286 echo "
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
15287 $srcdir/TAGS,include" > "TAGS"
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
15288 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
15289
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
15290 if test "$__SUNPRO_C" = "yes"; then
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
15291 test "$extra_verbose" = "yes" && echo "creating .sbinit"
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
15292 ( echo "# For use with Sun WorkShop's Source browser."
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
15293 echo "# See sbquery(1) and sbinit(4) for more information"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
15294 for dir in $MAKE_SUBDIR; do echo "import $dir"; done
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
15295 ) > .sbinit
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
15296 fi
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
15297
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
15298 rm -f core
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
15299
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15300
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15301
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15302
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15303
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15304
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15305
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15306
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15307
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15308
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15309
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15310
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15311
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15312
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15313
280
7df0dd720c89 Import from CVS: tag r21-0b38
cvs
parents: 278
diff changeset
15314
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
15315
422
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
15316
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
15317
452
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 450
diff changeset
15318
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
15319 PREFIX=$prefix
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
15320 while true; do
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
15321 case "$PREFIX" in
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
15322 *\$* ) eval "PREFIX=$PREFIX" ;;
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
15323 *) break ;;
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
15324 esac
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
15325 done
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
15326
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
15327
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
15328
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
15329
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
15330 EXEC_PREFIX=$exec_prefix
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
15331 while true; do
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
15332 case "$EXEC_PREFIX" in
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
15333 *\$* ) eval "EXEC_PREFIX=$EXEC_PREFIX" ;;
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
15334 *) break ;;
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
15335 esac
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
15336 done
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
15337
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15338
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15339
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15340
274
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15341 INFODIR=$infodir
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15342 while true; do
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15343 case "$INFODIR" in
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15344 *\$* ) eval "INFODIR=$INFODIR" ;;
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15345 *) break ;;
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15346 esac
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15347 done
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15348
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15349
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15350
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15351
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15352 INFOPATH=$infopath
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15353 while true; do
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15354 case "$INFOPATH" in
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15355 *\$* ) eval "INFOPATH=$INFOPATH" ;;
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15356 *) break ;;
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15357 esac
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15358 done
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15359
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15360
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15361
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15362
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15363 PACKAGE_PATH=$package_path
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15364 while true; do
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15365 case "$PACKAGE_PATH" in
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15366 *\$* ) eval "PACKAGE_PATH=$PACKAGE_PATH" ;;
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15367 *) break ;;
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15368 esac
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15369 done
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15370
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15371
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15372
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15373
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15374 LISPDIR=$lispdir
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15375 while true; do
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15376 case "$LISPDIR" in
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15377 *\$* ) eval "LISPDIR=$LISPDIR" ;;
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15378 *) break ;;
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15379 esac
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15380 done
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15381
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15382
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15383
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15384
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15385 MODULEDIR=$moduledir
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15386 while true; do
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15387 case "$MODULEDIR" in
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15388 *\$* ) eval "MODULEDIR=$MODULEDIR" ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15389 *) break ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15390 esac
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15391 done
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15392
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15393
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15394
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15395
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15396 SITELISPDIR=$sitelispdir
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15397 while true; do
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15398 case "$SITELISPDIR" in
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15399 *\$* ) eval "SITELISPDIR=$SITELISPDIR" ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15400 *) break ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15401 esac
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15402 done
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15403
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15404
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15405
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15406
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15407 SITEMODULEDIR=$sitemoduledir
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15408 while true; do
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15409 case "$SITEMODULEDIR" in
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15410 *\$* ) eval "SITEMODULEDIR=$SITEMODULEDIR" ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15411 *) break ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15412 esac
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15413 done
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15414
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15415
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15416
274
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15417
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15418 ETCDIR=$etcdir
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15419 while true; do
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15420 case "$ETCDIR" in
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15421 *\$* ) eval "ETCDIR=$ETCDIR" ;;
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15422 *) break ;;
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15423 esac
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15424 done
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15425
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15426
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15427
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15428
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
15429 DOCDIR=$docdir
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
15430 while true; do
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
15431 case "$DOCDIR" in
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
15432 *\$* ) eval "DOCDIR=$DOCDIR" ;;
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
15433 *) break ;;
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
15434 esac
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
15435 done
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
15436
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
15437
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
15438
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
15439
274
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15440 ARCHLIBDIR=$archlibdir
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15441 while true; do
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15442 case "$ARCHLIBDIR" in
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15443 *\$* ) eval "ARCHLIBDIR=$ARCHLIBDIR" ;;
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15444 *) break ;;
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15445 esac
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15446 done
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15447
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15448
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15449
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15450
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15451
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15452
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15453
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15454
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15455
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15456
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15457
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15458
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15459
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15460
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15461
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15462
203
850242ba4a81 Import from CVS: tag r20-3b28
cvs
parents: 201
diff changeset
15463
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
15464
263
727739f917cb Import from CVS: tag r20-5b30
cvs
parents: 261
diff changeset
15465
267
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
15466
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
15467 RECURSIVE_MAKE="\$(MAKE) \$(MFLAGS) CC='\$(CC)' CFLAGS='\$(CFLAGS)' LDFLAGS='\$(LDFLAGS)' CPPFLAGS='\$(CPPFLAGS)'"
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
15468
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
15469
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
15470
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
15471
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
15472
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
15473
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
15474
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
15475
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
15476
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
15477 if test "$with_prefix" = "yes"; then
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
15478 { test "$extra_verbose" = "yes" && cat << \EOF
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
15479 Defining PREFIX_USER_DEFINED
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
15480 EOF
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
15481 cat >> confdefs.h <<\EOF
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
15482 #define PREFIX_USER_DEFINED 1
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
15483 EOF
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
15484 }
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
15485
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
15486 fi
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
15487
267
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
15488 if test "$with_site_lisp" = "no"; then
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
15489 { test "$extra_verbose" = "yes" && cat << \EOF
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
15490 Defining INHIBIT_SITE_LISP
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
15491 EOF
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
15492 cat >> confdefs.h <<\EOF
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
15493 #define INHIBIT_SITE_LISP 1
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
15494 EOF
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
15495 }
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
15496
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
15497 fi
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15498 if test "$with_site_modules" = "no"; then
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15499 { test "$extra_verbose" = "yes" && cat << \EOF
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15500 Defining INHIBIT_SITE_MODULES
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15501 EOF
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15502 cat >> confdefs.h <<\EOF
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15503 #define INHIBIT_SITE_MODULES 1
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15504 EOF
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15505 }
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15506
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15507 fi
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15508
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
15509
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
15510 T=""
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
15511 for W in $ac_configure_args; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
15512 ac_configure_args="$T"
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
15513
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15514 { test "$extra_verbose" = "yes" && cat << EOF
424
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
15515 Defining EMACS_CONFIGURATION = "$configuration"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15516 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15517 cat >> confdefs.h <<EOF
424
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
15518 #define EMACS_CONFIGURATION "$configuration"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15519 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15520 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15521
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15522 { test "$extra_verbose" = "yes" && cat << EOF
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
15523 Defining EMACS_CONFIG_OPTIONS = "$ac_configure_args"
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
15524 EOF
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
15525 cat >> confdefs.h <<EOF
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
15526 #define EMACS_CONFIG_OPTIONS "$ac_configure_args"
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
15527 EOF
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
15528 }
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
15529
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15530
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15531
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15532 null_string=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15533 { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15534 Defining LD_SWITCH_X_SITE = $null_string
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15535 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15536 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15537 #define LD_SWITCH_X_SITE $null_string
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15538 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15539 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15540
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15541 { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15542 Defining LD_SWITCH_X_SITE_AUX = $null_string
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15543 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15544 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15545 #define LD_SWITCH_X_SITE_AUX $null_string
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15546 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15547 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15548
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15549 { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15550 Defining C_SWITCH_X_SITE = $null_string
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15551 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15552 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15553 #define C_SWITCH_X_SITE $null_string
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15554 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15555 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15556
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15557 { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15558 Defining LD_SWITCH_SITE = $null_string
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15559 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15560 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15561 #define LD_SWITCH_SITE $null_string
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15562 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15563 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15564
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15565 { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15566 Defining C_SWITCH_SITE = $null_string
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15567 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15568 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15569 #define C_SWITCH_SITE $null_string
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15570 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15571 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15572
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15573
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15574
181
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
15575 if test "$GNU_MALLOC" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15576 Defining GNU_MALLOC
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15577 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15578 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15579 #define GNU_MALLOC 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15580 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15581 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15582
181
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
15583 elif test "$with_system_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15584 Defining USE_SYSTEM_MALLOC
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15585 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15586 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15587 #define USE_SYSTEM_MALLOC 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15588 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15589 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15590
181
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
15591 elif test "$with_debug_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
177
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
15592 Defining USE_DEBUG_MALLOC
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
15593 EOF
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
15594 cat >> confdefs.h <<\EOF
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
15595 #define USE_DEBUG_MALLOC 1
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
15596 EOF
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
15597 }
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
15598
181
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
15599 { test "$extra_verbose" = "yes" && cat << \EOF
177
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
15600 Defining USE_SYSTEM_MALLOC
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
15601 EOF
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
15602 cat >> confdefs.h <<\EOF
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
15603 #define USE_SYSTEM_MALLOC 1
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
15604 EOF
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
15605 }
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
15606
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15607 fi
169
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
15608 test "$GCC" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15609 Defining USE_GCC
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15610 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15611 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15612 #define USE_GCC 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15613 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15614 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15615
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15616 test "$external_widget" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15617 Defining EXTERNAL_WIDGET
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15618 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15619 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15620 #define EXTERNAL_WIDGET 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15621 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15622 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15623
925
c4937d1216b6 [xemacs-hg @ 2002-07-16 08:26:38 by michaels]
michaels
parents: 911
diff changeset
15624 test "$use_kkcc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
c4937d1216b6 [xemacs-hg @ 2002-07-16 08:26:38 by michaels]
michaels
parents: 911
diff changeset
15625 Defining USE_KKCC
c4937d1216b6 [xemacs-hg @ 2002-07-16 08:26:38 by michaels]
michaels
parents: 911
diff changeset
15626 EOF
c4937d1216b6 [xemacs-hg @ 2002-07-16 08:26:38 by michaels]
michaels
parents: 911
diff changeset
15627 cat >> confdefs.h <<\EOF
c4937d1216b6 [xemacs-hg @ 2002-07-16 08:26:38 by michaels]
michaels
parents: 911
diff changeset
15628 #define USE_KKCC 1
c4937d1216b6 [xemacs-hg @ 2002-07-16 08:26:38 by michaels]
michaels
parents: 911
diff changeset
15629 EOF
c4937d1216b6 [xemacs-hg @ 2002-07-16 08:26:38 by michaels]
michaels
parents: 911
diff changeset
15630 }
c4937d1216b6 [xemacs-hg @ 2002-07-16 08:26:38 by michaels]
michaels
parents: 911
diff changeset
15631
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15632 test "$quick_build" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15633 Defining QUICK_BUILD
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15634 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15635 cat >> confdefs.h <<\EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15636 #define QUICK_BUILD 1
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15637 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15638 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15639
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
15640 test "$with_purify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
15641 Defining PURIFY
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
15642 EOF
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
15643 cat >> confdefs.h <<\EOF
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
15644 #define PURIFY 1
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
15645 EOF
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
15646 }
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
15647
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15648 test "$with_quantify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15649 Defining QUANTIFY
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15650 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15651 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15652 #define QUANTIFY 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15653 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15654 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15655
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15656 test "$with_pop" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15657 Defining MAIL_USE_POP
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15658 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15659 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15660 #define MAIL_USE_POP 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15661 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15662 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15663
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15664 test "$with_kerberos" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15665 Defining KERBEROS
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15666 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15667 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15668 #define KERBEROS 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15669 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15670 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15671
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15672 test "$with_hesiod" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15673 Defining HESIOD
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15674 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15675 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15676 #define HESIOD 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15677 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15678 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15679
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
15680 test "$use_union_type" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
15681 Defining USE_UNION_TYPE
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
15682 EOF
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
15683 cat >> confdefs.h <<\EOF
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
15684 #define USE_UNION_TYPE 1
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15685 EOF
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15686 }
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
15687
424
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
15688 test "$pdump" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
15689 Defining PDUMP
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
15690 EOF
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
15691 cat >> confdefs.h <<\EOF
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
15692 #define PDUMP 1
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
15693 EOF
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
15694 }
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
15695
724
76d5a3dd827a [xemacs-hg @ 2002-01-05 07:33:11 by stephent]
stephent
parents: 720
diff changeset
15696 test "$with_ipv6_cname" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
76d5a3dd827a [xemacs-hg @ 2002-01-05 07:33:11 by stephent]
stephent
parents: 720
diff changeset
15697 Defining IPV6_CANONICALIZE
76d5a3dd827a [xemacs-hg @ 2002-01-05 07:33:11 by stephent]
stephent
parents: 720
diff changeset
15698 EOF
76d5a3dd827a [xemacs-hg @ 2002-01-05 07:33:11 by stephent]
stephent
parents: 720
diff changeset
15699 cat >> confdefs.h <<\EOF
76d5a3dd827a [xemacs-hg @ 2002-01-05 07:33:11 by stephent]
stephent
parents: 720
diff changeset
15700 #define IPV6_CANONICALIZE 1
76d5a3dd827a [xemacs-hg @ 2002-01-05 07:33:11 by stephent]
stephent
parents: 720
diff changeset
15701 EOF
76d5a3dd827a [xemacs-hg @ 2002-01-05 07:33:11 by stephent]
stephent
parents: 720
diff changeset
15702 }
76d5a3dd827a [xemacs-hg @ 2002-01-05 07:33:11 by stephent]
stephent
parents: 720
diff changeset
15703
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
15704
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15705
118
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
15706 (
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15707 if test -f /etc/osversion; then echo "osversion: `cat /etc/osversion`"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15708 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15709 echo "uname -a: `uname -a`"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15710 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15711 echo ""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15712 echo "$0 $quoted_arguments"
261
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
15713 ) > Installation
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
15714
414
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
15715 if test ! -z ${emacs_beta_version} ; then
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
15716 if test -z "${emacs_is_beta}" ; then
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
15717 xemacs_betaname=".${emacs_beta_version}"
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
15718 else
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
15719 xemacs_betaname="-b${emacs_beta_version}"
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
15720 fi
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
15721 else
430
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 426
diff changeset
15722 xemacs_betaname=""
414
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
15723 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15724
116
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
15725 (
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15726 echo "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15727
975
151d438d2d55 [xemacs-hg @ 2002-08-28 05:36:20 by youngs]
youngs
parents: 925
diff changeset
15728 XEmacs ${emacs_major_version}.${emacs_minor_version}${xemacs_betaname} \"$xemacs_codename\" $xemacs_extra_name configured for \`$canonical'.
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15729 "
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15730 echo "
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15731 Compilation / Installation:"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15732 echo " Source code location: $srcdir"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15733 echo " Installation prefix: $prefix"
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
15734 if test -n "$site_includes"; then
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15735 echo " Additional header files: $site_includes"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15736 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15737 if test -n "$site_libraries"; then
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15738 echo " Additional libraries: $site_libraries"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15739 fi
209
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents: 207
diff changeset
15740 if test -n "$site_prefixes"; then
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15741 echo " Additional prefixes: $site_prefixes"
209
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents: 207
diff changeset
15742 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15743 if test -n "$runpath"; then
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15744 echo " Runtime library search path: $runpath"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15745 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15746
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15747 if test -n "$opsysfile"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15748 then echo " Operating system description file: \`$opsysfile'"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15749 else echo " Not using any operating system description file"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15750 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15751 if test -n "$machfile"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15752 then echo " Machine description file: \`$machfile'"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15753 else echo " Not using any machine description file"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15754 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15755
1111
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
15756 echo " Compiler: $XEMACS_CC $CFLAGS"
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15757 echo " Relocating allocator for buffers: $rel_alloc"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15758 echo " GNU version of malloc: ${GNU_MALLOC}${GNU_MALLOC_reason}"
708
512e4a478e9d [xemacs-hg @ 2001-12-20 06:08:09 by andyp]
andyp
parents: 670
diff changeset
15759 case "$ld_switch_site" in
512e4a478e9d [xemacs-hg @ 2001-12-20 06:08:09 by andyp]
andyp
parents: 670
diff changeset
15760 *nocombreloc*) echo " Linking with \`-z nocombreloc'.
512e4a478e9d [xemacs-hg @ 2001-12-20 06:08:09 by andyp]
andyp
parents: 670
diff changeset
15761 - Consider configuring with --pdump." ;;
512e4a478e9d [xemacs-hg @ 2001-12-20 06:08:09 by andyp]
andyp
parents: 670
diff changeset
15762 esac
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15763
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15764 echo "
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15765 Window System:"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15766 if test "$with_msw" = "yes"; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15767 echo " Compiling in support for the Microsoft window system."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15768 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15769 if test "$with_x11" = "yes"; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15770 echo " Compiling in support for the X window system:"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15771 echo " - X Windows headers location: $x_includes"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15772 echo " - X Windows libraries location: $x_libraries"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15773 if test "$with_xauth" != yes; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15774 echo " - Xau (X authority) not available."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15775 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15776 if test "$with_xmu" != yes; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15777 echo " - Xmu library not available; substituting equivalent routines."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15778 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15779 if test "$with_wmcommand" != no; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15780 echo " - Handling WM_COMMAND properly."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15781 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15782 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15783 if test "$need_athena" = "yes"; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15784 echo " Compiling in support for the Athena widget set:"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15785 echo " - Athena headers location: $athena_h_path"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15786 echo " - Athena library to link: $athena_lib"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15787 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15788 case "$with_menubars" in
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
15789 gtk ) echo " Using GTK menubars." ;;
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15790 lucid ) echo " Using Lucid menubars." ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15791 motif ) echo " Using Motif menubars."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15792 echo " *WARNING* The Motif menubar implementation is currently buggy."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15793 echo " We recommend using the Lucid menubar instead."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15794 echo " Re-run configure with --with-menubars='lucid'." ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15795 msw ) echo " Using MS-Windows menubars." ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15796 esac
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15797 case "$with_scrollbars" in
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
15798 gtk ) echo " Using GTK scrollbars." ;;
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15799 lucid ) echo " Using Lucid scrollbars." ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15800 motif ) echo " Using Motif scrollbars." ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15801 athena ) echo " Using Athena scrollbars." ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15802 msw ) echo " Using MS-Windows scrollbars." ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15803 esac
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15804 case "$with_dialogs" in
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
15805 gtk ) echo " Using GTK dialog boxes." ;;
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15806 motif ) echo " Using Motif dialog boxes."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15807 if test "$unexec" = "unexaix.o"; then if test "`uname -v`" = 4 -a "`uname -r`" -ge 3; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15808 echo " *WARNING* The Motif dialog boxes cause problems on AIX 4.3 and higher."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15809 echo " We recommend using the Athena dialog boxes instead."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15810 echo " Install libXaw and re-run configure with --with-dialogs='athena'."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15811 echo " Read the PROBLEMS file for more information."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15812 fi; fi ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15813 athena ) echo " Using Athena dialog boxes." ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15814 msw ) echo " Using MS-Windows dialog boxes." ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15815 esac
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15816 case "$with_widgets" in
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
15817 gtk ) echo " Using GTK native widgets." ;;
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15818 motif ) echo " Using Motif native widgets." ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15819 athena ) echo " Using Athena native widgets." ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15820 msw ) echo " Using MS-Windows native widgets." ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15821 esac
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15822 if test "$with_dragndrop" = yes; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15823 echo " Compiling in support for Drag'n'Drop (EXPERIMENTAL)."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15824 echo " - Drag'n'Drop prototype: $dragndrop_proto."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15825 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15826
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15827 echo "
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15828 TTY:"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15829 test "$with_ncurses" = yes && echo " Compiling in support for ncurses."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15830 test "$with_gpm" = yes && echo " Compiling in support for GPM (General Purpose Mouse)."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15831
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15832 echo "
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15833 Images:"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15834 test "$with_gif" = yes && echo " Compiling in support for GIF images (builtin)."
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
15835 if test "$with_xpm" = yes; then
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15836 echo " Compiling in support for XPM images."
175
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
15837 elif test "$with_x11" = yes; then
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15838 echo " WARNING: -----------------------------------------------------------"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15839 echo " WARNING: Compiling without XPM image support."
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
15840 if test "$xpm_problem" != ""; then
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
15841 echo " Reason: $xpm_problem"
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
15842 fi
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
15843 echo " WARNING: You should strongly consider installing XPM."
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
15844 echo " WARNING: Otherwise toolbars and other graphics will look suboptimal."
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
15845 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15846 echo " WARNING: -----------------------------------------------------------"
371
cc15677e0335 Import from CVS: tag r21-2b1
cvs
parents: 369
diff changeset
15847 fi
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
15848 if test "$with_png" = yes; then
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15849 echo " Compiling in support for PNG images."
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
15850 elif test "$window_system" != "none"; then
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15851 echo " WARNING: -----------------------------------------------------------"
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
15852 echo " WARNING: Compiling without PNG image support."
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
15853 if test "$png_problem" != ""; then
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
15854 echo " Reason: $png_problem"
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
15855 fi
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
15856 echo " WARNING: You should strongly consider installing the PNG libraries."
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
15857 echo " WARNING: Otherwise certain images and glyphs may not display."
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
15858 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15859 echo " WARNING: -----------------------------------------------------------"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15860 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15861 test "$with_jpeg" = yes && echo " Compiling in support for JPEG images."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15862 test "$with_tiff" = yes && echo " Compiling in support for TIFF images."
310
851ff35f137f Import from CVS: tag r21-0b53
cvs
parents: 308
diff changeset
15863 test "$with_xface" = yes && echo " Compiling in support for X-Face message headers."
432
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
15864
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15865 echo "
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15866 Sound:"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15867 test "$with_native_sound" = yes && echo " Compiling in support for sound (native)."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15868 test "$with_nas_sound" = yes && echo " Compiling in support for NAS (network audio system)."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15869 test "$old_nas" = yes && echo " - NAS library lacks error trapping; will play synchronously."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15870 test "$with_esd_sound" = yes && echo " Compiling in support for ESD (Enlightened Sound Daemon)."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15871
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15872 echo "
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15873 Databases:"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15874 test "$with_database_berkdb" = yes && echo " Compiling in support for Berkeley database."
116
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
15875 test "$with_database_dbm" = yes && echo " Compiling in support for DBM."
426
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
15876 test "$with_database_gdbm" = yes && echo " Compiling in support for GNU DBM."
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15877 test "$with_ldap" = yes && echo " Compiling in support for LDAP."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15878 if test "$with_postgresql" = yes; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15879 echo " Compiling in support for PostgreSQL."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15880 echo " - Using PostgreSQL header file: $libpq_fe_h_file"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15881 test "$with_postgresqlv7" = yes && echo " - Using PostgreSQL V7 bindings."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15882 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15883
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15884 echo "
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15885 Internationalization:"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15886 test "$with_mule" = yes && echo " Compiling in support for Mule (multi-lingual Emacs)."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15887 test "$with_xim" != no && echo " Compiling in support for XIM (X11R5+ I18N input method)."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15888 test "$with_xim" = motif && echo " - Using Motif to provide XIM support."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15889 test "$with_xim" = xlib && echo " - Using raw Xlib to provide XIM support."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15890 test "$with_xfs" = yes && echo " - Using XFontSet to provide bilingual menubar."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15891 test "$with_canna" = yes && echo " Compiling in support for Canna on Mule."
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
15892 if test "$with_wnn" = yes; then
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
15893 echo " Compiling in support for the WNN input method on Mule."
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15894 test "$with_wnn6" = yes && echo " - Using WNN version 6."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15895 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15896
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15897 echo "
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15898 Mail:"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15899 test "$with_pop" = yes && echo " Compiling in support for POP mail retrieval."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15900 test "$with_kerberos" = yes && echo " Compiling in support for Kerberos POP authentication."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15901 test "$with_hesiod" = yes && echo " Compiling in support for Hesiod POP server access."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15902 test -n "$mail_locking" && echo " Compiling in support for \"$mail_locking\" mail spool file locking method."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15903
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15904 echo "
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15905 Other Features:"
708
512e4a478e9d [xemacs-hg @ 2001-12-20 06:08:09 by andyp]
andyp
parents: 670
diff changeset
15906 test "$with_ipv6_cname" = no && echo " Inhibiting IPv6 canonicalization at startup."
116
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
15907 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk."
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15908 test "$with_workshop" = yes && echo " Compiling in support for Sun WorkShop."
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15909 test "$with_socks" = yes && echo " Compiling in support for SOCKS."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15910 test "$with_dnet" = yes && echo " Compiling in support for DNET."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15911 test "$with_modules" = "yes" && echo " Compiling in support for dynamic shared object modules."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15912 test "$use_union_type" = yes && echo " Using the union type for Lisp_Objects."
925
c4937d1216b6 [xemacs-hg @ 2002-07-16 08:26:38 by michaels]
michaels
parents: 911
diff changeset
15913 test "$use_kkcc" = yes && echo " Using the new GC algorithms."
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15914 test "$pdump" = yes && echo " Using the new portable dumper."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15915 test "$debug" = yes && echo " Compiling in support for extra debugging code."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15916 test "$usage_tracking" = yes && echo " Compiling in support for active usage tracking (Sun internal)."
800
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
15917 if test "$error_check_extents $error_check_types $error_check_text $error_check_gc $error_check_malloc $error_check_glyphs $error_check_byte_code $error_check_display $error_check_structures" \
831
5d09ddada9ae [xemacs-hg @ 2002-05-09 07:15:20 by ben]
ben
parents: 814
diff changeset
15918 != "no no no no no no no no no"; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
15919 echo " WARNING: ---------------------------------------------------------"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
15920 echo " WARNING: Compiling in support for runtime error checking."
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
15921 echo " WARNING: XEmacs will run noticeably more slowly as a result."
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
15922 echo " WARNING: Error checking is on by default for XEmacs beta releases."
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
15923 echo " WARNING: ---------------------------------------------------------"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
15924 fi
118
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
15925 echo ""
116
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
15926 ) | tee -a Installation
118
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
15927 echo ""
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
15928
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
15929
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15930 # Remove any trailing slashes in these variables.
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15931 test -n "$prefix" &&
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
15932 prefix=`echo '' "$prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15933 test -n "$exec_prefix" &&
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
15934 exec_prefix=`echo '' "$exec_prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15935
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15936
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
15937 for file in $internal_makefile_list; do
1111
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
15938 case $file in
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
15939 src/Makefile.in ) file="src/Makefile.in:src/Makefile.in.in:src/depend" ;;
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
15940 modules/* ) file="${file}:${file}.in:modules/common/Makefile.common" ;;
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
15941 esac
430
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 426
diff changeset
15942 ac_output_files="$ac_output_files $file" && if test "$extra_verbose" = "yes"; then echo " Appending \"$file\" to \$ac_output_files"; fi
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
15943 done
276
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
15944 ac_output_files="$ac_output_files src/paths.h lib-src/config.values"
430
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 426
diff changeset
15945 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
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
15946
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15947 trap '' 1 2 15
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15948
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15949 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15950
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15951 test "x$prefix" = xNONE && prefix=$ac_default_prefix
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15952 # Let make expand exec_prefix.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15953 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15954
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15955 # Any assignment to VPATH causes Sun make to only execute
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15956 # the first set of double-colon rules, so remove it if not needed.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15957 # If there is a colon in the path, we need to keep it.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15958 if test "x$srcdir" = x.; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15959 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15960 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15961
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15962 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15963
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15964 DEFS=-DHAVE_CONFIG_H
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15965
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15966 # Without the "./", some shells look in PATH for config.status.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15967 : ${CONFIG_STATUS=./config.status}
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15968
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15969 echo creating $CONFIG_STATUS
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15970 rm -f $CONFIG_STATUS
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15971 cat > $CONFIG_STATUS <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15972 #! /bin/sh
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15973 # Generated automatically by configure.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15974 # Run this file to recreate the current configuration.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15975 # This directory was configured as follows,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15976 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15977 #
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15978 # $0 $ac_configure_args
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15979 #
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15980 # Compiler output produced by configure, useful for debugging
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15981 # configure, is in ./config.log if it exists.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15982
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15983 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15984 for ac_option
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15985 do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15986 case "\$ac_option" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15987 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15988 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15989 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15990 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
15991 echo "$CONFIG_STATUS generated by autoconf version 2.13"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15992 exit 0 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15993 -help | --help | --hel | --he | --h)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15994 echo "\$ac_cs_usage"; exit 0 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15995 *) echo "\$ac_cs_usage"; exit 1 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15996 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15997 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15998
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15999 ac_given_srcdir=$srcdir
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16000 ac_given_INSTALL="$INSTALL"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16001
276
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
16002 trap 'rm -fr `echo "$ac_output_files src/config.h lwlib/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16003 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16004 cat >> $CONFIG_STATUS <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16005
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16006 # Protect against being on the right side of a sed subst in config.status.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16007 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16008 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16009 $ac_vpsub
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16010 $extrasub
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
16011 s%@SHELL@%$SHELL%g
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16012 s%@CFLAGS@%$CFLAGS%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16013 s%@CPPFLAGS@%$CPPFLAGS%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16014 s%@CXXFLAGS@%$CXXFLAGS%g
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
16015 s%@FFLAGS@%$FFLAGS%g
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16016 s%@DEFS@%$DEFS%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16017 s%@LDFLAGS@%$LDFLAGS%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16018 s%@LIBS@%$LIBS%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16019 s%@exec_prefix@%$exec_prefix%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16020 s%@prefix@%$prefix%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16021 s%@program_transform_name@%$program_transform_name%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16022 s%@bindir@%$bindir%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16023 s%@sbindir@%$sbindir%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16024 s%@libexecdir@%$libexecdir%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16025 s%@datadir@%$datadir%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16026 s%@sysconfdir@%$sysconfdir%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16027 s%@sharedstatedir@%$sharedstatedir%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16028 s%@localstatedir@%$localstatedir%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16029 s%@libdir@%$libdir%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16030 s%@includedir@%$includedir%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16031 s%@oldincludedir@%$oldincludedir%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16032 s%@infodir@%$infodir%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16033 s%@mandir@%$mandir%g
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16034 s%@LN_S@%$LN_S%g
181
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
16035 s%@blddir@%$blddir%g
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16036 s%@CC@%$CC%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16037 s%@CPP@%$CPP%g
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
16038 s%@start_flags@%$start_flags%g
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
16039 s%@ld_switch_shared@%$ld_switch_shared%g
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
16040 s%@start_files@%$start_files%g
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
16041 s%@ld@%$ld%g
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
16042 s%@lib_gcc@%$lib_gcc%g
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16043 s%@RANLIB@%$RANLIB%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16044 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
16045 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16046 s%@INSTALL_DATA@%$INSTALL_DATA%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16047 s%@YACC@%$YACC%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16048 s%@SET_MAKE@%$SET_MAKE%g
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
16049 s%@GTK_CONFIG@%$GTK_CONFIG%g
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16050 s%@X_CFLAGS@%$X_CFLAGS%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16051 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16052 s%@X_LIBS@%$X_LIBS%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16053 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
276
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
16054 s%@install_pp@%$install_pp%g
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
16055 s%@libs_xauth@%$libs_xauth%g
274
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
16056 s%@dnd_objs@%$dnd_objs%g
265
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
16057 s%@dll_ld@%$dll_ld%g
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
16058 s%@dll_cflags@%$dll_cflags%g
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
16059 s%@dll_ldflags@%$dll_ldflags%g
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
16060 s%@dll_post@%$dll_post%g
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
16061 s%@dll_ldo@%$dll_ldo%g
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
16062 s%@ld_dynamic_link_flags@%$ld_dynamic_link_flags%g
997
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
16063 s%@with_modules@%$with_modules%g
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
16064 s%@MOD_CC@%$MOD_CC%g
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
16065 s%@MODARCHDIR@%$MODARCHDIR%g
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
16066 s%@MAKE_DOCFILE@%$MAKE_DOCFILE%g
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
16067 s%@MODCFLAGS@%$MODCFLAGS%g
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
16068 s%@INSTALLPATH@%$INSTALLPATH%g
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
16069 s%@MOD_INSTALL_PROGRAM@%$MOD_INSTALL_PROGRAM%g
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
16070 s%@OBJECT_TO_BUILD@%$OBJECT_TO_BUILD%g
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
16071 s%@ldap_libs@%$ldap_libs%g
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
16072 s%@postgresql_libs@%$postgresql_libs%g
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
16073 s%@lwlib_objs@%$lwlib_objs%g
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
16074 s%@ALLOCA@%$ALLOCA%g
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
16075 s%@have_esd_config@%$have_esd_config%g
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
16076 s%@SRC_SUBDIR_DEPS@%$SRC_SUBDIR_DEPS%g
167
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
16077 s%@INSTALL_ARCH_DEP_SUBDIR@%$INSTALL_ARCH_DEP_SUBDIR%g
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16078 s%@MAKE_SUBDIR@%$MAKE_SUBDIR%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16079 s%@SUBDIR_MAKEFILES@%$SUBDIR_MAKEFILES%g
280
7df0dd720c89 Import from CVS: tag r21-0b38
cvs
parents: 278
diff changeset
16080 s%@PROGNAME@%$PROGNAME%g
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16081 s%@version@%$version%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16082 s%@configuration@%$configuration%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16083 s%@canonical@%$canonical%g
422
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
16084 s%@inststaticdir@%$inststaticdir%g
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
16085 s%@instvardir@%$instvardir%g
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16086 s%@srcdir@%$srcdir%g
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
16087 s%@pkgdir@%$pkgdir%g
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16088 s%@statedir@%$statedir%g
452
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 450
diff changeset
16089 s%@extra_includes@%$extra_includes%g
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
16090 s%@PREFIX_USER_DEFINED@%$PREFIX_USER_DEFINED%g
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
16091 s%@PREFIX@%$PREFIX%g
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
16092 s%@EXEC_PREFIX_USER_DEFINED@%$EXEC_PREFIX_USER_DEFINED%g
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
16093 s%@EXEC_PREFIX@%$EXEC_PREFIX%g
274
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
16094 s%@INFODIR_USER_DEFINED@%$INFODIR_USER_DEFINED%g
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
16095 s%@INFODIR@%$INFODIR%g
203
850242ba4a81 Import from CVS: tag r20-3b28
cvs
parents: 201
diff changeset
16096 s%@infopath@%$infopath%g
274
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
16097 s%@INFOPATH_USER_DEFINED@%$INFOPATH_USER_DEFINED%g
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
16098 s%@INFOPATH@%$INFOPATH%g
269
b2472a1930f2 Import from CVS: tag r20-5b33
cvs
parents: 267
diff changeset
16099 s%@package_path@%$package_path%g
274
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
16100 s%@PACKAGE_PATH_USER_DEFINED@%$PACKAGE_PATH_USER_DEFINED%g
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
16101 s%@PACKAGE_PATH@%$PACKAGE_PATH%g
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16102 s%@lispdir@%$lispdir%g
274
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
16103 s%@LISPDIR_USER_DEFINED@%$LISPDIR_USER_DEFINED%g
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
16104 s%@LISPDIR@%$LISPDIR%g
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
16105 s%@moduledir@%$moduledir%g
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
16106 s%@MODULEDIR_USER_DEFINED@%$MODULEDIR_USER_DEFINED%g
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
16107 s%@MODULEDIR@%$MODULEDIR%g
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
16108 s%@sitelispdir@%$sitelispdir%g
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
16109 s%@SITELISPDIR_USER_DEFINED@%$SITELISPDIR_USER_DEFINED%g
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
16110 s%@SITELISPDIR@%$SITELISPDIR%g
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
16111 s%@sitemoduledir@%$sitemoduledir%g
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
16112 s%@SITEMODULEDIR_USER_DEFINED@%$SITEMODULEDIR_USER_DEFINED%g
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
16113 s%@SITEMODULEDIR@%$SITEMODULEDIR%g
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16114 s%@etcdir@%$etcdir%g
274
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
16115 s%@ETCDIR_USER_DEFINED@%$ETCDIR_USER_DEFINED%g
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
16116 s%@ETCDIR@%$ETCDIR%g
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
16117 s%@docdir@%$docdir%g
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
16118 s%@DOCDIR_USER_DEFINED@%$DOCDIR_USER_DEFINED%g
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
16119 s%@DOCDIR@%$DOCDIR%g
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16120 s%@archlibdir@%$archlibdir%g
274
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
16121 s%@ARCHLIBDIR_USER_DEFINED@%$ARCHLIBDIR_USER_DEFINED%g
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
16122 s%@ARCHLIBDIR@%$ARCHLIBDIR%g
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16123 s%@bitmapdir@%$bitmapdir%g
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16124 s%@extra_objs@%$extra_objs%g
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16125 s%@machfile@%$machfile%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16126 s%@opsysfile@%$opsysfile%g
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16127 s%@c_switch_general@%$c_switch_general%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16128 s%@c_switch_window_system@%$c_switch_window_system%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16129 s%@c_switch_all@%$c_switch_all%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16130 s%@ld_switch_general@%$ld_switch_general%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16131 s%@ld_switch_window_system@%$ld_switch_window_system%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16132 s%@ld_switch_all@%$ld_switch_all%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16133 s%@ld_libs_general@%$ld_libs_general%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16134 s%@ld_libs_window_system@%$ld_libs_window_system%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16135 s%@ld_libs_all@%$ld_libs_all%g
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
16136 s%@RECURSIVE_MAKE@%$RECURSIVE_MAKE%g
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16137 s%@native_sound_lib@%$native_sound_lib%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16138 s%@sound_cflags@%$sound_cflags%g
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16139 s%@dynodump_arch@%$dynodump_arch%g
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
16140 s%@XEMACS_CC@%$XEMACS_CC%g
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16141 s%@internal_makefile_list@%$internal_makefile_list%g
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16142
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16143 CEOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16144 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16145
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16146 cat >> $CONFIG_STATUS <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16147
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16148 # Split the substitutions into bite-sized pieces for seds with
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16149 # small command number limits, like on Digital OSF/1 and HP-UX.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16150 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16151 ac_file=1 # Number of current file.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16152 ac_beg=1 # First line for current file.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16153 ac_end=$ac_max_sed_cmds # Line after last line for current file.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16154 ac_more_lines=:
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16155 ac_sed_cmds=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16156 while $ac_more_lines; do
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16157 if test $ac_beg -gt 1; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16158 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16159 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16160 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16161 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16162 if test ! -s conftest.s$ac_file; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16163 ac_more_lines=false
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16164 rm -f conftest.s$ac_file
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16165 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16166 if test -z "$ac_sed_cmds"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16167 ac_sed_cmds="sed -f conftest.s$ac_file"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16168 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16169 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16170 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16171 ac_file=`expr $ac_file + 1`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16172 ac_beg=$ac_end
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16173 ac_end=`expr $ac_end + $ac_max_sed_cmds`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16174 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16175 done
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16176 if test -z "$ac_sed_cmds"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16177 ac_sed_cmds=cat
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16178 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16179 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16180
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16181 cat >> $CONFIG_STATUS <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16182
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
16183 CONFIG_FILES=\${CONFIG_FILES-"$ac_output_files"}
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16184 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16185 cat >> $CONFIG_STATUS <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16186 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16187 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16188 case "$ac_file" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16189 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16190 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16191 *) ac_file_in="${ac_file}.in" ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16192 esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16193
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16194 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16195
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16196 # Remove last slash and all that follows it. Not all systems have dirname.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16197 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16198 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16199 # The file is in a subdirectory.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16200 test ! -d "$ac_dir" && mkdir "$ac_dir"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16201 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16202 # A "../" for each directory in $ac_dir_suffix.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16203 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16204 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16205 ac_dir_suffix= ac_dots=
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16206 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16207
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16208 case "$ac_given_srcdir" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16209 .) srcdir=.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16210 if test -z "$ac_dots"; then top_srcdir=.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16211 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16212 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16213 *) # Relative path.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16214 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16215 top_srcdir="$ac_dots$ac_given_srcdir" ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16216 esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16217
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16218 case "$ac_given_INSTALL" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16219 [/$]*) INSTALL="$ac_given_INSTALL" ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16220 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16221 esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16222
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16223 echo creating "$ac_file"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16224 rm -f "$ac_file"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16225 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16226 case "$ac_file" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16227 *Makefile*) ac_comsub="1i\\
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16228 # $configure_input" ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16229 *) ac_comsub= ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16230 esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16231
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16232 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16233 sed -e "$ac_comsub
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16234 s%@configure_input@%$configure_input%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16235 s%@srcdir@%$srcdir%g
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16236 s%@top_srcdir@%$top_srcdir%g
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16237 s%@INSTALL@%$INSTALL%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16238 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16239 fi; done
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16240 rm -f conftest.s*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16241
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16242 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16243 # NAME is the cpp macro being defined and VALUE is the value it is being given.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16244 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16245 # ac_d sets the value in "#define NAME VALUE" lines.
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16246 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16247 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16248 ac_dC='\3'
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16249 ac_dD='%g'
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16250 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16251 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16252 ac_uB='\([ ]\)%\1#\2define\3'
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16253 ac_uC=' '
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16254 ac_uD='\4%g'
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16255 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16256 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16257 ac_eB='$%\1#\2define\3'
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16258 ac_eC=' '
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16259 ac_eD='%g'
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16260
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16261 if test "${CONFIG_HEADERS+set}" != set; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16262 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16263 cat >> $CONFIG_STATUS <<EOF
276
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
16264 CONFIG_HEADERS="src/config.h lwlib/config.h"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16265 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16266 cat >> $CONFIG_STATUS <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16267 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16268 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16269 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16270 case "$ac_file" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16271 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16272 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16273 *) ac_file_in="${ac_file}.in" ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16274 esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16275
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16276 echo creating $ac_file
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16277
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16278 rm -f conftest.frag conftest.in conftest.out
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16279 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16280 cat $ac_file_inputs > conftest.in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16281
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16282 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16283
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16284 # Transform confdefs.h into a sed script conftest.vals that substitutes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16285 # the proper values into config.h.in to produce config.h. And first:
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16286 # Protect against being on the right side of a sed subst in config.status.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16287 # Protect against being in an unquoted here document in config.status.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16288 rm -f conftest.vals
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16289 cat > conftest.hdr <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16290 s/[\\&%]/\\&/g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16291 s%[\\$`]%\\&%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16292 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16293 s%ac_d%ac_u%gp
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16294 s%ac_u%ac_e%gp
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16295 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16296 sed -n -f conftest.hdr confdefs.h > conftest.vals
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16297 rm -f conftest.hdr
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16298
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16299 # This sed command replaces #undef with comments. This is necessary, for
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16300 # example, in the case of _POSIX_SOURCE, which is predefined and required
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16301 # on some systems where configure will not decide to define it.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16302 cat >> conftest.vals <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16303 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16304 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16305
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16306 # Break up conftest.vals because some shells have a limit on
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16307 # the size of here documents, and old seds have small limits too.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16308
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16309 rm -f conftest.tail
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16310 while :
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16311 do
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16312 ac_lines=`grep -c . conftest.vals`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16313 # grep -c gives empty output for an empty file on some AIX systems.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16314 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16315 # Write a limited-size here document to conftest.frag.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16316 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16317 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16318 echo 'CEOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16319 sed -f conftest.frag conftest.in > conftest.out
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16320 rm -f conftest.in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16321 mv conftest.out conftest.in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16322 ' >> $CONFIG_STATUS
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16323 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16324 rm -f conftest.vals
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16325 mv conftest.tail conftest.vals
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16326 done
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16327 rm -f conftest.vals
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16328
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16329 cat >> $CONFIG_STATUS <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16330 rm -f conftest.frag conftest.h
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16331 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16332 cat conftest.in >> conftest.h
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16333 rm -f conftest.in
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16334 if cmp -s $ac_file conftest.h 2>/dev/null; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16335 echo "$ac_file is unchanged"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16336 rm -f conftest.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16337 else
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16338 # Remove last slash and all that follows it. Not all systems have dirname.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16339 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16340 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16341 # The file is in a subdirectory.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16342 test ! -d "$ac_dir" && mkdir "$ac_dir"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16343 fi
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16344 rm -f $ac_file
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16345 mv conftest.h $ac_file
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16346 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16347 fi; done
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16348
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16349 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16350 cat >> $CONFIG_STATUS <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16351 CPP="$CPP"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16352 top_srcdir="$srcdir"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16353 MAKE_SUBDIR="$MAKE_SUBDIR"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16354
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16355 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16356 cat >> $CONFIG_STATUS <<\EOF
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
16357 for dir in . $MAKE_SUBDIR; do
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
16358 (
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16359 cd $dir
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16360 rm -f junk.c
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
16361 < Makefile.in \
165
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents: 163
diff changeset
16362 sed -e '/^# Generated/d' \
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
16363 -e 's%/\*\*/#.*%%' \
165
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents: 163
diff changeset
16364 -e 's/^ *# */#/' \
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
16365 -e '/^##/d' \
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
16366 -e '/^#/ {
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
16367 p
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
16368 d
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
16369 }' \
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
16370 -e '/./ {
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
16371 s/\([\"]\)/\\\1/g
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
16372 s/^/"/
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
16373 s/$/"/
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
16374 }' > junk.c;
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
16375
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
16376
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
16377
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
16378 echo creating $dir/Makefile
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
16379 $CPP -I. -I${top_srcdir}/src junk.c \
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
16380 | sed -e 's/^\#.*//' \
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
16381 -e 's/^[ ][ ]*$//'\
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
16382 -e 's/^ / /' \
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16383 -e '/^[ ]*$/d' \
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16384 -e '/^\"/ {
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
16385 s/\\\([\"]\)/\1/g
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
16386 s/^[ ]*\"//
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
16387 s/\"[ ]*$//
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
16388 }' > Makefile.new
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16389 chmod 444 Makefile.new
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16390 mv -f Makefile.new Makefile
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
16391
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
16392 echo creating $dir/GNUmakefile
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
16393 $CPP -I. -I${top_srcdir}/src -DUSE_GNU_MAKE junk.c \
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
16394 | sed -e 's/^\#.*//' \
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
16395 -e 's/^[ ][ ]*$//'\
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
16396 -e 's/^ / /' \
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16397 -e '/^[ ]*$/d' \
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16398 -e '/^\"/ {
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
16399 s/\\\([\"]\)/\1/g
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
16400 s/^[ ]*\"//
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
16401 s/\"[ ]*$//
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
16402 }' > Makefile.new
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
16403 chmod 444 Makefile.new
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
16404 mv -f Makefile.new GNUmakefile
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
16405
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
16406 rm -f junk.c
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
16407 )
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16408 done
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16409
181
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
16410 sed < config.status >> lib-src/config.values \
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
16411 -e '/{ac_dA}.*{ac_dB}.*{ac_dC}.*{ac_dD}$/!d' \
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
16412 -e 's/\${ac_dA}\(.*\)\${ac_dB}.*\${ac_dC}\(.*\)\${ac_dD}/\1 \2/' \
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
16413 -e 's/^\([^ ]*\) $/\1 ""/' \
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
16414 -e 's/ 1$/ t/'
175
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
16415
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
16416
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16417 exit 0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16418 EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16419 chmod +x $CONFIG_STATUS
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16420 rm -fr confdefs* $ac_clean_files
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16421 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1