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