]>
Commit | Line | Data |
---|---|---|
ef6bacff RC |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
3 | # Generated by GNU Autoconf 2.53. | |
4 | # | |
5 | # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 | |
6 | # Free Software Foundation, Inc. | |
7 | # This configure script is free software; the Free Software Foundation | |
8 | # gives unlimited permission to copy, distribute and modify it. | |
9 | ||
10 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
11 | as_expr=expr | |
12 | else | |
13 | as_expr=false | |
14 | fi | |
15 | ||
16 | ||
17 | ## --------------------- ## | |
18 | ## M4sh Initialization. ## | |
19 | ## --------------------- ## | |
20 | ||
21 | # Be Bourne compatible | |
22 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
23 | emulate sh | |
24 | NULLCMD=: | |
25 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
26 | set -o posix | |
27 | fi | |
28 | ||
29 | # NLS nuisances. | |
30 | # Support unset when possible. | |
31 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then | |
32 | as_unset=unset | |
33 | else | |
34 | as_unset=false | |
35 | fi | |
36 | ||
37 | (set +x; test -n "`(LANG=C; export LANG) 2>&1`") && | |
38 | { $as_unset LANG || test "${LANG+set}" != set; } || | |
39 | { LANG=C; export LANG; } | |
40 | (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") && | |
41 | { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } || | |
42 | { LC_ALL=C; export LC_ALL; } | |
43 | (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") && | |
44 | { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } || | |
45 | { LC_TIME=C; export LC_TIME; } | |
46 | (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") && | |
47 | { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } || | |
48 | { LC_CTYPE=C; export LC_CTYPE; } | |
49 | (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") && | |
50 | { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } || | |
51 | { LANGUAGE=C; export LANGUAGE; } | |
52 | (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") && | |
53 | { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } || | |
54 | { LC_COLLATE=C; export LC_COLLATE; } | |
55 | (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") && | |
56 | { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } || | |
57 | { LC_NUMERIC=C; export LC_NUMERIC; } | |
58 | (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") && | |
59 | { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } || | |
60 | { LC_MESSAGES=C; export LC_MESSAGES; } | |
61 | ||
62 | ||
63 | # Name of the executable. | |
64 | as_me=`(basename "$0") 2>/dev/null || | |
65 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
66 | X"$0" : 'X\(//\)$' \| \ | |
67 | X"$0" : 'X\(/\)$' \| \ | |
68 | . : '\(.\)' 2>/dev/null || | |
69 | echo X/"$0" | | |
70 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
71 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
72 | /^X\/\(\/\).*/{ s//\1/; q; } | |
73 | s/.*/./; q'` | |
74 | ||
75 | # PATH needs CR, and LINENO needs CR and PATH. | |
76 | # Avoid depending upon Character Ranges. | |
77 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
78 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
79 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
80 | as_cr_digits='0123456789' | |
81 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
82 | ||
83 | # The user is always right. | |
84 | if test "${PATH_SEPARATOR+set}" != set; then | |
85 | echo "#! /bin/sh" >conftest.sh | |
86 | echo "exit 0" >>conftest.sh | |
87 | chmod +x conftest.sh | |
88 | if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then | |
89 | PATH_SEPARATOR=';' | |
90 | else | |
91 | PATH_SEPARATOR=: | |
92 | fi | |
93 | rm -f conftest.sh | |
94 | fi | |
95 | ||
96 | ||
97 | as_lineno_1=$LINENO | |
98 | as_lineno_2=$LINENO | |
99 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
100 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
101 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
102 | # Find who we are. Look in the path if we contain no path at all | |
103 | # relative or not. | |
104 | case $0 in | |
105 | *[\\/]* ) as_myself=$0 ;; | |
106 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
107 | for as_dir in $PATH | |
108 | do | |
109 | IFS=$as_save_IFS | |
110 | test -z "$as_dir" && as_dir=. | |
111 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
112 | done | |
113 | ||
114 | ;; | |
115 | esac | |
116 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
117 | # in which case we are not to be found in the path. | |
118 | if test "x$as_myself" = x; then | |
119 | as_myself=$0 | |
120 | fi | |
121 | if test ! -f "$as_myself"; then | |
122 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 | |
123 | { (exit 1); exit 1; }; } | |
124 | fi | |
125 | case $CONFIG_SHELL in | |
126 | '') | |
127 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
128 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
129 | do | |
130 | IFS=$as_save_IFS | |
131 | test -z "$as_dir" && as_dir=. | |
132 | for as_base in sh bash ksh sh5; do | |
133 | case $as_dir in | |
134 | /*) | |
135 | if ("$as_dir/$as_base" -c ' | |
136 | as_lineno_1=$LINENO | |
137 | as_lineno_2=$LINENO | |
138 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
139 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
140 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
141 | CONFIG_SHELL=$as_dir/$as_base | |
142 | export CONFIG_SHELL | |
143 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
144 | fi;; | |
145 | esac | |
146 | done | |
147 | done | |
148 | ;; | |
149 | esac | |
150 | ||
151 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
152 | # uniformly replaced by the line number. The first 'sed' inserts a | |
153 | # line-number line before each line; the second 'sed' does the real | |
154 | # work. The second script uses 'N' to pair each line-number line | |
155 | # with the numbered line, and appends trailing '-' during | |
156 | # substitution so that $LINENO is not a special case at line end. | |
157 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
158 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
159 | sed '=' <$as_myself | | |
160 | sed ' | |
161 | N | |
162 | s,$,-, | |
163 | : loop | |
164 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
165 | t loop | |
166 | s,-$,, | |
167 | s,^['$as_cr_digits']*\n,, | |
168 | ' >$as_me.lineno && | |
169 | chmod +x $as_me.lineno || | |
170 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
171 | { (exit 1); exit 1; }; } | |
172 | ||
173 | # Don't try to exec as it changes $[0], causing all sort of problems | |
174 | # (the dirname of $[0] is not the place where we might find the | |
175 | # original and so on. Autoconf is especially sensible to this). | |
176 | . ./$as_me.lineno | |
177 | # Exit status is that of the last command. | |
178 | exit | |
179 | } | |
180 | ||
181 | ||
182 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
183 | *c*,-n*) ECHO_N= ECHO_C=' | |
184 | ' ECHO_T=' ' ;; | |
185 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
186 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
187 | esac | |
188 | ||
189 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
190 | as_expr=expr | |
191 | else | |
192 | as_expr=false | |
193 | fi | |
194 | ||
195 | rm -f conf$$ conf$$.exe conf$$.file | |
196 | echo >conf$$.file | |
197 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
198 | # We could just check for DJGPP; but this test a) works b) is more generic | |
199 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
200 | if test -f conf$$.exe; then | |
201 | # Don't use ln at all; we don't have any links | |
202 | as_ln_s='cp -p' | |
203 | else | |
204 | as_ln_s='ln -s' | |
205 | fi | |
206 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
207 | as_ln_s=ln | |
208 | else | |
209 | as_ln_s='cp -p' | |
210 | fi | |
211 | rm -f conf$$ conf$$.exe conf$$.file | |
212 | ||
213 | as_executable_p="test -f" | |
214 | ||
215 | # Sed expression to map a string onto a valid CPP name. | |
216 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" | |
217 | ||
218 | # Sed expression to map a string onto a valid variable name. | |
219 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" | |
220 | ||
221 | ||
222 | # IFS | |
223 | # We need space, tab and new line, in precisely that order. | |
224 | as_nl=' | |
225 | ' | |
226 | IFS=" $as_nl" | |
227 | ||
228 | # CDPATH. | |
229 | $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; } | |
230 | ||
231 | ||
232 | # Name of the host. | |
233 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
234 | # so uname gets run too. | |
235 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
236 | ||
237 | exec 6>&1 | |
238 | ||
239 | # | |
240 | # Initializations. | |
241 | # | |
242 | ac_default_prefix=/usr/local | |
243 | cross_compiling=no | |
244 | subdirs= | |
245 | MFLAGS= | |
246 | MAKEFLAGS= | |
247 | SHELL=${CONFIG_SHELL-/bin/sh} | |
248 | ||
249 | # Maximum number of lines to put in a shell here document. | |
250 | # This variable seems obsolete. It should probably be removed, and | |
251 | # only ac_max_sed_lines should be used. | |
252 | : ${ac_max_here_lines=38} | |
253 | ||
254 | # Identity of this package. | |
255 | PACKAGE_NAME= | |
256 | PACKAGE_TARNAME= | |
257 | PACKAGE_VERSION= | |
258 | PACKAGE_STRING= | |
259 | PACKAGE_BUGREPORT= | |
260 | ||
261 | ac_unique_file="bzlib.h" | |
262 | ||
263 | # Initialize some variables set by options. | |
264 | ac_init_help= | |
265 | ac_init_version=false | |
266 | # The variables have the same names as the options, with | |
267 | # dashes changed to underlines. | |
268 | cache_file=/dev/null | |
269 | exec_prefix=NONE | |
270 | no_create= | |
271 | no_recursion= | |
272 | prefix=NONE | |
273 | program_prefix=NONE | |
274 | program_suffix=NONE | |
275 | program_transform_name=s,x,x, | |
276 | silent= | |
277 | site= | |
278 | srcdir= | |
279 | verbose= | |
280 | x_includes=NONE | |
281 | x_libraries=NONE | |
282 | ||
283 | # Installation directory options. | |
284 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
285 | # and all the variables that are supposed to be based on exec_prefix | |
286 | # by default will actually change. | |
287 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
288 | bindir='${exec_prefix}/bin' | |
289 | sbindir='${exec_prefix}/sbin' | |
290 | libexecdir='${exec_prefix}/libexec' | |
291 | datadir='${prefix}/share' | |
292 | sysconfdir='${prefix}/etc' | |
293 | sharedstatedir='${prefix}/com' | |
294 | localstatedir='${prefix}/var' | |
295 | libdir='${exec_prefix}/lib' | |
296 | includedir='${prefix}/include' | |
297 | oldincludedir='/usr/include' | |
298 | infodir='${prefix}/info' | |
299 | mandir='${prefix}/man' | |
300 | ||
301 | ac_prev= | |
302 | for ac_option | |
303 | do | |
304 | # If the previous option needs an argument, assign it. | |
305 | if test -n "$ac_prev"; then | |
306 | eval "$ac_prev=\$ac_option" | |
307 | ac_prev= | |
308 | continue | |
309 | fi | |
310 | ||
311 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` | |
312 | ||
313 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
314 | ||
315 | case $ac_option in | |
316 | ||
317 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
318 | ac_prev=bindir ;; | |
319 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
320 | bindir=$ac_optarg ;; | |
321 | ||
322 | -build | --build | --buil | --bui | --bu) | |
323 | ac_prev=build_alias ;; | |
324 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
325 | build_alias=$ac_optarg ;; | |
326 | ||
327 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
328 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
329 | ac_prev=cache_file ;; | |
330 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
331 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
332 | cache_file=$ac_optarg ;; | |
333 | ||
334 | --config-cache | -C) | |
335 | cache_file=config.cache ;; | |
336 | ||
337 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
338 | ac_prev=datadir ;; | |
339 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
340 | | --da=*) | |
341 | datadir=$ac_optarg ;; | |
342 | ||
343 | -disable-* | --disable-*) | |
344 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
345 | # Reject names that are not valid shell variable names. | |
346 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
347 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
348 | { (exit 1); exit 1; }; } | |
349 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
350 | eval "enable_$ac_feature=no" ;; | |
351 | ||
352 | -enable-* | --enable-*) | |
353 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
354 | # Reject names that are not valid shell variable names. | |
355 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
356 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
357 | { (exit 1); exit 1; }; } | |
358 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
359 | case $ac_option in | |
360 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
361 | *) ac_optarg=yes ;; | |
362 | esac | |
363 | eval "enable_$ac_feature='$ac_optarg'" ;; | |
364 | ||
365 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
366 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
367 | | --exec | --exe | --ex) | |
368 | ac_prev=exec_prefix ;; | |
369 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
370 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
371 | | --exec=* | --exe=* | --ex=*) | |
372 | exec_prefix=$ac_optarg ;; | |
373 | ||
374 | -gas | --gas | --ga | --g) | |
375 | # Obsolete; use --with-gas. | |
376 | with_gas=yes ;; | |
377 | ||
378 | -help | --help | --hel | --he | -h) | |
379 | ac_init_help=long ;; | |
380 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
381 | ac_init_help=recursive ;; | |
382 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
383 | ac_init_help=short ;; | |
384 | ||
385 | -host | --host | --hos | --ho) | |
386 | ac_prev=host_alias ;; | |
387 | -host=* | --host=* | --hos=* | --ho=*) | |
388 | host_alias=$ac_optarg ;; | |
389 | ||
390 | -includedir | --includedir | --includedi | --included | --include \ | |
391 | | --includ | --inclu | --incl | --inc) | |
392 | ac_prev=includedir ;; | |
393 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
394 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
395 | includedir=$ac_optarg ;; | |
396 | ||
397 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
398 | ac_prev=infodir ;; | |
399 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
400 | infodir=$ac_optarg ;; | |
401 | ||
402 | -libdir | --libdir | --libdi | --libd) | |
403 | ac_prev=libdir ;; | |
404 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
405 | libdir=$ac_optarg ;; | |
406 | ||
407 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
408 | | --libexe | --libex | --libe) | |
409 | ac_prev=libexecdir ;; | |
410 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
411 | | --libexe=* | --libex=* | --libe=*) | |
412 | libexecdir=$ac_optarg ;; | |
413 | ||
414 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
415 | | --localstate | --localstat | --localsta | --localst \ | |
416 | | --locals | --local | --loca | --loc | --lo) | |
417 | ac_prev=localstatedir ;; | |
418 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
419 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
420 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
421 | localstatedir=$ac_optarg ;; | |
422 | ||
423 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
424 | ac_prev=mandir ;; | |
425 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
426 | mandir=$ac_optarg ;; | |
427 | ||
428 | -nfp | --nfp | --nf) | |
429 | # Obsolete; use --without-fp. | |
430 | with_fp=no ;; | |
431 | ||
432 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
433 | | --no-cr | --no-c | -n) | |
434 | no_create=yes ;; | |
435 | ||
436 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
437 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
438 | no_recursion=yes ;; | |
439 | ||
440 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
441 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
442 | | --oldin | --oldi | --old | --ol | --o) | |
443 | ac_prev=oldincludedir ;; | |
444 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
445 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
446 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
447 | oldincludedir=$ac_optarg ;; | |
448 | ||
449 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
450 | ac_prev=prefix ;; | |
451 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
452 | prefix=$ac_optarg ;; | |
453 | ||
454 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
455 | | --program-pre | --program-pr | --program-p) | |
456 | ac_prev=program_prefix ;; | |
457 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
458 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
459 | program_prefix=$ac_optarg ;; | |
460 | ||
461 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
462 | | --program-suf | --program-su | --program-s) | |
463 | ac_prev=program_suffix ;; | |
464 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
465 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
466 | program_suffix=$ac_optarg ;; | |
467 | ||
468 | -program-transform-name | --program-transform-name \ | |
469 | | --program-transform-nam | --program-transform-na \ | |
470 | | --program-transform-n | --program-transform- \ | |
471 | | --program-transform | --program-transfor \ | |
472 | | --program-transfo | --program-transf \ | |
473 | | --program-trans | --program-tran \ | |
474 | | --progr-tra | --program-tr | --program-t) | |
475 | ac_prev=program_transform_name ;; | |
476 | -program-transform-name=* | --program-transform-name=* \ | |
477 | | --program-transform-nam=* | --program-transform-na=* \ | |
478 | | --program-transform-n=* | --program-transform-=* \ | |
479 | | --program-transform=* | --program-transfor=* \ | |
480 | | --program-transfo=* | --program-transf=* \ | |
481 | | --program-trans=* | --program-tran=* \ | |
482 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
483 | program_transform_name=$ac_optarg ;; | |
484 | ||
485 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
486 | | -silent | --silent | --silen | --sile | --sil) | |
487 | silent=yes ;; | |
488 | ||
489 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
490 | ac_prev=sbindir ;; | |
491 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
492 | | --sbi=* | --sb=*) | |
493 | sbindir=$ac_optarg ;; | |
494 | ||
495 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
496 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
497 | | --sharedst | --shareds | --shared | --share | --shar \ | |
498 | | --sha | --sh) | |
499 | ac_prev=sharedstatedir ;; | |
500 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
501 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
502 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
503 | | --sha=* | --sh=*) | |
504 | sharedstatedir=$ac_optarg ;; | |
505 | ||
506 | -site | --site | --sit) | |
507 | ac_prev=site ;; | |
508 | -site=* | --site=* | --sit=*) | |
509 | site=$ac_optarg ;; | |
510 | ||
511 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
512 | ac_prev=srcdir ;; | |
513 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
514 | srcdir=$ac_optarg ;; | |
515 | ||
516 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
517 | | --syscon | --sysco | --sysc | --sys | --sy) | |
518 | ac_prev=sysconfdir ;; | |
519 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
520 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
521 | sysconfdir=$ac_optarg ;; | |
522 | ||
523 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
524 | ac_prev=target_alias ;; | |
525 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
526 | target_alias=$ac_optarg ;; | |
527 | ||
528 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
529 | verbose=yes ;; | |
530 | ||
531 | -version | --version | --versio | --versi | --vers | -V) | |
532 | ac_init_version=: ;; | |
533 | ||
534 | -with-* | --with-*) | |
535 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
536 | # Reject names that are not valid shell variable names. | |
537 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
538 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
539 | { (exit 1); exit 1; }; } | |
540 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
541 | case $ac_option in | |
542 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
543 | *) ac_optarg=yes ;; | |
544 | esac | |
545 | eval "with_$ac_package='$ac_optarg'" ;; | |
546 | ||
547 | -without-* | --without-*) | |
548 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
549 | # Reject names that are not valid shell variable names. | |
550 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
551 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
552 | { (exit 1); exit 1; }; } | |
553 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
554 | eval "with_$ac_package=no" ;; | |
555 | ||
556 | --x) | |
557 | # Obsolete; use --with-x. | |
558 | with_x=yes ;; | |
559 | ||
560 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
561 | | --x-incl | --x-inc | --x-in | --x-i) | |
562 | ac_prev=x_includes ;; | |
563 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
564 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
565 | x_includes=$ac_optarg ;; | |
566 | ||
567 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
568 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
569 | ac_prev=x_libraries ;; | |
570 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
571 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
572 | x_libraries=$ac_optarg ;; | |
573 | ||
574 | -*) { echo "$as_me: error: unrecognized option: $ac_option | |
575 | Try \`$0 --help' for more information." >&2 | |
576 | { (exit 1); exit 1; }; } | |
577 | ;; | |
578 | ||
579 | *=*) | |
580 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
581 | # Reject names that are not valid shell variable names. | |
582 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
583 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
584 | { (exit 1); exit 1; }; } | |
585 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | |
586 | eval "$ac_envvar='$ac_optarg'" | |
587 | export $ac_envvar ;; | |
588 | ||
589 | *) | |
590 | # FIXME: should be removed in autoconf 3.0. | |
591 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
592 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
593 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
594 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
595 | ;; | |
596 | ||
597 | esac | |
598 | done | |
599 | ||
600 | if test -n "$ac_prev"; then | |
601 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
602 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
603 | { (exit 1); exit 1; }; } | |
604 | fi | |
605 | ||
606 | # Be sure to have absolute paths. | |
607 | for ac_var in exec_prefix prefix | |
608 | do | |
609 | eval ac_val=$`echo $ac_var` | |
610 | case $ac_val in | |
611 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | |
612 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
613 | { (exit 1); exit 1; }; };; | |
614 | esac | |
615 | done | |
616 | ||
617 | # Be sure to have absolute paths. | |
618 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
619 | localstatedir libdir includedir oldincludedir infodir mandir | |
620 | do | |
621 | eval ac_val=$`echo $ac_var` | |
622 | case $ac_val in | |
623 | [\\/$]* | ?:[\\/]* ) ;; | |
624 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
625 | { (exit 1); exit 1; }; };; | |
626 | esac | |
627 | done | |
628 | ||
629 | # There might be people who depend on the old broken behavior: `$host' | |
630 | # used to hold the argument of --host etc. | |
631 | # FIXME: To remove some day. | |
632 | build=$build_alias | |
633 | host=$host_alias | |
634 | target=$target_alias | |
635 | ||
636 | # FIXME: To remove some day. | |
637 | if test "x$host_alias" != x; then | |
638 | if test "x$build_alias" = x; then | |
639 | cross_compiling=maybe | |
640 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
641 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
642 | elif test "x$build_alias" != "x$host_alias"; then | |
643 | cross_compiling=yes | |
644 | fi | |
645 | fi | |
646 | ||
647 | ac_tool_prefix= | |
648 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
649 | ||
650 | test "$silent" = yes && exec 6>/dev/null | |
651 | ||
652 | ||
653 | # Find the source files, if location was not specified. | |
654 | if test -z "$srcdir"; then | |
655 | ac_srcdir_defaulted=yes | |
656 | # Try the directory containing this script, then its parent. | |
657 | ac_confdir=`(dirname "$0") 2>/dev/null || | |
658 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
659 | X"$0" : 'X\(//\)[^/]' \| \ | |
660 | X"$0" : 'X\(//\)$' \| \ | |
661 | X"$0" : 'X\(/\)' \| \ | |
662 | . : '\(.\)' 2>/dev/null || | |
663 | echo X"$0" | | |
664 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
665 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
666 | /^X\(\/\/\)$/{ s//\1/; q; } | |
667 | /^X\(\/\).*/{ s//\1/; q; } | |
668 | s/.*/./; q'` | |
669 | srcdir=$ac_confdir | |
670 | if test ! -r $srcdir/$ac_unique_file; then | |
671 | srcdir=.. | |
672 | fi | |
673 | else | |
674 | ac_srcdir_defaulted=no | |
675 | fi | |
676 | if test ! -r $srcdir/$ac_unique_file; then | |
677 | if test "$ac_srcdir_defaulted" = yes; then | |
678 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 | |
679 | { (exit 1); exit 1; }; } | |
680 | else | |
681 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | |
682 | { (exit 1); exit 1; }; } | |
683 | fi | |
684 | fi | |
685 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` | |
686 | ac_env_build_alias_set=${build_alias+set} | |
687 | ac_env_build_alias_value=$build_alias | |
688 | ac_cv_env_build_alias_set=${build_alias+set} | |
689 | ac_cv_env_build_alias_value=$build_alias | |
690 | ac_env_host_alias_set=${host_alias+set} | |
691 | ac_env_host_alias_value=$host_alias | |
692 | ac_cv_env_host_alias_set=${host_alias+set} | |
693 | ac_cv_env_host_alias_value=$host_alias | |
694 | ac_env_target_alias_set=${target_alias+set} | |
695 | ac_env_target_alias_value=$target_alias | |
696 | ac_cv_env_target_alias_set=${target_alias+set} | |
697 | ac_cv_env_target_alias_value=$target_alias | |
698 | ac_env_CC_set=${CC+set} | |
699 | ac_env_CC_value=$CC | |
700 | ac_cv_env_CC_set=${CC+set} | |
701 | ac_cv_env_CC_value=$CC | |
702 | ac_env_CFLAGS_set=${CFLAGS+set} | |
703 | ac_env_CFLAGS_value=$CFLAGS | |
704 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
705 | ac_cv_env_CFLAGS_value=$CFLAGS | |
706 | ac_env_LDFLAGS_set=${LDFLAGS+set} | |
707 | ac_env_LDFLAGS_value=$LDFLAGS | |
708 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
709 | ac_cv_env_LDFLAGS_value=$LDFLAGS | |
710 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
711 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
712 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
713 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
714 | ac_env_CPP_set=${CPP+set} | |
715 | ac_env_CPP_value=$CPP | |
716 | ac_cv_env_CPP_set=${CPP+set} | |
717 | ac_cv_env_CPP_value=$CPP | |
718 | ||
719 | # | |
720 | # Report the --help message. | |
721 | # | |
722 | if test "$ac_init_help" = "long"; then | |
723 | # Omit some internal or obsolete options to make the list less imposing. | |
724 | # This message is too long to be a string in the A/UX 3.1 sh. | |
725 | cat <<_ACEOF | |
726 | \`configure' configures this package to adapt to many kinds of systems. | |
727 | ||
728 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
729 | ||
730 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
731 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
732 | ||
733 | Defaults for the options are specified in brackets. | |
734 | ||
735 | Configuration: | |
736 | -h, --help display this help and exit | |
737 | --help=short display options specific to this package | |
738 | --help=recursive display the short help of all the included packages | |
739 | -V, --version display version information and exit | |
740 | -q, --quiet, --silent do not print \`checking...' messages | |
741 | --cache-file=FILE cache test results in FILE [disabled] | |
742 | -C, --config-cache alias for \`--cache-file=config.cache' | |
743 | -n, --no-create do not create output files | |
744 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
745 | ||
746 | _ACEOF | |
747 | ||
748 | cat <<_ACEOF | |
749 | Installation directories: | |
750 | --prefix=PREFIX install architecture-independent files in PREFIX | |
751 | [$ac_default_prefix] | |
752 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
753 | [PREFIX] | |
754 | ||
755 | By default, \`make install' will install all the files in | |
756 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
757 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
758 | for instance \`--prefix=\$HOME'. | |
759 | ||
760 | For better control, use the options below. | |
761 | ||
762 | Fine tuning of the installation directories: | |
763 | --bindir=DIR user executables [EPREFIX/bin] | |
764 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
765 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
766 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
767 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
768 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
769 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
770 | --libdir=DIR object code libraries [EPREFIX/lib] | |
771 | --includedir=DIR C header files [PREFIX/include] | |
772 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
773 | --infodir=DIR info documentation [PREFIX/info] | |
774 | --mandir=DIR man documentation [PREFIX/man] | |
775 | _ACEOF | |
776 | ||
777 | cat <<\_ACEOF | |
778 | ||
779 | Program names: | |
780 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
781 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
782 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
783 | ||
784 | System types: | |
785 | --build=BUILD configure for building on BUILD [guessed] | |
786 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
787 | _ACEOF | |
788 | fi | |
789 | ||
790 | if test -n "$ac_init_help"; then | |
791 | ||
792 | cat <<\_ACEOF | |
793 | ||
794 | Optional Features: | |
795 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
796 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
797 | --enable-maintainer-mode enable make rules and dependencies not useful | |
798 | (and sometimes confusing) to the casual installer | |
799 | --disable-dependency-tracking Speeds up one-time builds | |
800 | --enable-dependency-tracking Do not reject slow dependency extractors | |
801 | ||
802 | Some influential environment variables: | |
803 | CC C compiler command | |
804 | CFLAGS C compiler flags | |
805 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
806 | nonstandard directory <lib dir> | |
807 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
808 | headers in a nonstandard directory <include dir> | |
809 | CPP C preprocessor | |
810 | ||
811 | Use these variables to override the choices made by `configure' or to help | |
812 | it to find libraries and programs with nonstandard names/locations. | |
813 | ||
814 | _ACEOF | |
815 | fi | |
816 | ||
817 | if test "$ac_init_help" = "recursive"; then | |
818 | # If there are subdirs, report their specific --help. | |
819 | ac_popdir=`pwd` | |
820 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
821 | test -d $ac_dir || continue | |
822 | ac_builddir=. | |
823 | ||
824 | if test "$ac_dir" != .; then | |
825 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
826 | # A "../" for each directory in $ac_dir_suffix. | |
827 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
828 | else | |
829 | ac_dir_suffix= ac_top_builddir= | |
830 | fi | |
831 | ||
832 | case $srcdir in | |
833 | .) # No --srcdir option. We are building in place. | |
834 | ac_srcdir=. | |
835 | if test -z "$ac_top_builddir"; then | |
836 | ac_top_srcdir=. | |
837 | else | |
838 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
839 | fi ;; | |
840 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
841 | ac_srcdir=$srcdir$ac_dir_suffix; | |
842 | ac_top_srcdir=$srcdir ;; | |
843 | *) # Relative path. | |
844 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
845 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
846 | esac | |
847 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be | |
848 | # absolute. | |
849 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | |
850 | ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd` | |
851 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` | |
852 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | |
853 | ||
854 | cd $ac_dir | |
855 | # Check for guested configure; otherwise get Cygnus style configure. | |
856 | if test -f $ac_srcdir/configure.gnu; then | |
857 | echo | |
858 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
859 | elif test -f $ac_srcdir/configure; then | |
860 | echo | |
861 | $SHELL $ac_srcdir/configure --help=recursive | |
862 | elif test -f $ac_srcdir/configure.ac || | |
863 | test -f $ac_srcdir/configure.in; then | |
864 | echo | |
865 | $ac_configure --help | |
866 | else | |
867 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
868 | fi | |
869 | cd $ac_popdir | |
870 | done | |
871 | fi | |
872 | ||
873 | test -n "$ac_init_help" && exit 0 | |
874 | if $ac_init_version; then | |
875 | cat <<\_ACEOF | |
876 | ||
877 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 | |
878 | Free Software Foundation, Inc. | |
879 | This configure script is free software; the Free Software Foundation | |
880 | gives unlimited permission to copy, distribute and modify it. | |
881 | _ACEOF | |
882 | exit 0 | |
883 | fi | |
884 | exec 5>config.log | |
885 | cat >&5 <<_ACEOF | |
886 | This file contains any messages produced by compilers while | |
887 | running configure, to aid debugging if configure makes a mistake. | |
888 | ||
889 | It was created by $as_me, which was | |
890 | generated by GNU Autoconf 2.53. Invocation command line was | |
891 | ||
892 | $ $0 $@ | |
893 | ||
894 | _ACEOF | |
895 | { | |
896 | cat <<_ASUNAME | |
897 | ## --------- ## | |
898 | ## Platform. ## | |
899 | ## --------- ## | |
900 | ||
901 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
902 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
903 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
904 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
905 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
906 | ||
907 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
908 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
909 | ||
910 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
911 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
912 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
913 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
914 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
915 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
916 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
917 | ||
918 | _ASUNAME | |
919 | ||
920 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
921 | for as_dir in $PATH | |
922 | do | |
923 | IFS=$as_save_IFS | |
924 | test -z "$as_dir" && as_dir=. | |
925 | echo "PATH: $as_dir" | |
926 | done | |
927 | ||
928 | } >&5 | |
929 | ||
930 | cat >&5 <<_ACEOF | |
931 | ||
932 | ||
933 | ## ----------- ## | |
934 | ## Core tests. ## | |
935 | ## ----------- ## | |
936 | ||
937 | _ACEOF | |
938 | ||
939 | ||
940 | # Keep a trace of the command line. | |
941 | # Strip out --no-create and --no-recursion so they do not pile up. | |
942 | # Also quote any args containing shell meta-characters. | |
943 | ac_configure_args= | |
944 | ac_sep= | |
945 | for ac_arg | |
946 | do | |
947 | case $ac_arg in | |
948 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
949 | | --no-cr | --no-c | -n ) continue ;; | |
950 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
951 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
952 | continue ;; | |
953 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
954 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
955 | esac | |
956 | case " $ac_configure_args " in | |
957 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
958 | *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
959 | ac_sep=" " ;; | |
960 | esac | |
961 | # Get rid of the leading space. | |
962 | done | |
963 | ||
964 | # When interrupted or exit'd, cleanup temporary files, and complete | |
965 | # config.log. We remove comments because anyway the quotes in there | |
966 | # would cause problems or look ugly. | |
967 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
968 | # such as our DU 5.0 friend, will then `close' the trap. | |
969 | trap 'exit_status=$? | |
970 | # Save into config.log some information that might help in debugging. | |
971 | { | |
972 | echo | |
973 | cat <<\_ASBOX | |
974 | ## ---------------- ## | |
975 | ## Cache variables. ## | |
976 | ## ---------------- ## | |
977 | _ASBOX | |
978 | echo | |
979 | # The following way of writing the cache mishandles newlines in values, | |
980 | { | |
981 | (set) 2>&1 | | |
982 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
983 | *ac_space=\ *) | |
984 | sed -n \ | |
985 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | |
986 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
987 | ;; | |
988 | *) | |
989 | sed -n \ | |
990 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
991 | ;; | |
992 | esac; | |
993 | } | |
994 | echo | |
995 | if test -s confdefs.h; then | |
996 | cat <<\_ASBOX | |
997 | ## ----------- ## | |
998 | ## confdefs.h. ## | |
999 | ## ----------- ## | |
1000 | _ASBOX | |
1001 | echo | |
1002 | sed "/^$/d" confdefs.h | |
1003 | echo | |
1004 | fi | |
1005 | test "$ac_signal" != 0 && | |
1006 | echo "$as_me: caught signal $ac_signal" | |
1007 | echo "$as_me: exit $exit_status" | |
1008 | } >&5 | |
1009 | rm -f core core.* *.core && | |
1010 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && | |
1011 | exit $exit_status | |
1012 | ' 0 | |
1013 | for ac_signal in 1 2 13 15; do | |
1014 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1015 | done | |
1016 | ac_signal=0 | |
1017 | ||
1018 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1019 | rm -rf conftest* confdefs.h | |
1020 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1021 | echo >confdefs.h | |
1022 | ||
1023 | # Predefined preprocessor variables. | |
1024 | ||
1025 | cat >>confdefs.h <<_ACEOF | |
1026 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1027 | _ACEOF | |
1028 | ||
1029 | ||
1030 | cat >>confdefs.h <<_ACEOF | |
1031 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1032 | _ACEOF | |
1033 | ||
1034 | ||
1035 | cat >>confdefs.h <<_ACEOF | |
1036 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1037 | _ACEOF | |
1038 | ||
1039 | ||
1040 | cat >>confdefs.h <<_ACEOF | |
1041 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1042 | _ACEOF | |
1043 | ||
1044 | ||
1045 | cat >>confdefs.h <<_ACEOF | |
1046 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1047 | _ACEOF | |
1048 | ||
1049 | ||
1050 | # Let the site file select an alternate cache file if it wants to. | |
1051 | # Prefer explicitly selected file to automatically selected ones. | |
1052 | if test -z "$CONFIG_SITE"; then | |
1053 | if test "x$prefix" != xNONE; then | |
1054 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1055 | else | |
1056 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1057 | fi | |
1058 | fi | |
1059 | for ac_site_file in $CONFIG_SITE; do | |
1060 | if test -r "$ac_site_file"; then | |
1061 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1062 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1063 | sed 's/^/| /' "$ac_site_file" >&5 | |
1064 | . "$ac_site_file" | |
1065 | fi | |
1066 | done | |
1067 | ||
1068 | if test -r "$cache_file"; then | |
1069 | # Some versions of bash will fail to source /dev/null (special | |
1070 | # files actually), so we avoid doing that. | |
1071 | if test -f "$cache_file"; then | |
1072 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1073 | echo "$as_me: loading cache $cache_file" >&6;} | |
1074 | case $cache_file in | |
1075 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1076 | *) . ./$cache_file;; | |
1077 | esac | |
1078 | fi | |
1079 | else | |
1080 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1081 | echo "$as_me: creating cache $cache_file" >&6;} | |
1082 | >$cache_file | |
1083 | fi | |
1084 | ||
1085 | # Check that the precious variables saved in the cache have kept the same | |
1086 | # value. | |
1087 | ac_cache_corrupted=false | |
1088 | for ac_var in `(set) 2>&1 | | |
1089 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
1090 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
1091 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1092 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1093 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1094 | case $ac_old_set,$ac_new_set in | |
1095 | set,) | |
1096 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1097 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1098 | ac_cache_corrupted=: ;; | |
1099 | ,set) | |
1100 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1101 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1102 | ac_cache_corrupted=: ;; | |
1103 | ,);; | |
1104 | *) | |
1105 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
1106 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1107 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1108 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1109 | echo "$as_me: former value: $ac_old_val" >&2;} | |
1110 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1111 | echo "$as_me: current value: $ac_new_val" >&2;} | |
1112 | ac_cache_corrupted=: | |
1113 | fi;; | |
1114 | esac | |
1115 | # Pass precious variables to config.status. | |
1116 | if test "$ac_new_set" = set; then | |
1117 | case $ac_new_val in | |
1118 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1119 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1120 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1121 | esac | |
1122 | case " $ac_configure_args " in | |
1123 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1124 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1125 | esac | |
1126 | fi | |
1127 | done | |
1128 | if $ac_cache_corrupted; then | |
1129 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1130 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1131 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1132 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1133 | { (exit 1); exit 1; }; } | |
1134 | fi | |
1135 | ||
1136 | ac_ext=c | |
1137 | ac_cpp='$CPP $CPPFLAGS' | |
1138 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1139 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1140 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1141 | ||
1142 | ||
1143 | ||
1144 | ||
1145 | ||
1146 | ||
1147 | ||
1148 | ||
1149 | ||
1150 | ||
1151 | ||
1152 | ||
1153 | ||
1154 | ||
1155 | ||
1156 | ||
1157 | ||
1158 | ||
1159 | ||
1160 | ac_aux_dir= | |
1161 | for ac_dir in ../cfgaux $srcdir/../cfgaux; do | |
1162 | if test -f $ac_dir/install-sh; then | |
1163 | ac_aux_dir=$ac_dir | |
1164 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1165 | break | |
1166 | elif test -f $ac_dir/install.sh; then | |
1167 | ac_aux_dir=$ac_dir | |
1168 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1169 | break | |
1170 | elif test -f $ac_dir/shtool; then | |
1171 | ac_aux_dir=$ac_dir | |
1172 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1173 | break | |
1174 | fi | |
1175 | done | |
1176 | if test -z "$ac_aux_dir"; then | |
1177 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ../cfgaux $srcdir/../cfgaux" >&5 | |
1178 | echo "$as_me: error: cannot find install-sh or install.sh in ../cfgaux $srcdir/../cfgaux" >&2;} | |
1179 | { (exit 1); exit 1; }; } | |
1180 | fi | |
1181 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1182 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1183 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1184 | ||
1185 | am__api_version="1.6" | |
1186 | # Find a good install program. We prefer a C program (faster), | |
1187 | # so one script is as good as another. But avoid the broken or | |
1188 | # incompatible versions: | |
1189 | # SysV /etc/install, /usr/sbin/install | |
1190 | # SunOS /usr/etc/install | |
1191 | # IRIX /sbin/install | |
1192 | # AIX /bin/install | |
1193 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
1194 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
1195 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
1196 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
1197 | # ./install, which can be erroneously created by make from ./install.sh. | |
1198 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
1199 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
1200 | if test -z "$INSTALL"; then | |
1201 | if test "${ac_cv_path_install+set}" = set; then | |
1202 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1203 | else | |
1204 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1205 | for as_dir in $PATH | |
1206 | do | |
1207 | IFS=$as_save_IFS | |
1208 | test -z "$as_dir" && as_dir=. | |
1209 | # Account for people who put trailing slashes in PATH elements. | |
1210 | case $as_dir/ in | |
1211 | ./ | .// | /cC/* | \ | |
1212 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
1213 | /usr/ucb/* ) ;; | |
1214 | *) | |
1215 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
1216 | # Don't use installbsd from OSF since it installs stuff as root | |
1217 | # by default. | |
1218 | for ac_prog in ginstall scoinst install; do | |
1219 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1220 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
1221 | if test $ac_prog = install && | |
1222 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
1223 | # AIX install. It has an incompatible calling convention. | |
1224 | : | |
1225 | elif test $ac_prog = install && | |
1226 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
1227 | # program-specific install script used by HP pwplus--don't use. | |
1228 | : | |
1229 | else | |
1230 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
1231 | break 3 | |
1232 | fi | |
1233 | fi | |
1234 | done | |
1235 | done | |
1236 | ;; | |
1237 | esac | |
1238 | done | |
1239 | ||
1240 | ||
1241 | fi | |
1242 | if test "${ac_cv_path_install+set}" = set; then | |
1243 | INSTALL=$ac_cv_path_install | |
1244 | else | |
1245 | # As a last resort, use the slow shell script. We don't cache a | |
1246 | # path for INSTALL within a source directory, because that will | |
1247 | # break other packages using the cache if that directory is | |
1248 | # removed, or if the path is relative. | |
1249 | INSTALL=$ac_install_sh | |
1250 | fi | |
1251 | fi | |
1252 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
1253 | echo "${ECHO_T}$INSTALL" >&6 | |
1254 | ||
1255 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
1256 | # It thinks the first close brace ends the variable substitution. | |
1257 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
1258 | ||
1259 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
1260 | ||
1261 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
1262 | ||
1263 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 | |
1264 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 | |
1265 | # Just in case | |
1266 | sleep 1 | |
1267 | echo timestamp > conftest.file | |
1268 | # Do `set' in a subshell so we don't clobber the current shell's | |
1269 | # arguments. Must try -L first in case configure is actually a | |
1270 | # symlink; some systems play weird games with the mod time of symlinks | |
1271 | # (eg FreeBSD returns the mod time of the symlink's containing | |
1272 | # directory). | |
1273 | if ( | |
1274 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` | |
1275 | if test "$*" = "X"; then | |
1276 | # -L didn't work. | |
1277 | set X `ls -t $srcdir/configure conftest.file` | |
1278 | fi | |
1279 | rm -f conftest.file | |
1280 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
1281 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
1282 | ||
1283 | # If neither matched, then we have a broken ls. This can happen | |
1284 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
1285 | # broken ls alias from the environment. This has actually | |
1286 | # happened. Such a system could not be considered "sane". | |
1287 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken | |
1288 | alias in your environment" >&5 | |
1289 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken | |
1290 | alias in your environment" >&2;} | |
1291 | { (exit 1); exit 1; }; } | |
1292 | fi | |
1293 | ||
1294 | test "$2" = conftest.file | |
1295 | ) | |
1296 | then | |
1297 | # Ok. | |
1298 | : | |
1299 | else | |
1300 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! | |
1301 | Check your system clock" >&5 | |
1302 | echo "$as_me: error: newly created file is older than distributed files! | |
1303 | Check your system clock" >&2;} | |
1304 | { (exit 1); exit 1; }; } | |
1305 | fi | |
1306 | echo "$as_me:$LINENO: result: yes" >&5 | |
1307 | echo "${ECHO_T}yes" >&6 | |
1308 | test "$program_prefix" != NONE && | |
1309 | program_transform_name="s,^,$program_prefix,;$program_transform_name" | |
1310 | # Use a double $ so make ignores it. | |
1311 | test "$program_suffix" != NONE && | |
1312 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" | |
1313 | # Double any \ or $. echo might interpret backslashes. | |
1314 | # By default was `s,x,x', remove it if useless. | |
1315 | cat <<\_ACEOF >conftest.sed | |
1316 | s/[\\$]/&&/g;s/;s,x,x,$// | |
1317 | _ACEOF | |
1318 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
1319 | rm conftest.sed | |
1320 | ||
1321 | ||
1322 | # expand $ac_aux_dir to an absolute path | |
1323 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
1324 | ||
1325 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" | |
1326 | # Use eval to expand $SHELL | |
1327 | if eval "$MISSING --run true"; then | |
1328 | am_missing_run="$MISSING --run " | |
1329 | else | |
1330 | am_missing_run= | |
1331 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 | |
1332 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
1333 | fi | |
1334 | ||
1335 | for ac_prog in gawk mawk nawk awk | |
1336 | do | |
1337 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1338 | set dummy $ac_prog; ac_word=$2 | |
1339 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1340 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1341 | if test "${ac_cv_prog_AWK+set}" = set; then | |
1342 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1343 | else | |
1344 | if test -n "$AWK"; then | |
1345 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
1346 | else | |
1347 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1348 | for as_dir in $PATH | |
1349 | do | |
1350 | IFS=$as_save_IFS | |
1351 | test -z "$as_dir" && as_dir=. | |
1352 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1353 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1354 | ac_cv_prog_AWK="$ac_prog" | |
1355 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1356 | break 2 | |
1357 | fi | |
1358 | done | |
1359 | done | |
1360 | ||
1361 | fi | |
1362 | fi | |
1363 | AWK=$ac_cv_prog_AWK | |
1364 | if test -n "$AWK"; then | |
1365 | echo "$as_me:$LINENO: result: $AWK" >&5 | |
1366 | echo "${ECHO_T}$AWK" >&6 | |
1367 | else | |
1368 | echo "$as_me:$LINENO: result: no" >&5 | |
1369 | echo "${ECHO_T}no" >&6 | |
1370 | fi | |
1371 | ||
1372 | test -n "$AWK" && break | |
1373 | done | |
1374 | ||
1375 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5 | |
1376 | echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6 | |
1377 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` | |
1378 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
1379 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1380 | else | |
1381 | cat >conftest.make <<\_ACEOF | |
1382 | all: | |
1383 | @echo 'ac_maketemp="${MAKE}"' | |
1384 | _ACEOF | |
1385 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
1386 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
1387 | if test -n "$ac_maketemp"; then | |
1388 | eval ac_cv_prog_make_${ac_make}_set=yes | |
1389 | else | |
1390 | eval ac_cv_prog_make_${ac_make}_set=no | |
1391 | fi | |
1392 | rm -f conftest.make | |
1393 | fi | |
1394 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
1395 | echo "$as_me:$LINENO: result: yes" >&5 | |
1396 | echo "${ECHO_T}yes" >&6 | |
1397 | SET_MAKE= | |
1398 | else | |
1399 | echo "$as_me:$LINENO: result: no" >&5 | |
1400 | echo "${ECHO_T}no" >&6 | |
1401 | SET_MAKE="MAKE=${MAKE-make}" | |
1402 | fi | |
1403 | ||
1404 | # test to see if srcdir already configured | |
1405 | if test "`cd $srcdir && pwd`" != "`pwd`" && | |
1406 | test -f $srcdir/config.status; then | |
1407 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 | |
1408 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} | |
1409 | { (exit 1); exit 1; }; } | |
1410 | fi | |
1411 | ||
1412 | # Define the identity of the package. | |
1413 | PACKAGE=libbz2 | |
1414 | VERSION=0.0 | |
1415 | ||
1416 | ||
1417 | cat >>confdefs.h <<_ACEOF | |
1418 | #define PACKAGE "$PACKAGE" | |
1419 | _ACEOF | |
1420 | ||
1421 | ||
1422 | cat >>confdefs.h <<_ACEOF | |
1423 | #define VERSION "$VERSION" | |
1424 | _ACEOF | |
1425 | ||
1426 | # Some tools Automake needs. | |
1427 | ||
1428 | ACLOCAL=${ACLOCAL-"${am_missing_run}"aclocal-${am__api_version}""} | |
1429 | ||
1430 | ||
1431 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
1432 | ||
1433 | ||
1434 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}"automake-${am__api_version}""} | |
1435 | ||
1436 | ||
1437 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
1438 | ||
1439 | ||
1440 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
1441 | ||
1442 | ||
1443 | AMTAR=${AMTAR-"${am_missing_run}tar"} | |
1444 | ||
1445 | install_sh=${install_sh-"$am_aux_dir/install-sh"} | |
1446 | ||
1447 | # Installed binaries are usually stripped using `strip' when the user | |
1448 | # run `make install-strip'. However `strip' might not be the right | |
1449 | # tool to use in cross-compilation environments, therefore Automake | |
1450 | # will honor the `STRIP' environment variable to overrule this program. | |
1451 | if test "$cross_compiling" != no; then | |
1452 | if test -n "$ac_tool_prefix"; then | |
1453 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
1454 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
1455 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1456 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1457 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
1458 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1459 | else | |
1460 | if test -n "$STRIP"; then | |
1461 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
1462 | else | |
1463 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1464 | for as_dir in $PATH | |
1465 | do | |
1466 | IFS=$as_save_IFS | |
1467 | test -z "$as_dir" && as_dir=. | |
1468 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1469 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1470 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
1471 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1472 | break 2 | |
1473 | fi | |
1474 | done | |
1475 | done | |
1476 | ||
1477 | fi | |
1478 | fi | |
1479 | STRIP=$ac_cv_prog_STRIP | |
1480 | if test -n "$STRIP"; then | |
1481 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
1482 | echo "${ECHO_T}$STRIP" >&6 | |
1483 | else | |
1484 | echo "$as_me:$LINENO: result: no" >&5 | |
1485 | echo "${ECHO_T}no" >&6 | |
1486 | fi | |
1487 | ||
1488 | fi | |
1489 | if test -z "$ac_cv_prog_STRIP"; then | |
1490 | ac_ct_STRIP=$STRIP | |
1491 | # Extract the first word of "strip", so it can be a program name with args. | |
1492 | set dummy strip; ac_word=$2 | |
1493 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1494 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1495 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
1496 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1497 | else | |
1498 | if test -n "$ac_ct_STRIP"; then | |
1499 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
1500 | else | |
1501 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1502 | for as_dir in $PATH | |
1503 | do | |
1504 | IFS=$as_save_IFS | |
1505 | test -z "$as_dir" && as_dir=. | |
1506 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1507 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1508 | ac_cv_prog_ac_ct_STRIP="strip" | |
1509 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1510 | break 2 | |
1511 | fi | |
1512 | done | |
1513 | done | |
1514 | ||
1515 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
1516 | fi | |
1517 | fi | |
1518 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
1519 | if test -n "$ac_ct_STRIP"; then | |
1520 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
1521 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
1522 | else | |
1523 | echo "$as_me:$LINENO: result: no" >&5 | |
1524 | echo "${ECHO_T}no" >&6 | |
1525 | fi | |
1526 | ||
1527 | STRIP=$ac_ct_STRIP | |
1528 | else | |
1529 | STRIP="$ac_cv_prog_STRIP" | |
1530 | fi | |
1531 | ||
1532 | fi | |
1533 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" | |
1534 | ||
1535 | # We need awk for the "check" target. The system "awk" is bad on | |
1536 | # some platforms. | |
1537 | ||
1538 | ||
1539 | ||
1540 | echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
1541 | echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 | |
1542 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. | |
1543 | if test "${enable_maintainer_mode+set}" = set; then | |
1544 | enableval="$enable_maintainer_mode" | |
1545 | USE_MAINTAINER_MODE=$enableval | |
1546 | else | |
1547 | USE_MAINTAINER_MODE=no | |
1548 | fi; | |
1549 | echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 | |
1550 | echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 | |
1551 | ||
1552 | ||
1553 | if test $USE_MAINTAINER_MODE = yes; then | |
1554 | MAINTAINER_MODE_TRUE= | |
1555 | MAINTAINER_MODE_FALSE='#' | |
1556 | else | |
1557 | MAINTAINER_MODE_TRUE='#' | |
1558 | MAINTAINER_MODE_FALSE= | |
1559 | fi | |
1560 | ||
1561 | MAINT=$MAINTAINER_MODE_TRUE | |
1562 | ||
1563 | ||
1564 | ||
1565 | CPPFLAGS=-U_WIN32 | |
1566 | # Make sure we can run config.sub. | |
1567 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
1568 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1569 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1570 | { (exit 1); exit 1; }; } | |
1571 | ||
1572 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1573 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1574 | if test "${ac_cv_build+set}" = set; then | |
1575 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1576 | else | |
1577 | ac_cv_build_alias=$build_alias | |
1578 | test -z "$ac_cv_build_alias" && | |
1579 | ac_cv_build_alias=`$ac_config_guess` | |
1580 | test -z "$ac_cv_build_alias" && | |
1581 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1582 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1583 | { (exit 1); exit 1; }; } | |
1584 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1585 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1586 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1587 | { (exit 1); exit 1; }; } | |
1588 | ||
1589 | fi | |
1590 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1591 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1592 | build=$ac_cv_build | |
1593 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1594 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1595 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1596 | ||
1597 | ||
1598 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1599 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1600 | if test "${ac_cv_host+set}" = set; then | |
1601 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1602 | else | |
1603 | ac_cv_host_alias=$host_alias | |
1604 | test -z "$ac_cv_host_alias" && | |
1605 | ac_cv_host_alias=$ac_cv_build_alias | |
1606 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1607 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1608 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1609 | { (exit 1); exit 1; }; } | |
1610 | ||
1611 | fi | |
1612 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1613 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1614 | host=$ac_cv_host | |
1615 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1616 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1617 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1618 | ||
1619 | ||
ef6bacff RC |
1620 | ac_ext=c |
1621 | ac_cpp='$CPP $CPPFLAGS' | |
1622 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1623 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1624 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1625 | if test -n "$ac_tool_prefix"; then | |
1626 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
1627 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
1628 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1629 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1630 | if test "${ac_cv_prog_CC+set}" = set; then | |
1631 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1632 | else | |
1633 | if test -n "$CC"; then | |
1634 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1635 | else | |
1636 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1637 | for as_dir in $PATH | |
1638 | do | |
1639 | IFS=$as_save_IFS | |
1640 | test -z "$as_dir" && as_dir=. | |
1641 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1642 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1643 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
1644 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1645 | break 2 | |
1646 | fi | |
1647 | done | |
1648 | done | |
1649 | ||
1650 | fi | |
1651 | fi | |
1652 | CC=$ac_cv_prog_CC | |
1653 | if test -n "$CC"; then | |
1654 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1655 | echo "${ECHO_T}$CC" >&6 | |
1656 | else | |
1657 | echo "$as_me:$LINENO: result: no" >&5 | |
1658 | echo "${ECHO_T}no" >&6 | |
1659 | fi | |
1660 | ||
1661 | fi | |
1662 | if test -z "$ac_cv_prog_CC"; then | |
1663 | ac_ct_CC=$CC | |
1664 | # Extract the first word of "gcc", so it can be a program name with args. | |
1665 | set dummy gcc; ac_word=$2 | |
1666 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1667 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1668 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1669 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1670 | else | |
1671 | if test -n "$ac_ct_CC"; then | |
1672 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1673 | else | |
1674 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1675 | for as_dir in $PATH | |
1676 | do | |
1677 | IFS=$as_save_IFS | |
1678 | test -z "$as_dir" && as_dir=. | |
1679 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1680 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1681 | ac_cv_prog_ac_ct_CC="gcc" | |
1682 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1683 | break 2 | |
1684 | fi | |
1685 | done | |
1686 | done | |
1687 | ||
1688 | fi | |
1689 | fi | |
1690 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1691 | if test -n "$ac_ct_CC"; then | |
1692 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1693 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1694 | else | |
1695 | echo "$as_me:$LINENO: result: no" >&5 | |
1696 | echo "${ECHO_T}no" >&6 | |
1697 | fi | |
1698 | ||
1699 | CC=$ac_ct_CC | |
1700 | else | |
1701 | CC="$ac_cv_prog_CC" | |
1702 | fi | |
1703 | ||
1704 | if test -z "$CC"; then | |
1705 | if test -n "$ac_tool_prefix"; then | |
1706 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
1707 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
1708 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1709 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1710 | if test "${ac_cv_prog_CC+set}" = set; then | |
1711 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1712 | else | |
1713 | if test -n "$CC"; then | |
1714 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1715 | else | |
1716 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1717 | for as_dir in $PATH | |
1718 | do | |
1719 | IFS=$as_save_IFS | |
1720 | test -z "$as_dir" && as_dir=. | |
1721 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1722 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1723 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
1724 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1725 | break 2 | |
1726 | fi | |
1727 | done | |
1728 | done | |
1729 | ||
1730 | fi | |
1731 | fi | |
1732 | CC=$ac_cv_prog_CC | |
1733 | if test -n "$CC"; then | |
1734 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1735 | echo "${ECHO_T}$CC" >&6 | |
1736 | else | |
1737 | echo "$as_me:$LINENO: result: no" >&5 | |
1738 | echo "${ECHO_T}no" >&6 | |
1739 | fi | |
1740 | ||
1741 | fi | |
1742 | if test -z "$ac_cv_prog_CC"; then | |
1743 | ac_ct_CC=$CC | |
1744 | # Extract the first word of "cc", so it can be a program name with args. | |
1745 | set dummy cc; ac_word=$2 | |
1746 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1747 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1748 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1749 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1750 | else | |
1751 | if test -n "$ac_ct_CC"; then | |
1752 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1753 | else | |
1754 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1755 | for as_dir in $PATH | |
1756 | do | |
1757 | IFS=$as_save_IFS | |
1758 | test -z "$as_dir" && as_dir=. | |
1759 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1760 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1761 | ac_cv_prog_ac_ct_CC="cc" | |
1762 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1763 | break 2 | |
1764 | fi | |
1765 | done | |
1766 | done | |
1767 | ||
1768 | fi | |
1769 | fi | |
1770 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1771 | if test -n "$ac_ct_CC"; then | |
1772 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1773 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1774 | else | |
1775 | echo "$as_me:$LINENO: result: no" >&5 | |
1776 | echo "${ECHO_T}no" >&6 | |
1777 | fi | |
1778 | ||
1779 | CC=$ac_ct_CC | |
1780 | else | |
1781 | CC="$ac_cv_prog_CC" | |
1782 | fi | |
1783 | ||
1784 | fi | |
1785 | if test -z "$CC"; then | |
1786 | # Extract the first word of "cc", so it can be a program name with args. | |
1787 | set dummy cc; ac_word=$2 | |
1788 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1789 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1790 | if test "${ac_cv_prog_CC+set}" = set; then | |
1791 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1792 | else | |
1793 | if test -n "$CC"; then | |
1794 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1795 | else | |
1796 | ac_prog_rejected=no | |
1797 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1798 | for as_dir in $PATH | |
1799 | do | |
1800 | IFS=$as_save_IFS | |
1801 | test -z "$as_dir" && as_dir=. | |
1802 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1803 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1804 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
1805 | ac_prog_rejected=yes | |
1806 | continue | |
1807 | fi | |
1808 | ac_cv_prog_CC="cc" | |
1809 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1810 | break 2 | |
1811 | fi | |
1812 | done | |
1813 | done | |
1814 | ||
1815 | if test $ac_prog_rejected = yes; then | |
1816 | # We found a bogon in the path, so make sure we never use it. | |
1817 | set dummy $ac_cv_prog_CC | |
1818 | shift | |
1819 | if test $# != 0; then | |
1820 | # We chose a different compiler from the bogus one. | |
1821 | # However, it has the same basename, so the bogon will be chosen | |
1822 | # first if we set CC to just the basename; use the full file name. | |
1823 | shift | |
1824 | set dummy "$as_dir/$ac_word" ${1+"$@"} | |
1825 | shift | |
1826 | ac_cv_prog_CC="$@" | |
1827 | fi | |
1828 | fi | |
1829 | fi | |
1830 | fi | |
1831 | CC=$ac_cv_prog_CC | |
1832 | if test -n "$CC"; then | |
1833 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1834 | echo "${ECHO_T}$CC" >&6 | |
1835 | else | |
1836 | echo "$as_me:$LINENO: result: no" >&5 | |
1837 | echo "${ECHO_T}no" >&6 | |
1838 | fi | |
1839 | ||
1840 | fi | |
1841 | if test -z "$CC"; then | |
1842 | if test -n "$ac_tool_prefix"; then | |
1843 | for ac_prog in cl | |
1844 | do | |
1845 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
1846 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
1847 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1848 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1849 | if test "${ac_cv_prog_CC+set}" = set; then | |
1850 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1851 | else | |
1852 | if test -n "$CC"; then | |
1853 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1854 | else | |
1855 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1856 | for as_dir in $PATH | |
1857 | do | |
1858 | IFS=$as_save_IFS | |
1859 | test -z "$as_dir" && as_dir=. | |
1860 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1861 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1862 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
1863 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1864 | break 2 | |
1865 | fi | |
1866 | done | |
1867 | done | |
1868 | ||
1869 | fi | |
1870 | fi | |
1871 | CC=$ac_cv_prog_CC | |
1872 | if test -n "$CC"; then | |
1873 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1874 | echo "${ECHO_T}$CC" >&6 | |
1875 | else | |
1876 | echo "$as_me:$LINENO: result: no" >&5 | |
1877 | echo "${ECHO_T}no" >&6 | |
1878 | fi | |
1879 | ||
1880 | test -n "$CC" && break | |
1881 | done | |
1882 | fi | |
1883 | if test -z "$CC"; then | |
1884 | ac_ct_CC=$CC | |
1885 | for ac_prog in cl | |
1886 | do | |
1887 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1888 | set dummy $ac_prog; ac_word=$2 | |
1889 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1890 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1891 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1892 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1893 | else | |
1894 | if test -n "$ac_ct_CC"; then | |
1895 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1896 | else | |
1897 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1898 | for as_dir in $PATH | |
1899 | do | |
1900 | IFS=$as_save_IFS | |
1901 | test -z "$as_dir" && as_dir=. | |
1902 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1903 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1904 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
1905 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1906 | break 2 | |
1907 | fi | |
1908 | done | |
1909 | done | |
1910 | ||
1911 | fi | |
1912 | fi | |
1913 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1914 | if test -n "$ac_ct_CC"; then | |
1915 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1916 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1917 | else | |
1918 | echo "$as_me:$LINENO: result: no" >&5 | |
1919 | echo "${ECHO_T}no" >&6 | |
1920 | fi | |
1921 | ||
1922 | test -n "$ac_ct_CC" && break | |
1923 | done | |
1924 | ||
1925 | CC=$ac_ct_CC | |
1926 | fi | |
1927 | ||
1928 | fi | |
1929 | ||
1930 | ||
1931 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5 | |
1932 | echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;} | |
1933 | { (exit 1); exit 1; }; } | |
1934 | ||
1935 | # Provide some information about the compiler. | |
1936 | echo "$as_me:$LINENO:" \ | |
1937 | "checking for C compiler version" >&5 | |
1938 | ac_compiler=`set X $ac_compile; echo $2` | |
1939 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
1940 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
1941 | ac_status=$? | |
1942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1943 | (exit $ac_status); } | |
1944 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
1945 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
1946 | ac_status=$? | |
1947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1948 | (exit $ac_status); } | |
1949 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
1950 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
1951 | ac_status=$? | |
1952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1953 | (exit $ac_status); } | |
1954 | ||
1955 | cat >conftest.$ac_ext <<_ACEOF | |
1956 | #line $LINENO "configure" | |
1957 | #include "confdefs.h" | |
1958 | ||
1959 | #ifdef F77_DUMMY_MAIN | |
1960 | # ifdef __cplusplus | |
1961 | extern "C" | |
1962 | # endif | |
1963 | int F77_DUMMY_MAIN() { return 1; } | |
1964 | #endif | |
1965 | int | |
1966 | main () | |
1967 | { | |
1968 | ||
1969 | ; | |
1970 | return 0; | |
1971 | } | |
1972 | _ACEOF | |
1973 | ac_clean_files_save=$ac_clean_files | |
1974 | ac_clean_files="$ac_clean_files a.out a.exe" | |
1975 | # Try to create an executable without -o first, disregard a.out. | |
1976 | # It will help us diagnose broken compilers, and finding out an intuition | |
1977 | # of exeext. | |
1978 | echo "$as_me:$LINENO: checking for C compiler default output" >&5 | |
1979 | echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 | |
1980 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
1981 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
1982 | (eval $ac_link_default) 2>&5 | |
1983 | ac_status=$? | |
1984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1985 | (exit $ac_status); }; then | |
1986 | # Find the output, starting from the most likely. This scheme is | |
1987 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
1988 | # resort. | |
1989 | ||
1990 | # Be careful to initialize this variable, since it used to be cached. | |
1991 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
1992 | ac_cv_exeext= | |
1993 | for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null; | |
1994 | ls a.out conftest 2>/dev/null; | |
1995 | ls a.* conftest.* 2>/dev/null`; do | |
1996 | case $ac_file in | |
1997 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;; | |
1998 | a.out ) # We found the default executable, but exeext='' is most | |
1999 | # certainly right. | |
2000 | break;; | |
2001 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2002 | # FIXME: I believe we export ac_cv_exeext for Libtool --akim. | |
2003 | export ac_cv_exeext | |
2004 | break;; | |
2005 | * ) break;; | |
2006 | esac | |
2007 | done | |
2008 | else | |
2009 | echo "$as_me: failed program was:" >&5 | |
2010 | cat conftest.$ac_ext >&5 | |
2011 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5 | |
2012 | echo "$as_me: error: C compiler cannot create executables" >&2;} | |
2013 | { (exit 77); exit 77; }; } | |
2014 | fi | |
2015 | ||
2016 | ac_exeext=$ac_cv_exeext | |
2017 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
2018 | echo "${ECHO_T}$ac_file" >&6 | |
2019 | ||
2020 | # Check the compiler produces executables we can run. If not, either | |
2021 | # the compiler is broken, or we cross compile. | |
2022 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
2023 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
2024 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
2025 | # If not cross compiling, check that we can run a simple program. | |
2026 | if test "$cross_compiling" != yes; then | |
2027 | if { ac_try='./$ac_file' | |
2028 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2029 | (eval $ac_try) 2>&5 | |
2030 | ac_status=$? | |
2031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2032 | (exit $ac_status); }; }; then | |
2033 | cross_compiling=no | |
2034 | else | |
2035 | if test "$cross_compiling" = maybe; then | |
2036 | cross_compiling=yes | |
2037 | else | |
2038 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
2039 | If you meant to cross compile, use \`--host'." >&5 | |
2040 | echo "$as_me: error: cannot run C compiled programs. | |
2041 | If you meant to cross compile, use \`--host'." >&2;} | |
2042 | { (exit 1); exit 1; }; } | |
2043 | fi | |
2044 | fi | |
2045 | fi | |
2046 | echo "$as_me:$LINENO: result: yes" >&5 | |
2047 | echo "${ECHO_T}yes" >&6 | |
2048 | ||
2049 | rm -f a.out a.exe conftest$ac_cv_exeext | |
2050 | ac_clean_files=$ac_clean_files_save | |
2051 | # Check the compiler produces executables we can run. If not, either | |
2052 | # the compiler is broken, or we cross compile. | |
2053 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
2054 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
2055 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2056 | echo "${ECHO_T}$cross_compiling" >&6 | |
2057 | ||
2058 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
2059 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
2060 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2061 | (eval $ac_link) 2>&5 | |
2062 | ac_status=$? | |
2063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2064 | (exit $ac_status); }; then | |
2065 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2066 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2067 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2068 | # `rm'. | |
2069 | for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do | |
2070 | case $ac_file in | |
2071 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; | |
2072 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2073 | export ac_cv_exeext | |
2074 | break;; | |
2075 | * ) break;; | |
2076 | esac | |
2077 | done | |
2078 | else | |
2079 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5 | |
2080 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;} | |
2081 | { (exit 1); exit 1; }; } | |
2082 | fi | |
2083 | ||
2084 | rm -f conftest$ac_cv_exeext | |
2085 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
2086 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
2087 | ||
2088 | rm -f conftest.$ac_ext | |
2089 | EXEEXT=$ac_cv_exeext | |
2090 | ac_exeext=$EXEEXT | |
2091 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
2092 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
2093 | if test "${ac_cv_objext+set}" = set; then | |
2094 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2095 | else | |
2096 | cat >conftest.$ac_ext <<_ACEOF | |
2097 | #line $LINENO "configure" | |
2098 | #include "confdefs.h" | |
2099 | ||
2100 | #ifdef F77_DUMMY_MAIN | |
2101 | # ifdef __cplusplus | |
2102 | extern "C" | |
2103 | # endif | |
2104 | int F77_DUMMY_MAIN() { return 1; } | |
2105 | #endif | |
2106 | int | |
2107 | main () | |
2108 | { | |
2109 | ||
2110 | ; | |
2111 | return 0; | |
2112 | } | |
2113 | _ACEOF | |
2114 | rm -f conftest.o conftest.obj | |
2115 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2116 | (eval $ac_compile) 2>&5 | |
2117 | ac_status=$? | |
2118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2119 | (exit $ac_status); }; then | |
2120 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
2121 | case $ac_file in | |
2122 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;; | |
2123 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
2124 | break;; | |
2125 | esac | |
2126 | done | |
2127 | else | |
2128 | echo "$as_me: failed program was:" >&5 | |
2129 | cat conftest.$ac_ext >&5 | |
2130 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5 | |
2131 | echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;} | |
2132 | { (exit 1); exit 1; }; } | |
2133 | fi | |
2134 | ||
2135 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2136 | fi | |
2137 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
2138 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
2139 | OBJEXT=$ac_cv_objext | |
2140 | ac_objext=$OBJEXT | |
2141 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
2142 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
2143 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
2144 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2145 | else | |
2146 | cat >conftest.$ac_ext <<_ACEOF | |
2147 | #line $LINENO "configure" | |
2148 | #include "confdefs.h" | |
2149 | ||
2150 | #ifdef F77_DUMMY_MAIN | |
2151 | # ifdef __cplusplus | |
2152 | extern "C" | |
2153 | # endif | |
2154 | int F77_DUMMY_MAIN() { return 1; } | |
2155 | #endif | |
2156 | int | |
2157 | main () | |
2158 | { | |
2159 | #ifndef __GNUC__ | |
2160 | choke me | |
2161 | #endif | |
2162 | ||
2163 | ; | |
2164 | return 0; | |
2165 | } | |
2166 | _ACEOF | |
2167 | rm -f conftest.$ac_objext | |
2168 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2169 | (eval $ac_compile) 2>&5 | |
2170 | ac_status=$? | |
2171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2172 | (exit $ac_status); } && | |
2173 | { ac_try='test -s conftest.$ac_objext' | |
2174 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2175 | (eval $ac_try) 2>&5 | |
2176 | ac_status=$? | |
2177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2178 | (exit $ac_status); }; }; then | |
2179 | ac_compiler_gnu=yes | |
2180 | else | |
2181 | echo "$as_me: failed program was:" >&5 | |
2182 | cat conftest.$ac_ext >&5 | |
2183 | ac_compiler_gnu=no | |
2184 | fi | |
2185 | rm -f conftest.$ac_objext conftest.$ac_ext | |
2186 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
2187 | ||
2188 | fi | |
2189 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
2190 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
2191 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
2192 | ac_test_CFLAGS=${CFLAGS+set} | |
2193 | ac_save_CFLAGS=$CFLAGS | |
2194 | CFLAGS="-g" | |
2195 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
2196 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
2197 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
2198 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2199 | else | |
2200 | cat >conftest.$ac_ext <<_ACEOF | |
2201 | #line $LINENO "configure" | |
2202 | #include "confdefs.h" | |
2203 | ||
2204 | #ifdef F77_DUMMY_MAIN | |
2205 | # ifdef __cplusplus | |
2206 | extern "C" | |
2207 | # endif | |
2208 | int F77_DUMMY_MAIN() { return 1; } | |
2209 | #endif | |
2210 | int | |
2211 | main () | |
2212 | { | |
2213 | ||
2214 | ; | |
2215 | return 0; | |
2216 | } | |
2217 | _ACEOF | |
2218 | rm -f conftest.$ac_objext | |
2219 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2220 | (eval $ac_compile) 2>&5 | |
2221 | ac_status=$? | |
2222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2223 | (exit $ac_status); } && | |
2224 | { ac_try='test -s conftest.$ac_objext' | |
2225 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2226 | (eval $ac_try) 2>&5 | |
2227 | ac_status=$? | |
2228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2229 | (exit $ac_status); }; }; then | |
2230 | ac_cv_prog_cc_g=yes | |
2231 | else | |
2232 | echo "$as_me: failed program was:" >&5 | |
2233 | cat conftest.$ac_ext >&5 | |
2234 | ac_cv_prog_cc_g=no | |
2235 | fi | |
2236 | rm -f conftest.$ac_objext conftest.$ac_ext | |
2237 | fi | |
2238 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
2239 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
2240 | if test "$ac_test_CFLAGS" = set; then | |
2241 | CFLAGS=$ac_save_CFLAGS | |
2242 | elif test $ac_cv_prog_cc_g = yes; then | |
2243 | if test "$GCC" = yes; then | |
2244 | CFLAGS="-g -O2" | |
2245 | else | |
2246 | CFLAGS="-g" | |
2247 | fi | |
2248 | else | |
2249 | if test "$GCC" = yes; then | |
2250 | CFLAGS="-O2" | |
2251 | else | |
2252 | CFLAGS= | |
2253 | fi | |
2254 | fi | |
2255 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
2256 | # in C++ we need to declare it. In case someone uses the same compiler | |
2257 | # for both compiling C and C++ we need to have the C++ compiler decide | |
2258 | # the declaration of exit, since it's the most demanding environment. | |
2259 | cat >conftest.$ac_ext <<_ACEOF | |
2260 | #ifndef __cplusplus | |
2261 | choke me | |
2262 | #endif | |
2263 | _ACEOF | |
2264 | rm -f conftest.$ac_objext | |
2265 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2266 | (eval $ac_compile) 2>&5 | |
2267 | ac_status=$? | |
2268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2269 | (exit $ac_status); } && | |
2270 | { ac_try='test -s conftest.$ac_objext' | |
2271 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2272 | (eval $ac_try) 2>&5 | |
2273 | ac_status=$? | |
2274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2275 | (exit $ac_status); }; }; then | |
2276 | for ac_declaration in \ | |
2277 | ''\ | |
2278 | '#include <stdlib.h>' \ | |
2279 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
2280 | 'extern "C" void std::exit (int); using std::exit;' \ | |
2281 | 'extern "C" void exit (int) throw ();' \ | |
2282 | 'extern "C" void exit (int);' \ | |
2283 | 'void exit (int);' | |
2284 | do | |
2285 | cat >conftest.$ac_ext <<_ACEOF | |
2286 | #line $LINENO "configure" | |
2287 | #include "confdefs.h" | |
2288 | #include <stdlib.h> | |
2289 | $ac_declaration | |
2290 | #ifdef F77_DUMMY_MAIN | |
2291 | # ifdef __cplusplus | |
2292 | extern "C" | |
2293 | # endif | |
2294 | int F77_DUMMY_MAIN() { return 1; } | |
2295 | #endif | |
2296 | int | |
2297 | main () | |
2298 | { | |
2299 | exit (42); | |
2300 | ; | |
2301 | return 0; | |
2302 | } | |
2303 | _ACEOF | |
2304 | rm -f conftest.$ac_objext | |
2305 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2306 | (eval $ac_compile) 2>&5 | |
2307 | ac_status=$? | |
2308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2309 | (exit $ac_status); } && | |
2310 | { ac_try='test -s conftest.$ac_objext' | |
2311 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2312 | (eval $ac_try) 2>&5 | |
2313 | ac_status=$? | |
2314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2315 | (exit $ac_status); }; }; then | |
2316 | : | |
2317 | else | |
2318 | echo "$as_me: failed program was:" >&5 | |
2319 | cat conftest.$ac_ext >&5 | |
2320 | continue | |
2321 | fi | |
2322 | rm -f conftest.$ac_objext conftest.$ac_ext | |
2323 | cat >conftest.$ac_ext <<_ACEOF | |
2324 | #line $LINENO "configure" | |
2325 | #include "confdefs.h" | |
2326 | $ac_declaration | |
2327 | #ifdef F77_DUMMY_MAIN | |
2328 | # ifdef __cplusplus | |
2329 | extern "C" | |
2330 | # endif | |
2331 | int F77_DUMMY_MAIN() { return 1; } | |
2332 | #endif | |
2333 | int | |
2334 | main () | |
2335 | { | |
2336 | exit (42); | |
2337 | ; | |
2338 | return 0; | |
2339 | } | |
2340 | _ACEOF | |
2341 | rm -f conftest.$ac_objext | |
2342 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2343 | (eval $ac_compile) 2>&5 | |
2344 | ac_status=$? | |
2345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2346 | (exit $ac_status); } && | |
2347 | { ac_try='test -s conftest.$ac_objext' | |
2348 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2349 | (eval $ac_try) 2>&5 | |
2350 | ac_status=$? | |
2351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2352 | (exit $ac_status); }; }; then | |
2353 | break | |
2354 | else | |
2355 | echo "$as_me: failed program was:" >&5 | |
2356 | cat conftest.$ac_ext >&5 | |
2357 | fi | |
2358 | rm -f conftest.$ac_objext conftest.$ac_ext | |
2359 | done | |
2360 | rm -f conftest* | |
2361 | if test -n "$ac_declaration"; then | |
2362 | echo '#ifdef __cplusplus' >>confdefs.h | |
2363 | echo $ac_declaration >>confdefs.h | |
2364 | echo '#endif' >>confdefs.h | |
2365 | fi | |
2366 | ||
2367 | else | |
2368 | echo "$as_me: failed program was:" >&5 | |
2369 | cat conftest.$ac_ext >&5 | |
2370 | fi | |
2371 | rm -f conftest.$ac_objext conftest.$ac_ext | |
2372 | ac_ext=c | |
2373 | ac_cpp='$CPP $CPPFLAGS' | |
2374 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2375 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2376 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ba95a000 RC |
2377 | rm -f .deps 2>/dev/null |
2378 | mkdir .deps 2>/dev/null | |
2379 | if test -d .deps; then | |
2380 | DEPDIR=.deps | |
2381 | else | |
2382 | # MS-DOS does not allow filenames that begin with a dot. | |
2383 | DEPDIR=_deps | |
2384 | fi | |
2385 | rmdir .deps 2>/dev/null | |
2386 | ||
2387 | ||
2388 | ac_config_commands="$ac_config_commands depfiles" | |
2389 | ||
2390 | ||
2391 | am_make=${MAKE-make} | |
2392 | cat > confinc << 'END' | |
2393 | doit: | |
2394 | @echo done | |
2395 | END | |
2396 | # If we don't find an include directive, just comment out the code. | |
2397 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 | |
2398 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 | |
2399 | am__include="#" | |
2400 | am__quote= | |
2401 | _am_result=none | |
2402 | # First try GNU make style include. | |
2403 | echo "include confinc" > confmf | |
2404 | # We grep out `Entering directory' and `Leaving directory' | |
2405 | # messages which can occur if `w' ends up in MAKEFLAGS. | |
2406 | # In particular we don't look at `^make:' because GNU make might | |
2407 | # be invoked under some other name (usually "gmake"), in which | |
2408 | # case it prints its new name instead of `make'. | |
2409 | if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then | |
2410 | am__include=include | |
2411 | am__quote= | |
2412 | _am_result=GNU | |
2413 | fi | |
2414 | # Now try BSD make style include. | |
2415 | if test "$am__include" = "#"; then | |
2416 | echo '.include "confinc"' > confmf | |
2417 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then | |
2418 | am__include=.include | |
2419 | am__quote="\"" | |
2420 | _am_result=BSD | |
2421 | fi | |
2422 | fi | |
2423 | ||
2424 | ||
2425 | echo "$as_me:$LINENO: result: $_am_result" >&5 | |
2426 | echo "${ECHO_T}$_am_result" >&6 | |
2427 | rm -f confinc confmf | |
2428 | ||
2429 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. | |
2430 | if test "${enable_dependency_tracking+set}" = set; then | |
2431 | enableval="$enable_dependency_tracking" | |
2432 | ||
2433 | fi; | |
2434 | if test "x$enable_dependency_tracking" != xno; then | |
2435 | am_depcomp="$ac_aux_dir/depcomp" | |
2436 | AMDEPBACKSLASH='\' | |
2437 | fi | |
2438 | ||
2439 | ||
2440 | if test "x$enable_dependency_tracking" != xno; then | |
2441 | AMDEP_TRUE= | |
2442 | AMDEP_FALSE='#' | |
2443 | else | |
2444 | AMDEP_TRUE='#' | |
2445 | AMDEP_FALSE= | |
2446 | fi | |
2447 | ||
2448 | ||
2449 | ||
ef6bacff RC |
2450 | |
2451 | depcc="$CC" am_compiler_list= | |
2452 | ||
2453 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 | |
2454 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 | |
2455 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then | |
2456 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2457 | else | |
2458 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
2459 | # We make a subdir and do the tests there. Otherwise we can end up | |
2460 | # making bogus files that we don't know about and never remove. For | |
2461 | # instance it was reported that on HP-UX the gcc test will end up | |
2462 | # making a dummy file named `D' -- because `-MD' means `put the output | |
2463 | # in D'. | |
2464 | mkdir conftest.dir | |
2465 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
2466 | # using a relative directory. | |
2467 | cp "$am_depcomp" conftest.dir | |
2468 | cd conftest.dir | |
2469 | ||
2470 | am_cv_CC_dependencies_compiler_type=none | |
2471 | if test "$am_compiler_list" = ""; then | |
2472 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
2473 | fi | |
2474 | for depmode in $am_compiler_list; do | |
2475 | # We need to recreate these files for each test, as the compiler may | |
2476 | # overwrite some of them when testing with obscure command lines. | |
2477 | # This happens at least with the AIX C compiler. | |
2478 | echo '#include "conftest.h"' > conftest.c | |
2479 | echo 'int i;' > conftest.h | |
2480 | echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf | |
2481 | ||
2482 | case $depmode in | |
2483 | nosideeffect) | |
2484 | # after this tag, mechanisms are not by side-effect, so they'll | |
2485 | # only be used when explicitly requested | |
2486 | if test "x$enable_dependency_tracking" = xyes; then | |
2487 | continue | |
2488 | else | |
2489 | break | |
2490 | fi | |
2491 | ;; | |
2492 | none) break ;; | |
2493 | esac | |
2494 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
2495 | # mode. It turns out that the SunPro C++ compiler does not properly | |
2496 | # handle `-M -o', and we need to detect this. | |
2497 | if depmode=$depmode \ | |
2498 | source=conftest.c object=conftest.o \ | |
2499 | depfile=conftest.Po tmpdepfile=conftest.TPo \ | |
2500 | $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 && | |
2501 | grep conftest.h conftest.Po > /dev/null 2>&1 && | |
2502 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
2503 | am_cv_CC_dependencies_compiler_type=$depmode | |
2504 | break | |
2505 | fi | |
2506 | done | |
2507 | ||
2508 | cd .. | |
2509 | rm -rf conftest.dir | |
2510 | else | |
2511 | am_cv_CC_dependencies_compiler_type=none | |
2512 | fi | |
2513 | ||
2514 | fi | |
2515 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
2516 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 | |
2517 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
2518 | ||
2519 | ||
ba95a000 RC |
2520 | if test -n "$ac_tool_prefix"; then |
2521 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
2522 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
2523 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2524 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2525 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
2526 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2527 | else | |
2528 | if test -n "$RANLIB"; then | |
2529 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
2530 | else | |
2531 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2532 | for as_dir in $PATH | |
2533 | do | |
2534 | IFS=$as_save_IFS | |
2535 | test -z "$as_dir" && as_dir=. | |
2536 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2537 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2538 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
2539 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2540 | break 2 | |
2541 | fi | |
2542 | done | |
2543 | done | |
2544 | ||
2545 | fi | |
2546 | fi | |
2547 | RANLIB=$ac_cv_prog_RANLIB | |
2548 | if test -n "$RANLIB"; then | |
2549 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
2550 | echo "${ECHO_T}$RANLIB" >&6 | |
2551 | else | |
2552 | echo "$as_me:$LINENO: result: no" >&5 | |
2553 | echo "${ECHO_T}no" >&6 | |
2554 | fi | |
2555 | ||
2556 | fi | |
2557 | if test -z "$ac_cv_prog_RANLIB"; then | |
2558 | ac_ct_RANLIB=$RANLIB | |
2559 | # Extract the first word of "ranlib", so it can be a program name with args. | |
2560 | set dummy ranlib; ac_word=$2 | |
2561 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2562 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2563 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
2564 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2565 | else | |
2566 | if test -n "$ac_ct_RANLIB"; then | |
2567 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
2568 | else | |
2569 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2570 | for as_dir in $PATH | |
2571 | do | |
2572 | IFS=$as_save_IFS | |
2573 | test -z "$as_dir" && as_dir=. | |
2574 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2575 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2576 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
2577 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2578 | break 2 | |
2579 | fi | |
2580 | done | |
2581 | done | |
2582 | ||
2583 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
2584 | fi | |
2585 | fi | |
2586 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
2587 | if test -n "$ac_ct_RANLIB"; then | |
2588 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
2589 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
2590 | else | |
2591 | echo "$as_me:$LINENO: result: no" >&5 | |
2592 | echo "${ECHO_T}no" >&6 | |
2593 | fi | |
2594 | ||
2595 | RANLIB=$ac_ct_RANLIB | |
2596 | else | |
2597 | RANLIB="$ac_cv_prog_RANLIB" | |
2598 | fi | |
2599 | ||
ef6bacff RC |
2600 | |
2601 | ac_ext=c | |
2602 | ac_cpp='$CPP $CPPFLAGS' | |
2603 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2604 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2605 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2606 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
2607 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
2608 | # On Suns, sometimes $CPP names a directory. | |
2609 | if test -n "$CPP" && test -d "$CPP"; then | |
2610 | CPP= | |
2611 | fi | |
2612 | if test -z "$CPP"; then | |
2613 | if test "${ac_cv_prog_CPP+set}" = set; then | |
2614 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2615 | else | |
2616 | # Double quotes because CPP needs to be expanded | |
2617 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
2618 | do | |
2619 | ac_preproc_ok=false | |
2620 | for ac_c_preproc_warn_flag in '' yes | |
2621 | do | |
2622 | # Use a header file that comes with gcc, so configuring glibc | |
2623 | # with a fresh cross-compiler works. | |
2624 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
2625 | # not just through cpp. "Syntax error" is here to catch this case. | |
2626 | cat >conftest.$ac_ext <<_ACEOF | |
2627 | #line $LINENO "configure" | |
2628 | #include "confdefs.h" | |
2629 | #include <assert.h> | |
2630 | Syntax error | |
2631 | _ACEOF | |
2632 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2633 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2634 | ac_status=$? | |
2635 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
2636 | rm -f conftest.er1 | |
2637 | cat conftest.err >&5 | |
2638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2639 | (exit $ac_status); } >/dev/null; then | |
2640 | if test -s conftest.err; then | |
2641 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2642 | else | |
2643 | ac_cpp_err= | |
2644 | fi | |
2645 | else | |
2646 | ac_cpp_err=yes | |
2647 | fi | |
2648 | if test -z "$ac_cpp_err"; then | |
2649 | : | |
2650 | else | |
2651 | echo "$as_me: failed program was:" >&5 | |
2652 | cat conftest.$ac_ext >&5 | |
2653 | # Broken: fails on valid input. | |
2654 | continue | |
2655 | fi | |
2656 | rm -f conftest.err conftest.$ac_ext | |
2657 | ||
2658 | # OK, works on sane cases. Now check whether non-existent headers | |
2659 | # can be detected and how. | |
2660 | cat >conftest.$ac_ext <<_ACEOF | |
2661 | #line $LINENO "configure" | |
2662 | #include "confdefs.h" | |
2663 | #include <ac_nonexistent.h> | |
2664 | _ACEOF | |
2665 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2666 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2667 | ac_status=$? | |
2668 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
2669 | rm -f conftest.er1 | |
2670 | cat conftest.err >&5 | |
2671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2672 | (exit $ac_status); } >/dev/null; then | |
2673 | if test -s conftest.err; then | |
2674 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2675 | else | |
2676 | ac_cpp_err= | |
2677 | fi | |
2678 | else | |
2679 | ac_cpp_err=yes | |
2680 | fi | |
2681 | if test -z "$ac_cpp_err"; then | |
2682 | # Broken: success on invalid input. | |
2683 | continue | |
2684 | else | |
2685 | echo "$as_me: failed program was:" >&5 | |
2686 | cat conftest.$ac_ext >&5 | |
2687 | # Passes both tests. | |
2688 | ac_preproc_ok=: | |
2689 | break | |
2690 | fi | |
2691 | rm -f conftest.err conftest.$ac_ext | |
2692 | ||
2693 | done | |
2694 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
2695 | rm -f conftest.err conftest.$ac_ext | |
2696 | if $ac_preproc_ok; then | |
2697 | break | |
2698 | fi | |
2699 | ||
2700 | done | |
2701 | ac_cv_prog_CPP=$CPP | |
2702 | ||
2703 | fi | |
2704 | CPP=$ac_cv_prog_CPP | |
2705 | else | |
2706 | ac_cv_prog_CPP=$CPP | |
2707 | fi | |
2708 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
2709 | echo "${ECHO_T}$CPP" >&6 | |
2710 | ac_preproc_ok=false | |
2711 | for ac_c_preproc_warn_flag in '' yes | |
2712 | do | |
2713 | # Use a header file that comes with gcc, so configuring glibc | |
2714 | # with a fresh cross-compiler works. | |
2715 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
2716 | # not just through cpp. "Syntax error" is here to catch this case. | |
2717 | cat >conftest.$ac_ext <<_ACEOF | |
2718 | #line $LINENO "configure" | |
2719 | #include "confdefs.h" | |
2720 | #include <assert.h> | |
2721 | Syntax error | |
2722 | _ACEOF | |
2723 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2724 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2725 | ac_status=$? | |
2726 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
2727 | rm -f conftest.er1 | |
2728 | cat conftest.err >&5 | |
2729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2730 | (exit $ac_status); } >/dev/null; then | |
2731 | if test -s conftest.err; then | |
2732 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2733 | else | |
2734 | ac_cpp_err= | |
2735 | fi | |
2736 | else | |
2737 | ac_cpp_err=yes | |
2738 | fi | |
2739 | if test -z "$ac_cpp_err"; then | |
2740 | : | |
2741 | else | |
2742 | echo "$as_me: failed program was:" >&5 | |
2743 | cat conftest.$ac_ext >&5 | |
2744 | # Broken: fails on valid input. | |
2745 | continue | |
2746 | fi | |
2747 | rm -f conftest.err conftest.$ac_ext | |
2748 | ||
2749 | # OK, works on sane cases. Now check whether non-existent headers | |
2750 | # can be detected and how. | |
2751 | cat >conftest.$ac_ext <<_ACEOF | |
2752 | #line $LINENO "configure" | |
2753 | #include "confdefs.h" | |
2754 | #include <ac_nonexistent.h> | |
2755 | _ACEOF | |
2756 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2757 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2758 | ac_status=$? | |
2759 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
2760 | rm -f conftest.er1 | |
2761 | cat conftest.err >&5 | |
2762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2763 | (exit $ac_status); } >/dev/null; then | |
2764 | if test -s conftest.err; then | |
2765 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2766 | else | |
2767 | ac_cpp_err= | |
2768 | fi | |
2769 | else | |
2770 | ac_cpp_err=yes | |
2771 | fi | |
2772 | if test -z "$ac_cpp_err"; then | |
2773 | # Broken: success on invalid input. | |
2774 | continue | |
2775 | else | |
2776 | echo "$as_me: failed program was:" >&5 | |
2777 | cat conftest.$ac_ext >&5 | |
2778 | # Passes both tests. | |
2779 | ac_preproc_ok=: | |
2780 | break | |
2781 | fi | |
2782 | rm -f conftest.err conftest.$ac_ext | |
2783 | ||
2784 | done | |
2785 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
2786 | rm -f conftest.err conftest.$ac_ext | |
2787 | if $ac_preproc_ok; then | |
2788 | : | |
2789 | else | |
2790 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5 | |
2791 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} | |
2792 | { (exit 1); exit 1; }; } | |
2793 | fi | |
2794 | ||
2795 | ac_ext=c | |
2796 | ac_cpp='$CPP $CPPFLAGS' | |
2797 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2798 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2799 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2800 | ||
2801 | ||
2802 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
2803 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
2804 | if test "${ac_cv_header_stdc+set}" = set; then | |
2805 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2806 | else | |
2807 | cat >conftest.$ac_ext <<_ACEOF | |
2808 | #line $LINENO "configure" | |
2809 | #include "confdefs.h" | |
2810 | #include <stdlib.h> | |
2811 | #include <stdarg.h> | |
2812 | #include <string.h> | |
2813 | #include <float.h> | |
2814 | ||
2815 | _ACEOF | |
2816 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2817 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2818 | ac_status=$? | |
2819 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
2820 | rm -f conftest.er1 | |
2821 | cat conftest.err >&5 | |
2822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2823 | (exit $ac_status); } >/dev/null; then | |
2824 | if test -s conftest.err; then | |
2825 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2826 | else | |
2827 | ac_cpp_err= | |
2828 | fi | |
2829 | else | |
2830 | ac_cpp_err=yes | |
2831 | fi | |
2832 | if test -z "$ac_cpp_err"; then | |
2833 | ac_cv_header_stdc=yes | |
2834 | else | |
2835 | echo "$as_me: failed program was:" >&5 | |
2836 | cat conftest.$ac_ext >&5 | |
2837 | ac_cv_header_stdc=no | |
2838 | fi | |
2839 | rm -f conftest.err conftest.$ac_ext | |
2840 | ||
2841 | if test $ac_cv_header_stdc = yes; then | |
2842 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
2843 | cat >conftest.$ac_ext <<_ACEOF | |
2844 | #line $LINENO "configure" | |
2845 | #include "confdefs.h" | |
2846 | #include <string.h> | |
2847 | ||
2848 | _ACEOF | |
2849 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
2850 | egrep "memchr" >/dev/null 2>&1; then | |
2851 | : | |
2852 | else | |
2853 | ac_cv_header_stdc=no | |
2854 | fi | |
2855 | rm -f conftest* | |
2856 | ||
2857 | fi | |
2858 | ||
2859 | if test $ac_cv_header_stdc = yes; then | |
2860 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
2861 | cat >conftest.$ac_ext <<_ACEOF | |
2862 | #line $LINENO "configure" | |
2863 | #include "confdefs.h" | |
2864 | #include <stdlib.h> | |
2865 | ||
2866 | _ACEOF | |
2867 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
2868 | egrep "free" >/dev/null 2>&1; then | |
2869 | : | |
2870 | else | |
2871 | ac_cv_header_stdc=no | |
2872 | fi | |
2873 | rm -f conftest* | |
2874 | ||
2875 | fi | |
2876 | ||
2877 | if test $ac_cv_header_stdc = yes; then | |
2878 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
2879 | if test "$cross_compiling" = yes; then | |
2880 | : | |
2881 | else | |
2882 | cat >conftest.$ac_ext <<_ACEOF | |
2883 | #line $LINENO "configure" | |
2884 | #include "confdefs.h" | |
2885 | #include <ctype.h> | |
2886 | #if ((' ' & 0x0FF) == 0x020) | |
2887 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
2888 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
2889 | #else | |
2890 | # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ | |
2891 | || ('j' <= (c) && (c) <= 'r') \ | |
2892 | || ('s' <= (c) && (c) <= 'z')) | |
2893 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
2894 | #endif | |
2895 | ||
2896 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
2897 | int | |
2898 | main () | |
2899 | { | |
2900 | int i; | |
2901 | for (i = 0; i < 256; i++) | |
2902 | if (XOR (islower (i), ISLOWER (i)) | |
2903 | || toupper (i) != TOUPPER (i)) | |
2904 | exit(2); | |
2905 | exit (0); | |
2906 | } | |
2907 | _ACEOF | |
2908 | rm -f conftest$ac_exeext | |
2909 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2910 | (eval $ac_link) 2>&5 | |
2911 | ac_status=$? | |
2912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2913 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
2914 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2915 | (eval $ac_try) 2>&5 | |
2916 | ac_status=$? | |
2917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2918 | (exit $ac_status); }; }; then | |
2919 | : | |
2920 | else | |
2921 | echo "$as_me: program exited with status $ac_status" >&5 | |
2922 | echo "$as_me: failed program was:" >&5 | |
2923 | cat conftest.$ac_ext >&5 | |
2924 | ( exit $ac_status ) | |
2925 | ac_cv_header_stdc=no | |
2926 | fi | |
2927 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
2928 | fi | |
2929 | fi | |
2930 | fi | |
2931 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
2932 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
2933 | if test $ac_cv_header_stdc = yes; then | |
2934 | ||
2935 | cat >>confdefs.h <<\_ACEOF | |
2936 | #define STDC_HEADERS 1 | |
2937 | _ACEOF | |
2938 | ||
2939 | fi | |
2940 | ||
2941 | ||
2942 | ||
ef6bacff RC |
2943 | ac_config_files="$ac_config_files Makefile" |
2944 | ||
2945 | cat >confcache <<\_ACEOF | |
2946 | # This file is a shell script that caches the results of configure | |
2947 | # tests run on this system so they can be shared between configure | |
2948 | # scripts and configure runs, see configure's option --config-cache. | |
2949 | # It is not useful on other systems. If it contains results you don't | |
2950 | # want to keep, you may remove or edit it. | |
2951 | # | |
2952 | # config.status only pays attention to the cache file if you give it | |
2953 | # the --recheck option to rerun configure. | |
2954 | # | |
2955 | # `ac_cv_env_foo' variables (set or unset) will be overriden when | |
2956 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
2957 | # following values. | |
2958 | ||
2959 | _ACEOF | |
2960 | ||
2961 | # The following way of writing the cache mishandles newlines in values, | |
2962 | # but we know of no workaround that is simple, portable, and efficient. | |
2963 | # So, don't put newlines in cache variables' values. | |
2964 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
2965 | # and sets the high bit in the cache file unless we assign to the vars. | |
2966 | { | |
2967 | (set) 2>&1 | | |
2968 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
2969 | *ac_space=\ *) | |
2970 | # `set' does not quote correctly, so add quotes (double-quote | |
2971 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
2972 | sed -n \ | |
2973 | "s/'/'\\\\''/g; | |
2974 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
2975 | ;; | |
2976 | *) | |
2977 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
2978 | sed -n \ | |
2979 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
2980 | ;; | |
2981 | esac; | |
2982 | } | | |
2983 | sed ' | |
2984 | t clear | |
2985 | : clear | |
2986 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
2987 | t end | |
2988 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
2989 | : end' >>confcache | |
2990 | if cmp -s $cache_file confcache; then :; else | |
2991 | if test -w $cache_file; then | |
2992 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
2993 | cat confcache >$cache_file | |
2994 | else | |
2995 | echo "not updating unwritable cache $cache_file" | |
2996 | fi | |
2997 | fi | |
2998 | rm -f confcache | |
2999 | ||
3000 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
3001 | # Let make expand exec_prefix. | |
3002 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
3003 | ||
3004 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
3005 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
3006 | # trailing colons and then remove the whole line if VPATH becomes empty | |
3007 | # (actually we leave an empty line to preserve line numbers). | |
3008 | if test "x$srcdir" = x.; then | |
3009 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
3010 | s/:*\$(srcdir):*/:/; | |
3011 | s/:*\${srcdir}:*/:/; | |
3012 | s/:*@srcdir@:*/:/; | |
3013 | s/^\([^=]*=[ ]*\):*/\1/; | |
3014 | s/:*$//; | |
3015 | s/^[^=]*=[ ]*$//; | |
3016 | }' | |
3017 | fi | |
3018 | ||
3019 | # Transform confdefs.h into DEFS. | |
3020 | # Protect against shell expansion while executing Makefile rules. | |
3021 | # Protect against Makefile macro expansion. | |
3022 | # | |
3023 | # If the first sed substitution is executed (which looks for macros that | |
3024 | # take arguments), then we branch to the quote section. Otherwise, | |
3025 | # look for a macro that doesn't take arguments. | |
3026 | cat >confdef2opt.sed <<\_ACEOF | |
3027 | t clear | |
3028 | : clear | |
3029 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g | |
3030 | t quote | |
3031 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g | |
3032 | t quote | |
3033 | d | |
3034 | : quote | |
3035 | s,[ `~#$^&*(){}\\|;'"<>?],\\&,g | |
3036 | s,\[,\\&,g | |
3037 | s,\],\\&,g | |
3038 | s,\$,$$,g | |
3039 | p | |
3040 | _ACEOF | |
3041 | # We use echo to avoid assuming a particular line-breaking character. | |
3042 | # The extra dot is to prevent the shell from consuming trailing | |
3043 | # line-breaks from the sub-command output. A line-break within | |
3044 | # single-quotes doesn't work because, if this script is created in a | |
3045 | # platform that uses two characters for line-breaks (e.g., DOS), tr | |
3046 | # would break. | |
3047 | ac_LF_and_DOT=`echo; echo .` | |
3048 | DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'` | |
3049 | rm -f confdef2opt.sed | |
3050 | ||
3051 | ||
3052 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then | |
3053 | { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. | |
3054 | Usually this means the macro was only invoked conditionally." >&5 | |
3055 | echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. | |
3056 | Usually this means the macro was only invoked conditionally." >&2;} | |
3057 | { (exit 1); exit 1; }; } | |
3058 | fi | |
3059 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |
3060 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. | |
3061 | Usually this means the macro was only invoked conditionally." >&5 | |
3062 | echo "$as_me: error: conditional \"AMDEP\" was never defined. | |
3063 | Usually this means the macro was only invoked conditionally." >&2;} | |
3064 | { (exit 1); exit 1; }; } | |
3065 | fi | |
3066 | ||
3067 | : ${CONFIG_STATUS=./config.status} | |
3068 | ac_clean_files_save=$ac_clean_files | |
3069 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
3070 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
3071 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
3072 | cat >$CONFIG_STATUS <<_ACEOF | |
3073 | #! $SHELL | |
3074 | # Generated by $as_me. | |
3075 | # Run this file to recreate the current configuration. | |
3076 | # Compiler output produced by configure, useful for debugging | |
3077 | # configure, is in config.log if it exists. | |
3078 | ||
3079 | debug=false | |
3080 | SHELL=\${CONFIG_SHELL-$SHELL} | |
3081 | _ACEOF | |
3082 | ||
3083 | cat >>$CONFIG_STATUS <<\_ACEOF | |
3084 | ||
3085 | ## --------------------- ## | |
3086 | ## M4sh Initialization. ## | |
3087 | ## --------------------- ## | |
3088 | ||
3089 | # Be Bourne compatible | |
3090 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
3091 | emulate sh | |
3092 | NULLCMD=: | |
3093 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
3094 | set -o posix | |
3095 | fi | |
3096 | ||
3097 | # NLS nuisances. | |
3098 | # Support unset when possible. | |
3099 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then | |
3100 | as_unset=unset | |
3101 | else | |
3102 | as_unset=false | |
3103 | fi | |
3104 | ||
3105 | (set +x; test -n "`(LANG=C; export LANG) 2>&1`") && | |
3106 | { $as_unset LANG || test "${LANG+set}" != set; } || | |
3107 | { LANG=C; export LANG; } | |
3108 | (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") && | |
3109 | { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } || | |
3110 | { LC_ALL=C; export LC_ALL; } | |
3111 | (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") && | |
3112 | { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } || | |
3113 | { LC_TIME=C; export LC_TIME; } | |
3114 | (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") && | |
3115 | { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } || | |
3116 | { LC_CTYPE=C; export LC_CTYPE; } | |
3117 | (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") && | |
3118 | { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } || | |
3119 | { LANGUAGE=C; export LANGUAGE; } | |
3120 | (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") && | |
3121 | { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } || | |
3122 | { LC_COLLATE=C; export LC_COLLATE; } | |
3123 | (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") && | |
3124 | { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } || | |
3125 | { LC_NUMERIC=C; export LC_NUMERIC; } | |
3126 | (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") && | |
3127 | { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } || | |
3128 | { LC_MESSAGES=C; export LC_MESSAGES; } | |
3129 | ||
3130 | ||
3131 | # Name of the executable. | |
3132 | as_me=`(basename "$0") 2>/dev/null || | |
3133 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
3134 | X"$0" : 'X\(//\)$' \| \ | |
3135 | X"$0" : 'X\(/\)$' \| \ | |
3136 | . : '\(.\)' 2>/dev/null || | |
3137 | echo X/"$0" | | |
3138 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
3139 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
3140 | /^X\/\(\/\).*/{ s//\1/; q; } | |
3141 | s/.*/./; q'` | |
3142 | ||
3143 | # PATH needs CR, and LINENO needs CR and PATH. | |
3144 | # Avoid depending upon Character Ranges. | |
3145 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
3146 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
3147 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
3148 | as_cr_digits='0123456789' | |
3149 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
3150 | ||
3151 | # The user is always right. | |
3152 | if test "${PATH_SEPARATOR+set}" != set; then | |
3153 | echo "#! /bin/sh" >conftest.sh | |
3154 | echo "exit 0" >>conftest.sh | |
3155 | chmod +x conftest.sh | |
3156 | if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then | |
3157 | PATH_SEPARATOR=';' | |
3158 | else | |
3159 | PATH_SEPARATOR=: | |
3160 | fi | |
3161 | rm -f conftest.sh | |
3162 | fi | |
3163 | ||
3164 | ||
3165 | as_lineno_1=$LINENO | |
3166 | as_lineno_2=$LINENO | |
3167 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
3168 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
3169 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
3170 | # Find who we are. Look in the path if we contain no path at all | |
3171 | # relative or not. | |
3172 | case $0 in | |
3173 | *[\\/]* ) as_myself=$0 ;; | |
3174 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3175 | for as_dir in $PATH | |
3176 | do | |
3177 | IFS=$as_save_IFS | |
3178 | test -z "$as_dir" && as_dir=. | |
3179 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
3180 | done | |
3181 | ||
3182 | ;; | |
3183 | esac | |
3184 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
3185 | # in which case we are not to be found in the path. | |
3186 | if test "x$as_myself" = x; then | |
3187 | as_myself=$0 | |
3188 | fi | |
3189 | if test ! -f "$as_myself"; then | |
3190 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
3191 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
3192 | { (exit 1); exit 1; }; } | |
3193 | fi | |
3194 | case $CONFIG_SHELL in | |
3195 | '') | |
3196 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3197 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
3198 | do | |
3199 | IFS=$as_save_IFS | |
3200 | test -z "$as_dir" && as_dir=. | |
3201 | for as_base in sh bash ksh sh5; do | |
3202 | case $as_dir in | |
3203 | /*) | |
3204 | if ("$as_dir/$as_base" -c ' | |
3205 | as_lineno_1=$LINENO | |
3206 | as_lineno_2=$LINENO | |
3207 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
3208 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
3209 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
3210 | CONFIG_SHELL=$as_dir/$as_base | |
3211 | export CONFIG_SHELL | |
3212 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
3213 | fi;; | |
3214 | esac | |
3215 | done | |
3216 | done | |
3217 | ;; | |
3218 | esac | |
3219 | ||
3220 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
3221 | # uniformly replaced by the line number. The first 'sed' inserts a | |
3222 | # line-number line before each line; the second 'sed' does the real | |
3223 | # work. The second script uses 'N' to pair each line-number line | |
3224 | # with the numbered line, and appends trailing '-' during | |
3225 | # substitution so that $LINENO is not a special case at line end. | |
3226 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
3227 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
3228 | sed '=' <$as_myself | | |
3229 | sed ' | |
3230 | N | |
3231 | s,$,-, | |
3232 | : loop | |
3233 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
3234 | t loop | |
3235 | s,-$,, | |
3236 | s,^['$as_cr_digits']*\n,, | |
3237 | ' >$as_me.lineno && | |
3238 | chmod +x $as_me.lineno || | |
3239 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
3240 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
3241 | { (exit 1); exit 1; }; } | |
3242 | ||
3243 | # Don't try to exec as it changes $[0], causing all sort of problems | |
3244 | # (the dirname of $[0] is not the place where we might find the | |
3245 | # original and so on. Autoconf is especially sensible to this). | |
3246 | . ./$as_me.lineno | |
3247 | # Exit status is that of the last command. | |
3248 | exit | |
3249 | } | |
3250 | ||
3251 | ||
3252 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
3253 | *c*,-n*) ECHO_N= ECHO_C=' | |
3254 | ' ECHO_T=' ' ;; | |
3255 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
3256 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
3257 | esac | |
3258 | ||
3259 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
3260 | as_expr=expr | |
3261 | else | |
3262 | as_expr=false | |
3263 | fi | |
3264 | ||
3265 | rm -f conf$$ conf$$.exe conf$$.file | |
3266 | echo >conf$$.file | |
3267 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
3268 | # We could just check for DJGPP; but this test a) works b) is more generic | |
3269 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
3270 | if test -f conf$$.exe; then | |
3271 | # Don't use ln at all; we don't have any links | |
3272 | as_ln_s='cp -p' | |
3273 | else | |
3274 | as_ln_s='ln -s' | |
3275 | fi | |
3276 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
3277 | as_ln_s=ln | |
3278 | else | |
3279 | as_ln_s='cp -p' | |
3280 | fi | |
3281 | rm -f conf$$ conf$$.exe conf$$.file | |
3282 | ||
3283 | as_executable_p="test -f" | |
3284 | ||
3285 | # Sed expression to map a string onto a valid CPP name. | |
3286 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" | |
3287 | ||
3288 | # Sed expression to map a string onto a valid variable name. | |
3289 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" | |
3290 | ||
3291 | ||
3292 | # IFS | |
3293 | # We need space, tab and new line, in precisely that order. | |
3294 | as_nl=' | |
3295 | ' | |
3296 | IFS=" $as_nl" | |
3297 | ||
3298 | # CDPATH. | |
3299 | $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; } | |
3300 | ||
3301 | exec 6>&1 | |
3302 | ||
3303 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
3304 | # report actual input values of CONFIG_FILES etc. instead of their | |
3305 | # values after options handling. Logging --version etc. is OK. | |
3306 | exec 5>>config.log | |
3307 | { | |
3308 | echo | |
3309 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
3310 | ## Running $as_me. ## | |
3311 | _ASBOX | |
3312 | } >&5 | |
3313 | cat >&5 <<_CSEOF | |
3314 | ||
3315 | This file was extended by $as_me, which was | |
3316 | generated by GNU Autoconf 2.53. Invocation command line was | |
3317 | ||
3318 | CONFIG_FILES = $CONFIG_FILES | |
3319 | CONFIG_HEADERS = $CONFIG_HEADERS | |
3320 | CONFIG_LINKS = $CONFIG_LINKS | |
3321 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
3322 | $ $0 $@ | |
3323 | ||
3324 | _CSEOF | |
3325 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
3326 | echo >&5 | |
3327 | _ACEOF | |
3328 | ||
3329 | # Files that config.status was made for. | |
3330 | if test -n "$ac_config_files"; then | |
3331 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
3332 | fi | |
3333 | ||
3334 | if test -n "$ac_config_headers"; then | |
3335 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
3336 | fi | |
3337 | ||
3338 | if test -n "$ac_config_links"; then | |
3339 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
3340 | fi | |
3341 | ||
3342 | if test -n "$ac_config_commands"; then | |
3343 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
3344 | fi | |
3345 | ||
3346 | cat >>$CONFIG_STATUS <<\_ACEOF | |
3347 | ||
3348 | ac_cs_usage="\ | |
3349 | \`$as_me' instantiates files from templates according to the | |
3350 | current configuration. | |
3351 | ||
3352 | Usage: $0 [OPTIONS] [FILE]... | |
3353 | ||
3354 | -h, --help print this help, then exit | |
3355 | -V, --version print version number, then exit | |
3356 | -d, --debug don't remove temporary files | |
3357 | --recheck update $as_me by reconfiguring in the same conditions | |
3358 | --file=FILE[:TEMPLATE] | |
3359 | instantiate the configuration file FILE | |
3360 | ||
3361 | Configuration files: | |
3362 | $config_files | |
3363 | ||
3364 | Configuration commands: | |
3365 | $config_commands | |
3366 | ||
3367 | Report bugs to <bug-autoconf@gnu.org>." | |
3368 | _ACEOF | |
3369 | ||
3370 | cat >>$CONFIG_STATUS <<_ACEOF | |
3371 | ac_cs_version="\\ | |
3372 | config.status | |
3373 | configured by $0, generated by GNU Autoconf 2.53, | |
3374 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | |
3375 | ||
3376 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 | |
3377 | Free Software Foundation, Inc. | |
3378 | This config.status script is free software; the Free Software Foundation | |
3379 | gives unlimited permission to copy, distribute and modify it." | |
3380 | srcdir=$srcdir | |
3381 | INSTALL="$INSTALL" | |
3382 | _ACEOF | |
3383 | ||
3384 | cat >>$CONFIG_STATUS <<\_ACEOF | |
3385 | # If no file are specified by the user, then we need to provide default | |
3386 | # value. By we need to know if files were specified by the user. | |
3387 | ac_need_defaults=: | |
3388 | while test $# != 0 | |
3389 | do | |
3390 | case $1 in | |
3391 | --*=*) | |
3392 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
3393 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
3394 | shift | |
3395 | set dummy "$ac_option" "$ac_optarg" ${1+"$@"} | |
3396 | shift | |
3397 | ;; | |
3398 | -*);; | |
3399 | *) # This is not an option, so the user has probably given explicit | |
3400 | # arguments. | |
3401 | ac_need_defaults=false;; | |
3402 | esac | |
3403 | ||
3404 | case $1 in | |
3405 | # Handling of the options. | |
3406 | _ACEOF | |
3407 | cat >>$CONFIG_STATUS <<_ACEOF | |
3408 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
3409 | echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" | |
3410 | exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; | |
3411 | _ACEOF | |
3412 | cat >>$CONFIG_STATUS <<\_ACEOF | |
3413 | --version | --vers* | -V ) | |
3414 | echo "$ac_cs_version"; exit 0 ;; | |
3415 | --he | --h) | |
3416 | # Conflict between --help and --header | |
3417 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
3418 | Try \`$0 --help' for more information." >&5 | |
3419 | echo "$as_me: error: ambiguous option: $1 | |
3420 | Try \`$0 --help' for more information." >&2;} | |
3421 | { (exit 1); exit 1; }; };; | |
3422 | --help | --hel | -h ) | |
3423 | echo "$ac_cs_usage"; exit 0 ;; | |
3424 | --debug | --d* | -d ) | |
3425 | debug=: ;; | |
3426 | --file | --fil | --fi | --f ) | |
3427 | shift | |
3428 | CONFIG_FILES="$CONFIG_FILES $1" | |
3429 | ac_need_defaults=false;; | |
3430 | --header | --heade | --head | --hea ) | |
3431 | shift | |
3432 | CONFIG_HEADERS="$CONFIG_HEADERS $1" | |
3433 | ac_need_defaults=false;; | |
3434 | ||
3435 | # This is an error. | |
3436 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
3437 | Try \`$0 --help' for more information." >&5 | |
3438 | echo "$as_me: error: unrecognized option: $1 | |
3439 | Try \`$0 --help' for more information." >&2;} | |
3440 | { (exit 1); exit 1; }; } ;; | |
3441 | ||
3442 | *) ac_config_targets="$ac_config_targets $1" ;; | |
3443 | ||
3444 | esac | |
3445 | shift | |
3446 | done | |
3447 | ||
3448 | _ACEOF | |
3449 | ||
3450 | cat >>$CONFIG_STATUS <<_ACEOF | |
3451 | # | |
3452 | # INIT-COMMANDS section. | |
3453 | # | |
3454 | ||
3455 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | |
3456 | ||
3457 | _ACEOF | |
3458 | ||
3459 | ||
3460 | ||
3461 | cat >>$CONFIG_STATUS <<\_ACEOF | |
3462 | for ac_config_target in $ac_config_targets | |
3463 | do | |
3464 | case "$ac_config_target" in | |
3465 | # Handling of arguments. | |
3466 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
3467 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
3468 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
3469 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
3470 | { (exit 1); exit 1; }; };; | |
3471 | esac | |
3472 | done | |
3473 | ||
3474 | # If the user did not use the arguments to specify the items to instantiate, | |
3475 | # then the envvar interface is used. Set only those that are not. | |
3476 | # We use the long form for the default assignment because of an extremely | |
3477 | # bizarre bug on SunOS 4.1.3. | |
3478 | if $ac_need_defaults; then | |
3479 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
3480 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
3481 | fi | |
3482 | ||
3483 | # Create a temporary directory, and hook for its removal unless debugging. | |
3484 | $debug || | |
3485 | { | |
3486 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
3487 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
3488 | } | |
3489 | ||
3490 | # Create a (secure) tmp directory for tmp files. | |
3491 | : ${TMPDIR=/tmp} | |
3492 | { | |
3493 | tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && | |
3494 | test -n "$tmp" && test -d "$tmp" | |
3495 | } || | |
3496 | { | |
3497 | tmp=$TMPDIR/cs$$-$RANDOM | |
3498 | (umask 077 && mkdir $tmp) | |
3499 | } || | |
3500 | { | |
3501 | echo "$me: cannot create a temporary directory in $TMPDIR" >&2 | |
3502 | { (exit 1); exit 1; } | |
3503 | } | |
3504 | ||
3505 | _ACEOF | |
3506 | ||
3507 | cat >>$CONFIG_STATUS <<_ACEOF | |
3508 | ||
3509 | # | |
3510 | # CONFIG_FILES section. | |
3511 | # | |
3512 | ||
3513 | # No need to generate the scripts if there are no CONFIG_FILES. | |
3514 | # This happens for instance when ./config.status config.h | |
3515 | if test -n "\$CONFIG_FILES"; then | |
3516 | # Protect against being on the right side of a sed subst in config.status. | |
3517 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
3518 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
3519 | s,@SHELL@,$SHELL,;t t | |
3520 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
3521 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
3522 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
3523 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
3524 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
3525 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
3526 | s,@exec_prefix@,$exec_prefix,;t t | |
3527 | s,@prefix@,$prefix,;t t | |
3528 | s,@program_transform_name@,$program_transform_name,;t t | |
3529 | s,@bindir@,$bindir,;t t | |
3530 | s,@sbindir@,$sbindir,;t t | |
3531 | s,@libexecdir@,$libexecdir,;t t | |
3532 | s,@datadir@,$datadir,;t t | |
3533 | s,@sysconfdir@,$sysconfdir,;t t | |
3534 | s,@sharedstatedir@,$sharedstatedir,;t t | |
3535 | s,@localstatedir@,$localstatedir,;t t | |
3536 | s,@libdir@,$libdir,;t t | |
3537 | s,@includedir@,$includedir,;t t | |
3538 | s,@oldincludedir@,$oldincludedir,;t t | |
3539 | s,@infodir@,$infodir,;t t | |
3540 | s,@mandir@,$mandir,;t t | |
3541 | s,@build_alias@,$build_alias,;t t | |
3542 | s,@host_alias@,$host_alias,;t t | |
3543 | s,@target_alias@,$target_alias,;t t | |
3544 | s,@DEFS@,$DEFS,;t t | |
3545 | s,@ECHO_C@,$ECHO_C,;t t | |
3546 | s,@ECHO_N@,$ECHO_N,;t t | |
3547 | s,@ECHO_T@,$ECHO_T,;t t | |
3548 | s,@LIBS@,$LIBS,;t t | |
3549 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
3550 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
3551 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
3552 | s,@PACKAGE@,$PACKAGE,;t t | |
3553 | s,@VERSION@,$VERSION,;t t | |
3554 | s,@ACLOCAL@,$ACLOCAL,;t t | |
3555 | s,@AUTOCONF@,$AUTOCONF,;t t | |
3556 | s,@AUTOMAKE@,$AUTOMAKE,;t t | |
3557 | s,@AUTOHEADER@,$AUTOHEADER,;t t | |
3558 | s,@MAKEINFO@,$MAKEINFO,;t t | |
3559 | s,@AMTAR@,$AMTAR,;t t | |
3560 | s,@install_sh@,$install_sh,;t t | |
3561 | s,@STRIP@,$STRIP,;t t | |
3562 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t | |
3563 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t | |
3564 | s,@AWK@,$AWK,;t t | |
3565 | s,@SET_MAKE@,$SET_MAKE,;t t | |
3566 | s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t | |
3567 | s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t | |
3568 | s,@MAINT@,$MAINT,;t t | |
3569 | s,@build@,$build,;t t | |
3570 | s,@build_cpu@,$build_cpu,;t t | |
3571 | s,@build_vendor@,$build_vendor,;t t | |
3572 | s,@build_os@,$build_os,;t t | |
3573 | s,@host@,$host,;t t | |
3574 | s,@host_cpu@,$host_cpu,;t t | |
3575 | s,@host_vendor@,$host_vendor,;t t | |
3576 | s,@host_os@,$host_os,;t t | |
ef6bacff RC |
3577 | s,@CC@,$CC,;t t |
3578 | s,@CFLAGS@,$CFLAGS,;t t | |
3579 | s,@LDFLAGS@,$LDFLAGS,;t t | |
3580 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
3581 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
3582 | s,@EXEEXT@,$EXEEXT,;t t | |
3583 | s,@OBJEXT@,$OBJEXT,;t t | |
3584 | s,@DEPDIR@,$DEPDIR,;t t | |
3585 | s,@am__include@,$am__include,;t t | |
3586 | s,@am__quote@,$am__quote,;t t | |
3587 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t | |
3588 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t | |
3589 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t | |
3590 | s,@CCDEPMODE@,$CCDEPMODE,;t t | |
ba95a000 RC |
3591 | s,@RANLIB@,$RANLIB,;t t |
3592 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
ef6bacff RC |
3593 | s,@CPP@,$CPP,;t t |
3594 | s,@installdata@,$installdata,;t t | |
3595 | s,@uninstalldata@,$uninstalldata,;t t | |
3596 | CEOF | |
3597 | ||
3598 | _ACEOF | |
3599 | ||
3600 | cat >>$CONFIG_STATUS <<\_ACEOF | |
3601 | # Split the substitutions into bite-sized pieces for seds with | |
3602 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
3603 | ac_max_sed_lines=48 | |
3604 | ac_sed_frag=1 # Number of current file. | |
3605 | ac_beg=1 # First line for current file. | |
3606 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
3607 | ac_more_lines=: | |
3608 | ac_sed_cmds= | |
3609 | while $ac_more_lines; do | |
3610 | if test $ac_beg -gt 1; then | |
3611 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
3612 | else | |
3613 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
3614 | fi | |
3615 | if test ! -s $tmp/subs.frag; then | |
3616 | ac_more_lines=false | |
3617 | else | |
3618 | # The purpose of the label and of the branching condition is to | |
3619 | # speed up the sed processing (if there are no `@' at all, there | |
3620 | # is no need to browse any of the substitutions). | |
3621 | # These are the two extra sed commands mentioned above. | |
3622 | (echo ':t | |
3623 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
3624 | if test -z "$ac_sed_cmds"; then | |
3625 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
3626 | else | |
3627 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
3628 | fi | |
3629 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
3630 | ac_beg=$ac_end | |
3631 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
3632 | fi | |
3633 | done | |
3634 | if test -z "$ac_sed_cmds"; then | |
3635 | ac_sed_cmds=cat | |
3636 | fi | |
3637 | fi # test -n "$CONFIG_FILES" | |
3638 | ||
3639 | _ACEOF | |
3640 | cat >>$CONFIG_STATUS <<\_ACEOF | |
3641 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
3642 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
3643 | case $ac_file in | |
3644 | - | *:- | *:-:* ) # input from stdin | |
3645 | cat >$tmp/stdin | |
3646 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
3647 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
3648 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
3649 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
3650 | * ) ac_file_in=$ac_file.in ;; | |
3651 | esac | |
3652 | ||
3653 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. | |
3654 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
3655 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
3656 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
3657 | X"$ac_file" : 'X\(//\)$' \| \ | |
3658 | X"$ac_file" : 'X\(/\)' \| \ | |
3659 | . : '\(.\)' 2>/dev/null || | |
3660 | echo X"$ac_file" | | |
3661 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
3662 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
3663 | /^X\(\/\/\)$/{ s//\1/; q; } | |
3664 | /^X\(\/\).*/{ s//\1/; q; } | |
3665 | s/.*/./; q'` | |
3666 | { case "$ac_dir" in | |
3667 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; | |
3668 | *) as_incr_dir=.;; | |
3669 | esac | |
3670 | as_dummy="$ac_dir" | |
3671 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do | |
3672 | case $as_mkdir_dir in | |
3673 | # Skip DOS drivespec | |
3674 | ?:) as_incr_dir=$as_mkdir_dir ;; | |
3675 | *) | |
3676 | as_incr_dir=$as_incr_dir/$as_mkdir_dir | |
3677 | test -d "$as_incr_dir" || | |
3678 | mkdir "$as_incr_dir" || | |
3679 | { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5 | |
3680 | echo "$as_me: error: cannot create \"$ac_dir\"" >&2;} | |
3681 | { (exit 1); exit 1; }; } | |
3682 | ;; | |
3683 | esac | |
3684 | done; } | |
3685 | ||
3686 | ac_builddir=. | |
3687 | ||
3688 | if test "$ac_dir" != .; then | |
3689 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
3690 | # A "../" for each directory in $ac_dir_suffix. | |
3691 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
3692 | else | |
3693 | ac_dir_suffix= ac_top_builddir= | |
3694 | fi | |
3695 | ||
3696 | case $srcdir in | |
3697 | .) # No --srcdir option. We are building in place. | |
3698 | ac_srcdir=. | |
3699 | if test -z "$ac_top_builddir"; then | |
3700 | ac_top_srcdir=. | |
3701 | else | |
3702 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
3703 | fi ;; | |
3704 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
3705 | ac_srcdir=$srcdir$ac_dir_suffix; | |
3706 | ac_top_srcdir=$srcdir ;; | |
3707 | *) # Relative path. | |
3708 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
3709 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
3710 | esac | |
3711 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be | |
3712 | # absolute. | |
3713 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | |
3714 | ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd` | |
3715 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` | |
3716 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | |
3717 | ||
3718 | ||
3719 | case $INSTALL in | |
3720 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
3721 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
3722 | esac | |
3723 | ||
3724 | if test x"$ac_file" != x-; then | |
3725 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
3726 | echo "$as_me: creating $ac_file" >&6;} | |
3727 | rm -f "$ac_file" | |
3728 | fi | |
3729 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
3730 | # use $as_me), people would be surprised to read: | |
3731 | # /* config.h. Generated by config.status. */ | |
3732 | if test x"$ac_file" = x-; then | |
3733 | configure_input= | |
3734 | else | |
3735 | configure_input="$ac_file. " | |
3736 | fi | |
3737 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
3738 | sed 's,.*/,,'` by configure." | |
3739 | ||
3740 | # First look for the input files in the build tree, otherwise in the | |
3741 | # src tree. | |
3742 | ac_file_inputs=`IFS=: | |
3743 | for f in $ac_file_in; do | |
3744 | case $f in | |
3745 | -) echo $tmp/stdin ;; | |
3746 | [\\/$]*) | |
3747 | # Absolute (can't be DOS-style, as IFS=:) | |
3748 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
3749 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
3750 | { (exit 1); exit 1; }; } | |
3751 | echo $f;; | |
3752 | *) # Relative | |
3753 | if test -f "$f"; then | |
3754 | # Build tree | |
3755 | echo $f | |
3756 | elif test -f "$srcdir/$f"; then | |
3757 | # Source tree | |
3758 | echo $srcdir/$f | |
3759 | else | |
3760 | # /dev/null tree | |
3761 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
3762 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
3763 | { (exit 1); exit 1; }; } | |
3764 | fi;; | |
3765 | esac | |
3766 | done` || { (exit 1); exit 1; } | |
3767 | _ACEOF | |
3768 | cat >>$CONFIG_STATUS <<_ACEOF | |
3769 | sed "$ac_vpsub | |
3770 | $extrasub | |
3771 | _ACEOF | |
3772 | cat >>$CONFIG_STATUS <<\_ACEOF | |
3773 | :t | |
3774 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
3775 | s,@configure_input@,$configure_input,;t t | |
3776 | s,@srcdir@,$ac_srcdir,;t t | |
3777 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
3778 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
3779 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
3780 | s,@builddir@,$ac_builddir,;t t | |
3781 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
3782 | s,@top_builddir@,$ac_top_builddir,;t t | |
3783 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
3784 | s,@INSTALL@,$ac_INSTALL,;t t | |
3785 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
3786 | rm -f $tmp/stdin | |
3787 | if test x"$ac_file" != x-; then | |
3788 | mv $tmp/out $ac_file | |
3789 | else | |
3790 | cat $tmp/out | |
3791 | rm -f $tmp/out | |
3792 | fi | |
3793 | ||
3794 | done | |
3795 | _ACEOF | |
3796 | cat >>$CONFIG_STATUS <<\_ACEOF | |
3797 | ||
3798 | # | |
3799 | # CONFIG_COMMANDS section. | |
3800 | # | |
3801 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
3802 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
3803 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
3804 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
3805 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
3806 | X"$ac_dest" : 'X\(//\)[^/]' \| \ | |
3807 | X"$ac_dest" : 'X\(//\)$' \| \ | |
3808 | X"$ac_dest" : 'X\(/\)' \| \ | |
3809 | . : '\(.\)' 2>/dev/null || | |
3810 | echo X"$ac_dest" | | |
3811 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
3812 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
3813 | /^X\(\/\/\)$/{ s//\1/; q; } | |
3814 | /^X\(\/\).*/{ s//\1/; q; } | |
3815 | s/.*/./; q'` | |
3816 | ac_builddir=. | |
3817 | ||
3818 | if test "$ac_dir" != .; then | |
3819 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
3820 | # A "../" for each directory in $ac_dir_suffix. | |
3821 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
3822 | else | |
3823 | ac_dir_suffix= ac_top_builddir= | |
3824 | fi | |
3825 | ||
3826 | case $srcdir in | |
3827 | .) # No --srcdir option. We are building in place. | |
3828 | ac_srcdir=. | |
3829 | if test -z "$ac_top_builddir"; then | |
3830 | ac_top_srcdir=. | |
3831 | else | |
3832 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
3833 | fi ;; | |
3834 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
3835 | ac_srcdir=$srcdir$ac_dir_suffix; | |
3836 | ac_top_srcdir=$srcdir ;; | |
3837 | *) # Relative path. | |
3838 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
3839 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
3840 | esac | |
3841 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be | |
3842 | # absolute. | |
3843 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | |
3844 | ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd` | |
3845 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` | |
3846 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | |
3847 | ||
3848 | ||
3849 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
3850 | echo "$as_me: executing $ac_dest commands" >&6;} | |
3851 | case $ac_dest in | |
3852 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do | |
3853 | # Strip MF so we end up with the name of the file. | |
3854 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
3855 | if (sed 1q $mf | fgrep 'generated by automake') > /dev/null 2>&1; then | |
3856 | dirpart=`(dirname "$mf") 2>/dev/null || | |
3857 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
3858 | X"$mf" : 'X\(//\)[^/]' \| \ | |
3859 | X"$mf" : 'X\(//\)$' \| \ | |
3860 | X"$mf" : 'X\(/\)' \| \ | |
3861 | . : '\(.\)' 2>/dev/null || | |
3862 | echo X"$mf" | | |
3863 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
3864 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
3865 | /^X\(\/\/\)$/{ s//\1/; q; } | |
3866 | /^X\(\/\).*/{ s//\1/; q; } | |
3867 | s/.*/./; q'` | |
3868 | else | |
3869 | continue | |
3870 | fi | |
3871 | grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue | |
3872 | # Extract the definition of DEP_FILES from the Makefile without | |
3873 | # running `make'. | |
3874 | DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` | |
3875 | test -z "$DEPDIR" && continue | |
3876 | # When using ansi2knr, U may be empty or an underscore; expand it | |
3877 | U=`sed -n -e '/^U = / s///p' < "$mf"` | |
3878 | test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" | |
3879 | # We invoke sed twice because it is the simplest approach to | |
3880 | # changing $(DEPDIR) to its actual value in the expansion. | |
3881 | for file in `sed -n -e ' | |
3882 | /^DEP_FILES = .*\\\\$/ { | |
3883 | s/^DEP_FILES = // | |
3884 | :loop | |
3885 | s/\\\\$// | |
3886 | p | |
3887 | n | |
3888 | /\\\\$/ b loop | |
3889 | p | |
3890 | } | |
3891 | /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ | |
3892 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
3893 | # Make sure the directory exists. | |
3894 | test -f "$dirpart/$file" && continue | |
3895 | fdir=`(dirname "$file") 2>/dev/null || | |
3896 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
3897 | X"$file" : 'X\(//\)[^/]' \| \ | |
3898 | X"$file" : 'X\(//\)$' \| \ | |
3899 | X"$file" : 'X\(/\)' \| \ | |
3900 | . : '\(.\)' 2>/dev/null || | |
3901 | echo X"$file" | | |
3902 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
3903 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
3904 | /^X\(\/\/\)$/{ s//\1/; q; } | |
3905 | /^X\(\/\).*/{ s//\1/; q; } | |
3906 | s/.*/./; q'` | |
3907 | { case $dirpart/$fdir in | |
3908 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; | |
3909 | *) as_incr_dir=.;; | |
3910 | esac | |
3911 | as_dummy=$dirpart/$fdir | |
3912 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do | |
3913 | case $as_mkdir_dir in | |
3914 | # Skip DOS drivespec | |
3915 | ?:) as_incr_dir=$as_mkdir_dir ;; | |
3916 | *) | |
3917 | as_incr_dir=$as_incr_dir/$as_mkdir_dir | |
3918 | test -d "$as_incr_dir" || | |
3919 | mkdir "$as_incr_dir" || | |
3920 | { { echo "$as_me:$LINENO: error: cannot create $dirpart/$fdir" >&5 | |
3921 | echo "$as_me: error: cannot create $dirpart/$fdir" >&2;} | |
3922 | { (exit 1); exit 1; }; } | |
3923 | ;; | |
3924 | esac | |
3925 | done; } | |
3926 | ||
3927 | # echo "creating $dirpart/$file" | |
3928 | echo '# dummy' > "$dirpart/$file" | |
3929 | done | |
3930 | done | |
3931 | ;; | |
3932 | esac | |
3933 | done | |
3934 | _ACEOF | |
3935 | ||
3936 | cat >>$CONFIG_STATUS <<\_ACEOF | |
3937 | ||
3938 | { (exit 0); exit 0; } | |
3939 | _ACEOF | |
3940 | chmod +x $CONFIG_STATUS | |
3941 | ac_clean_files=$ac_clean_files_save | |
3942 | ||
3943 | ||
3944 | # configure is writing to config.log, and then calls config.status. | |
3945 | # config.status does its own redirection, appending to config.log. | |
3946 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
3947 | # by configure, so config.status won't be able to write to it; its | |
3948 | # output is simply discarded. So we exec the FD to /dev/null, | |
3949 | # effectively closing config.log, so it can be properly (re)opened and | |
3950 | # appended to by config.status. When coming back to configure, we | |
3951 | # need to make the FD available again. | |
3952 | if test "$no_create" != yes; then | |
3953 | ac_cs_success=: | |
3954 | exec 5>/dev/null | |
3955 | $SHELL $CONFIG_STATUS || ac_cs_success=false | |
3956 | exec 5>>config.log | |
3957 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
3958 | # would make configure fail if this is the last instruction. | |
3959 | $ac_cs_success || { (exit 1); exit 1; } | |
3960 | fi | |
3961 |