1 |
578 |
markom |
#! /bin/sh
|
2 |
|
|
|
3 |
|
|
# Guess values for system-dependent variables and create Makefiles.
|
4 |
|
|
# Generated automatically using autoconf version 2.13
|
5 |
|
|
# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
|
6 |
|
|
#
|
7 |
|
|
# This configure script is free software; the Free Software Foundation
|
8 |
|
|
# gives unlimited permission to copy, distribute and modify it.
|
9 |
|
|
|
10 |
|
|
# Defaults:
|
11 |
|
|
ac_help=
|
12 |
|
|
ac_default_prefix=/usr/local
|
13 |
|
|
# Any additions from configure.in:
|
14 |
|
|
ac_default_prefix=/usr/local
|
15 |
|
|
ac_help="$ac_help
|
16 |
|
|
--with-tcl=DIR use Tcl 8.0 binaries from DIR"
|
17 |
|
|
ac_help="$ac_help
|
18 |
|
|
--with-tk=DIR use Tk 8.0 binaries from DIR"
|
19 |
|
|
ac_help="$ac_help
|
20 |
|
|
--with-itcl=DIR use Itcl 3.0 binaries from DIR"
|
21 |
|
|
ac_help="$ac_help
|
22 |
|
|
--with-cflags=FLAGS set compiler flags to FLAGS"
|
23 |
|
|
ac_help="$ac_help
|
24 |
|
|
--enable-shared build libitk as a shared library"
|
25 |
|
|
|
26 |
|
|
# Initialize some variables set by options.
|
27 |
|
|
# The variables have the same names as the options, with
|
28 |
|
|
# dashes changed to underlines.
|
29 |
|
|
build=NONE
|
30 |
|
|
cache_file=./config.cache
|
31 |
|
|
exec_prefix=NONE
|
32 |
|
|
host=NONE
|
33 |
|
|
no_create=
|
34 |
|
|
nonopt=NONE
|
35 |
|
|
no_recursion=
|
36 |
|
|
prefix=NONE
|
37 |
|
|
program_prefix=NONE
|
38 |
|
|
program_suffix=NONE
|
39 |
|
|
program_transform_name=s,x,x,
|
40 |
|
|
silent=
|
41 |
|
|
site=
|
42 |
|
|
srcdir=
|
43 |
|
|
target=NONE
|
44 |
|
|
verbose=
|
45 |
|
|
x_includes=NONE
|
46 |
|
|
x_libraries=NONE
|
47 |
|
|
bindir='${exec_prefix}/bin'
|
48 |
|
|
sbindir='${exec_prefix}/sbin'
|
49 |
|
|
libexecdir='${exec_prefix}/libexec'
|
50 |
|
|
datadir='${prefix}/share'
|
51 |
|
|
sysconfdir='${prefix}/etc'
|
52 |
|
|
sharedstatedir='${prefix}/com'
|
53 |
|
|
localstatedir='${prefix}/var'
|
54 |
|
|
libdir='${exec_prefix}/lib'
|
55 |
|
|
includedir='${prefix}/include'
|
56 |
|
|
oldincludedir='/usr/include'
|
57 |
|
|
infodir='${prefix}/info'
|
58 |
|
|
mandir='${prefix}/man'
|
59 |
|
|
|
60 |
|
|
# Initialize some other variables.
|
61 |
|
|
subdirs=
|
62 |
|
|
MFLAGS= MAKEFLAGS=
|
63 |
|
|
SHELL=${CONFIG_SHELL-/bin/sh}
|
64 |
|
|
# Maximum number of lines to put in a shell here document.
|
65 |
|
|
ac_max_here_lines=12
|
66 |
|
|
|
67 |
|
|
ac_prev=
|
68 |
|
|
for ac_option
|
69 |
|
|
do
|
70 |
|
|
|
71 |
|
|
# If the previous option needs an argument, assign it.
|
72 |
|
|
if test -n "$ac_prev"; then
|
73 |
|
|
eval "$ac_prev=\$ac_option"
|
74 |
|
|
ac_prev=
|
75 |
|
|
continue
|
76 |
|
|
fi
|
77 |
|
|
|
78 |
|
|
case "$ac_option" in
|
79 |
|
|
-*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
|
80 |
|
|
*) ac_optarg= ;;
|
81 |
|
|
esac
|
82 |
|
|
|
83 |
|
|
# Accept the important Cygnus configure options, so we can diagnose typos.
|
84 |
|
|
|
85 |
|
|
case "$ac_option" in
|
86 |
|
|
|
87 |
|
|
-bindir | --bindir | --bindi | --bind | --bin | --bi)
|
88 |
|
|
ac_prev=bindir ;;
|
89 |
|
|
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
90 |
|
|
bindir="$ac_optarg" ;;
|
91 |
|
|
|
92 |
|
|
-build | --build | --buil | --bui | --bu)
|
93 |
|
|
ac_prev=build ;;
|
94 |
|
|
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
95 |
|
|
build="$ac_optarg" ;;
|
96 |
|
|
|
97 |
|
|
-cache-file | --cache-file | --cache-fil | --cache-fi \
|
98 |
|
|
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
99 |
|
|
ac_prev=cache_file ;;
|
100 |
|
|
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
101 |
|
|
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
102 |
|
|
cache_file="$ac_optarg" ;;
|
103 |
|
|
|
104 |
|
|
-datadir | --datadir | --datadi | --datad | --data | --dat | --da)
|
105 |
|
|
ac_prev=datadir ;;
|
106 |
|
|
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
|
107 |
|
|
| --da=*)
|
108 |
|
|
datadir="$ac_optarg" ;;
|
109 |
|
|
|
110 |
|
|
-disable-* | --disable-*)
|
111 |
|
|
ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
|
112 |
|
|
# Reject names that are not valid shell variable names.
|
113 |
|
|
if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
|
114 |
|
|
{ echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
|
115 |
|
|
fi
|
116 |
|
|
ac_feature=`echo $ac_feature| sed 's/-/_/g'`
|
117 |
|
|
eval "enable_${ac_feature}=no" ;;
|
118 |
|
|
|
119 |
|
|
-enable-* | --enable-*)
|
120 |
|
|
ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
|
121 |
|
|
# Reject names that are not valid shell variable names.
|
122 |
|
|
if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
|
123 |
|
|
{ echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
|
124 |
|
|
fi
|
125 |
|
|
ac_feature=`echo $ac_feature| sed 's/-/_/g'`
|
126 |
|
|
case "$ac_option" in
|
127 |
|
|
*=*) ;;
|
128 |
|
|
*) ac_optarg=yes ;;
|
129 |
|
|
esac
|
130 |
|
|
eval "enable_${ac_feature}='$ac_optarg'" ;;
|
131 |
|
|
|
132 |
|
|
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
|
133 |
|
|
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
|
134 |
|
|
| --exec | --exe | --ex)
|
135 |
|
|
ac_prev=exec_prefix ;;
|
136 |
|
|
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
|
137 |
|
|
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
|
138 |
|
|
| --exec=* | --exe=* | --ex=*)
|
139 |
|
|
exec_prefix="$ac_optarg" ;;
|
140 |
|
|
|
141 |
|
|
-gas | --gas | --ga | --g)
|
142 |
|
|
# Obsolete; use --with-gas.
|
143 |
|
|
with_gas=yes ;;
|
144 |
|
|
|
145 |
|
|
-help | --help | --hel | --he)
|
146 |
|
|
# Omit some internal or obsolete options to make the list less imposing.
|
147 |
|
|
# This message is too long to be a string in the A/UX 3.1 sh.
|
148 |
|
|
cat << EOF
|
149 |
|
|
Usage: configure [options] [host]
|
150 |
|
|
Options: [defaults in brackets after descriptions]
|
151 |
|
|
Configuration:
|
152 |
|
|
--cache-file=FILE cache test results in FILE
|
153 |
|
|
--help print this message
|
154 |
|
|
--no-create do not create output files
|
155 |
|
|
--quiet, --silent do not print \`checking...' messages
|
156 |
|
|
--version print the version of autoconf that created configure
|
157 |
|
|
Directory and file names:
|
158 |
|
|
--prefix=PREFIX install architecture-independent files in PREFIX
|
159 |
|
|
[$ac_default_prefix]
|
160 |
|
|
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
161 |
|
|
[same as prefix]
|
162 |
|
|
--bindir=DIR user executables in DIR [EPREFIX/bin]
|
163 |
|
|
--sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
|
164 |
|
|
--libexecdir=DIR program executables in DIR [EPREFIX/libexec]
|
165 |
|
|
--datadir=DIR read-only architecture-independent data in DIR
|
166 |
|
|
[PREFIX/share]
|
167 |
|
|
--sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
|
168 |
|
|
--sharedstatedir=DIR modifiable architecture-independent data in DIR
|
169 |
|
|
[PREFIX/com]
|
170 |
|
|
--localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
|
171 |
|
|
--libdir=DIR object code libraries in DIR [EPREFIX/lib]
|
172 |
|
|
--includedir=DIR C header files in DIR [PREFIX/include]
|
173 |
|
|
--oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
|
174 |
|
|
--infodir=DIR info documentation in DIR [PREFIX/info]
|
175 |
|
|
--mandir=DIR man documentation in DIR [PREFIX/man]
|
176 |
|
|
--srcdir=DIR find the sources in DIR [configure dir or ..]
|
177 |
|
|
--program-prefix=PREFIX prepend PREFIX to installed program names
|
178 |
|
|
--program-suffix=SUFFIX append SUFFIX to installed program names
|
179 |
|
|
--program-transform-name=PROGRAM
|
180 |
|
|
run sed PROGRAM on installed program names
|
181 |
|
|
EOF
|
182 |
|
|
cat << EOF
|
183 |
|
|
Host type:
|
184 |
|
|
--build=BUILD configure for building on BUILD [BUILD=HOST]
|
185 |
|
|
--host=HOST configure for HOST [guessed]
|
186 |
|
|
--target=TARGET configure for TARGET [TARGET=HOST]
|
187 |
|
|
Features and packages:
|
188 |
|
|
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
189 |
|
|
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
190 |
|
|
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
191 |
|
|
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
192 |
|
|
--x-includes=DIR X include files are in DIR
|
193 |
|
|
--x-libraries=DIR X library files are in DIR
|
194 |
|
|
EOF
|
195 |
|
|
if test -n "$ac_help"; then
|
196 |
|
|
echo "--enable and --with options recognized:$ac_help"
|
197 |
|
|
fi
|
198 |
|
|
exit 0 ;;
|
199 |
|
|
|
200 |
|
|
-host | --host | --hos | --ho)
|
201 |
|
|
ac_prev=host ;;
|
202 |
|
|
-host=* | --host=* | --hos=* | --ho=*)
|
203 |
|
|
host="$ac_optarg" ;;
|
204 |
|
|
|
205 |
|
|
-includedir | --includedir | --includedi | --included | --include \
|
206 |
|
|
| --includ | --inclu | --incl | --inc)
|
207 |
|
|
ac_prev=includedir ;;
|
208 |
|
|
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
|
209 |
|
|
| --includ=* | --inclu=* | --incl=* | --inc=*)
|
210 |
|
|
includedir="$ac_optarg" ;;
|
211 |
|
|
|
212 |
|
|
-infodir | --infodir | --infodi | --infod | --info | --inf)
|
213 |
|
|
ac_prev=infodir ;;
|
214 |
|
|
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
215 |
|
|
infodir="$ac_optarg" ;;
|
216 |
|
|
|
217 |
|
|
-libdir | --libdir | --libdi | --libd)
|
218 |
|
|
ac_prev=libdir ;;
|
219 |
|
|
-libdir=* | --libdir=* | --libdi=* | --libd=*)
|
220 |
|
|
libdir="$ac_optarg" ;;
|
221 |
|
|
|
222 |
|
|
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
|
223 |
|
|
| --libexe | --libex | --libe)
|
224 |
|
|
ac_prev=libexecdir ;;
|
225 |
|
|
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
|
226 |
|
|
| --libexe=* | --libex=* | --libe=*)
|
227 |
|
|
libexecdir="$ac_optarg" ;;
|
228 |
|
|
|
229 |
|
|
-localstatedir | --localstatedir | --localstatedi | --localstated \
|
230 |
|
|
| --localstate | --localstat | --localsta | --localst \
|
231 |
|
|
| --locals | --local | --loca | --loc | --lo)
|
232 |
|
|
ac_prev=localstatedir ;;
|
233 |
|
|
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
234 |
|
|
| --localstate=* | --localstat=* | --localsta=* | --localst=* \
|
235 |
|
|
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
|
236 |
|
|
localstatedir="$ac_optarg" ;;
|
237 |
|
|
|
238 |
|
|
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
239 |
|
|
ac_prev=mandir ;;
|
240 |
|
|
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
241 |
|
|
mandir="$ac_optarg" ;;
|
242 |
|
|
|
243 |
|
|
-nfp | --nfp | --nf)
|
244 |
|
|
# Obsolete; use --without-fp.
|
245 |
|
|
with_fp=no ;;
|
246 |
|
|
|
247 |
|
|
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
248 |
|
|
| --no-cr | --no-c)
|
249 |
|
|
no_create=yes ;;
|
250 |
|
|
|
251 |
|
|
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
252 |
|
|
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
253 |
|
|
no_recursion=yes ;;
|
254 |
|
|
|
255 |
|
|
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
|
256 |
|
|
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
|
257 |
|
|
| --oldin | --oldi | --old | --ol | --o)
|
258 |
|
|
ac_prev=oldincludedir ;;
|
259 |
|
|
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
|
260 |
|
|
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
|
261 |
|
|
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
|
262 |
|
|
oldincludedir="$ac_optarg" ;;
|
263 |
|
|
|
264 |
|
|
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
265 |
|
|
ac_prev=prefix ;;
|
266 |
|
|
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
267 |
|
|
prefix="$ac_optarg" ;;
|
268 |
|
|
|
269 |
|
|
-program-prefix | --program-prefix | --program-prefi | --program-pref \
|
270 |
|
|
| --program-pre | --program-pr | --program-p)
|
271 |
|
|
ac_prev=program_prefix ;;
|
272 |
|
|
-program-prefix=* | --program-prefix=* | --program-prefi=* \
|
273 |
|
|
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
|
274 |
|
|
program_prefix="$ac_optarg" ;;
|
275 |
|
|
|
276 |
|
|
-program-suffix | --program-suffix | --program-suffi | --program-suff \
|
277 |
|
|
| --program-suf | --program-su | --program-s)
|
278 |
|
|
ac_prev=program_suffix ;;
|
279 |
|
|
-program-suffix=* | --program-suffix=* | --program-suffi=* \
|
280 |
|
|
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
|
281 |
|
|
program_suffix="$ac_optarg" ;;
|
282 |
|
|
|
283 |
|
|
-program-transform-name | --program-transform-name \
|
284 |
|
|
| --program-transform-nam | --program-transform-na \
|
285 |
|
|
| --program-transform-n | --program-transform- \
|
286 |
|
|
| --program-transform | --program-transfor \
|
287 |
|
|
| --program-transfo | --program-transf \
|
288 |
|
|
| --program-trans | --program-tran \
|
289 |
|
|
| --progr-tra | --program-tr | --program-t)
|
290 |
|
|
ac_prev=program_transform_name ;;
|
291 |
|
|
-program-transform-name=* | --program-transform-name=* \
|
292 |
|
|
| --program-transform-nam=* | --program-transform-na=* \
|
293 |
|
|
| --program-transform-n=* | --program-transform-=* \
|
294 |
|
|
| --program-transform=* | --program-transfor=* \
|
295 |
|
|
| --program-transfo=* | --program-transf=* \
|
296 |
|
|
| --program-trans=* | --program-tran=* \
|
297 |
|
|
| --progr-tra=* | --program-tr=* | --program-t=*)
|
298 |
|
|
program_transform_name="$ac_optarg" ;;
|
299 |
|
|
|
300 |
|
|
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
301 |
|
|
| -silent | --silent | --silen | --sile | --sil)
|
302 |
|
|
silent=yes ;;
|
303 |
|
|
|
304 |
|
|
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
305 |
|
|
ac_prev=sbindir ;;
|
306 |
|
|
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
307 |
|
|
| --sbi=* | --sb=*)
|
308 |
|
|
sbindir="$ac_optarg" ;;
|
309 |
|
|
|
310 |
|
|
-sharedstatedir | --sharedstatedir | --sharedstatedi \
|
311 |
|
|
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
|
312 |
|
|
| --sharedst | --shareds | --shared | --share | --shar \
|
313 |
|
|
| --sha | --sh)
|
314 |
|
|
ac_prev=sharedstatedir ;;
|
315 |
|
|
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
|
316 |
|
|
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
|
317 |
|
|
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
|
318 |
|
|
| --sha=* | --sh=*)
|
319 |
|
|
sharedstatedir="$ac_optarg" ;;
|
320 |
|
|
|
321 |
|
|
-site | --site | --sit)
|
322 |
|
|
ac_prev=site ;;
|
323 |
|
|
-site=* | --site=* | --sit=*)
|
324 |
|
|
site="$ac_optarg" ;;
|
325 |
|
|
|
326 |
|
|
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
327 |
|
|
ac_prev=srcdir ;;
|
328 |
|
|
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
329 |
|
|
srcdir="$ac_optarg" ;;
|
330 |
|
|
|
331 |
|
|
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
332 |
|
|
| --syscon | --sysco | --sysc | --sys | --sy)
|
333 |
|
|
ac_prev=sysconfdir ;;
|
334 |
|
|
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
335 |
|
|
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
336 |
|
|
sysconfdir="$ac_optarg" ;;
|
337 |
|
|
|
338 |
|
|
-target | --target | --targe | --targ | --tar | --ta | --t)
|
339 |
|
|
ac_prev=target ;;
|
340 |
|
|
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
341 |
|
|
target="$ac_optarg" ;;
|
342 |
|
|
|
343 |
|
|
-v | -verbose | --verbose | --verbos | --verbo | --verb)
|
344 |
|
|
verbose=yes ;;
|
345 |
|
|
|
346 |
|
|
-version | --version | --versio | --versi | --vers)
|
347 |
|
|
echo "configure generated by autoconf version 2.13"
|
348 |
|
|
exit 0 ;;
|
349 |
|
|
|
350 |
|
|
-with-* | --with-*)
|
351 |
|
|
ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
|
352 |
|
|
# Reject names that are not valid shell variable names.
|
353 |
|
|
if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
|
354 |
|
|
{ echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
|
355 |
|
|
fi
|
356 |
|
|
ac_package=`echo $ac_package| sed 's/-/_/g'`
|
357 |
|
|
case "$ac_option" in
|
358 |
|
|
*=*) ;;
|
359 |
|
|
*) ac_optarg=yes ;;
|
360 |
|
|
esac
|
361 |
|
|
eval "with_${ac_package}='$ac_optarg'" ;;
|
362 |
|
|
|
363 |
|
|
-without-* | --without-*)
|
364 |
|
|
ac_package=`echo $ac_option|sed -e 's/-*without-//'`
|
365 |
|
|
# Reject names that are not valid shell variable names.
|
366 |
|
|
if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
|
367 |
|
|
{ echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
|
368 |
|
|
fi
|
369 |
|
|
ac_package=`echo $ac_package| sed 's/-/_/g'`
|
370 |
|
|
eval "with_${ac_package}=no" ;;
|
371 |
|
|
|
372 |
|
|
--x)
|
373 |
|
|
# Obsolete; use --with-x.
|
374 |
|
|
with_x=yes ;;
|
375 |
|
|
|
376 |
|
|
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
|
377 |
|
|
| --x-incl | --x-inc | --x-in | --x-i)
|
378 |
|
|
ac_prev=x_includes ;;
|
379 |
|
|
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
|
380 |
|
|
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
|
381 |
|
|
x_includes="$ac_optarg" ;;
|
382 |
|
|
|
383 |
|
|
-x-libraries | --x-libraries | --x-librarie | --x-librari \
|
384 |
|
|
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
|
385 |
|
|
ac_prev=x_libraries ;;
|
386 |
|
|
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
|
387 |
|
|
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
|
388 |
|
|
x_libraries="$ac_optarg" ;;
|
389 |
|
|
|
390 |
|
|
-*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
|
391 |
|
|
;;
|
392 |
|
|
|
393 |
|
|
*)
|
394 |
|
|
if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
|
395 |
|
|
echo "configure: warning: $ac_option: invalid host type" 1>&2
|
396 |
|
|
fi
|
397 |
|
|
if test "x$nonopt" != xNONE; then
|
398 |
|
|
{ echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
|
399 |
|
|
fi
|
400 |
|
|
nonopt="$ac_option"
|
401 |
|
|
;;
|
402 |
|
|
|
403 |
|
|
esac
|
404 |
|
|
done
|
405 |
|
|
|
406 |
|
|
if test -n "$ac_prev"; then
|
407 |
|
|
{ echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
|
408 |
|
|
fi
|
409 |
|
|
|
410 |
|
|
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
411 |
|
|
|
412 |
|
|
# File descriptor usage:
|
413 |
|
|
# 0 standard input
|
414 |
|
|
# 1 file creation
|
415 |
|
|
# 2 errors and warnings
|
416 |
|
|
# 3 some systems may open it to /dev/tty
|
417 |
|
|
# 4 used on the Kubota Titan
|
418 |
|
|
# 6 checking for... messages and results
|
419 |
|
|
# 5 compiler messages saved in config.log
|
420 |
|
|
if test "$silent" = yes; then
|
421 |
|
|
exec 6>/dev/null
|
422 |
|
|
else
|
423 |
|
|
exec 6>&1
|
424 |
|
|
fi
|
425 |
|
|
exec 5>./config.log
|
426 |
|
|
|
427 |
|
|
echo "\
|
428 |
|
|
This file contains any messages produced by compilers while
|
429 |
|
|
running configure, to aid debugging if configure makes a mistake.
|
430 |
|
|
" 1>&5
|
431 |
|
|
|
432 |
|
|
# Strip out --no-create and --no-recursion so they do not pile up.
|
433 |
|
|
# Also quote any args containing shell metacharacters.
|
434 |
|
|
ac_configure_args=
|
435 |
|
|
for ac_arg
|
436 |
|
|
do
|
437 |
|
|
case "$ac_arg" in
|
438 |
|
|
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
439 |
|
|
| --no-cr | --no-c) ;;
|
440 |
|
|
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
441 |
|
|
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
|
442 |
|
|
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
|
443 |
|
|
ac_configure_args="$ac_configure_args '$ac_arg'" ;;
|
444 |
|
|
*) ac_configure_args="$ac_configure_args $ac_arg" ;;
|
445 |
|
|
esac
|
446 |
|
|
done
|
447 |
|
|
|
448 |
|
|
# NLS nuisances.
|
449 |
|
|
# Only set these to C if already set. These must not be set unconditionally
|
450 |
|
|
# because not all systems understand e.g. LANG=C (notably SCO).
|
451 |
|
|
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
|
452 |
|
|
# Non-C LC_CTYPE values break the ctype check.
|
453 |
|
|
if test "${LANG+set}" = set; then LANG=C; export LANG; fi
|
454 |
|
|
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
|
455 |
|
|
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
|
456 |
|
|
if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
|
457 |
|
|
|
458 |
|
|
# confdefs.h avoids OS command line length limits that DEFS can exceed.
|
459 |
|
|
rm -rf conftest* confdefs.h
|
460 |
|
|
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
|
461 |
|
|
echo > confdefs.h
|
462 |
|
|
|
463 |
|
|
# A filename unique to this package, relative to the directory that
|
464 |
|
|
# configure is in, which we can look for to find out if srcdir is correct.
|
465 |
|
|
ac_unique_file=../generic/itk.h
|
466 |
|
|
|
467 |
|
|
# Find the source files, if location was not specified.
|
468 |
|
|
if test -z "$srcdir"; then
|
469 |
|
|
ac_srcdir_defaulted=yes
|
470 |
|
|
# Try the directory containing this script, then its parent.
|
471 |
|
|
ac_prog=$0
|
472 |
|
|
ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
|
473 |
|
|
test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
|
474 |
|
|
srcdir=$ac_confdir
|
475 |
|
|
if test ! -r $srcdir/$ac_unique_file; then
|
476 |
|
|
srcdir=..
|
477 |
|
|
fi
|
478 |
|
|
else
|
479 |
|
|
ac_srcdir_defaulted=no
|
480 |
|
|
fi
|
481 |
|
|
if test ! -r $srcdir/$ac_unique_file; then
|
482 |
|
|
if test "$ac_srcdir_defaulted" = yes; then
|
483 |
|
|
{ echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
|
484 |
|
|
else
|
485 |
|
|
{ echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
|
486 |
|
|
fi
|
487 |
|
|
fi
|
488 |
|
|
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
|
489 |
|
|
|
490 |
|
|
# Prefer explicitly selected file to automatically selected ones.
|
491 |
|
|
if test -z "$CONFIG_SITE"; then
|
492 |
|
|
if test "x$prefix" != xNONE; then
|
493 |
|
|
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
|
494 |
|
|
else
|
495 |
|
|
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
|
496 |
|
|
fi
|
497 |
|
|
fi
|
498 |
|
|
for ac_site_file in $CONFIG_SITE; do
|
499 |
|
|
if test -r "$ac_site_file"; then
|
500 |
|
|
echo "loading site script $ac_site_file"
|
501 |
|
|
. "$ac_site_file"
|
502 |
|
|
fi
|
503 |
|
|
done
|
504 |
|
|
|
505 |
|
|
if test -r "$cache_file"; then
|
506 |
|
|
echo "loading cache $cache_file"
|
507 |
|
|
. $cache_file
|
508 |
|
|
else
|
509 |
|
|
echo "creating cache $cache_file"
|
510 |
|
|
> $cache_file
|
511 |
|
|
fi
|
512 |
|
|
|
513 |
|
|
ac_ext=c
|
514 |
|
|
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
515 |
|
|
ac_cpp='$CPP $CPPFLAGS'
|
516 |
|
|
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
517 |
|
|
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
518 |
|
|
cross_compiling=$ac_cv_prog_cc_cross
|
519 |
|
|
|
520 |
|
|
ac_exeext=
|
521 |
|
|
ac_objext=o
|
522 |
|
|
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
|
523 |
|
|
# Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
|
524 |
|
|
if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
|
525 |
|
|
ac_n= ac_c='
|
526 |
|
|
' ac_t=' '
|
527 |
|
|
else
|
528 |
|
|
ac_n=-n ac_c= ac_t=
|
529 |
|
|
fi
|
530 |
|
|
else
|
531 |
|
|
ac_n= ac_c='\c' ac_t=
|
532 |
|
|
fi
|
533 |
|
|
|
534 |
|
|
|
535 |
|
|
# RCS: $Id: configure,v 1.1.1.1 2002-01-16 10:24:48 markom Exp $
|
536 |
|
|
|
537 |
|
|
ITCL_VERSION=3.0
|
538 |
|
|
ITCL_MAJOR_VERSION=3
|
539 |
|
|
ITCL_MINOR_VERSION=0
|
540 |
|
|
ITCL_RELEASE_LEVEL=0
|
541 |
|
|
VERSION=${ITCL_VERSION}
|
542 |
|
|
|
543 |
|
|
ac_aux_dir=
|
544 |
|
|
for ac_dir in ../../config $srcdir/../../config; do
|
545 |
|
|
if test -f $ac_dir/install-sh; then
|
546 |
|
|
ac_aux_dir=$ac_dir
|
547 |
|
|
ac_install_sh="$ac_aux_dir/install-sh -c"
|
548 |
|
|
break
|
549 |
|
|
elif test -f $ac_dir/install.sh; then
|
550 |
|
|
ac_aux_dir=$ac_dir
|
551 |
|
|
ac_install_sh="$ac_aux_dir/install.sh -c"
|
552 |
|
|
break
|
553 |
|
|
fi
|
554 |
|
|
done
|
555 |
|
|
if test -z "$ac_aux_dir"; then
|
556 |
|
|
{ echo "configure: error: can not find install-sh or install.sh in ../../config $srcdir/../../config" 1>&2; exit 1; }
|
557 |
|
|
fi
|
558 |
|
|
ac_config_guess=$ac_aux_dir/config.guess
|
559 |
|
|
ac_config_sub=$ac_aux_dir/config.sub
|
560 |
|
|
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
|
561 |
|
|
|
562 |
|
|
|
563 |
|
|
|
564 |
|
|
# -----------------------------------------------------------------------
|
565 |
|
|
# Set up a new default --prefix. If a previous installation of
|
566 |
|
|
# [incr Tcl] can be found searching $PATH use that directory.
|
567 |
|
|
# -----------------------------------------------------------------------
|
568 |
|
|
|
569 |
|
|
|
570 |
|
|
if test "x$prefix" = xNONE; then
|
571 |
|
|
echo $ac_n "checking for prefix by $ac_c" 1>&6
|
572 |
|
|
# Extract the first word of "tclsh", so it can be a program name with args.
|
573 |
|
|
set dummy tclsh; ac_word=$2
|
574 |
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
575 |
|
|
echo "configure:576: checking for $ac_word" >&5
|
576 |
|
|
if eval "test \"`echo '$''{'ac_cv_path_TCLSH'+set}'`\" = set"; then
|
577 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
578 |
|
|
else
|
579 |
|
|
case "$TCLSH" in
|
580 |
|
|
/*)
|
581 |
|
|
ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
|
582 |
|
|
;;
|
583 |
|
|
?:/*)
|
584 |
|
|
ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a dos path.
|
585 |
|
|
;;
|
586 |
|
|
*)
|
587 |
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
588 |
|
|
ac_dummy="$PATH"
|
589 |
|
|
for ac_dir in $ac_dummy; do
|
590 |
|
|
test -z "$ac_dir" && ac_dir=.
|
591 |
|
|
if test -f $ac_dir/$ac_word; then
|
592 |
|
|
ac_cv_path_TCLSH="$ac_dir/$ac_word"
|
593 |
|
|
break
|
594 |
|
|
fi
|
595 |
|
|
done
|
596 |
|
|
IFS="$ac_save_ifs"
|
597 |
|
|
;;
|
598 |
|
|
esac
|
599 |
|
|
fi
|
600 |
|
|
TCLSH="$ac_cv_path_TCLSH"
|
601 |
|
|
if test -n "$TCLSH"; then
|
602 |
|
|
echo "$ac_t""$TCLSH" 1>&6
|
603 |
|
|
else
|
604 |
|
|
echo "$ac_t""no" 1>&6
|
605 |
|
|
fi
|
606 |
|
|
|
607 |
|
|
if test -n "$ac_cv_path_TCLSH"; then
|
608 |
|
|
prefix=`echo $ac_cv_path_TCLSH|sed 's%/[^/][^/]*//*[^/][^/]*$%%'`
|
609 |
|
|
fi
|
610 |
|
|
fi
|
611 |
|
|
|
612 |
|
|
|
613 |
|
|
if test "${prefix}" = "NONE"; then
|
614 |
|
|
prefix=/usr/local
|
615 |
|
|
fi
|
616 |
|
|
if test "${exec_prefix}" = "NONE"; then
|
617 |
|
|
exec_prefix=$prefix
|
618 |
|
|
fi
|
619 |
|
|
|
620 |
|
|
# Find a good install program. We prefer a C program (faster),
|
621 |
|
|
# so one script is as good as another. But avoid the broken or
|
622 |
|
|
# incompatible versions:
|
623 |
|
|
# SysV /etc/install, /usr/sbin/install
|
624 |
|
|
# SunOS /usr/etc/install
|
625 |
|
|
# IRIX /sbin/install
|
626 |
|
|
# AIX /bin/install
|
627 |
|
|
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
628 |
|
|
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
629 |
|
|
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
630 |
|
|
# ./install, which can be erroneously created by make from ./install.sh.
|
631 |
|
|
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
|
632 |
|
|
echo "configure:633: checking for a BSD compatible install" >&5
|
633 |
|
|
if test -z "$INSTALL"; then
|
634 |
|
|
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
|
635 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
636 |
|
|
else
|
637 |
|
|
IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
|
638 |
|
|
for ac_dir in $PATH; do
|
639 |
|
|
# Account for people who put trailing slashes in PATH elements.
|
640 |
|
|
case "$ac_dir/" in
|
641 |
|
|
/|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
|
642 |
|
|
*)
|
643 |
|
|
# OSF1 and SCO ODT 3.0 have their own names for install.
|
644 |
|
|
# Don't use installbsd from OSF since it installs stuff as root
|
645 |
|
|
# by default.
|
646 |
|
|
for ac_prog in ginstall scoinst install; do
|
647 |
|
|
if test -f $ac_dir/$ac_prog; then
|
648 |
|
|
if test $ac_prog = install &&
|
649 |
|
|
grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
|
650 |
|
|
# AIX install. It has an incompatible calling convention.
|
651 |
|
|
:
|
652 |
|
|
else
|
653 |
|
|
ac_cv_path_install="$ac_dir/$ac_prog -c"
|
654 |
|
|
break 2
|
655 |
|
|
fi
|
656 |
|
|
fi
|
657 |
|
|
done
|
658 |
|
|
;;
|
659 |
|
|
esac
|
660 |
|
|
done
|
661 |
|
|
IFS="$ac_save_IFS"
|
662 |
|
|
|
663 |
|
|
fi
|
664 |
|
|
if test "${ac_cv_path_install+set}" = set; then
|
665 |
|
|
INSTALL="$ac_cv_path_install"
|
666 |
|
|
else
|
667 |
|
|
# As a last resort, use the slow shell script. We don't cache a
|
668 |
|
|
# path for INSTALL within a source directory, because that will
|
669 |
|
|
# break other packages using the cache if that directory is
|
670 |
|
|
# removed, or if the path is relative.
|
671 |
|
|
INSTALL="$ac_install_sh"
|
672 |
|
|
fi
|
673 |
|
|
fi
|
674 |
|
|
echo "$ac_t""$INSTALL" 1>&6
|
675 |
|
|
|
676 |
|
|
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
677 |
|
|
# It thinks the first close brace ends the variable substitution.
|
678 |
|
|
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
679 |
|
|
|
680 |
|
|
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
|
681 |
|
|
|
682 |
|
|
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
683 |
|
|
|
684 |
|
|
# Extract the first word of "ranlib", so it can be a program name with args.
|
685 |
|
|
set dummy ranlib; ac_word=$2
|
686 |
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
687 |
|
|
echo "configure:688: checking for $ac_word" >&5
|
688 |
|
|
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
689 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
690 |
|
|
else
|
691 |
|
|
if test -n "$RANLIB"; then
|
692 |
|
|
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
693 |
|
|
else
|
694 |
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
695 |
|
|
ac_dummy="$PATH"
|
696 |
|
|
for ac_dir in $ac_dummy; do
|
697 |
|
|
test -z "$ac_dir" && ac_dir=.
|
698 |
|
|
if test -f $ac_dir/$ac_word; then
|
699 |
|
|
ac_cv_prog_RANLIB="ranlib"
|
700 |
|
|
break
|
701 |
|
|
fi
|
702 |
|
|
done
|
703 |
|
|
IFS="$ac_save_ifs"
|
704 |
|
|
test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
|
705 |
|
|
fi
|
706 |
|
|
fi
|
707 |
|
|
RANLIB="$ac_cv_prog_RANLIB"
|
708 |
|
|
if test -n "$RANLIB"; then
|
709 |
|
|
echo "$ac_t""$RANLIB" 1>&6
|
710 |
|
|
else
|
711 |
|
|
echo "$ac_t""no" 1>&6
|
712 |
|
|
fi
|
713 |
|
|
|
714 |
|
|
|
715 |
|
|
# -----------------------------------------------------------------------
|
716 |
|
|
BUILD_DIR=`pwd`
|
717 |
|
|
ITK_SRC_DIR=`cd $srcdir/..; pwd`
|
718 |
|
|
cd ${BUILD_DIR}
|
719 |
|
|
|
720 |
|
|
# Extract the first word of "gcc", so it can be a program name with args.
|
721 |
|
|
set dummy gcc; ac_word=$2
|
722 |
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
723 |
|
|
echo "configure:724: checking for $ac_word" >&5
|
724 |
|
|
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
725 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
726 |
|
|
else
|
727 |
|
|
if test -n "$CC"; then
|
728 |
|
|
ac_cv_prog_CC="$CC" # Let the user override the test.
|
729 |
|
|
else
|
730 |
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
731 |
|
|
ac_dummy="$PATH"
|
732 |
|
|
for ac_dir in $ac_dummy; do
|
733 |
|
|
test -z "$ac_dir" && ac_dir=.
|
734 |
|
|
if test -f $ac_dir/$ac_word; then
|
735 |
|
|
ac_cv_prog_CC="gcc"
|
736 |
|
|
break
|
737 |
|
|
fi
|
738 |
|
|
done
|
739 |
|
|
IFS="$ac_save_ifs"
|
740 |
|
|
fi
|
741 |
|
|
fi
|
742 |
|
|
CC="$ac_cv_prog_CC"
|
743 |
|
|
if test -n "$CC"; then
|
744 |
|
|
echo "$ac_t""$CC" 1>&6
|
745 |
|
|
else
|
746 |
|
|
echo "$ac_t""no" 1>&6
|
747 |
|
|
fi
|
748 |
|
|
|
749 |
|
|
if test -z "$CC"; then
|
750 |
|
|
# Extract the first word of "cc", so it can be a program name with args.
|
751 |
|
|
set dummy cc; ac_word=$2
|
752 |
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
753 |
|
|
echo "configure:754: checking for $ac_word" >&5
|
754 |
|
|
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
755 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
756 |
|
|
else
|
757 |
|
|
if test -n "$CC"; then
|
758 |
|
|
ac_cv_prog_CC="$CC" # Let the user override the test.
|
759 |
|
|
else
|
760 |
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
761 |
|
|
ac_prog_rejected=no
|
762 |
|
|
ac_dummy="$PATH"
|
763 |
|
|
for ac_dir in $ac_dummy; do
|
764 |
|
|
test -z "$ac_dir" && ac_dir=.
|
765 |
|
|
if test -f $ac_dir/$ac_word; then
|
766 |
|
|
if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
|
767 |
|
|
ac_prog_rejected=yes
|
768 |
|
|
continue
|
769 |
|
|
fi
|
770 |
|
|
ac_cv_prog_CC="cc"
|
771 |
|
|
break
|
772 |
|
|
fi
|
773 |
|
|
done
|
774 |
|
|
IFS="$ac_save_ifs"
|
775 |
|
|
if test $ac_prog_rejected = yes; then
|
776 |
|
|
# We found a bogon in the path, so make sure we never use it.
|
777 |
|
|
set dummy $ac_cv_prog_CC
|
778 |
|
|
shift
|
779 |
|
|
if test $# -gt 0; then
|
780 |
|
|
# We chose a different compiler from the bogus one.
|
781 |
|
|
# However, it has the same basename, so the bogon will be chosen
|
782 |
|
|
# first if we set CC to just the basename; use the full file name.
|
783 |
|
|
shift
|
784 |
|
|
set dummy "$ac_dir/$ac_word" "$@"
|
785 |
|
|
shift
|
786 |
|
|
ac_cv_prog_CC="$@"
|
787 |
|
|
fi
|
788 |
|
|
fi
|
789 |
|
|
fi
|
790 |
|
|
fi
|
791 |
|
|
CC="$ac_cv_prog_CC"
|
792 |
|
|
if test -n "$CC"; then
|
793 |
|
|
echo "$ac_t""$CC" 1>&6
|
794 |
|
|
else
|
795 |
|
|
echo "$ac_t""no" 1>&6
|
796 |
|
|
fi
|
797 |
|
|
|
798 |
|
|
if test -z "$CC"; then
|
799 |
|
|
case "`uname -s`" in
|
800 |
|
|
*win32* | *WIN32*)
|
801 |
|
|
# Extract the first word of "cl", so it can be a program name with args.
|
802 |
|
|
set dummy cl; ac_word=$2
|
803 |
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
804 |
|
|
echo "configure:805: checking for $ac_word" >&5
|
805 |
|
|
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
806 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
807 |
|
|
else
|
808 |
|
|
if test -n "$CC"; then
|
809 |
|
|
ac_cv_prog_CC="$CC" # Let the user override the test.
|
810 |
|
|
else
|
811 |
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
812 |
|
|
ac_dummy="$PATH"
|
813 |
|
|
for ac_dir in $ac_dummy; do
|
814 |
|
|
test -z "$ac_dir" && ac_dir=.
|
815 |
|
|
if test -f $ac_dir/$ac_word; then
|
816 |
|
|
ac_cv_prog_CC="cl"
|
817 |
|
|
break
|
818 |
|
|
fi
|
819 |
|
|
done
|
820 |
|
|
IFS="$ac_save_ifs"
|
821 |
|
|
fi
|
822 |
|
|
fi
|
823 |
|
|
CC="$ac_cv_prog_CC"
|
824 |
|
|
if test -n "$CC"; then
|
825 |
|
|
echo "$ac_t""$CC" 1>&6
|
826 |
|
|
else
|
827 |
|
|
echo "$ac_t""no" 1>&6
|
828 |
|
|
fi
|
829 |
|
|
;;
|
830 |
|
|
esac
|
831 |
|
|
fi
|
832 |
|
|
test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
|
833 |
|
|
fi
|
834 |
|
|
|
835 |
|
|
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
|
836 |
|
|
echo "configure:837: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
|
837 |
|
|
|
838 |
|
|
ac_ext=c
|
839 |
|
|
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
840 |
|
|
ac_cpp='$CPP $CPPFLAGS'
|
841 |
|
|
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
842 |
|
|
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
843 |
|
|
cross_compiling=$ac_cv_prog_cc_cross
|
844 |
|
|
|
845 |
|
|
cat > conftest.$ac_ext << EOF
|
846 |
|
|
|
847 |
|
|
#line 848 "configure"
|
848 |
|
|
#include "confdefs.h"
|
849 |
|
|
|
850 |
|
|
main(){return(0);}
|
851 |
|
|
EOF
|
852 |
|
|
if { (eval echo configure:853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
853 |
|
|
ac_cv_prog_cc_works=yes
|
854 |
|
|
# If we can't run a trivial program, we are probably using a cross compiler.
|
855 |
|
|
if (./conftest; exit) 2>/dev/null; then
|
856 |
|
|
ac_cv_prog_cc_cross=no
|
857 |
|
|
else
|
858 |
|
|
ac_cv_prog_cc_cross=yes
|
859 |
|
|
fi
|
860 |
|
|
else
|
861 |
|
|
echo "configure: failed program was:" >&5
|
862 |
|
|
cat conftest.$ac_ext >&5
|
863 |
|
|
ac_cv_prog_cc_works=no
|
864 |
|
|
fi
|
865 |
|
|
rm -fr conftest*
|
866 |
|
|
ac_ext=c
|
867 |
|
|
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
868 |
|
|
ac_cpp='$CPP $CPPFLAGS'
|
869 |
|
|
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
870 |
|
|
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
871 |
|
|
cross_compiling=$ac_cv_prog_cc_cross
|
872 |
|
|
|
873 |
|
|
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
|
874 |
|
|
if test $ac_cv_prog_cc_works = no; then
|
875 |
|
|
{ echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
|
876 |
|
|
fi
|
877 |
|
|
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
|
878 |
|
|
echo "configure:879: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
|
879 |
|
|
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
|
880 |
|
|
cross_compiling=$ac_cv_prog_cc_cross
|
881 |
|
|
|
882 |
|
|
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
|
883 |
|
|
echo "configure:884: checking whether we are using GNU C" >&5
|
884 |
|
|
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
|
885 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
886 |
|
|
else
|
887 |
|
|
cat > conftest.c <
|
888 |
|
|
#ifdef __GNUC__
|
889 |
|
|
yes;
|
890 |
|
|
#endif
|
891 |
|
|
EOF
|
892 |
|
|
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:893: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
893 |
|
|
ac_cv_prog_gcc=yes
|
894 |
|
|
else
|
895 |
|
|
ac_cv_prog_gcc=no
|
896 |
|
|
fi
|
897 |
|
|
fi
|
898 |
|
|
|
899 |
|
|
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
|
900 |
|
|
|
901 |
|
|
if test $ac_cv_prog_gcc = yes; then
|
902 |
|
|
GCC=yes
|
903 |
|
|
else
|
904 |
|
|
GCC=
|
905 |
|
|
fi
|
906 |
|
|
|
907 |
|
|
ac_test_CFLAGS="${CFLAGS+set}"
|
908 |
|
|
ac_save_CFLAGS="$CFLAGS"
|
909 |
|
|
CFLAGS=
|
910 |
|
|
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
|
911 |
|
|
echo "configure:912: checking whether ${CC-cc} accepts -g" >&5
|
912 |
|
|
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
|
913 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
914 |
|
|
else
|
915 |
|
|
echo 'void f(){}' > conftest.c
|
916 |
|
|
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
|
917 |
|
|
ac_cv_prog_cc_g=yes
|
918 |
|
|
else
|
919 |
|
|
ac_cv_prog_cc_g=no
|
920 |
|
|
fi
|
921 |
|
|
rm -f conftest*
|
922 |
|
|
|
923 |
|
|
fi
|
924 |
|
|
|
925 |
|
|
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
|
926 |
|
|
if test "$ac_test_CFLAGS" = set; then
|
927 |
|
|
CFLAGS="$ac_save_CFLAGS"
|
928 |
|
|
elif test $ac_cv_prog_cc_g = yes; then
|
929 |
|
|
if test "$GCC" = yes; then
|
930 |
|
|
CFLAGS="-g -O2"
|
931 |
|
|
else
|
932 |
|
|
CFLAGS="-g"
|
933 |
|
|
fi
|
934 |
|
|
else
|
935 |
|
|
if test "$GCC" = yes; then
|
936 |
|
|
CFLAGS="-O2"
|
937 |
|
|
else
|
938 |
|
|
CFLAGS=
|
939 |
|
|
fi
|
940 |
|
|
fi
|
941 |
|
|
|
942 |
|
|
# END CYGNUS LOCAL
|
943 |
|
|
|
944 |
|
|
#--------------------------------------------------------------------
|
945 |
|
|
# See if there was a command-line option for where Tcl is; if
|
946 |
|
|
# not, search for Tcl.
|
947 |
|
|
# not, assume that its top-level directory is a sibling of ours.
|
948 |
|
|
# CYGNUS LOCAL - Actually Tcl & Tk are just called "tcl" & "tk" without the 8.0
|
949 |
|
|
#--------------------------------------------------------------------
|
950 |
|
|
|
951 |
|
|
# Check whether --with-tcl or --without-tcl was given.
|
952 |
|
|
if test "${with_tcl+set}" = set; then
|
953 |
|
|
withval="$with_tcl"
|
954 |
|
|
itcl_search=$withval
|
955 |
|
|
else
|
956 |
|
|
itcl_search=`cd ../../..; ls -d \`pwd\`/tcl*/unix`
|
957 |
|
|
fi
|
958 |
|
|
|
959 |
|
|
|
960 |
|
|
TCL_LIB_DIR=""
|
961 |
|
|
for dir in $itcl_search $exec_prefix/lib ; do
|
962 |
|
|
if test -r $dir/tclConfig.sh; then
|
963 |
|
|
TCL_LIB_DIR=$dir
|
964 |
|
|
break
|
965 |
|
|
fi
|
966 |
|
|
done
|
967 |
|
|
|
968 |
|
|
if test -z "$TCL_LIB_DIR"; then
|
969 |
|
|
{ echo "configure: error: Can't find Tcl libraries. Use --with-tcl to specify the directory containing tclConfig.sh on your system." 1>&2; exit 1; }
|
970 |
|
|
fi
|
971 |
|
|
|
972 |
|
|
#--------------------------------------------------------------------
|
973 |
|
|
# Read in configuration information generated by Tcl for shared
|
974 |
|
|
# libraries, and arrange for it to be substituted into our
|
975 |
|
|
# Makefile.
|
976 |
|
|
#--------------------------------------------------------------------
|
977 |
|
|
|
978 |
|
|
file=$TCL_LIB_DIR/tclConfig.sh
|
979 |
|
|
. $file
|
980 |
|
|
CFLAGS=$TCL_CFLAGS
|
981 |
|
|
SHLIB_CFLAGS=$TCL_SHLIB_CFLAGS
|
982 |
|
|
SHLIB_LD=$TCL_SHLIB_LD
|
983 |
|
|
SHLIB_LD_LIBS=$TCL_SHLIB_LD_LIBS
|
984 |
|
|
SHLIB_SUFFIX=$TCL_SHLIB_SUFFIX
|
985 |
|
|
DL_LIBS=$TCL_DL_LIBS
|
986 |
|
|
LD_FLAGS=$TCL_LD_FLAGS
|
987 |
|
|
LD_SEARCH_FLAGS=$TCL_LD_SEARCH_FLAGS
|
988 |
|
|
|
989 |
|
|
#--------------------------------------------------------------------
|
990 |
|
|
# Make sure that we can find the Tcl sources, so we can include
|
991 |
|
|
# the "tclInt.h" file.
|
992 |
|
|
#--------------------------------------------------------------------
|
993 |
|
|
|
994 |
|
|
if test ! -d "$TCL_SRC_DIR"; then
|
995 |
|
|
{ echo "configure: error: Can't find Tcl source directory "$TCL_SRC_DIR". Itcl can't be built without this directory." 1>&2; exit 1; }
|
996 |
|
|
fi
|
997 |
|
|
|
998 |
|
|
#--------------------------------------------------------------------
|
999 |
|
|
# See if there was a command-line option for where Tk is; if
|
1000 |
|
|
# not, search for Tk.
|
1001 |
|
|
# CYGNUS LOCAL - Actually Tcl & Tk are just called "tcl" & "tk" without the 8.0
|
1002 |
|
|
#--------------------------------------------------------------------
|
1003 |
|
|
|
1004 |
|
|
# Check whether --with-tk or --without-tk was given.
|
1005 |
|
|
if test "${with_tk+set}" = set; then
|
1006 |
|
|
withval="$with_tk"
|
1007 |
|
|
itcl_search=$withval
|
1008 |
|
|
else
|
1009 |
|
|
itcl_search=`cd ../../..; ls -d \`pwd\`/tk*/unix`
|
1010 |
|
|
fi
|
1011 |
|
|
|
1012 |
|
|
|
1013 |
|
|
TK_LIB_DIR=""
|
1014 |
|
|
for dir in $itcl_search $exec_prefix/lib ; do
|
1015 |
|
|
if test -r $dir/tkConfig.sh; then
|
1016 |
|
|
TK_LIB_DIR=$dir
|
1017 |
|
|
break
|
1018 |
|
|
fi
|
1019 |
|
|
done
|
1020 |
|
|
|
1021 |
|
|
if test -z "$TK_LIB_DIR"; then
|
1022 |
|
|
{ echo "configure: error: Can't find Tk libraries. Use --with-tk to specify the directory containing tkConfig.sh on your system." 1>&2; exit 1; }
|
1023 |
|
|
fi
|
1024 |
|
|
|
1025 |
|
|
file=$TK_LIB_DIR/tkConfig.sh
|
1026 |
|
|
. $file
|
1027 |
|
|
|
1028 |
|
|
#--------------------------------------------------------------------
|
1029 |
|
|
# See if there was a command-line option for where [incr Tcl] is.
|
1030 |
|
|
# If not, assume that its top-level directory is a sibling of ours.
|
1031 |
|
|
#--------------------------------------------------------------------
|
1032 |
|
|
|
1033 |
|
|
# Check whether --with-itcl or --without-itcl was given.
|
1034 |
|
|
if test "${with_itcl+set}" = set; then
|
1035 |
|
|
withval="$with_itcl"
|
1036 |
|
|
ITCL_LIB_DIR=$withval
|
1037 |
|
|
else
|
1038 |
|
|
ITCL_LIB_DIR=`cd ../../itcl; pwd`
|
1039 |
|
|
fi
|
1040 |
|
|
|
1041 |
|
|
|
1042 |
|
|
if test ! -r "$ITCL_LIB_DIR/itclConfig.sh"; then
|
1043 |
|
|
{ echo "configure: error: Can't find Itcl libraries. Have you built Itcl yet? Use --with-itcl to specify the directory containing itclConfig.sh on your system." 1>&2; exit 1; }
|
1044 |
|
|
fi
|
1045 |
|
|
|
1046 |
|
|
file=$ITCL_LIB_DIR/itclConfig.sh
|
1047 |
|
|
. $file
|
1048 |
|
|
|
1049 |
|
|
#--------------------------------------------------------------------
|
1050 |
|
|
# If this is gcc, add some extra compile flags.
|
1051 |
|
|
#--------------------------------------------------------------------
|
1052 |
|
|
|
1053 |
|
|
echo $ac_n "checking whether C compiler is gcc""... $ac_c" 1>&6
|
1054 |
|
|
echo "configure:1055: checking whether C compiler is gcc" >&5
|
1055 |
|
|
if eval "test \"`echo '$''{'itcl_cv_prog_gcc'+set}'`\" = set"; then
|
1056 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
1057 |
|
|
else
|
1058 |
|
|
|
1059 |
|
|
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
|
1060 |
|
|
echo "configure:1061: checking how to run the C preprocessor" >&5
|
1061 |
|
|
# On Suns, sometimes $CPP names a directory.
|
1062 |
|
|
if test -n "$CPP" && test -d "$CPP"; then
|
1063 |
|
|
CPP=
|
1064 |
|
|
fi
|
1065 |
|
|
if test -z "$CPP"; then
|
1066 |
|
|
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
|
1067 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
1068 |
|
|
else
|
1069 |
|
|
# This must be in double quotes, not single quotes, because CPP may get
|
1070 |
|
|
# substituted into the Makefile and "${CC-cc}" will confuse make.
|
1071 |
|
|
CPP="${CC-cc} -E"
|
1072 |
|
|
# On the NeXT, cc -E runs the code through the compiler's parser,
|
1073 |
|
|
# not just through cpp.
|
1074 |
|
|
cat > conftest.$ac_ext <
|
1075 |
|
|
#line 1076 "configure"
|
1076 |
|
|
#include "confdefs.h"
|
1077 |
|
|
#include
|
1078 |
|
|
Syntax Error
|
1079 |
|
|
EOF
|
1080 |
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1081 |
|
|
{ (eval echo configure:1082: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
1082 |
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
1083 |
|
|
if test -z "$ac_err"; then
|
1084 |
|
|
:
|
1085 |
|
|
else
|
1086 |
|
|
echo "$ac_err" >&5
|
1087 |
|
|
echo "configure: failed program was:" >&5
|
1088 |
|
|
cat conftest.$ac_ext >&5
|
1089 |
|
|
rm -rf conftest*
|
1090 |
|
|
CPP="${CC-cc} -E -traditional-cpp"
|
1091 |
|
|
cat > conftest.$ac_ext <
|
1092 |
|
|
#line 1093 "configure"
|
1093 |
|
|
#include "confdefs.h"
|
1094 |
|
|
#include
|
1095 |
|
|
Syntax Error
|
1096 |
|
|
EOF
|
1097 |
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1098 |
|
|
{ (eval echo configure:1099: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
1099 |
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
1100 |
|
|
if test -z "$ac_err"; then
|
1101 |
|
|
:
|
1102 |
|
|
else
|
1103 |
|
|
echo "$ac_err" >&5
|
1104 |
|
|
echo "configure: failed program was:" >&5
|
1105 |
|
|
cat conftest.$ac_ext >&5
|
1106 |
|
|
rm -rf conftest*
|
1107 |
|
|
CPP="${CC-cc} -nologo -E"
|
1108 |
|
|
cat > conftest.$ac_ext <
|
1109 |
|
|
#line 1110 "configure"
|
1110 |
|
|
#include "confdefs.h"
|
1111 |
|
|
#include
|
1112 |
|
|
Syntax Error
|
1113 |
|
|
EOF
|
1114 |
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1115 |
|
|
{ (eval echo configure:1116: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
1116 |
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
1117 |
|
|
if test -z "$ac_err"; then
|
1118 |
|
|
:
|
1119 |
|
|
else
|
1120 |
|
|
echo "$ac_err" >&5
|
1121 |
|
|
echo "configure: failed program was:" >&5
|
1122 |
|
|
cat conftest.$ac_ext >&5
|
1123 |
|
|
rm -rf conftest*
|
1124 |
|
|
CPP=/lib/cpp
|
1125 |
|
|
fi
|
1126 |
|
|
rm -f conftest*
|
1127 |
|
|
fi
|
1128 |
|
|
rm -f conftest*
|
1129 |
|
|
fi
|
1130 |
|
|
rm -f conftest*
|
1131 |
|
|
ac_cv_prog_CPP="$CPP"
|
1132 |
|
|
fi
|
1133 |
|
|
CPP="$ac_cv_prog_CPP"
|
1134 |
|
|
else
|
1135 |
|
|
ac_cv_prog_CPP="$CPP"
|
1136 |
|
|
fi
|
1137 |
|
|
echo "$ac_t""$CPP" 1>&6
|
1138 |
|
|
|
1139 |
|
|
cat > conftest.$ac_ext <
|
1140 |
|
|
#line 1141 "configure"
|
1141 |
|
|
#include "confdefs.h"
|
1142 |
|
|
|
1143 |
|
|
#ifdef __GNUC__
|
1144 |
|
|
_cc_is_gcc_
|
1145 |
|
|
#endif
|
1146 |
|
|
|
1147 |
|
|
EOF
|
1148 |
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
1149 |
|
|
egrep "_cc_is_gcc_" >/dev/null 2>&1; then
|
1150 |
|
|
rm -rf conftest*
|
1151 |
|
|
itcl_cv_prog_gcc=yes
|
1152 |
|
|
else
|
1153 |
|
|
rm -rf conftest*
|
1154 |
|
|
itcl_cv_prog_gcc=no
|
1155 |
|
|
fi
|
1156 |
|
|
rm -f conftest*
|
1157 |
|
|
|
1158 |
|
|
fi
|
1159 |
|
|
|
1160 |
|
|
echo "$ac_t""$itcl_cv_prog_gcc" 1>&6
|
1161 |
|
|
|
1162 |
|
|
# CYGNUS LOCAL - set CFLAGS to -g -O2 for gcc.
|
1163 |
|
|
if test -z "$CFLAGS" ; then
|
1164 |
|
|
if test "$itcl_cv_prog_gcc" = "yes" ; then
|
1165 |
|
|
CFLAGS="-g -O2"
|
1166 |
|
|
else
|
1167 |
|
|
CFLAGS="-O"
|
1168 |
|
|
fi
|
1169 |
|
|
fi
|
1170 |
|
|
|
1171 |
|
|
if test "$itcl_cv_prog_gcc" = "yes" ; then
|
1172 |
|
|
# leave -Wimplicit-int out, the X libs generate so many of these warnings
|
1173 |
|
|
# that they obscure everything else.
|
1174 |
|
|
# CYGNUS LOCAL - add -fwritable-strings to CFLAGS for gcc. Needed
|
1175 |
|
|
# with Tcl8.1
|
1176 |
|
|
CFLAGS="$CFLAGS -fwritable-strings -Wshadow -Wtraditional -Wall -Wno-implicit-int"
|
1177 |
|
|
fi
|
1178 |
|
|
|
1179 |
|
|
echo $ac_n "checking default compiler flags""... $ac_c" 1>&6
|
1180 |
|
|
echo "configure:1181: checking default compiler flags" >&5
|
1181 |
|
|
# Check whether --with-cflags or --without-cflags was given.
|
1182 |
|
|
if test "${with_cflags+set}" = set; then
|
1183 |
|
|
withval="$with_cflags"
|
1184 |
|
|
CFLAGS="$with_cflags"
|
1185 |
|
|
fi
|
1186 |
|
|
|
1187 |
|
|
|
1188 |
|
|
echo "$ac_t""$CFLAGS" 1>&6
|
1189 |
|
|
|
1190 |
|
|
if test "$TCL_CC" != "$CC" ; then
|
1191 |
|
|
echo ""
|
1192 |
|
|
echo "WARNING: Compiler is $CC but Tcl was compiled with $TCL_CC"
|
1193 |
|
|
echo ""
|
1194 |
|
|
fi
|
1195 |
|
|
|
1196 |
|
|
#--------------------------------------------------------------------
|
1197 |
|
|
# The statements below define a collection of symbols related to
|
1198 |
|
|
# building libitk as a shared library instead of a static library.
|
1199 |
|
|
#--------------------------------------------------------------------
|
1200 |
|
|
|
1201 |
|
|
# Check whether --enable-shared or --disable-shared was given.
|
1202 |
|
|
if test "${enable_shared+set}" = set; then
|
1203 |
|
|
enableval="$enable_shared"
|
1204 |
|
|
ok=$enableval
|
1205 |
|
|
else
|
1206 |
|
|
ok=no
|
1207 |
|
|
fi
|
1208 |
|
|
|
1209 |
|
|
if test "$ok" = "yes"; then
|
1210 |
|
|
if test ${TCL_SHARED_BUILD} = 0; then
|
1211 |
|
|
{ echo "configure: error: Tcl was not built with --enable-shared" 1>&2; exit 1; }
|
1212 |
|
|
fi
|
1213 |
|
|
SHLIB_CFLAGS="${SHLIB_CFLAGS}"
|
1214 |
|
|
eval "ITK_LIB_FILE=libitk${VERSION}${SHLIB_SUFFIX}"
|
1215 |
|
|
ITK_PKG_FILE="[file join [file dirname \$dir] ${ITK_LIB_FILE}]"
|
1216 |
|
|
# CYGNUS LOCAL - don't pass LD_SEARCH_FLAGS to libraries
|
1217 |
|
|
MAKE_LIB="\$(SHLIB_LD) -o ${ITK_LIB_FILE} \$(OBJS) "
|
1218 |
|
|
# END CYGNUS LOCAL
|
1219 |
|
|
RANLIB=":"
|
1220 |
|
|
else
|
1221 |
|
|
SHLIB_CFLAGS=""
|
1222 |
|
|
# CYGNUS LOCAL - Strip dots from library name for SunOS4, etc...
|
1223 |
|
|
if test ${TCL_LIB_VERSIONS_OK} = "nodots"; then
|
1224 |
|
|
ITK_LIB_FILE="libitk`echo ${VERSION} | tr -d .`.a"
|
1225 |
|
|
else
|
1226 |
|
|
eval "ITK_LIB_FILE=libitk${VERSION}.a"
|
1227 |
|
|
fi
|
1228 |
|
|
ITK_PKG_FILE=""
|
1229 |
|
|
MAKE_LIB="ar cr ${ITK_LIB_FILE} \${OBJS}"
|
1230 |
|
|
fi
|
1231 |
|
|
|
1232 |
|
|
# Note: in the following variable, it's important to use the absolute
|
1233 |
|
|
# path name of the Tcl directory rather than "..": this is because
|
1234 |
|
|
# AIX remembers this path and will attempt to use it at run-time to look
|
1235 |
|
|
# up the Tcl library.
|
1236 |
|
|
|
1237 |
|
|
if test "${TCL_LIB_VERSIONS_OK}" = "ok"; then
|
1238 |
|
|
ITK_BUILD_LIB_SPEC="-L`pwd` -litk${VERSION}"
|
1239 |
|
|
ITK_LIB_SPEC="-L${exec_prefix}/lib -litk${VERSION}"
|
1240 |
|
|
else
|
1241 |
|
|
ITK_BUILD_LIB_SPEC="-L`pwd` -litk`echo ${VERSION} | tr -d .`"
|
1242 |
|
|
ITK_LIB_SPEC="-L${exec_prefix}/lib -litk`echo ${VERSION} | tr -d .`"
|
1243 |
|
|
fi
|
1244 |
|
|
|
1245 |
|
|
ITK_LIB_FULL_PATH="`pwd`/${ITK_LIB_FILE}"
|
1246 |
|
|
|
1247 |
|
|
|
1248 |
|
|
|
1249 |
|
|
|
1250 |
|
|
|
1251 |
|
|
|
1252 |
|
|
|
1253 |
|
|
|
1254 |
|
|
|
1255 |
|
|
|
1256 |
|
|
|
1257 |
|
|
|
1258 |
|
|
|
1259 |
|
|
|
1260 |
|
|
|
1261 |
|
|
|
1262 |
|
|
|
1263 |
|
|
|
1264 |
|
|
|
1265 |
|
|
|
1266 |
|
|
|
1267 |
|
|
|
1268 |
|
|
|
1269 |
|
|
|
1270 |
|
|
|
1271 |
|
|
|
1272 |
|
|
|
1273 |
|
|
|
1274 |
|
|
|
1275 |
|
|
|
1276 |
|
|
|
1277 |
|
|
|
1278 |
|
|
|
1279 |
|
|
|
1280 |
|
|
|
1281 |
|
|
|
1282 |
|
|
|
1283 |
|
|
|
1284 |
|
|
|
1285 |
|
|
|
1286 |
|
|
|
1287 |
|
|
|
1288 |
|
|
|
1289 |
|
|
|
1290 |
|
|
|
1291 |
|
|
|
1292 |
|
|
|
1293 |
|
|
|
1294 |
|
|
|
1295 |
|
|
|
1296 |
|
|
|
1297 |
|
|
|
1298 |
|
|
|
1299 |
|
|
trap '' 1 2 15
|
1300 |
|
|
cat > confcache <<\EOF
|
1301 |
|
|
# This file is a shell script that caches the results of configure
|
1302 |
|
|
# tests run on this system so they can be shared between configure
|
1303 |
|
|
# scripts and configure runs. It is not useful on other systems.
|
1304 |
|
|
# If it contains results you don't want to keep, you may remove or edit it.
|
1305 |
|
|
#
|
1306 |
|
|
# By default, configure uses ./config.cache as the cache file,
|
1307 |
|
|
# creating it if it does not exist already. You can give configure
|
1308 |
|
|
# the --cache-file=FILE option to use a different cache file; that is
|
1309 |
|
|
# what configure does when it calls configure scripts in
|
1310 |
|
|
# subdirectories, so they share the cache.
|
1311 |
|
|
# Giving --cache-file=/dev/null disables caching, for debugging configure.
|
1312 |
|
|
# config.status only pays attention to the cache file if you give it the
|
1313 |
|
|
# --recheck option to rerun configure.
|
1314 |
|
|
#
|
1315 |
|
|
EOF
|
1316 |
|
|
# The following way of writing the cache mishandles newlines in values,
|
1317 |
|
|
# but we know of no workaround that is simple, portable, and efficient.
|
1318 |
|
|
# So, don't put newlines in cache variables' values.
|
1319 |
|
|
# Ultrix sh set writes to stderr and can't be redirected directly,
|
1320 |
|
|
# and sets the high bit in the cache file unless we assign to the vars.
|
1321 |
|
|
(set) 2>&1 |
|
1322 |
|
|
case `(ac_space=' '; set | grep ac_space) 2>&1` in
|
1323 |
|
|
*ac_space=\ *)
|
1324 |
|
|
# `set' does not quote correctly, so add quotes (double-quote substitution
|
1325 |
|
|
# turns \\\\ into \\, and sed turns \\ into \).
|
1326 |
|
|
sed -n \
|
1327 |
|
|
-e "s/'/'\\\\''/g" \
|
1328 |
|
|
-e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
|
1329 |
|
|
;;
|
1330 |
|
|
*)
|
1331 |
|
|
# `set' quotes correctly as required by POSIX, so do not add quotes.
|
1332 |
|
|
sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
|
1333 |
|
|
;;
|
1334 |
|
|
esac >> confcache
|
1335 |
|
|
if cmp -s $cache_file confcache; then
|
1336 |
|
|
:
|
1337 |
|
|
else
|
1338 |
|
|
if test -w $cache_file; then
|
1339 |
|
|
echo "updating cache $cache_file"
|
1340 |
|
|
cat confcache > $cache_file
|
1341 |
|
|
else
|
1342 |
|
|
echo "not updating unwritable cache $cache_file"
|
1343 |
|
|
fi
|
1344 |
|
|
fi
|
1345 |
|
|
rm -f confcache
|
1346 |
|
|
|
1347 |
|
|
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
1348 |
|
|
|
1349 |
|
|
test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
1350 |
|
|
# Let make expand exec_prefix.
|
1351 |
|
|
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
1352 |
|
|
|
1353 |
|
|
# Any assignment to VPATH causes Sun make to only execute
|
1354 |
|
|
# the first set of double-colon rules, so remove it if not needed.
|
1355 |
|
|
# If there is a colon in the path, we need to keep it.
|
1356 |
|
|
if test "x$srcdir" = x.; then
|
1357 |
|
|
ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
|
1358 |
|
|
fi
|
1359 |
|
|
|
1360 |
|
|
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
|
1361 |
|
|
|
1362 |
|
|
# Transform confdefs.h into DEFS.
|
1363 |
|
|
# Protect against shell expansion while executing Makefile rules.
|
1364 |
|
|
# Protect against Makefile macro expansion.
|
1365 |
|
|
cat > conftest.defs <<\EOF
|
1366 |
|
|
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
|
1367 |
|
|
s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
|
1368 |
|
|
s%\[%\\&%g
|
1369 |
|
|
s%\]%\\&%g
|
1370 |
|
|
s%\$%$$%g
|
1371 |
|
|
EOF
|
1372 |
|
|
DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
|
1373 |
|
|
rm -f conftest.defs
|
1374 |
|
|
|
1375 |
|
|
|
1376 |
|
|
# Without the "./", some shells look in PATH for config.status.
|
1377 |
|
|
: ${CONFIG_STATUS=./config.status}
|
1378 |
|
|
|
1379 |
|
|
echo creating $CONFIG_STATUS
|
1380 |
|
|
rm -f $CONFIG_STATUS
|
1381 |
|
|
cat > $CONFIG_STATUS <
|
1382 |
|
|
#! /bin/sh
|
1383 |
|
|
# Generated automatically by configure.
|
1384 |
|
|
# Run this file to recreate the current configuration.
|
1385 |
|
|
# This directory was configured as follows,
|
1386 |
|
|
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
|
1387 |
|
|
#
|
1388 |
|
|
# $0 $ac_configure_args
|
1389 |
|
|
#
|
1390 |
|
|
# Compiler output produced by configure, useful for debugging
|
1391 |
|
|
# configure, is in ./config.log if it exists.
|
1392 |
|
|
|
1393 |
|
|
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
|
1394 |
|
|
for ac_option
|
1395 |
|
|
do
|
1396 |
|
|
case "\$ac_option" in
|
1397 |
|
|
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
1398 |
|
|
echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
|
1399 |
|
|
exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
|
1400 |
|
|
-version | --version | --versio | --versi | --vers | --ver | --ve | --v)
|
1401 |
|
|
echo "$CONFIG_STATUS generated by autoconf version 2.13"
|
1402 |
|
|
exit 0 ;;
|
1403 |
|
|
-help | --help | --hel | --he | --h)
|
1404 |
|
|
echo "\$ac_cs_usage"; exit 0 ;;
|
1405 |
|
|
*) echo "\$ac_cs_usage"; exit 1 ;;
|
1406 |
|
|
esac
|
1407 |
|
|
done
|
1408 |
|
|
|
1409 |
|
|
ac_given_srcdir=$srcdir
|
1410 |
|
|
ac_given_INSTALL="$INSTALL"
|
1411 |
|
|
|
1412 |
|
|
trap 'rm -fr `echo "Makefile pkgIndex.tcl ../itkConfig.sh" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
|
1413 |
|
|
EOF
|
1414 |
|
|
cat >> $CONFIG_STATUS <
|
1415 |
|
|
|
1416 |
|
|
# Protect against being on the right side of a sed subst in config.status.
|
1417 |
|
|
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
|
1418 |
|
|
s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
|
1419 |
|
|
$ac_vpsub
|
1420 |
|
|
$extrasub
|
1421 |
|
|
s%@SHELL@%$SHELL%g
|
1422 |
|
|
s%@CFLAGS@%$CFLAGS%g
|
1423 |
|
|
s%@CPPFLAGS@%$CPPFLAGS%g
|
1424 |
|
|
s%@CXXFLAGS@%$CXXFLAGS%g
|
1425 |
|
|
s%@FFLAGS@%$FFLAGS%g
|
1426 |
|
|
s%@DEFS@%$DEFS%g
|
1427 |
|
|
s%@LDFLAGS@%$LDFLAGS%g
|
1428 |
|
|
s%@LIBS@%$LIBS%g
|
1429 |
|
|
s%@exec_prefix@%$exec_prefix%g
|
1430 |
|
|
s%@prefix@%$prefix%g
|
1431 |
|
|
s%@program_transform_name@%$program_transform_name%g
|
1432 |
|
|
s%@bindir@%$bindir%g
|
1433 |
|
|
s%@sbindir@%$sbindir%g
|
1434 |
|
|
s%@libexecdir@%$libexecdir%g
|
1435 |
|
|
s%@datadir@%$datadir%g
|
1436 |
|
|
s%@sysconfdir@%$sysconfdir%g
|
1437 |
|
|
s%@sharedstatedir@%$sharedstatedir%g
|
1438 |
|
|
s%@localstatedir@%$localstatedir%g
|
1439 |
|
|
s%@libdir@%$libdir%g
|
1440 |
|
|
s%@includedir@%$includedir%g
|
1441 |
|
|
s%@oldincludedir@%$oldincludedir%g
|
1442 |
|
|
s%@infodir@%$infodir%g
|
1443 |
|
|
s%@mandir@%$mandir%g
|
1444 |
|
|
s%@TCLSH@%$TCLSH%g
|
1445 |
|
|
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
|
1446 |
|
|
s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
|
1447 |
|
|
s%@INSTALL_DATA@%$INSTALL_DATA%g
|
1448 |
|
|
s%@RANLIB@%$RANLIB%g
|
1449 |
|
|
s%@CC@%$CC%g
|
1450 |
|
|
s%@CPP@%$CPP%g
|
1451 |
|
|
s%@DL_LIBS@%$DL_LIBS%g
|
1452 |
|
|
s%@LD_FLAGS@%$LD_FLAGS%g
|
1453 |
|
|
s%@MAKE_LIB@%$MAKE_LIB%g
|
1454 |
|
|
s%@SHLIB_CFLAGS@%$SHLIB_CFLAGS%g
|
1455 |
|
|
s%@SHLIB_LD@%$SHLIB_LD%g
|
1456 |
|
|
s%@SHLIB_LD_LIBS@%$SHLIB_LD_LIBS%g
|
1457 |
|
|
s%@SHLIB_SUFFIX@%$SHLIB_SUFFIX%g
|
1458 |
|
|
s%@LD_SEARCH_FLAGS@%$LD_SEARCH_FLAGS%g
|
1459 |
|
|
s%@TCL_VERSION@%$TCL_VERSION%g
|
1460 |
|
|
s%@TCL_SRC_DIR@%$TCL_SRC_DIR%g
|
1461 |
|
|
s%@TCL_LIB_SPEC@%$TCL_LIB_SPEC%g
|
1462 |
|
|
s%@TCL_BUILD_LIB_SPEC@%$TCL_BUILD_LIB_SPEC%g
|
1463 |
|
|
s%@TCL_LIB_FLAG@%$TCL_LIB_FLAG%g
|
1464 |
|
|
s%@TCL_DBGX@%$TCL_DBGX%g
|
1465 |
|
|
s%@TCL_DEFS@%$TCL_DEFS%g
|
1466 |
|
|
s%@TCL_LIBS@%$TCL_LIBS%g
|
1467 |
|
|
s%@TCL_SHLIB_LD_LIBS@%$TCL_SHLIB_LD_LIBS%g
|
1468 |
|
|
s%@TCL_SHLIB_SUFFIX@%$TCL_SHLIB_SUFFIX%g
|
1469 |
|
|
s%@TCL_COMPAT_OBJS@%$TCL_COMPAT_OBJS%g
|
1470 |
|
|
s%@TCL_CFLAGS@%$TCL_CFLAGS%g
|
1471 |
|
|
s%@TCL_LIB_FULL_PATH@%$TCL_LIB_FULL_PATH%g
|
1472 |
|
|
s%@TK_VERSION@%$TK_VERSION%g
|
1473 |
|
|
s%@TK_BUILD_LIB_SPEC@%$TK_BUILD_LIB_SPEC%g
|
1474 |
|
|
s%@TK_LIB_DIR@%$TK_LIB_DIR%g
|
1475 |
|
|
s%@TK_LIB_SPEC@%$TK_LIB_SPEC%g
|
1476 |
|
|
s%@TK_LIB_FLAG@%$TK_LIB_FLAG%g
|
1477 |
|
|
s%@TK_XINCLUDES@%$TK_XINCLUDES%g
|
1478 |
|
|
s%@TK_XLIBSW@%$TK_XLIBSW%g
|
1479 |
|
|
s%@TK_SRC_DIR@%$TK_SRC_DIR%g
|
1480 |
|
|
s%@TK_LIB_FULL_PATH@%$TK_LIB_FULL_PATH%g
|
1481 |
|
|
s%@ITCL_VERSION@%$ITCL_VERSION%g
|
1482 |
|
|
s%@ITCL_MAJOR_VERSION@%$ITCL_MAJOR_VERSION%g
|
1483 |
|
|
s%@ITCL_MINOR_VERSION@%$ITCL_MINOR_VERSION%g
|
1484 |
|
|
s%@ITCL_RELEASE_LEVEL@%$ITCL_RELEASE_LEVEL%g
|
1485 |
|
|
s%@ITCL_BUILD_LIB_SPEC@%$ITCL_BUILD_LIB_SPEC%g
|
1486 |
|
|
s%@ITCL_LIB_FULL_PATH@%$ITCL_LIB_FULL_PATH%g
|
1487 |
|
|
s%@ITCL_LIB_DIR@%$ITCL_LIB_DIR%g
|
1488 |
|
|
s%@ITCL_LIB_SPEC@%$ITCL_LIB_SPEC%g
|
1489 |
|
|
s%@ITCL_PKG_FILE@%$ITCL_PKG_FILE%g
|
1490 |
|
|
s%@ITCL_SRC_DIR@%$ITCL_SRC_DIR%g
|
1491 |
|
|
s%@ITK_BUILD_LIB_SPEC@%$ITK_BUILD_LIB_SPEC%g
|
1492 |
|
|
s%@ITK_LIB_FILE@%$ITK_LIB_FILE%g
|
1493 |
|
|
s%@ITK_LIB_SPEC@%$ITK_LIB_SPEC%g
|
1494 |
|
|
s%@ITK_PKG_FILE@%$ITK_PKG_FILE%g
|
1495 |
|
|
s%@ITK_SRC_DIR@%$ITK_SRC_DIR%g
|
1496 |
|
|
s%@ITK_LIB_FULL_PATH@%$ITK_LIB_FULL_PATH%g
|
1497 |
|
|
|
1498 |
|
|
CEOF
|
1499 |
|
|
EOF
|
1500 |
|
|
|
1501 |
|
|
cat >> $CONFIG_STATUS <<\EOF
|
1502 |
|
|
|
1503 |
|
|
# Split the substitutions into bite-sized pieces for seds with
|
1504 |
|
|
# small command number limits, like on Digital OSF/1 and HP-UX.
|
1505 |
|
|
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
|
1506 |
|
|
ac_file=1 # Number of current file.
|
1507 |
|
|
ac_beg=1 # First line for current file.
|
1508 |
|
|
ac_end=$ac_max_sed_cmds # Line after last line for current file.
|
1509 |
|
|
ac_more_lines=:
|
1510 |
|
|
ac_sed_cmds=""
|
1511 |
|
|
while $ac_more_lines; do
|
1512 |
|
|
if test $ac_beg -gt 1; then
|
1513 |
|
|
sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
|
1514 |
|
|
else
|
1515 |
|
|
sed "${ac_end}q" conftest.subs > conftest.s$ac_file
|
1516 |
|
|
fi
|
1517 |
|
|
if test ! -s conftest.s$ac_file; then
|
1518 |
|
|
ac_more_lines=false
|
1519 |
|
|
rm -f conftest.s$ac_file
|
1520 |
|
|
else
|
1521 |
|
|
if test -z "$ac_sed_cmds"; then
|
1522 |
|
|
ac_sed_cmds="sed -f conftest.s$ac_file"
|
1523 |
|
|
else
|
1524 |
|
|
ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
|
1525 |
|
|
fi
|
1526 |
|
|
ac_file=`expr $ac_file + 1`
|
1527 |
|
|
ac_beg=$ac_end
|
1528 |
|
|
ac_end=`expr $ac_end + $ac_max_sed_cmds`
|
1529 |
|
|
fi
|
1530 |
|
|
done
|
1531 |
|
|
if test -z "$ac_sed_cmds"; then
|
1532 |
|
|
ac_sed_cmds=cat
|
1533 |
|
|
fi
|
1534 |
|
|
EOF
|
1535 |
|
|
|
1536 |
|
|
cat >> $CONFIG_STATUS <
|
1537 |
|
|
|
1538 |
|
|
CONFIG_FILES=\${CONFIG_FILES-"Makefile pkgIndex.tcl ../itkConfig.sh"}
|
1539 |
|
|
EOF
|
1540 |
|
|
cat >> $CONFIG_STATUS <<\EOF
|
1541 |
|
|
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
|
1542 |
|
|
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
1543 |
|
|
case "$ac_file" in
|
1544 |
|
|
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
|
1545 |
|
|
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
1546 |
|
|
*) ac_file_in="${ac_file}.in" ;;
|
1547 |
|
|
esac
|
1548 |
|
|
|
1549 |
|
|
# Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
|
1550 |
|
|
|
1551 |
|
|
# Remove last slash and all that follows it. Not all systems have dirname.
|
1552 |
|
|
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
|
1553 |
|
|
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
1554 |
|
|
# The file is in a subdirectory.
|
1555 |
|
|
test ! -d "$ac_dir" && mkdir "$ac_dir"
|
1556 |
|
|
ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
|
1557 |
|
|
# A "../" for each directory in $ac_dir_suffix.
|
1558 |
|
|
ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
|
1559 |
|
|
else
|
1560 |
|
|
ac_dir_suffix= ac_dots=
|
1561 |
|
|
fi
|
1562 |
|
|
|
1563 |
|
|
case "$ac_given_srcdir" in
|
1564 |
|
|
.) srcdir=.
|
1565 |
|
|
if test -z "$ac_dots"; then top_srcdir=.
|
1566 |
|
|
else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
|
1567 |
|
|
/*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
|
1568 |
|
|
*) # Relative path.
|
1569 |
|
|
srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
|
1570 |
|
|
top_srcdir="$ac_dots$ac_given_srcdir" ;;
|
1571 |
|
|
esac
|
1572 |
|
|
|
1573 |
|
|
case "$ac_given_INSTALL" in
|
1574 |
|
|
[/$]*) INSTALL="$ac_given_INSTALL" ;;
|
1575 |
|
|
*) INSTALL="$ac_dots$ac_given_INSTALL" ;;
|
1576 |
|
|
esac
|
1577 |
|
|
|
1578 |
|
|
echo creating "$ac_file"
|
1579 |
|
|
rm -f "$ac_file"
|
1580 |
|
|
configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
|
1581 |
|
|
case "$ac_file" in
|
1582 |
|
|
*Makefile*) ac_comsub="1i\\
|
1583 |
|
|
# $configure_input" ;;
|
1584 |
|
|
*) ac_comsub= ;;
|
1585 |
|
|
esac
|
1586 |
|
|
|
1587 |
|
|
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
|
1588 |
|
|
sed -e "$ac_comsub
|
1589 |
|
|
s%@configure_input@%$configure_input%g
|
1590 |
|
|
s%@srcdir@%$srcdir%g
|
1591 |
|
|
s%@top_srcdir@%$top_srcdir%g
|
1592 |
|
|
s%@INSTALL@%$INSTALL%g
|
1593 |
|
|
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
|
1594 |
|
|
fi; done
|
1595 |
|
|
rm -f conftest.s*
|
1596 |
|
|
|
1597 |
|
|
EOF
|
1598 |
|
|
cat >> $CONFIG_STATUS <
|
1599 |
|
|
|
1600 |
|
|
EOF
|
1601 |
|
|
cat >> $CONFIG_STATUS <<\EOF
|
1602 |
|
|
|
1603 |
|
|
exit 0
|
1604 |
|
|
EOF
|
1605 |
|
|
chmod +x $CONFIG_STATUS
|
1606 |
|
|
rm -fr confdefs* $ac_clean_files
|
1607 |
|
|
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
|
1608 |
|
|
|