annotate configure @ 243:f220cc83d72e r20-5b20

Import from CVS: tag r20-5b20
author cvs
date Mon, 13 Aug 2007 10:17:07 +0200
parents 41f2f0e326e9
children 51092a27c943
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.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5 #### Generated automatically using autoconf version 2.12
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6 #### Copyright (C) 1992, 93, 94, 95, 96 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.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9 #### Copyright (C) 1995, 1996 Ben Wing.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11 ### Don't edit this script!
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12 ### This script was automatically generated by the `autoconf' program
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13 ### from the file `./configure.in'.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14 ### To rebuild it, execute the command
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15 ### autoconf
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16 ### in the this directory. You must have autoconf version 2.12 or later.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
18 ### This file is part of XEmacs.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
19
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
20 ### XEmacs is free software; you can redistribute it and/or modify it
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
21 ### under the terms of the GNU General Public License as published by
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
22 ### the Free Software Foundation; either version 2, or (at your
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
23 ### option) any later version.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
24
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
25 ### XEmacs is distributed in the hope that it will be useful, but
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
26 ### WITHOUT ANY WARRANTY; without even the implied warranty of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
27 ### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
28 ### General Public License for more details.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
29
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
30 ### You should have received a copy of the GNU General Public License
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
31 ### along with XEmacs; see the file COPYING. If not, write to the Free
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
32 ### Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
33 ### 02111-1307, USA.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
34
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
35 ### For usage, run `./configure --help'
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
36 ### For more detailed information on building and installing XEmacs,
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
37 ### read the file `INSTALL'.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
38 ###
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
39 ### If configure succeeds, it leaves its status in config.status.
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
40 ### A log of configuration tests can be found in config.log.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
41 ### If configure fails after disturbing the status quo,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
42 ### config.status is removed.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
43
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
44 ac_help="$ac_help
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
45 --with-x use the X Window System"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
46
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
47 exec_prefix=NONE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
48 host=NONE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
49 no_create=
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
50 nonopt=NONE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
51 no_recursion=
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
52 prefix=NONE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
53 program_prefix=NONE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
54 program_suffix=NONE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
55 program_transform_name=s,x,x,
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
56 silent=
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
57 site=
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
58 srcdir=
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
59 target=NONE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
60 verbose=
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
61 x_includes=NONE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
62 x_libraries=NONE
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
63 CDPATH=.; export CDPATH
185
3d6bfa290dbd Import from CVS: tag r20-3b19
cvs
parents: 183
diff changeset
64 package_path=NONE
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
65
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
66 if test -n "$ZSH_VERSION"; then
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
67 setopt NO_BAD_PATTERN NO_BANG_HIST NO_BG_NICE NO_EQUALS NO_FUNCTION_ARGZERO
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
68 setopt GLOB_SUBST NO_HUP INTERACTIVE_COMMENTS KSH_ARRAYS NO_MULTIOS NO_NOMATCH
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
69 setopt RM_STAR_SILENT POSIX_BUILTINS SH_FILE_EXPANSION SH_GLOB SH_OPTION_LETTERS
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
70 setopt SH_WORD_SPLIT BSD_ECHO IGNORE_BRACES
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
71 fi
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
72
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
73 bindir='${exec_prefix}/bin'
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
74 sbindir='${exec_prefix}/sbin'
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
75 libexecdir='${exec_prefix}/libexec'
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
76 datadir='${prefix}/share'
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
77 sysconfdir='${prefix}/etc'
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
78 sharedstatedir='${prefix}/com'
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
79 localstatedir='${prefix}/var'
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
80 libdir='${{exec_prefix}}/lib'
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
81 includedir='${prefix}/include'
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
82 oldincludedir='/usr/include'
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
83 infodir='${prefix}/info'
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
84 mandir='${prefix}/man'
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
85
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
86 subdirs=
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
87 MFLAGS= MAKEFLAGS=
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
88 ac_max_here_lines=12
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
89
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
90 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
91
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
92 # File descriptor usage:
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
93 # 0 standard input
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
94 # 1 file creation
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
95 # 2 errors and warnings
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
96 # 3 some systems may open it to /dev/tty
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
97 # 4 used on the Kubota Titan
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
98 # 6 checking for... messages and results
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
99 # 5 compiler messages saved in config.log
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
100 if test "$silent" = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
101 exec 6>/dev/null
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
102 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
103 exec 6>&1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
104 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
105 exec 5>./config.log
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
106
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
107 echo "\
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
108 This file contains any messages produced by compilers while
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
109 running configure, to aid debugging if configure makes a mistake.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
110 " 1>&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
111
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
112 # 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
113 # Also quote any args containing shell metacharacters.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
114 ac_configure_args=
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
115 for ac_arg
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
116 do
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
117 case "$ac_arg" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
118 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
119 | --no-cr | --no-c) ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
120 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
121 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
122 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
123 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
124 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
125 esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
126 done
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
127
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
128 # NLS nuisances.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
129 # 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
130 # because not all systems understand e.g. LANG=C (notably SCO).
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
131 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
132 # Non-C LC_CTYPE values break the ctype check.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
133 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
134 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
135 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
136 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
137
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
138 # confdefs.h avoids OS command line length limits that DEFS can exceed.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
139 rm -rf conftest* confdefs.h
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
140 # 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
141 echo > confdefs.h
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
142
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
143 # A filename unique to this package, relative to the directory that
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
144 # 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
145 ac_unique_file=src/lisp.h
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
146
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
147 # Find the source files, if location was not specified.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
148 if test -z "$srcdir"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
149 ac_srcdir_defaulted=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
150 # Try the directory containing this script, then its parent.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
151 ac_prog=$0
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
152 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
153 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
154 srcdir=$ac_confdir
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
155 if test ! -r $srcdir/$ac_unique_file; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
156 srcdir=..
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 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
159 ac_srcdir_defaulted=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
160 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
161 if test ! -r $srcdir/$ac_unique_file; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
162 if test "$ac_srcdir_defaulted" = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
163 { 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
164 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
165 { 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
166 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
167 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
168 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
169
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
170 # Prefer explicitly selected file to automatically selected ones.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
171 if test -z "$CONFIG_SITE"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
172 if test "x$prefix" != xNONE; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
173 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
174 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
175 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
176 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
177 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
178 for ac_site_file in $CONFIG_SITE; do
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
179 if test -r "$ac_site_file"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
180 echo "loading site script $ac_site_file"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
181 . "$ac_site_file"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
182 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
183 done
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
184
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
185
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
186 ac_ext=c
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
187 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
188 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
189 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
190 ac_cpp='$CPP '"$xe_cppflags"
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
191 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
192 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
193 cross_compiling=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
194
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
195 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
196 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
197 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
198 ac_n= ac_c='
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
199 ' ac_t=' '
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
200 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
201 ac_n=-n ac_c= ac_t=
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
202 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
203 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
204 ac_n= ac_c='\c' ac_t=
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
205 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
206
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
207
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
208 progname="`echo $0 | sed 's:^\./\./:\./:'`"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
209
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
210
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
211 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
212 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
213
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
214 prefix='/usr/local'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
215 exec_prefix='${prefix}'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
216 bindir='${exec_prefix}/bin'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
217 datadir='${prefix}/lib'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
218 statedir='${prefix}/lib'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
219 libdir='${exec_prefix}/lib'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
220 mandir='${prefix}/man/man1'
215
1f0dabaa0855 Import from CVS: tag r20-4b6
cvs
parents: 213
diff changeset
221 infodir='${datadir}/xemacs-${version}/info'
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
222 infodir_user_defined='no'
239
41f2f0e326e9 Import from CVS: tag r20-5b18
cvs
parents: 231
diff changeset
223 infopath='/usr/local/lib/texmf/doc/info:/usr/local/lib/texmf/info:/usr/lib/texmf/doc/info:/usr/lib/texmf/info:/usr/local/info:/usr/info'
203
850242ba4a81 Import from CVS: tag r20-3b28
cvs
parents: 201
diff changeset
224 infopath_user_defined='no'
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
225 lispdir='${datadir}/xemacs-${version}/lisp'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
226 lispdir_user_defined='no'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
227 sitelispdir='${datadir}/xemacs/site-lisp'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
228 etcdir='${datadir}/xemacs-${version}/etc'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
229 etcdir_user_defined='no'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
230 lockdir='${statedir}/xemacs/lock'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
231 lockdir_user_defined='no'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
232 archlibdir='${libdir}/xemacs-${version}/${configuration}'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
233 archlibdir_user_defined='no'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
234 with_menubars=''
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
235 with_scrollbars=''
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
236 with_dialogs=''
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
237 const_is_losing='yes'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
238 puresize=''
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
239 cflags='UNSPECIFIED'
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
240 dynamic=''
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
241 with_x11=''
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
242 rel_alloc='default'
181
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
243 with_system_malloc='default'
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
244 native_sound_lib=''
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
245 use_assertions="yes"
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
246 with_toolbars=""
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
247 with_tty=""
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
248 use_union_type="no"
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
249 with_dnet=""
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
250
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
251
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
252
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
253
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
254 arguments="$@"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
255
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
256 quoted_sed_magic=s/"'"/"'"'"'"'"'"'"'"/g
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
257 quoted_arguments=
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
258 for i in "$@"; do
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
259 case "$i" in
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
260 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
261 | --no-cr | --no-c) ;;
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
262 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
263 | --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
264 *)
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
265 quoted_i="`echo '' $i | sed -e 's:^ ::' -e $quoted_sed_magic`"
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
266 quoted_arguments="$quoted_arguments '$quoted_i'" ;;
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
267 esac
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
268 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
269
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
270 while test $# != 0; do
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
271 arg="$1"; shift
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
272 case "$arg" in
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
273 --no-create|--no-recursion) ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
274 -* )
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
275 case "$arg" in
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
276 -*=*)
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
277 opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\([^=]*\)=.*$:\1:'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
278 val=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*[^=]*=\(.*\)$:\1:'`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
279 valomitted=no
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
280 ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
281 -*)
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
282 opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\(.*\)$:\1:'`
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
283 val="yes" valomitted=yes
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
284 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
285 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
286
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
287 case "${valomitted}-${opt}" in yes-without_* )
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
288 opt=`echo $opt | sed 's/without/with/'`
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
289 valomitted="no" val="no" ;;
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
290 esac
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
291
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
292 optname="$opt"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
293 opt="`echo '' $opt | sed -e 's:^ ::' | tr - _`"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
294
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
295 case "$opt" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
296
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
297 run_in_place | \
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
298 with_x | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
299 with_x11 | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
300 with_gcc | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
301 with_gnu_make | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
302 dynamic | \
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
303 with_ncurses | \
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
304 with_dnet | \
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
305 with_term | \
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
306 with_socks | \
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
307 with_cde | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
308 with_offix | \
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
309 with_gpm | \
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
310 with_xpm | \
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
311 with_xface | \
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
312 with_imagick | \
179
9ad43877534d Import from CVS: tag r20-3b16
cvs
parents: 177
diff changeset
313 with_session | \
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
314 with_xmu | \
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
315 with_quantify | \
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
316 with_toolbars | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
317 with_tty | \
215
1f0dabaa0855 Import from CVS: tag r20-4b6
cvs
parents: 213
diff changeset
318 with_xfs | \
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
319 with_i18n3 | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
320 with_mule | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
321 with_canna | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
322 with_wnn | \
98
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 92
diff changeset
323 with_wnn6 | \
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
324 with_workshop | \
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
325 with_sparcworks | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
326 with_tooltalk | \
118
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
327 with_pop | \
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
328 with_kerberos | \
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
329 with_hesiod | \
136
b980b6286996 Import from CVS: tag r20-2b2
cvs
parents: 126
diff changeset
330 with_dnet | \
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
331 external_widget | \
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
332 verbose | \
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
333 extra_verbose | \
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
334 const_is_losing | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
335 usage_tracking | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
336 use_union_type | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
337 debug | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
338 use_assertions | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
339 memory_usage_stats | \
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
340 with_clash_detection | \
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
341 no_doc_file )
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
342 case "$val" in
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
343 y | ye | yes ) val=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
344 n | no ) val=no ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
345 * ) (echo "$progname: Usage error:"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
346 echo " " "The \`--$optname' option requires a boolean value: \`yes' or \`no'."
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
347 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
348 esac
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
349 eval "$opt=\"$val\"" ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
350
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
351
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
352 srcdir | \
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
353 compiler | \
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
354 cflags | \
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
355 puresize | \
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
356 cache_file | \
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
357 native_sound_lib | \
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
358 package_path | \
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
359 x_includes | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
360 x_libraries | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
361 site_includes | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
362 site_libraries | \
209
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents: 207
diff changeset
363 site_prefixes | \
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
364 site_runtime_libraries )
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
365 if test "$valomitted" = "yes" ; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
366 if test "$#" = 0 ; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
367 (echo "$progname: Usage error:"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
368 echo " " "The \`--$optname' option requires a value."
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
369 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
370 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
371 val="$1"; shift
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
372 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
373 eval "$opt=\"$val\""
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
374 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
375
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
376 rel_alloc | \
181
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
377 with_debug_malloc | use_debug_malloc | \
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
378 with_system_malloc | use_system_malloc )
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
379 case "$val" in
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
380 y | ye | yes ) val=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
381 n | no ) val=no ;;
181
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
382 d | de | def | defa | defau | defaul | default ) val=default ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
383 * ) (echo "$progname: Usage error:"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
384 echo " " "The \`--$optname' option requires one of these values:
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
385 \`yes', \`no', or \`default'."
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
386 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
387 esac
181
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
388 case "$opt" in use_* ) opt="`echo $opt | sed /use/with/`" ;; esac
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
389 eval "$opt=\"$val\""
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
390 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
391
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
392 "with_database" )
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
393 with_database_berkdb=no
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
394 with_database_dbm=no
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
395 with_database_gnudbm=no
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
396 for x in `echo "$val" | sed -e 's/,/ /'` ; do
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
397 case "$x" in
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
398 no ) ;;
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
399 b | be | ber | berk | berkd | berkdb ) with_database_berkdb=yes ;;
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
400 d | db | dbm ) with_database_dbm=yes ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
401 g | gn | gnu | gnud | gnudb | gnudbm ) with_database_gnudbm=yes ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
402 * ) (echo "$progname: Usage error:"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
403 echo " " "The \`--$optname' option value
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
404 must be either \`no' or a comma-separated list
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
405 of one or more of \`berkdb', \`dbm', or \`gnudbm'."
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
406 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
407 esac
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
408 done
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
409 if test "$with_database_dbm" = "yes" -a \
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
410 "$with_database_gnudbm" = "yes"; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
411 (echo "$progname: Usage error:"
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
412 echo " " "Only one of \`dbm' and \`gnudbm' may be specified
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
413 with the \`--$optname' option."
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
414 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
415 fi
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
416 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
417
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
418 "with_sound" )
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
419 case "$val" in
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
420 y | ye | yes ) val=native ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
421 n | no | non | none ) val=no;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
422 na | nat | nati | nativ | native ) val=native ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
423 ne | net | neta | netau | netaud | netaudi | netaudio | nas ) val=nas ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
424 b | bo | bot | both ) val=both;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
425 * ) (echo "$progname: Usage error:"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
426 echo " " "The \`--$optname' option must have one of these values:
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
427 \`native', \`nas', \`both', or \`none'."
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
428 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
429 esac
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
430 eval "$opt=\"$val\""
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
431 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
432
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
433 "with_xim" )
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
434 case "$val" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
435 y | ye | yes ) val=yes ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
436 n | no | non | none ) val=no ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
437 x | xl | xli | xlib ) val=xlib ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
438 m | mo | mot | moti | motif ) val=motif ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
439 * ) (echo "$progname: Usage error:"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
440 echo " " "The \`--$optname' option must have one of these values:
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
441 \`motif', \`xlib', \`yes', or \`no'."
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
442 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
443 esac
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
444 eval "$opt=\"$val\""
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
445 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
446
177
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
447 "with_xfs" )
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
448 case "$val" in
187
b405438285a2 Import from CVS: tag r20-3b20
cvs
parents: 185
diff changeset
449 y | ye | yes ) val=yes ;;
b405438285a2 Import from CVS: tag r20-3b20
cvs
parents: 185
diff changeset
450 n | no | non | none ) val=no ;;
177
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
451 * ) (echo "$progname: Usage error:"
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
452 echo " " "The \`--$optname' option must have one of these values:
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
453 \`yes', or \`no'."
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
454 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
455 esac
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
456 eval "$opt=\"$val\""
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
457 ;;
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
458
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
459 "mail_locking" )
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
460 case "$val" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
461 lockf ) val=lockf ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
462 flock ) val=flock ;;
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
463 file ) val=file ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
464 * ) (echo "$progname: Usage error:"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
465 echo " " "The \`--$optname' option must have one of these values:
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
466 \`lockf', \`flock', or \`file'."
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
467 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
468 esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
469 eval "$opt=\"$val\""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
470 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
471
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
472 "error_checking" )
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
473
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
474 for x in `echo "$val" | sed -e 's/,/ /'` ; do
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
475 case "$x" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
476 n | no | non | none ) new_default=no ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
477 a | al | all ) new_default=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
478
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
479 extents ) error_check_extents=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
480 noextents ) error_check_extents=no ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
481
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
482 typecheck ) error_check_typecheck=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
483 notypecheck ) error_check_typecheck=no ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
484
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
485 bufpos ) error_check_bufpos=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
486 nobufpos ) error_check_bufpos=no ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
487
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
488 gc ) error_check_gc=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
489 nogc ) error_check_gc=no ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
490
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
491 malloc ) error_check_malloc=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
492 nomalloc ) error_check_malloc=no ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
493
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
494 * ) bogus_error_check=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
495 esac
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
496 if test "$bogus_error_check" -o \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
497 \( -n "$new_default" -a -n "$echeck_notfirst" \) ; then
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
498 if test $error_check_default = yes ; then
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
499 types="\`all' (default), \`none', \`noextents', \`notypecheck', \`nobufpos', \`nogc', and \`nomalloc'."
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
500 else
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
501 types="\`all', \`none' (default), \`extents', \`typecheck', \`bufpos', \`gc', and \`malloc'."
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
502 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
503 (echo "$progname: Usage error:"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
504 echo " " "Valid types for the \`--$optname' option are:
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
505 $types."
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
506 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
507 elif test -n "$new_default" ; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
508 error_check_extents=$new_default
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
509 error_check_typecheck=$new_default
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
510 error_check_bufpos=$new_default
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
511 error_check_gc=$new_default
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
512 error_check_malloc=$new_default
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
513 new_default= # reset this
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
514 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
515 echeck_notfirst=true
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
516 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
517 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
518
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
519
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
520 prefix | exec_prefix | bindir | datadir | statedir | libdir | \
203
850242ba4a81 Import from CVS: tag r20-3b28
cvs
parents: 201
diff changeset
521 mandir | infodir | infopath | lispdir | etcdir | lockdir | pkgdir | \
850242ba4a81 Import from CVS: tag r20-3b28
cvs
parents: 201
diff changeset
522 archlibdir | sitelispdir | docdir )
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
523 if test "$valomitted" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
524 if test "$#" = 0; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
525 (echo "$progname: Usage error:"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
526 echo " " "The \`--$optname' option requires a value."
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
527 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
528 fi
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
529 val="$1"; shift
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
530 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
531 eval "$opt=\"$val\""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
532
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
533 case "$opt" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
534 lispdir ) lispdir_user_defined=yes ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
535 etcdir ) etcdir_user_defined=yes ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
536 infodir ) infodir_user_defined=yes ;;
203
850242ba4a81 Import from CVS: tag r20-3b28
cvs
parents: 201
diff changeset
537 infopath ) infopath_user_defined=yes ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
538 datadir ) lispdir_user_defined=yes etcdir_user_defined=yes ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
539 statedir | lockdir ) lockdir_user_defined=yes ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
540 exec_prefix | libdir | archlibdir ) archlibdir_user_defined=yes ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
541 esac
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
542 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
543
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
544 "no_create" ) ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
545
215
1f0dabaa0855 Import from CVS: tag r20-4b6
cvs
parents: 213
diff changeset
546 "usage" | "help" ) ${PAGER-more} ${srcdir}/configure.usage; exit 0 ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
547
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
548 "with_menubars" | "with_scrollbars" | "with_dialogs" )
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
549 case "$val" in
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
550 l | lu | luc | luci | lucid ) val=lucid ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
551 m | mo | mot | moti | motif ) val=motif ;;
82
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
552 athena3d | athena-3d ) val=athena3d ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
553 a | at | ath | athe | athen | athena ) val=athena ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
554 n | no | non | none ) val=no ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
555 * ) (echo "$progname: Usage error:"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
556 echo " " "The \`--$optname' option must have one of these values:
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
557 \`lucid', \`motif', \`athena', \`athena3d', or \`no'."
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
558 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
559 esac
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
560 eval "$opt=\"$val\""
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
561 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
562
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
563 * ) (echo "$progname: Usage error:"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
564 echo " " "Unrecognized option: $arg"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
565 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
566
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
567 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
568 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
569
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
570 *-*-*) configuration="$arg" ;;
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
571
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
572 *) (echo "$progname: Usage error:"
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
573 echo " " "Unrecognized argument: $arg"
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
574 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
575
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
576 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
577 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
578
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
579
203
850242ba4a81 Import from CVS: tag r20-3b28
cvs
parents: 201
diff changeset
580
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
581 eval set x "$quoted_arguments"; shift
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
582
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
583 test "$extra_verbose" = "yes" && verbose=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
584
187
b405438285a2 Import from CVS: tag r20-3b20
cvs
parents: 185
diff changeset
585 case "$site_includes" in *:* ) site_includes="`echo '' $site_includes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
b405438285a2 Import from CVS: tag r20-3b20
cvs
parents: 185
diff changeset
586 case "$site_libraries" in *:* ) site_libraries="`echo '' $site_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
209
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents: 207
diff changeset
587 case "$site_prefixes" in *:* ) site_prefixes="`echo '' $site_prefixes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
187
b405438285a2 Import from CVS: tag r20-3b20
cvs
parents: 185
diff changeset
588 case "$site_runtime_libraries" in *:* ) site_runtime_libraries="`echo '' $site_runtime_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
589
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
590 test -n "$with_x" && with_x11="$with_x"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
591
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
592 if test "$run_in_place" = "yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
593 echo "configure: warning: "The --run-in-place option is ignored because it is unnecessary."" 1>&2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
594 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
595
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
596 case "$srcdir" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
597
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
598 "" )
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
599 for dir in "`echo $0 | sed 's|//|/|' | sed 's|/[^/]*$||'`" "." ".." ; do
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
600 if test -f "$dir/src/lisp.h" -a \
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
601 -f "$dir/lisp/version.el" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
602 srcdir="$dir"
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
603 break
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
604 fi
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
605 done
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
606 if test -z "$srcdir" ; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
607 (echo "$progname: Usage error:"
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
608 echo " " "Neither the current directory nor its parent seem to
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
609 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
610 source tree, you should run \`$progname' in the directory in which
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
611 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
612 sources may be found."
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
613 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
614 fi
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
615 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
616
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
617 * )
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
618 if test ! -f "$srcdir/src/lisp.h" -o \
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
619 ! -f "$srcdir/lisp/version.el" ; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
620 (echo "$progname: Usage error:"
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
621 echo " " "The directory specified with the \`--srcdir' option,
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
622 \`$srcdir', doesn't seem to contain the XEmacs sources. You should
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
623 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
624 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
625 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
626 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
627 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
628 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
629
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
630 if test -z "$configuration"; then
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
631 echo $ac_n "checking "host system type"""... $ac_c" 1>&6
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
632 echo "configure:633: checking "host system type"" >&5
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
633 if configuration=`${CONFIG_SHELL-/bin/sh} $srcdir/config.guess | \
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
634 sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'` ; then
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
635 echo "$ac_t""$configuration" 1>&6
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
636 else
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
637 echo "$ac_t""unknown" 1>&6
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
638 (echo "$progname: Usage error:"
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
639 echo " " "XEmacs has not been ported to this host type.
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
640 Try explicitly specifying the CONFIGURATION when rerunning configure."
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
641 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
642 fi
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
643 fi
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
644
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
645 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
646 echo "configure:647: checking whether ln -s works" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
647
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
648 rm -f conftestdata
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
649 if ln -s X conftestdata 2>/dev/null
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
650 then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
651 rm -f conftestdata
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
652 ac_cv_prog_LN_S="ln -s"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
653 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
654 ac_cv_prog_LN_S=ln
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
655 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
656 LN_S="$ac_cv_prog_LN_S"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
657 if test "$ac_cv_prog_LN_S" = "ln -s"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
658 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
659 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
660 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
661 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
662
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
663
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
664 for dir in lisp etc man info; do
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
665 if test ! -d "$dir" ; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
666 echo Making symbolic link to "$srcdir/$dir"
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
667 ${LN_S} "$srcdir/$dir" "$dir"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
668 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
669 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
670
181
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
671 absolute_pwd="`pwd`";
187
b405438285a2 Import from CVS: tag r20-3b20
cvs
parents: 185
diff changeset
672 if test -n "$PWD" -a "`cd $PWD && pwd`" = "$absolute_pwd"
181
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
673 then blddir="$PWD"
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
674 else blddir="$absolute_pwd"
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
675 fi
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
676
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
677
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
678 case "$srcdir" in
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
679 /* ) ;;
181
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
680 . ) srcdir="$blddir" ;;
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
681 * ) srcdir="`cd $srcdir && pwd`" ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
682 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
683
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
684 if test `pwd` != `sh -c cd $srcdir && pwd` \
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
685 && test -f "$srcdir/src/config.h"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
686 (echo "$progname: WARNING: The directory tree \`$srcdir' is being used"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
687 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
688 echo " right. To configure in another directory as well, you MUST"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
689 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
690 echo " now do \`make distclean' in $srcdir,"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
691 echo " and then run $progname again.") >&2
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
692 extrasub='/^VPATH[ ]*=/c\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
693 vpath %.c $(srcdir)\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
694 vpath %.h $(srcdir)\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
695 vpath %.y $(srcdir)\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
696 vpath %.l $(srcdir)\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
697 vpath %.s $(srcdir)\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
698 vpath %.in $(srcdir)'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
699 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
700
171
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
701 . "$srcdir/version.sh" || exit 1;
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
702 if test -n "$emacs_beta_version"; then beta=yes; else beta=no; fi
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
703 : "${extra_verbose=$beta}"
171
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
704 version="${emacs_major_version}.${emacs_minor_version}"
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
705 { test "$extra_verbose" = "yes" && cat << EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
706 Defining EMACS_MAJOR_VERSION = $emacs_major_version
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
707 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
708 cat >> confdefs.h <<EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
709 #define EMACS_MAJOR_VERSION $emacs_major_version
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
710 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
711 }
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
712
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
713 { test "$extra_verbose" = "yes" && cat << EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
714 Defining EMACS_MINOR_VERSION = $emacs_minor_version
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
715 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
716 cat >> confdefs.h <<EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
717 #define EMACS_MINOR_VERSION $emacs_minor_version
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
718 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
719 }
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
720
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
721 if test -n "$emacs_beta_version"; then
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
722 version="${version}-b${emacs_beta_version}"
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
723 { test "$extra_verbose" = "yes" && cat << EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
724 Defining EMACS_BETA_VERSION = $emacs_beta_version
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
725 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
726 cat >> confdefs.h <<EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
727 #define EMACS_BETA_VERSION $emacs_beta_version
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
728 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
729 }
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
730
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
731 fi
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
732 { test "$extra_verbose" = "yes" && cat << EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
733 Defining XEMACS_CODENAME = "$xemacs_codename"
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
734 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
735 cat >> confdefs.h <<EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
736 #define XEMACS_CODENAME "$xemacs_codename"
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
737 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
738 }
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
739
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
740 { test "$extra_verbose" = "yes" && cat << EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
741 Defining EMACS_VERSION = "$version"
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
742 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
743 cat >> confdefs.h <<EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
744 #define EMACS_VERSION "$version"
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
745 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
746 }
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
747
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
748
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
749 if test -n "$emacs_beta_version"; then beta=yes; else beta=no; fi
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
750 test "${error_check_extents=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
751 Defining ERROR_CHECK_EXTENTS
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
752 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
753 cat >> confdefs.h <<\EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
754 #define ERROR_CHECK_EXTENTS 1
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
755 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
756 }
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
757
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
758 test "${error_check_typecheck=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
759 Defining ERROR_CHECK_TYPECHECK
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
760 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
761 cat >> confdefs.h <<\EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
762 #define ERROR_CHECK_TYPECHECK 1
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
763 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
764 }
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
765
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
766 test "${error_check_bufpos=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
767 Defining ERROR_CHECK_BUFPOS
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
768 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
769 cat >> confdefs.h <<\EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
770 #define ERROR_CHECK_BUFPOS 1
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
771 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
772 }
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
773
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
774 test "${error_check_gc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
775 Defining ERROR_CHECK_GC
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
776 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
777 cat >> confdefs.h <<\EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
778 #define ERROR_CHECK_GC 1
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
779 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
780 }
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
781
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
782 test "${error_check_malloc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
783 Defining ERROR_CHECK_MALLOC
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
784 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
785 cat >> confdefs.h <<\EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
786 #define ERROR_CHECK_MALLOC 1
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
787 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
788 }
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
789
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
790 if test "${debug=beta}" = "yes"; then
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
791 use_assertions=yes memory_usage_stats=yes
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
792 extra_objs="$extra_objs debug.o" && if test "$extra_verbose" = "yes"; then
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
793 echo " xemacs will be linked with \"debug.o\""
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
794 fi
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
795 { test "$extra_verbose" = "yes" && cat << \EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
796 Defining DEBUG_XEMACS
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
797 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
798 cat >> confdefs.h <<\EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
799 #define DEBUG_XEMACS 1
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
800 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
801 }
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
802
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
803 fi
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
804 test "$use_assertions" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
805 Defining USE_ASSERTIONS
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
806 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
807 cat >> confdefs.h <<\EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
808 #define USE_ASSERTIONS 1
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
809 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
810 }
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
811
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
812 test "$memory_usage_stats" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
813 Defining MEMORY_USAGE_STATS
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
814 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
815 cat >> confdefs.h <<\EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
816 #define MEMORY_USAGE_STATS 1
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
817 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
818 }
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
819
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
820
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
821
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
822 echo "checking "the configuration name"" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
823 echo "configure:824: checking "the configuration name"" >&5
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
824 internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'`
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
825 if canonical=`$srcdir/config.sub "$internal_configuration"` ; then : ; else
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
826 exit $?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
827 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
828
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
829
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
830
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
831
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
832
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
833 machine='' opsys=''
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
834
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
835 case "$canonical" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
836 sparc-*-* ) machine=sparc ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
837 alpha-*-* ) machine=alpha ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
838 vax-*-* ) machine=vax ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
839 mips-dec-* ) machine=pmax ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
840 mips-sgi-* ) machine=iris4d ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
841 romp-ibm-* ) machine=ibmrt ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
842 rs6000-ibm-aix* ) machine=ibmrs6000 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
843 powerpc-ibm-aix* ) machine=ibmrs6000 ;;
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
844 powerpc*-* ) machine=powerpc ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
845 hppa-*-* ) machine=hp800 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
846 m88k-dg-* ) machine=aviion ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
847 m68*-sony-* ) machine=news ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
848 mips-sony-* ) machine=news-risc ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
849 clipper-* ) machine=clipper ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
850 esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
851
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
852 case "$canonical" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
853 *-*-linux* ) opsys=linux ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
854 *-*-netbsd* ) opsys=netbsd ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
855 *-*-nextstep* ) opsys=nextstep ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
856 *-*-vms ) opsys=vms ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
857
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
858 *-dec-osf1.3 | *-dec-osf2* ) opsys=decosf1-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
859 *-dec-osf1.2 | *-dec-osf1* ) opsys=decosf1-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
860 *-dec-osf3.[2-9] ) opsys=decosf3-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
861 *-dec-osf3* ) opsys=decosf3-1 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
862 *-dec-osf4* ) opsys=decosf4-0 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
863
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
864 *-*-ultrix[0-3].* | *-*-ultrix4.0* ) opsys=bsd4-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
865 *-*-ultrix4.[12]* ) opsys=bsd4-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
866 *-*-ultrix* ) opsys=ultrix4-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
867
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
868 *-*-aix3.1* ) opsys=aix3-1 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
869 *-*-aix3.2.5 ) opsys=aix3-2-5 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
870 *-*-aix3* ) opsys=aix3-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
871 *-*-aix4.2* ) opsys=aix4-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
872 *-*-aix4.1* ) opsys=aix4-1 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
873 *-*-aix4* ) opsys=aix4 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
874
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
875 *-gnu* ) opsys=gnu ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
876 *-*-bsd4.[01] ) opsys=bsd4-1 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
877 *-*-bsd4.2 ) opsys=bsd4-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
878 *-*-bsd4.3 ) opsys=bsd4-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
879 *-*-aos4.2 ) opsys=bsd4-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
880 *-*-aos* ) opsys=bsd4-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
881 *-*-sysv0 | *-*-sysvr0 ) opsys=usg5-0 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
882 *-*-sysv2 | *-*-sysvr2 ) opsys=usg5-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
883 *-*-sysv2.2 | *-*-sysvr2.2 ) opsys=usg5-2-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
884 *-*-sysv3* | *-*-sysvr3* ) opsys=usg5-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
885 *-*-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
886 *-*-sysv4.[2-9]* | *-sysvr4.[2-9]* )
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
887 if test -z "$NON_GNU_CPP" ; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
888 for prog in "/usr/ccs/lib/cpp" "/lib/cpp"; do
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
889 if test -f "$prog"; then NON_GNU_CPP="$prog"; break; fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
890 done
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
891 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
892 opsys=usg5-4-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
893 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
894 *-*-mach_bsd4.3* ) opsys=mach-bsd4-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
895 esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
896
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
897 case "$canonical" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
898
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
899 *-*-netbsd* )
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
900 case "$canonical" in
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
901 i[3-9]86-*-netbsd*) machine=intel386 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
902 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
903 machine=hp9000s300 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
904 pc532-*-netbsd* | ns32k-*-netbsd* ) machine=ns32000 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
905 pmax-*-netbsd* | mips-*-netbsd* ) machine=pmax ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
906 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
907 ;;
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 arm-acorn-riscix1.1* ) machine=acorn opsys=riscix1-1 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
910 arm-acorn-riscix1.2* | arm-acorn-riscix ) machine=acorn opsys=riscix1-2 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
911
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
912 fx80-alliant-* ) machine=alliant4 opsys=bsd4-2 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
913 i860-alliant-* ) machine=alliant-2800 opsys=bsd4-3 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
914
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
915 m68*-altos-sysv* ) machine=altos opsys=usg5-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
916
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
917 580-amdahl-sysv* ) machine=amdahl opsys=usg5-2-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
918
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
919 m68*-apollo-* ) machine=apollo opsys=bsd4-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
920
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
921 we32k-att-sysv* ) machine=att3b opsys=usg5-2-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
922
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
923 m68*-att-sysv* ) machine=7300 opsys=usg5-2-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
924
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
925 rs6000-bull-bosx* ) machine=ibmrs6000 opsys=aix3-2 ;; # dpx20
74
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
926 m68*-bull-sysv3* ) machine=dpx2 opsys=usg5-3 ;; # dpx2
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
927 m68*-bull-sysv2* ) machine=sps7 opsys=usg5-2 ;; # sps7
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
928
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
929
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
930 celerity-celerity-bsd* ) machine=celerity opsys=bsd4-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
931
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
932 *-convex-bsd* | *-convex-convexos* )
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
933 machine=convex opsys=bsd4-3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
934 NON_GNU_CPP="cc -E -P"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
935 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
936
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
937 i[3-9]86-cubix-sysv* ) machine=intel386 opsys=usg5-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
938
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
939 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
940 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) opsys=dgux5-4r3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
941 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) opsys=dgux5-4r2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
942 m88k-dg-dgux* ) opsys=dgux ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
943
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
944 m68k-motorola-sysv* | m68000-motorola-sysv* ) machine=delta opsys=usg5-3 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
945 m88k-motorola-sysv4* )
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
946 machine=delta88k opsys=usg5-4-2
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
947 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
948 m88k-motorola-sysv* | m88k-motorola-m88kbcs* ) machine=delta88k opsys=usg5-3 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
949
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
950 m68*-dual-sysv* ) machine=dual opsys=usg5-2 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
951 m68*-dual-uniplus* ) machine=dual opsys=unipl5-2 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
952
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
953 ns16k-encore-bsd* ) machine=ns16000 opsys=umax ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
954
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
955 pn-gould-bsd4.2* ) machine=gould opsys=bsd4-2 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
956 pn-gould-bsd4.3* ) machine=gould opsys=bsd4-3 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
957 np1-gould-bsd* ) machine=gould-np1 opsys=bsd4-3 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
958
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
959 m88k-harris-cxux* )
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
960 case "`uname -r`" in
74
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
961 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
962 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
963 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
964 NON_GNU_CPP="/lib/cpp"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
965 ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
966 m68k-harris-cxux* ) machine=nh3000 opsys=cxux ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
967 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
968
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
969 xps*-honeywell-sysv* ) machine=xps100 opsys=usg5-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
970
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
971 m68*-hp-bsd* ) machine=hp9000s300 opsys=bsd4-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
972
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
973 *-hp-hpux* )
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
974 case "$canonical" in
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
975 m68* ) machine=hp9000s300 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
976 hppa* ) machine=hp800 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
977 esac
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
978
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
979 case "$canonical" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
980 *-hp-hpux7* ) opsys=hpux ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
981 *-hp-hpux8* ) opsys=hpux8 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
982 *-hp-hpux9* ) opsys=hpux9 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
983 *-hp-hpux10* ) opsys=hpux10 ;;
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
984 * ) opsys=hpux ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
985 esac
72
b9518feda344 Import from CVS: tag r20-0b31
cvs
parents: 70
diff changeset
986
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
987 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
988 echo " xemacs will be linked with \"strcat.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
989 fi ;; esac
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
990
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
991 if test "$opsys" = "hpux10"; then ansi_flag="-Ae"; else ansi_flag="-Aa"; fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
992 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
993
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
994 case "$canonical" in *-hp-hpux*shr* ) opsys="${opsys}-shr" ;; esac
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
995 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
996
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
997 orion-orion-bsd* ) machine=orion opsys=bsd4-2 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
998 clipper-orion-bsd* ) machine=orion105 opsys=bsd4-2 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
999
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1000 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
1001 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
1002 i370-ibm-aix*) machine=ibm370aix opsys=usg5-3 ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1003 romp-ibm-aos* ) opsys=bsd4-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1004 romp-ibm-bsd* ) opsys=bsd4-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1005 romp-ibm-mach* ) opsys=mach-bsd4-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1006
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1007 m68*-isi-bsd4.2* ) machine=isi-ov opsys=bsd4-2 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1008 m68*-isi-bsd4.3* ) machine=isi-ov opsys=bsd4-3 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1009
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1010 i[3-9]86-intsys-sysv* ) machine=is386 opsys=usg5-2-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1011
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1012 i[3-9]86-prime-sysv* ) machine=i386 opsys=usg5-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1013
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1014 i[3-9]86-sequent-bsd* ) machine=symmetry opsys=bsd4-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1015
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1016 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
1017
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1018 i[3-9]86-ncr-sysv* ) machine=ncr386 opsys=usg5-4-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1019
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1020 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
1021
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1022 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
1023
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1024 m68*-masscomp-rtu* ) machine=masscomp opsys=rtu ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1025
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1026 m68*-megatest-bsd* ) machine=mega68 opsys=bsd4-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1027
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1028 mips-mips-usg* ) machine=mips4 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1029 mips-mips-riscos4 )
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1030 machine=mips4
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1031 NON_GNU_CC="cc -systype bsd43"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1032 NON_GNU_CPP="cc -systype bsd43 -E"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1033 case "$canonical" in
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1034 mips-mips-riscos4* ) opsys=bsd4-3 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1035 mips-mips-riscos5* ) opsys=riscos5 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1036 esac
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1037 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1038 mips-mips-bsd* ) machine=mips opsys=bsd4-3 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1039 mips-mips-* ) machine=mips opsys=usg5-2-2 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1040
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1041 m68*-next-* | m68k-*-nextstep* ) machine=m68k opsys=nextstep ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1042
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1043 ns32k-ns-genix* ) machine=ns32000 opsys=usg5-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1044
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1045 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
1046 m68*-ncr-sysv3* | m68*-ncr-sysvr3* ) machine=tower32v3 opsys=usg5-3 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1047
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1048 m68*-nixdorf-sysv* ) machine=targon31 opsys=usg5-2-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1049
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1050 m68*-nu-sysv* ) machine=nu opsys=usg5-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1051
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1052 m68*-plexus-sysv* ) machine=plexus opsys=usg5-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1053
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1054 pyramid-pyramid-bsd* ) machine=pyramid opsys=bsd4-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1055
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1056 ns32k-sequent-bsd4.2* ) machine=sequent opsys=bsd4-2 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1057 ns32k-sequent-bsd4.3* ) machine=sequent opsys=bsd4-3 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1058
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1059 mips-siemens-sysv* | mips-sni-sysv*)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1060 machine=mips-siemens opsys=usg5-4
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1061 NON_GNU_CC=/usr/ccs/bin/cc
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1062 NON_GNU_CPP=/usr/ccs/lib/cpp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1063 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1064
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1065 m68*-sgi-iris3.5* ) machine=irist opsys=iris3-5 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1066 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
1067 mips-sgi-irix3.* ) opsys=irix3-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1068 mips-sgi-irix4.* ) opsys=irix4-0 ;;
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
1069 mips-sgi-irix6* ) opsys=irix6-0 ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1070 mips-sgi-irix5.1* ) opsys=irix5-1 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1071 mips-sgi-irix5.2* ) opsys=irix5-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1072 mips-sgi-irix5.* ) opsys=irix5-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1073 mips-sgi-irix* ) opsys=irix5-0 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1074
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1075 *-sony-newsos[34]* | *-sony-news[34]* ) opsys=bsd4-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1076 *-sony-news* ) opsys=newsos5 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1077
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1078 m68*-stride-sysv* ) machine=stride opsys=usg5-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1079
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1080 *-*-solaris* | *-*-sunos* | *-sun-mach* | *-sun-bsd* )
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1081 case "$canonical" in
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1082 m68*-sunos1* ) machine=sun1 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1083 m68*-sunos2* ) machine=sun2 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1084 m68* ) machine=sun3 ;;
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1085 i*86*-sun-sunos[34]* ) machine=sun386 ;;
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1086 i*86-*-* ) machine=intel386 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1087 rs6000* ) machine=rs6000 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1088 esac
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1089
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1090 case "$canonical" in *-sunos5*)
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1091 canonical=`echo $canonical | sed -e s/sunos5/solaris2/`;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1092 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1093
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1094 case "$canonical" in
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1095 *-sunos4* )
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1096 #test -f /usr/lib/cpp && NON_GNU_CPP=/usr/lib/cpp ;;
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1097 : ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1098 *-solaris2* )
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1099 #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
1100 RANLIB=':' ;;
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1101 esac
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1102
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1103 case "$canonical" in
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1104 *-solaris* )
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1105 opsys=sol2
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1106 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
1107 { test "$extra_verbose" = "yes" && cat << EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1108 Defining OS_RELEASE = $os_release
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1109 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1110 cat >> confdefs.h <<EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1111 #define OS_RELEASE $os_release
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1112 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1113 }
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1114 ;;
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1115
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1116 i*86-*-sunos4* ) opsys=sunos4-0 ;;
74
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
1117 *-sunos4.0* ) opsys=sunos4-0 ;;
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
1118 *-sunos4.1.2* ) opsys=sunos4-1-2 ;;
110
fe104dbd9147 Import from CVS: tag r20-1b7
cvs
parents: 108
diff changeset
1119 *-sunos4.1.3* ) opsys=sunos4-1-3 ;;
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
1120 *-sunos4.1.[4-9]* ) opsys=sunos4-1-4 ;;
74
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
1121 *-sunos4* | *-sunos ) opsys=sunos4-1 ;;
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
1122 *-mach* ) opsys=mach-bsd4-3 ;;
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
1123 * ) opsys=bsd4-2 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1124 esac
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1125
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1126 case "$canonical" in *-sunos4*shr* ) opsys="${opsys}-shr" ;; esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1127
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1128 test "$opsys $CC" = "sol2 /usr/ucb/cc" && CC=""
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1129 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1130
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1131 m68*-tadpole-sysv* ) machine=tad68k opsys=usg5-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1132
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1133 tahoe-tahoe-bsd4.2* ) machine=tahoe opsys=bsd4-2 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1134 tahoe-tahoe-bsd4.3* ) machine=tahoe opsys=bsd4-3 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1135
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1136 mips-tandem-sysv* ) machine=tandem-s2 opsys=usg5-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1137
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1138 m88k-tektronix-sysv3* ) machine=tekxd88 opsys=usg5-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1139
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1140 ns16k-tektronix-bsd* ) machine=ns16000 opsys=bsd4-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1141 m68*-tektronix-bsd* ) machine=tek4300 opsys=bsd4-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1142
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1143 titan-titan-sysv* ) machine=titan opsys=usg5-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1144
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1145 m68*-unisys-uniplus* ) machine=ustation opsystem=unipl5-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1146
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1147 vax-dec-* )
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1148 case "$canonical" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1149 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1150 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1151 *-mach* ) opsys=mach-bsd4-3 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1152 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1153 ;;
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 ns16k-whitechapel-* ) machine=mg1 ;;
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 m68*-wicat-sysv* ) machine=wicat opsys=usg5-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1158
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1159 i[3-9]86-*-* )
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1160 machine=intel386
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1161 case "$canonical" in
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
1162 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1163 *-isc2.2* ) opsys=isc2-2 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1164 *-isc4.0* ) opsys=isc4-0 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1165 *-isc4.* ) opsys=isc4-1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1166 GCC_TEST_OPTIONS=-posix
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1167 NON_GCC_TEST_OPTIONS=-Xp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1168 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1169 *-isc* ) opsys=isc3-0 ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1170 *-esix5* ) opsys=esix5r4 NON_GNU_CPP=/usr/lib/cpp ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1171 *-esix* ) opsys=esix ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1172 *-mach* ) opsys=mach-bsd4-3 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1173 *-xenix* ) opsys=xenix ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1174 *-sco3.2v4* ) opsys=sco4 NON_GNU_CPP=/lib/cpp ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1175 *-bsd386* | *-bsdi1* ) opsys=bsd386 ;;
110
fe104dbd9147 Import from CVS: tag r20-1b7
cvs
parents: 108
diff changeset
1176 *-bsdi3* ) opsys=bsdos3 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1177 *-bsdi2.1* ) opsys=bsdos2-1 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1178 *-bsdi2* ) opsys=bsdos2 ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1179 *-sco3.2v5* ) opsys=sco5 ;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1180 if test "$dynamic" = "yes" ; then
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1181 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE -D_SCO_ELF" ;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1182 else
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1183 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE" ;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1184 fi ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1185 *-386bsd* ) opsys=386bsd ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1186 *-freebsd* ) opsys=freebsd ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1187 *-nextstep* ) opsys=nextstep ;;
231
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents: 227
diff changeset
1188 *-pc-cygwin32 ) opsys=cygwin32 ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1189 esac
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1190 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1191
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1192 m68k-*-linux* ) machine=m68k opsys=linux ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1193
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1194 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1195
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1196 if test -z "$machine" -o -z "$opsys"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1197 (echo "$progname: XEmacs hasn't been ported to \`$canonical' systems."
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1198 echo "$progname: Check \`etc/MACHINES' for recognized configuration names."
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1199 ) >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1200 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1201 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1202
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1203 if test -z "$dynamic"; then
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1204 case "$opsys" in
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1205 hpux* | sunos4* | sco5 ) dynamic=no ;;
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1206 *) dynamic=yes ;;
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1207 esac
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1208 fi
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1209 if test "$dynamic" = "yes"; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1210 case "$opsys" in
72
b9518feda344 Import from CVS: tag r20-0b31
cvs
parents: 70
diff changeset
1211 hpux* | sunos4* | sco5 ) opsys="${opsys}-shr" ;;
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1212 decosf* ) ld_call_shared="-call_shared" ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1213 esac
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1214 else case "$opsys" in
187
b405438285a2 Import from CVS: tag r20-3b20
cvs
parents: 185
diff changeset
1215 sol2 )
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1216 echo "Static linking is not supported on Solaris 2."
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1217 echo "Rerun configure without specifying --dynamic=no."
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1218 exit 1 ;;
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1219 linux ) ld_call_shared="-Bstatic" ;;
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1220 decosf* ) ld_call_shared="-non_shared" ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1221 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1222 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1223
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
1224 case "$opsys" in aix*) NON_GNU_CC=xlc ;; esac
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
1225
177
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
1226 stack_trace_eye_catcher=`echo xemacs_${version}_${canonical} | sed 'y/.-/__/'`
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1227 { test "$extra_verbose" = "yes" && cat << EOF
177
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
1228 Defining STACK_TRACE_EYE_CATCHER = $stack_trace_eye_catcher
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1229 EOF
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1230 cat >> confdefs.h <<EOF
177
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
1231 #define STACK_TRACE_EYE_CATCHER $stack_trace_eye_catcher
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1232 EOF
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1233 }
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1234
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1235
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1236 machfile="m/${machine}.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1237 opsysfile="s/${opsys}.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1238
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1239
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1240 test "$with_sparcworks" = "yes" && with_workshop=yes # compatibility alias
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1241 if test "$with_workshop" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1242 { test "$extra_verbose" = "yes" && cat << \EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1243 Defining SUNPRO
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1244 EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1245 cat >> confdefs.h <<\EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1246 #define SUNPRO 1
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1247 EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1248 }
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1249
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1250 extra_objs="$extra_objs sunpro.o" && if test "$extra_verbose" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1251 echo " xemacs will be linked with \"sunpro.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1252 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1253 with_tooltalk=yes
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1254 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1255
175
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
1256 if test "$with_clash_detection" = "yes"; then
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
1257 { test "$extra_verbose" = "yes" && cat << \EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
1258 Defining CLASH_DETECTION
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
1259 EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
1260 cat >> confdefs.h <<\EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
1261 #define CLASH_DETECTION 1
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
1262 EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
1263 }
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
1264
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
1265 extra_objs="$extra_objs filelock.o" && if test "$extra_verbose" = "yes"; then
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
1266 echo " xemacs will be linked with \"filelock.o\""
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
1267 fi
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
1268 fi
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
1269
169
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
1270 test -n "$compiler" && CC="$compiler"
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
1271 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
1272 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1273
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1274 test "$cflags" != "UNSPECIFIED" && CFLAGS="$cflags"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1275 xe_save_CFLAGS="$CFLAGS"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1276
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1277 # 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
1278 set dummy gcc; ac_word=$2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1279 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
1280 echo "configure:1281: checking for $ac_word" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1281
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1282 if test -n "$CC"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1283 ac_cv_prog_CC="$CC" # Let the user override the test.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1284 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1285 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1286 for ac_dir in $PATH; do
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1287 test -z "$ac_dir" && ac_dir=.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1288 if test -f $ac_dir/$ac_word; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1289 ac_cv_prog_CC="gcc"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1290 break
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1291 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1292 done
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1293 IFS="$ac_save_ifs"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1294 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1295 CC="$ac_cv_prog_CC"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1296 if test -n "$CC"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1297 echo "$ac_t""$CC" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1298 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1299 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1300 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1301
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1302 if test -z "$CC"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1303 # 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
1304 set dummy cc; ac_word=$2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1305 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
1306 echo "configure:1307: checking for $ac_word" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1307
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1308 if test -n "$CC"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1309 ac_cv_prog_CC="$CC" # Let the user override the test.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1310 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1311 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1312 ac_prog_rejected=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1313 for ac_dir in $PATH; do
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1314 test -z "$ac_dir" && ac_dir=.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1315 if test -f $ac_dir/$ac_word; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1316 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1317 ac_prog_rejected=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1318 continue
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1319 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1320 ac_cv_prog_CC="cc"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1321 break
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1322 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1323 done
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1324 IFS="$ac_save_ifs"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1325 if test $ac_prog_rejected = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1326 # 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
1327 set dummy $ac_cv_prog_CC
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1328 shift
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1329 if test $# -gt 0; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1330 # We chose a different compiler from the bogus one.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1331 # However, it has the same basename, so the bogon will be chosen
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1332 # 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
1333 shift
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1334 set dummy "$ac_dir/$ac_word" "$@"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1335 shift
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1336 ac_cv_prog_CC="$@"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1337 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1338 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1339 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1340 CC="$ac_cv_prog_CC"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1341 if test -n "$CC"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1342 echo "$ac_t""$CC" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1343 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1344 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1345 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1346
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1347 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
1348 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1349
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1350 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
1351 echo "configure:1352: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1352
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1353 ac_ext=c
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1354 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
1355 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1356 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1357 ac_cpp='$CPP '"$xe_cppflags"
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1358 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
1359 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
1360 cross_compiling=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1361
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1362 cat > conftest.$ac_ext <<EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
1363 #line 1364 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1364 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1365 main(){return(0);}
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1366 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
1367 if { (eval echo configure:1368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1368 ac_cv_prog_cc_works=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1369 # 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
1370 if (./conftest; exit) 2>/dev/null; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1371 ac_cv_prog_cc_cross=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1372 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1373 ac_cv_prog_cc_cross=yes
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1374 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1375 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1376 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1377 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1378 ac_cv_prog_cc_works=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1379 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1380 rm -fr conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1381
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1382 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1383 if test $ac_cv_prog_cc_works = no; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1384 { 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
1385 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1386 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
1387 echo "configure:1388: 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
1388 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1389 cross_compiling=$ac_cv_prog_cc_cross
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1390
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1391 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
1392 echo "configure:1393: checking whether we are using GNU C" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1393
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1394 cat > conftest.c <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1395 #ifdef __GNUC__
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1396 yes;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1397 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1398 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
1399 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1400: \"$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
1400 ac_cv_prog_gcc=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1401 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1402 ac_cv_prog_gcc=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1403 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1404
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1405 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1406
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1407 if test $ac_cv_prog_gcc = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1408 GCC=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1409 ac_test_CFLAGS="${CFLAGS+set}"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1410 ac_save_CFLAGS="$CFLAGS"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1411 CFLAGS=
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1412 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
1413 echo "configure:1414: checking whether ${CC-cc} accepts -g" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1414
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1415 echo 'void f(){}' > conftest.c
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1416 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1417 ac_cv_prog_cc_g=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1418 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1419 ac_cv_prog_cc_g=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1420 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1421 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1422
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1423
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1424 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1425 if test "$ac_test_CFLAGS" = set; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1426 CFLAGS="$ac_save_CFLAGS"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1427 elif test $ac_cv_prog_cc_g = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1428 CFLAGS="-g -O2"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1429 else
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1430 CFLAGS="-O2"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1431 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1432 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1433 GCC=
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1434 test "${CFLAGS+set}" = set || CFLAGS="-g"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1435 fi
169
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
1436
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
1437 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1438 CC=${NON_GNU_CC-cc}
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1439 # 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
1440 set dummy gcc; ac_word=$2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1441 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
1442 echo "configure:1443: checking for $ac_word" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1443
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1444 if test -n "$CC"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1445 ac_cv_prog_CC="$CC" # Let the user override the test.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1446 else
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1447 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1448 for ac_dir in $PATH; do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1449 test -z "$ac_dir" && ac_dir=.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1450 if test -f $ac_dir/$ac_word; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1451 ac_cv_prog_CC="gcc"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1452 break
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1453 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1454 done
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1455 IFS="$ac_save_ifs"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1456 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1457 CC="$ac_cv_prog_CC"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1458 if test -n "$CC"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1459 echo "$ac_t""$CC" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1460 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1461 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1462 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1463
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1464 if test -z "$CC"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1465 # 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
1466 set dummy cc; ac_word=$2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1467 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
1468 echo "configure:1469: checking for $ac_word" >&5
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1469
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1470 if test -n "$CC"; then
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1471 ac_cv_prog_CC="$CC" # Let the user override the test.
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1472 else
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1473 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1474 ac_prog_rejected=no
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1475 for ac_dir in $PATH; do
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1476 test -z "$ac_dir" && ac_dir=.
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1477 if test -f $ac_dir/$ac_word; then
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1478 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1479 ac_prog_rejected=yes
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1480 continue
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1481 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1482 ac_cv_prog_CC="cc"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1483 break
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1484 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1485 done
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1486 IFS="$ac_save_ifs"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1487 if test $ac_prog_rejected = yes; then
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1488 # 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
1489 set dummy $ac_cv_prog_CC
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1490 shift
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1491 if test $# -gt 0; then
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1492 # We chose a different compiler from the bogus one.
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1493 # However, it has the same basename, so the bogon will be chosen
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1494 # 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
1495 shift
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1496 set dummy "$ac_dir/$ac_word" "$@"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1497 shift
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1498 ac_cv_prog_CC="$@"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1499 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1500 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1501 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1502 CC="$ac_cv_prog_CC"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1503 if test -n "$CC"; then
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1504 echo "$ac_t""$CC" 1>&6
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1505 else
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1506 echo "$ac_t""no" 1>&6
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1507 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1508
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1509 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
1510 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1511
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1512 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
1513 echo "configure:1514: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1514
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1515 ac_ext=c
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1516 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
1517 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1518 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1519 ac_cpp='$CPP '"$xe_cppflags"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1520 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
1521 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
1522 cross_compiling=no
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1523
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1524 cat > conftest.$ac_ext <<EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
1525 #line 1526 "configure"
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1526 #include "confdefs.h"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1527 main(){return(0);}
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1528 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
1529 if { (eval echo configure:1530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1530 ac_cv_prog_cc_works=yes
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1531 # 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
1532 if (./conftest; exit) 2>/dev/null; then
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1533 ac_cv_prog_cc_cross=no
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1534 else
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1535 ac_cv_prog_cc_cross=yes
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1536 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1537 else
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1538 echo "configure: failed program was:" >&5
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1539 cat conftest.$ac_ext >&5
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1540 ac_cv_prog_cc_works=no
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1541 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1542 rm -fr conftest*
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1543
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1544 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1545 if test $ac_cv_prog_cc_works = no; then
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1546 { 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
1547 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1548 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
1549 echo "configure:1550: 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
1550 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1551 cross_compiling=$ac_cv_prog_cc_cross
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1552
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1553 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
1554 echo "configure:1555: checking whether we are using GNU C" >&5
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1555
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1556 cat > conftest.c <<EOF
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1557 #ifdef __GNUC__
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1558 yes;
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1559 #endif
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1560 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
1561 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1562: \"$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
1562 ac_cv_prog_gcc=yes
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1563 else
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1564 ac_cv_prog_gcc=no
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1565 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1566
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1567 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1568
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1569 if test $ac_cv_prog_gcc = yes; then
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1570 GCC=yes
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1571 ac_test_CFLAGS="${CFLAGS+set}"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1572 ac_save_CFLAGS="$CFLAGS"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1573 CFLAGS=
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1574 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
1575 echo "configure:1576: checking whether ${CC-cc} accepts -g" >&5
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1576
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1577 echo 'void f(){}' > conftest.c
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1578 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1579 ac_cv_prog_cc_g=yes
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1580 else
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1581 ac_cv_prog_cc_g=no
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1582 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1583 rm -f conftest*
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1584
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1585
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1586 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1587 if test "$ac_test_CFLAGS" = set; then
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1588 CFLAGS="$ac_save_CFLAGS"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1589 elif test $ac_cv_prog_cc_g = yes; then
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1590 CFLAGS="-g -O2"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1591 else
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1592 CFLAGS="-O2"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1593 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1594 else
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1595 GCC=
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1596 test "${CFLAGS+set}" = set || CFLAGS="-g"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1597 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1598
169
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
1599 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1600 CC=gcc
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1601 # 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
1602 set dummy gcc; ac_word=$2
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1603 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
1604 echo "configure:1605: checking for $ac_word" >&5
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1605
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1606 if test -n "$CC"; then
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1607 ac_cv_prog_CC="$CC" # Let the user override the test.
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1608 else
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1609 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1610 for ac_dir in $PATH; do
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1611 test -z "$ac_dir" && ac_dir=.
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1612 if test -f $ac_dir/$ac_word; then
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1613 ac_cv_prog_CC="gcc"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1614 break
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1615 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1616 done
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1617 IFS="$ac_save_ifs"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1618 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1619 CC="$ac_cv_prog_CC"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1620 if test -n "$CC"; then
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1621 echo "$ac_t""$CC" 1>&6
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1622 else
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1623 echo "$ac_t""no" 1>&6
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1624 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1625
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1626 if test -z "$CC"; then
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1627 # 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
1628 set dummy cc; ac_word=$2
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1629 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
1630 echo "configure:1631: checking for $ac_word" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1631
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1632 if test -n "$CC"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1633 ac_cv_prog_CC="$CC" # Let the user override the test.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1634 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1635 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1636 ac_prog_rejected=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1637 for ac_dir in $PATH; do
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1638 test -z "$ac_dir" && ac_dir=.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1639 if test -f $ac_dir/$ac_word; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1640 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1641 ac_prog_rejected=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1642 continue
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1643 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1644 ac_cv_prog_CC="cc"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1645 break
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1646 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1647 done
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1648 IFS="$ac_save_ifs"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1649 if test $ac_prog_rejected = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1650 # 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
1651 set dummy $ac_cv_prog_CC
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1652 shift
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1653 if test $# -gt 0; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1654 # We chose a different compiler from the bogus one.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1655 # However, it has the same basename, so the bogon will be chosen
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1656 # 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
1657 shift
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1658 set dummy "$ac_dir/$ac_word" "$@"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1659 shift
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1660 ac_cv_prog_CC="$@"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1661 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1662 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1663 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1664 CC="$ac_cv_prog_CC"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1665 if test -n "$CC"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1666 echo "$ac_t""$CC" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1667 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1668 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1669 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1670
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1671 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
1672 fi
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 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
1675 echo "configure:1676: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1676
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1677 ac_ext=c
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1678 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
1679 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1680 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1681 ac_cpp='$CPP '"$xe_cppflags"
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1682 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
1683 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
1684 cross_compiling=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1685
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1686 cat > conftest.$ac_ext <<EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
1687 #line 1688 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1688 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1689 main(){return(0);}
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1690 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
1691 if { (eval echo configure:1692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1692 ac_cv_prog_cc_works=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1693 # 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
1694 if (./conftest; exit) 2>/dev/null; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1695 ac_cv_prog_cc_cross=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1696 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1697 ac_cv_prog_cc_cross=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1698 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1699 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1700 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1701 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1702 ac_cv_prog_cc_works=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1703 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1704 rm -fr conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1705
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1706 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1707 if test $ac_cv_prog_cc_works = no; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1708 { 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
1709 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1710 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
1711 echo "configure:1712: 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
1712 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1713 cross_compiling=$ac_cv_prog_cc_cross
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1714
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1715 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
1716 echo "configure:1717: checking whether we are using GNU C" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1717
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1718 cat > conftest.c <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1719 #ifdef __GNUC__
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1720 yes;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1721 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1722 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
1723 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1724: \"$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
1724 ac_cv_prog_gcc=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1725 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1726 ac_cv_prog_gcc=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1727 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1728
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1729 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1730
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1731 if test $ac_cv_prog_gcc = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1732 GCC=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1733 ac_test_CFLAGS="${CFLAGS+set}"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1734 ac_save_CFLAGS="$CFLAGS"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1735 CFLAGS=
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1736 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
1737 echo "configure:1738: checking whether ${CC-cc} accepts -g" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1738
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1739 echo 'void f(){}' > conftest.c
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1740 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1741 ac_cv_prog_cc_g=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1742 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1743 ac_cv_prog_cc_g=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1744 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1745 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1746
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1747
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1748 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1749 if test "$ac_test_CFLAGS" = set; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1750 CFLAGS="$ac_save_CFLAGS"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1751 elif test $ac_cv_prog_cc_g = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1752 CFLAGS="-g -O2"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1753 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1754 CFLAGS="-O2"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1755 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1756 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1757 GCC=
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1758 test "${CFLAGS+set}" = set || CFLAGS="-g"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1759 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1760
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1761 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1762 CFLAGS="$xe_save_CFLAGS"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1763
171
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1764
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1765 test -n "$CPP" -a -d "$CPP" && CPP=
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1766
169
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
1767 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
1768
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1769 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
1770 echo "configure:1771: checking how to run the C preprocessor" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1771 # On Suns, sometimes $CPP names a directory.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1772 if test -n "$CPP" && test -d "$CPP"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1773 CPP=
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1774 fi
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1775 if test -z "$CPP"; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1776
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1777 # 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
1778 # substituted into the Makefile and "${CC-cc}" will confuse make.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1779 CPP="${CC-cc} -E"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1780 # 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
1781 # not just through cpp.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1782 cat > conftest.$ac_ext <<EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
1783 #line 1784 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1784 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1785 #include <assert.h>
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1786 Syntax Error
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1787 EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1788 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
1789 { (eval echo configure:1790: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1790 ac_err=`grep -v '^ *+' conftest.out`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1791 if test -z "$ac_err"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1792 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1793 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1794 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1795 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1796 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1797 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1798 CPP="${CC-cc} -E -traditional-cpp"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1799 cat > conftest.$ac_ext <<EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
1800 #line 1801 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1801 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1802 #include <assert.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1803 Syntax Error
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1804 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1805 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
1806 { (eval echo configure:1807: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1807 ac_err=`grep -v '^ *+' conftest.out`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1808 if test -z "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1809 :
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1810 else
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1811 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1812 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1813 cat conftest.$ac_ext >&5
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1814 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1815 CPP=/lib/cpp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1816 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1817 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1818 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1819 rm -f conftest*
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1820 ac_cv_prog_CPP="$CPP"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1821 CPP="$ac_cv_prog_CPP"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1822 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1823 ac_cv_prog_CPP="$CPP"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1824 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1825 echo "$ac_t""$CPP" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1826
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1827
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1828 echo $ac_n "checking for AIX""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
1829 echo "configure:1830: checking for AIX" >&5
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
1830 cat > conftest.$ac_ext <<EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
1831 #line 1832 "configure"
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1832 #include "confdefs.h"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1833 #ifdef _AIX
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1834 yes
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1835 #endif
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1836
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1837 EOF
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1838 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1839 egrep "yes" >/dev/null 2>&1; then
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1840 rm -rf conftest*
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1841 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1842 Defining _ALL_SOURCE
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1843 EOF
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1844 cat >> confdefs.h <<\EOF
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1845 #define _ALL_SOURCE 1
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1846 EOF
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1847 }
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1848
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1849 else
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1850 rm -rf conftest*
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1851 echo "$ac_t""no" 1>&6
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1852 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1853 rm -f conftest*
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1854
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1855
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1856
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
1857 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
1858 echo "configure:1859: checking for GNU libc" >&5
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
1859 cat > conftest.$ac_ext <<EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
1860 #line 1861 "configure"
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
1861 #include "confdefs.h"
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
1862 #include <features.h>
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
1863 int main() {
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
1864
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
1865 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
1866 #error Not a GNU libc system :-(
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
1867 ******* ======= ******** &&&&&&&&
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
1868 #endif
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
1869
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
1870 ; return 0; }
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
1871 EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
1872 if { (eval echo configure:1873: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
1873 rm -rf conftest*
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
1874 have_glibc=yes
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
1875 else
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
1876 echo "configure: failed program was:" >&5
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
1877 cat conftest.$ac_ext >&5
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
1878 rm -rf conftest*
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
1879 have_glibc=no
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
1880 fi
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
1881 rm -f conftest*
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
1882 echo "$ac_t""$have_glibc" 1>&6
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
1883 test "$have_glibc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
1884 Defining _GNU_SOURCE
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
1885 EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
1886 cat >> confdefs.h <<\EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
1887 #define _GNU_SOURCE 1
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
1888 EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
1889 }
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
1890
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
1891
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1892 echo $ac_n "checking whether we are using SunPro C""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
1893 echo "configure:1894: checking whether we are using SunPro C" >&5
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
1894 cat > conftest.$ac_ext <<EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
1895 #line 1896 "configure"
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1896 #include "confdefs.h"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1897
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1898 int main() {
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1899 #ifndef __SUNPRO_C
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1900 #error Not a SunPro compiler :-(
167
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
1901 ******* ======= ******** &&&&&&&&
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1902 #endif
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1903
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1904 ; return 0; }
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1905 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
1906 if { (eval echo configure:1907: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1907 rm -rf conftest*
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1908 __sunpro_c=yes
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1909 else
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1910 echo "configure: failed program was:" >&5
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1911 cat conftest.$ac_ext >&5
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1912 rm -rf conftest*
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1913 __sunpro_c=no
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1914 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1915 rm -f conftest*
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1916 echo "$ac_t""$__sunpro_c" 1>&6
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1917
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1918
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1919
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1920 echo "Extracting information from the machine- and system-dependent headers..."
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1921
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1922 tempcname="conftest.c"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1923
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1924
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1925
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1926
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1927
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1928
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1929 echo '
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1930 #define NOT_C_CODE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1931 #define C_SWITCH_SITE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1932 #define C_SWITCH_X_SITE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1933 #define LD_SWITCH_SITE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1934 #define LD_SWITCH_X_SITE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1935 #define LD_SWITCH_X_SITE_AUX
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1936 #define OS_RELEASE '$os_release'
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1937 #include "'$srcdir'/src/'$opsysfile'"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1938 #include "'$srcdir'/src/'$machfile'"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1939
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1940 #ifndef LIBS_MACHINE
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1941 #define LIBS_MACHINE
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1942 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1943 configure___ libs_machine=LIBS_MACHINE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1944
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1945 #ifndef LIBS_SYSTEM
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1946 #define LIBS_SYSTEM
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1947 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1948 configure___ libs_system=LIBS_SYSTEM
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1949
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1950 #ifndef LIBS_TERMCAP
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1951 #define LIBS_TERMCAP
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1952 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1953 configure___ libs_termcap=LIBS_TERMCAP
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1954
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1955 #ifndef LIB_STANDARD
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1956 #define LIB_STANDARD
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1957 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1958 configure___ libs_standard=LIB_STANDARD
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1959
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1960
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1961 #ifndef OBJECTS_MACHINE
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1962 #define OBJECTS_MACHINE
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1963 #endif
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1964 configure___ objects_machine=OBJECTS_MACHINE
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1965
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1966 #ifndef OBJECTS_SYSTEM
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1967 #define OBJECTS_SYSTEM
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1968 #endif
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1969 configure___ objects_system=OBJECTS_SYSTEM
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1970
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1971
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1972 #ifndef C_SWITCH_MACHINE
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1973 #define C_SWITCH_MACHINE
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1974 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1975 configure___ c_switch_machine=C_SWITCH_MACHINE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1976
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1977 #ifndef C_SWITCH_SYSTEM
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1978 #define C_SWITCH_SYSTEM
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1979 #endif
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1980 configure___ c_switch_system=C_SWITCH_SYSTEM
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1981
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1982
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1983 #ifndef LD_SWITCH_MACHINE
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1984 #define LD_SWITCH_MACHINE
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1985 #endif
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1986 configure___ ld_switch_machine=LD_SWITCH_MACHINE
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 #ifndef LD_SWITCH_SYSTEM
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1989 #define LD_SWITCH_SYSTEM
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1990 #endif
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1991 configure___ ld_switch_system=LD_SWITCH_SYSTEM
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1992
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1993
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1994 #ifndef UNEXEC
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1995 #define UNEXEC "unexec.o"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1996 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1997 configure___ unexec=UNEXEC
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1998
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1999
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2000 #ifndef LD_SWITCH_SHARED
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2001 #define LD_SWITCH_SHARED "-c"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2002 #endif
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2003 configure___ ld_switch_shared=LD_SWITCH_SHARED
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2004
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2005
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2006 #ifdef ORDINARY_LINK
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2007 #define LD "$(CC) $(CFLAGS)"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2008 #else /* no ORDINARY LINK */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2009 #ifdef COFF_ENCAPSULATE
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2010 #define LD "$(CC) -nostdlib"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2011 #else /* not COFF_ENCAPSULATE */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2012 #ifdef LINKER
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2013 #define LD LINKER
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2014 #else /* ! defined (LINKER) */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2015 #define LD "ld"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2016 #endif /* ! defined (LINKER) */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2017 #endif /* ! defined (COFF_ENCAPSULATE) */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2018 #endif /* not ORDINARY_LINK */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2019 configure___ ld=LD
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2020
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2021 #ifndef LIB_GCC
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2022 #define LIB_GCC
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2023 #endif
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2024 configure___ lib_gcc=LIB_GCC
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2025
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2026 #ifndef LD_TEXT_START_ADDR
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2027 #define LD_TEXT_START_ADDR
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2028 #endif
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2029 configure___ ld_text_start_addr=LD_TEXT_START_ADDR
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2030
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2031
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2032 #if ! defined (ORDINARY_LINK) && !defined (START_FILES)
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2033 #ifdef NO_REMAP
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2034 #ifdef COFF_ENCAPSULATE
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2035 #define START_FILES "pre-crt0.o /usr/local/lib/gcc-crt0.o"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2036 #else /* ! defined (COFF_ENCAPSULATE) */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2037 #define START_FILES "pre-crt0.o /lib/crt0.o"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2038 #endif /* ! defined (COFF_ENCAPSULATE) */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2039 #else /* ! defined (NO_REMAP) */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2040 #define START_FILES "ecrt0.o"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2041 #endif /* ! defined (NO_REMAP) */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2042 #endif /* no ORDINARY_LINK */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2043 #ifndef START_FILES
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2044 #define START_FILES
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2045 #endif
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2046 configure___ start_files=START_FILES
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2047
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
2048 #ifdef ORDINARY_LINK
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
2049 configure___ ordinary_link=yes
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
2050 #else
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
2051 configure___ ordinary_link=no
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
2052 #endif
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
2053
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2054 #ifdef SYSTEM_MALLOC
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2055 configure___ system_malloc=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2056 #else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2057 configure___ system_malloc=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2058 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2059
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2060 #ifdef TERMINFO
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2061 configure___ have_terminfo=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2062 #else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2063 configure___ have_terminfo=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2064 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2065
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2066 #ifdef MAIL_USE_FLOCK
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2067 configure___ mail_use_flock=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2068 #else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2069 configure___ mail_use_flock=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2070 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2071
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2072 #ifdef MAIL_USE_LOCKF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2073 configure___ mail_use_lockf=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2074 #else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2075 configure___ mail_use_lockf=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2076 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2077
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2078
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2079 #if 0
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2080 #ifdef THIS_IS_CONFIGURE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2081
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2082 /* Get the CFLAGS for tests in configure. */
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2083 #ifndef C_DEBUG_SWITCH
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2084 #define C_DEBUG_SWITCH "-g"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2085 #endif
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2086 configure___ c_debug_switch=C_DEBUG_SWITCH
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2087
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2088 #ifndef C_OPTIMIZE_SWITCH
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2089 #define C_OPTIMIZE_SWITCH "-O"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2090 #endif
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2091 configure___ c_optimize_switch=C_OPTIMIZE_SWITCH
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2092
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2093 #ifdef __GNUC__
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2094 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '$SPECIFIED_CFLAGS'
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2095 #else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2096 configure___ CFLAGS=C_DEBUG_SWITCH '$SPECIFIED_CFLAGS'
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2097 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2098
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2099 #else /* not THIS_IS_CONFIGURE */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2100
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2101 /* Get the CFLAGS for real compilation. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2102 #ifdef __GNUC__
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2103 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '$SPECIFIED_CFLAGS'
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2104 #else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2105 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '$SPECIFIED_CFLAGS'
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2106 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2107
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2108 #endif /* not THIS_IS_CONFIGURE */
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2109 #endif /* 0 */
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2110 ' > $tempcname
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2111 CPP=`eval "echo $CPP"`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2112 eval `$CPP -Isrc $tempcname \
165
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents: 163
diff changeset
2113 | sed -n -e "s/[ ]*=[ \"]*/='/" -e "s/[ \"]*\$/'/" -e "s/^configure___//p"`
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
2114
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2115 rm $tempcname
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2116
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2117 test "$extra_verbose" = "yes" && \
201
eb5470882647 Import from CVS: tag r20-3b27
cvs
parents: 197
diff changeset
2118 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
2119
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
2120 test "$ordinary_link" = "no" -a -z "$libs_standard" && libs_standard="-lc"
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
2121
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2122 if test -z "$CFLAGS"; then
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2123 if test "$GCC" = "yes"; then
175
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
2124 CFLAGS="-g -O2 -Wall -Wno-switch"
223
2c611d1463a6 Import from CVS: tag r20-4b10
cvs
parents: 219
diff changeset
2125 elif test "$__sunpro_c" = "yes"; then
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2126 case "$opsys" in
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2127 sol2 ) CFLAGS="-v -xO4" ;;
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2128 sunos4* ) CFLAGS="-xO2";;
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2129 esac
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
2130 elif test "$CC" = "xlc"; then
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
2131 CFLAGS="-O3 -qstrict -qnoansialias -qlibansi -qinfo -qro -qmaxmem=20000"
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2132 else
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
2133 CFLAGS="-O" ; fi
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2134 fi
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2135
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2136 if test "$GCC" = "yes"; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2137 ld_switch_system_tmp="$ld_switch_system"; ld_switch_system=""
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2138 for arg in $ld_switch_system_tmp; do
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2139 case "$arg" in
209
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents: 207
diff changeset
2140 -L* | -l* | -R* | -u* | -Wl* | -f*) ld_switch_system="$ld_switch_system $arg" ;;
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2141 -Xlinker* ) ;;
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2142 * ) ld_switch_system="$ld_switch_system -Xlinker $arg" ;;
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2143 esac
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2144 done
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2145 ld_switch_machine_tmp="$ld_switch_machine"; ld_switch_machine=""
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2146 for arg in $ld_switch_machine_tmp; do
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2147 case "$arg" in
209
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents: 207
diff changeset
2148 -L* | -l* | -R* | -u* | -Wl* | -f*) ld_switch_machine="$ld_switch_machine $arg" ;;
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2149 -Xlinker* ) ;;
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2150 * ) ld_switch_machine="$ld_switch_machine -Xlinker $arg" ;;
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2151 esac
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2152 done
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2153 LDFLAGS_tmp="$LDFLAGS"; LDFLAGS=""
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2154 for arg in $LDFLAGS_tmp; do
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2155 case "$arg" in
209
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents: 207
diff changeset
2156 -L* | -l* | -R* | -u* | -Wl* | -f*) LDFLAGS="$LDFLAGS $arg" ;;
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2157 -Xlinker* ) ;;
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2158 * ) LDFLAGS="$LDFLAGS -Xlinker $arg" ;;
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2159 esac
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2160 done
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
2161 ld_call_shared_tmp="$ld_call_shared"; ld_call_shared=""
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
2162 for arg in $ld_call_shared_tmp; do
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
2163 case "$arg" in
209
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents: 207
diff changeset
2164 -L* | -l* | -R* | -u* | -Wl* | -f*) ld_call_shared="$ld_call_shared $arg" ;;
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
2165 -Xlinker* ) ;;
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
2166 * ) ld_call_shared="$ld_call_shared -Xlinker $arg" ;;
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
2167 esac
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
2168 done
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2169 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2170
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2171 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
2172 echo " xemacs will be linked with \"$objects_machine\""
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2173 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2174 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
2175 echo " xemacs will be linked with \"$objects_system\""
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2176 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2177 test -n "$unexec" && extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2178 echo " xemacs will be linked with \"$unexec\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2179 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2180
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2181 echo $ac_n "checking for dynodump""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2182 echo "configure:2183: checking for dynodump" >&5
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2183 if test "$unexec" != "unexsol2.o"; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2184 echo "$ac_t""no" 1>&6
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2185 else
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2186 echo "$ac_t""yes" 1>&6
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2187 { test "$extra_verbose" = "yes" && cat << \EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2188 Defining DYNODUMP
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2189 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2190 cat >> confdefs.h <<\EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2191 #define DYNODUMP 1
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2192 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2193 }
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2194
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2195 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
2196 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
2197 case "$machine" in
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2198 sparc ) dynodump_arch=sparc ;;
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2199 *86* ) dynodump_arch=i386 ;;
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2200 powerpc ) dynodump_arch=ppc ;;
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2201 esac
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2202 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
2203 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2204
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2205
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
2206 if test "$unexec" = "unexaix.o"; then
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
2207 if test "$dynamic" = "no"; then
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
2208 start_flags="-Wl,-bnso,-bnodelcsect"
209
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents: 207
diff changeset
2209 test "$GCC" = "yes" && start_flags="-B/bin/ ${start_flags}"
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
2210 for f in "/lib/syscalls.exp" "$srcdir/src/m/ibmrs6000.inp"; do
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
2211 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; fi
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
2212 done
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
2213 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
2214 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
2215 done
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
2216 fi
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
2217 elif test -n "$ld_text_start_addr"; then
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
2218 start_flags="-T $ld_text_start_addr -e __start"
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
2219 fi
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
2220
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
2221
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
2222
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2223
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2224 if test "$ordinary_link" = "no" -a "$GCC" = "yes"; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2225 test -z "$linker" && linker='$(CC) -nostdlib'
175
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
2226 test -z "$lib_gcc" && lib_gcc='`$(CC) -print-libgcc-file-name`'
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2227 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2228 test "$GCC" != "yes" && lib_gcc=
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2229
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2230
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2231
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2232
209
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents: 207
diff changeset
2233
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents: 207
diff changeset
2234 if test -n "$site_prefixes"; then
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents: 207
diff changeset
2235 for arg in $site_prefixes; do
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents: 207
diff changeset
2236 case "$arg" in
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents: 207
diff changeset
2237 -* ) ;;
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents: 207
diff changeset
2238 * ) argi="-I${arg}/include" ; argl="-L${arg}/lib" ;;
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents: 207
diff changeset
2239 esac
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents: 207
diff changeset
2240 c_switch_site="$c_switch_site $argi" && if test "$extra_verbose" = "yes"; then echo " Appending \"$argi\" to \$c_switch_site"; fi
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents: 207
diff changeset
2241 ld_switch_site="$ld_switch_site $argl" && if test "$extra_verbose" = "yes"; then echo " Appending \"$argl\" to \$ld_switch_site"; fi
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents: 207
diff changeset
2242 done
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents: 207
diff changeset
2243 fi
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents: 207
diff changeset
2244
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2245 if test -n "$site_libraries"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2246 for arg in $site_libraries; do
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2247 case "$arg" in -* ) ;; * ) arg="-L${arg}" ;; esac
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2248 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
2249 done
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2250 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2251
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2252 if test -n "$site_includes" ; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2253 for arg in $site_includes; do
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2254 case "$arg" in -* ) ;; * ) arg="-I${arg}" ;; esac
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2255 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
2256 done
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2257 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2258
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2259
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2260 for dir in "/usr/ccs/lib"; do
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2261 test -d "$dir" && ld_switch_site="$ld_switch_site -L${dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L${dir}\" to \$ld_switch_site"; fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2262 done
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2263
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2264 if test -n "$site_runtime_libraries" ; then
165
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents: 163
diff changeset
2265 LD_RUN_PATH="`echo $site_runtime_libraries | sed -e 's/ */:/g'`"
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2266 export LD_RUN_PATH
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2267 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2268
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2269
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2270 if test "$dynamic" = "no"; then add_runtime_path=no
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2271 elif test -n "$LD_RUN_PATH"; then add_runtime_path=yes
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2272 else case "$opsys" in
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2273 sol2 | irix* | *bsd* ) add_runtime_path=yes ;;
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2274 * ) add_runtime_path=no ;;
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2275 esac
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2276 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2277
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2278 if test "$add_runtime_path" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2279 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2280 echo "configure:2281: checking "for runtime libraries flag"" >&5
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2281 dash_r=""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2282 for try_dash_r in "-R" "-R " "-rpath "; do
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2283 xe_check_libs="${try_dash_r}/no/such/file-or-directory"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2284 cat > conftest.$ac_ext <<EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2285 #line 2286 "configure"
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2286 #include "confdefs.h"
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2287
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2288 int main() {
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2289
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2290 ; return 0; }
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2291 EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2292 if { (eval echo configure:2293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2293 rm -rf conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2294 dash_r="$try_dash_r"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2295 else
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2296 echo "configure: failed program was:" >&5
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2297 cat conftest.$ac_ext >&5
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2298 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2299 rm -f conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2300 xe_check_libs=""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2301 test -n "$dash_r" && break
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2302 done
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2303 if test -n "$dash_r";
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2304 then echo "$ac_t"""\"${dash_r}\""" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2305 else echo "$ac_t""NONE" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2306 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2307 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2308
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2309 xe_add_unique_runpath_dir='
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2310 xe_add_p=yes
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2311 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
2312 done
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2313 if test "$xe_add_p" = "yes"; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2314 test -n "$runpath" && runpath="${runpath}:"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2315 runpath="${runpath}${xe_runpath_dir}"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2316 runpath_dirs="$runpath_dirs $xe_runpath_dir"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2317 fi'
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2318
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2319
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2320
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
2321
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2322 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
165
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents: 163
diff changeset
2323 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
2324 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
2325
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2326 runpath="" runpath_dirs=""
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
2327 if test -n "$LD_RUN_PATH"; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2328 runpath="$LD_RUN_PATH"
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
2329 elif test "$GCC" = "yes"; then
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2330 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2331 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
2332 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
2333 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
2334 case "$arg" in P,* | -L* | -R* )
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
2335 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
2336 {
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
2337 xe_runpath_dir="$dir"
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2338 test "$xe_runpath_dir" != "/lib" -a \
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
2339 "$xe_runpath_dir" != "/usr/lib" -a \
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2340 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2341 eval "$xe_add_unique_runpath_dir"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2342 }
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
2343 done ;;
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
2344 esac
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
2345 done
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2346 ld_switch_run="$ld_switch_run_save"
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
2347 rm -f conftest*
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2348 else
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
2349 for arg in $ld_switch_site $ld_switch_x_site; do
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2350 case "$arg" in -L*) {
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
2351 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2352 test "$xe_runpath_dir" != "/lib" -a \
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
2353 "$xe_runpath_dir" != "/usr/lib" -a \
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2354 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2355 eval "$xe_add_unique_runpath_dir"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2356 };; esac
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2357 done
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2358 if test "$opsys $need_motif" = "sol2 yes"; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2359 xe_runpath_dir="/opt/SUNWdt/lib";
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2360 eval "$xe_add_unique_runpath_dir";
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2361 fi
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
2362 fi
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2363 if test -n "$runpath"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2364 ld_switch_run="${dash_r}${runpath}"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2365 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2366 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2367 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2368
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2369
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2370
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2371 GNU_MALLOC=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2372 if test "$system_malloc" = "yes" ; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2373 GNU_MALLOC=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2374 GNU_MALLOC_reason="
177
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
2375 (The GNU allocators don't work with this system configuration)."
181
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
2376 elif test "$with_system_malloc" = "yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2377 GNU_MALLOC=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2378 GNU_MALLOC_reason="
177
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
2379 (User chose not to use GNU allocators)."
181
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
2380 elif test "$with_debug_malloc" = "yes" ; then
177
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
2381 GNU_MALLOC=no
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
2382 GNU_MALLOC_reason="
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
2383 (User chose to use Debugging Malloc)."
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2384 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2385
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2386
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2387 # 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
2388 set dummy ranlib; ac_word=$2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2389 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2390 echo "configure:2391: checking for $ac_word" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2391
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2392 if test -n "$RANLIB"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2393 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2394 else
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2395 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2396 for ac_dir in $PATH; do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2397 test -z "$ac_dir" && ac_dir=.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2398 if test -f $ac_dir/$ac_word; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2399 ac_cv_prog_RANLIB="ranlib"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2400 break
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2401 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2402 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2403 IFS="$ac_save_ifs"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2404 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2405 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2406 RANLIB="$ac_cv_prog_RANLIB"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2407 if test -n "$RANLIB"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2408 echo "$ac_t""$RANLIB" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2409 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2410 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2411 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2412
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2413 ac_aux_dir=
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2414 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2415 if test -f $ac_dir/install-sh; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2416 ac_aux_dir=$ac_dir
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2417 ac_install_sh="$ac_aux_dir/install-sh -c"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2418 break
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2419 elif test -f $ac_dir/install.sh; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2420 ac_aux_dir=$ac_dir
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2421 ac_install_sh="$ac_aux_dir/install.sh -c"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2422 break
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2423 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2424 done
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2425 if test -z "$ac_aux_dir"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2426 { 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
2427 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2428 ac_config_guess=$ac_aux_dir/config.guess
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2429 ac_config_sub=$ac_aux_dir/config.sub
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2430 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2431
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2432 # Find a good install program. We prefer a C program (faster),
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2433 # 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
2434 # incompatible versions:
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2435 # SysV /etc/install, /usr/sbin/install
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2436 # SunOS /usr/etc/install
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2437 # IRIX /sbin/install
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2438 # AIX /bin/install
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2439 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2440 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2441 # ./install, which can be erroneously created by make from ./install.sh.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2442 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2443 echo "configure:2444: checking for a BSD compatible install" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2444 if test -z "$INSTALL"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2445
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2446 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2447 for ac_dir in $PATH; do
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2448 # Account for people who put trailing slashes in PATH elements.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2449 case "$ac_dir/" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2450 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2451 *)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2452 # OSF1 and SCO ODT 3.0 have their own names for install.
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2453 for ac_prog in ginstall installbsd scoinst install; do
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2454 if test -f $ac_dir/$ac_prog; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2455 if test $ac_prog = install &&
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2456 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2457 # AIX install. It has an incompatible calling convention.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2458 # OSF/1 installbsd also uses dspmsg, but is usable.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2459 :
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2460 else
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2461 ac_cv_path_install="$ac_dir/$ac_prog -c"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2462 break 2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2463 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2464 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2465 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2466 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2467 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2468 done
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2469 IFS="$ac_save_IFS"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2470
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2471 if test "${ac_cv_path_install+set}" = set; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2472 INSTALL="$ac_cv_path_install"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2473 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2474 # 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
2475 # path for INSTALL within a source directory, because that will
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2476 # break other packages using the cache if that directory is
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2477 # removed, or if the path is relative.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2478 INSTALL="$ac_install_sh"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2479 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2480 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2481 echo "$ac_t""$INSTALL" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2482
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2483 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2484 # It thinks the first close brace ends the variable substitution.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2485 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2486
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2487 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2488
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2489 for ac_prog in 'bison -y' byacc
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2490 do
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2491 # 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
2492 set dummy $ac_prog; ac_word=$2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2493 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2494 echo "configure:2495: checking for $ac_word" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2495
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2496 if test -n "$YACC"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2497 ac_cv_prog_YACC="$YACC" # Let the user override the test.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2498 else
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2499 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2500 for ac_dir in $PATH; do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2501 test -z "$ac_dir" && ac_dir=.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2502 if test -f $ac_dir/$ac_word; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2503 ac_cv_prog_YACC="$ac_prog"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2504 break
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2505 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2506 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2507 IFS="$ac_save_ifs"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2508 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2509 YACC="$ac_cv_prog_YACC"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2510 if test -n "$YACC"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2511 echo "$ac_t""$YACC" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2512 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2513 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2514 fi
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2515
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2516 test -n "$YACC" && break
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2517 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2518 test -n "$YACC" || YACC="yacc"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2519
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2520
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
2521 for ac_hdr in mach/mach.h sys/stropts.h sys/timeb.h sys/time.h unistd.h
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
2522 do
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2523 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2524 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2525 echo "configure:2526: checking for $ac_hdr" >&5
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2526
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2527 cat > conftest.$ac_ext <<EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2528 #line 2529 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2529 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2530 #include <$ac_hdr>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2531 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2532 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2533 { (eval echo configure:2534: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2534 ac_err=`grep -v '^ *+' conftest.out`
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
2535 if test -z "$ac_err"; then
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
2536 rm -rf conftest*
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2537 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2538 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2539 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2540 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2541 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2542 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2543 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2544 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2545 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2546 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2547 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2548 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2549 { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2550 Defining $ac_tr_hdr
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2551 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2552 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2553 #define $ac_tr_hdr 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2554 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2555 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2556
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2557 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2558 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2559 fi
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
2560 done
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
2561
169
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
2562 for ac_hdr in utime.h locale.h libgen.h fcntl.h ulimit.h
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
2563 do
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2564 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2565 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2566 echo "configure:2567: checking for $ac_hdr" >&5
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2567
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2568 cat > conftest.$ac_ext <<EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2569 #line 2570 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2570 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2571 #include <$ac_hdr>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2572 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2573 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2574 { (eval echo configure:2575: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2575 ac_err=`grep -v '^ *+' conftest.out`
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
2576 if test -z "$ac_err"; then
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
2577 rm -rf conftest*
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2578 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2579 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2580 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2581 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2582 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2583 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2584 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2585 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2586 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2587 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2588 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2589 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2590 { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2591 Defining $ac_tr_hdr
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2592 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2593 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2594 #define $ac_tr_hdr 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2595 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2596 }
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 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2599 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2600 fi
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
2601 done
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
2602
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2603 for ac_hdr in linux/version.h kstat.h sys/pstat.h inttypes.h sys/un.h
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2604 do
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2605 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2606 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2607 echo "configure:2608: checking for $ac_hdr" >&5
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2608
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2609 cat > conftest.$ac_ext <<EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2610 #line 2611 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2611 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2612 #include <$ac_hdr>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2613 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2614 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2615 { (eval echo configure:2616: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2616 ac_err=`grep -v '^ *+' conftest.out`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2617 if test -z "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2618 rm -rf conftest*
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2619 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2620 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2621 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2622 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2623 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2624 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2625 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2626 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2627 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2628 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2629 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2630 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2631 { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2632 Defining $ac_tr_hdr
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2633 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2634 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2635 #define $ac_tr_hdr 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2636 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2637 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2638
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2639 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2640 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2641 fi
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2642 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2643
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
2644 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2645 echo "configure:2646: checking for sys/wait.h that is POSIX.1 compatible" >&5
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2646
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2647 cat > conftest.$ac_ext <<EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2648 #line 2649 "configure"
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
2649 #include "confdefs.h"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
2650 #include <sys/types.h>
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
2651 #include <sys/wait.h>
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
2652 #ifndef WEXITSTATUS
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
2653 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
2654 #endif
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
2655 #ifndef WIFEXITED
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
2656 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
2657 #endif
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
2658 int main() {
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
2659 int s;
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
2660 wait (&s);
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
2661 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
2662 ; return 0; }
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
2663 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2664 if { (eval echo configure:2665: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
2665 rm -rf conftest*
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
2666 ac_cv_header_sys_wait_h=yes
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
2667 else
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
2668 echo "configure: failed program was:" >&5
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
2669 cat conftest.$ac_ext >&5
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
2670 rm -rf conftest*
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
2671 ac_cv_header_sys_wait_h=no
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
2672 fi
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
2673 rm -f conftest*
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
2674
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
2675 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
2676 if test $ac_cv_header_sys_wait_h = yes; then
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
2677 { test "$extra_verbose" = "yes" && cat << \EOF
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
2678 Defining HAVE_SYS_WAIT_H
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
2679 EOF
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
2680 cat >> confdefs.h <<\EOF
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
2681 #define HAVE_SYS_WAIT_H 1
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
2682 EOF
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
2683 }
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
2684
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
2685 fi
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
2686
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2687 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2688 echo "configure:2689: checking for ANSI C header files" >&5
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2689
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2690 cat > conftest.$ac_ext <<EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2691 #line 2692 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2692 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2693 #include <stdlib.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2694 #include <stdarg.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2695 #include <string.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2696 #include <float.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2697 EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2698 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2699 { (eval echo configure:2700: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2700 ac_err=`grep -v '^ *+' conftest.out`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2701 if test -z "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2702 rm -rf conftest*
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2703 ac_cv_header_stdc=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2704 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2705 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2706 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2707 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2708 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2709 ac_cv_header_stdc=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2710 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2711 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2712
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2713 if test $ac_cv_header_stdc = yes; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2714 # 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
2715 cat > conftest.$ac_ext <<EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2716 #line 2717 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2717 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2718 #include <string.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2719 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2720 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2721 egrep "memchr" >/dev/null 2>&1; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2722 :
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 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2725 ac_cv_header_stdc=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2726 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2727 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2728
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2729 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2730
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2731 if test $ac_cv_header_stdc = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2732 # 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
2733 cat > conftest.$ac_ext <<EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2734 #line 2735 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2735 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2736 #include <stdlib.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2737 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2738 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2739 egrep "free" >/dev/null 2>&1; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2740 :
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 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2743 ac_cv_header_stdc=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2744 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2745 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2746
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2747 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2748
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2749 if test $ac_cv_header_stdc = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2750 # /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
2751 cat > conftest.$ac_ext <<EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2752 #line 2753 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2753 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2754 #include <ctype.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2755 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2756 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2757 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2758 int main () { int i; for (i = 0; i < 256; i++)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2759 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2760 exit (0); }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2761
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2762 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2763 if { (eval echo configure:2764: \"$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
2764 then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2765 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2766 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2767 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2768 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2769 rm -fr conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2770 ac_cv_header_stdc=no
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2771 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2772 rm -fr conftest*
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2773 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2774
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2775 echo "$ac_t""$ac_cv_header_stdc" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2776 if test $ac_cv_header_stdc = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2777 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2778 Defining STDC_HEADERS
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2779 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2780 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2781 #define STDC_HEADERS 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2782 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2783 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2784
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2785 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2786
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2787 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2788 echo "configure:2789: checking whether time.h and sys/time.h may both be included" >&5
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2789
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2790 cat > conftest.$ac_ext <<EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2791 #line 2792 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2792 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2793 #include <sys/types.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2794 #include <sys/time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2795 #include <time.h>
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2796 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2797 struct tm *tp;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2798 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2799 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2800 if { (eval echo configure:2801: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2801 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2802 ac_cv_header_time=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2803 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2804 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2805 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2806 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2807 ac_cv_header_time=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2808 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2809 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2810
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2811 echo "$ac_t""$ac_cv_header_time" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2812 if test $ac_cv_header_time = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2813 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2814 Defining TIME_WITH_SYS_TIME
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2815 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2816 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2817 #define TIME_WITH_SYS_TIME 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2818 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2819 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2820
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2821 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2822
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2823 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2824 echo "configure:2825: checking for sys_siglist declaration in signal.h or unistd.h" >&5
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2825
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2826 cat > conftest.$ac_ext <<EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2827 #line 2828 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2828 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2829 #include <sys/types.h>
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2830 #include <signal.h>
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2831 /* NetBSD declares sys_siglist in unistd.h. */
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2832 #ifdef HAVE_UNISTD_H
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2833 #include <unistd.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2834 #endif
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2835 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2836 char *msg = *(sys_siglist + 1);
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2837 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2838 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2839 if { (eval echo configure:2840: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2840 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2841 ac_cv_decl_sys_siglist=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2842 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2843 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2844 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2845 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2846 ac_cv_decl_sys_siglist=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2847 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2848 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2849
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2850 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2851 if test $ac_cv_decl_sys_siglist = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2852 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2853 Defining SYS_SIGLIST_DECLARED
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2854 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2855 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2856 #define SYS_SIGLIST_DECLARED 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2857 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2858 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2859
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2860 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2861
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2862
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2863 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2864 echo "configure:2865: checking for struct utimbuf" >&5
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2865 cat > conftest.$ac_ext <<EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2866 #line 2867 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2867 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2868 #ifdef TIME_WITH_SYS_TIME
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2869 #include <sys/time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2870 #include <time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2871 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2872 #ifdef HAVE_SYS_TIME_H
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2873 #include <sys/time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2874 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2875 #include <time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2876 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2877 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2878 #ifdef HAVE_UTIME_H
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2879 #include <utime.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2880 #endif
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2881 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2882 static struct utimbuf x; x.actime = x.modtime;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2883 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2884 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2885 if { (eval echo configure:2886: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2886 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2887 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2888 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2889 Defining HAVE_STRUCT_UTIMBUF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2890 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2891 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2892 #define HAVE_STRUCT_UTIMBUF 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2893 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2894 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2895
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2896 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2897 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2898 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2899 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2900 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2901 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2902 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2903
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2904 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2905 echo "configure:2906: checking return type of signal handlers" >&5
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2906
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2907 cat > conftest.$ac_ext <<EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2908 #line 2909 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2909 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2910 #include <sys/types.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2911 #include <signal.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2912 #ifdef signal
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2913 #undef signal
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2914 #endif
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2915 #ifdef __cplusplus
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2916 extern "C" void (*signal (int, void (*)(int)))(int);
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2917 #else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2918 void (*signal ()) ();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2919 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2920
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2921 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2922 int i;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2923 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2924 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2925 if { (eval echo configure:2926: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2926 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2927 ac_cv_type_signal=void
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2928 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2929 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2930 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2931 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2932 ac_cv_type_signal=int
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2933 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2934 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2935
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2936 echo "$ac_t""$ac_cv_type_signal" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2937 { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2938 Defining RETSIGTYPE = $ac_cv_type_signal
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2939 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2940 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2941 #define RETSIGTYPE $ac_cv_type_signal
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2942 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2943 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2944
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2945
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2946 echo $ac_n "checking for size_t""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2947 echo "configure:2948: checking for size_t" >&5
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2948
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2949 cat > conftest.$ac_ext <<EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2950 #line 2951 "configure"
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2951 #include "confdefs.h"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2952 #include <sys/types.h>
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2953 #if STDC_HEADERS
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2954 #include <stdlib.h>
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2955 #include <stddef.h>
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2956 #endif
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2957 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2958 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2959 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2960 rm -rf conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2961 ac_cv_type_size_t=yes
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2962 else
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2963 rm -rf conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2964 ac_cv_type_size_t=no
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2965 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2966 rm -f conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2967
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2968 echo "$ac_t""$ac_cv_type_size_t" 1>&6
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2969 if test $ac_cv_type_size_t = no; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2970 { test "$extra_verbose" = "yes" && cat << \EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2971 Defining size_t = unsigned
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2972 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2973 cat >> confdefs.h <<\EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2974 #define size_t unsigned
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2975 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2976 }
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2977
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2978 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2979
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2980 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2981 echo "configure:2982: checking for pid_t" >&5
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2982
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2983 cat > conftest.$ac_ext <<EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2984 #line 2985 "configure"
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2985 #include "confdefs.h"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2986 #include <sys/types.h>
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2987 #if STDC_HEADERS
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2988 #include <stdlib.h>
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2989 #include <stddef.h>
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2990 #endif
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2991 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2992 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2993 egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2994 rm -rf conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2995 ac_cv_type_pid_t=yes
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2996 else
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2997 rm -rf conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2998 ac_cv_type_pid_t=no
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2999 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3000 rm -f conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3001
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3002 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3003 if test $ac_cv_type_pid_t = no; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3004 { test "$extra_verbose" = "yes" && cat << \EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3005 Defining pid_t = int
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3006 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3007 cat >> confdefs.h <<\EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3008 #define pid_t int
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3009 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3010 }
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3011
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3012 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3013
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3014 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
3015 echo "configure:3016: checking for uid_t in sys/types.h" >&5
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
3016
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
3017 cat > conftest.$ac_ext <<EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
3018 #line 3019 "configure"
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3019 #include "confdefs.h"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3020 #include <sys/types.h>
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3021 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3022 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3023 egrep "uid_t" >/dev/null 2>&1; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3024 rm -rf conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3025 ac_cv_type_uid_t=yes
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3026 else
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3027 rm -rf conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3028 ac_cv_type_uid_t=no
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3029 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3030 rm -f conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3031
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3032
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3033 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3034 if test $ac_cv_type_uid_t = no; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3035 { test "$extra_verbose" = "yes" && cat << \EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3036 Defining uid_t = int
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3037 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3038 cat >> confdefs.h <<\EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3039 #define uid_t int
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3040 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3041 }
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3042
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3043 { test "$extra_verbose" = "yes" && cat << \EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3044 Defining gid_t = int
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3045 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3046 cat >> confdefs.h <<\EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3047 #define gid_t int
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3048 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3049 }
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3050
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3051 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3052
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3053 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
3054 echo "configure:3055: checking for mode_t" >&5
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
3055
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
3056 cat > conftest.$ac_ext <<EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
3057 #line 3058 "configure"
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3058 #include "confdefs.h"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3059 #include <sys/types.h>
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3060 #if STDC_HEADERS
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3061 #include <stdlib.h>
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3062 #include <stddef.h>
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3063 #endif
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3064 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3065 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3066 egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3067 rm -rf conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3068 ac_cv_type_mode_t=yes
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3069 else
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3070 rm -rf conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3071 ac_cv_type_mode_t=no
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3072 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3073 rm -f conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3074
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3075 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3076 if test $ac_cv_type_mode_t = no; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3077 { test "$extra_verbose" = "yes" && cat << \EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3078 Defining mode_t = int
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3079 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3080 cat >> confdefs.h <<\EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3081 #define mode_t int
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3082 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3083 }
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3084
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3085 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3086
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3087 echo $ac_n "checking for off_t""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
3088 echo "configure:3089: checking for off_t" >&5
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
3089
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
3090 cat > conftest.$ac_ext <<EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
3091 #line 3092 "configure"
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3092 #include "confdefs.h"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3093 #include <sys/types.h>
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3094 #if STDC_HEADERS
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3095 #include <stdlib.h>
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3096 #include <stddef.h>
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3097 #endif
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3098 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3099 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3100 egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3101 rm -rf conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3102 ac_cv_type_off_t=yes
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3103 else
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3104 rm -rf conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3105 ac_cv_type_off_t=no
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3106 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3107 rm -f conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3108
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3109 echo "$ac_t""$ac_cv_type_off_t" 1>&6
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3110 if test $ac_cv_type_off_t = no; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3111 { test "$extra_verbose" = "yes" && cat << \EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3112 Defining off_t = long
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3113 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3114 cat >> confdefs.h <<\EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3115 #define off_t long
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3116 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3117 }
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3118
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3119 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3120
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3121
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3122 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
3123 echo "configure:3124: checking for struct timeval" >&5
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
3124 cat > conftest.$ac_ext <<EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
3125 #line 3126 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3126 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3127 #ifdef TIME_WITH_SYS_TIME
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3128 #include <sys/time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3129 #include <time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3130 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3131 #ifdef HAVE_SYS_TIME_H
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3132 #include <sys/time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3133 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3134 #include <time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3135 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3136 #endif
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3137 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3138 static struct timeval x; x.tv_sec = x.tv_usec;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3139 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3140 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
3141 if { (eval echo configure:3142: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3142 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3143 echo "$ac_t""yes" 1>&6
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3144 HAVE_TIMEVAL=yes
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3145 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3146 Defining HAVE_TIMEVAL
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3147 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3148 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3149 #define HAVE_TIMEVAL 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3150 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3151 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3152
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3153 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3154 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3155 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3156 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3157 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3158 HAVE_TIMEVAL=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3159 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3160 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3161
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3162 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
3163 echo "configure:3164: checking whether struct tm is in sys/time.h or time.h" >&5
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
3164
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
3165 cat > conftest.$ac_ext <<EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
3166 #line 3167 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3167 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3168 #include <sys/types.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3169 #include <time.h>
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3170 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3171 struct tm *tp; tp->tm_sec;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3172 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3173 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
3174 if { (eval echo configure:3175: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3175 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3176 ac_cv_struct_tm=time.h
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3177 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3178 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3179 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3180 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3181 ac_cv_struct_tm=sys/time.h
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3182 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3183 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3184
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3185 echo "$ac_t""$ac_cv_struct_tm" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3186 if test $ac_cv_struct_tm = sys/time.h; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3187 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3188 Defining TM_IN_SYS_TIME
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3189 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3190 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3191 #define TM_IN_SYS_TIME 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3192 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3193 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3194
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3195 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3196
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3197 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
3198 echo "configure:3199: checking for tm_zone in struct tm" >&5
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
3199
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
3200 cat > conftest.$ac_ext <<EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
3201 #line 3202 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3202 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3203 #include <sys/types.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3204 #include <$ac_cv_struct_tm>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3205 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3206 struct tm tm; tm.tm_zone;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3207 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3208 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
3209 if { (eval echo configure:3210: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3210 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3211 ac_cv_struct_tm_zone=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3212 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3213 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3214 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3215 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3216 ac_cv_struct_tm_zone=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3217 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3218 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3219
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3220 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3221 if test "$ac_cv_struct_tm_zone" = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3222 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3223 Defining HAVE_TM_ZONE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3224 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3225 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3226 #define HAVE_TM_ZONE 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3227 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3228 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3229
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3230 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3231 echo $ac_n "checking for tzname""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
3232 echo "configure:3233: checking for tzname" >&5
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
3233
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
3234 cat > conftest.$ac_ext <<EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
3235 #line 3236 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3236 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3237 #include <time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3238 #ifndef tzname /* For SGI. */
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3239 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3240 #endif
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3241 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3242 atoi(*tzname);
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3243 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3244 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
3245 if { (eval echo configure:3246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3246 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3247 ac_cv_var_tzname=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3248 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3249 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3250 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3251 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3252 ac_cv_var_tzname=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3253 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3254 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3255
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3256 echo "$ac_t""$ac_cv_var_tzname" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3257 if test $ac_cv_var_tzname = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3258 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3259 Defining HAVE_TZNAME
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3260 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3261 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3262 #define HAVE_TZNAME 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3263 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3264 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3265
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3266 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3267 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3268
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3269
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3270 echo $ac_n "checking for working const""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
3271 echo "configure:3272: checking for working const" >&5
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
3272
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
3273 cat > conftest.$ac_ext <<EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
3274 #line 3275 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3275 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3276
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3277 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3278
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3279 /* Ultrix mips cc rejects this. */
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3280 typedef int charset[2]; const charset x;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3281 /* SunOS 4.1.1 cc rejects this. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3282 char const *const *ccp;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3283 char **p;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3284 /* NEC SVR4.0.2 mips cc rejects this. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3285 struct point {int x, y;};
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3286 static struct point const zero = {0,0};
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3287 /* AIX XL C 1.02.0.0 rejects this.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3288 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
3289 of an if-expression whose if-part is not a constant expression */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3290 const char *g = "string";
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3291 ccp = &g + (g ? g-g : 0);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3292 /* HPUX 7.0 cc rejects these. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3293 ++ccp;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3294 p = (char**) ccp;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3295 ccp = (char const *const *) p;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3296 { /* SCO 3.2v4 cc rejects this. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3297 char *t;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3298 char const *s = 0 ? (char *) 0 : (char const *) 0;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3299
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3300 *t++ = 0;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3301 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3302 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3303 int x[] = {25, 17};
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3304 const int *foo = &x[0];
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3305 ++foo;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3306 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3307 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3308 typedef const int *iptr;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3309 iptr p = 0;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3310 ++p;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3311 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3312 { /* AIX XL C 1.02.0.0 rejects this saying
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3313 "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
3314 struct s { int j; const int *ap[3]; };
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3315 struct s *b; b->j = 5;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3316 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3317 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3318 const int foo = 10;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3319 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3320
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3321 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3322 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
3323 if { (eval echo configure:3324: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3324 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3325 ac_cv_c_const=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3326 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3327 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3328 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3329 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3330 ac_cv_c_const=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3331 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3332 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3333
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3334 echo "$ac_t""$ac_cv_c_const" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3335 if test $ac_cv_c_const = no; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3336 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3337 Defining const =
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3338 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3339 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3340 #define const
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3341 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3342 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3343
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3344 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3345
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3346
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3347 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
3348 echo "configure:3349: checking whether ${MAKE-make} sets \${MAKE}" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3349 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3350
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3351 cat > conftestmake <<\EOF
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3352 all:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3353 @echo 'ac_maketemp="${MAKE}"'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3354 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3355 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3356 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3357 if test -n "$ac_maketemp"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3358 eval ac_cv_prog_make_${ac_make}_set=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3359 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3360 eval ac_cv_prog_make_${ac_make}_set=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3361 fi
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3362 rm -f conftestmake
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3363 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
3364 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3365 SET_MAKE=
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3366 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3367 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3368 SET_MAKE="MAKE=${MAKE-make}"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3369 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3370
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3371
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3372 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
3373 echo "configure:3374: checking whether byte ordering is bigendian" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3374
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3375 ac_cv_c_bigendian=unknown
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3376 # See if sys/param.h defines the BYTE_ORDER macro.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3377 cat > conftest.$ac_ext <<EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
3378 #line 3379 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3379 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3380 #include <sys/types.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3381 #include <sys/param.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3382 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3383
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3384 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3385 bogus endian macros
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3386 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3387 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3388 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
3389 if { (eval echo configure:3390: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3390 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3391 # It does; now see whether it defined to BIG_ENDIAN or not.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3392 cat > conftest.$ac_ext <<EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
3393 #line 3394 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3394 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3395 #include <sys/types.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3396 #include <sys/param.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3397 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3398
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3399 #if BYTE_ORDER != BIG_ENDIAN
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3400 not big endian
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3401 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3402 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3403 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
3404 if { (eval echo configure:3405: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3405 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3406 ac_cv_c_bigendian=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3407 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3408 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3409 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3410 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3411 ac_cv_c_bigendian=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3412 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3413 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3414 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3415 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3416 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3417 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3418 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3419 if test $ac_cv_c_bigendian = unknown; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3420 cat > conftest.$ac_ext <<EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
3421 #line 3422 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3422 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3423 main () {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3424 /* Are we little or big endian? From Harbison&Steele. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3425 union
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3426 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3427 long l;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3428 char c[sizeof (long)];
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3429 } u;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3430 u.l = 1;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3431 exit (u.c[sizeof (long) - 1] == 1);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3432 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3433 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
3434 if { (eval echo configure:3435: \"$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
3435 then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3436 ac_cv_c_bigendian=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3437 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3438 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3439 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3440 rm -fr conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3441 ac_cv_c_bigendian=yes
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3442 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3443 rm -fr conftest*
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3444 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3445
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3446 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3447 if test $ac_cv_c_bigendian = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3448 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3449 Defining WORDS_BIGENDIAN
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3450 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3451 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3452 #define WORDS_BIGENDIAN 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3453 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3454 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3455
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3456 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3457
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3458
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3459 echo $ac_n "checking size of short""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
3460 echo "configure:3461: checking size of short" >&5
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
3461
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
3462 cat > conftest.$ac_ext <<EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
3463 #line 3464 "configure"
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3464 #include "confdefs.h"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3465 #include <stdio.h>
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3466 main()
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3467 {
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3468 FILE *f=fopen("conftestval", "w");
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3469 if (!f) exit(1);
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3470 fprintf(f, "%d\n", sizeof(short));
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3471 exit(0);
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3472 }
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3473 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
3474 if { (eval echo configure:3475: \"$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
3475 then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3476 ac_cv_sizeof_short=`cat conftestval`
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3477 else
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3478 echo "configure: failed program was:" >&5
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3479 cat conftest.$ac_ext >&5
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3480 rm -fr conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3481 ac_cv_sizeof_short=0
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3482 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3483 rm -fr conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3484 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3485 { test "$extra_verbose" = "yes" && cat << EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3486 Defining SIZEOF_SHORT = $ac_cv_sizeof_short
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3487 EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3488 cat >> confdefs.h <<EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3489 #define SIZEOF_SHORT $ac_cv_sizeof_short
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3490 EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3491 }
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3492
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3493
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3494 if test "$ac_cv_sizeof_short" = 0; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3495 echo ""
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3496 echo "*** PANIC *** Configure tests are not working - compiler is broken."
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3497 echo "*** PANIC *** Please examine config.log for compilation errors."
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3498 exit 1
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3499 fi
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3500 echo $ac_n "checking size of int""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
3501 echo "configure:3502: checking size of int" >&5
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
3502
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
3503 cat > conftest.$ac_ext <<EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
3504 #line 3505 "configure"
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3505 #include "confdefs.h"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3506 #include <stdio.h>
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3507 main()
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3508 {
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3509 FILE *f=fopen("conftestval", "w");
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3510 if (!f) exit(1);
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3511 fprintf(f, "%d\n", sizeof(int));
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3512 exit(0);
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3513 }
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3514 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
3515 if { (eval echo configure:3516: \"$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
3516 then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3517 ac_cv_sizeof_int=`cat conftestval`
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3518 else
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3519 echo "configure: failed program was:" >&5
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3520 cat conftest.$ac_ext >&5
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3521 rm -fr conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3522 ac_cv_sizeof_int=0
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3523 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3524 rm -fr conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3525 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3526 { test "$extra_verbose" = "yes" && cat << EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3527 Defining SIZEOF_INT = $ac_cv_sizeof_int
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3528 EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3529 cat >> confdefs.h <<EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3530 #define SIZEOF_INT $ac_cv_sizeof_int
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3531 EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3532 }
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3533
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3534
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3535 echo $ac_n "checking size of long""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
3536 echo "configure:3537: checking size of long" >&5
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
3537
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
3538 cat > conftest.$ac_ext <<EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
3539 #line 3540 "configure"
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3540 #include "confdefs.h"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3541 #include <stdio.h>
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3542 main()
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3543 {
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3544 FILE *f=fopen("conftestval", "w");
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3545 if (!f) exit(1);
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3546 fprintf(f, "%d\n", sizeof(long));
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3547 exit(0);
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3548 }
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3549 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
3550 if { (eval echo configure:3551: \"$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
3551 then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3552 ac_cv_sizeof_long=`cat conftestval`
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3553 else
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3554 echo "configure: failed program was:" >&5
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3555 cat conftest.$ac_ext >&5
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3556 rm -fr conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3557 ac_cv_sizeof_long=0
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3558 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3559 rm -fr conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3560 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3561 { test "$extra_verbose" = "yes" && cat << EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3562 Defining SIZEOF_LONG = $ac_cv_sizeof_long
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3563 EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3564 cat >> confdefs.h <<EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3565 #define SIZEOF_LONG $ac_cv_sizeof_long
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3566 EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3567 }
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3568
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3569
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3570 echo $ac_n "checking size of long long""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
3571 echo "configure:3572: checking size of long long" >&5
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
3572
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
3573 cat > conftest.$ac_ext <<EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
3574 #line 3575 "configure"
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3575 #include "confdefs.h"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3576 #include <stdio.h>
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3577 main()
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3578 {
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3579 FILE *f=fopen("conftestval", "w");
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3580 if (!f) exit(1);
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3581 fprintf(f, "%d\n", sizeof(long long));
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3582 exit(0);
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3583 }
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3584 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
3585 if { (eval echo configure:3586: \"$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
3586 then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3587 ac_cv_sizeof_long_long=`cat conftestval`
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3588 else
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3589 echo "configure: failed program was:" >&5
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3590 cat conftest.$ac_ext >&5
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3591 rm -fr conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3592 ac_cv_sizeof_long_long=0
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3593 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3594 rm -fr conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3595 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3596 { test "$extra_verbose" = "yes" && cat << EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3597 Defining SIZEOF_LONG_LONG = $ac_cv_sizeof_long_long
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3598 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3599 cat >> confdefs.h <<EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3600 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3601 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3602 }
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3603
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3604
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3605 echo $ac_n "checking size of void *""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
3606 echo "configure:3607: checking size of void *" >&5
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
3607
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
3608 cat > conftest.$ac_ext <<EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
3609 #line 3610 "configure"
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3610 #include "confdefs.h"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3611 #include <stdio.h>
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3612 main()
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3613 {
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3614 FILE *f=fopen("conftestval", "w");
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3615 if (!f) exit(1);
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3616 fprintf(f, "%d\n", sizeof(void *));
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3617 exit(0);
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3618 }
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3619 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
3620 if { (eval echo configure:3621: \"$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
3621 then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3622 ac_cv_sizeof_void_p=`cat conftestval`
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3623 else
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3624 echo "configure: failed program was:" >&5
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3625 cat conftest.$ac_ext >&5
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3626 rm -fr conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3627 ac_cv_sizeof_void_p=0
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3628 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3629 rm -fr conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3630 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3631 { test "$extra_verbose" = "yes" && cat << EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3632 Defining SIZEOF_VOID_P = $ac_cv_sizeof_void_p
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3633 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3634 cat >> confdefs.h <<EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3635 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3636 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3637 }
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3638
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3639
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3640
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3641 echo $ac_n "checking for long file names""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
3642 echo "configure:3643: checking for long file names" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3643
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3644 ac_cv_sys_long_file_names=yes
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3645 # Test for long file names in all the places we know might matter:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3646 # . the current directory, where building will happen
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3647 # $prefix/lib where we will be installing things
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3648 # $exec_prefix/lib likewise
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3649 # eval it to expand exec_prefix.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3650 # $TMPDIR if set, where it might want to write temporary files
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3651 # if $TMPDIR is not set:
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3652 # /tmp where it might want to write temporary files
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3653 # /var/tmp likewise
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3654 # /usr/tmp likewise
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3655 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3656 ac_tmpdirs="$TMPDIR"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3657 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3658 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3659 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3660 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
3661 test -d $ac_dir || continue
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3662 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
3663 (echo 1 > $ac_dir/conftest9012345) 2>/dev/null
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3664 (echo 2 > $ac_dir/conftest9012346) 2>/dev/null
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3665 val=`cat $ac_dir/conftest9012345 2>/dev/null`
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3666 if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3667 ac_cv_sys_long_file_names=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3668 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3669 break
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3670 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3671 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3672 done
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3673
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3674 echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3675 if test $ac_cv_sys_long_file_names = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3676 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3677 Defining HAVE_LONG_FILE_NAMES
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3678 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3679 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3680 #define HAVE_LONG_FILE_NAMES 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3681 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3682 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3683
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3684 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3685
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3686
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3687
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
3688 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
3689 echo "configure:3690: checking for sin in -lm" >&5
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
3690 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
149
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 xe_check_libs=" -lm "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3693 cat > conftest.$ac_ext <<EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
3694 #line 3695 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3695 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3696 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3697 /* 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
3698 builtin and then its argument prototype would still apply. */
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
3699 char sin();
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3700
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3701 int main() {
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
3702 sin()
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3703 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3704 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
3705 if { (eval echo configure:3706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3706 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3707 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3708 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3709 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3710 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3711 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3712 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3713 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3714 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3715 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3716
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3717 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
3718 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3719 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3720 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3721 { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3722 Defining $ac_tr_lib
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3723 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3724 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3725 #define $ac_tr_lib 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3726 EOF
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
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3729 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
3730
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3731 else
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3732 echo "$ac_t""no" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3733 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3734
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3735
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3736
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3737 { test "$extra_verbose" = "yes" && cat << \EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3738 Defining LISP_FLOAT_TYPE
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3739 EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3740 cat >> confdefs.h <<\EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3741 #define LISP_FLOAT_TYPE 1
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3742 EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3743 }
149
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
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
3746 cat > conftest.$ac_ext <<EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
3747 #line 3748 "configure"
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
3748 #include "confdefs.h"
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
3749 #include <math.h>
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
3750 int main() {
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
3751 return atanh(1.0) + asinh(1.0) + acosh(1.0);
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
3752 ; return 0; }
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
3753 EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
3754 if { (eval echo configure:3755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
3755 rm -rf conftest*
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
3756 { test "$extra_verbose" = "yes" && cat << \EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
3757 Defining HAVE_INVERSE_HYPERBOLIC
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
3758 EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
3759 cat >> confdefs.h <<\EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
3760 #define HAVE_INVERSE_HYPERBOLIC 1
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
3761 EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
3762 }
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
3763
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
3764 else
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
3765 echo "configure: failed program was:" >&5
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
3766 cat conftest.$ac_ext >&5
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
3767 fi
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
3768 rm -f conftest*
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
3769
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3770 echo "checking type of mail spool file locking" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
3771 echo "configure:3772: checking type of mail spool file locking" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3772 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3773 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3774 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3775 Defining REAL_MAIL_USE_LOCKF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3776 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3777 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3778 #define REAL_MAIL_USE_LOCKF 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3779 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3780 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3781
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3782 elif test "$mail_locking" = "flock"; then { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3783 Defining REAL_MAIL_USE_FLOCK
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3784 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3785 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3786 #define REAL_MAIL_USE_FLOCK 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3787 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3788 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3789
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
3790 else mail_locking="dot-locking"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3791 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3792
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3793
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3794 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
3795 echo "configure:3796: checking for kstat_open in -lkstat" >&5
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3796 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3797
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3798 xe_check_libs=" -lkstat "
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3799 cat > conftest.$ac_ext <<EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
3800 #line 3801 "configure"
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3801 #include "confdefs.h"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3802 /* Override any gcc2 internal prototype to avoid an error. */
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3803 /* 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
3804 builtin and then its argument prototype would still apply. */
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3805 char kstat_open();
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3806
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3807 int main() {
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3808 kstat_open()
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3809 ; return 0; }
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3810 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
3811 if { (eval echo configure:3812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3812 rm -rf conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3813 eval "ac_cv_lib_$ac_lib_var=yes"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3814 else
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3815 echo "configure: failed program was:" >&5
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3816 cat conftest.$ac_ext >&5
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3817 rm -rf conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3818 eval "ac_cv_lib_$ac_lib_var=no"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3819 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3820 rm -f conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3821 xe_check_libs=""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3822
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3823 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3824 echo "$ac_t""yes" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3825 ac_tr_lib=HAVE_LIB`echo kstat | sed -e 's/[^a-zA-Z0-9_]/_/g' \
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3826 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3827 { test "$extra_verbose" = "yes" && cat << EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3828 Defining $ac_tr_lib
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3829 EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3830 cat >> confdefs.h <<EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3831 #define $ac_tr_lib 1
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3832 EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3833 }
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3834
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3835 LIBS="-lkstat $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkstat\" to \$LIBS"; fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3836
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3837 else
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3838 echo "$ac_t""no" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3839 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3840
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3841
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3842
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3843
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3844 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
3845 echo "configure:3846: checking for kvm_read in -lkvm" >&5
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3846 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3847
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3848 xe_check_libs=" -lkvm "
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3849 cat > conftest.$ac_ext <<EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
3850 #line 3851 "configure"
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3851 #include "confdefs.h"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3852 /* Override any gcc2 internal prototype to avoid an error. */
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3853 /* 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
3854 builtin and then its argument prototype would still apply. */
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3855 char kvm_read();
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3856
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3857 int main() {
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3858 kvm_read()
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3859 ; return 0; }
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3860 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
3861 if { (eval echo configure:3862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3862 rm -rf conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3863 eval "ac_cv_lib_$ac_lib_var=yes"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3864 else
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3865 echo "configure: failed program was:" >&5
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3866 cat conftest.$ac_ext >&5
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3867 rm -rf conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3868 eval "ac_cv_lib_$ac_lib_var=no"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3869 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3870 rm -f conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3871 xe_check_libs=""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3872
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3873 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3874 echo "$ac_t""yes" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3875 ac_tr_lib=HAVE_LIB`echo kvm | sed -e 's/[^a-zA-Z0-9_]/_/g' \
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3876 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3877 { test "$extra_verbose" = "yes" && cat << EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3878 Defining $ac_tr_lib
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3879 EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3880 cat >> confdefs.h <<EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3881 #define $ac_tr_lib 1
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3882 EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3883 }
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3884
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3885 LIBS="-lkvm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkvm\" to \$LIBS"; fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3886
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3887 else
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3888 echo "$ac_t""no" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3889 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3890
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3891
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3892
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3893
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3894 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
3895 echo "configure:3896: checking for cma_open in -lpthreads" >&5
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3896 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3897
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3898 xe_check_libs=" -lpthreads "
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3899 cat > conftest.$ac_ext <<EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
3900 #line 3901 "configure"
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3901 #include "confdefs.h"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3902 /* Override any gcc2 internal prototype to avoid an error. */
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3903 /* 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
3904 builtin and then its argument prototype would still apply. */
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3905 char cma_open();
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3906
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3907 int main() {
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3908 cma_open()
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3909 ; return 0; }
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3910 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
3911 if { (eval echo configure:3912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3912 rm -rf conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3913 eval "ac_cv_lib_$ac_lib_var=yes"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3914 else
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3915 echo "configure: failed program was:" >&5
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3916 cat conftest.$ac_ext >&5
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3917 rm -rf conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3918 eval "ac_cv_lib_$ac_lib_var=no"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3919 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3920 rm -f conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3921 xe_check_libs=""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3922
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3923 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3924 echo "$ac_t""yes" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3925 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
3926 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3927 { test "$extra_verbose" = "yes" && cat << EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3928 Defining $ac_tr_lib
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3929 EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3930 cat >> confdefs.h <<EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3931 #define $ac_tr_lib 1
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3932 EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3933 }
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3934
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3935 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
3936
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3937 else
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3938 echo "$ac_t""no" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3939 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3940
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3941
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3942 if test "$ac_cv_lib_pthreads_cma_open" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3943 case "$opsys" in decosf*) c_switch_site="$c_switch_site -threads";; esac
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3944 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3945
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3946 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
3947 echo "configure:3948: checking whether the -xildoff compiler flag is required" >&5
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3948 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
3949 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
3950 then echo "$ac_t""no" 1>&6;
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3951 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
3952 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3953 else echo "$ac_t""no" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3954 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3955
165
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents: 163
diff changeset
3956 if test "$opsys" = "sol2" && test "$OS_RELEASE" -ge 56; then
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3957 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
3958 echo "configure:3959: checking for \"-z ignore\" linker flag" >&5
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3959 case "`ld -h 2>&1`" in
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3960 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3961 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;;
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3962 *) echo "$ac_t""no" 1>&6 ;;
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3963 esac
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3964 fi
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3965
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3966
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3967 echo "checking "for specified window system"" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
3968 echo "configure:3969: checking "for specified window system"" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3969
187
b405438285a2 Import from CVS: tag r20-3b20
cvs
parents: 185
diff changeset
3970 if test "$with_x11" != "no"; then
b405438285a2 Import from CVS: tag r20-3b20
cvs
parents: 185
diff changeset
3971 test "$x_includes $x_libraries" != "NONE NONE" && \
b405438285a2 Import from CVS: tag r20-3b20
cvs
parents: 185
diff changeset
3972 window_system=x11 with_x11=yes
b405438285a2 Import from CVS: tag r20-3b20
cvs
parents: 185
diff changeset
3973
b405438285a2 Import from CVS: tag r20-3b20
cvs
parents: 185
diff changeset
3974 if test "$x_includes $x_libraries" = "NONE NONE"; then
b405438285a2 Import from CVS: tag r20-3b20
cvs
parents: 185
diff changeset
3975 if test -n "$OPENWINHOME" \
b405438285a2 Import from CVS: tag r20-3b20
cvs
parents: 185
diff changeset
3976 -a "$OPENWINHOME" != "/usr/openwin" \
b405438285a2 Import from CVS: tag r20-3b20
cvs
parents: 185
diff changeset
3977 -a -d "$OPENWINHOME"; then
b405438285a2 Import from CVS: tag r20-3b20
cvs
parents: 185
diff changeset
3978 test -d "$OPENWINHOME/lib" && x_libraries="$OPENWINHOME/lib"
b405438285a2 Import from CVS: tag r20-3b20
cvs
parents: 185
diff changeset
3979 test -d "$OPENWINHOME/include" && x_includes="$OPENWINHOME/include"
b405438285a2 Import from CVS: tag r20-3b20
cvs
parents: 185
diff changeset
3980 test -d "$OPENWINHOME/share/include" && x_includes="$OPENWINHOME/share/include"
b405438285a2 Import from CVS: tag r20-3b20
cvs
parents: 185
diff changeset
3981 else
b405438285a2 Import from CVS: tag r20-3b20
cvs
parents: 185
diff changeset
3982 for dir in "/usr/X11R6/include" "/usr/include/X11R6"; do
b405438285a2 Import from CVS: tag r20-3b20
cvs
parents: 185
diff changeset
3983 if test -d "$dir/X11"; then x_includes="$dir"; break; fi
b405438285a2 Import from CVS: tag r20-3b20
cvs
parents: 185
diff changeset
3984 done
b405438285a2 Import from CVS: tag r20-3b20
cvs
parents: 185
diff changeset
3985 if test "$x_includes" != "NONE"; then
b405438285a2 Import from CVS: tag r20-3b20
cvs
parents: 185
diff changeset
3986 for dir in "/usr/X11R6/lib" "/usr/lib/X11R6"; do
b405438285a2 Import from CVS: tag r20-3b20
cvs
parents: 185
diff changeset
3987 if test -d "$dir"; then x_libraries="$dir"; break; fi
b405438285a2 Import from CVS: tag r20-3b20
cvs
parents: 185
diff changeset
3988 done
b405438285a2 Import from CVS: tag r20-3b20
cvs
parents: 185
diff changeset
3989 fi
b405438285a2 Import from CVS: tag r20-3b20
cvs
parents: 185
diff changeset
3990 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3991 fi
187
b405438285a2 Import from CVS: tag r20-3b20
cvs
parents: 185
diff changeset
3992
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3993 # 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
3994 # paths, otherwise set no_x=yes.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3995 # 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
3996 # --without-x overrides everything else, but does not touch the cache.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3997 echo $ac_n "checking for X""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
3998 echo "configure:3999: checking for X" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3999
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4000 # Check whether --with-x or --without-x was given.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4001 if test "${with_x+set}" = set; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4002 withval="$with_x"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4003 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4004 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4005
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4006 # $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
4007 if test "x$with_x" = xno; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4008 # The user explicitly disabled X.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4009 have_x=disabled
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4010 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4011 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4012 # Both variables are already set.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4013 have_x=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4014 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4015
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4016 # 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
4017 ac_x_includes=NO ac_x_libraries=NO
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4018 rm -fr conftestdir
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4019 if mkdir conftestdir; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4020 cd conftestdir
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4021 # 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
4022 cat > Imakefile <<'EOF'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4023 acfindx:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4024 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4025 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4026 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4027 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4028 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4029 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4030 for ac_extension in a so sl; do
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4031 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4032 test -f $ac_im_libdir/libX11.$ac_extension; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4033 ac_im_usrlibdir=$ac_im_libdir; break
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4034 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4035 done
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4036 # Screen out bogus values from the imake configuration. They are
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4037 # bogus both because they are the default anyway, and because
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4038 # using them would break gcc on systems where it needs fixed includes.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4039 case "$ac_im_incroot" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4040 /usr/include) ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4041 *) 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
4042 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4043 case "$ac_im_usrlibdir" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4044 /usr/lib | /lib) ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4045 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4046 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4047 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4048 cd ..
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4049 rm -fr conftestdir
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4050 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4051
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4052 if test "$ac_x_includes" = NO; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4053 # 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
4054 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
4055
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4056 # First, try using that file with no special directory specified.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4057 cat > conftest.$ac_ext <<EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4058 #line 4059 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4059 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4060 #include <$x_direct_test_include>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4061 EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4062 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4063 { (eval echo configure:4064: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4064 ac_err=`grep -v '^ *+' conftest.out`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4065 if test -z "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4066 rm -rf conftest*
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4067 # We can compile using X headers with no special include directory.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4068 ac_x_includes=
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4069 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4070 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4071 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4072 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4073 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4074 # Look for the header file in a standard set of common directories.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4075 # 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
4076 for ac_dir in \
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4077 /usr/X11/include \
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4078 /usr/X11R6/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4079 /usr/X11R5/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4080 /usr/X11R4/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4081 \
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4082 /usr/include/X11 \
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4083 /usr/include/X11R6 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4084 /usr/include/X11R5 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4085 /usr/include/X11R4 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4086 \
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4087 /usr/local/X11/include \
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4088 /usr/local/X11R6/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4089 /usr/local/X11R5/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4090 /usr/local/X11R4/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4091 \
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4092 /usr/local/include/X11 \
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4093 /usr/local/include/X11R6 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4094 /usr/local/include/X11R5 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4095 /usr/local/include/X11R4 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4096 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4097 /usr/X386/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4098 /usr/x386/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4099 /usr/XFree86/include/X11 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4100 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4101 /usr/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4102 /usr/local/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4103 /usr/unsupported/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4104 /usr/athena/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4105 /usr/local/x11r5/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4106 /usr/lpp/Xamples/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4107 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4108 /usr/openwin/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4109 /usr/openwin/share/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4110 ; \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4111 do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4112 if test -r "$ac_dir/$x_direct_test_include"; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4113 ac_x_includes=$ac_dir
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4114 break
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4115 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4116 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4117 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4118 rm -f conftest*
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4119 fi # $ac_x_includes = NO
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4120
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4121 if test "$ac_x_libraries" = NO; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4122 # Check for the libraries.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4123
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4124 test -z "$x_direct_test_library" && x_direct_test_library=Xt
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4125 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4126
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4127 # See if we find them without any special options.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4128 # Don't add to $LIBS permanently.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4129 ac_save_LIBS="$LIBS"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4130 LIBS="-l$x_direct_test_library $LIBS"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4131 cat > conftest.$ac_ext <<EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4132 #line 4133 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4133 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4134
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4135 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4136 ${x_direct_test_function}()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4137 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4138 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4139 if { (eval echo configure:4140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4140 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4141 LIBS="$ac_save_LIBS"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4142 # We can link X programs with no special library path.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4143 ac_x_libraries=
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4144 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4145 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4146 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4147 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4148 LIBS="$ac_save_LIBS"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4149 # First see if replacing the include by lib works.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4150 # 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
4151 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4152 /usr/X11/lib \
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4153 /usr/X11R6/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4154 /usr/X11R5/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4155 /usr/X11R4/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4156 \
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4157 /usr/lib/X11 \
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4158 /usr/lib/X11R6 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4159 /usr/lib/X11R5 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4160 /usr/lib/X11R4 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4161 \
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4162 /usr/local/X11/lib \
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4163 /usr/local/X11R6/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4164 /usr/local/X11R5/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4165 /usr/local/X11R4/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4166 \
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4167 /usr/local/lib/X11 \
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4168 /usr/local/lib/X11R6 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4169 /usr/local/lib/X11R5 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4170 /usr/local/lib/X11R4 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4171 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4172 /usr/X386/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4173 /usr/x386/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4174 /usr/XFree86/lib/X11 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4175 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4176 /usr/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4177 /usr/local/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4178 /usr/unsupported/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4179 /usr/athena/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4180 /usr/local/x11r5/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4181 /usr/lpp/Xamples/lib \
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4182 /lib/usr/lib/X11 \
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4183 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4184 /usr/openwin/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4185 /usr/openwin/share/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4186 ; \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4187 do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4188 for ac_extension in a so sl; do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4189 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
4190 ac_x_libraries=$ac_dir
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4191 break 2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4192 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4193 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4194 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4195 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4196 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4197 fi # $ac_x_libraries = NO
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4198
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4199 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4200 # Didn't find X anywhere. Cache the known absence of X.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4201 ac_cv_have_x="have_x=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4202 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4203 # Record where we found X for the cache.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4204 ac_cv_have_x="have_x=yes \
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4205 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4206 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4207 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4208 eval "$ac_cv_have_x"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4209 fi # $with_x != no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4210
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4211 if test "$have_x" != yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4212 echo "$ac_t""$have_x" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4213 no_x=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4214 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4215 # 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
4216 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4217 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4218 # Update the cache value to reflect the command line values.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4219 ac_cv_have_x="have_x=yes \
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4220 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4221 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4222 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4223
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4224 if test "$no_x" = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4225 # 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
4226 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4227 Defining X_DISPLAY_MISSING
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4228 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4229 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4230 #define X_DISPLAY_MISSING 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4231 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4232 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4233
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4234 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4235 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4236 if test -n "$x_includes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4237 X_CFLAGS="$X_CFLAGS -I$x_includes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4238 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4239
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4240 # 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
4241 if test -n "$x_libraries"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4242 X_LIBS="$X_LIBS -L$x_libraries"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4243 # 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
4244 # others require no space. Words are not sufficient . . . .
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4245 case "`(uname -sr) 2>/dev/null`" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4246 "SunOS 5"*)
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4247 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4248 echo "configure:4249: checking whether -R must be followed by a space" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4249 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4250 cat > conftest.$ac_ext <<EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4251 #line 4252 "configure"
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4252 #include "confdefs.h"
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4253
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4254 int main() {
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4255
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4256 ; return 0; }
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4257 EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4258 if { (eval echo configure:4259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4259 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4260 ac_R_nospace=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4261 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4262 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4263 cat conftest.$ac_ext >&5
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 ac_R_nospace=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4266 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4267 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4268 if test $ac_R_nospace = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4269 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4270 X_LIBS="$X_LIBS -R$x_libraries"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4271 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4272 LIBS="$ac_xsave_LIBS -R $x_libraries"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4273 cat > conftest.$ac_ext <<EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4274 #line 4275 "configure"
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4275 #include "confdefs.h"
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4276
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4277 int main() {
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4278
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4279 ; return 0; }
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4280 EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4281 if { (eval echo configure:4282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4282 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4283 ac_R_space=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4284 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4285 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4286 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4287 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4288 ac_R_space=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4289 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4290 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4291 if test $ac_R_space = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4292 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4293 X_LIBS="$X_LIBS -R $x_libraries"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4294 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4295 echo "$ac_t""neither works" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4296 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4297 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4298 LIBS="$ac_xsave_LIBS"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4299 esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4300 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4301
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4302 # Check for system-dependent libraries X programs must link with.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4303 # Do this before checking for the system-independent R6 libraries
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4304 # (-lICE), since we may need -lsocket or whatever for X linking.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4305
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4306 if test "$ISC" = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4307 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4308 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4309 # 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
4310 # libraries were built with DECnet support. And karl@cs.umb.edu says
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4311 # the Alpha needs dnet_stub (dnet does not exist).
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4312 if test "$with_dnet" = "no" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4313 ac_cv_lib_dnet_dnet_ntoa=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4314 else
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 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4317 echo "configure:4318: checking for dnet_ntoa in -ldnet" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4318 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4319
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4320 xe_check_libs=" -ldnet "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4321 cat > conftest.$ac_ext <<EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4322 #line 4323 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4323 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4324 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4325 /* 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
4326 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4327 char dnet_ntoa();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4328
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4329 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4330 dnet_ntoa()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4331 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4332 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4333 if { (eval echo configure:4334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4334 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4335 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4336 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4337 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4338 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4339 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4340 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4341 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4342 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4343 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4344
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4345 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
4346 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4347 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4348 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4349 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4350 fi
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 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4353
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4354 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4355
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4356 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4357 echo "configure:4358: checking for dnet_ntoa in -ldnet_stub" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4358 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4359
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4360 xe_check_libs=" -ldnet_stub "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4361 cat > conftest.$ac_ext <<EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4362 #line 4363 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4363 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4364 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4365 /* 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
4366 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4367 char dnet_ntoa();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4368
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4369 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4370 dnet_ntoa()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4371 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4372 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4373 if { (eval echo configure:4374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4374 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4375 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4376 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4377 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4378 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4379 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4380 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4381 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4382 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4383 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4384
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4385 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
4386 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4387 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4388 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4389 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4390 fi
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
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4393 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4394
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4395 # 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
4396 # to get the SysV transport functions.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4397 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4398 # needs -lnsl.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4399 # The nsl library prevents programs from opening the X display
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4400 # on Irix 5.2, according to dickey@clark.net.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4401 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4402 echo "configure:4403: checking for gethostbyname" >&5
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4403
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4404 cat > conftest.$ac_ext <<EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4405 #line 4406 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4406 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4407 /* System header to define __stub macros and hopefully few prototypes,
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4408 which can conflict with char gethostbyname(); below. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4409 #include <assert.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4410 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4411 /* 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
4412 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4413 char gethostbyname();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4414
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4415 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4416
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4417 /* The GNU C library defines this for functions which it implements
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4418 to always fail with ENOSYS. Some functions are actually named
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4419 something starting with __ and the normal name is an alias. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4420 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4421 choke me
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4422 #else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4423 gethostbyname();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4424 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4425
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4426 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4427 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4428 if { (eval echo configure:4429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4429 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4430 eval "ac_cv_func_gethostbyname=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4431 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4432 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4433 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4434 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4435 eval "ac_cv_func_gethostbyname=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4436 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4437 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4438
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4439 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4440 echo "$ac_t""yes" 1>&6
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 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4443 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4444 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4445
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4446 if test $ac_cv_func_gethostbyname = no; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4447
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4448 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4449 echo "configure:4450: checking for gethostbyname in -lnsl" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4450 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4451
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4452 xe_check_libs=" -lnsl "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4453 cat > conftest.$ac_ext <<EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4454 #line 4455 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4455 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4456 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4457 /* 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
4458 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4459 char gethostbyname();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4460
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4461 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4462 gethostbyname()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4463 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4464 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4465 if { (eval echo configure:4466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4466 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4467 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4468 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4469 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4470 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4471 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4472 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4473 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4474 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4475 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4476
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4477 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
4478 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4479 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4480 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4481 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4482 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4483
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4484
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4485 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4486
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4487 # lieder@skyler.mavd.honeywell.com says without -lsocket,
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4488 # socket/setsockopt and other routines are undefined under SCO ODT
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4489 # 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
4490 # on later versions), says simon@lia.di.epfl.ch: it contains
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4491 # gethostby* variants that don't use the nameserver (or something).
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4492 # -lsocket must be given before -lnsl if both are needed.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4493 # We assume that if connect needs -lnsl, so does gethostbyname.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4494 echo $ac_n "checking for connect""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4495 echo "configure:4496: checking for connect" >&5
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4496
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4497 cat > conftest.$ac_ext <<EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4498 #line 4499 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4499 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4500 /* System header to define __stub macros and hopefully few prototypes,
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4501 which can conflict with char connect(); below. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4502 #include <assert.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4503 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4504 /* 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
4505 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4506 char connect();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4507
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4508 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4509
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4510 /* The GNU C library defines this for functions which it implements
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4511 to always fail with ENOSYS. Some functions are actually named
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4512 something starting with __ and the normal name is an alias. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4513 #if defined (__stub_connect) || defined (__stub___connect)
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4514 choke me
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4515 #else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4516 connect();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4517 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4518
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4519 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4520 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4521 if { (eval echo configure:4522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4522 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4523 eval "ac_cv_func_connect=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4524 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4525 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4526 cat conftest.$ac_ext >&5
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 eval "ac_cv_func_connect=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4529 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4530 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4531
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4532 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4533 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4534 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4535 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4536 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4537 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4538
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4539 if test $ac_cv_func_connect = no; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4540
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4541 xe_msg_checking="for connect in -lsocket"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4542 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
4543 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4544 echo "configure:4545: checking "$xe_msg_checking"" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4545 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4546
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4547 xe_check_libs=" -lsocket $X_EXTRA_LIBS"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4548 cat > conftest.$ac_ext <<EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4549 #line 4550 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4550 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4551 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4552 /* 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
4553 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4554 char connect();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4555
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4556 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4557 connect()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4558 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4559 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4560 if { (eval echo configure:4561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4561 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4562 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4563 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4564 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4565 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4566 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4567 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4568 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4569 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4570 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4571
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4572 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
4573 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4574 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4575 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4576 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4577 fi
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
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4580 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4581
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4582 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4583 echo $ac_n "checking for remove""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4584 echo "configure:4585: checking for remove" >&5
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4585
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4586 cat > conftest.$ac_ext <<EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4587 #line 4588 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4588 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4589 /* System header to define __stub macros and hopefully few prototypes,
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4590 which can conflict with char remove(); below. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4591 #include <assert.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4592 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4593 /* 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
4594 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4595 char remove();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4596
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4597 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4598
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4599 /* The GNU C library defines this for functions which it implements
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4600 to always fail with ENOSYS. Some functions are actually named
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4601 something starting with __ and the normal name is an alias. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4602 #if defined (__stub_remove) || defined (__stub___remove)
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4603 choke me
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4604 #else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4605 remove();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4606 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4607
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4608 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4609 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4610 if { (eval echo configure:4611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4611 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4612 eval "ac_cv_func_remove=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4613 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4614 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4615 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4616 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4617 eval "ac_cv_func_remove=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4618 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4619 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4620
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4621 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4622 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4623 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4624 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4625 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4626 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4627
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4628 if test $ac_cv_func_remove = no; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4629
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4630 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4631 echo "configure:4632: checking for remove in -lposix" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4632 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4633
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4634 xe_check_libs=" -lposix "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4635 cat > conftest.$ac_ext <<EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4636 #line 4637 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4637 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4638 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4639 /* 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
4640 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4641 char remove();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4642
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4643 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4644 remove()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4645 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4646 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4647 if { (eval echo configure:4648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4648 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4649 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4650 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4651 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4652 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4653 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4654 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4655 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4656 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4657 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4658
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4659 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
4660 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4661 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4662 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4663 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4664 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4665
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4666
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4667 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4668
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4669 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4670 echo $ac_n "checking for shmat""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4671 echo "configure:4672: checking for shmat" >&5
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4672
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4673 cat > conftest.$ac_ext <<EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4674 #line 4675 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4675 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4676 /* System header to define __stub macros and hopefully few prototypes,
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4677 which can conflict with char shmat(); below. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4678 #include <assert.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4679 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4680 /* 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
4681 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4682 char shmat();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4683
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4684 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4685
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4686 /* The GNU C library defines this for functions which it implements
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4687 to always fail with ENOSYS. Some functions are actually named
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4688 something starting with __ and the normal name is an alias. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4689 #if defined (__stub_shmat) || defined (__stub___shmat)
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4690 choke me
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4691 #else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4692 shmat();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4693 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4694
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4695 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4696 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4697 if { (eval echo configure:4698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4698 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4699 eval "ac_cv_func_shmat=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4700 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4701 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4702 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4703 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4704 eval "ac_cv_func_shmat=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4705 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4706 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4707
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4708 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4709 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4710 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4711 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4712 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4713 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4714
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4715 if test $ac_cv_func_shmat = no; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4716
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4717 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4718 echo "configure:4719: checking for shmat in -lipc" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4719 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4720
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4721 xe_check_libs=" -lipc "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4722 cat > conftest.$ac_ext <<EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4723 #line 4724 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4724 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4725 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4726 /* 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
4727 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4728 char shmat();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4729
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4730 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4731 shmat()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4732 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4733 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4734 if { (eval echo configure:4735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4735 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4736 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4737 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4738 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4739 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4740 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4741 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4742 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4743 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4744 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4745
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4746 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
4747 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4748 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4749 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4750 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4751 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4752
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4753
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4754 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4755 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4756
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4757 # Check for libraries that X11R6 Xt/Xaw programs need.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4758 ac_save_LDFLAGS="$LDFLAGS"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4759 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4760 # 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
4761 # 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
4762 # 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
4763 # These have to be linked with before -lX11, unlike the other
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4764 # libraries we check for below, so use a different variable.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4765 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4766
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4767 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4768 echo "configure:4769: checking for IceConnectionNumber in -lICE" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4769 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4770
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4771 xe_check_libs=" -lICE "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4772 cat > conftest.$ac_ext <<EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4773 #line 4774 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4774 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4775 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4776 /* 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
4777 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4778 char IceConnectionNumber();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4779
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4780 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4781 IceConnectionNumber()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4782 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4783 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4784 if { (eval echo configure:4785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4785 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4786 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4787 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4788 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4789 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4790 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4791 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4792 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4793 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4794 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4795
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4796 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
4797 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4798 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4799 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4800 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4801 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4802
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4803
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4804 LDFLAGS="$ac_save_LDFLAGS"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4805
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4806 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4807 # Autoconf claims to find X library and include dirs for us.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4808 if test "$no_x" = "yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4809 then with_x11=no window_system=none HAVE_X_WINDOWS=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4810 else with_x11=yes window_system=x11 HAVE_X_WINDOWS=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4811 fi
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 case "$with_x11" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4815 yes ) window_system=x11 HAVE_X_WINDOWS=yes ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4816 no ) window_system=none HAVE_X_WINDOWS=no ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4817 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4818
231
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents: 227
diff changeset
4819 if test "$window_system" = "none"; then
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents: 227
diff changeset
4820 echo "checking for MS-Windows" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4821 echo "configure:4822: checking for MS-Windows" >&5
231
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents: 227
diff changeset
4822
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents: 227
diff changeset
4823 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4824 echo "configure:4825: checking for main in -lgdi32" >&5
231
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents: 227
diff changeset
4825 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'`
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents: 227
diff changeset
4826
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents: 227
diff changeset
4827 xe_check_libs=" -lgdi32 "
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents: 227
diff changeset
4828 cat > conftest.$ac_ext <<EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4829 #line 4830 "configure"
231
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents: 227
diff changeset
4830 #include "confdefs.h"
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents: 227
diff changeset
4831
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents: 227
diff changeset
4832 int main() {
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents: 227
diff changeset
4833 main()
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents: 227
diff changeset
4834 ; return 0; }
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents: 227
diff changeset
4835 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4836 if { (eval echo configure:4837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
231
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents: 227
diff changeset
4837 rm -rf conftest*
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents: 227
diff changeset
4838 eval "ac_cv_lib_$ac_lib_var=yes"
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents: 227
diff changeset
4839 else
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents: 227
diff changeset
4840 echo "configure: failed program was:" >&5
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents: 227
diff changeset
4841 cat conftest.$ac_ext >&5
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents: 227
diff changeset
4842 rm -rf conftest*
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents: 227
diff changeset
4843 eval "ac_cv_lib_$ac_lib_var=no"
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents: 227
diff changeset
4844 fi
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents: 227
diff changeset
4845 rm -f conftest*
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents: 227
diff changeset
4846 xe_check_libs=""
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents: 227
diff changeset
4847
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents: 227
diff changeset
4848 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents: 227
diff changeset
4849 echo "$ac_t""yes" 1>&6
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents: 227
diff changeset
4850 have_msw=yes
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents: 227
diff changeset
4851 else
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents: 227
diff changeset
4852 echo "$ac_t""no" 1>&6
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents: 227
diff changeset
4853 fi
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents: 227
diff changeset
4854
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents: 227
diff changeset
4855
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents: 227
diff changeset
4856 if test "$have_msw" = "yes"; then
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents: 227
diff changeset
4857 { test "$extra_verbose" = "yes" && cat << \EOF
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents: 227
diff changeset
4858 Defining HAVE_MS_WINDOWS
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents: 227
diff changeset
4859 EOF
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents: 227
diff changeset
4860 cat >> confdefs.h <<\EOF
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents: 227
diff changeset
4861 #define HAVE_MS_WINDOWS 1
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents: 227
diff changeset
4862 EOF
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents: 227
diff changeset
4863 }
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents: 227
diff changeset
4864
239
41f2f0e326e9 Import from CVS: tag r20-5b18
cvs
parents: 231
diff changeset
4865 libs_system="$libs_system -lgdi32 -luser32" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lgdi32 -luser32\" to \$libs_system"; fi
231
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents: 227
diff changeset
4866 window_system=msw
239
41f2f0e326e9 Import from CVS: tag r20-5b18
cvs
parents: 231
diff changeset
4867 test "$with_scrollbars" != "no" && with_scrollbars=msw && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
41f2f0e326e9 Import from CVS: tag r20-5b18
cvs
parents: 231
diff changeset
4868 echo " xemacs will be linked with \"scrollbar-msw.o\""
41f2f0e326e9 Import from CVS: tag r20-5b18
cvs
parents: 231
diff changeset
4869 fi
41f2f0e326e9 Import from CVS: tag r20-5b18
cvs
parents: 231
diff changeset
4870 test "$with_menubars" != "no" && with_menubars=msw && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
41f2f0e326e9 Import from CVS: tag r20-5b18
cvs
parents: 231
diff changeset
4871 echo " xemacs will be linked with \"menubar-msw.o\""
41f2f0e326e9 Import from CVS: tag r20-5b18
cvs
parents: 231
diff changeset
4872 fi
231
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents: 227
diff changeset
4873 with_dialogs=msw
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents: 227
diff changeset
4874 with_toolbars=no
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents: 227
diff changeset
4875 with_tty=no
239
41f2f0e326e9 Import from CVS: tag r20-5b18
cvs
parents: 231
diff changeset
4876 extra_objs="$extra_objs console-msw.o device-msw.o event-msw.o frame-msw.o objects-msw.o select-msw.o redisplay-msw.o msw-proc.o" && if test "$extra_verbose" = "yes"; then
41f2f0e326e9 Import from CVS: tag r20-5b18
cvs
parents: 231
diff changeset
4877 echo " xemacs will be linked with \"console-msw.o device-msw.o event-msw.o frame-msw.o objects-msw.o select-msw.o redisplay-msw.o msw-proc.o\""
231
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents: 227
diff changeset
4878 fi
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents: 227
diff changeset
4879 fi
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents: 227
diff changeset
4880 fi
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents: 227
diff changeset
4881
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4882 if test "$with_x11" = "yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4883 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4884 Defining HAVE_X_WINDOWS
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4885 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4886 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4887 #define HAVE_X_WINDOWS 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4888 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4889 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4890
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4891 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
4892 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
4893
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4894 for lib_dir in "/usr/dt/lib" "/usr/lib/Motif1.2" "/usr/lib/Motif1.1"; do
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
4895 inc_dir=`echo $lib_dir | sed -e 's/lib/include/'`
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4896 if test -d "$lib_dir" -a -d "$inc_dir"; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4897 case "$x_libraries" in *"$lib_dir"* ) ;; *)
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4898 x_libraries="$lib_dir $x_libraries"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4899 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
4900 esac
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4901 case "$x_includes" in "$inc_dir"* ) ;; *)
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4902 x_includes="$inc_dir $x_includes"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4903 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
4904 esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4905 break; fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4906 done
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4907
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4908 for rel in "X11R6" "X11R5" "X11R4"; do
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4909 lib_dir="/usr/contrib/$rel/lib" inc_dir="/usr/contrib/$rel/include"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4910 if test -d "$lib_dir" -a -d "$inc_dir"; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4911 case "$x_libraries" in *"$lib_dir"* ) ;; *)
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4912 x_libraries="$x_libraries $lib_dir"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4913 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
4914 esac
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4915 case "$x_includes" in "$inc_dir"* ) ;; *)
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4916 x_includes="$x_includes $inc_dir"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4917 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
4918 esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4919 break; fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4920 done
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4921
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4922 ld_switch_x_site="$X_LIBS"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4923
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4924
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4925 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
165
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents: 163
diff changeset
4926 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
4927 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
4928
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4929 runpath="" runpath_dirs=""
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
4930 if test -n "$LD_RUN_PATH"; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4931 runpath="$LD_RUN_PATH"
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
4932 elif test "$GCC" = "yes"; then
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4933 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4934 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
4935 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
4936 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
4937 case "$arg" in P,* | -L* | -R* )
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
4938 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
4939 {
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
4940 xe_runpath_dir="$dir"
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4941 test "$xe_runpath_dir" != "/lib" -a \
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
4942 "$xe_runpath_dir" != "/usr/lib" -a \
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4943 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4944 eval "$xe_add_unique_runpath_dir"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4945 }
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
4946 done ;;
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
4947 esac
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
4948 done
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4949 ld_switch_run="$ld_switch_run_save"
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
4950 rm -f conftest*
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4951 else
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
4952 for arg in $ld_switch_site $ld_switch_x_site; do
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4953 case "$arg" in -L*) {
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
4954 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4955 test "$xe_runpath_dir" != "/lib" -a \
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
4956 "$xe_runpath_dir" != "/usr/lib" -a \
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4957 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4958 eval "$xe_add_unique_runpath_dir"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4959 };; esac
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4960 done
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4961 if test "$opsys $need_motif" = "sol2 yes"; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4962 xe_runpath_dir="/opt/SUNWdt/lib";
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4963 eval "$xe_add_unique_runpath_dir";
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4964 fi
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
4965 fi
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4966 if test -n "$runpath"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4967 ld_switch_run="${dash_r}${runpath}"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4968 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4969 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4970 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4971
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4972
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4973 if test "$extra_verbose" = "yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4974 echo; echo "X11 compilation variables:"
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4975 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
4976 echo
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4977 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4978
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4979 echo "checking for X defines extracted by xmkmf" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4980 echo "configure:4981: checking for X defines extracted by xmkmf" >&5
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4981 rm -fr conftestdir
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4982 if mkdir conftestdir; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4983 cd conftestdir
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4984 cat > Imakefile <<'EOF'
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4985 xetest:
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4986 @echo ${PROTO_DEFINES} ${STD_DEFINES}
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4987 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4988 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4989 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4990 xmkmf_defines=`${MAKE-make} xetest 2>/dev/null | grep -v make`
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4991 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4992 cd ..
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4993 rm -fr conftestdir
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4994 for word in $xmkmf_defines; do
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4995 case "$word" in
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4996 -D*=* ) ;;
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4997 -D* ) word=`echo '' $word | sed -e 's:^ *-D::'`
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4998 { test "$extra_verbose" = "yes" && cat << EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4999 Defining $word
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
5000 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
5001 cat >> confdefs.h <<EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
5002 #define $word 1
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
5003 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
5004 }
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
5005 ;;
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
5006 esac
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
5007 done
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
5008 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
5009
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5010 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5011 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5012 echo "configure:5013: checking for X11/Intrinsic.h" >&5
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5013
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5014 cat > conftest.$ac_ext <<EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5015 #line 5016 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5016 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5017 #include <X11/Intrinsic.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5018 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5019 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5020 { (eval echo configure:5021: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5021 ac_err=`grep -v '^ *+' conftest.out`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5022 if test -z "$ac_err"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5023 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5024 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5025 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5026 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5027 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5028 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5029 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5030 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5031 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5032 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5033 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5034 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5035 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5036 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5037 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5038 { echo "configure: error: "Unable to find X11 header files."" 1>&2; exit 1; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5039 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5040
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5041
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5042
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5043 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5044 echo "configure:5045: checking for XOpenDisplay in -lX11" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5045 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5046
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5047 xe_check_libs=" -lX11 "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5048 cat > conftest.$ac_ext <<EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5049 #line 5050 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5050 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5051 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5052 /* 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
5053 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5054 char XOpenDisplay();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5055
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5056 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5057 XOpenDisplay()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5058 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5059 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5060 if { (eval echo configure:5061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5061 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5062 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5063 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5064 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5065 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5066 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5067 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5068 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5069 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5070 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5071
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5072 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
5073 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5074 have_lib_x11=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5075 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5076 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5077 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5078
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5079
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5080 if test "$have_lib_x11" != "yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5081
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5082 xe_msg_checking="for XGetFontProperty in -lX11"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5083 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
5084 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5085 echo "configure:5086: checking "$xe_msg_checking"" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5086 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5087
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5088 xe_check_libs=" -lX11 -b i486-linuxaout"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5089 cat > conftest.$ac_ext <<EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5090 #line 5091 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5091 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5092 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5093 /* 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
5094 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5095 char XGetFontProperty();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5096
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5097 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5098 XGetFontProperty()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5099 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5100 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5101 if { (eval echo configure:5102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5102 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5103 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5104 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5105 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5106 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5107 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5108 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5109 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5110 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5111 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5112
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5113 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
5114 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5115 ld_switch_x_site="-b i486-linuxaout $ld_switch_x_site"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5116 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5117 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5118 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5119 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5120
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5121
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5122 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5123 libs_x="-lX11"
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5124 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5125
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
5126
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
5127 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5128 echo "configure:5129: checking for XShapeSelectInput in -lXext" >&5
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
5129 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
5130
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
5131 xe_check_libs=" -lXext "
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
5132 cat > conftest.$ac_ext <<EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5133 #line 5134 "configure"
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
5134 #include "confdefs.h"
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
5135 /* Override any gcc2 internal prototype to avoid an error. */
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
5136 /* 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
5137 builtin and then its argument prototype would still apply. */
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
5138 char XShapeSelectInput();
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
5139
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
5140 int main() {
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
5141 XShapeSelectInput()
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
5142 ; return 0; }
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
5143 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5144 if { (eval echo configure:5145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
5145 rm -rf conftest*
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
5146 eval "ac_cv_lib_$ac_lib_var=yes"
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
5147 else
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
5148 echo "configure: failed program was:" >&5
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
5149 cat conftest.$ac_ext >&5
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
5150 rm -rf conftest*
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
5151 eval "ac_cv_lib_$ac_lib_var=no"
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
5152 fi
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
5153 rm -f conftest*
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
5154 xe_check_libs=""
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
5155
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
5156 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
5157 echo "$ac_t""yes" 1>&6
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
5158 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
5159 else
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
5160 echo "$ac_t""no" 1>&6
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
5161 fi
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
5162
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
5163
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
5164
169
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
5165
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5166 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5167 echo "configure:5168: checking for XtOpenDisplay in -lXt" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5168 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5169
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5170 xe_check_libs=" -lXt "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5171 cat > conftest.$ac_ext <<EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5172 #line 5173 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5173 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5174 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5175 /* 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
5176 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5177 char XtOpenDisplay();
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 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5180 XtOpenDisplay()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5181 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5182 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5183 if { (eval echo configure:5184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5184 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5185 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5186 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5187 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5188 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5189 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5190 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5191 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5192 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5193 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5194
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5195 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5196 echo "$ac_t""yes" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5197 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
5198 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5199 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5200 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5201 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5202
169
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
5203
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5204
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5205 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5206 echo "configure:5207: checking the version of X11 being used" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5207 cat > conftest.$ac_ext <<EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5208 #line 5209 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5209 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5210 #include <X11/Intrinsic.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5211 main(int c, char* v[]) { return c>1 ? XlibSpecificationRelease : 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5212 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5213 if { (eval echo configure:5214: \"$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
5214 then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5215 ./conftest foobar; x11_release=$?
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5216 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5217 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5218 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5219 rm -fr conftest*
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5220 x11_release=4
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5221 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5222 rm -fr conftest*
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5223 echo "$ac_t""R${x11_release}" 1>&6
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5224 { test "$extra_verbose" = "yes" && cat << EOF
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5225 Defining THIS_IS_X11R${x11_release}
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5226 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5227 cat >> confdefs.h <<EOF
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5228 #define THIS_IS_X11R${x11_release} 1
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5229 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5230 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5231
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5232
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5233 for ac_hdr in X11/Xlocale.h
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5234 do
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5235 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5236 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5237 echo "configure:5238: checking for $ac_hdr" >&5
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5238
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5239 cat > conftest.$ac_ext <<EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5240 #line 5241 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5241 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5242 #include <$ac_hdr>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5243 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5244 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5245 { (eval echo configure:5246: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5246 ac_err=`grep -v '^ *+' conftest.out`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5247 if test -z "$ac_err"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5248 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5249 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5250 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5251 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5252 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5253 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5254 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5255 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5256 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5257 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5258 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5259 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5260 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5261 { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5262 Defining $ac_tr_hdr
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5263 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5264 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5265 #define $ac_tr_hdr 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5266 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5267 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5268
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5269 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5270 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5271 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5272 done
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5273
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5274
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5275 echo $ac_n "checking for XFree86""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5276 echo "configure:5277: checking for XFree86" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5277 if test -d "/usr/X386/include" -o \
169
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
5278 -f "/etc/XF86Config" -o \
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5279 -f "/etc/X11/XF86Config" -o \
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5280 -f "/usr/X11R6/lib/X11/XF86Config"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5281 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5282 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5283 Defining HAVE_XFREE386
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5284 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5285 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5286 #define HAVE_XFREE386 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5287 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5288 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5289
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5290 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5291 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5292 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5293
169
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
5294 test -z "$with_xmu" && {
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
5295 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5296 echo "configure:5297: checking for XmuReadBitmapDataFromFile in -lXmu" >&5
169
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
5297 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'`
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5298
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5299 xe_check_libs=" -lXmu "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5300 cat > conftest.$ac_ext <<EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5301 #line 5302 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5302 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5303 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5304 /* 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
5305 builtin and then its argument prototype would still apply. */
169
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
5306 char XmuReadBitmapDataFromFile();
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5307
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5308 int main() {
169
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
5309 XmuReadBitmapDataFromFile()
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5310 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5311 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5312 if { (eval echo configure:5313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5313 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5314 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5315 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5316 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5317 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5318 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5319 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5320 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5321 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5322 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5323
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5324 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5325 echo "$ac_t""yes" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5326 with_xmu=yes
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5327 else
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5328 echo "$ac_t""no" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5329 with_xmu=no
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5330 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5331
169
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
5332 }
185
3d6bfa290dbd Import from CVS: tag r20-3b19
cvs
parents: 183
diff changeset
5333 if test "$with_xmu" = "no"; then
3d6bfa290dbd Import from CVS: tag r20-3b19
cvs
parents: 183
diff changeset
5334 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
5335 echo " xemacs will be linked with \"xmu.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5336 fi
187
b405438285a2 Import from CVS: tag r20-3b20
cvs
parents: 185
diff changeset
5337 else
185
3d6bfa290dbd Import from CVS: tag r20-3b19
cvs
parents: 183
diff changeset
5338 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
5339 { test "$extra_verbose" = "yes" && cat << \EOF
3d6bfa290dbd Import from CVS: tag r20-3b19
cvs
parents: 183
diff changeset
5340 Defining HAVE_XMU
3d6bfa290dbd Import from CVS: tag r20-3b19
cvs
parents: 183
diff changeset
5341 EOF
3d6bfa290dbd Import from CVS: tag r20-3b19
cvs
parents: 183
diff changeset
5342 cat >> confdefs.h <<\EOF
3d6bfa290dbd Import from CVS: tag r20-3b19
cvs
parents: 183
diff changeset
5343 #define HAVE_XMU 1
3d6bfa290dbd Import from CVS: tag r20-3b19
cvs
parents: 183
diff changeset
5344 EOF
3d6bfa290dbd Import from CVS: tag r20-3b19
cvs
parents: 183
diff changeset
5345 }
3d6bfa290dbd Import from CVS: tag r20-3b19
cvs
parents: 183
diff changeset
5346
169
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
5347 fi
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5348
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5349
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5350 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5351 echo "configure:5352: checking for main in -lXbsd" >&5
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5352 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5353
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5354 xe_check_libs=" -lXbsd "
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5355 cat > conftest.$ac_ext <<EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5356 #line 5357 "configure"
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5357 #include "confdefs.h"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5358
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5359 int main() {
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5360 main()
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5361 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5362 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5363 if { (eval echo configure:5364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5364 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5365 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5366 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5367 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5368 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5369 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5370 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5371 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5372 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5373 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5374
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5375 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5376 echo "$ac_t""yes" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5377 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
5378 else
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5379 echo "$ac_t""no" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5380 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5381
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5382
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5383
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5384 if test "$unexec" = "unexaix.o" -a "$x11_release" = "6"; then
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5385 libs_x="$libs_x -lc_r" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lc_r\" to \$libs_x"; fi
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5386 fi
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5387
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5388 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5389 test -z "$window_system" && window_system="none"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5390
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5391 if test "$window_system" = "none" ; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5392 if test "$with_tty" = "no" ; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5393 { echo "configure: error: No window system support and no TTY support - Unable to proceed." 1>&2; exit 1; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5394 fi
179
9ad43877534d Import from CVS: tag r20-3b16
cvs
parents: 177
diff changeset
5395 for feature in tooltalk cde offix session \
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5396 menubars scrollbars toolbars dialogs xim xmu \
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
5397 imagick xface xpm
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
5398 do
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5399 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5400 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
5401 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5402 eval "with_${feature}=no"
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
5403 done
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5404 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5405 test -z "$with_toolbars" && with_toolbars=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5406 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5407
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5408 bitmapdir=
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5409
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5410 case "$window_system" in
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
5411 x11 ) HAVE_X_WINDOWS=yes; echo " Using X11." ;;
231
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents: 227
diff changeset
5412 msw ) HAVE_X_WINDOWS=no; echo " Using MS-Windows." ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
5413 none ) HAVE_X_WINDOWS=no ; echo " Using no window system." ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5414 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5415
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5416 case "$x_libraries" in *X11R4* )
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5417 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5418 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5419 esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5420
179
9ad43877534d Import from CVS: tag r20-3b16
cvs
parents: 177
diff changeset
5421 echo "checking for session-management option" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5422 echo "configure:5423: checking for session-management option" >&5;
227
0e522484dd2a Import from CVS: tag r20-5b12
cvs
parents: 225
diff changeset
5423 if test "$with_session" != "no"; then
177
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
5424 { test "$extra_verbose" = "yes" && cat << \EOF
179
9ad43877534d Import from CVS: tag r20-3b16
cvs
parents: 177
diff changeset
5425 Defining HAVE_SESSION
9ad43877534d Import from CVS: tag r20-3b16
cvs
parents: 177
diff changeset
5426 EOF
9ad43877534d Import from CVS: tag r20-3b16
cvs
parents: 177
diff changeset
5427 cat >> confdefs.h <<\EOF
9ad43877534d Import from CVS: tag r20-3b16
cvs
parents: 177
diff changeset
5428 #define HAVE_SESSION 1
177
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
5429 EOF
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
5430 }
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
5431
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
5432 fi
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
5433
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5434 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5435 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
5436 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5437 echo "configure:5438: checking for X11/Xauth.h" >&5
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5438
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5439 cat > conftest.$ac_ext <<EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5440 #line 5441 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5441 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5442 #include <X11/Xauth.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5443 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5444 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5445 { (eval echo configure:5446: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5446 ac_err=`grep -v '^ *+' conftest.out`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5447 if test -z "$ac_err"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5448 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5449 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5450 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5451 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5452 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5453 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5454 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5455 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5456 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5457 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5458 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5459 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5460 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5461 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5462 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5463 with_xauth=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5464 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5465 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5466 test -z "$with_xauth" && {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5467 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5468 echo "configure:5469: checking for XauGetAuthByAddr in -lXau" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5469 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5470
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5471 xe_check_libs=" -lXau "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5472 cat > conftest.$ac_ext <<EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5473 #line 5474 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5474 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5475 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5476 /* 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
5477 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5478 char XauGetAuthByAddr();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5479
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5480 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5481 XauGetAuthByAddr()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5482 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5483 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5484 if { (eval echo configure:5485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5485 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5486 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5487 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5488 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5489 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5490 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5491 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5492 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5493 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5494 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5495
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5496 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
5497 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5498 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5499 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5500 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5501 with_xauth=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5502 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5503
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5504 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5505 test -z "$with_xauth" && with_xauth=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5506 if test "$with_xauth" = "yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5507 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5508 Defining HAVE_XAUTH
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5509 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5510 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5511 #define HAVE_XAUTH 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5512 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5513 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5514
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
5515
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
5516 T=""
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
5517 for W in $X_EXTRA_LIBS -lXau $libs_x $X_PRE_LIBS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
5518 libs_xauth="$T"
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
5519
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
5520 fi
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
5521
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5522
197
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 193
diff changeset
5523 OFFIX_O=""
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
5524 test "$window_system" != "x11" && with_offix=no
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5525 test -z "$with_offix" && with_offix=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5526 if test "$with_offix" = "yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5527 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5528 Defining HAVE_OFFIX_DND
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5529 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5530 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5531 #define HAVE_OFFIX_DND 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5532 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5533 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5534
197
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 193
diff changeset
5535 OFFIX_O="offix.o"
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 193
diff changeset
5536 fi
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 193
diff changeset
5537
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5538
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5539 test "$with_cde" = "yes" && with_tooltalk=yes # CDE requires tooltalk
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5540 if test "$with_tooltalk" != "no" ; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5541 for dir in "" "Tt/" "desktop/" ; do
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5542 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5543 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5544 echo "configure:5545: checking for ${dir}tt_c.h" >&5
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5545
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5546 cat > conftest.$ac_ext <<EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5547 #line 5548 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5548 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5549 #include <${dir}tt_c.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5550 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5551 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5552 { (eval echo configure:5553: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5553 ac_err=`grep -v '^ *+' conftest.out`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5554 if test -z "$ac_err"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5555 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5556 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5557 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5558 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5559 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5560 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5561 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5562 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5563 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5564 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5565 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5566 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5567 tt_c_h_path="${dir}tt_c.h" && break
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5568 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5569 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5570 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5571
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5572 done
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5573 test -z "$tt_c_h_path" && with_tooltalk=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5574 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5575 if test "$with_tooltalk" != "no" ; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5576 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5577
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5578 xe_msg_checking="for tt_message_create in -ltt"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5579 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
5580 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5581 echo "configure:5582: checking "$xe_msg_checking"" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5582 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5583
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5584 xe_check_libs=" -ltt $extra_libs"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5585 cat > conftest.$ac_ext <<EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5586 #line 5587 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5587 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5588 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5589 /* 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
5590 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5591 char tt_message_create();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5592
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5593 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5594 tt_message_create()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5595 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5596 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5597 if { (eval echo configure:5598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5598 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5599 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5600 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5601 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5602 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5603 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5604 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5605 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5606 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5607 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5608
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5609 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
5610 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5611 with_tooltalk=yes tt_libs="-ltt $extra_libs"; break
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5612 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5613 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5614 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5615 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5616
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5617
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5618 done
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5619 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5620 test -z "$with_tooltalk" && with_tooltalk=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5621 if test "$with_tooltalk" = "yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5622 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5623 Defining TOOLTALK
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5624 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5625 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5626 #define TOOLTALK 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5627 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5628 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5629
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5630 { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5631 Defining TT_C_H_PATH = "$tt_c_h_path"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5632 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5633 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5634 #define TT_C_H_PATH "$tt_c_h_path"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5635 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5636 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5637
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5638 libs_x="$tt_libs $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$tt_libs\" to \$libs_x"; fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5639 extra_objs="$extra_objs tooltalk.o" && if test "$extra_verbose" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5640 echo " xemacs will be linked with \"tooltalk.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5641 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5642 fi
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 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
5645 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5646 echo "configure:5647: checking for Dt/Dt.h" >&5
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5647
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5648 cat > conftest.$ac_ext <<EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5649 #line 5650 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5650 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5651 #include <Dt/Dt.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5652 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5653 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5654 { (eval echo configure:5655: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5655 ac_err=`grep -v '^ *+' conftest.out`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5656 if test -z "$ac_err"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5657 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5658 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5659 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5660 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5661 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5662 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5663 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5664 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5665 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5666 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5667 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5668 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5669 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5670 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5671 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5672 with_cde=no
136
b980b6286996 Import from CVS: tag r20-2b2
cvs
parents: 126
diff changeset
5673 fi
b980b6286996 Import from CVS: tag r20-2b2
cvs
parents: 126
diff changeset
5674 }
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5675 test -z "$with_cde" && {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5676 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5677 echo "configure:5678: checking for DtDndDragStart in -lDtSvc" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5678 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5679
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5680 xe_check_libs=" -lDtSvc "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5681 cat > conftest.$ac_ext <<EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5682 #line 5683 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5683 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5684 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5685 /* 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
5686 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5687 char DtDndDragStart();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5688
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5689 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5690 DtDndDragStart()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5691 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5692 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5693 if { (eval echo configure:5694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5694 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5695 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5696 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5697 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5698 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5699 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5700 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5701 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5702 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5703 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5704
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5705 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
5706 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5707 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5708 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5709 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5710 with_cde=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5711 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5712
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5713 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5714 test -z "$with_cde" && with_cde=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5715 if test "$with_cde" = "yes" ; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5716 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5717 Defining HAVE_CDE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5718 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5719 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5720 #define HAVE_CDE 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5721 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5722 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5723
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5724 libs_x="-lDtSvc $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lDtSvc\" to \$libs_x"; fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5725 with_tooltalk=yes # CDE requires Tooltalk
167
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
5726 need_motif=yes # CDE requires Motif
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5727 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5728
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5729
193
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
5730 if test "$with_x11" = "yes"; then
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
5731
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
5732 echo "checking for X11 graphics libraries" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5733 echo "configure:5734: checking for X11 graphics libraries" >&5
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5734
193
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
5735 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5736 echo "configure:5737: checking for Xpm - no older than 3.4f" >&5
193
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
5737 xe_check_libs=-lXpm
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
5738 test -z "$with_xpm" && { cat > conftest.$ac_ext <<EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5739 #line 5740 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5740 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5741 #include <X11/xpm.h>
193
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
5742 int main(int c, char **v) {
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
5743 return c == 1 ? 0 :
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
5744 XpmIncludeVersion != XpmLibraryVersion() ? 1 :
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
5745 XpmIncludeVersion < 30406 ? 2 :
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
5746 0 ;
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
5747 }
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
5748 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5749 if { (eval echo configure:5750: \"$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
5750 then
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
5751 ./conftest foobar; xpm_status=$?;
193
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
5752 if test "$xpm_status" = "0"; then with_xpm=yes; else with_xpm=no; fi;
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
5753 else
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
5754 echo "configure: failed program was:" >&5
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
5755 cat conftest.$ac_ext >&5
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
5756 rm -fr conftest*
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
5757 with_xpm=no
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
5758 fi
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
5759 rm -fr conftest*
193
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
5760 }
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
5761 xe_check_libs=
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
5762 echo "$ac_t""$with_xpm" 1>&6
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
5763 if test "$xpm_status" = "1" -o "$xpm_status" = "2"; then
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
5764 test "$xpm_status" = "1" && problem="Xpm library version and header file version don't match!"
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
5765 test "$xpm_status" = "2" && problem="Xpm library version is too old!"
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
5766 echo "
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
5767 *** WARNING *** $problem
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
5768 I'm not touching that with a 10-foot pole!
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
5769 If you really want to use the installed version of Xpm, rerun
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
5770 configure --with-xpm=yes, but don't blame me if XEmacs crashes!
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
5771 "
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
5772 fi
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
5773 if test "$with_xpm" = "yes"; then
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
5774 { test "$extra_verbose" = "yes" && cat << \EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5775 Defining HAVE_XPM
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5776 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5777 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5778 #define HAVE_XPM 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5779 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5780 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5781
193
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
5782 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
5783 fi
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
5784
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
5785 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5786 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5787 echo "configure:5788: checking for compface.h" >&5
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5788
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5789 cat > conftest.$ac_ext <<EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5790 #line 5791 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5791 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5792 #include <compface.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5793 EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5794 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5795 { (eval echo configure:5796: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5796 ac_err=`grep -v '^ *+' conftest.out`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5797 if test -z "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5798 rm -rf conftest*
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5799 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5800 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5801 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5802 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5803 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5804 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5805 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5806 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5807 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5808 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5809 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5810 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5811 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5812 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5813 with_xface=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5814 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5815 }
193
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
5816 test -z "$with_xface" && {
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5817 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5818 echo "configure:5819: checking for UnGenFace in -lcompface" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5819 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5820
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5821 xe_check_libs=" -lcompface "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5822 cat > conftest.$ac_ext <<EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5823 #line 5824 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5824 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5825 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5826 /* 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
5827 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5828 char UnGenFace();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5829
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5830 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5831 UnGenFace()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5832 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5833 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5834 if { (eval echo configure:5835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5835 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5836 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5837 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5838 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5839 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5840 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5841 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5842 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5843 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5844 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5845
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5846 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
5847 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5848 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5849 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5850 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5851 with_xface=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5852 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5853
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5854 }
193
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
5855 test -z "$with_xface" && with_xface=yes
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
5856 if test "$with_xface" = "yes"; then
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
5857 { test "$extra_verbose" = "yes" && cat << \EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5858 Defining HAVE_XFACE
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 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5861 #define HAVE_XFACE 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5862 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5863 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5864
193
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
5865 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
5866 fi
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
5867
225
12579d965149 Import from CVS: tag r20-4b11
cvs
parents: 223
diff changeset
5868 test "$with_imagick" != "no" && { ac_safe=`echo "magick/magick.h" | sed 'y%./+-%__p_%'`
209
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents: 207
diff changeset
5869 echo $ac_n "checking for magick/magick.h""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5870 echo "configure:5871: checking for magick/magick.h" >&5
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5871
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5872 cat > conftest.$ac_ext <<EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5873 #line 5874 "configure"
209
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents: 207
diff changeset
5874 #include "confdefs.h"
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents: 207
diff changeset
5875 #include <magick/magick.h>
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5876 EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5877 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5878 { (eval echo configure:5879: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5879 ac_err=`grep -v '^ *+' conftest.out`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5880 if test -z "$ac_err"; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5881 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5882 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5883 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5884 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5885 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5886 cat conftest.$ac_ext >&5
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 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5889 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5890 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5891 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5892 echo "$ac_t""yes" 1>&6
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5893 :
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5894 else
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5895 echo "$ac_t""no" 1>&6
223
2c611d1463a6 Import from CVS: tag r20-4b10
cvs
parents: 219
diff changeset
5896 ac_safe=`echo "X11/magick/magick.h" | sed 'y%./+-%__p_%'`
2c611d1463a6 Import from CVS: tag r20-4b10
cvs
parents: 219
diff changeset
5897 echo $ac_n "checking for X11/magick/magick.h""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5898 echo "configure:5899: checking for X11/magick/magick.h" >&5
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5899
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5900 cat > conftest.$ac_ext <<EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5901 #line 5902 "configure"
223
2c611d1463a6 Import from CVS: tag r20-4b10
cvs
parents: 219
diff changeset
5902 #include "confdefs.h"
2c611d1463a6 Import from CVS: tag r20-4b10
cvs
parents: 219
diff changeset
5903 #include <X11/magick/magick.h>
2c611d1463a6 Import from CVS: tag r20-4b10
cvs
parents: 219
diff changeset
5904 EOF
2c611d1463a6 Import from CVS: tag r20-4b10
cvs
parents: 219
diff changeset
5905 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5906 { (eval echo configure:5907: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
223
2c611d1463a6 Import from CVS: tag r20-4b10
cvs
parents: 219
diff changeset
5907 ac_err=`grep -v '^ *+' conftest.out`
2c611d1463a6 Import from CVS: tag r20-4b10
cvs
parents: 219
diff changeset
5908 if test -z "$ac_err"; then
2c611d1463a6 Import from CVS: tag r20-4b10
cvs
parents: 219
diff changeset
5909 rm -rf conftest*
2c611d1463a6 Import from CVS: tag r20-4b10
cvs
parents: 219
diff changeset
5910 eval "ac_cv_header_$ac_safe=yes"
2c611d1463a6 Import from CVS: tag r20-4b10
cvs
parents: 219
diff changeset
5911 else
2c611d1463a6 Import from CVS: tag r20-4b10
cvs
parents: 219
diff changeset
5912 echo "$ac_err" >&5
2c611d1463a6 Import from CVS: tag r20-4b10
cvs
parents: 219
diff changeset
5913 echo "configure: failed program was:" >&5
2c611d1463a6 Import from CVS: tag r20-4b10
cvs
parents: 219
diff changeset
5914 cat conftest.$ac_ext >&5
2c611d1463a6 Import from CVS: tag r20-4b10
cvs
parents: 219
diff changeset
5915 rm -rf conftest*
2c611d1463a6 Import from CVS: tag r20-4b10
cvs
parents: 219
diff changeset
5916 eval "ac_cv_header_$ac_safe=no"
2c611d1463a6 Import from CVS: tag r20-4b10
cvs
parents: 219
diff changeset
5917 fi
2c611d1463a6 Import from CVS: tag r20-4b10
cvs
parents: 219
diff changeset
5918 rm -f conftest*
2c611d1463a6 Import from CVS: tag r20-4b10
cvs
parents: 219
diff changeset
5919 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2c611d1463a6 Import from CVS: tag r20-4b10
cvs
parents: 219
diff changeset
5920 echo "$ac_t""yes" 1>&6
2c611d1463a6 Import from CVS: tag r20-4b10
cvs
parents: 219
diff changeset
5921 { test "$extra_verbose" = "yes" && cat << \EOF
2c611d1463a6 Import from CVS: tag r20-4b10
cvs
parents: 219
diff changeset
5922 Defining MAGICK_HEADERS_ARE_UNDER_X11
2c611d1463a6 Import from CVS: tag r20-4b10
cvs
parents: 219
diff changeset
5923 EOF
2c611d1463a6 Import from CVS: tag r20-4b10
cvs
parents: 219
diff changeset
5924 cat >> confdefs.h <<\EOF
2c611d1463a6 Import from CVS: tag r20-4b10
cvs
parents: 219
diff changeset
5925 #define MAGICK_HEADERS_ARE_UNDER_X11 1
2c611d1463a6 Import from CVS: tag r20-4b10
cvs
parents: 219
diff changeset
5926 EOF
2c611d1463a6 Import from CVS: tag r20-4b10
cvs
parents: 219
diff changeset
5927 }
2c611d1463a6 Import from CVS: tag r20-4b10
cvs
parents: 219
diff changeset
5928
2c611d1463a6 Import from CVS: tag r20-4b10
cvs
parents: 219
diff changeset
5929 else
2c611d1463a6 Import from CVS: tag r20-4b10
cvs
parents: 219
diff changeset
5930 echo "$ac_t""no" 1>&6
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
5931 with_imagick=no
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5932 fi
223
2c611d1463a6 Import from CVS: tag r20-4b10
cvs
parents: 219
diff changeset
5933
2c611d1463a6 Import from CVS: tag r20-4b10
cvs
parents: 219
diff changeset
5934 fi
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
5935 }
225
12579d965149 Import from CVS: tag r20-4b11
cvs
parents: 223
diff changeset
5936 test "$with_imagick" != "no" && {
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5937 z_libs=""
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5938
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5939 echo $ac_n "checking for inflateInit_ in -lz""... $ac_c" 1>&6
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5940 echo "configure:5941: checking for inflateInit_ in -lz" >&5
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5941 ac_lib_var=`echo z'_'inflateInit_ | sed 'y%./+-%__p_%'`
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5942
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5943 xe_check_libs=" -lz "
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5944 cat > conftest.$ac_ext <<EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5945 #line 5946 "configure"
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5946 #include "confdefs.h"
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5947 /* Override any gcc2 internal prototype to avoid an error. */
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5948 /* 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
5949 builtin and then its argument prototype would still apply. */
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5950 char inflateInit_();
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5951
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5952 int main() {
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5953 inflateInit_()
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5954 ; return 0; }
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5955 EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5956 if { (eval echo configure:5957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5957 rm -rf conftest*
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5958 eval "ac_cv_lib_$ac_lib_var=yes"
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5959 else
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5960 echo "configure: failed program was:" >&5
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5961 cat conftest.$ac_ext >&5
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5962 rm -rf conftest*
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5963 eval "ac_cv_lib_$ac_lib_var=no"
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5964 fi
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5965 rm -f conftest*
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5966 xe_check_libs=""
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5967
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5968 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5969 echo "$ac_t""yes" 1>&6
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5970 z_libs="$z_libs -lz" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lz\" to \$z_libs"; fi
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5971 else
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5972 echo "$ac_t""no" 1>&6
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5973 echo $ac_n "checking for inflateInit_ in -lgz""... $ac_c" 1>&6
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5974 echo "configure:5975: checking for inflateInit_ in -lgz" >&5
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5975 ac_lib_var=`echo gz'_'inflateInit_ | sed 'y%./+-%__p_%'`
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5976
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5977 xe_check_libs=" -lgz "
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5978 cat > conftest.$ac_ext <<EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5979 #line 5980 "configure"
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5980 #include "confdefs.h"
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5981 /* Override any gcc2 internal prototype to avoid an error. */
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5982 /* 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
5983 builtin and then its argument prototype would still apply. */
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5984 char inflateInit_();
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5985
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5986 int main() {
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5987 inflateInit_()
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5988 ; return 0; }
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5989 EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5990 if { (eval echo configure:5991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5991 rm -rf conftest*
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5992 eval "ac_cv_lib_$ac_lib_var=yes"
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5993 else
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5994 echo "configure: failed program was:" >&5
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5995 cat conftest.$ac_ext >&5
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5996 rm -rf conftest*
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5997 eval "ac_cv_lib_$ac_lib_var=no"
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5998 fi
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5999 rm -f conftest*
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
6000 xe_check_libs=""
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
6001
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
6002 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
6003 echo "$ac_t""yes" 1>&6
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
6004 z_libs="$z_libs -lgz" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lgz\" to \$z_libs"; fi
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
6005 else
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
6006 echo "$ac_t""no" 1>&6
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
6007 fi
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
6008
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
6009
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
6010 fi
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
6011
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
6012
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
6013
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
6014 imagick_libs=""
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6015
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6016 echo $ac_n "checking for XDPSPixelsPerPoint in -ldps""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
6017 echo "configure:6018: checking for XDPSPixelsPerPoint in -ldps" >&5
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6018 ac_lib_var=`echo dps'_'XDPSPixelsPerPoint | sed 'y%./+-%__p_%'`
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6019
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6020 xe_check_libs="-ldpstk -ldps "
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6021 cat > conftest.$ac_ext <<EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
6022 #line 6023 "configure"
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6023 #include "confdefs.h"
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6024 /* Override any gcc2 internal prototype to avoid an error. */
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6025 /* 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
6026 builtin and then its argument prototype would still apply. */
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6027 char XDPSPixelsPerPoint();
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6028
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6029 int main() {
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6030 XDPSPixelsPerPoint()
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6031 ; return 0; }
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6032 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
6033 if { (eval echo configure:6034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6034 rm -rf conftest*
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6035 eval "ac_cv_lib_$ac_lib_var=yes"
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6036 else
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6037 echo "configure: failed program was:" >&5
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6038 cat conftest.$ac_ext >&5
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6039 rm -rf conftest*
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6040 eval "ac_cv_lib_$ac_lib_var=no"
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6041 fi
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6042 rm -f conftest*
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6043 xe_check_libs=""
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6044
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6045 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6046 echo "$ac_t""yes" 1>&6
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6047 imagick_libs="$imagick_libs -ldpstk -ldps" && if test "$extra_verbose" = "yes"; then echo " Appending \"-ldpstk -ldps\" to \$imagick_libs"; fi
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6048 else
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6049 echo "$ac_t""no" 1>&6
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6050 fi
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6051
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6052
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6053
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6054 echo $ac_n "checking for FPX_SetToolkitMemoryLimit in -lfpx""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
6055 echo "configure:6056: checking for FPX_SetToolkitMemoryLimit in -lfpx" >&5
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6056 ac_lib_var=`echo fpx'_'FPX_SetToolkitMemoryLimit | sed 'y%./+-%__p_%'`
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6057
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6058 xe_check_libs=" -lfpx "
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6059 cat > conftest.$ac_ext <<EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
6060 #line 6061 "configure"
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6061 #include "confdefs.h"
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6062 /* Override any gcc2 internal prototype to avoid an error. */
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6063 /* 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
6064 builtin and then its argument prototype would still apply. */
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6065 char FPX_SetToolkitMemoryLimit();
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6066
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6067 int main() {
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6068 FPX_SetToolkitMemoryLimit()
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6069 ; return 0; }
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6070 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
6071 if { (eval echo configure:6072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6072 rm -rf conftest*
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6073 eval "ac_cv_lib_$ac_lib_var=yes"
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6074 else
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6075 echo "configure: failed program was:" >&5
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6076 cat conftest.$ac_ext >&5
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6077 rm -rf conftest*
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6078 eval "ac_cv_lib_$ac_lib_var=no"
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6079 fi
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6080 rm -f conftest*
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6081 xe_check_libs=""
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6082
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6083 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6084 echo "$ac_t""yes" 1>&6
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6085 imagick_libs="$imagick_libs -lfpx" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lfpx\" to \$imagick_libs"; fi
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6086 else
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6087 echo "$ac_t""no" 1>&6
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6088 fi
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6089
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6090
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6091
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6092 echo $ac_n "checking for DF24getdims in -ldf""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
6093 echo "configure:6094: checking for DF24getdims in -ldf" >&5
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6094 ac_lib_var=`echo df'_'DF24getdims | sed 'y%./+-%__p_%'`
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6095
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6096 xe_check_libs=" -ldf "
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6097 cat > conftest.$ac_ext <<EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
6098 #line 6099 "configure"
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6099 #include "confdefs.h"
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6100 /* Override any gcc2 internal prototype to avoid an error. */
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6101 /* 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
6102 builtin and then its argument prototype would still apply. */
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6103 char DF24getdims();
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6104
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6105 int main() {
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6106 DF24getdims()
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6107 ; return 0; }
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6108 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
6109 if { (eval echo configure:6110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6110 rm -rf conftest*
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6111 eval "ac_cv_lib_$ac_lib_var=yes"
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6112 else
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6113 echo "configure: failed program was:" >&5
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6114 cat conftest.$ac_ext >&5
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6115 rm -rf conftest*
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6116 eval "ac_cv_lib_$ac_lib_var=no"
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6117 fi
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6118 rm -f conftest*
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6119 xe_check_libs=""
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6120
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6121 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6122 echo "$ac_t""yes" 1>&6
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6123 imagick_libs="$imagick_libs -ldf" && if test "$extra_verbose" = "yes"; then echo " Appending \"-ldf\" to \$imagick_libs"; fi
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6124 else
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6125 echo "$ac_t""no" 1>&6
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6126 fi
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6127
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6128
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6129
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6130 echo $ac_n "checking for jbg_dec_init in -ljbig""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
6131 echo "configure:6132: checking for jbg_dec_init in -ljbig" >&5
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6132 ac_lib_var=`echo jbig'_'jbg_dec_init | sed 'y%./+-%__p_%'`
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6133
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6134 xe_check_libs=" -ljbig "
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6135 cat > conftest.$ac_ext <<EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
6136 #line 6137 "configure"
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6137 #include "confdefs.h"
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6138 /* Override any gcc2 internal prototype to avoid an error. */
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6139 /* 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
6140 builtin and then its argument prototype would still apply. */
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6141 char jbg_dec_init();
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6142
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6143 int main() {
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6144 jbg_dec_init()
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6145 ; return 0; }
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6146 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
6147 if { (eval echo configure:6148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6148 rm -rf conftest*
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6149 eval "ac_cv_lib_$ac_lib_var=yes"
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6150 else
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6151 echo "configure: failed program was:" >&5
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6152 cat conftest.$ac_ext >&5
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6153 rm -rf conftest*
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6154 eval "ac_cv_lib_$ac_lib_var=no"
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6155 fi
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6156 rm -f conftest*
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6157 xe_check_libs=""
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6158
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6159 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6160 echo "$ac_t""yes" 1>&6
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6161 imagick_libs="$imagick_libs -ljbig" && if test "$extra_verbose" = "yes"; then echo " Appending \"-ljbig\" to \$imagick_libs"; fi
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6162 else
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6163 echo "$ac_t""no" 1>&6
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6164 fi
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6165
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6166
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6167
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6168 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
6169 echo "configure:6170: checking for jpeg_read_header in -ljpeg" >&5
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6170 ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6171
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6172 xe_check_libs=" -ljpeg "
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6173 cat > conftest.$ac_ext <<EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
6174 #line 6175 "configure"
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6175 #include "confdefs.h"
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6176 /* Override any gcc2 internal prototype to avoid an error. */
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6177 /* 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
6178 builtin and then its argument prototype would still apply. */
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6179 char jpeg_read_header();
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6180
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6181 int main() {
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6182 jpeg_read_header()
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6183 ; return 0; }
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6184 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
6185 if { (eval echo configure:6186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6186 rm -rf conftest*
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6187 eval "ac_cv_lib_$ac_lib_var=yes"
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6188 else
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6189 echo "configure: failed program was:" >&5
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6190 cat conftest.$ac_ext >&5
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6191 rm -rf conftest*
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6192 eval "ac_cv_lib_$ac_lib_var=no"
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6193 fi
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6194 rm -f conftest*
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6195 xe_check_libs=""
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6196
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6197 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6198 echo "$ac_t""yes" 1>&6
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6199 imagick_libs="$imagick_libs -ljpeg" && if test "$extra_verbose" = "yes"; then echo " Appending \"-ljpeg\" to \$imagick_libs"; fi
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6200 else
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6201 echo "$ac_t""no" 1>&6
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6202 fi
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6203
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6204
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6205
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6206 echo $ac_n "checking for OpenMPEG in -lmpeg""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
6207 echo "configure:6208: checking for OpenMPEG in -lmpeg" >&5
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6208 ac_lib_var=`echo mpeg'_'OpenMPEG | sed 'y%./+-%__p_%'`
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6209
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6210 xe_check_libs=" -lmpeg "
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6211 cat > conftest.$ac_ext <<EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
6212 #line 6213 "configure"
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6213 #include "confdefs.h"
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6214 /* Override any gcc2 internal prototype to avoid an error. */
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6215 /* 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
6216 builtin and then its argument prototype would still apply. */
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6217 char OpenMPEG();
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6218
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6219 int main() {
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6220 OpenMPEG()
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6221 ; return 0; }
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6222 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
6223 if { (eval echo configure:6224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6224 rm -rf conftest*
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6225 eval "ac_cv_lib_$ac_lib_var=yes"
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6226 else
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6227 echo "configure: failed program was:" >&5
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6228 cat conftest.$ac_ext >&5
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6229 rm -rf conftest*
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6230 eval "ac_cv_lib_$ac_lib_var=no"
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6231 fi
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6232 rm -f conftest*
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6233 xe_check_libs=""
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6234
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6235 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6236 echo "$ac_t""yes" 1>&6
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6237 imagick_libs="$imagick_libs -lmpeg" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lmpeg\" to \$imagick_libs"; fi
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6238 else
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6239 echo "$ac_t""no" 1>&6
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6240 fi
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6241
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6242
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6243
223
2c611d1463a6 Import from CVS: tag r20-4b10
cvs
parents: 219
diff changeset
6244 echo $ac_n "checking for TT_Init_FreeType in -lttf""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
6245 echo "configure:6246: checking for TT_Init_FreeType in -lttf" >&5
223
2c611d1463a6 Import from CVS: tag r20-4b10
cvs
parents: 219
diff changeset
6246 ac_lib_var=`echo ttf'_'TT_Init_FreeType | sed 'y%./+-%__p_%'`
2c611d1463a6 Import from CVS: tag r20-4b10
cvs
parents: 219
diff changeset
6247
2c611d1463a6 Import from CVS: tag r20-4b10
cvs
parents: 219
diff changeset
6248 xe_check_libs=" -lttf "
2c611d1463a6 Import from CVS: tag r20-4b10
cvs
parents: 219
diff changeset
6249 cat > conftest.$ac_ext <<EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
6250 #line 6251 "configure"
223
2c611d1463a6 Import from CVS: tag r20-4b10
cvs
parents: 219
diff changeset
6251 #include "confdefs.h"
2c611d1463a6 Import from CVS: tag r20-4b10
cvs
parents: 219
diff changeset
6252 /* Override any gcc2 internal prototype to avoid an error. */
2c611d1463a6 Import from CVS: tag r20-4b10
cvs
parents: 219
diff changeset
6253 /* We use char because int might match the return type of a gcc2
2c611d1463a6 Import from CVS: tag r20-4b10
cvs
parents: 219
diff changeset
6254 builtin and then its argument prototype would still apply. */
2c611d1463a6 Import from CVS: tag r20-4b10
cvs
parents: 219
diff changeset
6255 char TT_Init_FreeType();
2c611d1463a6 Import from CVS: tag r20-4b10
cvs
parents: 219
diff changeset
6256
2c611d1463a6 Import from CVS: tag r20-4b10
cvs
parents: 219
diff changeset
6257 int main() {
2c611d1463a6 Import from CVS: tag r20-4b10
cvs
parents: 219
diff changeset
6258 TT_Init_FreeType()
2c611d1463a6 Import from CVS: tag r20-4b10
cvs
parents: 219
diff changeset
6259 ; return 0; }
2c611d1463a6 Import from CVS: tag r20-4b10
cvs
parents: 219
diff changeset
6260 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
6261 if { (eval echo configure:6262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
223
2c611d1463a6 Import from CVS: tag r20-4b10
cvs
parents: 219
diff changeset
6262 rm -rf conftest*
2c611d1463a6 Import from CVS: tag r20-4b10
cvs
parents: 219
diff changeset
6263 eval "ac_cv_lib_$ac_lib_var=yes"
2c611d1463a6 Import from CVS: tag r20-4b10
cvs
parents: 219
diff changeset
6264 else
2c611d1463a6 Import from CVS: tag r20-4b10
cvs
parents: 219
diff changeset
6265 echo "configure: failed program was:" >&5
2c611d1463a6 Import from CVS: tag r20-4b10
cvs
parents: 219
diff changeset
6266 cat conftest.$ac_ext >&5
2c611d1463a6 Import from CVS: tag r20-4b10
cvs
parents: 219
diff changeset
6267 rm -rf conftest*
2c611d1463a6 Import from CVS: tag r20-4b10
cvs
parents: 219
diff changeset
6268 eval "ac_cv_lib_$ac_lib_var=no"
2c611d1463a6 Import from CVS: tag r20-4b10
cvs
parents: 219
diff changeset
6269 fi
2c611d1463a6 Import from CVS: tag r20-4b10
cvs
parents: 219
diff changeset
6270 rm -f conftest*
2c611d1463a6 Import from CVS: tag r20-4b10
cvs
parents: 219
diff changeset
6271 xe_check_libs=""
2c611d1463a6 Import from CVS: tag r20-4b10
cvs
parents: 219
diff changeset
6272
2c611d1463a6 Import from CVS: tag r20-4b10
cvs
parents: 219
diff changeset
6273 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
2c611d1463a6 Import from CVS: tag r20-4b10
cvs
parents: 219
diff changeset
6274 echo "$ac_t""yes" 1>&6
2c611d1463a6 Import from CVS: tag r20-4b10
cvs
parents: 219
diff changeset
6275 imagick_libs="$imagick_libs -lttf" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lttf\" to \$imagick_libs"; fi
2c611d1463a6 Import from CVS: tag r20-4b10
cvs
parents: 219
diff changeset
6276 else
2c611d1463a6 Import from CVS: tag r20-4b10
cvs
parents: 219
diff changeset
6277 echo "$ac_t""no" 1>&6
2c611d1463a6 Import from CVS: tag r20-4b10
cvs
parents: 219
diff changeset
6278 fi
2c611d1463a6 Import from CVS: tag r20-4b10
cvs
parents: 219
diff changeset
6279
2c611d1463a6 Import from CVS: tag r20-4b10
cvs
parents: 219
diff changeset
6280
2c611d1463a6 Import from CVS: tag r20-4b10
cvs
parents: 219
diff changeset
6281
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
6282 xe_msg_checking="for png_create_read_struct in -lpng"
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
6283 test -n "$z_libs" && xe_msg_checking="$xe_msg_checking using extra libs $z_libs"
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
6284 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
6285 echo "configure:6286: checking "$xe_msg_checking"" >&5
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6286 ac_lib_var=`echo png'_'png_create_read_struct | sed 'y%./+-%__p_%'`
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6287
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
6288 xe_check_libs=" -lpng $z_libs"
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
6289 cat > conftest.$ac_ext <<EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
6290 #line 6291 "configure"
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6291 #include "confdefs.h"
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6292 /* Override any gcc2 internal prototype to avoid an error. */
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6293 /* 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
6294 builtin and then its argument prototype would still apply. */
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6295 char png_create_read_struct();
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6296
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6297 int main() {
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6298 png_create_read_struct()
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6299 ; return 0; }
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6300 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
6301 if { (eval echo configure:6302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6302 rm -rf conftest*
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6303 eval "ac_cv_lib_$ac_lib_var=yes"
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6304 else
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6305 echo "configure: failed program was:" >&5
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6306 cat conftest.$ac_ext >&5
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6307 rm -rf conftest*
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6308 eval "ac_cv_lib_$ac_lib_var=no"
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6309 fi
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6310 rm -f conftest*
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6311 xe_check_libs=""
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6312
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6313 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6314 echo "$ac_t""yes" 1>&6
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6315 imagick_libs="$imagick_libs -lpng" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lpng\" to \$imagick_libs"; fi
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6316 else
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6317 echo "$ac_t""no" 1>&6
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6318 fi
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6319
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6320
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6321
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6322 echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
6323 echo "configure:6324: checking for TIFFOpen in -ltiff" >&5
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6324 ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6325
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
6326 xe_check_libs="$z_libs -ltiff "
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
6327 cat > conftest.$ac_ext <<EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
6328 #line 6329 "configure"
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6329 #include "confdefs.h"
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6330 /* Override any gcc2 internal prototype to avoid an error. */
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6331 /* 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
6332 builtin and then its argument prototype would still apply. */
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6333 char TIFFOpen();
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6334
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6335 int main() {
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6336 TIFFOpen()
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6337 ; return 0; }
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6338 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
6339 if { (eval echo configure:6340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6340 rm -rf conftest*
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6341 eval "ac_cv_lib_$ac_lib_var=yes"
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6342 else
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6343 echo "configure: failed program was:" >&5
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6344 cat conftest.$ac_ext >&5
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6345 rm -rf conftest*
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6346 eval "ac_cv_lib_$ac_lib_var=no"
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6347 fi
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6348 rm -f conftest*
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6349 xe_check_libs=""
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6350
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6351 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6352 echo "$ac_t""yes" 1>&6
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6353 imagick_libs="$imagick_libs -ltiff" && if test "$extra_verbose" = "yes"; then echo " Appending \"-ltiff\" to \$imagick_libs"; fi
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6354 else
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6355 echo "$ac_t""no" 1>&6
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6356 xe_msg_checking="for TIFFOpen in -ltiff"
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
6357 test -n "-ljpeg $z_libs" && xe_msg_checking="$xe_msg_checking using extra libs -ljpeg $z_libs"
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6358 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
6359 echo "configure:6360: checking "$xe_msg_checking"" >&5
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6360 ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6361
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
6362 xe_check_libs=" -ltiff -ljpeg $z_libs"
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
6363 cat > conftest.$ac_ext <<EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
6364 #line 6365 "configure"
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6365 #include "confdefs.h"
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6366 /* Override any gcc2 internal prototype to avoid an error. */
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6367 /* 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
6368 builtin and then its argument prototype would still apply. */
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6369 char TIFFOpen();
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6370
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6371 int main() {
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6372 TIFFOpen()
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6373 ; return 0; }
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6374 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
6375 if { (eval echo configure:6376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6376 rm -rf conftest*
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6377 eval "ac_cv_lib_$ac_lib_var=yes"
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6378 else
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6379 echo "configure: failed program was:" >&5
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6380 cat conftest.$ac_ext >&5
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6381 rm -rf conftest*
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6382 eval "ac_cv_lib_$ac_lib_var=no"
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6383 fi
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6384 rm -f conftest*
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6385 xe_check_libs=""
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6386
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6387 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6388 echo "$ac_t""yes" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
6389 imagick_libs="$imagick_libs -ltiff -ljpeg" && if test "$extra_verbose" = "yes"; then echo " Appending \"-ltiff -ljpeg\" to \$imagick_libs"; fi
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
6390 else
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
6391 echo "$ac_t""no" 1>&6
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
6392 fi
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
6393
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
6394
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
6395 fi
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
6396
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
6397
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
6398 imagick_libs="$imagick_libs $z_libs" && if test "$extra_verbose" = "yes"; then echo " Appending \"$z_libs\" to \$imagick_libs"; fi
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6399 libs_x="$libs_x $imagick_libs" && if test "$extra_verbose" = "yes"; then echo " Appending \"$imagick_libs\" to \$libs_x"; fi
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6400 }
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
6401 test -z "$with_imagick" && {
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
6402 echo $ac_n "checking for MogrifyImage in -lMagick""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
6403 echo "configure:6404: checking for MogrifyImage in -lMagick" >&5
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
6404 ac_lib_var=`echo Magick'_'MogrifyImage | sed 'y%./+-%__p_%'`
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
6405
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
6406 xe_check_libs=" -lMagick "
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
6407 cat > conftest.$ac_ext <<EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
6408 #line 6409 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6409 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6410 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6411 /* 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
6412 builtin and then its argument prototype would still apply. */
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
6413 char MogrifyImage();
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6414
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6415 int main() {
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
6416 MogrifyImage()
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6417 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6418 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
6419 if { (eval echo configure:6420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
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=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6422 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6423 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6424 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6425 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6426 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6427 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6428 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6429 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6430
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6431 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
6432 echo "$ac_t""yes" 1>&6
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
6433 :
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
6434 else
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
6435 echo "$ac_t""no" 1>&6
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
6436 with_imagick=no
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
6437 fi
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
6438
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
6439 }
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
6440 test -z "$with_imagick" && with_imagick=yes
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
6441 if test "$with_imagick" = "yes"; then
193
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
6442 { test "$extra_verbose" = "yes" && cat << \EOF
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
6443 Defining HAVE_IMAGEMAGICK
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
6444 EOF
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
6445 cat >> confdefs.h <<\EOF
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
6446 #define HAVE_IMAGEMAGICK 1
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
6447 EOF
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
6448 }
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
6449
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
6450 libs_x="-lMagick $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lMagick\" to \$libs_x"; fi
193
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
6451 fi
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
6452
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
6453
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
6454 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
6455 echo "configure:6456: checking for XawScrollbarSetThumb in -lXaw" >&5
193
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
6456 ac_lib_var=`echo Xaw'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
6457
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
6458 xe_check_libs=" -lXaw "
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
6459 cat > conftest.$ac_ext <<EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
6460 #line 6461 "configure"
193
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
6461 #include "confdefs.h"
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
6462 /* Override any gcc2 internal prototype to avoid an error. */
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
6463 /* 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
6464 builtin and then its argument prototype would still apply. */
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
6465 char XawScrollbarSetThumb();
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
6466
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
6467 int main() {
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
6468 XawScrollbarSetThumb()
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
6469 ; return 0; }
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
6470 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
6471 if { (eval echo configure:6472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
193
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
6472 rm -rf conftest*
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
6473 eval "ac_cv_lib_$ac_lib_var=yes"
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
6474 else
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
6475 echo "configure: failed program was:" >&5
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
6476 cat conftest.$ac_ext >&5
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
6477 rm -rf conftest*
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
6478 eval "ac_cv_lib_$ac_lib_var=no"
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
6479 fi
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
6480 rm -f conftest*
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
6481 xe_check_libs=""
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
6482
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
6483 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
6484 echo "$ac_t""yes" 1>&6
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
6485 have_xaw=yes
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
6486 else
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
6487 echo "$ac_t""no" 1>&6
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
6488 have_xaw=no
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
6489 fi
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
6490
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
6491
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
6492
193
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
6493 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6494 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
6495 echo "configure:6496: checking for Xm/Xm.h" >&5
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
6496
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
6497 cat > conftest.$ac_ext <<EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
6498 #line 6499 "configure"
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6499 #include "confdefs.h"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6500 #include <Xm/Xm.h>
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6501 EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6502 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
6503 { (eval echo configure:6504: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6504 ac_err=`grep -v '^ *+' conftest.out`
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6505 if test -z "$ac_err"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6506 rm -rf conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6507 eval "ac_cv_header_$ac_safe=yes"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6508 else
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6509 echo "$ac_err" >&5
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6510 echo "configure: failed program was:" >&5
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6511 cat conftest.$ac_ext >&5
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6512 rm -rf conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6513 eval "ac_cv_header_$ac_safe=no"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6514 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6515 rm -f conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6516 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6517 echo "$ac_t""yes" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6518
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6519 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
6520 echo "configure:6521: checking for XmStringFree in -lXm" >&5
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6521 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6522
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6523 xe_check_libs=" -lXm "
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6524 cat > conftest.$ac_ext <<EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
6525 #line 6526 "configure"
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6526 #include "confdefs.h"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6527 /* Override any gcc2 internal prototype to avoid an error. */
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6528 /* 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
6529 builtin and then its argument prototype would still apply. */
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6530 char XmStringFree();
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6531
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6532 int main() {
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6533 XmStringFree()
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6534 ; return 0; }
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6535 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
6536 if { (eval echo configure:6537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6537 rm -rf conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6538 eval "ac_cv_lib_$ac_lib_var=yes"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6539 else
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6540 echo "configure: failed program was:" >&5
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6541 cat conftest.$ac_ext >&5
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6542 rm -rf conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6543 eval "ac_cv_lib_$ac_lib_var=no"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6544 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6545 rm -f conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6546 xe_check_libs=""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6547
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6548 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6549 echo "$ac_t""yes" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6550 have_motif=yes
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6551 else
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6552 echo "$ac_t""no" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6553 have_motif=no
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6554 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6555
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6556
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6557 else
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6558 echo "$ac_t""no" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6559 have_motif=no
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6560 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6561
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6562
193
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
6563 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6564
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
6565 case "$with_menubars" in "" | "yes" | "athena" | "athena3d" )
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6566 with_menubars="lucid" ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6567 esac
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
6568 case "$with_dialogs" in "" | "yes" | "lucid" )
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6569 if test "$have_motif" = "yes"; then with_dialogs="motif"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6570 elif test "$have_xaw" = "yes"; then with_dialogs="athena"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6571 else with_dialogs=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6572 fi ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6573 esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6574 case "$with_scrollbars" in "" | "yes" )
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6575 with_scrollbars="lucid" ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6576 esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6577
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6578 all_widgets="$with_menubars $with_scrollbars $with_dialogs $with_toolbars"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6579
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6580 case "$all_widgets" in *athena* )
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6581 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6582 Defining LWLIB_USES_ATHENA
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6583 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6584 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6585 #define LWLIB_USES_ATHENA 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6586 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6587 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6588
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
6589 { test "$extra_verbose" = "yes" && cat << \EOF
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
6590 Defining NEED_ATHENA
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
6591 EOF
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
6592 cat >> confdefs.h <<\EOF
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
6593 #define NEED_ATHENA 1
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
6594 EOF
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
6595 }
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
6596
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
6597 lwlib_objs="$lwlib_objs lwlib-Xaw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xaw.o\" to \$lwlib_objs"; fi
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6598 libs_x="-lXaw $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXaw\" to \$libs_x"; fi ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6599 esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6600
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6601 case "$all_widgets" in *motif* )
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6602 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6603 Defining LWLIB_USES_MOTIF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6604 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6605 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6606 #define LWLIB_USES_MOTIF 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6607 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6608 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6609
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
6610 { test "$extra_verbose" = "yes" && cat << \EOF
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
6611 Defining NEED_MOTIF
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
6612 EOF
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
6613 cat >> confdefs.h <<\EOF
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
6614 #define NEED_MOTIF 1
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
6615 EOF
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
6616 }
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
6617
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
6618 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
6619 need_motif=yes ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6620 esac
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6621
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
6622 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
6623 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
6624 test "$with_scrollbars" = "lucid" && lwlib_objs="$lwlib_objs xlwscrollbar.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwscrollbar.o\" to \$lwlib_objs"; fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
6625 case "$all_widgets" in *lucid* )
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
6626 { test "$extra_verbose" = "yes" && cat << \EOF
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
6627 Defining NEED_LUCID
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
6628 EOF
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
6629 cat >> confdefs.h <<\EOF
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
6630 #define NEED_LUCID 1
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
6631 EOF
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
6632 }
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
6633
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
6634 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
6635 esac
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
6636
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
6637
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
6638
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6639 case "$with_scrollbars" in athena* ) { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6640 Defining LWLIB_SCROLLBARS_ATHENA
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6641 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6642 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6643 #define LWLIB_SCROLLBARS_ATHENA 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6644 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6645 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6646 ;; esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6647 case "$with_dialogs" in athena* ) { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6648 Defining LWLIB_DIALOGS_ATHENA
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6649 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6650 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6651 #define LWLIB_DIALOGS_ATHENA 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6652 EOF
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 ;; esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6655 test "$with_scrollbars" = "athena3d" && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6656 Defining LWLIB_SCROLLBARS_ATHENA3D
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6657 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6658 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6659 #define LWLIB_SCROLLBARS_ATHENA3D 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6660 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6661 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6662
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6663 test "$with_dialogs" = "athena3d" && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6664 Defining LWLIB_DIALOGS_ATHENA3D
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6665 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6666 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6667 #define LWLIB_DIALOGS_ATHENA3D 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6668 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6669 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6670
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6671
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6672 test "$with_menubars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6673 Defining HAVE_MENUBARS
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6674 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6675 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6676 #define HAVE_MENUBARS 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6677 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6678 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6679
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6680 test "$with_scrollbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6681 Defining HAVE_SCROLLBARS
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6682 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6683 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6684 #define HAVE_SCROLLBARS 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6685 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6686 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6687
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6688 test "$with_dialogs" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6689 Defining HAVE_DIALOGS
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6690 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6691 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6692 #define HAVE_DIALOGS 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6693 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6694 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6695
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6696 test "$with_toolbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6697 Defining HAVE_TOOLBARS
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6698 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6699 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6700 #define HAVE_TOOLBARS 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6701 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6702 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6703
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6704
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6705 test "$with_menubars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6706 Defining LWLIB_MENUBARS_LUCID
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6707 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6708 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6709 #define LWLIB_MENUBARS_LUCID 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6710 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6711 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6712
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6713 test "$with_scrollbars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6714 Defining LWLIB_SCROLLBARS_LUCID
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6715 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6716 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6717 #define LWLIB_SCROLLBARS_LUCID 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6718 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6719 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6720
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6721
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6722 test "$with_menubars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6723 Defining LWLIB_MENUBARS_MOTIF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6724 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6725 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6726 #define LWLIB_MENUBARS_MOTIF 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6727 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6728 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6729
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6730 test "$with_scrollbars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6731 Defining LWLIB_SCROLLBARS_MOTIF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6732 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6733 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6734 #define LWLIB_SCROLLBARS_MOTIF 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6735 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6736 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6737
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6738 test "$with_dialogs" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6739 Defining LWLIB_DIALOGS_MOTIF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6740 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6741 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6742 #define LWLIB_DIALOGS_MOTIF 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6743 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6744 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6745
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6746
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6747 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar.o" && if test "$extra_verbose" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6748 echo " xemacs will be linked with \"menubar.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6749 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6750 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar.o" && if test "$extra_verbose" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6751 echo " xemacs will be linked with \"scrollbar.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6752 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6753 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog.o" && if test "$extra_verbose" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6754 echo " xemacs will be linked with \"dialog.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6755 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6756 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar.o" && if test "$extra_verbose" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6757 echo " xemacs will be linked with \"toolbar.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6758 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6759 test "$all_widgets" != "no no no no" && extra_objs="$extra_objs gui.o" && if test "$extra_verbose" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6760 echo " xemacs will be linked with \"gui.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6761 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6762
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6763 if test "$with_x11" = "yes"; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6764 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-x.o" && if test "$extra_verbose" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6765 echo " xemacs will be linked with \"menubar-x.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6766 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6767 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-x.o" && if test "$extra_verbose" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6768 echo " xemacs will be linked with \"scrollbar-x.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6769 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6770 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-x.o" && if test "$extra_verbose" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6771 echo " xemacs will be linked with \"dialog-x.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6772 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6773 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-x.o" && if test "$extra_verbose" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6774 echo " xemacs will be linked with \"toolbar-x.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6775 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6776 test "$all_widgets" != "no no no no" && extra_objs="$extra_objs gui-x.o" && if test "$extra_verbose" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6777 echo " xemacs will be linked with \"gui-x.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6778 fi
211
78478c60bfcd Import from CVS: tag r20-4b4
cvs
parents: 209
diff changeset
6779 else
78478c60bfcd Import from CVS: tag r20-4b4
cvs
parents: 209
diff changeset
6780 if test \( "$with_sound" = "nas" \) -o \( "$with_sound" = "both" \); then
78478c60bfcd Import from CVS: tag r20-4b4
cvs
parents: 209
diff changeset
6781 echo "Attempt to Build NAS sound without X"
78478c60bfcd Import from CVS: tag r20-4b4
cvs
parents: 209
diff changeset
6782 echo "Please remove NAS configuration or build with X"
78478c60bfcd Import from CVS: tag r20-4b4
cvs
parents: 209
diff changeset
6783 exit 1
78478c60bfcd Import from CVS: tag r20-4b4
cvs
parents: 209
diff changeset
6784 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6785 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6786
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 test -z "$with_mule" && with_mule=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6789
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
6790
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6791 if test "$with_mule" = "yes" ; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6792 echo "checking for Mule-related features" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
6793 echo "configure:6794: checking for Mule-related features" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6794 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6795 Defining MULE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6796 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6797 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6798 #define MULE 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6799 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6800 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6801
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6802 extra_objs="$extra_objs mule.o mule-ccl.o mule-charset.o mule-coding.o" && if test "$extra_verbose" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6803 echo " xemacs will be linked with \"mule.o mule-ccl.o mule-charset.o mule-coding.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6804 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6805
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6806 for ac_hdr in libintl.h
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6807 do
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6808 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6809 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
6810 echo "configure:6811: checking for $ac_hdr" >&5
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
6811
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
6812 cat > conftest.$ac_ext <<EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
6813 #line 6814 "configure"
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6814 #include "confdefs.h"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6815 #include <$ac_hdr>
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6816 EOF
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6817 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
6818 { (eval echo configure:6819: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6819 ac_err=`grep -v '^ *+' conftest.out`
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6820 if test -z "$ac_err"; then
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6821 rm -rf conftest*
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6822 eval "ac_cv_header_$ac_safe=yes"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6823 else
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6824 echo "$ac_err" >&5
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6825 echo "configure: failed program was:" >&5
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6826 cat conftest.$ac_ext >&5
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6827 rm -rf conftest*
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6828 eval "ac_cv_header_$ac_safe=no"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6829 fi
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6830 rm -f conftest*
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6831 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6832 echo "$ac_t""yes" 1>&6
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6833 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6834 { test "$extra_verbose" = "yes" && cat << EOF
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6835 Defining $ac_tr_hdr
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6836 EOF
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6837 cat >> confdefs.h <<EOF
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6838 #define $ac_tr_hdr 1
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6839 EOF
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6840 }
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6841
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6842 else
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6843 echo "$ac_t""no" 1>&6
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6844 fi
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6845 done
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6846
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6847
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6848 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
6849 echo "configure:6850: checking for strerror in -lintl" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6850 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6851
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6852 xe_check_libs=" -lintl "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6853 cat > conftest.$ac_ext <<EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
6854 #line 6855 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6855 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6856 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6857 /* 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
6858 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6859 char strerror();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6860
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6861 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6862 strerror()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6863 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6864 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
6865 if { (eval echo configure:6866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6866 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6867 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6868 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6869 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6870 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6871 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6872 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6873 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6874 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6875 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6876
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6877 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
6878 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6879 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
6880 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6881 { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6882 Defining $ac_tr_lib
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6883 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6884 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6885 #define $ac_tr_lib 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6886 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6887 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6888
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6889 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
6890
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6891 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6892 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6893 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6894
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6895
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6896
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6897 echo "checking for Mule input methods" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
6898 echo "configure:6899: checking for Mule input methods" >&5
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
6899 test -z "$with_xim" -a "$opsys" != "sol2" && with_xim=no
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6900 case "$with_xim" in "" | "yes" )
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6901 echo "checking for XIM" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
6902 echo "configure:6903: checking for XIM" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6903
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6904 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
6905 echo "configure:6906: checking for XmImMbLookupString in -lXm" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6906 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6907
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6908 xe_check_libs=" -lXm "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6909 cat > conftest.$ac_ext <<EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
6910 #line 6911 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6911 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6912 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6913 /* 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
6914 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6915 char XmImMbLookupString();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6916
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6917 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6918 XmImMbLookupString()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6919 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6920 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
6921 if { (eval echo configure:6922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6922 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6923 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6924 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6925 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6926 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6927 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6928 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6929 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6930 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6931 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6932
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6933 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
6934 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6935 with_xim=motif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6936 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6937 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6938 with_xim=xlib
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
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6941
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6942 esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6943 if test "$with_xim" != "no" ; then
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 HAVE_XIM
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 HAVE_XIM 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 if test "$with_xim" = "xlib"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6953 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6954 Defining XIM_XLIB
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6955 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6956 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6957 #define XIM_XLIB 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6958 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6959 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6960
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6961 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
6962 echo " xemacs will be linked with \"input-method-xlib.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6963 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6964 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6965 if test "$with_xim" = "motif"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6966 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6967 Defining XIM_MOTIF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6968 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6969 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6970 #define XIM_MOTIF 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6971 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6972 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6973
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6974 need_motif=yes
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6975 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
6976 echo " xemacs will be linked with \"input-method-motif.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6977 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6978 fi
215
1f0dabaa0855 Import from CVS: tag r20-4b6
cvs
parents: 213
diff changeset
6979 if test "$with_xim" = "motif"; then
177
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
6980 with_xfs=no
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
6981 fi
215
1f0dabaa0855 Import from CVS: tag r20-4b6
cvs
parents: 213
diff changeset
6982 fi
1f0dabaa0855 Import from CVS: tag r20-4b6
cvs
parents: 213
diff changeset
6983
1f0dabaa0855 Import from CVS: tag r20-4b6
cvs
parents: 213
diff changeset
6984 if test "$with_xfs" = "yes" ; then
1f0dabaa0855 Import from CVS: tag r20-4b6
cvs
parents: 213
diff changeset
6985 echo "checking for XFontSet" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
6986 echo "configure:6987: checking for XFontSet" >&5
215
1f0dabaa0855 Import from CVS: tag r20-4b6
cvs
parents: 213
diff changeset
6987
177
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
6988 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
6989 echo "configure:6990: checking for XmbDrawString in -lX11" >&5
177
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
6990 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
6991
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
6992 xe_check_libs=" -lX11 "
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
6993 cat > conftest.$ac_ext <<EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
6994 #line 6995 "configure"
177
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
6995 #include "confdefs.h"
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
6996 /* Override any gcc2 internal prototype to avoid an error. */
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
6997 /* 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
6998 builtin and then its argument prototype would still apply. */
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
6999 char XmbDrawString();
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
7000
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
7001 int main() {
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
7002 XmbDrawString()
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
7003 ; return 0; }
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
7004 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
7005 if { (eval echo configure:7006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
177
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
7006 rm -rf conftest*
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
7007 eval "ac_cv_lib_$ac_lib_var=yes"
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
7008 else
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
7009 echo "configure: failed program was:" >&5
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
7010 cat conftest.$ac_ext >&5
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
7011 rm -rf conftest*
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
7012 eval "ac_cv_lib_$ac_lib_var=no"
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
7013 fi
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
7014 rm -f conftest*
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
7015 xe_check_libs=""
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
7016
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
7017 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
7018 echo "$ac_t""yes" 1>&6
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
7019 :
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
7020 else
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
7021 echo "$ac_t""no" 1>&6
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
7022 with_xfs=no
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
7023 fi
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
7024
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
7025
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
7026 if test "$with_xfs" = "yes" && test "$with_menubars" = "lucid"; then
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
7027 { test "$extra_verbose" = "yes" && cat << \EOF
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
7028 Defining USE_XFONTSET
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
7029 EOF
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
7030 cat >> confdefs.h <<\EOF
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
7031 #define USE_XFONTSET 1
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
7032 EOF
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
7033 }
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
7034
215
1f0dabaa0855 Import from CVS: tag r20-4b6
cvs
parents: 213
diff changeset
7035 if test "$with_xim" = "no" ; then
1f0dabaa0855 Import from CVS: tag r20-4b6
cvs
parents: 213
diff changeset
7036 extra_objs="$extra_objs input-method-xfs.o" && if test "$extra_verbose" = "yes"; then
177
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
7037 echo " xemacs will be linked with \"input-method-xfs.o\""
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
7038 fi
215
1f0dabaa0855 Import from CVS: tag r20-4b6
cvs
parents: 213
diff changeset
7039 fi
177
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
7040 fi
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7041 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7042 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7043 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
7044 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
7045 echo "configure:7046: checking for wnn/jllib.h" >&5
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
7046
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
7047 cat > conftest.$ac_ext <<EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
7048 #line 7049 "configure"
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7049 #include "confdefs.h"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7050 #include <wnn/jllib.h>
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7051 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7052 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
7053 { (eval echo configure:7054: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7054 ac_err=`grep -v '^ *+' conftest.out`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7055 if test -z "$ac_err"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7056 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7057 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7058 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7059 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7060 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7061 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7062 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7063 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7064 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7065 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7066 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7067 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7068 :
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 "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7071 with_wnn=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7072 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7073 }
167
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
7074 if test "$with_wnn" != "no"; then
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
7075 for ac_func in crypt
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
7076 do
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
7077 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
7078 echo "configure:7079: checking for $ac_func" >&5
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
7079
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
7080 cat > conftest.$ac_ext <<EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
7081 #line 7082 "configure"
167
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
7082 #include "confdefs.h"
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
7083 /* System header to define __stub macros and hopefully few prototypes,
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
7084 which can conflict with char $ac_func(); below. */
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
7085 #include <assert.h>
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
7086 /* Override any gcc2 internal prototype to avoid an error. */
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
7087 /* 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
7088 builtin and then its argument prototype would still apply. */
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
7089 char $ac_func();
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
7090
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
7091 int main() {
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
7092
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
7093 /* The GNU C library defines this for functions which it implements
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
7094 to always fail with ENOSYS. Some functions are actually named
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
7095 something starting with __ and the normal name is an alias. */
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
7096 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
7097 choke me
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
7098 #else
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
7099 $ac_func();
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
7100 #endif
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
7101
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
7102 ; return 0; }
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
7103 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
7104 if { (eval echo configure:7105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
167
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
7105 rm -rf conftest*
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
7106 eval "ac_cv_func_$ac_func=yes"
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
7107 else
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
7108 echo "configure: failed program was:" >&5
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
7109 cat conftest.$ac_ext >&5
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
7110 rm -rf conftest*
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
7111 eval "ac_cv_func_$ac_func=no"
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
7112 fi
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
7113 rm -f conftest*
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
7114
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
7115 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
7116 echo "$ac_t""yes" 1>&6
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
7117 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
7118 { test "$extra_verbose" = "yes" && cat << EOF
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
7119 Defining $ac_tr_func
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
7120 EOF
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
7121 cat >> confdefs.h <<EOF
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
7122 #define $ac_tr_func 1
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
7123 EOF
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
7124 }
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
7125
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
7126 else
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
7127 echo "$ac_t""no" 1>&6
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
7128 fi
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
7129 done
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
7130
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
7131 test "$ac_cv_func_crypt" != "yes" && {
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
7132 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
7133 echo "configure:7134: checking for crypt in -lcrypt" >&5
167
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
7134 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
7135
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
7136 xe_check_libs=" -lcrypt "
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
7137 cat > conftest.$ac_ext <<EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
7138 #line 7139 "configure"
167
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
7139 #include "confdefs.h"
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
7140 /* Override any gcc2 internal prototype to avoid an error. */
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
7141 /* 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
7142 builtin and then its argument prototype would still apply. */
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
7143 char crypt();
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
7144
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
7145 int main() {
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
7146 crypt()
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
7147 ; return 0; }
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
7148 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
7149 if { (eval echo configure:7150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
167
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
7150 rm -rf conftest*
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
7151 eval "ac_cv_lib_$ac_lib_var=yes"
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
7152 else
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
7153 echo "configure: failed program was:" >&5
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
7154 cat conftest.$ac_ext >&5
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
7155 rm -rf conftest*
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
7156 eval "ac_cv_lib_$ac_lib_var=no"
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
7157 fi
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
7158 rm -f conftest*
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
7159 xe_check_libs=""
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
7160
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
7161 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
7162 echo "$ac_t""yes" 1>&6
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
7163 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
7164 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
7165 { test "$extra_verbose" = "yes" && cat << EOF
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
7166 Defining $ac_tr_lib
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
7167 EOF
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
7168 cat >> confdefs.h <<EOF
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
7169 #define $ac_tr_lib 1
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
7170 EOF
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
7171 }
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
7172
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
7173 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
7174
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
7175 else
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
7176 echo "$ac_t""no" 1>&6
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
7177 fi
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
7178
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
7179 }
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
7180 fi
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
7181 test -z "$with_wnn" && {
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
7182 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
7183 echo "configure:7184: checking for jl_dic_list_e in -lwnn" >&5
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
7184 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
7185
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
7186 xe_check_libs=" -lwnn "
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
7187 cat > conftest.$ac_ext <<EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
7188 #line 7189 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7189 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7190 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7191 /* 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
7192 builtin and then its argument prototype would still apply. */
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
7193 char jl_dic_list_e();
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7194
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7195 int main() {
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
7196 jl_dic_list_e()
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7197 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7198 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
7199 if { (eval echo configure:7200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7200 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7201 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7202 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7203 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7204 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7205 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7206 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7207 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7208 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7209 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7210
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7211 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
7212 echo "$ac_t""yes" 1>&6
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
7213 :
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
7214 else
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
7215 echo "$ac_t""no" 1>&6
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
7216 with_wnn=no
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7217 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7218
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7219 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7220 test -z "$with_wnn" && with_wnn=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7221 if test "$with_wnn" = "yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7222 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7223 Defining HAVE_WNN
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7224 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7225 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7226 #define HAVE_WNN 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7227 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7228 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7229
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7230 libs_x="-lwnn $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lwnn\" to \$libs_x"; fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7231 extra_objs="$extra_objs mule-wnnfns.o" && if test "$extra_verbose" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7232 echo " xemacs will be linked with \"mule-wnnfns.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7233 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7234
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7235 echo $ac_n "checking for jl_fi_dic_list in -lwnn""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
7236 echo "configure:7237: checking for jl_fi_dic_list in -lwnn" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7237 ac_lib_var=`echo wnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7238
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7239 xe_check_libs=" -lwnn "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7240 cat > conftest.$ac_ext <<EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
7241 #line 7242 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7242 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7243 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7244 /* 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
7245 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7246 char jl_fi_dic_list();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7247
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7248 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7249 jl_fi_dic_list()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7250 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7251 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
7252 if { (eval echo configure:7253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7253 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7254 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7255 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7256 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7257 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7258 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7259 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7260 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7261 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7262 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7263
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7264 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
7265 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7266 with_wnn6=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7267 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7268 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7269 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7270
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7271
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7272 test "$with_wnn6" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7273 Defining WNN6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7274 EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7275 cat >> confdefs.h <<\EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7276 #define WNN6 1
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7277 EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7278 }
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7279
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7280 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7281
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7282 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7283 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
7284 echo "configure:7285: checking for canna/RK.h" >&5
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
7285
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
7286 cat > conftest.$ac_ext <<EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
7287 #line 7288 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7288 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7289 #include <canna/RK.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7290 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7291 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
7292 { (eval echo configure:7293: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7293 ac_err=`grep -v '^ *+' conftest.out`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7294 if test -z "$ac_err"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7295 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7296 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7297 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7298 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7299 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7300 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7301 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7302 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7303 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7304 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7305 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7306 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7307 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7308 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7309 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7310 with_canna=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7311 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7312 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7313 test -z "$with_canna" && {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7314 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
7315 echo "configure:7316: checking for RkBgnBun in -lRKC" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7316 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7317
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7318 xe_check_libs=" -lRKC "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7319 cat > conftest.$ac_ext <<EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
7320 #line 7321 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7321 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7322 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7323 /* 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
7324 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7325 char RkBgnBun();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7326
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7327 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7328 RkBgnBun()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7329 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7330 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
7331 if { (eval echo configure:7332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7332 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7333 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7334 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7335 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7336 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7337 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7338 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7339 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7340 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7341 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7342
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7343 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
7344 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7345 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7346 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7347 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7348 with_canna=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7349 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7350
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7351 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7352 test -z "$with_canna" && {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7353 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
7354 echo "configure:7355: checking for jrKanjiControl in -lcanna" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7355 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7356
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7357 xe_check_libs=" -lcanna "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7358 cat > conftest.$ac_ext <<EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
7359 #line 7360 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7360 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7361 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7362 /* 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
7363 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7364 char jrKanjiControl();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7365
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7366 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7367 jrKanjiControl()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7368 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7369 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
7370 if { (eval echo configure:7371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7371 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7372 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7373 else
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_lib_$ac_lib_var=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 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7381
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7382 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
7383 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7384 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7385 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7386 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7387 with_canna=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7388 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7389
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7390 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7391 test -z "$with_canna" && with_canna=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7392 if test "$with_canna" = "yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7393 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7394 Defining HAVE_CANNA
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7395 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7396 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7397 #define HAVE_CANNA 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7398 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7399 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7400
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7401 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
7402 extra_objs="$extra_objs mule-canna.o" && if test "$extra_verbose" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7403 echo " xemacs will be linked with \"mule-canna.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7404 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7405 fi
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
7406
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7407 else for feature in xim canna wnn; do
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7408 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7409 echo "configure: warning: "--with-${feature} ignored: Not valid without Mule support"" 1>&2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7410 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7411 eval "with_${feature}=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7412 done
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7413 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7414
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7415 if test "$need_motif" = "yes" ; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7416 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
7417
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
7418 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
7419 echo "configure:7420: checking for layout_object_getvalue in -li18n" >&5
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
7420 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'`
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
7421
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
7422 xe_check_libs=" -li18n "
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
7423 cat > conftest.$ac_ext <<EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
7424 #line 7425 "configure"
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
7425 #include "confdefs.h"
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
7426 /* Override any gcc2 internal prototype to avoid an error. */
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
7427 /* 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
7428 builtin and then its argument prototype would still apply. */
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
7429 char layout_object_getvalue();
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
7430
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
7431 int main() {
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
7432 layout_object_getvalue()
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
7433 ; return 0; }
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
7434 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
7435 if { (eval echo configure:7436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
7436 rm -rf conftest*
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
7437 eval "ac_cv_lib_$ac_lib_var=yes"
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
7438 else
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
7439 echo "configure: failed program was:" >&5
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
7440 cat conftest.$ac_ext >&5
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
7441 rm -rf conftest*
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
7442 eval "ac_cv_lib_$ac_lib_var=no"
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
7443 fi
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
7444 rm -f conftest*
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
7445 xe_check_libs=""
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
7446
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
7447 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
7448 echo "$ac_t""yes" 1>&6
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
7449 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
7450 else
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
7451 echo "$ac_t""no" 1>&6
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
7452 fi
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
7453
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
7454
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7455
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7456 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
165
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents: 163
diff changeset
7457 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
7458 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
7459
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
7460 runpath="" runpath_dirs=""
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
7461 if test -n "$LD_RUN_PATH"; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7462 runpath="$LD_RUN_PATH"
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
7463 elif test "$GCC" = "yes"; then
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
7464 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
7465 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
7466 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
7467 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
7468 case "$arg" in P,* | -L* | -R* )
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
7469 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
7470 {
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
7471 xe_runpath_dir="$dir"
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
7472 test "$xe_runpath_dir" != "/lib" -a \
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
7473 "$xe_runpath_dir" != "/usr/lib" -a \
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
7474 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
7475 eval "$xe_add_unique_runpath_dir"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
7476 }
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
7477 done ;;
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
7478 esac
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
7479 done
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
7480 ld_switch_run="$ld_switch_run_save"
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
7481 rm -f conftest*
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7482 else
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
7483 for arg in $ld_switch_site $ld_switch_x_site; do
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
7484 case "$arg" in -L*) {
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
7485 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
7486 test "$xe_runpath_dir" != "/lib" -a \
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
7487 "$xe_runpath_dir" != "/usr/lib" -a \
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
7488 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
7489 eval "$xe_add_unique_runpath_dir"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
7490 };; esac
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7491 done
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
7492 if test "$opsys $need_motif" = "sol2 yes"; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
7493 xe_runpath_dir="/opt/SUNWdt/lib";
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
7494 eval "$xe_add_unique_runpath_dir";
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
7495 fi
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
7496 fi
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7497 if test -n "$runpath"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7498 ld_switch_run="${dash_r}${runpath}"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7499 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7500 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7501 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7502
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7503 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7504
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
7505 for ac_func in cbrt closedir dup2 eaccess fmod fpathconf frexp ftime gethostname getpagesize gettimeofday getcwd getwd logb lrand48 matherr mkdir mktime perror poll random rename res_init rint rmdir select setitimer setpgid setlocale setsid sigblock sighold sigprocmask strcasecmp strerror tzset ulimit usleep utimes waitpid
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7506 do
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7507 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
7508 echo "configure:7509: checking for $ac_func" >&5
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
7509
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
7510 cat > conftest.$ac_ext <<EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
7511 #line 7512 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7512 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7513 /* System header to define __stub macros and hopefully few prototypes,
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7514 which can conflict with char $ac_func(); below. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7515 #include <assert.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7516 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7517 /* 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
7518 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7519 char $ac_func();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7520
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7521 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7522
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
7523 /* The GNU C library defines this for functions which it implements
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
7524 to always fail with ENOSYS. Some functions are actually named
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
7525 something starting with __ and the normal name is an alias. */
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7526 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
7527 choke me
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
7528 #else
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7529 $ac_func();
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
7530 #endif
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7531
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
7532 ; return 0; }
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
7533 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
7534 if { (eval echo configure:7535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7535 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7536 eval "ac_cv_func_$ac_func=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7537 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7538 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7539 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7540 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7541 eval "ac_cv_func_$ac_func=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7542 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7543 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7544
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7545 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7546 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7547 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7548 { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7549 Defining $ac_tr_func
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7550 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7551 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7552 #define $ac_tr_func 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7553 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7554 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7555
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7556 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7557 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7558 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7559 done
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7560
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7561
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7562
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7563 case "$opsys" in
209
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents: 207
diff changeset
7564 linuxaout* | bsdos3* | freebsd* | decosf4-0* | aix4* ) extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7565 echo " xemacs will be linked with \"realpath.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7566 fi ;;
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7567 * )
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7568 for ac_func in realpath
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7569 do
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7570 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
7571 echo "configure:7572: checking for $ac_func" >&5
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
7572
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
7573 cat > conftest.$ac_ext <<EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
7574 #line 7575 "configure"
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7575 #include "confdefs.h"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7576 /* System header to define __stub macros and hopefully few prototypes,
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7577 which can conflict with char $ac_func(); below. */
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7578 #include <assert.h>
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7579 /* Override any gcc2 internal prototype to avoid an error. */
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7580 /* 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
7581 builtin and then its argument prototype would still apply. */
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7582 char $ac_func();
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7583
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7584 int main() {
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7585
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7586 /* The GNU C library defines this for functions which it implements
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7587 to always fail with ENOSYS. Some functions are actually named
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7588 something starting with __ and the normal name is an alias. */
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7589 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7590 choke me
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7591 #else
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7592 $ac_func();
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7593 #endif
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7594
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7595 ; return 0; }
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7596 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
7597 if { (eval echo configure:7598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7598 rm -rf conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7599 eval "ac_cv_func_$ac_func=yes"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7600 else
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7601 echo "configure: failed program was:" >&5
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7602 cat conftest.$ac_ext >&5
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7603 rm -rf conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7604 eval "ac_cv_func_$ac_func=no"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7605 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7606 rm -f conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7607
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7608 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7609 echo "$ac_t""yes" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7610 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7611 { test "$extra_verbose" = "yes" && cat << EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7612 Defining $ac_tr_func
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7613 EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7614 cat >> confdefs.h <<EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7615 #define $ac_tr_func 1
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7616 EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7617 }
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7618
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7619 else
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7620 echo "$ac_t""no" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7621 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7622 done
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7623
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7624 test "$ac_cv_func_realpath" != "yes" && extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7625 echo " xemacs will be linked with \"realpath.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7626 fi ;;
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7627 esac
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7628
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7629 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
7630 echo "configure:7631: checking whether netdb declares h_errno" >&5
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
7631 cat > conftest.$ac_ext <<EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
7632 #line 7633 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7633 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7634 #include <netdb.h>
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7635 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7636 return h_errno;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7637 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7638 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
7639 if { (eval echo configure:7640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7640 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7641 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7642 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7643 Defining HAVE_H_ERRNO
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7644 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7645 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7646 #define HAVE_H_ERRNO 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7647 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7648 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7649
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7650 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7651 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7652 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7653 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7654 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7655 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7656 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7657
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7658 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
7659 echo "configure:7660: checking for sigsetjmp" >&5
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
7660 cat > conftest.$ac_ext <<EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
7661 #line 7662 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7662 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7663 #include <setjmp.h>
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7664 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7665 sigjmp_buf bar; sigsetjmp (bar, 0);
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7666 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7667 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
7668 if { (eval echo configure:7669: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7669 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7670 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7671 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7672 Defining HAVE_SIGSETJMP
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7673 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7674 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7675 #define HAVE_SIGSETJMP 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7676 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7677 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7678
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7679 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7680 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7681 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7682 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7683 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7684 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7685 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7686
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7687 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
7688 echo "configure:7689: checking whether localtime caches TZ" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7689
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7690 if test "$ac_cv_func_tzset" = "yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7691 cat > conftest.$ac_ext <<EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
7692 #line 7693 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7693 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7694 #include <time.h>
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7695 #if STDC_HEADERS
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7696 # include <stdlib.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7697 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7698 extern char **environ;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7699 unset_TZ ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7700 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7701 char **from, **to;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7702 for (to = from = environ; (*to = *from); from++)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7703 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7704 to++;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7705 }
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7706 char TZ_GMT0[] = "TZ=GMT0";
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7707 char TZ_PST8[] = "TZ=PST8";
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7708 main()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7709 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7710 time_t now = time ((time_t *) 0);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7711 int hour_GMT0, hour_unset;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7712 if (putenv (TZ_GMT0) != 0)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7713 exit (1);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7714 hour_GMT0 = localtime (&now)->tm_hour;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7715 unset_TZ ();
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7716 hour_unset = localtime (&now)->tm_hour;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7717 if (putenv (TZ_PST8) != 0)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7718 exit (1);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7719 if (localtime (&now)->tm_hour == hour_GMT0)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7720 exit (1);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7721 unset_TZ ();
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7722 if (localtime (&now)->tm_hour != hour_unset)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7723 exit (1);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7724 exit (0);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7725 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7726 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
7727 if { (eval echo configure:7728: \"$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
7728 then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7729 emacs_cv_localtime_cache=no
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7730 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7731 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7732 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7733 rm -fr conftest*
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7734 emacs_cv_localtime_cache=yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7735 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7736 rm -fr conftest*
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7737 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7738 # If we lack tzset, report that localtime does not cache TZ,
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7739 # 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
7740 emacs_cv_localtime_cache=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7741 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7742 echo "$ac_t""$emacs_cv_localtime_cache" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7743 if test $emacs_cv_localtime_cache = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7744 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7745 Defining LOCALTIME_CACHE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7746 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7747 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7748 #define LOCALTIME_CACHE 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7749 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7750 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7751
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7752 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7753
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7754 if test "$HAVE_TIMEVAL" = "yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7755 echo $ac_n "checking whether gettimeofday cannot accept two arguments""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
7756 echo "configure:7757: checking whether gettimeofday cannot accept two arguments" >&5
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
7757 cat > conftest.$ac_ext <<EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
7758 #line 7759 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7759 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7760
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7761 #ifdef TIME_WITH_SYS_TIME
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7762 #include <sys/time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7763 #include <time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7764 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7765 #ifdef HAVE_SYS_TIME_H
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7766 #include <sys/time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7767 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7768 #include <time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7769 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7770 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7771
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7772 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7773
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7774 struct timeval time;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7775 struct timezone dummy;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7776 gettimeofday (&time, &dummy);
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7777
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7778 ; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7779 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
7780 if { (eval echo configure:7781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7781 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7782 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7783 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7784 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7785 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7786 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7787 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7788 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7789 Defining GETTIMEOFDAY_ONE_ARGUMENT
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7790 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7791 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7792 #define GETTIMEOFDAY_ONE_ARGUMENT 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7793 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7794 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7795
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7796 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7797 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7798 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7799
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7800
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7801 echo $ac_n "checking for inline""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
7802 echo "configure:7803: checking for inline" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7803
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7804 ac_cv_c_inline=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7805 for ac_kw in inline __inline__ __inline; do
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7806 cat > conftest.$ac_ext <<EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
7807 #line 7808 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7808 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7809
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7810 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7811 } $ac_kw foo() {
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7812 ; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7813 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
7814 if { (eval echo configure:7815: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7815 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7816 ac_cv_c_inline=$ac_kw; break
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7817 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7818 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7819 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7820 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7821 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7822 done
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7823
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7824
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7825 echo "$ac_t""$ac_cv_c_inline" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7826 case "$ac_cv_c_inline" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7827 inline | yes) ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7828 no) { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7829 Defining inline =
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7830 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7831 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7832 #define inline
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7833 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7834 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7835 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7836 *) { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7837 Defining inline = $ac_cv_c_inline
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7838 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7839 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7840 #define inline $ac_cv_c_inline
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7841 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7842 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7843 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7844 esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7845
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
7846 if test "$ac_cv_c_inline" != "no"; then
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
7847 { test "$extra_verbose" = "yes" && cat << \EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7848 Defining HAVE_INLINE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7849 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7850 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7851 #define HAVE_INLINE 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7852 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7853 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7854
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
7855 test "$GCC" = "yes" && extra_objs="$extra_objs inline.o" && if test "$extra_verbose" = "yes"; then
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
7856 echo " xemacs will be linked with \"inline.o\""
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
7857 fi
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
7858 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7859
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7860
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7861 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7862 # for constant arguments. Useless!
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7863 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
7864 echo "configure:7865: checking for working alloca.h" >&5
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
7865
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
7866 cat > conftest.$ac_ext <<EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
7867 #line 7868 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7868 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7869 #include <alloca.h>
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7870 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7871 char *p = alloca(2 * sizeof(int));
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7872 ; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7873 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
7874 if { (eval echo configure:7875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7875 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7876 ac_cv_header_alloca_h=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7877 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7878 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7879 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7880 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7881 ac_cv_header_alloca_h=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7882 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7883 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7884
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7885 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7886 if test $ac_cv_header_alloca_h = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7887 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7888 Defining HAVE_ALLOCA_H
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7889 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7890 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7891 #define HAVE_ALLOCA_H 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7892 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7893 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7894
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7895 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7896
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7897 echo $ac_n "checking for alloca""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
7898 echo "configure:7899: checking for alloca" >&5
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
7899
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
7900 cat > conftest.$ac_ext <<EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
7901 #line 7902 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7902 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7903
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7904 #ifdef __GNUC__
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7905 # define alloca __builtin_alloca
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7906 #else
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7907 # if HAVE_ALLOCA_H
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7908 # include <alloca.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7909 # else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7910 # ifdef _AIX
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7911 #pragma alloca
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7912 # else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7913 # ifndef alloca /* predefined by HP cc +Olibcalls */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7914 char *alloca ();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7915 # endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7916 # endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7917 # endif
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7918 #endif
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7919
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7920 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7921 char *p = (char *) alloca(1);
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7922 ; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7923 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
7924 if { (eval echo configure:7925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7925 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7926 ac_cv_func_alloca_works=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7927 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7928 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7929 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7930 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7931 ac_cv_func_alloca_works=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7932 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7933 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7934
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7935 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7936 if test $ac_cv_func_alloca_works = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7937 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7938 Defining HAVE_ALLOCA
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7939 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7940 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7941 #define HAVE_ALLOCA 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7942 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7943 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7944
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7945 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7946
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7947 if test $ac_cv_func_alloca_works = no; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7948 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7949 # that cause trouble. Some versions do not even contain alloca or
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7950 # contain a buggy version. If you still want to use their alloca,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7951 # use ar to extract alloca.o from them instead of compiling alloca.c.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7952 ALLOCA=alloca.o
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7953 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7954 Defining C_ALLOCA
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7955 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7956 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7957 #define C_ALLOCA 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7958 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7959 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7960
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7961
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7962 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
7963 echo "configure:7964: checking whether alloca needs Cray hooks" >&5
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
7964
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
7965 cat > conftest.$ac_ext <<EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
7966 #line 7967 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7967 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7968 #if defined(CRAY) && ! defined(CRAY2)
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7969 webecray
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7970 #else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7971 wenotbecray
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7972 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7973
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7974 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7975 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7976 egrep "webecray" >/dev/null 2>&1; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7977 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7978 ac_cv_os_cray=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7979 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7980 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7981 ac_cv_os_cray=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7982 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7983 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7984
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7985
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7986 echo "$ac_t""$ac_cv_os_cray" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7987 if test $ac_cv_os_cray = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7988 for ac_func in _getb67 GETB67 getb67; do
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7989 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
7990 echo "configure:7991: checking for $ac_func" >&5
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
7991
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
7992 cat > conftest.$ac_ext <<EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
7993 #line 7994 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7994 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7995 /* System header to define __stub macros and hopefully few prototypes,
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7996 which can conflict with char $ac_func(); below. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7997 #include <assert.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7998 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7999 /* 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
8000 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8001 char $ac_func();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8002
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8003 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8004
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8005 /* The GNU C library defines this for functions which it implements
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8006 to always fail with ENOSYS. Some functions are actually named
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8007 something starting with __ and the normal name is an alias. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8008 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8009 choke me
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8010 #else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8011 $ac_func();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8012 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8013
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8014 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8015 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
8016 if { (eval echo configure:8017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8017 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8018 eval "ac_cv_func_$ac_func=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8019 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8020 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8021 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8022 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8023 eval "ac_cv_func_$ac_func=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8024 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8025 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8026
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8027 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8028 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8029 { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8030 Defining CRAY_STACKSEG_END = $ac_func
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8031 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8032 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8033 #define CRAY_STACKSEG_END $ac_func
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8034 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8035 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8036
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8037 break
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8038 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8039 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8040 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8041
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8042 done
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8043 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8044
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8045 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
8046 echo "configure:8047: checking stack direction for C alloca" >&5
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
8047
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
8048 cat > conftest.$ac_ext <<EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
8049 #line 8050 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8050 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8051 find_stack_direction ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8052 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8053 static char *addr = 0;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8054 auto char dummy;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8055 if (addr == 0)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8056 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8057 addr = &dummy;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8058 return find_stack_direction ();
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8059 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8060 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8061 return (&dummy > addr) ? 1 : -1;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8062 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8063 main ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8064 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8065 exit (find_stack_direction() < 0);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8066 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8067 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
8068 if { (eval echo configure:8069: \"$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
8069 then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8070 ac_cv_c_stack_direction=1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8071 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8072 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8073 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8074 rm -fr conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8075 ac_cv_c_stack_direction=-1
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8076 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8077 rm -fr conftest*
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8078
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8079 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8080 { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8081 Defining STACK_DIRECTION = $ac_cv_c_stack_direction
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8082 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8083 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8084 #define STACK_DIRECTION $ac_cv_c_stack_direction
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8085 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8086 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8087
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8088 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8089
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
8090 test -n "$ALLOCA" && extra_objs="$extra_objs $ALLOCA" && if test "$extra_verbose" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
8091 echo " xemacs will be linked with \"$ALLOCA\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
8092 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8093
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8094 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8095 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
8096 echo "configure:8097: checking for vfork.h" >&5
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
8097
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
8098 cat > conftest.$ac_ext <<EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
8099 #line 8100 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8100 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8101 #include <vfork.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8102 EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8103 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
8104 { (eval echo configure:8105: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8105 ac_err=`grep -v '^ *+' conftest.out`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8106 if test -z "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8107 rm -rf conftest*
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8108 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8109 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8110 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8111 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8112 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8113 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8114 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8115 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8116 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8117 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8118 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8119 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8120 Defining HAVE_VFORK_H
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8121 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8122 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8123 #define HAVE_VFORK_H 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8124 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8125 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8126
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8127 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8128 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8129 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8130
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8131 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
8132 echo "configure:8133: checking for working vfork" >&5
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
8133
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
8134 cat > conftest.$ac_ext <<EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
8135 #line 8136 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8136 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8137 /* Thanks to Paul Eggert for this test. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8138 #include <stdio.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8139 #include <sys/types.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8140 #include <sys/stat.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8141 #ifdef HAVE_UNISTD_H
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8142 #include <unistd.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8143 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8144 #ifdef HAVE_VFORK_H
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8145 #include <vfork.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8146 #endif
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8147 /* On some sparc systems, changes by the child to local and incoming
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8148 argument registers are propagated back to the parent.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8149 The compiler is told about this with #include <vfork.h>,
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8150 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8151 Test for this by using a static variable whose address
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8152 is put into a register that is clobbered by the vfork. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8153 static
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8154 #ifdef __cplusplus
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8155 sparc_address_test (int arg)
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8156 #else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8157 sparc_address_test (arg) int arg;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8158 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8159 {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8160 static pid_t child;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8161 if (!child) {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8162 child = vfork ();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8163 if (child < 0) {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8164 perror ("vfork");
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8165 _exit(2);
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8166 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8167 if (!child) {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8168 arg = getpid();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8169 write(-1, "", 0);
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8170 _exit (arg);
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8171 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8172 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8173 }
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8174 main() {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8175 pid_t parent = getpid ();
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8176 pid_t child;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8177
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8178 sparc_address_test ();
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8179
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8180 child = vfork ();
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8181
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8182 if (child == 0) {
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8183 /* Here is another test for sparc vfork register problems.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8184 This test uses lots of local variables, at least
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8185 as many local variables as main has allocated so far
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8186 including compiler temporaries. 4 locals are enough for
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8187 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8188 A buggy compiler should reuse the register of parent
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8189 for one of the local variables, since it will think that
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8190 parent can't possibly be used any more in this routine.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8191 Assigning to the local variable will thus munge parent
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8192 in the parent process. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8193 pid_t
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8194 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8195 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8196 /* Convince the compiler that p..p7 are live; otherwise, it might
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8197 use the same hardware register for all 8 local variables. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8198 if (p != p1 || p != p2 || p != p3 || p != p4
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8199 || p != p5 || p != p6 || p != p7)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8200 _exit(1);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8201
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8202 /* On some systems (e.g. IRIX 3.3),
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8203 vfork doesn't separate parent from child file descriptors.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8204 If the child closes a descriptor before it execs or exits,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8205 this munges the parent's descriptor as well.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8206 Test for this by closing stdout in the child. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8207 _exit(close(fileno(stdout)) != 0);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8208 } else {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8209 int status;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8210 struct stat st;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8211
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8212 while (wait(&status) != child)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8213 ;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8214 exit(
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8215 /* Was there some problem with vforking? */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8216 child < 0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8217
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8218 /* Did the child fail? (This shouldn't happen.) */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8219 || status
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8220
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8221 /* Did the vfork/compiler bug occur? */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8222 || parent != getpid()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8223
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8224 /* Did the file descriptor bug occur? */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8225 || fstat(fileno(stdout), &st) != 0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8226 );
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8227 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8228 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8229 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
8230 if { (eval echo configure:8231: \"$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
8231 then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8232 ac_cv_func_vfork_works=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8233 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8234 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8235 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8236 rm -fr conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8237 ac_cv_func_vfork_works=no
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8238 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8239 rm -fr conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8240
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8241 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8242 if test $ac_cv_func_vfork_works = no; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8243 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8244 Defining vfork = fork
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8245 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8246 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8247 #define vfork fork
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8248 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8249 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8250
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8251 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8252
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8253
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8254 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
8255 echo "configure:8256: checking for working strcoll" >&5
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
8256
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
8257 cat > conftest.$ac_ext <<EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
8258 #line 8259 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8259 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8260 #include <string.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8261 main ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8262 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8263 exit (strcoll ("abc", "def") >= 0 ||
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8264 strcoll ("ABC", "DEF") >= 0 ||
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8265 strcoll ("123", "456") >= 0);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8266 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8267 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
8268 if { (eval echo configure:8269: \"$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
8269 then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8270 ac_cv_func_strcoll_works=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8271 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8272 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8273 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8274 rm -fr conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8275 ac_cv_func_strcoll_works=no
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8276 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8277 rm -fr conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8278
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8279 echo "$ac_t""$ac_cv_func_strcoll_works" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8280 if test $ac_cv_func_strcoll_works = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8281 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8282 Defining HAVE_STRCOLL
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8283 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8284 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8285 #define HAVE_STRCOLL 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8286 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8287 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8288
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8289 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8290
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8291
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8292 for ac_func in getpgrp
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8293 do
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8294 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
8295 echo "configure:8296: checking for $ac_func" >&5
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
8296
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
8297 cat > conftest.$ac_ext <<EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
8298 #line 8299 "configure"
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8299 #include "confdefs.h"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8300 /* System header to define __stub macros and hopefully few prototypes,
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8301 which can conflict with char $ac_func(); below. */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8302 #include <assert.h>
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8303 /* Override any gcc2 internal prototype to avoid an error. */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8304 /* 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
8305 builtin and then its argument prototype would still apply. */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8306 char $ac_func();
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8307
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8308 int main() {
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8309
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8310 /* The GNU C library defines this for functions which it implements
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8311 to always fail with ENOSYS. Some functions are actually named
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8312 something starting with __ and the normal name is an alias. */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8313 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8314 choke me
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8315 #else
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8316 $ac_func();
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8317 #endif
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8318
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8319 ; return 0; }
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8320 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
8321 if { (eval echo configure:8322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8322 rm -rf conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8323 eval "ac_cv_func_$ac_func=yes"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8324 else
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8325 echo "configure: failed program was:" >&5
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8326 cat conftest.$ac_ext >&5
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8327 rm -rf conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8328 eval "ac_cv_func_$ac_func=no"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8329 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8330 rm -f conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8331
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8332 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8333 echo "$ac_t""yes" 1>&6
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8334 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8335 { test "$extra_verbose" = "yes" && cat << EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8336 Defining $ac_tr_func
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8337 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8338 cat >> confdefs.h <<EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8339 #define $ac_tr_func 1
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8340 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8341 }
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8342
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8343 else
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8344 echo "$ac_t""no" 1>&6
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8345 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8346 done
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8347
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8348 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
8349 echo "configure:8350: checking whether getpgrp takes no argument" >&5
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
8350
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
8351 cat > conftest.$ac_ext <<EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
8352 #line 8353 "configure"
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8353 #include "confdefs.h"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8354
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8355 /*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8356 * If this system has a BSD-style getpgrp(),
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8357 * which takes a pid argument, exit unsuccessfully.
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8358 *
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8359 * Snarfed from Chet Ramey's bash pgrp.c test program
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8360 */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8361 #include <stdio.h>
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8362 #include <sys/types.h>
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8363
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8364 int pid;
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8365 int pg1, pg2, pg3, pg4;
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8366 int ng, np, s, child;
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8367
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8368 main()
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8369 {
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8370 pid = getpid();
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8371 pg1 = getpgrp(0);
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8372 pg2 = getpgrp();
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8373 pg3 = getpgrp(pid);
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8374 pg4 = getpgrp(1);
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8375
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8376 /*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8377 * 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
8378 * we're on a system that ignores getpgrp's first argument.
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8379 */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8380 if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3)
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8381 exit(0);
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8382
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8383 child = fork();
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8384 if (child < 0)
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8385 exit(1);
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8386 else if (child == 0) {
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8387 np = getpid();
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8388 /*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8389 * If this is Sys V, this will not work; pgrp will be
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8390 * set to np because setpgrp just changes a pgrp to be
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8391 * the same as the pid.
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8392 */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8393 setpgrp(np, pg1);
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8394 ng = getpgrp(0); /* Same result for Sys V and BSD */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8395 if (ng == pg1) {
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8396 exit(1);
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8397 } else {
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8398 exit(0);
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8399 }
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8400 } else {
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8401 wait(&s);
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8402 exit(s>>8);
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8403 }
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8404 }
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8405
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8406 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
8407 if { (eval echo configure:8408: \"$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
8408 then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8409 ac_cv_func_getpgrp_void=yes
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8410 else
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8411 echo "configure: failed program was:" >&5
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8412 cat conftest.$ac_ext >&5
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8413 rm -fr conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8414 ac_cv_func_getpgrp_void=no
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8415 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8416 rm -fr conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8417
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8418
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8419 echo "$ac_t""$ac_cv_func_getpgrp_void" 1>&6
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8420 if test $ac_cv_func_getpgrp_void = yes; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8421 { test "$extra_verbose" = "yes" && cat << \EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8422 Defining GETPGRP_VOID
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8423 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8424 cat >> confdefs.h <<\EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8425 #define GETPGRP_VOID 1
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8426 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8427 }
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8428
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8429 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8430
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8431
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8432 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
8433 echo "configure:8434: checking for working mmap" >&5
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8434 case "$opsys" in ultrix* ) have_mmap=no ;; *)
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8435 cat > conftest.$ac_ext <<EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
8436 #line 8437 "configure"
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
8437 #include "confdefs.h"
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
8438 #include <stdio.h>
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
8439 #include <unistd.h>
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8440 #include <fcntl.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8441 #include <sys/mman.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8442
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
8443 #ifndef MAP_VARIABLE
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
8444 #define MAP_VARIABLE 0
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8445 #endif
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8446
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
8447 #ifndef MAP_FAILED
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
8448 #define MAP_FAILED -1
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
8449 #endif
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
8450
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
8451 int main (int argc, char *argv[])
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8452 {
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
8453 int fd = -1;
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
8454 caddr_t p;
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
8455 #ifndef MAP_ANONYMOUS
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
8456 fd = open ("/dev/zero", O_RDWR);
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
8457 if (fd < 0)
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
8458 return 1;
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
8459 #define MAP_ANONYMOUS 0
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
8460 #endif
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
8461 if (mmap(0, 1024, PROT_READ | PROT_WRITE,
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
8462 MAP_PRIVATE | MAP_VARIABLE | MAP_ANONYMOUS,
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
8463 fd, 0) != (void *) MAP_FAILED)
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
8464 return 0;
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
8465 perror ("conftest: mmap failed");
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
8466 return 1;
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
8467 }
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
8468 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
8469 if { (eval echo configure:8470: \"$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
8470 then
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
8471 have_mmap=yes
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8472 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8473 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8474 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8475 rm -fr conftest*
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
8476 have_mmap=no
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8477 fi
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8478 rm -fr conftest* ;;
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8479 esac
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
8480 echo "$ac_t""$have_mmap" 1>&6
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
8481 test "$have_mmap" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8482 Defining HAVE_MMAP
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8483 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8484 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8485 #define HAVE_MMAP 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8486 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8487 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8488
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
8489
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
8490 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
8491 test "$rel_alloc" = "default" -a "$have_mmap" = "yes" && rel_alloc=yes
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8492 test "$rel_alloc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8493 Defining REL_ALLOC
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8494 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8495 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8496 #define REL_ALLOC 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8497 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8498 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8499
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8500
175
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8501 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8502 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
8503 echo "configure:8504: checking for termios.h" >&5
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
8504
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
8505 cat > conftest.$ac_ext <<EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
8506 #line 8507 "configure"
175
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8507 #include "confdefs.h"
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8508 #include <termios.h>
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8509 EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8510 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
8511 { (eval echo configure:8512: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
175
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8512 ac_err=`grep -v '^ *+' conftest.out`
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8513 if test -z "$ac_err"; then
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8514 rm -rf conftest*
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8515 eval "ac_cv_header_$ac_safe=yes"
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8516 else
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8517 echo "$ac_err" >&5
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8518 echo "configure: failed program was:" >&5
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8519 cat conftest.$ac_ext >&5
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8520 rm -rf conftest*
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8521 eval "ac_cv_header_$ac_safe=no"
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8522 fi
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8523 rm -f conftest*
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8524 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8525 echo "$ac_t""yes" 1>&6
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8526 { test "$extra_verbose" = "yes" && cat << \EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8527 Defining HAVE_TERMIOS
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8528 EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8529 cat >> confdefs.h <<\EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8530 #define HAVE_TERMIOS 1
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8531 EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8532 }
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8533
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8534 { test "$extra_verbose" = "yes" && cat << \EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8535 Defining SIGNALS_VIA_CHARACTERS
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8536 EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8537 cat >> confdefs.h <<\EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8538 #define SIGNALS_VIA_CHARACTERS 1
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8539 EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8540 }
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8541
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8542 { test "$extra_verbose" = "yes" && cat << \EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8543 Defining NO_TERMIO
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8544 EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8545 cat >> confdefs.h <<\EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8546 #define NO_TERMIO 1
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8547 EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8548 }
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8549
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8550 else
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8551 echo "$ac_t""no" 1>&6
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8552 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8553 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
8554 echo "configure:8555: checking for termio.h" >&5
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
8555
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
8556 cat > conftest.$ac_ext <<EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
8557 #line 8558 "configure"
175
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8558 #include "confdefs.h"
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8559 #include <termio.h>
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8560 EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8561 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
8562 { (eval echo configure:8563: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
175
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8563 ac_err=`grep -v '^ *+' conftest.out`
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8564 if test -z "$ac_err"; then
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8565 rm -rf conftest*
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8566 eval "ac_cv_header_$ac_safe=yes"
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8567 else
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8568 echo "$ac_err" >&5
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8569 echo "configure: failed program was:" >&5
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8570 cat conftest.$ac_ext >&5
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8571 rm -rf conftest*
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8572 eval "ac_cv_header_$ac_safe=no"
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8573 fi
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8574 rm -f conftest*
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8575 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8576 echo "$ac_t""yes" 1>&6
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8577 { test "$extra_verbose" = "yes" && cat << \EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8578 Defining HAVE_TERMIO
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8579 EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8580 cat >> confdefs.h <<\EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8581 #define HAVE_TERMIO 1
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8582 EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8583 }
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8584
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8585 else
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8586 echo "$ac_t""no" 1>&6
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8587 fi
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8588
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8589 fi
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8590
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8591
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8592
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8593 echo $ac_n "checking for socket""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
8594 echo "configure:8595: checking for socket" >&5
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
8595
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
8596 cat > conftest.$ac_ext <<EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
8597 #line 8598 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8598 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8599 /* System header to define __stub macros and hopefully few prototypes,
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8600 which can conflict with char socket(); below. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8601 #include <assert.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8602 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8603 /* 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
8604 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8605 char socket();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8606
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8607 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8608
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8609 /* The GNU C library defines this for functions which it implements
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8610 to always fail with ENOSYS. Some functions are actually named
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8611 something starting with __ and the normal name is an alias. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8612 #if defined (__stub_socket) || defined (__stub___socket)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8613 choke me
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8614 #else
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8615 socket();
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8616 #endif
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8617
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8618 ; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8619 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
8620 if { (eval echo configure:8621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8621 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8622 eval "ac_cv_func_socket=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8623 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8624 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8625 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8626 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8627 eval "ac_cv_func_socket=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8628 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8629 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8630
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8631 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8632 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8633 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8634 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
8635 echo "configure:8636: checking for netinet/in.h" >&5
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
8636
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
8637 cat > conftest.$ac_ext <<EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
8638 #line 8639 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8639 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8640 #include <netinet/in.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8641 EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8642 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
8643 { (eval echo configure:8644: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8644 ac_err=`grep -v '^ *+' conftest.out`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8645 if test -z "$ac_err"; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8646 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8647 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8648 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8649 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8650 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8651 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8652 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8653 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8654 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8655 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8656 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8657 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8658 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8659 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
8660 echo "configure:8661: checking for arpa/inet.h" >&5
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
8661
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
8662 cat > conftest.$ac_ext <<EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
8663 #line 8664 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8664 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8665 #include <arpa/inet.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8666 EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8667 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
8668 { (eval echo configure:8669: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8669 ac_err=`grep -v '^ *+' conftest.out`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8670 if test -z "$ac_err"; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8671 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8672 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8673 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8674 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8675 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8676 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8677 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8678 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8679 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8680 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8681 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8682 echo "$ac_t""yes" 1>&6
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8683
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8684 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8685 Defining HAVE_SOCKETS
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8686 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8687 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8688 #define HAVE_SOCKETS 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8689 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8690 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8691
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8692 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
8693 echo "configure:8694: checking "for sun_len member in struct sockaddr_un"" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8694 cat > conftest.$ac_ext <<EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
8695 #line 8696 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8696 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8697
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8698 #include <sys/types.h>
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8699 #include <sys/socket.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8700 #include <sys/un.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8701
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8702 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8703 static struct sockaddr_un x; x.sun_len = 1;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8704 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8705 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
8706 if { (eval echo configure:8707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8707 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8708 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8709 Defining HAVE_SOCKADDR_SUN_LEN
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8710 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8711 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8712 #define HAVE_SOCKADDR_SUN_LEN 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8713 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8714 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8715
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8716 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8717 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8718 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8719 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8720 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8721 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8722 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8723 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8724 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8725 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8726
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8727 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8728 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8729 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8730
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8731 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8732 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8733 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8734
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8735
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8736 echo $ac_n "checking for msgget""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
8737 echo "configure:8738: checking for msgget" >&5
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
8738
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
8739 cat > conftest.$ac_ext <<EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
8740 #line 8741 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8741 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8742 /* System header to define __stub macros and hopefully few prototypes,
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8743 which can conflict with char msgget(); below. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8744 #include <assert.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8745 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8746 /* 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
8747 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8748 char msgget();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8749
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8750 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8751
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8752 /* The GNU C library defines this for functions which it implements
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8753 to always fail with ENOSYS. Some functions are actually named
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8754 something starting with __ and the normal name is an alias. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8755 #if defined (__stub_msgget) || defined (__stub___msgget)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8756 choke me
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8757 #else
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8758 msgget();
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8759 #endif
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8760
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8761 ; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8762 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
8763 if { (eval echo configure:8764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8764 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8765 eval "ac_cv_func_msgget=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8766 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8767 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8768 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8769 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8770 eval "ac_cv_func_msgget=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8771 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8772 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8773
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8774 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8775 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8776 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8777 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
8778 echo "configure:8779: checking for sys/ipc.h" >&5
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
8779
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
8780 cat > conftest.$ac_ext <<EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
8781 #line 8782 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8782 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8783 #include <sys/ipc.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8784 EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8785 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
8786 { (eval echo configure:8787: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8787 ac_err=`grep -v '^ *+' conftest.out`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8788 if test -z "$ac_err"; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8789 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8790 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8791 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8792 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8793 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8794 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8795 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8796 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8797 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8798 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8799 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8800 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8801 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8802 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
8803 echo "configure:8804: checking for sys/msg.h" >&5
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
8804
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
8805 cat > conftest.$ac_ext <<EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
8806 #line 8807 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8807 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8808 #include <sys/msg.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8809 EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8810 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
8811 { (eval echo configure:8812: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8812 ac_err=`grep -v '^ *+' conftest.out`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8813 if test -z "$ac_err"; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8814 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8815 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8816 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8817 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8818 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8819 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8820 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8821 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8822 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8823 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8824 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8825 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8826 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8827 Defining HAVE_SYSVIPC
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8828 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8829 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8830 #define HAVE_SYSVIPC 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8831 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8832 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8833
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8834 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8835 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8836 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8837
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8838 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8839 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8840 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8841
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8842 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8843 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8844 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8845
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8846
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8847 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8848 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
8849 echo "configure:8850: checking for dirent.h" >&5
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
8850
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
8851 cat > conftest.$ac_ext <<EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
8852 #line 8853 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8853 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8854 #include <dirent.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8855 EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8856 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
8857 { (eval echo configure:8858: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8858 ac_err=`grep -v '^ *+' conftest.out`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8859 if test -z "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8860 rm -rf conftest*
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8861 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8862 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8863 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8864 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8865 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8866 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8867 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8868 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8869 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8870 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8871 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8872 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8873 Defining SYSV_SYSTEM_DIR
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8874 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8875 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8876 #define SYSV_SYSTEM_DIR 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8877 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8878 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8879
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8880 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8881 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8882 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8883 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
8884 echo "configure:8885: checking for sys/dir.h" >&5
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
8885
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
8886 cat > conftest.$ac_ext <<EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
8887 #line 8888 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8888 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8889 #include <sys/dir.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8890 EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8891 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
8892 { (eval echo configure:8893: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8893 ac_err=`grep -v '^ *+' conftest.out`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8894 if test -z "$ac_err"; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8895 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8896 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8897 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8898 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8899 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8900 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8901 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8902 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8903 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8904 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8905 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8906 echo "$ac_t""yes" 1>&6
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8907 :
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8908 else
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8909 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8910 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8911 Defining NONSYSTEM_DIR_LIBRARY
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8912 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8913 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8914 #define NONSYSTEM_DIR_LIBRARY 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8915 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8916 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8917
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8918 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8919
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8920 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8921
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8922
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8923 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8924 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
8925 echo "configure:8926: checking for nlist.h" >&5
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
8926
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
8927 cat > conftest.$ac_ext <<EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
8928 #line 8929 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8929 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8930 #include <nlist.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8931 EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8932 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
8933 { (eval echo configure:8934: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8934 ac_err=`grep -v '^ *+' conftest.out`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8935 if test -z "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8936 rm -rf conftest*
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8937 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8938 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8939 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8940 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8941 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8942 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8943 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8944 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8945 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8946 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8947 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8948 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8949 Defining NLIST_STRUCT
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8950 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8951 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8952 #define NLIST_STRUCT 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8953 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8954 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8955
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8956 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8957 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8958 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8959
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8960
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8961
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8962 echo "checking "for sound support"" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
8963 echo "configure:8964: checking "for sound support"" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8964 case "$with_sound" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8965 native | both ) with_native_sound=yes;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8966 nas | no ) with_native_sound=no;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8967 esac
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8968 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
8969
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8970 if test "$with_native_sound" != "no"; then
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8971 if test -n "$native_sound_lib"; then
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8972 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8973 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
8974 echo "configure:8975: checking for multimedia/audio_device.h" >&5
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
8975
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
8976 cat > conftest.$ac_ext <<EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
8977 #line 8978 "configure"
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8978 #include "confdefs.h"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8979 #include <multimedia/audio_device.h>
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8980 EOF
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8981 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
8982 { (eval echo configure:8983: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8983 ac_err=`grep -v '^ *+' conftest.out`
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8984 if test -z "$ac_err"; then
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8985 rm -rf conftest*
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8986 eval "ac_cv_header_$ac_safe=yes"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8987 else
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8988 echo "$ac_err" >&5
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8989 echo "configure: failed program was:" >&5
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8990 cat conftest.$ac_ext >&5
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8991 rm -rf conftest*
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8992 eval "ac_cv_header_$ac_safe=no"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8993 fi
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8994 rm -f conftest*
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8995 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8996 echo "$ac_t""yes" 1>&6
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8997 sound_found=yes sound_cflags=""
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8998 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8999 echo " xemacs will be linked with \"sunplay.o\""
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9000 fi
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9001 else
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9002 echo "$ac_t""no" 1>&6
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9003 fi
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9004
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9005 fi
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9006
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9007 if test -z "$sound_found" -a -d "/usr/demo/SOUND"; then
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9008 sound_found=yes
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9009 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9010 echo " xemacs will be linked with \"sunplay.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9011 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9012 if test -d "/usr/demo/SOUND/include"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9013 then sound_cflags="-I/usr/demo/SOUND/include"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9014 else sound_cflags="-I/usr/demo/SOUND"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9015 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9016 if test -z "$native_sound_lib" ; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9017 if test -r "/usr/demo/SOUND/lib/libaudio.a"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9018 then native_sound_lib="/usr/demo/SOUND/lib/libaudio.a"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9019 else native_sound_lib="/usr/demo/SOUND/libaudio.a"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9020 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9021 fi
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9022 fi
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9023
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9024 if test -z "$sound_found"; then
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9025 case "$canonical" in
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9026 *-sgi-* )
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9027 if test -z "$native_sound_lib"; then
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9028
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9029 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
9030 echo "configure:9031: checking for ALopenport in -laudio" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9031 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9032
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9033 xe_check_libs=" -laudio "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9034 cat > conftest.$ac_ext <<EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
9035 #line 9036 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9036 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9037 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9038 /* 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
9039 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9040 char ALopenport();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9041
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9042 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9043 ALopenport()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9044 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9045 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
9046 if { (eval echo configure:9047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9047 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9048 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9049 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9050 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9051 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9052 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9053 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9054 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9055 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9056 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9057
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9058 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
9059 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9060 native_sound_lib="-laudio"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9061 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9062 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9063 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9064
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9065
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9066 fi
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9067 if test -n "$native_sound_lib"; then
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9068 sound_found=yes sound_cflags=""
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9069 extra_objs="$extra_objs sgiplay.o" && if test "$extra_verbose" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9070 echo " xemacs will be linked with \"sgiplay.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9071 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9072 fi ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9073 hppa*-hp-hpux* )
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9074 if test -z "$native_sound_lib"; then
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9075
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9076 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
9077 echo "configure:9078: checking for AOpenAudio in -lAlib" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9078 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9079
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9080 xe_check_libs=" -lAlib "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9081 cat > conftest.$ac_ext <<EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
9082 #line 9083 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9083 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9084 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9085 /* 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
9086 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9087 char AOpenAudio();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9088
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9089 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9090 AOpenAudio()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9091 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9092 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
9093 if { (eval echo configure:9094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9094 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9095 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9096 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9097 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9098 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9099 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9100 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9101 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9102 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9103 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9104
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9105 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
9106 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9107 native_sound_lib="-lAlib"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9108 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9109 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9110 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9111
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9112
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9113 fi
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9114 if test -n "$native_sound_lib"; then
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9115 sound_found=yes
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9116 extra_objs="$extra_objs hpplay.o" && if test "$extra_verbose" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9117 echo " xemacs will be linked with \"hpplay.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9118 fi
169
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
9119 if test "$GCC" = "yes" # Kludge city
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9120 then sound_cflags="-Dconst= -Dvolatile= -I/usr/audio/examples"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9121 else sound_cflags="+e -I/usr/audio/examples"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9122 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9123 fi ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9124 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9125 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9126
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9127 if test -z "$sound_found"; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9128 for dir in "machine" "sys" "linux"; do
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9129 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9130 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
9131 echo "configure:9132: checking for ${dir}/soundcard.h" >&5
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
9132
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
9133 cat > conftest.$ac_ext <<EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
9134 #line 9135 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9135 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9136 #include <${dir}/soundcard.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9137 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9138 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
9139 { (eval echo configure:9140: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9140 ac_err=`grep -v '^ *+' conftest.out`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9141 if test -z "$ac_err"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9142 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9143 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9144 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9145 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9146 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9147 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9148 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9149 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9150 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9151 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9152 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9153 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9154 sound_found=yes
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9155 extra_objs="$extra_objs linuxplay.o" && if test "$extra_verbose" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9156 echo " xemacs will be linked with \"linuxplay.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9157 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9158 { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9159 Defining SOUNDCARD_H_PATH = "${dir}/soundcard.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9160 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9161 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9162 #define SOUNDCARD_H_PATH "${dir}/soundcard.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9163 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9164 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9165
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9166 break
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9167 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9168 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9169 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9170
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9171 done
100
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
9172 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9173
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9174 test "$sound_found" = "yes" && with_native_sound=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9175 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9176
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9177 if test -z "$with_sound"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9178 if test "$with_native_sound" = "yes" -o -n "$native_sound_lib"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9179 with_sound=native
100
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
9180 fi
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
9181 fi
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
9182
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9183 if test "$with_native_sound" = "yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9184 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9185 Defining HAVE_NATIVE_SOUND
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9186 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9187 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9188 #define HAVE_NATIVE_SOUND 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9189 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9190 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9191
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9192 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
9193 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9194
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9195 case "$with_sound" in both | nas )
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9196 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9197 Defining HAVE_NAS_SOUND
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9198 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9199 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9200 #define HAVE_NAS_SOUND 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9201 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9202 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9203
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9204 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9205 echo " xemacs will be linked with \"nas.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9206 fi
201
eb5470882647 Import from CVS: tag r20-3b27
cvs
parents: 197
diff changeset
9207 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9208 cat > conftest.$ac_ext <<EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
9209 #line 9210 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9210 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9211 #include <audio/Xtutil.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9212 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9213 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9214 egrep "AuXtErrorJump" >/dev/null 2>&1; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9215 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9216 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9217 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9218 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9219 Defining NAS_NO_ERROR_JUMP
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9220 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9221 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9222 #define NAS_NO_ERROR_JUMP 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9223 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9224 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9225
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9226 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9227 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9228
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9229 esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9230
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9231
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9232 test -z "$with_tty" && with_tty=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9233
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9234 if test "$with_tty" = "yes" ; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9235 echo "checking for TTY-related features" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
9236 echo "configure:9237: checking for TTY-related features" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9237 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9238 Defining HAVE_TTY
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9239 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9240 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9241 #define HAVE_TTY 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9242 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9243 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9244
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9245 extra_objs="$extra_objs console-tty.o device-tty.o event-tty.o frame-tty.o objects-tty.o redisplay-tty.o cm.o" && if test "$extra_verbose" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9246 echo " xemacs will be linked with \"console-tty.o device-tty.o event-tty.o frame-tty.o objects-tty.o redisplay-tty.o cm.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9247 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9248
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9249 if test -z "$with_ncurses"; then
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
9250
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9251 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
9252 echo "configure:9253: checking for tgetent in -lncurses" >&5
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9253 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9254
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9255 xe_check_libs=" -lncurses "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9256 cat > conftest.$ac_ext <<EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
9257 #line 9258 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9258 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9259 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9260 /* 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
9261 builtin and then its argument prototype would still apply. */
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9262 char tgetent();
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9263
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9264 int main() {
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9265 tgetent()
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9266 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9267 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
9268 if { (eval echo configure:9269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9269 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9270 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9271 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9272 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9273 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9274 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9275 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9276 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9277 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9278 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9279
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9280 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
9281 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9282 with_ncurses=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9283 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9284 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9285 with_ncurses=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9286 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9287
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9288
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9289 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9290 if test "$with_ncurses" = "yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9291 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9292 Defining HAVE_NCURSES
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9293 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9294 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9295 #define HAVE_NCURSES 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9296 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9297 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9298
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9299 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9300 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
9301 echo "configure:9302: checking for ncurses/curses.h" >&5
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
9302
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
9303 cat > conftest.$ac_ext <<EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
9304 #line 9305 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9305 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9306 #include <ncurses/curses.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9307 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9308 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
9309 { (eval echo configure:9310: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9310 ac_err=`grep -v '^ *+' conftest.out`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9311 if test -z "$ac_err"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9312 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9313 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9314 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9315 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9316 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9317 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9318 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9319 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9320 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9321 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9322 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9323 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9324 curses_h_path=ncurses/curses.h
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9325 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9326 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9327 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9328
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9329 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9330 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
9331 echo "configure:9332: checking for ncurses/term.h" >&5
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
9332
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
9333 cat > conftest.$ac_ext <<EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
9334 #line 9335 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9335 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9336 #include <ncurses/term.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9337 EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9338 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
9339 { (eval echo configure:9340: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9340 ac_err=`grep -v '^ *+' conftest.out`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9341 if test -z "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9342 rm -rf conftest*
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9343 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9344 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9345 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9346 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9347 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9348 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9349 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9350 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9351 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9352 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9353 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9354 term_h_path=ncurses/term.h
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9355 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9356 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9357 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9358
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9359 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9360 echo " xemacs will be linked with \"terminfo.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9361 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9362 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
9363
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
9364 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9365 save_c_switch_site="$c_switch_site"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9366 c_switch_site="$c_switch_site -I/usr/include/ncurses"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9367 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9368 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
9369 echo "configure:9370: checking for ncurses/curses.h" >&5
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
9370
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
9371 cat > conftest.$ac_ext <<EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
9372 #line 9373 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9373 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9374 #include <ncurses/curses.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9375 EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9376 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
9377 { (eval echo configure:9378: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9378 ac_err=`grep -v '^ *+' conftest.out`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9379 if test -z "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9380 rm -rf conftest*
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9381 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9382 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9383 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9384 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9385 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9386 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9387 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9388 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9389 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9390 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9391 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9392 curses_h_path=ncurses/curses.h
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9393 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9394 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9395 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9396
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
9397 if test "$ac_cv_header_ncurses_curses_h" = "yes"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9398 then echo "configure: warning: "Your system has the bogus ncurses include bug."" 1>&2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9399 else c_switch_site="$save_c_switch_site"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9400 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9401 fi
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9402 else if test "$have_terminfo" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9403 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9404 echo " xemacs will be linked with \"terminfo.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9405 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9406 if test -n "$libs_termcap"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9407 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
9408 else
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9409 for lib in curses termlib termcap; do
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9410
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9411 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
9412 echo "configure:9413: checking for tgetent in -l$lib" >&5
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9413 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9414
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9415 xe_check_libs=" -l$lib "
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9416 cat > conftest.$ac_ext <<EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
9417 #line 9418 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9418 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9419 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9420 /* 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
9421 builtin and then its argument prototype would still apply. */
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9422 char tgetent();
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9423
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9424 int main() {
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9425 tgetent()
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9426 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9427 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
9428 if { (eval echo configure:9429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9429 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9430 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9431 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9432 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9433 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9434 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9435 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9436 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9437 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9438 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9439
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9440 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9441 echo "$ac_t""yes" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9442 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
9443 else
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9444 echo "$ac_t""no" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9445 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9446
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9447
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9448 done
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9449 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9450 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
9451 echo " xemacs will be linked with \"tparam.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9452 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9453 case "$opsys" in *-hp-hpux* ) libs_termcap="-ltermcap" ;; esac
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9454 if test -n "$libs_termcap"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9455 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
9456 else
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9457
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9458 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
9459 echo "configure:9460: checking for tgetent in -lcurses" >&5
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9460 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9461
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9462 xe_check_libs=" -lcurses "
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9463 cat > conftest.$ac_ext <<EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
9464 #line 9465 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9465 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9466 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9467 /* 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
9468 builtin and then its argument prototype would still apply. */
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9469 char tgetent();
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9470
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9471 int main() {
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9472 tgetent()
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9473 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9474 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
9475 if { (eval echo configure:9476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9476 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9477 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9478 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9479 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9480 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9481 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9482 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9483 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9484 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9485 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9486
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9487 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9488 echo "$ac_t""yes" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9489 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
9490 else
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9491 echo "$ac_t""no" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9492 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
9493 echo "configure:9494: checking for tgetent in -ltermcap" >&5
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9494 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9495
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9496 xe_check_libs=" -ltermcap "
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9497 cat > conftest.$ac_ext <<EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
9498 #line 9499 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9499 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9500 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9501 /* 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
9502 builtin and then its argument prototype would still apply. */
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9503 char tgetent();
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9504
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9505 int main() {
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9506 tgetent()
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9507 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9508 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
9509 if { (eval echo configure:9510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9510 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9511 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9512 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9513 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9514 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9515 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9516 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9517 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9518 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9519 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9520
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9521 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9522 echo "$ac_t""yes" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9523 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
9524 else
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9525 echo "$ac_t""no" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9526 extra_objs="$extra_objs termcap.o" && if test "$extra_verbose" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9527 echo " xemacs will be linked with \"termcap.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9528 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9529 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9530
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9531
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9532 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9533
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9534
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9535 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9536 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9537 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9538 { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9539 Defining CURSES_H_PATH = "${curses_h_path-curses.h}"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9540 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9541 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9542 #define CURSES_H_PATH "${curses_h_path-curses.h}"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9543 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9544 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9545
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9546 { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9547 Defining TERM_H_PATH = "${term_h_path-term.h}"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9548 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9549 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9550 #define TERM_H_PATH "${term_h_path-term.h}"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9551 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9552 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9553
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9554
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9555 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9556 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
9557 echo "configure:9558: checking for gpm.h" >&5
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
9558
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
9559 cat > conftest.$ac_ext <<EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
9560 #line 9561 "configure"
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9561 #include "confdefs.h"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9562 #include <gpm.h>
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9563 EOF
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9564 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
9565 { (eval echo configure:9566: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9566 ac_err=`grep -v '^ *+' conftest.out`
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9567 if test -z "$ac_err"; then
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9568 rm -rf conftest*
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9569 eval "ac_cv_header_$ac_safe=yes"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9570 else
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9571 echo "$ac_err" >&5
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9572 echo "configure: failed program was:" >&5
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9573 cat conftest.$ac_ext >&5
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9574 rm -rf conftest*
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9575 eval "ac_cv_header_$ac_safe=no"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9576 fi
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9577 rm -f conftest*
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9578 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9579 echo "$ac_t""yes" 1>&6
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9580 :
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9581 else
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9582 echo "$ac_t""no" 1>&6
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9583 with_gpm=no
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9584 fi
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9585 }
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9586 test -z "$with_gpm" && {
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9587 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
9588 echo "configure:9589: checking for Gpm_Open in -lgpm" >&5
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9589 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9590
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9591 xe_check_libs=" -lgpm "
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9592 cat > conftest.$ac_ext <<EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
9593 #line 9594 "configure"
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9594 #include "confdefs.h"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9595 /* Override any gcc2 internal prototype to avoid an error. */
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9596 /* 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
9597 builtin and then its argument prototype would still apply. */
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9598 char Gpm_Open();
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9599
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9600 int main() {
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9601 Gpm_Open()
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9602 ; return 0; }
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9603 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
9604 if { (eval echo configure:9605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9605 rm -rf conftest*
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9606 eval "ac_cv_lib_$ac_lib_var=yes"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9607 else
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9608 echo "configure: failed program was:" >&5
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9609 cat conftest.$ac_ext >&5
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9610 rm -rf conftest*
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9611 eval "ac_cv_lib_$ac_lib_var=no"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9612 fi
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9613 rm -f conftest*
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9614 xe_check_libs=""
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9615
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9616 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9617 echo "$ac_t""yes" 1>&6
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9618 with_gpm=yes
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9619 else
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9620 echo "$ac_t""no" 1>&6
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9621 with_gpm=no
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9622 fi
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9623
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9624 }
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9625 if test "$with_gpm" = "yes"; then
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9626 { test "$extra_verbose" = "yes" && cat << \EOF
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9627 Defining HAVE_GPM
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9628 EOF
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9629 cat >> confdefs.h <<\EOF
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9630 #define HAVE_GPM 1
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9631 EOF
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9632 }
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9633
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9634 extra_objs="$extra_objs gpmevent.o" && if test "$extra_verbose" = "yes"; then
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9635 echo " xemacs will be linked with \"gpmevent.o\""
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9636 fi
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9637 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
9638 fi
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9639
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9640 else for feature in ncurses gpm; do
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9641 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9642 echo "configure: warning: "--with-${feature} ignored: Not valid without TTY support"" 1>&2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9643 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9644 eval "with_${feature}=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9645 done
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9646 fi
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
9647 test "$with_x11" = "yes" -o "$with_tty" = "yes" && extra_objs="$extra_objs event-unixoid.o" && if test "$extra_verbose" = "yes"; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
9648 echo " xemacs will be linked with \"event-unixoid.o\""
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
9649 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
9650
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9651
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9652 echo "checking for database support" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
9653 echo "configure:9654: checking for database support" >&5
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9654
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9655 if test "$with_database_gnudbm" != "no"; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9656
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9657 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
9658 echo "configure:9659: checking for dbm_open in -lgdbm" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9659 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9660
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9661 xe_check_libs=" -lgdbm "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9662 cat > conftest.$ac_ext <<EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
9663 #line 9664 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9664 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9665 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9666 /* 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
9667 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9668 char dbm_open();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9669
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9670 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9671 dbm_open()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9672 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9673 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
9674 if { (eval echo configure:9675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9675 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9676 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9677 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9678 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9679 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9680 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9681 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9682 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9683 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9684 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9685
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9686 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
9687 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9688 with_database_gnudbm=yes have_libgdbm=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9689 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9690 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9691 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9692
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9693
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9694 if test "$with_database_gnudbm" != "yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9695 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
9696 echo "configure:9697: checking for dbm_open" >&5
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
9697
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
9698 cat > conftest.$ac_ext <<EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
9699 #line 9700 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9700 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9701 /* System header to define __stub macros and hopefully few prototypes,
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9702 which can conflict with char dbm_open(); below. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9703 #include <assert.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9704 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9705 /* 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
9706 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9707 char dbm_open();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9708
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9709 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9710
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9711 /* The GNU C library defines this for functions which it implements
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9712 to always fail with ENOSYS. Some functions are actually named
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9713 something starting with __ and the normal name is an alias. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9714 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9715 choke me
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9716 #else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9717 dbm_open();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9718 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9719
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9720 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9721 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
9722 if { (eval echo configure:9723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9723 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9724 eval "ac_cv_func_dbm_open=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9725 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9726 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9727 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9728 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9729 eval "ac_cv_func_dbm_open=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9730 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9731 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9732
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9733 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9734 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9735 with_database_gnudbm=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9736 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9737 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9738 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9739
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9740 fi
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9741 if test "$with_database_gnudbm" = "yes"; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9742 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9743 Defining HAVE_DBM
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9744 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9745 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9746 #define HAVE_DBM 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9747 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9748 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9749
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9750 test "$have_libgdbm" = "yes" && LIBS="-lgdbm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgdbm\" to \$LIBS"; fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9751 with_database_dbm=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9752 else with_database_gnudbm=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9753 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9754 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9755
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9756 if test "$with_database_dbm" != "no"; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9757 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
9758 echo "configure:9759: checking for dbm_open" >&5
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
9759
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
9760 cat > conftest.$ac_ext <<EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
9761 #line 9762 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9762 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9763 /* System header to define __stub macros and hopefully few prototypes,
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9764 which can conflict with char dbm_open(); below. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9765 #include <assert.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9766 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9767 /* 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
9768 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9769 char dbm_open();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9770
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9771 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9772
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9773 /* The GNU C library defines this for functions which it implements
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9774 to always fail with ENOSYS. Some functions are actually named
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9775 something starting with __ and the normal name is an alias. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9776 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9777 choke me
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9778 #else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9779 dbm_open();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9780 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9781
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9782 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9783 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
9784 if { (eval echo configure:9785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9785 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9786 eval "ac_cv_func_dbm_open=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9787 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9788 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9789 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9790 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9791 eval "ac_cv_func_dbm_open=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9792 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9793 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9794
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9795 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9796 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9797 with_database_dbm=yes need_libdbm=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9798 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9799 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9800 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9801
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9802 if test "$need_libdbm" != "no"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9803
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9804 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
9805 echo "configure:9806: checking for dbm_open in -ldbm" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9806 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9807
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9808 xe_check_libs=" -ldbm "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9809 cat > conftest.$ac_ext <<EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
9810 #line 9811 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9811 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9812 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9813 /* 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
9814 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9815 char dbm_open();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9816
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9817 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9818 dbm_open()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9819 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9820 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
9821 if { (eval echo configure:9822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9822 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9823 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9824 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9825 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9826 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9827 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9828 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9829 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9830 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9831 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9832
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9833 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
9834 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9835 with_database_dbm=yes need_libdbm=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9836 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9837 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9838 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9839
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
9840
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9841 fi
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9842 if test "$with_database_dbm" = "yes"; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9843 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9844 Defining HAVE_DBM
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9845 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9846 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9847 #define HAVE_DBM 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9848 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9849 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9850
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9851 test "$need_libdbm" = "yes" && LIBS="-ldbm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldbm\" to \$LIBS"; fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9852 else with_database_dbm=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9853 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9854 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9855
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9856 if test "$with_database_berkdb" != "no"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9857 echo $ac_n "checking for dbopen""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
9858 echo "configure:9859: checking for dbopen" >&5
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
9859
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
9860 cat > conftest.$ac_ext <<EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
9861 #line 9862 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9862 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9863 /* System header to define __stub macros and hopefully few prototypes,
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9864 which can conflict with char dbopen(); below. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9865 #include <assert.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9866 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9867 /* 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
9868 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9869 char dbopen();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9870
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9871 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9872
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9873 /* The GNU C library defines this for functions which it implements
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9874 to always fail with ENOSYS. Some functions are actually named
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9875 something starting with __ and the normal name is an alias. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9876 #if defined (__stub_dbopen) || defined (__stub___dbopen)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9877 choke me
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9878 #else
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9879 dbopen();
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9880 #endif
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9881
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9882 ; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9883 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
9884 if { (eval echo configure:9885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9885 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9886 eval "ac_cv_func_dbopen=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9887 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9888 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9889 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9890 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9891 eval "ac_cv_func_dbopen=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9892 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9893 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9894
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9895 if eval "test \"`echo '$ac_cv_func_'dbopen`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9896 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9897 with_database_berkdb=yes need_libdb=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9898 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9899 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9900 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9901
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9902 if test "$need_libdb" != "no"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9903
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9904 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
9905 echo "configure:9906: checking for dbopen in -ldb" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9906 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9907
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9908 xe_check_libs=" -ldb "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9909 cat > conftest.$ac_ext <<EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
9910 #line 9911 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9911 #include "confdefs.h"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9912 /* Override any gcc2 internal prototype to avoid an error. */
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9913 /* 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
9914 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9915 char dbopen();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9916
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9917 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9918 dbopen()
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9919 ; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9920 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
9921 if { (eval echo configure:9922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9922 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9923 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9924 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9925 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9926 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9927 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9928 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9929 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9930 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9931 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9932
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9933 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
9934 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9935 with_database_berkdb=yes need_libdb=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9936 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9937 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9938 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9939
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
9940
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9941 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9942 if test "$with_database_berkdb" = "yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9943 for path in "db/db.h" "db.h"; do
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9944 cat > conftest.$ac_ext <<EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
9945 #line 9946 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9946 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9947 #ifdef HAVE_INTTYPES_H
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9948 #define __BIT_TYPES_DEFINED__
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9949 #include <inttypes.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9950 typedef uint8_t u_int8_t;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9951 typedef uint16_t u_int16_t;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9952 typedef uint32_t u_int32_t;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9953 #ifdef WE_DONT_NEED_QUADS
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9954 typedef uint64_t u_int64_t;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9955 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9956 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9957 #include <$path>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9958
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9959 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9960
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9961 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9962 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
9963 if { (eval echo configure:9964: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9964 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9965 db_h_path="$path"; break
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9966 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9967 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9968 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9969 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9970 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9971 done
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9972 test -z "$db_h_path" && with_database_berkdb=no
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9973 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9974 if test "$with_database_berkdb" = "yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9975 { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9976 Defining DB_H_PATH = "$db_h_path"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9977 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9978 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9979 #define DB_H_PATH "$db_h_path"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9980 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9981 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9982
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9983 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9984 Defining HAVE_BERKELEY_DB
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9985 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9986 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9987 #define HAVE_BERKELEY_DB 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9988 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9989 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9990
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9991 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
9992 else with_database_berkdb=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9993 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9994 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9995
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9996 if test "$with_database_gnudbm" = "yes" -o \
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9997 "$with_database_dbm" = "yes" -o \
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9998 "$with_database_berkdb" = "yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9999 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10000 Defining HAVE_DATABASE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10001 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10002 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10003 #define HAVE_DATABASE 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10004 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10005 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10006
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10007 extra_objs="$extra_objs database.o" && if test "$extra_verbose" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10008 echo " xemacs will be linked with \"database.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10009 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10010 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10011
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10012 if test "$with_socks" = "yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10013
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10014 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
10015 echo "configure:10016: checking for SOCKSinit in -lsocks" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10016 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10017
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10018 xe_check_libs=" -lsocks "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10019 cat > conftest.$ac_ext <<EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
10020 #line 10021 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10021 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10022 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10023 /* 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
10024 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10025 char SOCKSinit();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10026
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10027 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10028 SOCKSinit()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10029 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10030 EOF
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
10031 if { (eval echo configure:10032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10032 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10033 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10034 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10035 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10036 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10037 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10038 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10039 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10040 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10041 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10042
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10043 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
10044 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10045 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
10046 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10047 { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10048 Defining $ac_tr_lib
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10049 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10050 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10051 #define $ac_tr_lib 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10052 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10053 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10054
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10055 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
10056
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10057 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10058 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10059 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10060
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10061
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10062 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
10063 Defining HAVE_SOCKS
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10064 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10065 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10066 #define HAVE_SOCKS 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10067 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10068 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10069
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10070 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10071
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10072 if test "$usage_tracking" = "yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10073 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10074 Defining USAGE_TRACKING
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10075 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10076 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10077 #define USAGE_TRACKING 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10078 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10079 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10080
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10081 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
10082 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10083
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10084
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10085
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10086 T=""
175
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
10087 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
10088 CFLAGS="$T"
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
10089
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
10090
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
10091 T=""
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10092 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
10093 extra_objs="$T"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10094
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10095
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10096 T=""
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10097 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
10098 c_switch_general="$T"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10099
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10100
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10101 T=""
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10102 for W in $c_switch_x_site $X_CFLAGS; 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
10103 c_switch_window_system="$T"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10104
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10105
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10106 T=""
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10107 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
10108 c_switch_all="$T"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10109
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10110
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10111 T=""
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10112 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
10113 ld_switch_general="$T"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10114
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10115
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10116 T=""
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10117 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
10118 ld_switch_window_system="$T"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10119
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10120
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10121 T=""
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10122 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
10123 ld_switch_all="$T"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10124
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10125
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10126 T=""
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10127 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
10128 ld_libs_general="$T"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10129
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10130
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10131 T=""
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10132 for W in $X_EXTRA_LIBS $libs_x $X_PRE_LIBS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10133 ld_libs_window_system="$T"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10134
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10135
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10136 T=""
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10137 for W in $ld_libs_window_system $ld_libs_general; 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
10138 ld_libs_all="$T"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10139
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10140
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10141
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10142 MAKE_SUBDIR="$MAKE_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$MAKE_SUBDIR"; fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10143 internal_makefile_list="Makefile"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10144 SUBDIR_MAKEFILES=''
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10145 test -d lock || mkdir lock
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10146 for dir in $MAKE_SUBDIR; do
167
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
10147 case "$dir" in */* ) ( for d in `echo $dir | sed 's:/: :g'` ; do
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
10148 test -d "$d" || mkdir "$d"; cd "$d"
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
10149 done ) ;;
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
10150 * ) test -d "$dir" || mkdir "$dir" ;;
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
10151 esac
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10152
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10153 T=""
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10154 for W in $SUBDIR_MAKEFILES $dir/Makefile; 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
10155 SUBDIR_MAKEFILES="$T"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10156
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10157
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10158 T=""
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10159 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
10160 internal_makefile_list="$T"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10161
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10162 done
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10163
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10164
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10165
167
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
10166
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
10167 for dir in src/s src/m; do
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
10168 if test ! -d "$dir" ; then
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
10169 echo Making symbolic link to "$srcdir/$dir"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
10170 ${LN_S} "$srcdir/$dir" "$dir"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
10171 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
10172 done
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
10173
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10174 if test "$extra_verbose" = "yes"; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10175 echo ""
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10176 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
10177 echo ""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10178 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10179
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10180 if test -f $srcdir/src/gdbinit -a ! -f src/gdbinit ; then
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
10181 echo "creating src/gdbinit"; echo ""
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10182 echo "source $srcdir/src/gdbinit" > src/gdbinit
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10183 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10184
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
10185 if test "$__sunpro_c" = "yes"; then
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
10186 echo "creating .sbinit"; echo ""
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
10187 ( echo "# For use with Sun WorkShop's Source browser."
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
10188 echo "# See sbquery(1) and sbinit(4) for more information"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
10189 for dir in $MAKE_SUBDIR; do echo "import $dir"; done
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
10190 ) > .sbinit
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
10191 fi
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10192
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10193 rm -f core
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10194
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10195
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10196
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10197
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10198
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10199
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10200
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10201
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10202
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10203
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10204
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10205
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10206
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10207
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10208
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10209
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10210
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10211
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10212
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10213
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10214
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10215
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10216
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10217
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10218
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10219
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10220
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10221
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10222
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10223
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10224
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10225
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10226
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10227
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10228
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10229
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10230
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10231
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10232
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10233
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10234
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10235
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10236
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10237
203
850242ba4a81 Import from CVS: tag r20-3b28
cvs
parents: 201
diff changeset
10238
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
10239
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
10240 RECURSIVE_MAKE="\$(MAKE) \$(MFLAGS) CC='\$(CC)' CFLAGS='\$(CFLAGS)' LDFLAGS='\$(LDFLAGS)' CPPFLAGS='\$(CPPFLAGS)'"
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
10241
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
10242
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
10243
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
10244
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
10245
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
10246
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
10247
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
10248
187
b405438285a2 Import from CVS: tag r20-3b20
cvs
parents: 185
diff changeset
10249 if test "${package_path}" = "NONE" ; then
b405438285a2 Import from CVS: tag r20-3b20
cvs
parents: 185
diff changeset
10250 package_path="~/.xemacs:${prefix}/lib/xemacs/packages"
185
3d6bfa290dbd Import from CVS: tag r20-3b19
cvs
parents: 183
diff changeset
10251 fi
3d6bfa290dbd Import from CVS: tag r20-3b19
cvs
parents: 183
diff changeset
10252 package_path=`echo $package_path | sed 'y/ /:/'`
3d6bfa290dbd Import from CVS: tag r20-3b19
cvs
parents: 183
diff changeset
10253 { test "$extra_verbose" = "yes" && cat << EOF
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
10254 Defining PACKAGE_PATH = "$package_path"
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
10255 EOF
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
10256 cat >> confdefs.h <<EOF
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
10257 #define PACKAGE_PATH "$package_path"
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
10258 EOF
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
10259 }
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
10260
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10261
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
10262
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
10263 T=""
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
10264 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
10265 ac_configure_args="$T"
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
10266
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10267 { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10268 Defining EMACS_CONFIGURATION = "$canonical"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10269 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10270 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10271 #define EMACS_CONFIGURATION "$canonical"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10272 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10273 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10274
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10275 { test "$extra_verbose" = "yes" && cat << EOF
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
10276 Defining EMACS_CONFIG_OPTIONS = "$ac_configure_args"
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
10277 EOF
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
10278 cat >> confdefs.h <<EOF
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
10279 #define EMACS_CONFIG_OPTIONS "$ac_configure_args"
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
10280 EOF
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
10281 }
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
10282
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
10283 { test "$extra_verbose" = "yes" && cat << EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10284 Defining config_machfile = "$machfile"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10285 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10286 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10287 #define config_machfile "$machfile"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10288 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10289 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10290
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10291 { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10292 Defining config_opsysfile = "$opsysfile"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10293 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10294 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10295 #define config_opsysfile "$opsysfile"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10296 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10297 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10298
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10299
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10300
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10301 null_string=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10302 { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10303 Defining LD_SWITCH_X_SITE = $null_string
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10304 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10305 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10306 #define LD_SWITCH_X_SITE $null_string
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10307 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10308 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10309
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10310 { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10311 Defining LD_SWITCH_X_SITE_AUX = $null_string
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10312 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10313 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10314 #define LD_SWITCH_X_SITE_AUX $null_string
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10315 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10316 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10317
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10318 { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10319 Defining C_SWITCH_X_SITE = $null_string
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10320 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10321 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10322 #define C_SWITCH_X_SITE $null_string
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10323 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10324 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10325
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10326 { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10327 Defining LD_SWITCH_SITE = $null_string
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10328 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10329 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10330 #define LD_SWITCH_SITE $null_string
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10331 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10332 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10333
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10334 { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10335 Defining C_SWITCH_SITE = $null_string
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10336 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10337 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10338 #define C_SWITCH_SITE $null_string
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10339 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10340 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10341
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10342
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10343
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10344 test -n "$puresize" && { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10345 Defining RAW_PURESIZE = $puresize
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10346 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10347 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10348 #define RAW_PURESIZE $puresize
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10349 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10350 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10351
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10352
181
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
10353 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
10354 Defining GNU_MALLOC
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10355 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10356 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10357 #define GNU_MALLOC 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10358 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10359 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10360
181
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
10361 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
10362 Defining USE_SYSTEM_MALLOC
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10363 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10364 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10365 #define USE_SYSTEM_MALLOC 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10366 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10367 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10368
181
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
10369 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
10370 Defining USE_DEBUG_MALLOC
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
10371 EOF
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
10372 cat >> confdefs.h <<\EOF
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
10373 #define USE_DEBUG_MALLOC 1
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
10374 EOF
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
10375 }
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
10376
181
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
10377 { test "$extra_verbose" = "yes" && cat << \EOF
177
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
10378 Defining USE_SYSTEM_MALLOC
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
10379 EOF
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
10380 cat >> confdefs.h <<\EOF
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
10381 #define USE_SYSTEM_MALLOC 1
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
10382 EOF
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
10383 }
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
10384
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10385 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10386 test "$with_i18n3" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10387 Defining I18N3
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10388 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10389 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10390 #define I18N3 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10391 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10392 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10393
169
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
10394 test "$GCC" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10395 Defining USE_GCC
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10396 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10397 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10398 #define USE_GCC 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10399 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10400 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10401
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10402 test "$with_term" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10403 Defining HAVE_TERM
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10404 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10405 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10406 #define HAVE_TERM 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10407 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10408 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10409
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10410 test "$external_widget" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10411 Defining EXTERNAL_WIDGET
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10412 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10413 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10414 #define EXTERNAL_WIDGET 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10415 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10416 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10417
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10418 test "$with_gnu_make" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10419 Defining USE_GNU_MAKE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10420 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10421 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10422 #define USE_GNU_MAKE 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10423 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10424 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10425
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10426 test "$no_doc_file" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10427 Defining NO_DOC_FILE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10428 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10429 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10430 #define NO_DOC_FILE 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10431 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10432 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10433
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10434 test "$const_is_losing" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10435 Defining CONST_IS_LOSING
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10436 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10437 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10438 #define CONST_IS_LOSING 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10439 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10440 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10441
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10442 test "$with_quantify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10443 Defining QUANTIFY
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10444 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10445 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10446 #define QUANTIFY 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10447 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10448 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10449
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10450 test "$with_pop" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10451 Defining MAIL_USE_POP
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10452 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10453 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10454 #define MAIL_USE_POP 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10455 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10456 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10457
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10458 test "$with_kerberos" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10459 Defining KERBEROS
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10460 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10461 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10462 #define KERBEROS 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10463 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10464 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10465
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10466 test "$with_hesiod" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10467 Defining HESIOD
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10468 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10469 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10470 #define HESIOD 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10471 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10472 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10473
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10474 test "$use_union_type" != yes && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10475 Defining NO_UNION_TYPE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10476 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10477 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10478 #define NO_UNION_TYPE 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10479 EOF
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10480 }
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
10481
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
10482
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10483
118
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
10484 (
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10485 if test -f /etc/osversion; then echo "osversion: `cat /etc/osversion`"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10486 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10487 echo "uname -a: `uname -a`"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10488 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10489 echo ""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10490 echo "$0 $quoted_arguments"
118
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
10491 ) >> Installation
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10492
116
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
10493 (
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10494 echo "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10495
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10496 Configured for \`$canonical'.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10497
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10498 Where should the build process find the source code? $srcdir
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10499 What installation prefix should install use? $prefix
183
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 181
diff changeset
10500 Where should XEmacs look for packages? $package_path
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10501 What operating system and machine description files should XEmacs use?
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10502 \`$opsysfile' and \`$machfile'
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10503 What compiler should XEmacs be built with? $CC $CFLAGS
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10504 Should XEmacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10505 Should XEmacs use the relocating allocator for buffers? $rel_alloc
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10506 What window system should XEmacs use? ${window_system}"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10507 if test "$with_x11" = "yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10508 echo " Where do we find X Windows header files? $x_includes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10509 echo " Where do we find X Windows libraries? $x_libraries"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10510 fi
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
10511 if test -n "$site_includes"; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10512 echo " Additional header files: $site_includes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10513 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10514 if test -n "$site_libraries"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10515 echo " Additional libraries: $site_libraries"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10516 fi
209
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents: 207
diff changeset
10517 if test -n "$site_prefixes"; then
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents: 207
diff changeset
10518 echo " Additional prefixes: $site_prefixes"
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents: 207
diff changeset
10519 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10520 if test -n "$runpath"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10521 echo " Runtime library search path: $runpath"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10522 fi
136
b980b6286996 Import from CVS: tag r20-2b2
cvs
parents: 126
diff changeset
10523 test "$with_dnet" = yes && echo " Compiling in support for DNET."
116
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
10524 test "$with_socks" = yes && echo " Compiling in support for SOCKS."
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
10525 test "$with_term" = yes && echo " Compiling in support for TERM."
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
10526 test "$with_xauth" = yes && echo " Compiling in support for XAUTH."
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10527 if test "$with_xmu" != yes -a "$with_x11" = yes; then
116
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
10528 echo " No Xmu; substituting equivalent routines."
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
10529 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10530
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
10531 if test "$with_xpm" = yes; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10532 echo " Compiling in support for XPM images."
175
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
10533 elif test "$with_x11" = yes; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10534 echo " --------------------------------------------------------------------"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10535 echo " WARNING: Compiling without XPM support."
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10536 echo " WARNING: You should strongly considering installing XPM."
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10537 echo " WARNING: Otherwise toolbars and other graphics will look suboptimal."
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10538 echo " --------------------------------------------------------------------"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10539 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10540 test "$with_xface" = yes && echo " Compiling in support for X-Face message headers."
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
10541 test "$with_imagick" = yes && echo " Compiling in support for ImageMagick image conversion."
225
12579d965149 Import from CVS: tag r20-4b11
cvs
parents: 223
diff changeset
10542 test "$with_imagick" = yes && echo " Using $imagick_libs for graphics libraries."
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10543 case "$with_sound" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10544 nas ) echo " Compiling in network sound (NAS) support." ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10545 native ) echo " Compiling in native sound support." ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10546 both ) echo " Compiling in both network and native sound support." ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10547 esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10548 test "$old_nas" = yes && echo " nas library lacks error trapping, will play synchronously"
116
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
10549
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
10550 test "$with_database_berkdb" = yes && echo " Compiling in support for Berkeley DB."
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
10551 test "$with_database_dbm" = yes && echo " Compiling in support for DBM."
209
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents: 207
diff changeset
10552 test "$with_database_gnudbm" = yes && echo " Compiling in support for DBM."
116
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
10553
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10554 test "$with_ncurses" = yes && echo " Compiling in support for ncurses."
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10555 test "$with_gpm" = yes && echo " Compiling in support for GPM (General Purpose Mouse)."
116
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
10556
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
10557 test "$with_mule" = yes && echo " Compiling in Mule (multi-lingual) support."
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
10558 test "$with_xim" != no && echo " Compiling in XIM (X11R5+ I18N input method) support."
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
10559 test "$with_xim" = motif && echo " Using Motif to provide XIM support."
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
10560 test "$with_xim" = xlib && echo " Using raw Xlib to provide XIM support."
177
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
10561 test "$with_xfs" = yes && echo " Using XFontSet to provide bilingual menubar."
116
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
10562 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
10563 if test "$with_wnn" = yes; then
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
10564 echo " Compiling in support for the WNN input method on Mule."
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10565 test "$with_wnn6" = yes && echo " Using WNN version 6."
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
10566 fi
116
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
10567 test "$with_i18n3" = yes && echo " Compiling in I18N support, level 3 (doesn't currently work)."
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
10568
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
10569 test "$with_cde" = yes && echo " Compiling in support for CDE."
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
10570 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk."
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
10571 test "$with_offix" = yes && echo " Compiling in support for OffiX."
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10572 test "$with_workshop" = yes && echo " Compiling in support for Sun WorkShop."
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
10573 test "$with_session" = yes && echo " Compiling in support for proper session-management."
203
850242ba4a81 Import from CVS: tag r20-3b28
cvs
parents: 201
diff changeset
10574 case "$with_menubars" in
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
10575 lucid ) echo " Using Lucid menubars." ;;
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
10576 motif ) echo " Using Motif menubars."
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
10577 echo " *WARNING* The Motif menubar implementation is currently buggy."
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10578 echo " We recommend using the Lucid menubar instead."
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10579 echo " Re-run configure with --with-menubars='lucid'." ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10580 esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10581 case "$with_scrollbars" in
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
10582 lucid ) echo " Using Lucid scrollbars." ;;
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
10583 motif ) echo " Using Motif scrollbars." ;;
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
10584 athena ) echo " Using Athena scrollbars." ;;
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
10585 athena3d ) echo " Using Athena-3d scrollbars." ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10586 esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10587 case "$with_dialogs" in
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
10588 motif ) echo " Using Motif dialog boxes." ;;
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
10589 athena ) echo " Using Athena dialog boxes." ;;
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
10590 athena3d ) echo " Using Athena-3d dialog boxes." ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10591 esac
203
850242ba4a81 Import from CVS: tag r20-3b28
cvs
parents: 201
diff changeset
10592 test "$with_clash_detection" = yes && \
850242ba4a81 Import from CVS: tag r20-3b28
cvs
parents: 201
diff changeset
10593 echo " Clash detection will use \"$lockdir\" for locking files."
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
10594 echo " movemail will use \"$mail_locking\" for locking mail spool files."
126
1370575f1259 Import from CVS: tag xemacs-20-1p1
cvs
parents: 120
diff changeset
10595 test "$with_pop" = yes && echo " Using POP for mail access"
1370575f1259 Import from CVS: tag xemacs-20-1p1
cvs
parents: 120
diff changeset
10596 test "$with_kerberos" = yes && echo " Using Kerberos for POP authentication"
1370575f1259 Import from CVS: tag xemacs-20-1p1
cvs
parents: 120
diff changeset
10597 test "$with_hesiod" = yes && echo " Using Hesiod to get POP server host"
203
850242ba4a81 Import from CVS: tag r20-3b28
cvs
parents: 201
diff changeset
10598 echo " The \`Info-default-directory-list' will be initialized from:"
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
10599 echo " INFOPATH=\"$infopath\""
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10600 test "$use_union_type" = yes && echo " Using the union type for Lisp_Objects."
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10601 test "$debug" = yes && echo " Compiling in extra code for debugging."
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10602 test "$memory_usage_stats" = yes && echo " Compiling in code for checking XEmacs memory usage."
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10603 test "$usage_tracking" = yes && echo " Compiling with usage tracking active (Sun internal)."
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10604 if test "$error_check_extents $error_check_typecheck $error_check_bufpos $error_check_gc $error_check_malloc" \
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10605 != "no no no no no"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10606 echo " WARNING: ---------------------------------------------------------"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10607 echo " WARNING: Compiling in support for runtime error checking."
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10608 echo " WARNING: XEmacs will run noticeably more slowly as a result."
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10609 echo " WARNING: Error checking is on by default for XEmacs beta releases."
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10610 echo " WARNING: ---------------------------------------------------------"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10611 fi
118
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
10612 echo ""
116
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
10613 ) | tee -a Installation
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10614 echo "The above configure report is appended to \"Installation\" file."
118
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
10615 echo ""
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
10616
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
10617
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
10618
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10619 # Remove any trailing slashes in these variables.
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10620 test -n "$prefix" &&
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
10621 prefix=`echo '' "$prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10622 test -n "$exec_prefix" &&
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
10623 exec_prefix=`echo '' "$exec_prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10624
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10625
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10626 trap '' 1 2 15
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10627
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10628 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
10629
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10630 test "x$prefix" = xNONE && prefix=$ac_default_prefix
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10631 # Let make expand exec_prefix.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10632 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10633
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10634 # Any assignment to VPATH causes Sun make to only execute
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10635 # the first set of double-colon rules, so remove it if not needed.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10636 # If there is a colon in the path, we need to keep it.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10637 if test "x$srcdir" = x.; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10638 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10639 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10640
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10641 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10642
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10643 DEFS=-DHAVE_CONFIG_H
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10644
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10645 # Without the "./", some shells look in PATH for config.status.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10646 : ${CONFIG_STATUS=./config.status}
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10647
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10648 echo creating $CONFIG_STATUS
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10649 rm -f $CONFIG_STATUS
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10650 cat > $CONFIG_STATUS <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10651 #! /bin/sh
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10652 # Generated automatically by configure.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10653 # Run this file to recreate the current configuration.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10654 # This directory was configured as follows,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10655 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10656 #
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10657 # $0 $ac_configure_args
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10658 #
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10659 # Compiler output produced by configure, useful for debugging
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10660 # configure, is in ./config.log if it exists.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10661
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10662 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10663 for ac_option
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10664 do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10665 case "\$ac_option" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10666 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10667 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
10668 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
10669 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10670 echo "$CONFIG_STATUS generated by autoconf version 2.12"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10671 exit 0 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10672 -help | --help | --hel | --he | --h)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10673 echo "\$ac_cs_usage"; exit 0 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10674 *) echo "\$ac_cs_usage"; exit 1 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10675 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10676 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10677
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10678 ac_given_srcdir=$srcdir
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10679 ac_given_INSTALL="$INSTALL"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10680
181
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
10681 trap 'rm -fr `echo "$internal_makefile_list lib-src/config.values 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
10682 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10683 cat >> $CONFIG_STATUS <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10684
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10685 # 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
10686 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10687 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10688 $ac_vpsub
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10689 $extrasub
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10690 s%@CFLAGS@%$CFLAGS%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10691 s%@CPPFLAGS@%$CPPFLAGS%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10692 s%@CXXFLAGS@%$CXXFLAGS%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10693 s%@DEFS@%$DEFS%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10694 s%@LDFLAGS@%$LDFLAGS%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10695 s%@LIBS@%$LIBS%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10696 s%@exec_prefix@%$exec_prefix%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10697 s%@prefix@%$prefix%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10698 s%@program_transform_name@%$program_transform_name%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10699 s%@bindir@%$bindir%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10700 s%@sbindir@%$sbindir%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10701 s%@libexecdir@%$libexecdir%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10702 s%@datadir@%$datadir%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10703 s%@sysconfdir@%$sysconfdir%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10704 s%@sharedstatedir@%$sharedstatedir%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10705 s%@localstatedir@%$localstatedir%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10706 s%@libdir@%$libdir%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10707 s%@includedir@%$includedir%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10708 s%@oldincludedir@%$oldincludedir%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10709 s%@infodir@%$infodir%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10710 s%@mandir@%$mandir%g
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10711 s%@LN_S@%$LN_S%g
181
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
10712 s%@blddir@%$blddir%g
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10713 s%@CC@%$CC%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10714 s%@CPP@%$CPP%g
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
10715 s%@start_flags@%$start_flags%g
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10716 s%@ld_switch_shared@%$ld_switch_shared%g
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10717 s%@start_files@%$start_files%g
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10718 s%@ld@%$ld%g
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10719 s%@lib_gcc@%$lib_gcc%g
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10720 s%@RANLIB@%$RANLIB%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10721 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10722 s%@INSTALL_DATA@%$INSTALL_DATA%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10723 s%@YACC@%$YACC%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10724 s%@SET_MAKE@%$SET_MAKE%g
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10725 s%@X_CFLAGS@%$X_CFLAGS%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10726 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10727 s%@X_LIBS@%$X_LIBS%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10728 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
10729 s%@libs_xauth@%$libs_xauth%g
197
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 193
diff changeset
10730 s%@OFFIX_O@%$OFFIX_O%g
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
10731 s%@lwlib_objs@%$lwlib_objs%g
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10732 s%@ALLOCA@%$ALLOCA%g
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10733 s%@SRC_SUBDIR_DEPS@%$SRC_SUBDIR_DEPS%g
167
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
10734 s%@INSTALL_ARCH_DEP_SUBDIR@%$INSTALL_ARCH_DEP_SUBDIR%g
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10735 s%@MAKE_SUBDIR@%$MAKE_SUBDIR%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10736 s%@SUBDIR_MAKEFILES@%$SUBDIR_MAKEFILES%g
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10737 s%@version@%$version%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10738 s%@configuration@%$configuration%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10739 s%@canonical@%$canonical%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10740 s%@srcdir@%$srcdir%g
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10741 s%@pkgdir@%$pkgdir%g
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10742 s%@statedir@%$statedir%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10743 s%@infodir_user_defined@%$infodir_user_defined%g
203
850242ba4a81 Import from CVS: tag r20-3b28
cvs
parents: 201
diff changeset
10744 s%@infopath@%$infopath%g
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
10745 s%@infopath_user_defined@%$infopath_user_defined%g
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10746 s%@lispdir@%$lispdir%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10747 s%@lispdir_user_defined@%$lispdir_user_defined%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10748 s%@sitelispdir@%$sitelispdir%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10749 s%@etcdir@%$etcdir%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10750 s%@etcdir_user_defined@%$etcdir_user_defined%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10751 s%@lockdir@%$lockdir%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10752 s%@lockdir_user_defined@%$lockdir_user_defined%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10753 s%@archlibdir@%$archlibdir%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10754 s%@archlibdir_user_defined@%$archlibdir_user_defined%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10755 s%@docdir@%$docdir%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10756 s%@bitmapdir@%$bitmapdir%g
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10757 s%@extra_objs@%$extra_objs%g
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10758 s%@machfile@%$machfile%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10759 s%@opsysfile@%$opsysfile%g
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10760 s%@c_switch_general@%$c_switch_general%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10761 s%@c_switch_window_system@%$c_switch_window_system%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10762 s%@c_switch_all@%$c_switch_all%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10763 s%@ld_switch_general@%$ld_switch_general%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10764 s%@ld_switch_window_system@%$ld_switch_window_system%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10765 s%@ld_switch_all@%$ld_switch_all%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10766 s%@ld_libs_general@%$ld_libs_general%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10767 s%@ld_libs_window_system@%$ld_libs_window_system%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10768 s%@ld_libs_all@%$ld_libs_all%g
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
10769 s%@RECURSIVE_MAKE@%$RECURSIVE_MAKE%g
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10770 s%@native_sound_lib@%$native_sound_lib%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10771 s%@sound_cflags@%$sound_cflags%g
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10772 s%@dynodump_arch@%$dynodump_arch%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10773 s%@internal_makefile_list@%$internal_makefile_list%g
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10774
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10775 CEOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10776 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10777
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10778 cat >> $CONFIG_STATUS <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10779
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10780 # Split the substitutions into bite-sized pieces for seds with
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10781 # small command number limits, like on Digital OSF/1 and HP-UX.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10782 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
10783 ac_file=1 # Number of current file.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10784 ac_beg=1 # First line for current file.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10785 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
10786 ac_more_lines=:
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10787 ac_sed_cmds=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10788 while $ac_more_lines; do
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10789 if test $ac_beg -gt 1; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10790 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
10791 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10792 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10793 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10794 if test ! -s conftest.s$ac_file; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10795 ac_more_lines=false
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10796 rm -f conftest.s$ac_file
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10797 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10798 if test -z "$ac_sed_cmds"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10799 ac_sed_cmds="sed -f conftest.s$ac_file"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10800 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10801 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10802 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10803 ac_file=`expr $ac_file + 1`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10804 ac_beg=$ac_end
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10805 ac_end=`expr $ac_end + $ac_max_sed_cmds`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10806 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10807 done
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10808 if test -z "$ac_sed_cmds"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10809 ac_sed_cmds=cat
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10810 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10811 EOF
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 cat >> $CONFIG_STATUS <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10814
181
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
10815 CONFIG_FILES=\${CONFIG_FILES-"$internal_makefile_list lib-src/config.values"}
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10816 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10817 cat >> $CONFIG_STATUS <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10818 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
10819 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10820 case "$ac_file" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10821 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10822 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10823 *) ac_file_in="${ac_file}.in" ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10824 esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10825
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10826 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10827
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10828 # 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
10829 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10830 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10831 # The file is in a subdirectory.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10832 test ! -d "$ac_dir" && mkdir "$ac_dir"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10833 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10834 # A "../" for each directory in $ac_dir_suffix.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10835 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10836 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10837 ac_dir_suffix= ac_dots=
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10838 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10839
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10840 case "$ac_given_srcdir" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10841 .) srcdir=.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10842 if test -z "$ac_dots"; then top_srcdir=.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10843 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10844 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10845 *) # Relative path.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10846 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10847 top_srcdir="$ac_dots$ac_given_srcdir" ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10848 esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10849
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10850 case "$ac_given_INSTALL" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10851 [/$]*) INSTALL="$ac_given_INSTALL" ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10852 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10853 esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10854
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10855 echo creating "$ac_file"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10856 rm -f "$ac_file"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10857 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
10858 case "$ac_file" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10859 *Makefile*) ac_comsub="1i\\
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10860 # $configure_input" ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10861 *) ac_comsub= ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10862 esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10863
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10864 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
10865 sed -e "$ac_comsub
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10866 s%@configure_input@%$configure_input%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10867 s%@srcdir@%$srcdir%g
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10868 s%@top_srcdir@%$top_srcdir%g
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10869 s%@INSTALL@%$INSTALL%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10870 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10871 fi; done
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10872 rm -f conftest.s*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10873
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10874 # 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
10875 # 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
10876 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10877 # ac_d sets the value in "#define NAME VALUE" lines.
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10878 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10879 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10880 ac_dC='\3'
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10881 ac_dD='%g'
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10882 # 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
10883 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10884 ac_uB='\([ ]\)%\1#\2define\3'
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10885 ac_uC=' '
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10886 ac_uD='\4%g'
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10887 # 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
10888 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10889 ac_eB='$%\1#\2define\3'
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10890 ac_eC=' '
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10891 ac_eD='%g'
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10892
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10893 if test "${CONFIG_HEADERS+set}" != set; then
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 cat >> $CONFIG_STATUS <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10896 CONFIG_HEADERS="src/config.h lwlib/config.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10897 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10898 cat >> $CONFIG_STATUS <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10899 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10900 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
10901 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10902 case "$ac_file" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10903 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10904 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10905 *) ac_file_in="${ac_file}.in" ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10906 esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10907
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10908 echo creating $ac_file
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10909
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10910 rm -f conftest.frag conftest.in conftest.out
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10911 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
10912 cat $ac_file_inputs > conftest.in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10913
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10914 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10915
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10916 # Transform confdefs.h into a sed script conftest.vals that substitutes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10917 # 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
10918 # 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
10919 # Protect against being in an unquoted here document in config.status.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10920 rm -f conftest.vals
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10921 cat > conftest.hdr <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10922 s/[\\&%]/\\&/g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10923 s%[\\$`]%\\&%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10924 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
10925 s%ac_d%ac_u%gp
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10926 s%ac_u%ac_e%gp
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10927 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10928 sed -n -f conftest.hdr confdefs.h > conftest.vals
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10929 rm -f conftest.hdr
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10930
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10931 # This sed command replaces #undef with comments. This is necessary, for
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10932 # example, in the case of _POSIX_SOURCE, which is predefined and required
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10933 # on some systems where configure will not decide to define it.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10934 cat >> conftest.vals <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10935 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10936 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10937
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10938 # Break up conftest.vals because some shells have a limit on
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10939 # the size of here documents, and old seds have small limits too.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10940
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10941 rm -f conftest.tail
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10942 while :
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10943 do
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10944 ac_lines=`grep -c . conftest.vals`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10945 # 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
10946 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
10947 # Write a limited-size here document to conftest.frag.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10948 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10949 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10950 echo 'CEOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10951 sed -f conftest.frag conftest.in > conftest.out
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10952 rm -f conftest.in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10953 mv conftest.out conftest.in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10954 ' >> $CONFIG_STATUS
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10955 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10956 rm -f conftest.vals
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10957 mv conftest.tail conftest.vals
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10958 done
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10959 rm -f conftest.vals
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10960
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10961 cat >> $CONFIG_STATUS <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10962 rm -f conftest.frag conftest.h
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10963 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10964 cat conftest.in >> conftest.h
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10965 rm -f conftest.in
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10966 if cmp -s $ac_file conftest.h 2>/dev/null; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10967 echo "$ac_file is unchanged"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10968 rm -f conftest.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10969 else
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10970 # 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
10971 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10972 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10973 # The file is in a subdirectory.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10974 test ! -d "$ac_dir" && mkdir "$ac_dir"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10975 fi
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10976 rm -f $ac_file
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10977 mv conftest.h $ac_file
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10978 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10979 fi; done
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10980
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10981 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10982 cat >> $CONFIG_STATUS <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10983 CPP="$CPP"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10984 CPPFLAGS="$CPPFLAGS"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10985 top_srcdir="$srcdir"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10986 MAKE_SUBDIR="$MAKE_SUBDIR"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10987
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10988 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10989 cat >> $CONFIG_STATUS <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10990
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10991 for dir in $MAKE_SUBDIR; do
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10992 echo creating $dir/Makefile
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10993 (
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10994 cd $dir
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10995 rm -f junk.c
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10996 < Makefile.in \
165
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents: 163
diff changeset
10997 sed -e '/^# Generated/d' \
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10998 -e 's%/\*\*/#.*%%' \
165
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents: 163
diff changeset
10999 -e 's/^ *# */#/' \
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
11000 -e '/^##/d' \
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
11001 -e '/^#/ {
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
11002 p
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
11003 d
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
11004 }' -e '/./ {
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
11005 s/\([\"]\)/\\\1/g
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
11006 s/^/"/
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
11007 s/$/"/
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
11008 }' > junk.c;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11009 $CPP -I. -I${top_srcdir}/src $CPPFLAGS junk.c > junk.cpp;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11010 < junk.cpp \
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11011 sed -e 's/^#.*//' \
165
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents: 163
diff changeset
11012 -e 's/^[ ][ ]*$//' \
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents: 163
diff changeset
11013 -e 's/^ / /' \
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11014 | sed -n -e '/^..*$/p' \
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
11015 | sed '/^"/ {
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
11016 s/\\\([\"]\)/\1/g
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
11017 s/^"//
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
11018 s/"$//
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
11019 }' > Makefile.new
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11020 chmod 444 Makefile.new
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11021 mv -f Makefile.new Makefile
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11022 rm -f junk.c junk.cpp
165
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents: 163
diff changeset
11023 )
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11024 done
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11025
181
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
11026 sed < config.status >> lib-src/config.values \
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
11027 -e '/{ac_dA}.*{ac_dB}.*{ac_dC}.*{ac_dD}$/!d' \
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
11028 -e 's/\${ac_dA}\(.*\)\${ac_dB}.*\${ac_dC}\(.*\)\${ac_dD}/\1 \2/' \
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
11029 -e 's/^\([^ ]*\) $/\1 ""/' \
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
11030 -e 's/ 1$/ t/'
175
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
11031
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
11032
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11033 exit 0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11034 EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11035 chmod +x $CONFIG_STATUS
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11036 rm -fr confdefs* $ac_clean_files
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11037 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11038