1 | #! /bin/sh |
---|
2 | # Guess values for system-dependent variables and create Makefiles. |
---|
3 | # Generated by GNU Autoconf 2.68 for cfa-cc 1.0.0. |
---|
4 | # |
---|
5 | # Report bugs to <cforall@plg.uwaterloo.ca>. |
---|
6 | # |
---|
7 | # |
---|
8 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
---|
9 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software |
---|
10 | # Foundation, Inc. |
---|
11 | # |
---|
12 | # |
---|
13 | # This configure script is free software; the Free Software Foundation |
---|
14 | # gives unlimited permission to copy, distribute and modify it. |
---|
15 | ## -------------------- ## |
---|
16 | ## M4sh Initialization. ## |
---|
17 | ## -------------------- ## |
---|
18 | |
---|
19 | # Be more Bourne compatible |
---|
20 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
21 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
---|
22 | emulate sh |
---|
23 | NULLCMD=: |
---|
24 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
---|
25 | # is contrary to our usage. Disable this feature. |
---|
26 | alias -g '${1+"$@"}'='"$@"' |
---|
27 | setopt NO_GLOB_SUBST |
---|
28 | else |
---|
29 | case `(set -o) 2>/dev/null` in #( |
---|
30 | *posix*) : |
---|
31 | set -o posix ;; #( |
---|
32 | *) : |
---|
33 | ;; |
---|
34 | esac |
---|
35 | fi |
---|
36 | |
---|
37 | |
---|
38 | as_nl=' |
---|
39 | ' |
---|
40 | export as_nl |
---|
41 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
---|
42 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
---|
43 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
---|
44 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
---|
45 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
---|
46 | # but without wasting forks for bash or zsh. |
---|
47 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
---|
48 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
---|
49 | as_echo='print -r --' |
---|
50 | as_echo_n='print -rn --' |
---|
51 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
---|
52 | as_echo='printf %s\n' |
---|
53 | as_echo_n='printf %s' |
---|
54 | else |
---|
55 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
---|
56 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
---|
57 | as_echo_n='/usr/ucb/echo -n' |
---|
58 | else |
---|
59 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
---|
60 | as_echo_n_body='eval |
---|
61 | arg=$1; |
---|
62 | case $arg in #( |
---|
63 | *"$as_nl"*) |
---|
64 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
---|
65 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
---|
66 | esac; |
---|
67 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
---|
68 | ' |
---|
69 | export as_echo_n_body |
---|
70 | as_echo_n='sh -c $as_echo_n_body as_echo' |
---|
71 | fi |
---|
72 | export as_echo_body |
---|
73 | as_echo='sh -c $as_echo_body as_echo' |
---|
74 | fi |
---|
75 | |
---|
76 | # The user is always right. |
---|
77 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
78 | PATH_SEPARATOR=: |
---|
79 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
---|
80 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
---|
81 | PATH_SEPARATOR=';' |
---|
82 | } |
---|
83 | fi |
---|
84 | |
---|
85 | |
---|
86 | # IFS |
---|
87 | # We need space, tab and new line, in precisely that order. Quoting is |
---|
88 | # there to prevent editors from complaining about space-tab. |
---|
89 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
---|
90 | # splitting by setting IFS to empty value.) |
---|
91 | IFS=" "" $as_nl" |
---|
92 | |
---|
93 | # Find who we are. Look in the path if we contain no directory separator. |
---|
94 | as_myself= |
---|
95 | case $0 in #(( |
---|
96 | *[\\/]* ) as_myself=$0 ;; |
---|
97 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
98 | for as_dir in $PATH |
---|
99 | do |
---|
100 | IFS=$as_save_IFS |
---|
101 | test -z "$as_dir" && as_dir=. |
---|
102 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
103 | done |
---|
104 | IFS=$as_save_IFS |
---|
105 | |
---|
106 | ;; |
---|
107 | esac |
---|
108 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
109 | # in which case we are not to be found in the path. |
---|
110 | if test "x$as_myself" = x; then |
---|
111 | as_myself=$0 |
---|
112 | fi |
---|
113 | if test ! -f "$as_myself"; then |
---|
114 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
---|
115 | exit 1 |
---|
116 | fi |
---|
117 | |
---|
118 | # Unset variables that we do not need and which cause bugs (e.g. in |
---|
119 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
---|
120 | # suppresses any "Segmentation fault" message there. '((' could |
---|
121 | # trigger a bug in pdksh 5.2.14. |
---|
122 | for as_var in BASH_ENV ENV MAIL MAILPATH |
---|
123 | do eval test x\${$as_var+set} = xset \ |
---|
124 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
---|
125 | done |
---|
126 | PS1='$ ' |
---|
127 | PS2='> ' |
---|
128 | PS4='+ ' |
---|
129 | |
---|
130 | # NLS nuisances. |
---|
131 | LC_ALL=C |
---|
132 | export LC_ALL |
---|
133 | LANGUAGE=C |
---|
134 | export LANGUAGE |
---|
135 | |
---|
136 | # CDPATH. |
---|
137 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
---|
138 | |
---|
139 | if test "x$CONFIG_SHELL" = x; then |
---|
140 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
---|
141 | emulate sh |
---|
142 | NULLCMD=: |
---|
143 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
---|
144 | # is contrary to our usage. Disable this feature. |
---|
145 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
---|
146 | setopt NO_GLOB_SUBST |
---|
147 | else |
---|
148 | case \`(set -o) 2>/dev/null\` in #( |
---|
149 | *posix*) : |
---|
150 | set -o posix ;; #( |
---|
151 | *) : |
---|
152 | ;; |
---|
153 | esac |
---|
154 | fi |
---|
155 | " |
---|
156 | as_required="as_fn_return () { (exit \$1); } |
---|
157 | as_fn_success () { as_fn_return 0; } |
---|
158 | as_fn_failure () { as_fn_return 1; } |
---|
159 | as_fn_ret_success () { return 0; } |
---|
160 | as_fn_ret_failure () { return 1; } |
---|
161 | |
---|
162 | exitcode=0 |
---|
163 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
---|
164 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
---|
165 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
---|
166 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
---|
167 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
---|
168 | |
---|
169 | else |
---|
170 | exitcode=1; echo positional parameters were not saved. |
---|
171 | fi |
---|
172 | test x\$exitcode = x0 || exit 1" |
---|
173 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
---|
174 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
---|
175 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
---|
176 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
---|
177 | test \$(( 1 + 1 )) = 2 || exit 1" |
---|
178 | if (eval "$as_required") 2>/dev/null; then : |
---|
179 | as_have_required=yes |
---|
180 | else |
---|
181 | as_have_required=no |
---|
182 | fi |
---|
183 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
---|
184 | |
---|
185 | else |
---|
186 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
187 | as_found=false |
---|
188 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
---|
189 | do |
---|
190 | IFS=$as_save_IFS |
---|
191 | test -z "$as_dir" && as_dir=. |
---|
192 | as_found=: |
---|
193 | case $as_dir in #( |
---|
194 | /*) |
---|
195 | for as_base in sh bash ksh sh5; do |
---|
196 | # Try only shells that exist, to save several forks. |
---|
197 | as_shell=$as_dir/$as_base |
---|
198 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
---|
199 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
---|
200 | CONFIG_SHELL=$as_shell as_have_required=yes |
---|
201 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
---|
202 | break 2 |
---|
203 | fi |
---|
204 | fi |
---|
205 | done;; |
---|
206 | esac |
---|
207 | as_found=false |
---|
208 | done |
---|
209 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
---|
210 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
---|
211 | CONFIG_SHELL=$SHELL as_have_required=yes |
---|
212 | fi; } |
---|
213 | IFS=$as_save_IFS |
---|
214 | |
---|
215 | |
---|
216 | if test "x$CONFIG_SHELL" != x; then : |
---|
217 | # We cannot yet assume a decent shell, so we have to provide a |
---|
218 | # neutralization value for shells without unset; and this also |
---|
219 | # works around shells that cannot unset nonexistent variables. |
---|
220 | # Preserve -v and -x to the replacement shell. |
---|
221 | BASH_ENV=/dev/null |
---|
222 | ENV=/dev/null |
---|
223 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
---|
224 | export CONFIG_SHELL |
---|
225 | case $- in # (((( |
---|
226 | *v*x* | *x*v* ) as_opts=-vx ;; |
---|
227 | *v* ) as_opts=-v ;; |
---|
228 | *x* ) as_opts=-x ;; |
---|
229 | * ) as_opts= ;; |
---|
230 | esac |
---|
231 | exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} |
---|
232 | fi |
---|
233 | |
---|
234 | if test x$as_have_required = xno; then : |
---|
235 | $as_echo "$0: This script requires a shell more modern than all" |
---|
236 | $as_echo "$0: the shells that I found on your system." |
---|
237 | if test x${ZSH_VERSION+set} = xset ; then |
---|
238 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
---|
239 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." |
---|
240 | else |
---|
241 | $as_echo "$0: Please tell bug-autoconf@gnu.org and |
---|
242 | $0: cforall@plg.uwaterloo.ca about your system, including |
---|
243 | $0: any error possibly output before this message. Then |
---|
244 | $0: install a modern shell, or manually run the script |
---|
245 | $0: under such a shell if you do have one." |
---|
246 | fi |
---|
247 | exit 1 |
---|
248 | fi |
---|
249 | fi |
---|
250 | fi |
---|
251 | SHELL=${CONFIG_SHELL-/bin/sh} |
---|
252 | export SHELL |
---|
253 | # Unset more variables known to interfere with behavior of common tools. |
---|
254 | CLICOLOR_FORCE= GREP_OPTIONS= |
---|
255 | unset CLICOLOR_FORCE GREP_OPTIONS |
---|
256 | |
---|
257 | ## --------------------- ## |
---|
258 | ## M4sh Shell Functions. ## |
---|
259 | ## --------------------- ## |
---|
260 | # as_fn_unset VAR |
---|
261 | # --------------- |
---|
262 | # Portably unset VAR. |
---|
263 | as_fn_unset () |
---|
264 | { |
---|
265 | { eval $1=; unset $1;} |
---|
266 | } |
---|
267 | as_unset=as_fn_unset |
---|
268 | |
---|
269 | # as_fn_set_status STATUS |
---|
270 | # ----------------------- |
---|
271 | # Set $? to STATUS, without forking. |
---|
272 | as_fn_set_status () |
---|
273 | { |
---|
274 | return $1 |
---|
275 | } # as_fn_set_status |
---|
276 | |
---|
277 | # as_fn_exit STATUS |
---|
278 | # ----------------- |
---|
279 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
---|
280 | as_fn_exit () |
---|
281 | { |
---|
282 | set +e |
---|
283 | as_fn_set_status $1 |
---|
284 | exit $1 |
---|
285 | } # as_fn_exit |
---|
286 | |
---|
287 | # as_fn_mkdir_p |
---|
288 | # ------------- |
---|
289 | # Create "$as_dir" as a directory, including parents if necessary. |
---|
290 | as_fn_mkdir_p () |
---|
291 | { |
---|
292 | |
---|
293 | case $as_dir in #( |
---|
294 | -*) as_dir=./$as_dir;; |
---|
295 | esac |
---|
296 | test -d "$as_dir" || eval $as_mkdir_p || { |
---|
297 | as_dirs= |
---|
298 | while :; do |
---|
299 | case $as_dir in #( |
---|
300 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
---|
301 | *) as_qdir=$as_dir;; |
---|
302 | esac |
---|
303 | as_dirs="'$as_qdir' $as_dirs" |
---|
304 | as_dir=`$as_dirname -- "$as_dir" || |
---|
305 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
306 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
307 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
308 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
---|
309 | $as_echo X"$as_dir" | |
---|
310 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
311 | s//\1/ |
---|
312 | q |
---|
313 | } |
---|
314 | /^X\(\/\/\)[^/].*/{ |
---|
315 | s//\1/ |
---|
316 | q |
---|
317 | } |
---|
318 | /^X\(\/\/\)$/{ |
---|
319 | s//\1/ |
---|
320 | q |
---|
321 | } |
---|
322 | /^X\(\/\).*/{ |
---|
323 | s//\1/ |
---|
324 | q |
---|
325 | } |
---|
326 | s/.*/./; q'` |
---|
327 | test -d "$as_dir" && break |
---|
328 | done |
---|
329 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
---|
330 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
---|
331 | |
---|
332 | |
---|
333 | } # as_fn_mkdir_p |
---|
334 | # as_fn_append VAR VALUE |
---|
335 | # ---------------------- |
---|
336 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
---|
337 | # advantage of any shell optimizations that allow amortized linear growth over |
---|
338 | # repeated appends, instead of the typical quadratic growth present in naive |
---|
339 | # implementations. |
---|
340 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
---|
341 | eval 'as_fn_append () |
---|
342 | { |
---|
343 | eval $1+=\$2 |
---|
344 | }' |
---|
345 | else |
---|
346 | as_fn_append () |
---|
347 | { |
---|
348 | eval $1=\$$1\$2 |
---|
349 | } |
---|
350 | fi # as_fn_append |
---|
351 | |
---|
352 | # as_fn_arith ARG... |
---|
353 | # ------------------ |
---|
354 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
---|
355 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
---|
356 | # must be portable across $(()) and expr. |
---|
357 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
---|
358 | eval 'as_fn_arith () |
---|
359 | { |
---|
360 | as_val=$(( $* )) |
---|
361 | }' |
---|
362 | else |
---|
363 | as_fn_arith () |
---|
364 | { |
---|
365 | as_val=`expr "$@" || test $? -eq 1` |
---|
366 | } |
---|
367 | fi # as_fn_arith |
---|
368 | |
---|
369 | |
---|
370 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
---|
371 | # ---------------------------------------- |
---|
372 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
---|
373 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
---|
374 | # script with STATUS, using 1 if that was 0. |
---|
375 | as_fn_error () |
---|
376 | { |
---|
377 | as_status=$1; test $as_status -eq 0 && as_status=1 |
---|
378 | if test "$4"; then |
---|
379 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
380 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
---|
381 | fi |
---|
382 | $as_echo "$as_me: error: $2" >&2 |
---|
383 | as_fn_exit $as_status |
---|
384 | } # as_fn_error |
---|
385 | |
---|
386 | if expr a : '\(a\)' >/dev/null 2>&1 && |
---|
387 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
---|
388 | as_expr=expr |
---|
389 | else |
---|
390 | as_expr=false |
---|
391 | fi |
---|
392 | |
---|
393 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
---|
394 | as_basename=basename |
---|
395 | else |
---|
396 | as_basename=false |
---|
397 | fi |
---|
398 | |
---|
399 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
---|
400 | as_dirname=dirname |
---|
401 | else |
---|
402 | as_dirname=false |
---|
403 | fi |
---|
404 | |
---|
405 | as_me=`$as_basename -- "$0" || |
---|
406 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
407 | X"$0" : 'X\(//\)$' \| \ |
---|
408 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
---|
409 | $as_echo X/"$0" | |
---|
410 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
---|
411 | s//\1/ |
---|
412 | q |
---|
413 | } |
---|
414 | /^X\/\(\/\/\)$/{ |
---|
415 | s//\1/ |
---|
416 | q |
---|
417 | } |
---|
418 | /^X\/\(\/\).*/{ |
---|
419 | s//\1/ |
---|
420 | q |
---|
421 | } |
---|
422 | s/.*/./; q'` |
---|
423 | |
---|
424 | # Avoid depending upon Character Ranges. |
---|
425 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
426 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
427 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
428 | as_cr_digits='0123456789' |
---|
429 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
430 | |
---|
431 | |
---|
432 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
---|
433 | as_lineno_2=$LINENO as_lineno_2a=$LINENO |
---|
434 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
---|
435 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
---|
436 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
---|
437 | sed -n ' |
---|
438 | p |
---|
439 | /[$]LINENO/= |
---|
440 | ' <$as_myself | |
---|
441 | sed ' |
---|
442 | s/[$]LINENO.*/&-/ |
---|
443 | t lineno |
---|
444 | b |
---|
445 | :lineno |
---|
446 | N |
---|
447 | :loop |
---|
448 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
---|
449 | t loop |
---|
450 | s/-\n.*// |
---|
451 | ' >$as_me.lineno && |
---|
452 | chmod +x "$as_me.lineno" || |
---|
453 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
---|
454 | |
---|
455 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
456 | # (the dirname of $[0] is not the place where we might find the |
---|
457 | # original and so on. Autoconf is especially sensitive to this). |
---|
458 | . "./$as_me.lineno" |
---|
459 | # Exit status is that of the last command. |
---|
460 | exit |
---|
461 | } |
---|
462 | |
---|
463 | ECHO_C= ECHO_N= ECHO_T= |
---|
464 | case `echo -n x` in #((((( |
---|
465 | -n*) |
---|
466 | case `echo 'xy\c'` in |
---|
467 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
---|
468 | xy) ECHO_C='\c';; |
---|
469 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
---|
470 | ECHO_T=' ';; |
---|
471 | esac;; |
---|
472 | *) |
---|
473 | ECHO_N='-n';; |
---|
474 | esac |
---|
475 | |
---|
476 | rm -f conf$$ conf$$.exe conf$$.file |
---|
477 | if test -d conf$$.dir; then |
---|
478 | rm -f conf$$.dir/conf$$.file |
---|
479 | else |
---|
480 | rm -f conf$$.dir |
---|
481 | mkdir conf$$.dir 2>/dev/null |
---|
482 | fi |
---|
483 | if (echo >conf$$.file) 2>/dev/null; then |
---|
484 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
485 | as_ln_s='ln -s' |
---|
486 | # ... but there are two gotchas: |
---|
487 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
---|
488 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
---|
489 | # In both cases, we have to default to `cp -p'. |
---|
490 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
---|
491 | as_ln_s='cp -p' |
---|
492 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
493 | as_ln_s=ln |
---|
494 | else |
---|
495 | as_ln_s='cp -p' |
---|
496 | fi |
---|
497 | else |
---|
498 | as_ln_s='cp -p' |
---|
499 | fi |
---|
500 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
---|
501 | rmdir conf$$.dir 2>/dev/null |
---|
502 | |
---|
503 | if mkdir -p . 2>/dev/null; then |
---|
504 | as_mkdir_p='mkdir -p "$as_dir"' |
---|
505 | else |
---|
506 | test -d ./-p && rmdir ./-p |
---|
507 | as_mkdir_p=false |
---|
508 | fi |
---|
509 | |
---|
510 | if test -x / >/dev/null 2>&1; then |
---|
511 | as_test_x='test -x' |
---|
512 | else |
---|
513 | if ls -dL / >/dev/null 2>&1; then |
---|
514 | as_ls_L_option=L |
---|
515 | else |
---|
516 | as_ls_L_option= |
---|
517 | fi |
---|
518 | as_test_x=' |
---|
519 | eval sh -c '\'' |
---|
520 | if test -d "$1"; then |
---|
521 | test -d "$1/."; |
---|
522 | else |
---|
523 | case $1 in #( |
---|
524 | -*)set "./$1";; |
---|
525 | esac; |
---|
526 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
---|
527 | ???[sx]*):;;*)false;;esac;fi |
---|
528 | '\'' sh |
---|
529 | ' |
---|
530 | fi |
---|
531 | as_executable_p=$as_test_x |
---|
532 | |
---|
533 | # Sed expression to map a string onto a valid CPP name. |
---|
534 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
535 | |
---|
536 | # Sed expression to map a string onto a valid variable name. |
---|
537 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
538 | |
---|
539 | |
---|
540 | test -n "$DJDIR" || exec 7<&0 </dev/null |
---|
541 | exec 6>&1 |
---|
542 | |
---|
543 | # Name of the host. |
---|
544 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
---|
545 | # so uname gets run too. |
---|
546 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
547 | |
---|
548 | # |
---|
549 | # Initializations. |
---|
550 | # |
---|
551 | ac_default_prefix=/usr/local |
---|
552 | ac_clean_files= |
---|
553 | ac_config_libobj_dir=. |
---|
554 | LIBOBJS= |
---|
555 | cross_compiling=no |
---|
556 | subdirs= |
---|
557 | MFLAGS= |
---|
558 | MAKEFLAGS= |
---|
559 | |
---|
560 | # Identity of this package. |
---|
561 | PACKAGE_NAME='cfa-cc' |
---|
562 | PACKAGE_TARNAME='cfa-cc' |
---|
563 | PACKAGE_VERSION='1.0.0' |
---|
564 | PACKAGE_STRING='cfa-cc 1.0.0' |
---|
565 | PACKAGE_BUGREPORT='cforall@plg.uwaterloo.ca' |
---|
566 | PACKAGE_URL='' |
---|
567 | |
---|
568 | ac_unique_file="src/main.cc" |
---|
569 | # Factoring default headers for most tests. |
---|
570 | ac_includes_default="\ |
---|
571 | #include <stdio.h> |
---|
572 | #ifdef HAVE_SYS_TYPES_H |
---|
573 | # include <sys/types.h> |
---|
574 | #endif |
---|
575 | #ifdef HAVE_SYS_STAT_H |
---|
576 | # include <sys/stat.h> |
---|
577 | #endif |
---|
578 | #ifdef STDC_HEADERS |
---|
579 | # include <stdlib.h> |
---|
580 | # include <stddef.h> |
---|
581 | #else |
---|
582 | # ifdef HAVE_STDLIB_H |
---|
583 | # include <stdlib.h> |
---|
584 | # endif |
---|
585 | #endif |
---|
586 | #ifdef HAVE_STRING_H |
---|
587 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
---|
588 | # include <memory.h> |
---|
589 | # endif |
---|
590 | # include <string.h> |
---|
591 | #endif |
---|
592 | #ifdef HAVE_STRINGS_H |
---|
593 | # include <strings.h> |
---|
594 | #endif |
---|
595 | #ifdef HAVE_INTTYPES_H |
---|
596 | # include <inttypes.h> |
---|
597 | #endif |
---|
598 | #ifdef HAVE_STDINT_H |
---|
599 | # include <stdint.h> |
---|
600 | #endif |
---|
601 | #ifdef HAVE_UNISTD_H |
---|
602 | # include <unistd.h> |
---|
603 | #endif" |
---|
604 | |
---|
605 | ac_subst_vars='am__EXEEXT_FALSE |
---|
606 | am__EXEEXT_TRUE |
---|
607 | LTLIBOBJS |
---|
608 | LIBOBJS |
---|
609 | ALLOCA |
---|
610 | EGREP |
---|
611 | GREP |
---|
612 | CPP |
---|
613 | RANLIB |
---|
614 | LEXLIB |
---|
615 | LEX_OUTPUT_ROOT |
---|
616 | LEX |
---|
617 | YFLAGS |
---|
618 | YACC |
---|
619 | am__fastdepCC_FALSE |
---|
620 | am__fastdepCC_TRUE |
---|
621 | CCDEPMODE |
---|
622 | ac_ct_CC |
---|
623 | CFLAGS |
---|
624 | CC |
---|
625 | am__fastdepCXX_FALSE |
---|
626 | am__fastdepCXX_TRUE |
---|
627 | CXXDEPMODE |
---|
628 | am__nodep |
---|
629 | AMDEPBACKSLASH |
---|
630 | AMDEP_FALSE |
---|
631 | AMDEP_TRUE |
---|
632 | am__quote |
---|
633 | am__include |
---|
634 | DEPDIR |
---|
635 | OBJEXT |
---|
636 | EXEEXT |
---|
637 | ac_ct_CXX |
---|
638 | CPPFLAGS |
---|
639 | LDFLAGS |
---|
640 | CXXFLAGS |
---|
641 | CXX |
---|
642 | CFA_LIBDIR |
---|
643 | CFA_BINDIR |
---|
644 | CFA_INCDIR |
---|
645 | CFA_PREFIX |
---|
646 | BACKEND_CC |
---|
647 | GCC_PATH |
---|
648 | MAINT |
---|
649 | MAINTAINER_MODE_FALSE |
---|
650 | MAINTAINER_MODE_TRUE |
---|
651 | am__untar |
---|
652 | am__tar |
---|
653 | AMTAR |
---|
654 | am__leading_dot |
---|
655 | SET_MAKE |
---|
656 | AWK |
---|
657 | mkdir_p |
---|
658 | MKDIR_P |
---|
659 | INSTALL_STRIP_PROGRAM |
---|
660 | STRIP |
---|
661 | install_sh |
---|
662 | MAKEINFO |
---|
663 | AUTOHEADER |
---|
664 | AUTOMAKE |
---|
665 | AUTOCONF |
---|
666 | ACLOCAL |
---|
667 | VERSION |
---|
668 | PACKAGE |
---|
669 | CYGPATH_W |
---|
670 | am__isrc |
---|
671 | INSTALL_DATA |
---|
672 | INSTALL_SCRIPT |
---|
673 | INSTALL_PROGRAM |
---|
674 | target_alias |
---|
675 | host_alias |
---|
676 | build_alias |
---|
677 | LIBS |
---|
678 | ECHO_T |
---|
679 | ECHO_N |
---|
680 | ECHO_C |
---|
681 | DEFS |
---|
682 | mandir |
---|
683 | localedir |
---|
684 | libdir |
---|
685 | psdir |
---|
686 | pdfdir |
---|
687 | dvidir |
---|
688 | htmldir |
---|
689 | infodir |
---|
690 | docdir |
---|
691 | oldincludedir |
---|
692 | includedir |
---|
693 | localstatedir |
---|
694 | sharedstatedir |
---|
695 | sysconfdir |
---|
696 | datadir |
---|
697 | datarootdir |
---|
698 | libexecdir |
---|
699 | sbindir |
---|
700 | bindir |
---|
701 | program_transform_name |
---|
702 | prefix |
---|
703 | exec_prefix |
---|
704 | PACKAGE_URL |
---|
705 | PACKAGE_BUGREPORT |
---|
706 | PACKAGE_STRING |
---|
707 | PACKAGE_VERSION |
---|
708 | PACKAGE_TARNAME |
---|
709 | PACKAGE_NAME |
---|
710 | PATH_SEPARATOR |
---|
711 | SHELL' |
---|
712 | ac_subst_files='' |
---|
713 | ac_user_opts=' |
---|
714 | enable_option_checking |
---|
715 | enable_maintainer_mode |
---|
716 | with_backend_compiler |
---|
717 | enable_dependency_tracking |
---|
718 | ' |
---|
719 | ac_precious_vars='build_alias |
---|
720 | host_alias |
---|
721 | target_alias |
---|
722 | CXX |
---|
723 | CXXFLAGS |
---|
724 | LDFLAGS |
---|
725 | LIBS |
---|
726 | CPPFLAGS |
---|
727 | CCC |
---|
728 | CC |
---|
729 | CFLAGS |
---|
730 | YACC |
---|
731 | YFLAGS |
---|
732 | CPP' |
---|
733 | |
---|
734 | |
---|
735 | # Initialize some variables set by options. |
---|
736 | ac_init_help= |
---|
737 | ac_init_version=false |
---|
738 | ac_unrecognized_opts= |
---|
739 | ac_unrecognized_sep= |
---|
740 | # The variables have the same names as the options, with |
---|
741 | # dashes changed to underlines. |
---|
742 | cache_file=/dev/null |
---|
743 | exec_prefix=NONE |
---|
744 | no_create= |
---|
745 | no_recursion= |
---|
746 | prefix=NONE |
---|
747 | program_prefix=NONE |
---|
748 | program_suffix=NONE |
---|
749 | program_transform_name=s,x,x, |
---|
750 | silent= |
---|
751 | site= |
---|
752 | srcdir= |
---|
753 | verbose= |
---|
754 | x_includes=NONE |
---|
755 | x_libraries=NONE |
---|
756 | |
---|
757 | # Installation directory options. |
---|
758 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
---|
759 | # and all the variables that are supposed to be based on exec_prefix |
---|
760 | # by default will actually change. |
---|
761 | # Use braces instead of parens because sh, perl, etc. also accept them. |
---|
762 | # (The list follows the same order as the GNU Coding Standards.) |
---|
763 | bindir='${exec_prefix}/bin' |
---|
764 | sbindir='${exec_prefix}/sbin' |
---|
765 | libexecdir='${exec_prefix}/libexec' |
---|
766 | datarootdir='${prefix}/share' |
---|
767 | datadir='${datarootdir}' |
---|
768 | sysconfdir='${prefix}/etc' |
---|
769 | sharedstatedir='${prefix}/com' |
---|
770 | localstatedir='${prefix}/var' |
---|
771 | includedir='${prefix}/include' |
---|
772 | oldincludedir='/usr/include' |
---|
773 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
---|
774 | infodir='${datarootdir}/info' |
---|
775 | htmldir='${docdir}' |
---|
776 | dvidir='${docdir}' |
---|
777 | pdfdir='${docdir}' |
---|
778 | psdir='${docdir}' |
---|
779 | libdir='${exec_prefix}/lib' |
---|
780 | localedir='${datarootdir}/locale' |
---|
781 | mandir='${datarootdir}/man' |
---|
782 | |
---|
783 | ac_prev= |
---|
784 | ac_dashdash= |
---|
785 | for ac_option |
---|
786 | do |
---|
787 | # If the previous option needs an argument, assign it. |
---|
788 | if test -n "$ac_prev"; then |
---|
789 | eval $ac_prev=\$ac_option |
---|
790 | ac_prev= |
---|
791 | continue |
---|
792 | fi |
---|
793 | |
---|
794 | case $ac_option in |
---|
795 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
---|
796 | *=) ac_optarg= ;; |
---|
797 | *) ac_optarg=yes ;; |
---|
798 | esac |
---|
799 | |
---|
800 | # Accept the important Cygnus configure options, so we can diagnose typos. |
---|
801 | |
---|
802 | case $ac_dashdash$ac_option in |
---|
803 | --) |
---|
804 | ac_dashdash=yes ;; |
---|
805 | |
---|
806 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
---|
807 | ac_prev=bindir ;; |
---|
808 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
---|
809 | bindir=$ac_optarg ;; |
---|
810 | |
---|
811 | -build | --build | --buil | --bui | --bu) |
---|
812 | ac_prev=build_alias ;; |
---|
813 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
---|
814 | build_alias=$ac_optarg ;; |
---|
815 | |
---|
816 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
817 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
818 | ac_prev=cache_file ;; |
---|
819 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
820 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
821 | cache_file=$ac_optarg ;; |
---|
822 | |
---|
823 | --config-cache | -C) |
---|
824 | cache_file=config.cache ;; |
---|
825 | |
---|
826 | -datadir | --datadir | --datadi | --datad) |
---|
827 | ac_prev=datadir ;; |
---|
828 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
---|
829 | datadir=$ac_optarg ;; |
---|
830 | |
---|
831 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
---|
832 | | --dataroo | --dataro | --datar) |
---|
833 | ac_prev=datarootdir ;; |
---|
834 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
---|
835 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
---|
836 | datarootdir=$ac_optarg ;; |
---|
837 | |
---|
838 | -disable-* | --disable-*) |
---|
839 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
---|
840 | # Reject names that are not valid shell variable names. |
---|
841 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
842 | as_fn_error $? "invalid feature name: $ac_useropt" |
---|
843 | ac_useropt_orig=$ac_useropt |
---|
844 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
845 | case $ac_user_opts in |
---|
846 | *" |
---|
847 | "enable_$ac_useropt" |
---|
848 | "*) ;; |
---|
849 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
---|
850 | ac_unrecognized_sep=', ';; |
---|
851 | esac |
---|
852 | eval enable_$ac_useropt=no ;; |
---|
853 | |
---|
854 | -docdir | --docdir | --docdi | --doc | --do) |
---|
855 | ac_prev=docdir ;; |
---|
856 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
---|
857 | docdir=$ac_optarg ;; |
---|
858 | |
---|
859 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
---|
860 | ac_prev=dvidir ;; |
---|
861 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
---|
862 | dvidir=$ac_optarg ;; |
---|
863 | |
---|
864 | -enable-* | --enable-*) |
---|
865 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
---|
866 | # Reject names that are not valid shell variable names. |
---|
867 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
868 | as_fn_error $? "invalid feature name: $ac_useropt" |
---|
869 | ac_useropt_orig=$ac_useropt |
---|
870 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
871 | case $ac_user_opts in |
---|
872 | *" |
---|
873 | "enable_$ac_useropt" |
---|
874 | "*) ;; |
---|
875 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
---|
876 | ac_unrecognized_sep=', ';; |
---|
877 | esac |
---|
878 | eval enable_$ac_useropt=\$ac_optarg ;; |
---|
879 | |
---|
880 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
---|
881 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
---|
882 | | --exec | --exe | --ex) |
---|
883 | ac_prev=exec_prefix ;; |
---|
884 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
---|
885 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
---|
886 | | --exec=* | --exe=* | --ex=*) |
---|
887 | exec_prefix=$ac_optarg ;; |
---|
888 | |
---|
889 | -gas | --gas | --ga | --g) |
---|
890 | # Obsolete; use --with-gas. |
---|
891 | with_gas=yes ;; |
---|
892 | |
---|
893 | -help | --help | --hel | --he | -h) |
---|
894 | ac_init_help=long ;; |
---|
895 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
---|
896 | ac_init_help=recursive ;; |
---|
897 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
---|
898 | ac_init_help=short ;; |
---|
899 | |
---|
900 | -host | --host | --hos | --ho) |
---|
901 | ac_prev=host_alias ;; |
---|
902 | -host=* | --host=* | --hos=* | --ho=*) |
---|
903 | host_alias=$ac_optarg ;; |
---|
904 | |
---|
905 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
---|
906 | ac_prev=htmldir ;; |
---|
907 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
---|
908 | | --ht=*) |
---|
909 | htmldir=$ac_optarg ;; |
---|
910 | |
---|
911 | -includedir | --includedir | --includedi | --included | --include \ |
---|
912 | | --includ | --inclu | --incl | --inc) |
---|
913 | ac_prev=includedir ;; |
---|
914 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
---|
915 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
---|
916 | includedir=$ac_optarg ;; |
---|
917 | |
---|
918 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
---|
919 | ac_prev=infodir ;; |
---|
920 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
---|
921 | infodir=$ac_optarg ;; |
---|
922 | |
---|
923 | -libdir | --libdir | --libdi | --libd) |
---|
924 | ac_prev=libdir ;; |
---|
925 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
---|
926 | libdir=$ac_optarg ;; |
---|
927 | |
---|
928 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
---|
929 | | --libexe | --libex | --libe) |
---|
930 | ac_prev=libexecdir ;; |
---|
931 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
---|
932 | | --libexe=* | --libex=* | --libe=*) |
---|
933 | libexecdir=$ac_optarg ;; |
---|
934 | |
---|
935 | -localedir | --localedir | --localedi | --localed | --locale) |
---|
936 | ac_prev=localedir ;; |
---|
937 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
---|
938 | localedir=$ac_optarg ;; |
---|
939 | |
---|
940 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
---|
941 | | --localstate | --localstat | --localsta | --localst | --locals) |
---|
942 | ac_prev=localstatedir ;; |
---|
943 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
---|
944 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
---|
945 | localstatedir=$ac_optarg ;; |
---|
946 | |
---|
947 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
---|
948 | ac_prev=mandir ;; |
---|
949 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
---|
950 | mandir=$ac_optarg ;; |
---|
951 | |
---|
952 | -nfp | --nfp | --nf) |
---|
953 | # Obsolete; use --without-fp. |
---|
954 | with_fp=no ;; |
---|
955 | |
---|
956 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
957 | | --no-cr | --no-c | -n) |
---|
958 | no_create=yes ;; |
---|
959 | |
---|
960 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
961 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
---|
962 | no_recursion=yes ;; |
---|
963 | |
---|
964 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
---|
965 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
---|
966 | | --oldin | --oldi | --old | --ol | --o) |
---|
967 | ac_prev=oldincludedir ;; |
---|
968 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
---|
969 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
---|
970 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
---|
971 | oldincludedir=$ac_optarg ;; |
---|
972 | |
---|
973 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
---|
974 | ac_prev=prefix ;; |
---|
975 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
---|
976 | prefix=$ac_optarg ;; |
---|
977 | |
---|
978 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
---|
979 | | --program-pre | --program-pr | --program-p) |
---|
980 | ac_prev=program_prefix ;; |
---|
981 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
---|
982 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
---|
983 | program_prefix=$ac_optarg ;; |
---|
984 | |
---|
985 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
---|
986 | | --program-suf | --program-su | --program-s) |
---|
987 | ac_prev=program_suffix ;; |
---|
988 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
---|
989 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
---|
990 | program_suffix=$ac_optarg ;; |
---|
991 | |
---|
992 | -program-transform-name | --program-transform-name \ |
---|
993 | | --program-transform-nam | --program-transform-na \ |
---|
994 | | --program-transform-n | --program-transform- \ |
---|
995 | | --program-transform | --program-transfor \ |
---|
996 | | --program-transfo | --program-transf \ |
---|
997 | | --program-trans | --program-tran \ |
---|
998 | | --progr-tra | --program-tr | --program-t) |
---|
999 | ac_prev=program_transform_name ;; |
---|
1000 | -program-transform-name=* | --program-transform-name=* \ |
---|
1001 | | --program-transform-nam=* | --program-transform-na=* \ |
---|
1002 | | --program-transform-n=* | --program-transform-=* \ |
---|
1003 | | --program-transform=* | --program-transfor=* \ |
---|
1004 | | --program-transfo=* | --program-transf=* \ |
---|
1005 | | --program-trans=* | --program-tran=* \ |
---|
1006 | | --progr-tra=* | --program-tr=* | --program-t=*) |
---|
1007 | program_transform_name=$ac_optarg ;; |
---|
1008 | |
---|
1009 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
---|
1010 | ac_prev=pdfdir ;; |
---|
1011 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
---|
1012 | pdfdir=$ac_optarg ;; |
---|
1013 | |
---|
1014 | -psdir | --psdir | --psdi | --psd | --ps) |
---|
1015 | ac_prev=psdir ;; |
---|
1016 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
---|
1017 | psdir=$ac_optarg ;; |
---|
1018 | |
---|
1019 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
1020 | | -silent | --silent | --silen | --sile | --sil) |
---|
1021 | silent=yes ;; |
---|
1022 | |
---|
1023 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
---|
1024 | ac_prev=sbindir ;; |
---|
1025 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
---|
1026 | | --sbi=* | --sb=*) |
---|
1027 | sbindir=$ac_optarg ;; |
---|
1028 | |
---|
1029 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
---|
1030 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
---|
1031 | | --sharedst | --shareds | --shared | --share | --shar \ |
---|
1032 | | --sha | --sh) |
---|
1033 | ac_prev=sharedstatedir ;; |
---|
1034 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
---|
1035 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
---|
1036 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
---|
1037 | | --sha=* | --sh=*) |
---|
1038 | sharedstatedir=$ac_optarg ;; |
---|
1039 | |
---|
1040 | -site | --site | --sit) |
---|
1041 | ac_prev=site ;; |
---|
1042 | -site=* | --site=* | --sit=*) |
---|
1043 | site=$ac_optarg ;; |
---|
1044 | |
---|
1045 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
1046 | ac_prev=srcdir ;; |
---|
1047 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
1048 | srcdir=$ac_optarg ;; |
---|
1049 | |
---|
1050 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
---|
1051 | | --syscon | --sysco | --sysc | --sys | --sy) |
---|
1052 | ac_prev=sysconfdir ;; |
---|
1053 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
---|
1054 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
---|
1055 | sysconfdir=$ac_optarg ;; |
---|
1056 | |
---|
1057 | -target | --target | --targe | --targ | --tar | --ta | --t) |
---|
1058 | ac_prev=target_alias ;; |
---|
1059 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
---|
1060 | target_alias=$ac_optarg ;; |
---|
1061 | |
---|
1062 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
---|
1063 | verbose=yes ;; |
---|
1064 | |
---|
1065 | -version | --version | --versio | --versi | --vers | -V) |
---|
1066 | ac_init_version=: ;; |
---|
1067 | |
---|
1068 | -with-* | --with-*) |
---|
1069 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
---|
1070 | # Reject names that are not valid shell variable names. |
---|
1071 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
1072 | as_fn_error $? "invalid package name: $ac_useropt" |
---|
1073 | ac_useropt_orig=$ac_useropt |
---|
1074 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
1075 | case $ac_user_opts in |
---|
1076 | *" |
---|
1077 | "with_$ac_useropt" |
---|
1078 | "*) ;; |
---|
1079 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
---|
1080 | ac_unrecognized_sep=', ';; |
---|
1081 | esac |
---|
1082 | eval with_$ac_useropt=\$ac_optarg ;; |
---|
1083 | |
---|
1084 | -without-* | --without-*) |
---|
1085 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
---|
1086 | # Reject names that are not valid shell variable names. |
---|
1087 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
1088 | as_fn_error $? "invalid package name: $ac_useropt" |
---|
1089 | ac_useropt_orig=$ac_useropt |
---|
1090 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
1091 | case $ac_user_opts in |
---|
1092 | *" |
---|
1093 | "with_$ac_useropt" |
---|
1094 | "*) ;; |
---|
1095 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
---|
1096 | ac_unrecognized_sep=', ';; |
---|
1097 | esac |
---|
1098 | eval with_$ac_useropt=no ;; |
---|
1099 | |
---|
1100 | --x) |
---|
1101 | # Obsolete; use --with-x. |
---|
1102 | with_x=yes ;; |
---|
1103 | |
---|
1104 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
---|
1105 | | --x-incl | --x-inc | --x-in | --x-i) |
---|
1106 | ac_prev=x_includes ;; |
---|
1107 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
---|
1108 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
---|
1109 | x_includes=$ac_optarg ;; |
---|
1110 | |
---|
1111 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
---|
1112 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
---|
1113 | ac_prev=x_libraries ;; |
---|
1114 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
---|
1115 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
---|
1116 | x_libraries=$ac_optarg ;; |
---|
1117 | |
---|
1118 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
---|
1119 | Try \`$0 --help' for more information" |
---|
1120 | ;; |
---|
1121 | |
---|
1122 | *=*) |
---|
1123 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
---|
1124 | # Reject names that are not valid shell variable names. |
---|
1125 | case $ac_envvar in #( |
---|
1126 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
---|
1127 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
---|
1128 | esac |
---|
1129 | eval $ac_envvar=\$ac_optarg |
---|
1130 | export $ac_envvar ;; |
---|
1131 | |
---|
1132 | *) |
---|
1133 | # FIXME: should be removed in autoconf 3.0. |
---|
1134 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
---|
1135 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
---|
1136 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
---|
1137 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
---|
1138 | ;; |
---|
1139 | |
---|
1140 | esac |
---|
1141 | done |
---|
1142 | |
---|
1143 | if test -n "$ac_prev"; then |
---|
1144 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
---|
1145 | as_fn_error $? "missing argument to $ac_option" |
---|
1146 | fi |
---|
1147 | |
---|
1148 | if test -n "$ac_unrecognized_opts"; then |
---|
1149 | case $enable_option_checking in |
---|
1150 | no) ;; |
---|
1151 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
---|
1152 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
---|
1153 | esac |
---|
1154 | fi |
---|
1155 | |
---|
1156 | # Check all directory arguments for consistency. |
---|
1157 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
---|
1158 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
---|
1159 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
---|
1160 | libdir localedir mandir |
---|
1161 | do |
---|
1162 | eval ac_val=\$$ac_var |
---|
1163 | # Remove trailing slashes. |
---|
1164 | case $ac_val in |
---|
1165 | */ ) |
---|
1166 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
---|
1167 | eval $ac_var=\$ac_val;; |
---|
1168 | esac |
---|
1169 | # Be sure to have absolute directory names. |
---|
1170 | case $ac_val in |
---|
1171 | [\\/$]* | ?:[\\/]* ) continue;; |
---|
1172 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
---|
1173 | esac |
---|
1174 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
---|
1175 | done |
---|
1176 | |
---|
1177 | # There might be people who depend on the old broken behavior: `$host' |
---|
1178 | # used to hold the argument of --host etc. |
---|
1179 | # FIXME: To remove some day. |
---|
1180 | build=$build_alias |
---|
1181 | host=$host_alias |
---|
1182 | target=$target_alias |
---|
1183 | |
---|
1184 | # FIXME: To remove some day. |
---|
1185 | if test "x$host_alias" != x; then |
---|
1186 | if test "x$build_alias" = x; then |
---|
1187 | cross_compiling=maybe |
---|
1188 | $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. |
---|
1189 | If a cross compiler is detected then cross compile mode will be used" >&2 |
---|
1190 | elif test "x$build_alias" != "x$host_alias"; then |
---|
1191 | cross_compiling=yes |
---|
1192 | fi |
---|
1193 | fi |
---|
1194 | |
---|
1195 | ac_tool_prefix= |
---|
1196 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
---|
1197 | |
---|
1198 | test "$silent" = yes && exec 6>/dev/null |
---|
1199 | |
---|
1200 | |
---|
1201 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
---|
1202 | ac_ls_di=`ls -di .` && |
---|
1203 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
---|
1204 | as_fn_error $? "working directory cannot be determined" |
---|
1205 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
---|
1206 | as_fn_error $? "pwd does not report name of working directory" |
---|
1207 | |
---|
1208 | |
---|
1209 | # Find the source files, if location was not specified. |
---|
1210 | if test -z "$srcdir"; then |
---|
1211 | ac_srcdir_defaulted=yes |
---|
1212 | # Try the directory containing this script, then the parent directory. |
---|
1213 | ac_confdir=`$as_dirname -- "$as_myself" || |
---|
1214 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
1215 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
---|
1216 | X"$as_myself" : 'X\(//\)$' \| \ |
---|
1217 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
---|
1218 | $as_echo X"$as_myself" | |
---|
1219 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
1220 | s//\1/ |
---|
1221 | q |
---|
1222 | } |
---|
1223 | /^X\(\/\/\)[^/].*/{ |
---|
1224 | s//\1/ |
---|
1225 | q |
---|
1226 | } |
---|
1227 | /^X\(\/\/\)$/{ |
---|
1228 | s//\1/ |
---|
1229 | q |
---|
1230 | } |
---|
1231 | /^X\(\/\).*/{ |
---|
1232 | s//\1/ |
---|
1233 | q |
---|
1234 | } |
---|
1235 | s/.*/./; q'` |
---|
1236 | srcdir=$ac_confdir |
---|
1237 | if test ! -r "$srcdir/$ac_unique_file"; then |
---|
1238 | srcdir=.. |
---|
1239 | fi |
---|
1240 | else |
---|
1241 | ac_srcdir_defaulted=no |
---|
1242 | fi |
---|
1243 | if test ! -r "$srcdir/$ac_unique_file"; then |
---|
1244 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
---|
1245 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
---|
1246 | fi |
---|
1247 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
---|
1248 | ac_abs_confdir=`( |
---|
1249 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
---|
1250 | pwd)` |
---|
1251 | # When building in place, set srcdir=. |
---|
1252 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
---|
1253 | srcdir=. |
---|
1254 | fi |
---|
1255 | # Remove unnecessary trailing slashes from srcdir. |
---|
1256 | # Double slashes in file names in object file debugging info |
---|
1257 | # mess up M-x gdb in Emacs. |
---|
1258 | case $srcdir in |
---|
1259 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
---|
1260 | esac |
---|
1261 | for ac_var in $ac_precious_vars; do |
---|
1262 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
---|
1263 | eval ac_env_${ac_var}_value=\$${ac_var} |
---|
1264 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
---|
1265 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
---|
1266 | done |
---|
1267 | |
---|
1268 | # |
---|
1269 | # Report the --help message. |
---|
1270 | # |
---|
1271 | if test "$ac_init_help" = "long"; then |
---|
1272 | # Omit some internal or obsolete options to make the list less imposing. |
---|
1273 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
1274 | cat <<_ACEOF |
---|
1275 | \`configure' configures cfa-cc 1.0.0 to adapt to many kinds of systems. |
---|
1276 | |
---|
1277 | Usage: $0 [OPTION]... [VAR=VALUE]... |
---|
1278 | |
---|
1279 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
---|
1280 | VAR=VALUE. See below for descriptions of some of the useful variables. |
---|
1281 | |
---|
1282 | Defaults for the options are specified in brackets. |
---|
1283 | |
---|
1284 | Configuration: |
---|
1285 | -h, --help display this help and exit |
---|
1286 | --help=short display options specific to this package |
---|
1287 | --help=recursive display the short help of all the included packages |
---|
1288 | -V, --version display version information and exit |
---|
1289 | -q, --quiet, --silent do not print \`checking ...' messages |
---|
1290 | --cache-file=FILE cache test results in FILE [disabled] |
---|
1291 | -C, --config-cache alias for \`--cache-file=config.cache' |
---|
1292 | -n, --no-create do not create output files |
---|
1293 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
---|
1294 | |
---|
1295 | Installation directories: |
---|
1296 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
1297 | [$ac_default_prefix] |
---|
1298 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
1299 | [PREFIX] |
---|
1300 | |
---|
1301 | By default, \`make install' will install all the files in |
---|
1302 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
---|
1303 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
---|
1304 | for instance \`--prefix=\$HOME'. |
---|
1305 | |
---|
1306 | For better control, use the options below. |
---|
1307 | |
---|
1308 | Fine tuning of the installation directories: |
---|
1309 | --bindir=DIR user executables [EPREFIX/bin] |
---|
1310 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
---|
1311 | --libexecdir=DIR program executables [EPREFIX/libexec] |
---|
1312 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
---|
1313 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
---|
1314 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
---|
1315 | --libdir=DIR object code libraries [EPREFIX/lib] |
---|
1316 | --includedir=DIR C header files [PREFIX/include] |
---|
1317 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
---|
1318 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
---|
1319 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
---|
1320 | --infodir=DIR info documentation [DATAROOTDIR/info] |
---|
1321 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
---|
1322 | --mandir=DIR man documentation [DATAROOTDIR/man] |
---|
1323 | --docdir=DIR documentation root [DATAROOTDIR/doc/cfa-cc] |
---|
1324 | --htmldir=DIR html documentation [DOCDIR] |
---|
1325 | --dvidir=DIR dvi documentation [DOCDIR] |
---|
1326 | --pdfdir=DIR pdf documentation [DOCDIR] |
---|
1327 | --psdir=DIR ps documentation [DOCDIR] |
---|
1328 | _ACEOF |
---|
1329 | |
---|
1330 | cat <<\_ACEOF |
---|
1331 | |
---|
1332 | Program names: |
---|
1333 | --program-prefix=PREFIX prepend PREFIX to installed program names |
---|
1334 | --program-suffix=SUFFIX append SUFFIX to installed program names |
---|
1335 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
---|
1336 | _ACEOF |
---|
1337 | fi |
---|
1338 | |
---|
1339 | if test -n "$ac_init_help"; then |
---|
1340 | case $ac_init_help in |
---|
1341 | short | recursive ) echo "Configuration of cfa-cc 1.0.0:";; |
---|
1342 | esac |
---|
1343 | cat <<\_ACEOF |
---|
1344 | |
---|
1345 | Optional Features: |
---|
1346 | --disable-option-checking ignore unrecognized --enable/--with options |
---|
1347 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
---|
1348 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
---|
1349 | --disable-maintainer-mode disable make rules and dependencies not useful |
---|
1350 | (and sometimes confusing) to the casual installer |
---|
1351 | --disable-dependency-tracking speeds up one-time build |
---|
1352 | --enable-dependency-tracking do not reject slow dependency extractors |
---|
1353 | |
---|
1354 | Optional Packages: |
---|
1355 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
1356 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
1357 | --with-backend-compiler=PROGRAM PROGRAM that performs the final code compilation (must be gcc-compatible) |
---|
1358 | |
---|
1359 | Some influential environment variables: |
---|
1360 | CXX C++ compiler command |
---|
1361 | CXXFLAGS C++ compiler flags |
---|
1362 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
---|
1363 | nonstandard directory <lib dir> |
---|
1364 | LIBS libraries to pass to the linker, e.g. -l<library> |
---|
1365 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
---|
1366 | you have headers in a nonstandard directory <include dir> |
---|
1367 | CC C compiler command |
---|
1368 | CFLAGS C compiler flags |
---|
1369 | YACC The `Yet Another Compiler Compiler' implementation to use. |
---|
1370 | Defaults to the first program found out of: `bison -y', `byacc', |
---|
1371 | `yacc'. |
---|
1372 | YFLAGS The list of arguments that will be passed by default to $YACC. |
---|
1373 | This script will default YFLAGS to the empty string to avoid a |
---|
1374 | default value of `-d' given by some make applications. |
---|
1375 | CPP C preprocessor |
---|
1376 | |
---|
1377 | Use these variables to override the choices made by `configure' or to help |
---|
1378 | it to find libraries and programs with nonstandard names/locations. |
---|
1379 | |
---|
1380 | Report bugs to <cforall@plg.uwaterloo.ca>. |
---|
1381 | _ACEOF |
---|
1382 | ac_status=$? |
---|
1383 | fi |
---|
1384 | |
---|
1385 | if test "$ac_init_help" = "recursive"; then |
---|
1386 | # If there are subdirs, report their specific --help. |
---|
1387 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
---|
1388 | test -d "$ac_dir" || |
---|
1389 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
---|
1390 | continue |
---|
1391 | ac_builddir=. |
---|
1392 | |
---|
1393 | case "$ac_dir" in |
---|
1394 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
1395 | *) |
---|
1396 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
---|
1397 | # A ".." for each directory in $ac_dir_suffix. |
---|
1398 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
---|
1399 | case $ac_top_builddir_sub in |
---|
1400 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
1401 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
---|
1402 | esac ;; |
---|
1403 | esac |
---|
1404 | ac_abs_top_builddir=$ac_pwd |
---|
1405 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
---|
1406 | # for backward compatibility: |
---|
1407 | ac_top_builddir=$ac_top_build_prefix |
---|
1408 | |
---|
1409 | case $srcdir in |
---|
1410 | .) # We are building in place. |
---|
1411 | ac_srcdir=. |
---|
1412 | ac_top_srcdir=$ac_top_builddir_sub |
---|
1413 | ac_abs_top_srcdir=$ac_pwd ;; |
---|
1414 | [\\/]* | ?:[\\/]* ) # Absolute name. |
---|
1415 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
1416 | ac_top_srcdir=$srcdir |
---|
1417 | ac_abs_top_srcdir=$srcdir ;; |
---|
1418 | *) # Relative name. |
---|
1419 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
---|
1420 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
---|
1421 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
---|
1422 | esac |
---|
1423 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
---|
1424 | |
---|
1425 | cd "$ac_dir" || { ac_status=$?; continue; } |
---|
1426 | # Check for guested configure. |
---|
1427 | if test -f "$ac_srcdir/configure.gnu"; then |
---|
1428 | echo && |
---|
1429 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
---|
1430 | elif test -f "$ac_srcdir/configure"; then |
---|
1431 | echo && |
---|
1432 | $SHELL "$ac_srcdir/configure" --help=recursive |
---|
1433 | else |
---|
1434 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
---|
1435 | fi || ac_status=$? |
---|
1436 | cd "$ac_pwd" || { ac_status=$?; break; } |
---|
1437 | done |
---|
1438 | fi |
---|
1439 | |
---|
1440 | test -n "$ac_init_help" && exit $ac_status |
---|
1441 | if $ac_init_version; then |
---|
1442 | cat <<\_ACEOF |
---|
1443 | cfa-cc configure 1.0.0 |
---|
1444 | generated by GNU Autoconf 2.68 |
---|
1445 | |
---|
1446 | Copyright (C) 2010 Free Software Foundation, Inc. |
---|
1447 | This configure script is free software; the Free Software Foundation |
---|
1448 | gives unlimited permission to copy, distribute and modify it. |
---|
1449 | _ACEOF |
---|
1450 | exit |
---|
1451 | fi |
---|
1452 | |
---|
1453 | ## ------------------------ ## |
---|
1454 | ## Autoconf initialization. ## |
---|
1455 | ## ------------------------ ## |
---|
1456 | |
---|
1457 | # ac_fn_cxx_try_compile LINENO |
---|
1458 | # ---------------------------- |
---|
1459 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
---|
1460 | ac_fn_cxx_try_compile () |
---|
1461 | { |
---|
1462 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1463 | rm -f conftest.$ac_objext |
---|
1464 | if { { ac_try="$ac_compile" |
---|
1465 | case "(($ac_try" in |
---|
1466 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1467 | *) ac_try_echo=$ac_try;; |
---|
1468 | esac |
---|
1469 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1470 | $as_echo "$ac_try_echo"; } >&5 |
---|
1471 | (eval "$ac_compile") 2>conftest.err |
---|
1472 | ac_status=$? |
---|
1473 | if test -s conftest.err; then |
---|
1474 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1475 | cat conftest.er1 >&5 |
---|
1476 | mv -f conftest.er1 conftest.err |
---|
1477 | fi |
---|
1478 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1479 | test $ac_status = 0; } && { |
---|
1480 | test -z "$ac_cxx_werror_flag" || |
---|
1481 | test ! -s conftest.err |
---|
1482 | } && test -s conftest.$ac_objext; then : |
---|
1483 | ac_retval=0 |
---|
1484 | else |
---|
1485 | $as_echo "$as_me: failed program was:" >&5 |
---|
1486 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1487 | |
---|
1488 | ac_retval=1 |
---|
1489 | fi |
---|
1490 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1491 | as_fn_set_status $ac_retval |
---|
1492 | |
---|
1493 | } # ac_fn_cxx_try_compile |
---|
1494 | |
---|
1495 | # ac_fn_c_try_compile LINENO |
---|
1496 | # -------------------------- |
---|
1497 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
---|
1498 | ac_fn_c_try_compile () |
---|
1499 | { |
---|
1500 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1501 | rm -f conftest.$ac_objext |
---|
1502 | if { { ac_try="$ac_compile" |
---|
1503 | case "(($ac_try" in |
---|
1504 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1505 | *) ac_try_echo=$ac_try;; |
---|
1506 | esac |
---|
1507 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1508 | $as_echo "$ac_try_echo"; } >&5 |
---|
1509 | (eval "$ac_compile") 2>conftest.err |
---|
1510 | ac_status=$? |
---|
1511 | if test -s conftest.err; then |
---|
1512 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1513 | cat conftest.er1 >&5 |
---|
1514 | mv -f conftest.er1 conftest.err |
---|
1515 | fi |
---|
1516 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1517 | test $ac_status = 0; } && { |
---|
1518 | test -z "$ac_c_werror_flag" || |
---|
1519 | test ! -s conftest.err |
---|
1520 | } && test -s conftest.$ac_objext; then : |
---|
1521 | ac_retval=0 |
---|
1522 | else |
---|
1523 | $as_echo "$as_me: failed program was:" >&5 |
---|
1524 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1525 | |
---|
1526 | ac_retval=1 |
---|
1527 | fi |
---|
1528 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1529 | as_fn_set_status $ac_retval |
---|
1530 | |
---|
1531 | } # ac_fn_c_try_compile |
---|
1532 | |
---|
1533 | # ac_fn_c_try_link LINENO |
---|
1534 | # ----------------------- |
---|
1535 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
---|
1536 | ac_fn_c_try_link () |
---|
1537 | { |
---|
1538 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1539 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
1540 | if { { ac_try="$ac_link" |
---|
1541 | case "(($ac_try" in |
---|
1542 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1543 | *) ac_try_echo=$ac_try;; |
---|
1544 | esac |
---|
1545 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1546 | $as_echo "$ac_try_echo"; } >&5 |
---|
1547 | (eval "$ac_link") 2>conftest.err |
---|
1548 | ac_status=$? |
---|
1549 | if test -s conftest.err; then |
---|
1550 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1551 | cat conftest.er1 >&5 |
---|
1552 | mv -f conftest.er1 conftest.err |
---|
1553 | fi |
---|
1554 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1555 | test $ac_status = 0; } && { |
---|
1556 | test -z "$ac_c_werror_flag" || |
---|
1557 | test ! -s conftest.err |
---|
1558 | } && test -s conftest$ac_exeext && { |
---|
1559 | test "$cross_compiling" = yes || |
---|
1560 | $as_test_x conftest$ac_exeext |
---|
1561 | }; then : |
---|
1562 | ac_retval=0 |
---|
1563 | else |
---|
1564 | $as_echo "$as_me: failed program was:" >&5 |
---|
1565 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1566 | |
---|
1567 | ac_retval=1 |
---|
1568 | fi |
---|
1569 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
---|
1570 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
---|
1571 | # interfere with the next link command; also delete a directory that is |
---|
1572 | # left behind by Apple's compiler. We do this before executing the actions. |
---|
1573 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
---|
1574 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1575 | as_fn_set_status $ac_retval |
---|
1576 | |
---|
1577 | } # ac_fn_c_try_link |
---|
1578 | |
---|
1579 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
---|
1580 | # ------------------------------------------- |
---|
1581 | # Tests whether TYPE exists after having included INCLUDES, setting cache |
---|
1582 | # variable VAR accordingly. |
---|
1583 | ac_fn_c_check_type () |
---|
1584 | { |
---|
1585 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1586 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
1587 | $as_echo_n "checking for $2... " >&6; } |
---|
1588 | if eval \${$3+:} false; then : |
---|
1589 | $as_echo_n "(cached) " >&6 |
---|
1590 | else |
---|
1591 | eval "$3=no" |
---|
1592 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1593 | /* end confdefs.h. */ |
---|
1594 | $4 |
---|
1595 | int |
---|
1596 | main () |
---|
1597 | { |
---|
1598 | if (sizeof ($2)) |
---|
1599 | return 0; |
---|
1600 | ; |
---|
1601 | return 0; |
---|
1602 | } |
---|
1603 | _ACEOF |
---|
1604 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
1605 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1606 | /* end confdefs.h. */ |
---|
1607 | $4 |
---|
1608 | int |
---|
1609 | main () |
---|
1610 | { |
---|
1611 | if (sizeof (($2))) |
---|
1612 | return 0; |
---|
1613 | ; |
---|
1614 | return 0; |
---|
1615 | } |
---|
1616 | _ACEOF |
---|
1617 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
1618 | |
---|
1619 | else |
---|
1620 | eval "$3=yes" |
---|
1621 | fi |
---|
1622 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
1623 | fi |
---|
1624 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
1625 | fi |
---|
1626 | eval ac_res=\$$3 |
---|
1627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
1628 | $as_echo "$ac_res" >&6; } |
---|
1629 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1630 | |
---|
1631 | } # ac_fn_c_check_type |
---|
1632 | |
---|
1633 | # ac_fn_c_try_cpp LINENO |
---|
1634 | # ---------------------- |
---|
1635 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
---|
1636 | ac_fn_c_try_cpp () |
---|
1637 | { |
---|
1638 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1639 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
---|
1640 | case "(($ac_try" in |
---|
1641 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1642 | *) ac_try_echo=$ac_try;; |
---|
1643 | esac |
---|
1644 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1645 | $as_echo "$ac_try_echo"; } >&5 |
---|
1646 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
---|
1647 | ac_status=$? |
---|
1648 | if test -s conftest.err; then |
---|
1649 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1650 | cat conftest.er1 >&5 |
---|
1651 | mv -f conftest.er1 conftest.err |
---|
1652 | fi |
---|
1653 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1654 | test $ac_status = 0; } > conftest.i && { |
---|
1655 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
---|
1656 | test ! -s conftest.err |
---|
1657 | }; then : |
---|
1658 | ac_retval=0 |
---|
1659 | else |
---|
1660 | $as_echo "$as_me: failed program was:" >&5 |
---|
1661 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1662 | |
---|
1663 | ac_retval=1 |
---|
1664 | fi |
---|
1665 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1666 | as_fn_set_status $ac_retval |
---|
1667 | |
---|
1668 | } # ac_fn_c_try_cpp |
---|
1669 | |
---|
1670 | # ac_fn_c_try_run LINENO |
---|
1671 | # ---------------------- |
---|
1672 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
---|
1673 | # that executables *can* be run. |
---|
1674 | ac_fn_c_try_run () |
---|
1675 | { |
---|
1676 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1677 | if { { ac_try="$ac_link" |
---|
1678 | case "(($ac_try" in |
---|
1679 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1680 | *) ac_try_echo=$ac_try;; |
---|
1681 | esac |
---|
1682 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1683 | $as_echo "$ac_try_echo"; } >&5 |
---|
1684 | (eval "$ac_link") 2>&5 |
---|
1685 | ac_status=$? |
---|
1686 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1687 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
---|
1688 | { { case "(($ac_try" in |
---|
1689 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1690 | *) ac_try_echo=$ac_try;; |
---|
1691 | esac |
---|
1692 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1693 | $as_echo "$ac_try_echo"; } >&5 |
---|
1694 | (eval "$ac_try") 2>&5 |
---|
1695 | ac_status=$? |
---|
1696 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1697 | test $ac_status = 0; }; }; then : |
---|
1698 | ac_retval=0 |
---|
1699 | else |
---|
1700 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
---|
1701 | $as_echo "$as_me: failed program was:" >&5 |
---|
1702 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1703 | |
---|
1704 | ac_retval=$ac_status |
---|
1705 | fi |
---|
1706 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
---|
1707 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1708 | as_fn_set_status $ac_retval |
---|
1709 | |
---|
1710 | } # ac_fn_c_try_run |
---|
1711 | |
---|
1712 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
---|
1713 | # ------------------------------------------------------- |
---|
1714 | # Tests whether HEADER exists and can be compiled using the include files in |
---|
1715 | # INCLUDES, setting the cache variable VAR accordingly. |
---|
1716 | ac_fn_c_check_header_compile () |
---|
1717 | { |
---|
1718 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1719 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
1720 | $as_echo_n "checking for $2... " >&6; } |
---|
1721 | if eval \${$3+:} false; then : |
---|
1722 | $as_echo_n "(cached) " >&6 |
---|
1723 | else |
---|
1724 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1725 | /* end confdefs.h. */ |
---|
1726 | $4 |
---|
1727 | #include <$2> |
---|
1728 | _ACEOF |
---|
1729 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
1730 | eval "$3=yes" |
---|
1731 | else |
---|
1732 | eval "$3=no" |
---|
1733 | fi |
---|
1734 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
1735 | fi |
---|
1736 | eval ac_res=\$$3 |
---|
1737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
1738 | $as_echo "$ac_res" >&6; } |
---|
1739 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1740 | |
---|
1741 | } # ac_fn_c_check_header_compile |
---|
1742 | |
---|
1743 | # ac_fn_c_check_func LINENO FUNC VAR |
---|
1744 | # ---------------------------------- |
---|
1745 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
---|
1746 | ac_fn_c_check_func () |
---|
1747 | { |
---|
1748 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1749 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
1750 | $as_echo_n "checking for $2... " >&6; } |
---|
1751 | if eval \${$3+:} false; then : |
---|
1752 | $as_echo_n "(cached) " >&6 |
---|
1753 | else |
---|
1754 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1755 | /* end confdefs.h. */ |
---|
1756 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
---|
1757 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
1758 | #define $2 innocuous_$2 |
---|
1759 | |
---|
1760 | /* System header to define __stub macros and hopefully few prototypes, |
---|
1761 | which can conflict with char $2 (); below. |
---|
1762 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
1763 | <limits.h> exists even on freestanding compilers. */ |
---|
1764 | |
---|
1765 | #ifdef __STDC__ |
---|
1766 | # include <limits.h> |
---|
1767 | #else |
---|
1768 | # include <assert.h> |
---|
1769 | #endif |
---|
1770 | |
---|
1771 | #undef $2 |
---|
1772 | |
---|
1773 | /* Override any GCC internal prototype to avoid an error. |
---|
1774 | Use char because int might match the return type of a GCC |
---|
1775 | builtin and then its argument prototype would still apply. */ |
---|
1776 | #ifdef __cplusplus |
---|
1777 | extern "C" |
---|
1778 | #endif |
---|
1779 | char $2 (); |
---|
1780 | /* The GNU C library defines this for functions which it implements |
---|
1781 | to always fail with ENOSYS. Some functions are actually named |
---|
1782 | something starting with __ and the normal name is an alias. */ |
---|
1783 | #if defined __stub_$2 || defined __stub___$2 |
---|
1784 | choke me |
---|
1785 | #endif |
---|
1786 | |
---|
1787 | int |
---|
1788 | main () |
---|
1789 | { |
---|
1790 | return $2 (); |
---|
1791 | ; |
---|
1792 | return 0; |
---|
1793 | } |
---|
1794 | _ACEOF |
---|
1795 | if ac_fn_c_try_link "$LINENO"; then : |
---|
1796 | eval "$3=yes" |
---|
1797 | else |
---|
1798 | eval "$3=no" |
---|
1799 | fi |
---|
1800 | rm -f core conftest.err conftest.$ac_objext \ |
---|
1801 | conftest$ac_exeext conftest.$ac_ext |
---|
1802 | fi |
---|
1803 | eval ac_res=\$$3 |
---|
1804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
1805 | $as_echo "$ac_res" >&6; } |
---|
1806 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1807 | |
---|
1808 | } # ac_fn_c_check_func |
---|
1809 | |
---|
1810 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
---|
1811 | # ------------------------------------------------------- |
---|
1812 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
---|
1813 | # the include files in INCLUDES and setting the cache variable VAR |
---|
1814 | # accordingly. |
---|
1815 | ac_fn_c_check_header_mongrel () |
---|
1816 | { |
---|
1817 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1818 | if eval \${$3+:} false; then : |
---|
1819 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
1820 | $as_echo_n "checking for $2... " >&6; } |
---|
1821 | if eval \${$3+:} false; then : |
---|
1822 | $as_echo_n "(cached) " >&6 |
---|
1823 | fi |
---|
1824 | eval ac_res=\$$3 |
---|
1825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
1826 | $as_echo "$ac_res" >&6; } |
---|
1827 | else |
---|
1828 | # Is the header compilable? |
---|
1829 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
---|
1830 | $as_echo_n "checking $2 usability... " >&6; } |
---|
1831 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1832 | /* end confdefs.h. */ |
---|
1833 | $4 |
---|
1834 | #include <$2> |
---|
1835 | _ACEOF |
---|
1836 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
1837 | ac_header_compiler=yes |
---|
1838 | else |
---|
1839 | ac_header_compiler=no |
---|
1840 | fi |
---|
1841 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
1842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
---|
1843 | $as_echo "$ac_header_compiler" >&6; } |
---|
1844 | |
---|
1845 | # Is the header present? |
---|
1846 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
---|
1847 | $as_echo_n "checking $2 presence... " >&6; } |
---|
1848 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1849 | /* end confdefs.h. */ |
---|
1850 | #include <$2> |
---|
1851 | _ACEOF |
---|
1852 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
1853 | ac_header_preproc=yes |
---|
1854 | else |
---|
1855 | ac_header_preproc=no |
---|
1856 | fi |
---|
1857 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
1858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
---|
1859 | $as_echo "$ac_header_preproc" >&6; } |
---|
1860 | |
---|
1861 | # So? What about this header? |
---|
1862 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
---|
1863 | yes:no: ) |
---|
1864 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
1865 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
1866 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
---|
1867 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
---|
1868 | ;; |
---|
1869 | no:yes:* ) |
---|
1870 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
---|
1871 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
---|
1872 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
---|
1873 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
---|
1874 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
---|
1875 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
---|
1876 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
---|
1877 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
1878 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
---|
1879 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
---|
1880 | ( $as_echo "## --------------------------------------- ## |
---|
1881 | ## Report this to cforall@plg.uwaterloo.ca ## |
---|
1882 | ## --------------------------------------- ##" |
---|
1883 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
---|
1884 | ;; |
---|
1885 | esac |
---|
1886 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
1887 | $as_echo_n "checking for $2... " >&6; } |
---|
1888 | if eval \${$3+:} false; then : |
---|
1889 | $as_echo_n "(cached) " >&6 |
---|
1890 | else |
---|
1891 | eval "$3=\$ac_header_compiler" |
---|
1892 | fi |
---|
1893 | eval ac_res=\$$3 |
---|
1894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
1895 | $as_echo "$ac_res" >&6; } |
---|
1896 | fi |
---|
1897 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1898 | |
---|
1899 | } # ac_fn_c_check_header_mongrel |
---|
1900 | |
---|
1901 | # ac_fn_c_find_intX_t LINENO BITS VAR |
---|
1902 | # ----------------------------------- |
---|
1903 | # Finds a signed integer type with width BITS, setting cache variable VAR |
---|
1904 | # accordingly. |
---|
1905 | ac_fn_c_find_intX_t () |
---|
1906 | { |
---|
1907 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1908 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 |
---|
1909 | $as_echo_n "checking for int$2_t... " >&6; } |
---|
1910 | if eval \${$3+:} false; then : |
---|
1911 | $as_echo_n "(cached) " >&6 |
---|
1912 | else |
---|
1913 | eval "$3=no" |
---|
1914 | # Order is important - never check a type that is potentially smaller |
---|
1915 | # than half of the expected target width. |
---|
1916 | for ac_type in int$2_t 'int' 'long int' \ |
---|
1917 | 'long long int' 'short int' 'signed char'; do |
---|
1918 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1919 | /* end confdefs.h. */ |
---|
1920 | $ac_includes_default |
---|
1921 | enum { N = $2 / 2 - 1 }; |
---|
1922 | int |
---|
1923 | main () |
---|
1924 | { |
---|
1925 | static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))]; |
---|
1926 | test_array [0] = 0 |
---|
1927 | |
---|
1928 | ; |
---|
1929 | return 0; |
---|
1930 | } |
---|
1931 | _ACEOF |
---|
1932 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
1933 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1934 | /* end confdefs.h. */ |
---|
1935 | $ac_includes_default |
---|
1936 | enum { N = $2 / 2 - 1 }; |
---|
1937 | int |
---|
1938 | main () |
---|
1939 | { |
---|
1940 | static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1) |
---|
1941 | < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; |
---|
1942 | test_array [0] = 0 |
---|
1943 | |
---|
1944 | ; |
---|
1945 | return 0; |
---|
1946 | } |
---|
1947 | _ACEOF |
---|
1948 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
1949 | |
---|
1950 | else |
---|
1951 | case $ac_type in #( |
---|
1952 | int$2_t) : |
---|
1953 | eval "$3=yes" ;; #( |
---|
1954 | *) : |
---|
1955 | eval "$3=\$ac_type" ;; |
---|
1956 | esac |
---|
1957 | fi |
---|
1958 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
1959 | fi |
---|
1960 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
1961 | if eval test \"x\$"$3"\" = x"no"; then : |
---|
1962 | |
---|
1963 | else |
---|
1964 | break |
---|
1965 | fi |
---|
1966 | done |
---|
1967 | fi |
---|
1968 | eval ac_res=\$$3 |
---|
1969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
1970 | $as_echo "$ac_res" >&6; } |
---|
1971 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1972 | |
---|
1973 | } # ac_fn_c_find_intX_t |
---|
1974 | |
---|
1975 | # ac_fn_c_find_uintX_t LINENO BITS VAR |
---|
1976 | # ------------------------------------ |
---|
1977 | # Finds an unsigned integer type with width BITS, setting cache variable VAR |
---|
1978 | # accordingly. |
---|
1979 | ac_fn_c_find_uintX_t () |
---|
1980 | { |
---|
1981 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1982 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 |
---|
1983 | $as_echo_n "checking for uint$2_t... " >&6; } |
---|
1984 | if eval \${$3+:} false; then : |
---|
1985 | $as_echo_n "(cached) " >&6 |
---|
1986 | else |
---|
1987 | eval "$3=no" |
---|
1988 | # Order is important - never check a type that is potentially smaller |
---|
1989 | # than half of the expected target width. |
---|
1990 | for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ |
---|
1991 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do |
---|
1992 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1993 | /* end confdefs.h. */ |
---|
1994 | $ac_includes_default |
---|
1995 | int |
---|
1996 | main () |
---|
1997 | { |
---|
1998 | static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; |
---|
1999 | test_array [0] = 0 |
---|
2000 | |
---|
2001 | ; |
---|
2002 | return 0; |
---|
2003 | } |
---|
2004 | _ACEOF |
---|
2005 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
2006 | case $ac_type in #( |
---|
2007 | uint$2_t) : |
---|
2008 | eval "$3=yes" ;; #( |
---|
2009 | *) : |
---|
2010 | eval "$3=\$ac_type" ;; |
---|
2011 | esac |
---|
2012 | fi |
---|
2013 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2014 | if eval test \"x\$"$3"\" = x"no"; then : |
---|
2015 | |
---|
2016 | else |
---|
2017 | break |
---|
2018 | fi |
---|
2019 | done |
---|
2020 | fi |
---|
2021 | eval ac_res=\$$3 |
---|
2022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
2023 | $as_echo "$ac_res" >&6; } |
---|
2024 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
2025 | |
---|
2026 | } # ac_fn_c_find_uintX_t |
---|
2027 | cat >config.log <<_ACEOF |
---|
2028 | This file contains any messages produced by compilers while |
---|
2029 | running configure, to aid debugging if configure makes a mistake. |
---|
2030 | |
---|
2031 | It was created by cfa-cc $as_me 1.0.0, which was |
---|
2032 | generated by GNU Autoconf 2.68. Invocation command line was |
---|
2033 | |
---|
2034 | $ $0 $@ |
---|
2035 | |
---|
2036 | _ACEOF |
---|
2037 | exec 5>>config.log |
---|
2038 | { |
---|
2039 | cat <<_ASUNAME |
---|
2040 | ## --------- ## |
---|
2041 | ## Platform. ## |
---|
2042 | ## --------- ## |
---|
2043 | |
---|
2044 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
2045 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
---|
2046 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
---|
2047 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
---|
2048 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
---|
2049 | |
---|
2050 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
---|
2051 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
---|
2052 | |
---|
2053 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
---|
2054 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
---|
2055 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
---|
2056 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
---|
2057 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
---|
2058 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
---|
2059 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
---|
2060 | |
---|
2061 | _ASUNAME |
---|
2062 | |
---|
2063 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2064 | for as_dir in $PATH |
---|
2065 | do |
---|
2066 | IFS=$as_save_IFS |
---|
2067 | test -z "$as_dir" && as_dir=. |
---|
2068 | $as_echo "PATH: $as_dir" |
---|
2069 | done |
---|
2070 | IFS=$as_save_IFS |
---|
2071 | |
---|
2072 | } >&5 |
---|
2073 | |
---|
2074 | cat >&5 <<_ACEOF |
---|
2075 | |
---|
2076 | |
---|
2077 | ## ----------- ## |
---|
2078 | ## Core tests. ## |
---|
2079 | ## ----------- ## |
---|
2080 | |
---|
2081 | _ACEOF |
---|
2082 | |
---|
2083 | |
---|
2084 | # Keep a trace of the command line. |
---|
2085 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
2086 | # Strip out --silent because we don't want to record it for future runs. |
---|
2087 | # Also quote any args containing shell meta-characters. |
---|
2088 | # Make two passes to allow for proper duplicate-argument suppression. |
---|
2089 | ac_configure_args= |
---|
2090 | ac_configure_args0= |
---|
2091 | ac_configure_args1= |
---|
2092 | ac_must_keep_next=false |
---|
2093 | for ac_pass in 1 2 |
---|
2094 | do |
---|
2095 | for ac_arg |
---|
2096 | do |
---|
2097 | case $ac_arg in |
---|
2098 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
---|
2099 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
2100 | | -silent | --silent | --silen | --sile | --sil) |
---|
2101 | continue ;; |
---|
2102 | *\'*) |
---|
2103 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
2104 | esac |
---|
2105 | case $ac_pass in |
---|
2106 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
---|
2107 | 2) |
---|
2108 | as_fn_append ac_configure_args1 " '$ac_arg'" |
---|
2109 | if test $ac_must_keep_next = true; then |
---|
2110 | ac_must_keep_next=false # Got value, back to normal. |
---|
2111 | else |
---|
2112 | case $ac_arg in |
---|
2113 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
---|
2114 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
---|
2115 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
---|
2116 | | -with-* | --with-* | -without-* | --without-* | --x) |
---|
2117 | case "$ac_configure_args0 " in |
---|
2118 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
---|
2119 | esac |
---|
2120 | ;; |
---|
2121 | -* ) ac_must_keep_next=true ;; |
---|
2122 | esac |
---|
2123 | fi |
---|
2124 | as_fn_append ac_configure_args " '$ac_arg'" |
---|
2125 | ;; |
---|
2126 | esac |
---|
2127 | done |
---|
2128 | done |
---|
2129 | { ac_configure_args0=; unset ac_configure_args0;} |
---|
2130 | { ac_configure_args1=; unset ac_configure_args1;} |
---|
2131 | |
---|
2132 | # When interrupted or exit'd, cleanup temporary files, and complete |
---|
2133 | # config.log. We remove comments because anyway the quotes in there |
---|
2134 | # would cause problems or look ugly. |
---|
2135 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
---|
2136 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
---|
2137 | trap 'exit_status=$? |
---|
2138 | # Save into config.log some information that might help in debugging. |
---|
2139 | { |
---|
2140 | echo |
---|
2141 | |
---|
2142 | $as_echo "## ---------------- ## |
---|
2143 | ## Cache variables. ## |
---|
2144 | ## ---------------- ##" |
---|
2145 | echo |
---|
2146 | # The following way of writing the cache mishandles newlines in values, |
---|
2147 | ( |
---|
2148 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
---|
2149 | eval ac_val=\$$ac_var |
---|
2150 | case $ac_val in #( |
---|
2151 | *${as_nl}*) |
---|
2152 | case $ac_var in #( |
---|
2153 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
---|
2154 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
---|
2155 | esac |
---|
2156 | case $ac_var in #( |
---|
2157 | _ | IFS | as_nl) ;; #( |
---|
2158 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
---|
2159 | *) { eval $ac_var=; unset $ac_var;} ;; |
---|
2160 | esac ;; |
---|
2161 | esac |
---|
2162 | done |
---|
2163 | (set) 2>&1 | |
---|
2164 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
---|
2165 | *${as_nl}ac_space=\ *) |
---|
2166 | sed -n \ |
---|
2167 | "s/'\''/'\''\\\\'\'''\''/g; |
---|
2168 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
---|
2169 | ;; #( |
---|
2170 | *) |
---|
2171 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
---|
2172 | ;; |
---|
2173 | esac | |
---|
2174 | sort |
---|
2175 | ) |
---|
2176 | echo |
---|
2177 | |
---|
2178 | $as_echo "## ----------------- ## |
---|
2179 | ## Output variables. ## |
---|
2180 | ## ----------------- ##" |
---|
2181 | echo |
---|
2182 | for ac_var in $ac_subst_vars |
---|
2183 | do |
---|
2184 | eval ac_val=\$$ac_var |
---|
2185 | case $ac_val in |
---|
2186 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
---|
2187 | esac |
---|
2188 | $as_echo "$ac_var='\''$ac_val'\''" |
---|
2189 | done | sort |
---|
2190 | echo |
---|
2191 | |
---|
2192 | if test -n "$ac_subst_files"; then |
---|
2193 | $as_echo "## ------------------- ## |
---|
2194 | ## File substitutions. ## |
---|
2195 | ## ------------------- ##" |
---|
2196 | echo |
---|
2197 | for ac_var in $ac_subst_files |
---|
2198 | do |
---|
2199 | eval ac_val=\$$ac_var |
---|
2200 | case $ac_val in |
---|
2201 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
---|
2202 | esac |
---|
2203 | $as_echo "$ac_var='\''$ac_val'\''" |
---|
2204 | done | sort |
---|
2205 | echo |
---|
2206 | fi |
---|
2207 | |
---|
2208 | if test -s confdefs.h; then |
---|
2209 | $as_echo "## ----------- ## |
---|
2210 | ## confdefs.h. ## |
---|
2211 | ## ----------- ##" |
---|
2212 | echo |
---|
2213 | cat confdefs.h |
---|
2214 | echo |
---|
2215 | fi |
---|
2216 | test "$ac_signal" != 0 && |
---|
2217 | $as_echo "$as_me: caught signal $ac_signal" |
---|
2218 | $as_echo "$as_me: exit $exit_status" |
---|
2219 | } >&5 |
---|
2220 | rm -f core *.core core.conftest.* && |
---|
2221 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
---|
2222 | exit $exit_status |
---|
2223 | ' 0 |
---|
2224 | for ac_signal in 1 2 13 15; do |
---|
2225 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
---|
2226 | done |
---|
2227 | ac_signal=0 |
---|
2228 | |
---|
2229 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
2230 | rm -f -r conftest* confdefs.h |
---|
2231 | |
---|
2232 | $as_echo "/* confdefs.h */" > confdefs.h |
---|
2233 | |
---|
2234 | # Predefined preprocessor variables. |
---|
2235 | |
---|
2236 | cat >>confdefs.h <<_ACEOF |
---|
2237 | #define PACKAGE_NAME "$PACKAGE_NAME" |
---|
2238 | _ACEOF |
---|
2239 | |
---|
2240 | cat >>confdefs.h <<_ACEOF |
---|
2241 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
---|
2242 | _ACEOF |
---|
2243 | |
---|
2244 | cat >>confdefs.h <<_ACEOF |
---|
2245 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
---|
2246 | _ACEOF |
---|
2247 | |
---|
2248 | cat >>confdefs.h <<_ACEOF |
---|
2249 | #define PACKAGE_STRING "$PACKAGE_STRING" |
---|
2250 | _ACEOF |
---|
2251 | |
---|
2252 | cat >>confdefs.h <<_ACEOF |
---|
2253 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
---|
2254 | _ACEOF |
---|
2255 | |
---|
2256 | cat >>confdefs.h <<_ACEOF |
---|
2257 | #define PACKAGE_URL "$PACKAGE_URL" |
---|
2258 | _ACEOF |
---|
2259 | |
---|
2260 | |
---|
2261 | # Let the site file select an alternate cache file if it wants to. |
---|
2262 | # Prefer an explicitly selected file to automatically selected ones. |
---|
2263 | ac_site_file1=NONE |
---|
2264 | ac_site_file2=NONE |
---|
2265 | if test -n "$CONFIG_SITE"; then |
---|
2266 | # We do not want a PATH search for config.site. |
---|
2267 | case $CONFIG_SITE in #(( |
---|
2268 | -*) ac_site_file1=./$CONFIG_SITE;; |
---|
2269 | */*) ac_site_file1=$CONFIG_SITE;; |
---|
2270 | *) ac_site_file1=./$CONFIG_SITE;; |
---|
2271 | esac |
---|
2272 | elif test "x$prefix" != xNONE; then |
---|
2273 | ac_site_file1=$prefix/share/config.site |
---|
2274 | ac_site_file2=$prefix/etc/config.site |
---|
2275 | else |
---|
2276 | ac_site_file1=$ac_default_prefix/share/config.site |
---|
2277 | ac_site_file2=$ac_default_prefix/etc/config.site |
---|
2278 | fi |
---|
2279 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
---|
2280 | do |
---|
2281 | test "x$ac_site_file" = xNONE && continue |
---|
2282 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
---|
2283 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
---|
2284 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
---|
2285 | sed 's/^/| /' "$ac_site_file" >&5 |
---|
2286 | . "$ac_site_file" \ |
---|
2287 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
2288 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
2289 | as_fn_error $? "failed to load site script $ac_site_file |
---|
2290 | See \`config.log' for more details" "$LINENO" 5; } |
---|
2291 | fi |
---|
2292 | done |
---|
2293 | |
---|
2294 | if test -r "$cache_file"; then |
---|
2295 | # Some versions of bash will fail to source /dev/null (special files |
---|
2296 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
---|
2297 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
---|
2298 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
---|
2299 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
---|
2300 | case $cache_file in |
---|
2301 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
---|
2302 | *) . "./$cache_file";; |
---|
2303 | esac |
---|
2304 | fi |
---|
2305 | else |
---|
2306 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
---|
2307 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
---|
2308 | >$cache_file |
---|
2309 | fi |
---|
2310 | |
---|
2311 | # Check that the precious variables saved in the cache have kept the same |
---|
2312 | # value. |
---|
2313 | ac_cache_corrupted=false |
---|
2314 | for ac_var in $ac_precious_vars; do |
---|
2315 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
---|
2316 | eval ac_new_set=\$ac_env_${ac_var}_set |
---|
2317 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
---|
2318 | eval ac_new_val=\$ac_env_${ac_var}_value |
---|
2319 | case $ac_old_set,$ac_new_set in |
---|
2320 | set,) |
---|
2321 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
---|
2322 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
---|
2323 | ac_cache_corrupted=: ;; |
---|
2324 | ,set) |
---|
2325 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
---|
2326 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
---|
2327 | ac_cache_corrupted=: ;; |
---|
2328 | ,);; |
---|
2329 | *) |
---|
2330 | if test "x$ac_old_val" != "x$ac_new_val"; then |
---|
2331 | # differences in whitespace do not lead to failure. |
---|
2332 | ac_old_val_w=`echo x $ac_old_val` |
---|
2333 | ac_new_val_w=`echo x $ac_new_val` |
---|
2334 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
---|
2335 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
---|
2336 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
---|
2337 | ac_cache_corrupted=: |
---|
2338 | else |
---|
2339 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
---|
2340 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
---|
2341 | eval $ac_var=\$ac_old_val |
---|
2342 | fi |
---|
2343 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
---|
2344 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
---|
2345 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
---|
2346 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
---|
2347 | fi;; |
---|
2348 | esac |
---|
2349 | # Pass precious variables to config.status. |
---|
2350 | if test "$ac_new_set" = set; then |
---|
2351 | case $ac_new_val in |
---|
2352 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
2353 | *) ac_arg=$ac_var=$ac_new_val ;; |
---|
2354 | esac |
---|
2355 | case " $ac_configure_args " in |
---|
2356 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
---|
2357 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
---|
2358 | esac |
---|
2359 | fi |
---|
2360 | done |
---|
2361 | if $ac_cache_corrupted; then |
---|
2362 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
2363 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
2364 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
---|
2365 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
---|
2366 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
---|
2367 | fi |
---|
2368 | ## -------------------- ## |
---|
2369 | ## Main body of script. ## |
---|
2370 | ## -------------------- ## |
---|
2371 | |
---|
2372 | ac_ext=c |
---|
2373 | ac_cpp='$CPP $CPPFLAGS' |
---|
2374 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2375 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2376 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2377 | |
---|
2378 | |
---|
2379 | ac_aux_dir= |
---|
2380 | for ac_dir in automake "$srcdir"/automake; do |
---|
2381 | if test -f "$ac_dir/install-sh"; then |
---|
2382 | ac_aux_dir=$ac_dir |
---|
2383 | ac_install_sh="$ac_aux_dir/install-sh -c" |
---|
2384 | break |
---|
2385 | elif test -f "$ac_dir/install.sh"; then |
---|
2386 | ac_aux_dir=$ac_dir |
---|
2387 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
2388 | break |
---|
2389 | elif test -f "$ac_dir/shtool"; then |
---|
2390 | ac_aux_dir=$ac_dir |
---|
2391 | ac_install_sh="$ac_aux_dir/shtool install -c" |
---|
2392 | break |
---|
2393 | fi |
---|
2394 | done |
---|
2395 | if test -z "$ac_aux_dir"; then |
---|
2396 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in automake \"$srcdir\"/automake" "$LINENO" 5 |
---|
2397 | fi |
---|
2398 | |
---|
2399 | # These three variables are undocumented and unsupported, |
---|
2400 | # and are intended to be withdrawn in a future Autoconf release. |
---|
2401 | # They can cause serious problems if a builder's source tree is in a directory |
---|
2402 | # whose full name contains unusual characters. |
---|
2403 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
---|
2404 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
---|
2405 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
---|
2406 | |
---|
2407 | |
---|
2408 | |
---|
2409 | ac_config_headers="$ac_config_headers config.h" |
---|
2410 | |
---|
2411 | |
---|
2412 | am__api_version='1.11' |
---|
2413 | |
---|
2414 | # Find a good install program. We prefer a C program (faster), |
---|
2415 | # so one script is as good as another. But avoid the broken or |
---|
2416 | # incompatible versions: |
---|
2417 | # SysV /etc/install, /usr/sbin/install |
---|
2418 | # SunOS /usr/etc/install |
---|
2419 | # IRIX /sbin/install |
---|
2420 | # AIX /bin/install |
---|
2421 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
---|
2422 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
2423 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
2424 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
2425 | # OS/2's system install, which has a completely different semantic |
---|
2426 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
2427 | # Reject install programs that cannot install multiple files. |
---|
2428 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
---|
2429 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
---|
2430 | if test -z "$INSTALL"; then |
---|
2431 | if ${ac_cv_path_install+:} false; then : |
---|
2432 | $as_echo_n "(cached) " >&6 |
---|
2433 | else |
---|
2434 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2435 | for as_dir in $PATH |
---|
2436 | do |
---|
2437 | IFS=$as_save_IFS |
---|
2438 | test -z "$as_dir" && as_dir=. |
---|
2439 | # Account for people who put trailing slashes in PATH elements. |
---|
2440 | case $as_dir/ in #(( |
---|
2441 | ./ | .// | /[cC]/* | \ |
---|
2442 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
---|
2443 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
---|
2444 | /usr/ucb/* ) ;; |
---|
2445 | *) |
---|
2446 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
2447 | # Don't use installbsd from OSF since it installs stuff as root |
---|
2448 | # by default. |
---|
2449 | for ac_prog in ginstall scoinst install; do |
---|
2450 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2451 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
---|
2452 | if test $ac_prog = install && |
---|
2453 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
2454 | # AIX install. It has an incompatible calling convention. |
---|
2455 | : |
---|
2456 | elif test $ac_prog = install && |
---|
2457 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
2458 | # program-specific install script used by HP pwplus--don't use. |
---|
2459 | : |
---|
2460 | else |
---|
2461 | rm -rf conftest.one conftest.two conftest.dir |
---|
2462 | echo one > conftest.one |
---|
2463 | echo two > conftest.two |
---|
2464 | mkdir conftest.dir |
---|
2465 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
---|
2466 | test -s conftest.one && test -s conftest.two && |
---|
2467 | test -s conftest.dir/conftest.one && |
---|
2468 | test -s conftest.dir/conftest.two |
---|
2469 | then |
---|
2470 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
---|
2471 | break 3 |
---|
2472 | fi |
---|
2473 | fi |
---|
2474 | fi |
---|
2475 | done |
---|
2476 | done |
---|
2477 | ;; |
---|
2478 | esac |
---|
2479 | |
---|
2480 | done |
---|
2481 | IFS=$as_save_IFS |
---|
2482 | |
---|
2483 | rm -rf conftest.one conftest.two conftest.dir |
---|
2484 | |
---|
2485 | fi |
---|
2486 | if test "${ac_cv_path_install+set}" = set; then |
---|
2487 | INSTALL=$ac_cv_path_install |
---|
2488 | else |
---|
2489 | # As a last resort, use the slow shell script. Don't cache a |
---|
2490 | # value for INSTALL within a source directory, because that will |
---|
2491 | # break other packages using the cache if that directory is |
---|
2492 | # removed, or if the value is a relative name. |
---|
2493 | INSTALL=$ac_install_sh |
---|
2494 | fi |
---|
2495 | fi |
---|
2496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
---|
2497 | $as_echo "$INSTALL" >&6; } |
---|
2498 | |
---|
2499 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
2500 | # It thinks the first close brace ends the variable substitution. |
---|
2501 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
2502 | |
---|
2503 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
---|
2504 | |
---|
2505 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
2506 | |
---|
2507 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
---|
2508 | $as_echo_n "checking whether build environment is sane... " >&6; } |
---|
2509 | # Just in case |
---|
2510 | sleep 1 |
---|
2511 | echo timestamp > conftest.file |
---|
2512 | # Reject unsafe characters in $srcdir or the absolute working directory |
---|
2513 | # name. Accept space and tab only in the latter. |
---|
2514 | am_lf=' |
---|
2515 | ' |
---|
2516 | case `pwd` in |
---|
2517 | *[\\\"\#\$\&\'\`$am_lf]*) |
---|
2518 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; |
---|
2519 | esac |
---|
2520 | case $srcdir in |
---|
2521 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) |
---|
2522 | as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; |
---|
2523 | esac |
---|
2524 | |
---|
2525 | # Do `set' in a subshell so we don't clobber the current shell's |
---|
2526 | # arguments. Must try -L first in case configure is actually a |
---|
2527 | # symlink; some systems play weird games with the mod time of symlinks |
---|
2528 | # (eg FreeBSD returns the mod time of the symlink's containing |
---|
2529 | # directory). |
---|
2530 | if ( |
---|
2531 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
---|
2532 | if test "$*" = "X"; then |
---|
2533 | # -L didn't work. |
---|
2534 | set X `ls -t "$srcdir/configure" conftest.file` |
---|
2535 | fi |
---|
2536 | rm -f conftest.file |
---|
2537 | if test "$*" != "X $srcdir/configure conftest.file" \ |
---|
2538 | && test "$*" != "X conftest.file $srcdir/configure"; then |
---|
2539 | |
---|
2540 | # If neither matched, then we have a broken ls. This can happen |
---|
2541 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
---|
2542 | # broken ls alias from the environment. This has actually |
---|
2543 | # happened. Such a system could not be considered "sane". |
---|
2544 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken |
---|
2545 | alias in your environment" "$LINENO" 5 |
---|
2546 | fi |
---|
2547 | |
---|
2548 | test "$2" = conftest.file |
---|
2549 | ) |
---|
2550 | then |
---|
2551 | # Ok. |
---|
2552 | : |
---|
2553 | else |
---|
2554 | as_fn_error $? "newly created file is older than distributed files! |
---|
2555 | Check your system clock" "$LINENO" 5 |
---|
2556 | fi |
---|
2557 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
2558 | $as_echo "yes" >&6; } |
---|
2559 | test "$program_prefix" != NONE && |
---|
2560 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
---|
2561 | # Use a double $ so make ignores it. |
---|
2562 | test "$program_suffix" != NONE && |
---|
2563 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
---|
2564 | # Double any \ or $. |
---|
2565 | # By default was `s,x,x', remove it if useless. |
---|
2566 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
---|
2567 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` |
---|
2568 | |
---|
2569 | # expand $ac_aux_dir to an absolute path |
---|
2570 | am_aux_dir=`cd $ac_aux_dir && pwd` |
---|
2571 | |
---|
2572 | if test x"${MISSING+set}" != xset; then |
---|
2573 | case $am_aux_dir in |
---|
2574 | *\ * | *\ *) |
---|
2575 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; |
---|
2576 | *) |
---|
2577 | MISSING="\${SHELL} $am_aux_dir/missing" ;; |
---|
2578 | esac |
---|
2579 | fi |
---|
2580 | # Use eval to expand $SHELL |
---|
2581 | if eval "$MISSING --run true"; then |
---|
2582 | am_missing_run="$MISSING --run " |
---|
2583 | else |
---|
2584 | am_missing_run= |
---|
2585 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 |
---|
2586 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
---|
2587 | fi |
---|
2588 | |
---|
2589 | if test x"${install_sh}" != xset; then |
---|
2590 | case $am_aux_dir in |
---|
2591 | *\ * | *\ *) |
---|
2592 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; |
---|
2593 | *) |
---|
2594 | install_sh="\${SHELL} $am_aux_dir/install-sh" |
---|
2595 | esac |
---|
2596 | fi |
---|
2597 | |
---|
2598 | # Installed binaries are usually stripped using `strip' when the user |
---|
2599 | # run `make install-strip'. However `strip' might not be the right |
---|
2600 | # tool to use in cross-compilation environments, therefore Automake |
---|
2601 | # will honor the `STRIP' environment variable to overrule this program. |
---|
2602 | if test "$cross_compiling" != no; then |
---|
2603 | if test -n "$ac_tool_prefix"; then |
---|
2604 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
---|
2605 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
---|
2606 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
2607 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2608 | if ${ac_cv_prog_STRIP+:} false; then : |
---|
2609 | $as_echo_n "(cached) " >&6 |
---|
2610 | else |
---|
2611 | if test -n "$STRIP"; then |
---|
2612 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
---|
2613 | else |
---|
2614 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2615 | for as_dir in $PATH |
---|
2616 | do |
---|
2617 | IFS=$as_save_IFS |
---|
2618 | test -z "$as_dir" && as_dir=. |
---|
2619 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2620 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
2621 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
---|
2622 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2623 | break 2 |
---|
2624 | fi |
---|
2625 | done |
---|
2626 | done |
---|
2627 | IFS=$as_save_IFS |
---|
2628 | |
---|
2629 | fi |
---|
2630 | fi |
---|
2631 | STRIP=$ac_cv_prog_STRIP |
---|
2632 | if test -n "$STRIP"; then |
---|
2633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
---|
2634 | $as_echo "$STRIP" >&6; } |
---|
2635 | else |
---|
2636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2637 | $as_echo "no" >&6; } |
---|
2638 | fi |
---|
2639 | |
---|
2640 | |
---|
2641 | fi |
---|
2642 | if test -z "$ac_cv_prog_STRIP"; then |
---|
2643 | ac_ct_STRIP=$STRIP |
---|
2644 | # Extract the first word of "strip", so it can be a program name with args. |
---|
2645 | set dummy strip; ac_word=$2 |
---|
2646 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
2647 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2648 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
---|
2649 | $as_echo_n "(cached) " >&6 |
---|
2650 | else |
---|
2651 | if test -n "$ac_ct_STRIP"; then |
---|
2652 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
---|
2653 | else |
---|
2654 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2655 | for as_dir in $PATH |
---|
2656 | do |
---|
2657 | IFS=$as_save_IFS |
---|
2658 | test -z "$as_dir" && as_dir=. |
---|
2659 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2660 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
2661 | ac_cv_prog_ac_ct_STRIP="strip" |
---|
2662 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2663 | break 2 |
---|
2664 | fi |
---|
2665 | done |
---|
2666 | done |
---|
2667 | IFS=$as_save_IFS |
---|
2668 | |
---|
2669 | fi |
---|
2670 | fi |
---|
2671 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
---|
2672 | if test -n "$ac_ct_STRIP"; then |
---|
2673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
---|
2674 | $as_echo "$ac_ct_STRIP" >&6; } |
---|
2675 | else |
---|
2676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2677 | $as_echo "no" >&6; } |
---|
2678 | fi |
---|
2679 | |
---|
2680 | if test "x$ac_ct_STRIP" = x; then |
---|
2681 | STRIP=":" |
---|
2682 | else |
---|
2683 | case $cross_compiling:$ac_tool_warned in |
---|
2684 | yes:) |
---|
2685 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
2686 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
2687 | ac_tool_warned=yes ;; |
---|
2688 | esac |
---|
2689 | STRIP=$ac_ct_STRIP |
---|
2690 | fi |
---|
2691 | else |
---|
2692 | STRIP="$ac_cv_prog_STRIP" |
---|
2693 | fi |
---|
2694 | |
---|
2695 | fi |
---|
2696 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
---|
2697 | |
---|
2698 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
---|
2699 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
---|
2700 | if test -z "$MKDIR_P"; then |
---|
2701 | if ${ac_cv_path_mkdir+:} false; then : |
---|
2702 | $as_echo_n "(cached) " >&6 |
---|
2703 | else |
---|
2704 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2705 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
---|
2706 | do |
---|
2707 | IFS=$as_save_IFS |
---|
2708 | test -z "$as_dir" && as_dir=. |
---|
2709 | for ac_prog in mkdir gmkdir; do |
---|
2710 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2711 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue |
---|
2712 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
---|
2713 | 'mkdir (GNU coreutils) '* | \ |
---|
2714 | 'mkdir (coreutils) '* | \ |
---|
2715 | 'mkdir (fileutils) '4.1*) |
---|
2716 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
---|
2717 | break 3;; |
---|
2718 | esac |
---|
2719 | done |
---|
2720 | done |
---|
2721 | done |
---|
2722 | IFS=$as_save_IFS |
---|
2723 | |
---|
2724 | fi |
---|
2725 | |
---|
2726 | test -d ./--version && rmdir ./--version |
---|
2727 | if test "${ac_cv_path_mkdir+set}" = set; then |
---|
2728 | MKDIR_P="$ac_cv_path_mkdir -p" |
---|
2729 | else |
---|
2730 | # As a last resort, use the slow shell script. Don't cache a |
---|
2731 | # value for MKDIR_P within a source directory, because that will |
---|
2732 | # break other packages using the cache if that directory is |
---|
2733 | # removed, or if the value is a relative name. |
---|
2734 | MKDIR_P="$ac_install_sh -d" |
---|
2735 | fi |
---|
2736 | fi |
---|
2737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
---|
2738 | $as_echo "$MKDIR_P" >&6; } |
---|
2739 | |
---|
2740 | mkdir_p="$MKDIR_P" |
---|
2741 | case $mkdir_p in |
---|
2742 | [\\/$]* | ?:[\\/]*) ;; |
---|
2743 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; |
---|
2744 | esac |
---|
2745 | |
---|
2746 | for ac_prog in gawk mawk nawk awk |
---|
2747 | do |
---|
2748 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
2749 | set dummy $ac_prog; ac_word=$2 |
---|
2750 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
2751 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2752 | if ${ac_cv_prog_AWK+:} false; then : |
---|
2753 | $as_echo_n "(cached) " >&6 |
---|
2754 | else |
---|
2755 | if test -n "$AWK"; then |
---|
2756 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
---|
2757 | else |
---|
2758 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2759 | for as_dir in $PATH |
---|
2760 | do |
---|
2761 | IFS=$as_save_IFS |
---|
2762 | test -z "$as_dir" && as_dir=. |
---|
2763 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2764 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
2765 | ac_cv_prog_AWK="$ac_prog" |
---|
2766 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2767 | break 2 |
---|
2768 | fi |
---|
2769 | done |
---|
2770 | done |
---|
2771 | IFS=$as_save_IFS |
---|
2772 | |
---|
2773 | fi |
---|
2774 | fi |
---|
2775 | AWK=$ac_cv_prog_AWK |
---|
2776 | if test -n "$AWK"; then |
---|
2777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
---|
2778 | $as_echo "$AWK" >&6; } |
---|
2779 | else |
---|
2780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2781 | $as_echo "no" >&6; } |
---|
2782 | fi |
---|
2783 | |
---|
2784 | |
---|
2785 | test -n "$AWK" && break |
---|
2786 | done |
---|
2787 | |
---|
2788 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
---|
2789 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
---|
2790 | set x ${MAKE-make} |
---|
2791 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
---|
2792 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
---|
2793 | $as_echo_n "(cached) " >&6 |
---|
2794 | else |
---|
2795 | cat >conftest.make <<\_ACEOF |
---|
2796 | SHELL = /bin/sh |
---|
2797 | all: |
---|
2798 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
---|
2799 | _ACEOF |
---|
2800 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
---|
2801 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
---|
2802 | *@@@%%%=?*=@@@%%%*) |
---|
2803 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
---|
2804 | *) |
---|
2805 | eval ac_cv_prog_make_${ac_make}_set=no;; |
---|
2806 | esac |
---|
2807 | rm -f conftest.make |
---|
2808 | fi |
---|
2809 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
---|
2810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
2811 | $as_echo "yes" >&6; } |
---|
2812 | SET_MAKE= |
---|
2813 | else |
---|
2814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2815 | $as_echo "no" >&6; } |
---|
2816 | SET_MAKE="MAKE=${MAKE-make}" |
---|
2817 | fi |
---|
2818 | |
---|
2819 | rm -rf .tst 2>/dev/null |
---|
2820 | mkdir .tst 2>/dev/null |
---|
2821 | if test -d .tst; then |
---|
2822 | am__leading_dot=. |
---|
2823 | else |
---|
2824 | am__leading_dot=_ |
---|
2825 | fi |
---|
2826 | rmdir .tst 2>/dev/null |
---|
2827 | |
---|
2828 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
---|
2829 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
---|
2830 | # is not polluted with repeated "-I." |
---|
2831 | am__isrc=' -I$(srcdir)' |
---|
2832 | # test to see if srcdir already configured |
---|
2833 | if test -f $srcdir/config.status; then |
---|
2834 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
---|
2835 | fi |
---|
2836 | fi |
---|
2837 | |
---|
2838 | # test whether we have cygpath |
---|
2839 | if test -z "$CYGPATH_W"; then |
---|
2840 | if (cygpath --version) >/dev/null 2>/dev/null; then |
---|
2841 | CYGPATH_W='cygpath -w' |
---|
2842 | else |
---|
2843 | CYGPATH_W=echo |
---|
2844 | fi |
---|
2845 | fi |
---|
2846 | |
---|
2847 | |
---|
2848 | # Define the identity of the package. |
---|
2849 | PACKAGE='cfa-cc' |
---|
2850 | VERSION='1.0.0' |
---|
2851 | |
---|
2852 | |
---|
2853 | cat >>confdefs.h <<_ACEOF |
---|
2854 | #define PACKAGE "$PACKAGE" |
---|
2855 | _ACEOF |
---|
2856 | |
---|
2857 | |
---|
2858 | cat >>confdefs.h <<_ACEOF |
---|
2859 | #define VERSION "$VERSION" |
---|
2860 | _ACEOF |
---|
2861 | |
---|
2862 | # Some tools Automake needs. |
---|
2863 | |
---|
2864 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
---|
2865 | |
---|
2866 | |
---|
2867 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
---|
2868 | |
---|
2869 | |
---|
2870 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
---|
2871 | |
---|
2872 | |
---|
2873 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
---|
2874 | |
---|
2875 | |
---|
2876 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
---|
2877 | |
---|
2878 | # We need awk for the "check" target. The system "awk" is bad on |
---|
2879 | # some platforms. |
---|
2880 | # Always define AMTAR for backward compatibility. Yes, it's still used |
---|
2881 | # in the wild :-( We should find a proper way to deprecate it ... |
---|
2882 | AMTAR='$${TAR-tar}' |
---|
2883 | |
---|
2884 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' |
---|
2885 | |
---|
2886 | |
---|
2887 | |
---|
2888 | |
---|
2889 | |
---|
2890 | |
---|
2891 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
---|
2892 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } |
---|
2893 | # Check whether --enable-maintainer-mode was given. |
---|
2894 | if test "${enable_maintainer_mode+set}" = set; then : |
---|
2895 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval |
---|
2896 | else |
---|
2897 | USE_MAINTAINER_MODE=yes |
---|
2898 | fi |
---|
2899 | |
---|
2900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 |
---|
2901 | $as_echo "$USE_MAINTAINER_MODE" >&6; } |
---|
2902 | if test $USE_MAINTAINER_MODE = yes; then |
---|
2903 | MAINTAINER_MODE_TRUE= |
---|
2904 | MAINTAINER_MODE_FALSE='#' |
---|
2905 | else |
---|
2906 | MAINTAINER_MODE_TRUE='#' |
---|
2907 | MAINTAINER_MODE_FALSE= |
---|
2908 | fi |
---|
2909 | |
---|
2910 | MAINT=$MAINTAINER_MODE_TRUE |
---|
2911 | |
---|
2912 | # may require auto* software to be installed |
---|
2913 | |
---|
2914 | # Installation paths |
---|
2915 | |
---|
2916 | |
---|
2917 | # Check whether --with-backend-compiler was given. |
---|
2918 | if test "${with_backend_compiler+set}" = set; then : |
---|
2919 | withval=$with_backend_compiler; backcompiler=$withval |
---|
2920 | else |
---|
2921 | backcompiler="" |
---|
2922 | fi |
---|
2923 | |
---|
2924 | if test x$backcompiler != x; then |
---|
2925 | cat >>confdefs.h <<_ACEOF |
---|
2926 | #define GCC_PATH "${backcompiler}" |
---|
2927 | _ACEOF |
---|
2928 | |
---|
2929 | BACKEND_CC=${backcompiler} |
---|
2930 | else |
---|
2931 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
2932 | set dummy gcc; ac_word=$2 |
---|
2933 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
2934 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2935 | if ${ac_cv_path_GCC_PATH+:} false; then : |
---|
2936 | $as_echo_n "(cached) " >&6 |
---|
2937 | else |
---|
2938 | case $GCC_PATH in |
---|
2939 | [\\/]* | ?:[\\/]*) |
---|
2940 | ac_cv_path_GCC_PATH="$GCC_PATH" # Let the user override the test with a path. |
---|
2941 | ;; |
---|
2942 | *) |
---|
2943 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2944 | for as_dir in $PATH |
---|
2945 | do |
---|
2946 | IFS=$as_save_IFS |
---|
2947 | test -z "$as_dir" && as_dir=. |
---|
2948 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2949 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
2950 | ac_cv_path_GCC_PATH="$as_dir/$ac_word$ac_exec_ext" |
---|
2951 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2952 | break 2 |
---|
2953 | fi |
---|
2954 | done |
---|
2955 | done |
---|
2956 | IFS=$as_save_IFS |
---|
2957 | |
---|
2958 | test -z "$ac_cv_path_GCC_PATH" && ac_cv_path_GCC_PATH="N/A" |
---|
2959 | ;; |
---|
2960 | esac |
---|
2961 | fi |
---|
2962 | GCC_PATH=$ac_cv_path_GCC_PATH |
---|
2963 | if test -n "$GCC_PATH"; then |
---|
2964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_PATH" >&5 |
---|
2965 | $as_echo "$GCC_PATH" >&6; } |
---|
2966 | else |
---|
2967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2968 | $as_echo "no" >&6; } |
---|
2969 | fi |
---|
2970 | |
---|
2971 | |
---|
2972 | if test "$GCC_PATH" = "N/A"; then |
---|
2973 | as_fn_error $? "some version of gcc is needed. Get it at ftp://ftp.gnu.org" "$LINENO" 5 |
---|
2974 | exit 1 |
---|
2975 | fi |
---|
2976 | |
---|
2977 | cat >>confdefs.h <<_ACEOF |
---|
2978 | #define GCC_PATH "${GCC_PATH}" |
---|
2979 | _ACEOF |
---|
2980 | |
---|
2981 | BACKEND_CC=${GCC_PATH} |
---|
2982 | fi |
---|
2983 | |
---|
2984 | |
---|
2985 | if test "x$prefix" = "xNONE"; then |
---|
2986 | cfa_prefix=${ac_default_prefix} |
---|
2987 | else |
---|
2988 | cfa_prefix=${prefix} |
---|
2989 | fi |
---|
2990 | |
---|
2991 | cat >>confdefs.h <<_ACEOF |
---|
2992 | #define CFA_PREFIX "${cfa_prefix}" |
---|
2993 | _ACEOF |
---|
2994 | |
---|
2995 | CFA_PREFIX=${cfa_prefix} |
---|
2996 | |
---|
2997 | |
---|
2998 | if test "$includedir" = '${prefix}/include'; then |
---|
2999 | cfa_incdir="${cfa_prefix}/include" |
---|
3000 | else |
---|
3001 | cfa_incdir=${$includedir} |
---|
3002 | fi |
---|
3003 | |
---|
3004 | cat >>confdefs.h <<_ACEOF |
---|
3005 | #define CFA_INCDIR "${cfa_incdir}" |
---|
3006 | _ACEOF |
---|
3007 | |
---|
3008 | CFA_INCDIR=${cfa_incdir} |
---|
3009 | |
---|
3010 | |
---|
3011 | if test "$bindir" = '${exec_prefix}/bin'; then |
---|
3012 | cfa_bindir="${cfa_prefix}/bin" |
---|
3013 | else |
---|
3014 | cfa_bindir=${bindir} |
---|
3015 | fi |
---|
3016 | |
---|
3017 | cat >>confdefs.h <<_ACEOF |
---|
3018 | #define CFA_BINDIR "${cfa_bindir}" |
---|
3019 | _ACEOF |
---|
3020 | |
---|
3021 | CFA_BINDIR=${cfa_bindir} |
---|
3022 | |
---|
3023 | |
---|
3024 | if test "$libdir" = '${exec_prefix}/lib'; then |
---|
3025 | cfa_libdir=${cfa_prefix}/lib |
---|
3026 | else |
---|
3027 | cfa_libdir=${libdir} |
---|
3028 | fi |
---|
3029 | |
---|
3030 | cat >>confdefs.h <<_ACEOF |
---|
3031 | #define CFA_LIBDIR "${cfa_libdir}" |
---|
3032 | _ACEOF |
---|
3033 | |
---|
3034 | CFA_LIBDIR=${cfa_libdir} |
---|
3035 | |
---|
3036 | |
---|
3037 | # Checks for programs. |
---|
3038 | ac_ext=cpp |
---|
3039 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
3040 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3041 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3042 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
3043 | if test -z "$CXX"; then |
---|
3044 | if test -n "$CCC"; then |
---|
3045 | CXX=$CCC |
---|
3046 | else |
---|
3047 | if test -n "$ac_tool_prefix"; then |
---|
3048 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
---|
3049 | do |
---|
3050 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
3051 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
3052 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3053 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
3054 | if ${ac_cv_prog_CXX+:} false; then : |
---|
3055 | $as_echo_n "(cached) " >&6 |
---|
3056 | else |
---|
3057 | if test -n "$CXX"; then |
---|
3058 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
---|
3059 | else |
---|
3060 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3061 | for as_dir in $PATH |
---|
3062 | do |
---|
3063 | IFS=$as_save_IFS |
---|
3064 | test -z "$as_dir" && as_dir=. |
---|
3065 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3066 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
3067 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
---|
3068 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3069 | break 2 |
---|
3070 | fi |
---|
3071 | done |
---|
3072 | done |
---|
3073 | IFS=$as_save_IFS |
---|
3074 | |
---|
3075 | fi |
---|
3076 | fi |
---|
3077 | CXX=$ac_cv_prog_CXX |
---|
3078 | if test -n "$CXX"; then |
---|
3079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
---|
3080 | $as_echo "$CXX" >&6; } |
---|
3081 | else |
---|
3082 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3083 | $as_echo "no" >&6; } |
---|
3084 | fi |
---|
3085 | |
---|
3086 | |
---|
3087 | test -n "$CXX" && break |
---|
3088 | done |
---|
3089 | fi |
---|
3090 | if test -z "$CXX"; then |
---|
3091 | ac_ct_CXX=$CXX |
---|
3092 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
---|
3093 | do |
---|
3094 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
3095 | set dummy $ac_prog; ac_word=$2 |
---|
3096 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3097 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
3098 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
---|
3099 | $as_echo_n "(cached) " >&6 |
---|
3100 | else |
---|
3101 | if test -n "$ac_ct_CXX"; then |
---|
3102 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
---|
3103 | else |
---|
3104 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3105 | for as_dir in $PATH |
---|
3106 | do |
---|
3107 | IFS=$as_save_IFS |
---|
3108 | test -z "$as_dir" && as_dir=. |
---|
3109 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3110 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
3111 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
---|
3112 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3113 | break 2 |
---|
3114 | fi |
---|
3115 | done |
---|
3116 | done |
---|
3117 | IFS=$as_save_IFS |
---|
3118 | |
---|
3119 | fi |
---|
3120 | fi |
---|
3121 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
---|
3122 | if test -n "$ac_ct_CXX"; then |
---|
3123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
---|
3124 | $as_echo "$ac_ct_CXX" >&6; } |
---|
3125 | else |
---|
3126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3127 | $as_echo "no" >&6; } |
---|
3128 | fi |
---|
3129 | |
---|
3130 | |
---|
3131 | test -n "$ac_ct_CXX" && break |
---|
3132 | done |
---|
3133 | |
---|
3134 | if test "x$ac_ct_CXX" = x; then |
---|
3135 | CXX="g++" |
---|
3136 | else |
---|
3137 | case $cross_compiling:$ac_tool_warned in |
---|
3138 | yes:) |
---|
3139 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
3140 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
3141 | ac_tool_warned=yes ;; |
---|
3142 | esac |
---|
3143 | CXX=$ac_ct_CXX |
---|
3144 | fi |
---|
3145 | fi |
---|
3146 | |
---|
3147 | fi |
---|
3148 | fi |
---|
3149 | # Provide some information about the compiler. |
---|
3150 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
---|
3151 | set X $ac_compile |
---|
3152 | ac_compiler=$2 |
---|
3153 | for ac_option in --version -v -V -qversion; do |
---|
3154 | { { ac_try="$ac_compiler $ac_option >&5" |
---|
3155 | case "(($ac_try" in |
---|
3156 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3157 | *) ac_try_echo=$ac_try;; |
---|
3158 | esac |
---|
3159 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3160 | $as_echo "$ac_try_echo"; } >&5 |
---|
3161 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
---|
3162 | ac_status=$? |
---|
3163 | if test -s conftest.err; then |
---|
3164 | sed '10a\ |
---|
3165 | ... rest of stderr output deleted ... |
---|
3166 | 10q' conftest.err >conftest.er1 |
---|
3167 | cat conftest.er1 >&5 |
---|
3168 | fi |
---|
3169 | rm -f conftest.er1 conftest.err |
---|
3170 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3171 | test $ac_status = 0; } |
---|
3172 | done |
---|
3173 | |
---|
3174 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3175 | /* end confdefs.h. */ |
---|
3176 | |
---|
3177 | int |
---|
3178 | main () |
---|
3179 | { |
---|
3180 | |
---|
3181 | ; |
---|
3182 | return 0; |
---|
3183 | } |
---|
3184 | _ACEOF |
---|
3185 | ac_clean_files_save=$ac_clean_files |
---|
3186 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
---|
3187 | # Try to create an executable without -o first, disregard a.out. |
---|
3188 | # It will help us diagnose broken compilers, and finding out an intuition |
---|
3189 | # of exeext. |
---|
3190 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5 |
---|
3191 | $as_echo_n "checking whether the C++ compiler works... " >&6; } |
---|
3192 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
---|
3193 | |
---|
3194 | # The possible output files: |
---|
3195 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
---|
3196 | |
---|
3197 | ac_rmfiles= |
---|
3198 | for ac_file in $ac_files |
---|
3199 | do |
---|
3200 | case $ac_file in |
---|
3201 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
---|
3202 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
---|
3203 | esac |
---|
3204 | done |
---|
3205 | rm -f $ac_rmfiles |
---|
3206 | |
---|
3207 | if { { ac_try="$ac_link_default" |
---|
3208 | case "(($ac_try" in |
---|
3209 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3210 | *) ac_try_echo=$ac_try;; |
---|
3211 | esac |
---|
3212 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3213 | $as_echo "$ac_try_echo"; } >&5 |
---|
3214 | (eval "$ac_link_default") 2>&5 |
---|
3215 | ac_status=$? |
---|
3216 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3217 | test $ac_status = 0; }; then : |
---|
3218 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
---|
3219 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
---|
3220 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
---|
3221 | # so that the user can short-circuit this test for compilers unknown to |
---|
3222 | # Autoconf. |
---|
3223 | for ac_file in $ac_files '' |
---|
3224 | do |
---|
3225 | test -f "$ac_file" || continue |
---|
3226 | case $ac_file in |
---|
3227 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
---|
3228 | ;; |
---|
3229 | [ab].out ) |
---|
3230 | # We found the default executable, but exeext='' is most |
---|
3231 | # certainly right. |
---|
3232 | break;; |
---|
3233 | *.* ) |
---|
3234 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
---|
3235 | then :; else |
---|
3236 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
3237 | fi |
---|
3238 | # We set ac_cv_exeext here because the later test for it is not |
---|
3239 | # safe: cross compilers may not add the suffix if given an `-o' |
---|
3240 | # argument, so we may need to know it at that point already. |
---|
3241 | # Even if this section looks crufty: it has the advantage of |
---|
3242 | # actually working. |
---|
3243 | break;; |
---|
3244 | * ) |
---|
3245 | break;; |
---|
3246 | esac |
---|
3247 | done |
---|
3248 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
---|
3249 | |
---|
3250 | else |
---|
3251 | ac_file='' |
---|
3252 | fi |
---|
3253 | if test -z "$ac_file"; then : |
---|
3254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3255 | $as_echo "no" >&6; } |
---|
3256 | $as_echo "$as_me: failed program was:" >&5 |
---|
3257 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3258 | |
---|
3259 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
3260 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
3261 | as_fn_error 77 "C++ compiler cannot create executables |
---|
3262 | See \`config.log' for more details" "$LINENO" 5; } |
---|
3263 | else |
---|
3264 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
3265 | $as_echo "yes" >&6; } |
---|
3266 | fi |
---|
3267 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5 |
---|
3268 | $as_echo_n "checking for C++ compiler default output file name... " >&6; } |
---|
3269 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
---|
3270 | $as_echo "$ac_file" >&6; } |
---|
3271 | ac_exeext=$ac_cv_exeext |
---|
3272 | |
---|
3273 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
---|
3274 | ac_clean_files=$ac_clean_files_save |
---|
3275 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
---|
3276 | $as_echo_n "checking for suffix of executables... " >&6; } |
---|
3277 | if { { ac_try="$ac_link" |
---|
3278 | case "(($ac_try" in |
---|
3279 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3280 | *) ac_try_echo=$ac_try;; |
---|
3281 | esac |
---|
3282 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3283 | $as_echo "$ac_try_echo"; } >&5 |
---|
3284 | (eval "$ac_link") 2>&5 |
---|
3285 | ac_status=$? |
---|
3286 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3287 | test $ac_status = 0; }; then : |
---|
3288 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
---|
3289 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
---|
3290 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
---|
3291 | # `rm'. |
---|
3292 | for ac_file in conftest.exe conftest conftest.*; do |
---|
3293 | test -f "$ac_file" || continue |
---|
3294 | case $ac_file in |
---|
3295 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
---|
3296 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
3297 | break;; |
---|
3298 | * ) break;; |
---|
3299 | esac |
---|
3300 | done |
---|
3301 | else |
---|
3302 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
3303 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
3304 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
---|
3305 | See \`config.log' for more details" "$LINENO" 5; } |
---|
3306 | fi |
---|
3307 | rm -f conftest conftest$ac_cv_exeext |
---|
3308 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
---|
3309 | $as_echo "$ac_cv_exeext" >&6; } |
---|
3310 | |
---|
3311 | rm -f conftest.$ac_ext |
---|
3312 | EXEEXT=$ac_cv_exeext |
---|
3313 | ac_exeext=$EXEEXT |
---|
3314 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3315 | /* end confdefs.h. */ |
---|
3316 | #include <stdio.h> |
---|
3317 | int |
---|
3318 | main () |
---|
3319 | { |
---|
3320 | FILE *f = fopen ("conftest.out", "w"); |
---|
3321 | return ferror (f) || fclose (f) != 0; |
---|
3322 | |
---|
3323 | ; |
---|
3324 | return 0; |
---|
3325 | } |
---|
3326 | _ACEOF |
---|
3327 | ac_clean_files="$ac_clean_files conftest.out" |
---|
3328 | # Check that the compiler produces executables we can run. If not, either |
---|
3329 | # the compiler is broken, or we cross compile. |
---|
3330 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
---|
3331 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
---|
3332 | if test "$cross_compiling" != yes; then |
---|
3333 | { { ac_try="$ac_link" |
---|
3334 | case "(($ac_try" in |
---|
3335 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3336 | *) ac_try_echo=$ac_try;; |
---|
3337 | esac |
---|
3338 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3339 | $as_echo "$ac_try_echo"; } >&5 |
---|
3340 | (eval "$ac_link") 2>&5 |
---|
3341 | ac_status=$? |
---|
3342 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3343 | test $ac_status = 0; } |
---|
3344 | if { ac_try='./conftest$ac_cv_exeext' |
---|
3345 | { { case "(($ac_try" in |
---|
3346 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3347 | *) ac_try_echo=$ac_try;; |
---|
3348 | esac |
---|
3349 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3350 | $as_echo "$ac_try_echo"; } >&5 |
---|
3351 | (eval "$ac_try") 2>&5 |
---|
3352 | ac_status=$? |
---|
3353 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3354 | test $ac_status = 0; }; }; then |
---|
3355 | cross_compiling=no |
---|
3356 | else |
---|
3357 | if test "$cross_compiling" = maybe; then |
---|
3358 | cross_compiling=yes |
---|
3359 | else |
---|
3360 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
3361 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
3362 | as_fn_error $? "cannot run C++ compiled programs. |
---|
3363 | If you meant to cross compile, use \`--host'. |
---|
3364 | See \`config.log' for more details" "$LINENO" 5; } |
---|
3365 | fi |
---|
3366 | fi |
---|
3367 | fi |
---|
3368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
---|
3369 | $as_echo "$cross_compiling" >&6; } |
---|
3370 | |
---|
3371 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
---|
3372 | ac_clean_files=$ac_clean_files_save |
---|
3373 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
---|
3374 | $as_echo_n "checking for suffix of object files... " >&6; } |
---|
3375 | if ${ac_cv_objext+:} false; then : |
---|
3376 | $as_echo_n "(cached) " >&6 |
---|
3377 | else |
---|
3378 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3379 | /* end confdefs.h. */ |
---|
3380 | |
---|
3381 | int |
---|
3382 | main () |
---|
3383 | { |
---|
3384 | |
---|
3385 | ; |
---|
3386 | return 0; |
---|
3387 | } |
---|
3388 | _ACEOF |
---|
3389 | rm -f conftest.o conftest.obj |
---|
3390 | if { { ac_try="$ac_compile" |
---|
3391 | case "(($ac_try" in |
---|
3392 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3393 | *) ac_try_echo=$ac_try;; |
---|
3394 | esac |
---|
3395 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3396 | $as_echo "$ac_try_echo"; } >&5 |
---|
3397 | (eval "$ac_compile") 2>&5 |
---|
3398 | ac_status=$? |
---|
3399 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3400 | test $ac_status = 0; }; then : |
---|
3401 | for ac_file in conftest.o conftest.obj conftest.*; do |
---|
3402 | test -f "$ac_file" || continue; |
---|
3403 | case $ac_file in |
---|
3404 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
---|
3405 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
---|
3406 | break;; |
---|
3407 | esac |
---|
3408 | done |
---|
3409 | else |
---|
3410 | $as_echo "$as_me: failed program was:" >&5 |
---|
3411 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3412 | |
---|
3413 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
3414 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
3415 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
---|
3416 | See \`config.log' for more details" "$LINENO" 5; } |
---|
3417 | fi |
---|
3418 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
---|
3419 | fi |
---|
3420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
---|
3421 | $as_echo "$ac_cv_objext" >&6; } |
---|
3422 | OBJEXT=$ac_cv_objext |
---|
3423 | ac_objext=$OBJEXT |
---|
3424 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
---|
3425 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
---|
3426 | if ${ac_cv_cxx_compiler_gnu+:} false; then : |
---|
3427 | $as_echo_n "(cached) " >&6 |
---|
3428 | else |
---|
3429 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3430 | /* end confdefs.h. */ |
---|
3431 | |
---|
3432 | int |
---|
3433 | main () |
---|
3434 | { |
---|
3435 | #ifndef __GNUC__ |
---|
3436 | choke me |
---|
3437 | #endif |
---|
3438 | |
---|
3439 | ; |
---|
3440 | return 0; |
---|
3441 | } |
---|
3442 | _ACEOF |
---|
3443 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
3444 | ac_compiler_gnu=yes |
---|
3445 | else |
---|
3446 | ac_compiler_gnu=no |
---|
3447 | fi |
---|
3448 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3449 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
---|
3450 | |
---|
3451 | fi |
---|
3452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
---|
3453 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
---|
3454 | if test $ac_compiler_gnu = yes; then |
---|
3455 | GXX=yes |
---|
3456 | else |
---|
3457 | GXX= |
---|
3458 | fi |
---|
3459 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
---|
3460 | ac_save_CXXFLAGS=$CXXFLAGS |
---|
3461 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
---|
3462 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } |
---|
3463 | if ${ac_cv_prog_cxx_g+:} false; then : |
---|
3464 | $as_echo_n "(cached) " >&6 |
---|
3465 | else |
---|
3466 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
---|
3467 | ac_cxx_werror_flag=yes |
---|
3468 | ac_cv_prog_cxx_g=no |
---|
3469 | CXXFLAGS="-g" |
---|
3470 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3471 | /* end confdefs.h. */ |
---|
3472 | |
---|
3473 | int |
---|
3474 | main () |
---|
3475 | { |
---|
3476 | |
---|
3477 | ; |
---|
3478 | return 0; |
---|
3479 | } |
---|
3480 | _ACEOF |
---|
3481 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
3482 | ac_cv_prog_cxx_g=yes |
---|
3483 | else |
---|
3484 | CXXFLAGS="" |
---|
3485 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3486 | /* end confdefs.h. */ |
---|
3487 | |
---|
3488 | int |
---|
3489 | main () |
---|
3490 | { |
---|
3491 | |
---|
3492 | ; |
---|
3493 | return 0; |
---|
3494 | } |
---|
3495 | _ACEOF |
---|
3496 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
3497 | |
---|
3498 | else |
---|
3499 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
---|
3500 | CXXFLAGS="-g" |
---|
3501 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3502 | /* end confdefs.h. */ |
---|
3503 | |
---|
3504 | int |
---|
3505 | main () |
---|
3506 | { |
---|
3507 | |
---|
3508 | ; |
---|
3509 | return 0; |
---|
3510 | } |
---|
3511 | _ACEOF |
---|
3512 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
3513 | ac_cv_prog_cxx_g=yes |
---|
3514 | fi |
---|
3515 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3516 | fi |
---|
3517 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3518 | fi |
---|
3519 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3520 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
---|
3521 | fi |
---|
3522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
---|
3523 | $as_echo "$ac_cv_prog_cxx_g" >&6; } |
---|
3524 | if test "$ac_test_CXXFLAGS" = set; then |
---|
3525 | CXXFLAGS=$ac_save_CXXFLAGS |
---|
3526 | elif test $ac_cv_prog_cxx_g = yes; then |
---|
3527 | if test "$GXX" = yes; then |
---|
3528 | CXXFLAGS="-g -O2" |
---|
3529 | else |
---|
3530 | CXXFLAGS="-g" |
---|
3531 | fi |
---|
3532 | else |
---|
3533 | if test "$GXX" = yes; then |
---|
3534 | CXXFLAGS="-O2" |
---|
3535 | else |
---|
3536 | CXXFLAGS= |
---|
3537 | fi |
---|
3538 | fi |
---|
3539 | ac_ext=c |
---|
3540 | ac_cpp='$CPP $CPPFLAGS' |
---|
3541 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3542 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3543 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3544 | DEPDIR="${am__leading_dot}deps" |
---|
3545 | |
---|
3546 | ac_config_commands="$ac_config_commands depfiles" |
---|
3547 | |
---|
3548 | |
---|
3549 | am_make=${MAKE-make} |
---|
3550 | cat > confinc << 'END' |
---|
3551 | am__doit: |
---|
3552 | @echo this is the am__doit target |
---|
3553 | .PHONY: am__doit |
---|
3554 | END |
---|
3555 | # If we don't find an include directive, just comment out the code. |
---|
3556 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 |
---|
3557 | $as_echo_n "checking for style of include used by $am_make... " >&6; } |
---|
3558 | am__include="#" |
---|
3559 | am__quote= |
---|
3560 | _am_result=none |
---|
3561 | # First try GNU make style include. |
---|
3562 | echo "include confinc" > confmf |
---|
3563 | # Ignore all kinds of additional output from `make'. |
---|
3564 | case `$am_make -s -f confmf 2> /dev/null` in #( |
---|
3565 | *the\ am__doit\ target*) |
---|
3566 | am__include=include |
---|
3567 | am__quote= |
---|
3568 | _am_result=GNU |
---|
3569 | ;; |
---|
3570 | esac |
---|
3571 | # Now try BSD make style include. |
---|
3572 | if test "$am__include" = "#"; then |
---|
3573 | echo '.include "confinc"' > confmf |
---|
3574 | case `$am_make -s -f confmf 2> /dev/null` in #( |
---|
3575 | *the\ am__doit\ target*) |
---|
3576 | am__include=.include |
---|
3577 | am__quote="\"" |
---|
3578 | _am_result=BSD |
---|
3579 | ;; |
---|
3580 | esac |
---|
3581 | fi |
---|
3582 | |
---|
3583 | |
---|
3584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
---|
3585 | $as_echo "$_am_result" >&6; } |
---|
3586 | rm -f confinc confmf |
---|
3587 | |
---|
3588 | # Check whether --enable-dependency-tracking was given. |
---|
3589 | if test "${enable_dependency_tracking+set}" = set; then : |
---|
3590 | enableval=$enable_dependency_tracking; |
---|
3591 | fi |
---|
3592 | |
---|
3593 | if test "x$enable_dependency_tracking" != xno; then |
---|
3594 | am_depcomp="$ac_aux_dir/depcomp" |
---|
3595 | AMDEPBACKSLASH='\' |
---|
3596 | am__nodep='_no' |
---|
3597 | fi |
---|
3598 | if test "x$enable_dependency_tracking" != xno; then |
---|
3599 | AMDEP_TRUE= |
---|
3600 | AMDEP_FALSE='#' |
---|
3601 | else |
---|
3602 | AMDEP_TRUE='#' |
---|
3603 | AMDEP_FALSE= |
---|
3604 | fi |
---|
3605 | |
---|
3606 | |
---|
3607 | |
---|
3608 | depcc="$CXX" am_compiler_list= |
---|
3609 | |
---|
3610 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
---|
3611 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
---|
3612 | if ${am_cv_CXX_dependencies_compiler_type+:} false; then : |
---|
3613 | $as_echo_n "(cached) " >&6 |
---|
3614 | else |
---|
3615 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
3616 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
3617 | # making bogus files that we don't know about and never remove. For |
---|
3618 | # instance it was reported that on HP-UX the gcc test will end up |
---|
3619 | # making a dummy file named `D' -- because `-MD' means `put the output |
---|
3620 | # in D'. |
---|
3621 | rm -rf conftest.dir |
---|
3622 | mkdir conftest.dir |
---|
3623 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
3624 | # using a relative directory. |
---|
3625 | cp "$am_depcomp" conftest.dir |
---|
3626 | cd conftest.dir |
---|
3627 | # We will build objects and dependencies in a subdirectory because |
---|
3628 | # it helps to detect inapplicable dependency modes. For instance |
---|
3629 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
3630 | # side effect of compilation, but ICC will put the dependencies in |
---|
3631 | # the current directory while Tru64 will put them in the object |
---|
3632 | # directory. |
---|
3633 | mkdir sub |
---|
3634 | |
---|
3635 | am_cv_CXX_dependencies_compiler_type=none |
---|
3636 | if test "$am_compiler_list" = ""; then |
---|
3637 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
3638 | fi |
---|
3639 | am__universal=false |
---|
3640 | case " $depcc " in #( |
---|
3641 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
---|
3642 | esac |
---|
3643 | |
---|
3644 | for depmode in $am_compiler_list; do |
---|
3645 | # Setup a source with many dependencies, because some compilers |
---|
3646 | # like to wrap large dependency lists on column 80 (with \), and |
---|
3647 | # we should not choose a depcomp mode which is confused by this. |
---|
3648 | # |
---|
3649 | # We need to recreate these files for each test, as the compiler may |
---|
3650 | # overwrite some of them when testing with obscure command lines. |
---|
3651 | # This happens at least with the AIX C compiler. |
---|
3652 | : > sub/conftest.c |
---|
3653 | for i in 1 2 3 4 5 6; do |
---|
3654 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
3655 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
---|
3656 | # Solaris 8's {/usr,}/bin/sh. |
---|
3657 | touch sub/conftst$i.h |
---|
3658 | done |
---|
3659 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
3660 | |
---|
3661 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
---|
3662 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
3663 | # handle `-M -o', and we need to detect this. Also, some Intel |
---|
3664 | # versions had trouble with output in subdirs |
---|
3665 | am__obj=sub/conftest.${OBJEXT-o} |
---|
3666 | am__minus_obj="-o $am__obj" |
---|
3667 | case $depmode in |
---|
3668 | gcc) |
---|
3669 | # This depmode causes a compiler race in universal mode. |
---|
3670 | test "$am__universal" = false || continue |
---|
3671 | ;; |
---|
3672 | nosideeffect) |
---|
3673 | # after this tag, mechanisms are not by side-effect, so they'll |
---|
3674 | # only be used when explicitly requested |
---|
3675 | if test "x$enable_dependency_tracking" = xyes; then |
---|
3676 | continue |
---|
3677 | else |
---|
3678 | break |
---|
3679 | fi |
---|
3680 | ;; |
---|
3681 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
---|
3682 | # This compiler won't grok `-c -o', but also, the minuso test has |
---|
3683 | # not run yet. These depmodes are late enough in the game, and |
---|
3684 | # so weak that their functioning should not be impacted. |
---|
3685 | am__obj=conftest.${OBJEXT-o} |
---|
3686 | am__minus_obj= |
---|
3687 | ;; |
---|
3688 | none) break ;; |
---|
3689 | esac |
---|
3690 | if depmode=$depmode \ |
---|
3691 | source=sub/conftest.c object=$am__obj \ |
---|
3692 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
3693 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
---|
3694 | >/dev/null 2>conftest.err && |
---|
3695 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
---|
3696 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
3697 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
---|
3698 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
3699 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
3700 | # or remarks (even with -Werror). So we grep stderr for any message |
---|
3701 | # that says an option was ignored or not supported. |
---|
3702 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
---|
3703 | # icc: Command line warning: ignoring option '-M'; no argument required |
---|
3704 | # The diagnosis changed in icc 8.0: |
---|
3705 | # icc: Command line remark: option '-MP' not supported |
---|
3706 | if (grep 'ignoring option' conftest.err || |
---|
3707 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
---|
3708 | am_cv_CXX_dependencies_compiler_type=$depmode |
---|
3709 | break |
---|
3710 | fi |
---|
3711 | fi |
---|
3712 | done |
---|
3713 | |
---|
3714 | cd .. |
---|
3715 | rm -rf conftest.dir |
---|
3716 | else |
---|
3717 | am_cv_CXX_dependencies_compiler_type=none |
---|
3718 | fi |
---|
3719 | |
---|
3720 | fi |
---|
3721 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
---|
3722 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } |
---|
3723 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
---|
3724 | |
---|
3725 | if |
---|
3726 | test "x$enable_dependency_tracking" != xno \ |
---|
3727 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
---|
3728 | am__fastdepCXX_TRUE= |
---|
3729 | am__fastdepCXX_FALSE='#' |
---|
3730 | else |
---|
3731 | am__fastdepCXX_TRUE='#' |
---|
3732 | am__fastdepCXX_FALSE= |
---|
3733 | fi |
---|
3734 | |
---|
3735 | |
---|
3736 | ac_ext=c |
---|
3737 | ac_cpp='$CPP $CPPFLAGS' |
---|
3738 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3739 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3740 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3741 | if test -n "$ac_tool_prefix"; then |
---|
3742 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
---|
3743 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
---|
3744 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3745 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
3746 | if ${ac_cv_prog_CC+:} false; then : |
---|
3747 | $as_echo_n "(cached) " >&6 |
---|
3748 | else |
---|
3749 | if test -n "$CC"; then |
---|
3750 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
3751 | else |
---|
3752 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3753 | for as_dir in $PATH |
---|
3754 | do |
---|
3755 | IFS=$as_save_IFS |
---|
3756 | test -z "$as_dir" && as_dir=. |
---|
3757 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3758 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
3759 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
---|
3760 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3761 | break 2 |
---|
3762 | fi |
---|
3763 | done |
---|
3764 | done |
---|
3765 | IFS=$as_save_IFS |
---|
3766 | |
---|
3767 | fi |
---|
3768 | fi |
---|
3769 | CC=$ac_cv_prog_CC |
---|
3770 | if test -n "$CC"; then |
---|
3771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
3772 | $as_echo "$CC" >&6; } |
---|
3773 | else |
---|
3774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3775 | $as_echo "no" >&6; } |
---|
3776 | fi |
---|
3777 | |
---|
3778 | |
---|
3779 | fi |
---|
3780 | if test -z "$ac_cv_prog_CC"; then |
---|
3781 | ac_ct_CC=$CC |
---|
3782 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
3783 | set dummy gcc; ac_word=$2 |
---|
3784 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3785 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
3786 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
---|
3787 | $as_echo_n "(cached) " >&6 |
---|
3788 | else |
---|
3789 | if test -n "$ac_ct_CC"; then |
---|
3790 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
3791 | else |
---|
3792 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3793 | for as_dir in $PATH |
---|
3794 | do |
---|
3795 | IFS=$as_save_IFS |
---|
3796 | test -z "$as_dir" && as_dir=. |
---|
3797 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3798 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
3799 | ac_cv_prog_ac_ct_CC="gcc" |
---|
3800 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3801 | break 2 |
---|
3802 | fi |
---|
3803 | done |
---|
3804 | done |
---|
3805 | IFS=$as_save_IFS |
---|
3806 | |
---|
3807 | fi |
---|
3808 | fi |
---|
3809 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
3810 | if test -n "$ac_ct_CC"; then |
---|
3811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
---|
3812 | $as_echo "$ac_ct_CC" >&6; } |
---|
3813 | else |
---|
3814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3815 | $as_echo "no" >&6; } |
---|
3816 | fi |
---|
3817 | |
---|
3818 | if test "x$ac_ct_CC" = x; then |
---|
3819 | CC="" |
---|
3820 | else |
---|
3821 | case $cross_compiling:$ac_tool_warned in |
---|
3822 | yes:) |
---|
3823 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
3824 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
3825 | ac_tool_warned=yes ;; |
---|
3826 | esac |
---|
3827 | CC=$ac_ct_CC |
---|
3828 | fi |
---|
3829 | else |
---|
3830 | CC="$ac_cv_prog_CC" |
---|
3831 | fi |
---|
3832 | |
---|
3833 | if test -z "$CC"; then |
---|
3834 | if test -n "$ac_tool_prefix"; then |
---|
3835 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
---|
3836 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
---|
3837 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3838 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
3839 | if ${ac_cv_prog_CC+:} false; then : |
---|
3840 | $as_echo_n "(cached) " >&6 |
---|
3841 | else |
---|
3842 | if test -n "$CC"; then |
---|
3843 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
3844 | else |
---|
3845 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3846 | for as_dir in $PATH |
---|
3847 | do |
---|
3848 | IFS=$as_save_IFS |
---|
3849 | test -z "$as_dir" && as_dir=. |
---|
3850 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3851 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
3852 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
---|
3853 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3854 | break 2 |
---|
3855 | fi |
---|
3856 | done |
---|
3857 | done |
---|
3858 | IFS=$as_save_IFS |
---|
3859 | |
---|
3860 | fi |
---|
3861 | fi |
---|
3862 | CC=$ac_cv_prog_CC |
---|
3863 | if test -n "$CC"; then |
---|
3864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
3865 | $as_echo "$CC" >&6; } |
---|
3866 | else |
---|
3867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3868 | $as_echo "no" >&6; } |
---|
3869 | fi |
---|
3870 | |
---|
3871 | |
---|
3872 | fi |
---|
3873 | fi |
---|
3874 | if test -z "$CC"; then |
---|
3875 | # Extract the first word of "cc", so it can be a program name with args. |
---|
3876 | set dummy cc; ac_word=$2 |
---|
3877 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3878 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
3879 | if ${ac_cv_prog_CC+:} false; then : |
---|
3880 | $as_echo_n "(cached) " >&6 |
---|
3881 | else |
---|
3882 | if test -n "$CC"; then |
---|
3883 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
3884 | else |
---|
3885 | ac_prog_rejected=no |
---|
3886 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3887 | for as_dir in $PATH |
---|
3888 | do |
---|
3889 | IFS=$as_save_IFS |
---|
3890 | test -z "$as_dir" && as_dir=. |
---|
3891 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3892 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
3893 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
---|
3894 | ac_prog_rejected=yes |
---|
3895 | continue |
---|
3896 | fi |
---|
3897 | ac_cv_prog_CC="cc" |
---|
3898 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3899 | break 2 |
---|
3900 | fi |
---|
3901 | done |
---|
3902 | done |
---|
3903 | IFS=$as_save_IFS |
---|
3904 | |
---|
3905 | if test $ac_prog_rejected = yes; then |
---|
3906 | # We found a bogon in the path, so make sure we never use it. |
---|
3907 | set dummy $ac_cv_prog_CC |
---|
3908 | shift |
---|
3909 | if test $# != 0; then |
---|
3910 | # We chose a different compiler from the bogus one. |
---|
3911 | # However, it has the same basename, so the bogon will be chosen |
---|
3912 | # first if we set CC to just the basename; use the full file name. |
---|
3913 | shift |
---|
3914 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
---|
3915 | fi |
---|
3916 | fi |
---|
3917 | fi |
---|
3918 | fi |
---|
3919 | CC=$ac_cv_prog_CC |
---|
3920 | if test -n "$CC"; then |
---|
3921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
3922 | $as_echo "$CC" >&6; } |
---|
3923 | else |
---|
3924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3925 | $as_echo "no" >&6; } |
---|
3926 | fi |
---|
3927 | |
---|
3928 | |
---|
3929 | fi |
---|
3930 | if test -z "$CC"; then |
---|
3931 | if test -n "$ac_tool_prefix"; then |
---|
3932 | for ac_prog in cl.exe |
---|
3933 | do |
---|
3934 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
3935 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
3936 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3937 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
3938 | if ${ac_cv_prog_CC+:} false; then : |
---|
3939 | $as_echo_n "(cached) " >&6 |
---|
3940 | else |
---|
3941 | if test -n "$CC"; then |
---|
3942 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
3943 | else |
---|
3944 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3945 | for as_dir in $PATH |
---|
3946 | do |
---|
3947 | IFS=$as_save_IFS |
---|
3948 | test -z "$as_dir" && as_dir=. |
---|
3949 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3950 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
3951 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
---|
3952 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3953 | break 2 |
---|
3954 | fi |
---|
3955 | done |
---|
3956 | done |
---|
3957 | IFS=$as_save_IFS |
---|
3958 | |
---|
3959 | fi |
---|
3960 | fi |
---|
3961 | CC=$ac_cv_prog_CC |
---|
3962 | if test -n "$CC"; then |
---|
3963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
3964 | $as_echo "$CC" >&6; } |
---|
3965 | else |
---|
3966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3967 | $as_echo "no" >&6; } |
---|
3968 | fi |
---|
3969 | |
---|
3970 | |
---|
3971 | test -n "$CC" && break |
---|
3972 | done |
---|
3973 | fi |
---|
3974 | if test -z "$CC"; then |
---|
3975 | ac_ct_CC=$CC |
---|
3976 | for ac_prog in cl.exe |
---|
3977 | do |
---|
3978 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
3979 | set dummy $ac_prog; ac_word=$2 |
---|
3980 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3981 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
3982 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
---|
3983 | $as_echo_n "(cached) " >&6 |
---|
3984 | else |
---|
3985 | if test -n "$ac_ct_CC"; then |
---|
3986 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
3987 | else |
---|
3988 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3989 | for as_dir in $PATH |
---|
3990 | do |
---|
3991 | IFS=$as_save_IFS |
---|
3992 | test -z "$as_dir" && as_dir=. |
---|
3993 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3994 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
3995 | ac_cv_prog_ac_ct_CC="$ac_prog" |
---|
3996 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3997 | break 2 |
---|
3998 | fi |
---|
3999 | done |
---|
4000 | done |
---|
4001 | IFS=$as_save_IFS |
---|
4002 | |
---|
4003 | fi |
---|
4004 | fi |
---|
4005 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
4006 | if test -n "$ac_ct_CC"; then |
---|
4007 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
---|
4008 | $as_echo "$ac_ct_CC" >&6; } |
---|
4009 | else |
---|
4010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
4011 | $as_echo "no" >&6; } |
---|
4012 | fi |
---|
4013 | |
---|
4014 | |
---|
4015 | test -n "$ac_ct_CC" && break |
---|
4016 | done |
---|
4017 | |
---|
4018 | if test "x$ac_ct_CC" = x; then |
---|
4019 | CC="" |
---|
4020 | else |
---|
4021 | case $cross_compiling:$ac_tool_warned in |
---|
4022 | yes:) |
---|
4023 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
4024 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
4025 | ac_tool_warned=yes ;; |
---|
4026 | esac |
---|
4027 | CC=$ac_ct_CC |
---|
4028 | fi |
---|
4029 | fi |
---|
4030 | |
---|
4031 | fi |
---|
4032 | |
---|
4033 | |
---|
4034 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
4035 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
4036 | as_fn_error $? "no acceptable C compiler found in \$PATH |
---|
4037 | See \`config.log' for more details" "$LINENO" 5; } |
---|
4038 | |
---|
4039 | # Provide some information about the compiler. |
---|
4040 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
---|
4041 | set X $ac_compile |
---|
4042 | ac_compiler=$2 |
---|
4043 | for ac_option in --version -v -V -qversion; do |
---|
4044 | { { ac_try="$ac_compiler $ac_option >&5" |
---|
4045 | case "(($ac_try" in |
---|
4046 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
4047 | *) ac_try_echo=$ac_try;; |
---|
4048 | esac |
---|
4049 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
4050 | $as_echo "$ac_try_echo"; } >&5 |
---|
4051 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
---|
4052 | ac_status=$? |
---|
4053 | if test -s conftest.err; then |
---|
4054 | sed '10a\ |
---|
4055 | ... rest of stderr output deleted ... |
---|
4056 | 10q' conftest.err >conftest.er1 |
---|
4057 | cat conftest.er1 >&5 |
---|
4058 | fi |
---|
4059 | rm -f conftest.er1 conftest.err |
---|
4060 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
4061 | test $ac_status = 0; } |
---|
4062 | done |
---|
4063 | |
---|
4064 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
---|
4065 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
---|
4066 | if ${ac_cv_c_compiler_gnu+:} false; then : |
---|
4067 | $as_echo_n "(cached) " >&6 |
---|
4068 | else |
---|
4069 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4070 | /* end confdefs.h. */ |
---|
4071 | |
---|
4072 | int |
---|
4073 | main () |
---|
4074 | { |
---|
4075 | #ifndef __GNUC__ |
---|
4076 | choke me |
---|
4077 | #endif |
---|
4078 | |
---|
4079 | ; |
---|
4080 | return 0; |
---|
4081 | } |
---|
4082 | _ACEOF |
---|
4083 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
4084 | ac_compiler_gnu=yes |
---|
4085 | else |
---|
4086 | ac_compiler_gnu=no |
---|
4087 | fi |
---|
4088 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4089 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
---|
4090 | |
---|
4091 | fi |
---|
4092 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
---|
4093 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
---|
4094 | if test $ac_compiler_gnu = yes; then |
---|
4095 | GCC=yes |
---|
4096 | else |
---|
4097 | GCC= |
---|
4098 | fi |
---|
4099 | ac_test_CFLAGS=${CFLAGS+set} |
---|
4100 | ac_save_CFLAGS=$CFLAGS |
---|
4101 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
---|
4102 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
---|
4103 | if ${ac_cv_prog_cc_g+:} false; then : |
---|
4104 | $as_echo_n "(cached) " >&6 |
---|
4105 | else |
---|
4106 | ac_save_c_werror_flag=$ac_c_werror_flag |
---|
4107 | ac_c_werror_flag=yes |
---|
4108 | ac_cv_prog_cc_g=no |
---|
4109 | CFLAGS="-g" |
---|
4110 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4111 | /* end confdefs.h. */ |
---|
4112 | |
---|
4113 | int |
---|
4114 | main () |
---|
4115 | { |
---|
4116 | |
---|
4117 | ; |
---|
4118 | return 0; |
---|
4119 | } |
---|
4120 | _ACEOF |
---|
4121 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
4122 | ac_cv_prog_cc_g=yes |
---|
4123 | else |
---|
4124 | CFLAGS="" |
---|
4125 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4126 | /* end confdefs.h. */ |
---|
4127 | |
---|
4128 | int |
---|
4129 | main () |
---|
4130 | { |
---|
4131 | |
---|
4132 | ; |
---|
4133 | return 0; |
---|
4134 | } |
---|
4135 | _ACEOF |
---|
4136 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
4137 | |
---|
4138 | else |
---|
4139 | ac_c_werror_flag=$ac_save_c_werror_flag |
---|
4140 | CFLAGS="-g" |
---|
4141 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4142 | /* end confdefs.h. */ |
---|
4143 | |
---|
4144 | int |
---|
4145 | main () |
---|
4146 | { |
---|
4147 | |
---|
4148 | ; |
---|
4149 | return 0; |
---|
4150 | } |
---|
4151 | _ACEOF |
---|
4152 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
4153 | ac_cv_prog_cc_g=yes |
---|
4154 | fi |
---|
4155 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4156 | fi |
---|
4157 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4158 | fi |
---|
4159 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4160 | ac_c_werror_flag=$ac_save_c_werror_flag |
---|
4161 | fi |
---|
4162 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
---|
4163 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
---|
4164 | if test "$ac_test_CFLAGS" = set; then |
---|
4165 | CFLAGS=$ac_save_CFLAGS |
---|
4166 | elif test $ac_cv_prog_cc_g = yes; then |
---|
4167 | if test "$GCC" = yes; then |
---|
4168 | CFLAGS="-g -O2" |
---|
4169 | else |
---|
4170 | CFLAGS="-g" |
---|
4171 | fi |
---|
4172 | else |
---|
4173 | if test "$GCC" = yes; then |
---|
4174 | CFLAGS="-O2" |
---|
4175 | else |
---|
4176 | CFLAGS= |
---|
4177 | fi |
---|
4178 | fi |
---|
4179 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
---|
4180 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
---|
4181 | if ${ac_cv_prog_cc_c89+:} false; then : |
---|
4182 | $as_echo_n "(cached) " >&6 |
---|
4183 | else |
---|
4184 | ac_cv_prog_cc_c89=no |
---|
4185 | ac_save_CC=$CC |
---|
4186 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4187 | /* end confdefs.h. */ |
---|
4188 | #include <stdarg.h> |
---|
4189 | #include <stdio.h> |
---|
4190 | #include <sys/types.h> |
---|
4191 | #include <sys/stat.h> |
---|
4192 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
---|
4193 | struct buf { int x; }; |
---|
4194 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
---|
4195 | static char *e (p, i) |
---|
4196 | char **p; |
---|
4197 | int i; |
---|
4198 | { |
---|
4199 | return p[i]; |
---|
4200 | } |
---|
4201 | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
4202 | { |
---|
4203 | char *s; |
---|
4204 | va_list v; |
---|
4205 | va_start (v,p); |
---|
4206 | s = g (p, va_arg (v,int)); |
---|
4207 | va_end (v); |
---|
4208 | return s; |
---|
4209 | } |
---|
4210 | |
---|
4211 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
---|
4212 | function prototypes and stuff, but not '\xHH' hex character constants. |
---|
4213 | These don't provoke an error unfortunately, instead are silently treated |
---|
4214 | as 'x'. The following induces an error, until -std is added to get |
---|
4215 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
---|
4216 | array size at least. It's necessary to write '\x00'==0 to get something |
---|
4217 | that's true only with -std. */ |
---|
4218 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
---|
4219 | |
---|
4220 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
---|
4221 | inside strings and character constants. */ |
---|
4222 | #define FOO(x) 'x' |
---|
4223 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
---|
4224 | |
---|
4225 | int test (int i, double x); |
---|
4226 | struct s1 {int (*f) (int a);}; |
---|
4227 | struct s2 {int (*f) (double a);}; |
---|
4228 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
---|
4229 | int argc; |
---|
4230 | char **argv; |
---|
4231 | int |
---|
4232 | main () |
---|
4233 | { |
---|
4234 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
---|
4235 | ; |
---|
4236 | return 0; |
---|
4237 | } |
---|
4238 | _ACEOF |
---|
4239 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
---|
4240 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
---|
4241 | do |
---|
4242 | CC="$ac_save_CC $ac_arg" |
---|
4243 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
4244 | ac_cv_prog_cc_c89=$ac_arg |
---|
4245 | fi |
---|
4246 | rm -f core conftest.err conftest.$ac_objext |
---|
4247 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
---|
4248 | done |
---|
4249 | rm -f conftest.$ac_ext |
---|
4250 | CC=$ac_save_CC |
---|
4251 | |
---|
4252 | fi |
---|
4253 | # AC_CACHE_VAL |
---|
4254 | case "x$ac_cv_prog_cc_c89" in |
---|
4255 | x) |
---|
4256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
---|
4257 | $as_echo "none needed" >&6; } ;; |
---|
4258 | xno) |
---|
4259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
---|
4260 | $as_echo "unsupported" >&6; } ;; |
---|
4261 | *) |
---|
4262 | CC="$CC $ac_cv_prog_cc_c89" |
---|
4263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
---|
4264 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
---|
4265 | esac |
---|
4266 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
---|
4267 | |
---|
4268 | fi |
---|
4269 | |
---|
4270 | ac_ext=c |
---|
4271 | ac_cpp='$CPP $CPPFLAGS' |
---|
4272 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4273 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4274 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4275 | |
---|
4276 | depcc="$CC" am_compiler_list= |
---|
4277 | |
---|
4278 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
---|
4279 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
---|
4280 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
---|
4281 | $as_echo_n "(cached) " >&6 |
---|
4282 | else |
---|
4283 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
4284 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
4285 | # making bogus files that we don't know about and never remove. For |
---|
4286 | # instance it was reported that on HP-UX the gcc test will end up |
---|
4287 | # making a dummy file named `D' -- because `-MD' means `put the output |
---|
4288 | # in D'. |
---|
4289 | rm -rf conftest.dir |
---|
4290 | mkdir conftest.dir |
---|
4291 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
4292 | # using a relative directory. |
---|
4293 | cp "$am_depcomp" conftest.dir |
---|
4294 | cd conftest.dir |
---|
4295 | # We will build objects and dependencies in a subdirectory because |
---|
4296 | # it helps to detect inapplicable dependency modes. For instance |
---|
4297 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
4298 | # side effect of compilation, but ICC will put the dependencies in |
---|
4299 | # the current directory while Tru64 will put them in the object |
---|
4300 | # directory. |
---|
4301 | mkdir sub |
---|
4302 | |
---|
4303 | am_cv_CC_dependencies_compiler_type=none |
---|
4304 | if test "$am_compiler_list" = ""; then |
---|
4305 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
4306 | fi |
---|
4307 | am__universal=false |
---|
4308 | case " $depcc " in #( |
---|
4309 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
---|
4310 | esac |
---|
4311 | |
---|
4312 | for depmode in $am_compiler_list; do |
---|
4313 | # Setup a source with many dependencies, because some compilers |
---|
4314 | # like to wrap large dependency lists on column 80 (with \), and |
---|
4315 | # we should not choose a depcomp mode which is confused by this. |
---|
4316 | # |
---|
4317 | # We need to recreate these files for each test, as the compiler may |
---|
4318 | # overwrite some of them when testing with obscure command lines. |
---|
4319 | # This happens at least with the AIX C compiler. |
---|
4320 | : > sub/conftest.c |
---|
4321 | for i in 1 2 3 4 5 6; do |
---|
4322 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
4323 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
---|
4324 | # Solaris 8's {/usr,}/bin/sh. |
---|
4325 | touch sub/conftst$i.h |
---|
4326 | done |
---|
4327 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
4328 | |
---|
4329 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
---|
4330 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
4331 | # handle `-M -o', and we need to detect this. Also, some Intel |
---|
4332 | # versions had trouble with output in subdirs |
---|
4333 | am__obj=sub/conftest.${OBJEXT-o} |
---|
4334 | am__minus_obj="-o $am__obj" |
---|
4335 | case $depmode in |
---|
4336 | gcc) |
---|
4337 | # This depmode causes a compiler race in universal mode. |
---|
4338 | test "$am__universal" = false || continue |
---|
4339 | ;; |
---|
4340 | nosideeffect) |
---|
4341 | # after this tag, mechanisms are not by side-effect, so they'll |
---|
4342 | # only be used when explicitly requested |
---|
4343 | if test "x$enable_dependency_tracking" = xyes; then |
---|
4344 | continue |
---|
4345 | else |
---|
4346 | break |
---|
4347 | fi |
---|
4348 | ;; |
---|
4349 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
---|
4350 | # This compiler won't grok `-c -o', but also, the minuso test has |
---|
4351 | # not run yet. These depmodes are late enough in the game, and |
---|
4352 | # so weak that their functioning should not be impacted. |
---|
4353 | am__obj=conftest.${OBJEXT-o} |
---|
4354 | am__minus_obj= |
---|
4355 | ;; |
---|
4356 | none) break ;; |
---|
4357 | esac |
---|
4358 | if depmode=$depmode \ |
---|
4359 | source=sub/conftest.c object=$am__obj \ |
---|
4360 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
4361 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
---|
4362 | >/dev/null 2>conftest.err && |
---|
4363 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
---|
4364 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
4365 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
---|
4366 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
4367 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
4368 | # or remarks (even with -Werror). So we grep stderr for any message |
---|
4369 | # that says an option was ignored or not supported. |
---|
4370 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
---|
4371 | # icc: Command line warning: ignoring option '-M'; no argument required |
---|
4372 | # The diagnosis changed in icc 8.0: |
---|
4373 | # icc: Command line remark: option '-MP' not supported |
---|
4374 | if (grep 'ignoring option' conftest.err || |
---|
4375 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
---|
4376 | am_cv_CC_dependencies_compiler_type=$depmode |
---|
4377 | break |
---|
4378 | fi |
---|
4379 | fi |
---|
4380 | done |
---|
4381 | |
---|
4382 | cd .. |
---|
4383 | rm -rf conftest.dir |
---|
4384 | else |
---|
4385 | am_cv_CC_dependencies_compiler_type=none |
---|
4386 | fi |
---|
4387 | |
---|
4388 | fi |
---|
4389 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
---|
4390 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
---|
4391 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
---|
4392 | |
---|
4393 | if |
---|
4394 | test "x$enable_dependency_tracking" != xno \ |
---|
4395 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
---|
4396 | am__fastdepCC_TRUE= |
---|
4397 | am__fastdepCC_FALSE='#' |
---|
4398 | else |
---|
4399 | am__fastdepCC_TRUE='#' |
---|
4400 | am__fastdepCC_FALSE= |
---|
4401 | fi |
---|
4402 | |
---|
4403 | |
---|
4404 | if test "x$CC" != xcc; then |
---|
4405 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5 |
---|
4406 | $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } |
---|
4407 | else |
---|
4408 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5 |
---|
4409 | $as_echo_n "checking whether cc understands -c and -o together... " >&6; } |
---|
4410 | fi |
---|
4411 | set dummy $CC; ac_cc=`$as_echo "$2" | |
---|
4412 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` |
---|
4413 | if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then : |
---|
4414 | $as_echo_n "(cached) " >&6 |
---|
4415 | else |
---|
4416 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4417 | /* end confdefs.h. */ |
---|
4418 | |
---|
4419 | int |
---|
4420 | main () |
---|
4421 | { |
---|
4422 | |
---|
4423 | ; |
---|
4424 | return 0; |
---|
4425 | } |
---|
4426 | _ACEOF |
---|
4427 | # Make sure it works both with $CC and with simple cc. |
---|
4428 | # We do the test twice because some compilers refuse to overwrite an |
---|
4429 | # existing .o file with -o, though they will create one. |
---|
4430 | ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' |
---|
4431 | rm -f conftest2.* |
---|
4432 | if { { case "(($ac_try" in |
---|
4433 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
4434 | *) ac_try_echo=$ac_try;; |
---|
4435 | esac |
---|
4436 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
4437 | $as_echo "$ac_try_echo"; } >&5 |
---|
4438 | (eval "$ac_try") 2>&5 |
---|
4439 | ac_status=$? |
---|
4440 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
4441 | test $ac_status = 0; } && |
---|
4442 | test -f conftest2.$ac_objext && { { case "(($ac_try" in |
---|
4443 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
4444 | *) ac_try_echo=$ac_try;; |
---|
4445 | esac |
---|
4446 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
4447 | $as_echo "$ac_try_echo"; } >&5 |
---|
4448 | (eval "$ac_try") 2>&5 |
---|
4449 | ac_status=$? |
---|
4450 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
4451 | test $ac_status = 0; }; |
---|
4452 | then |
---|
4453 | eval ac_cv_prog_cc_${ac_cc}_c_o=yes |
---|
4454 | if test "x$CC" != xcc; then |
---|
4455 | # Test first that cc exists at all. |
---|
4456 | if { ac_try='cc -c conftest.$ac_ext >&5' |
---|
4457 | { { case "(($ac_try" in |
---|
4458 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
4459 | *) ac_try_echo=$ac_try;; |
---|
4460 | esac |
---|
4461 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
4462 | $as_echo "$ac_try_echo"; } >&5 |
---|
4463 | (eval "$ac_try") 2>&5 |
---|
4464 | ac_status=$? |
---|
4465 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
4466 | test $ac_status = 0; }; }; then |
---|
4467 | ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' |
---|
4468 | rm -f conftest2.* |
---|
4469 | if { { case "(($ac_try" in |
---|
4470 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
4471 | *) ac_try_echo=$ac_try;; |
---|
4472 | esac |
---|
4473 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
4474 | $as_echo "$ac_try_echo"; } >&5 |
---|
4475 | (eval "$ac_try") 2>&5 |
---|
4476 | ac_status=$? |
---|
4477 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
4478 | test $ac_status = 0; } && |
---|
4479 | test -f conftest2.$ac_objext && { { case "(($ac_try" in |
---|
4480 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
4481 | *) ac_try_echo=$ac_try;; |
---|
4482 | esac |
---|
4483 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
4484 | $as_echo "$ac_try_echo"; } >&5 |
---|
4485 | (eval "$ac_try") 2>&5 |
---|
4486 | ac_status=$? |
---|
4487 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
4488 | test $ac_status = 0; }; |
---|
4489 | then |
---|
4490 | # cc works too. |
---|
4491 | : |
---|
4492 | else |
---|
4493 | # cc exists but doesn't like -o. |
---|
4494 | eval ac_cv_prog_cc_${ac_cc}_c_o=no |
---|
4495 | fi |
---|
4496 | fi |
---|
4497 | fi |
---|
4498 | else |
---|
4499 | eval ac_cv_prog_cc_${ac_cc}_c_o=no |
---|
4500 | fi |
---|
4501 | rm -f core conftest* |
---|
4502 | |
---|
4503 | fi |
---|
4504 | if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then |
---|
4505 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
4506 | $as_echo "yes" >&6; } |
---|
4507 | else |
---|
4508 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
4509 | $as_echo "no" >&6; } |
---|
4510 | |
---|
4511 | $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h |
---|
4512 | |
---|
4513 | fi |
---|
4514 | |
---|
4515 | # FIXME: we rely on the cache variable name because |
---|
4516 | # there is no other way. |
---|
4517 | set dummy $CC |
---|
4518 | am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` |
---|
4519 | eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o |
---|
4520 | if test "$am_t" != yes; then |
---|
4521 | # Losing compiler, so override with the script. |
---|
4522 | # FIXME: It is wrong to rewrite CC. |
---|
4523 | # But if we don't then we get into trouble of one sort or another. |
---|
4524 | # A longer-term fix would be to have automake use am__CC in this case, |
---|
4525 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" |
---|
4526 | CC="$am_aux_dir/compile $CC" |
---|
4527 | fi |
---|
4528 | |
---|
4529 | # deprecated |
---|
4530 | # These are often not installed and people miss seeing the "no", so stop the configure. |
---|
4531 | for ac_prog in 'bison -y' byacc |
---|
4532 | do |
---|
4533 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
4534 | set dummy $ac_prog; ac_word=$2 |
---|
4535 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
4536 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
4537 | if ${ac_cv_prog_YACC+:} false; then : |
---|
4538 | $as_echo_n "(cached) " >&6 |
---|
4539 | else |
---|
4540 | if test -n "$YACC"; then |
---|
4541 | ac_cv_prog_YACC="$YACC" # Let the user override the test. |
---|
4542 | else |
---|
4543 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4544 | for as_dir in $PATH |
---|
4545 | do |
---|
4546 | IFS=$as_save_IFS |
---|
4547 | test -z "$as_dir" && as_dir=. |
---|
4548 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4549 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
4550 | ac_cv_prog_YACC="$ac_prog" |
---|
4551 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4552 | break 2 |
---|
4553 | fi |
---|
4554 | done |
---|
4555 | done |
---|
4556 | IFS=$as_save_IFS |
---|
4557 | |
---|
4558 | fi |
---|
4559 | fi |
---|
4560 | YACC=$ac_cv_prog_YACC |
---|
4561 | if test -n "$YACC"; then |
---|
4562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 |
---|
4563 | $as_echo "$YACC" >&6; } |
---|
4564 | else |
---|
4565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
4566 | $as_echo "no" >&6; } |
---|
4567 | fi |
---|
4568 | |
---|
4569 | |
---|
4570 | test -n "$YACC" && break |
---|
4571 | done |
---|
4572 | test -n "$YACC" || YACC="yacc" |
---|
4573 | |
---|
4574 | if test "${YACC}" = "yacc" ; then echo "Error: bison required." ; exit 1 ; fi |
---|
4575 | |
---|
4576 | for ac_prog in flex lex |
---|
4577 | do |
---|
4578 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
4579 | set dummy $ac_prog; ac_word=$2 |
---|
4580 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
4581 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
4582 | if ${ac_cv_prog_LEX+:} false; then : |
---|
4583 | $as_echo_n "(cached) " >&6 |
---|
4584 | else |
---|
4585 | if test -n "$LEX"; then |
---|
4586 | ac_cv_prog_LEX="$LEX" # Let the user override the test. |
---|
4587 | else |
---|
4588 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4589 | for as_dir in $PATH |
---|
4590 | do |
---|
4591 | IFS=$as_save_IFS |
---|
4592 | test -z "$as_dir" && as_dir=. |
---|
4593 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4594 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
4595 | ac_cv_prog_LEX="$ac_prog" |
---|
4596 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4597 | break 2 |
---|
4598 | fi |
---|
4599 | done |
---|
4600 | done |
---|
4601 | IFS=$as_save_IFS |
---|
4602 | |
---|
4603 | fi |
---|
4604 | fi |
---|
4605 | LEX=$ac_cv_prog_LEX |
---|
4606 | if test -n "$LEX"; then |
---|
4607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 |
---|
4608 | $as_echo "$LEX" >&6; } |
---|
4609 | else |
---|
4610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
4611 | $as_echo "no" >&6; } |
---|
4612 | fi |
---|
4613 | |
---|
4614 | |
---|
4615 | test -n "$LEX" && break |
---|
4616 | done |
---|
4617 | test -n "$LEX" || LEX=":" |
---|
4618 | |
---|
4619 | if test "x$LEX" != "x:"; then |
---|
4620 | cat >conftest.l <<_ACEOF |
---|
4621 | %% |
---|
4622 | a { ECHO; } |
---|
4623 | b { REJECT; } |
---|
4624 | c { yymore (); } |
---|
4625 | d { yyless (1); } |
---|
4626 | e { yyless (input () != 0); } |
---|
4627 | f { unput (yytext[0]); } |
---|
4628 | . { BEGIN INITIAL; } |
---|
4629 | %% |
---|
4630 | #ifdef YYTEXT_POINTER |
---|
4631 | extern char *yytext; |
---|
4632 | #endif |
---|
4633 | int |
---|
4634 | main (void) |
---|
4635 | { |
---|
4636 | return ! yylex () + ! yywrap (); |
---|
4637 | } |
---|
4638 | _ACEOF |
---|
4639 | { { ac_try="$LEX conftest.l" |
---|
4640 | case "(($ac_try" in |
---|
4641 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
4642 | *) ac_try_echo=$ac_try;; |
---|
4643 | esac |
---|
4644 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
4645 | $as_echo "$ac_try_echo"; } >&5 |
---|
4646 | (eval "$LEX conftest.l") 2>&5 |
---|
4647 | ac_status=$? |
---|
4648 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
4649 | test $ac_status = 0; } |
---|
4650 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 |
---|
4651 | $as_echo_n "checking lex output file root... " >&6; } |
---|
4652 | if ${ac_cv_prog_lex_root+:} false; then : |
---|
4653 | $as_echo_n "(cached) " >&6 |
---|
4654 | else |
---|
4655 | |
---|
4656 | if test -f lex.yy.c; then |
---|
4657 | ac_cv_prog_lex_root=lex.yy |
---|
4658 | elif test -f lexyy.c; then |
---|
4659 | ac_cv_prog_lex_root=lexyy |
---|
4660 | else |
---|
4661 | as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5 |
---|
4662 | fi |
---|
4663 | fi |
---|
4664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 |
---|
4665 | $as_echo "$ac_cv_prog_lex_root" >&6; } |
---|
4666 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root |
---|
4667 | |
---|
4668 | if test -z "${LEXLIB+set}"; then |
---|
4669 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 |
---|
4670 | $as_echo_n "checking lex library... " >&6; } |
---|
4671 | if ${ac_cv_lib_lex+:} false; then : |
---|
4672 | $as_echo_n "(cached) " >&6 |
---|
4673 | else |
---|
4674 | |
---|
4675 | ac_save_LIBS=$LIBS |
---|
4676 | ac_cv_lib_lex='none needed' |
---|
4677 | for ac_lib in '' -lfl -ll; do |
---|
4678 | LIBS="$ac_lib $ac_save_LIBS" |
---|
4679 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4680 | /* end confdefs.h. */ |
---|
4681 | `cat $LEX_OUTPUT_ROOT.c` |
---|
4682 | _ACEOF |
---|
4683 | if ac_fn_c_try_link "$LINENO"; then : |
---|
4684 | ac_cv_lib_lex=$ac_lib |
---|
4685 | fi |
---|
4686 | rm -f core conftest.err conftest.$ac_objext \ |
---|
4687 | conftest$ac_exeext conftest.$ac_ext |
---|
4688 | test "$ac_cv_lib_lex" != 'none needed' && break |
---|
4689 | done |
---|
4690 | LIBS=$ac_save_LIBS |
---|
4691 | |
---|
4692 | fi |
---|
4693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 |
---|
4694 | $as_echo "$ac_cv_lib_lex" >&6; } |
---|
4695 | test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex |
---|
4696 | fi |
---|
4697 | |
---|
4698 | |
---|
4699 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 |
---|
4700 | $as_echo_n "checking whether yytext is a pointer... " >&6; } |
---|
4701 | if ${ac_cv_prog_lex_yytext_pointer+:} false; then : |
---|
4702 | $as_echo_n "(cached) " >&6 |
---|
4703 | else |
---|
4704 | # POSIX says lex can declare yytext either as a pointer or an array; the |
---|
4705 | # default is implementation-dependent. Figure out which it is, since |
---|
4706 | # not all implementations provide the %pointer and %array declarations. |
---|
4707 | ac_cv_prog_lex_yytext_pointer=no |
---|
4708 | ac_save_LIBS=$LIBS |
---|
4709 | LIBS="$LEXLIB $ac_save_LIBS" |
---|
4710 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4711 | /* end confdefs.h. */ |
---|
4712 | |
---|
4713 | #define YYTEXT_POINTER 1 |
---|
4714 | `cat $LEX_OUTPUT_ROOT.c` |
---|
4715 | _ACEOF |
---|
4716 | if ac_fn_c_try_link "$LINENO"; then : |
---|
4717 | ac_cv_prog_lex_yytext_pointer=yes |
---|
4718 | fi |
---|
4719 | rm -f core conftest.err conftest.$ac_objext \ |
---|
4720 | conftest$ac_exeext conftest.$ac_ext |
---|
4721 | LIBS=$ac_save_LIBS |
---|
4722 | |
---|
4723 | fi |
---|
4724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
---|
4725 | $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } |
---|
4726 | if test $ac_cv_prog_lex_yytext_pointer = yes; then |
---|
4727 | |
---|
4728 | $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h |
---|
4729 | |
---|
4730 | fi |
---|
4731 | rm -f conftest.l $LEX_OUTPUT_ROOT.c |
---|
4732 | |
---|
4733 | fi |
---|
4734 | if test "${LEX}" = "lex" ; then echo "Error: flex required." ; exit 1 ; fi |
---|
4735 | |
---|
4736 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
---|
4737 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
---|
4738 | set x ${MAKE-make} |
---|
4739 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
---|
4740 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
---|
4741 | $as_echo_n "(cached) " >&6 |
---|
4742 | else |
---|
4743 | cat >conftest.make <<\_ACEOF |
---|
4744 | SHELL = /bin/sh |
---|
4745 | all: |
---|
4746 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
---|
4747 | _ACEOF |
---|
4748 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
---|
4749 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
---|
4750 | *@@@%%%=?*=@@@%%%*) |
---|
4751 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
---|
4752 | *) |
---|
4753 | eval ac_cv_prog_make_${ac_make}_set=no;; |
---|
4754 | esac |
---|
4755 | rm -f conftest.make |
---|
4756 | fi |
---|
4757 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
---|
4758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
4759 | $as_echo "yes" >&6; } |
---|
4760 | SET_MAKE= |
---|
4761 | else |
---|
4762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
4763 | $as_echo "no" >&6; } |
---|
4764 | SET_MAKE="MAKE=${MAKE-make}" |
---|
4765 | fi |
---|
4766 | |
---|
4767 | if test -n "$ac_tool_prefix"; then |
---|
4768 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
---|
4769 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
---|
4770 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
4771 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
4772 | if ${ac_cv_prog_RANLIB+:} false; then : |
---|
4773 | $as_echo_n "(cached) " >&6 |
---|
4774 | else |
---|
4775 | if test -n "$RANLIB"; then |
---|
4776 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
---|
4777 | else |
---|
4778 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4779 | for as_dir in $PATH |
---|
4780 | do |
---|
4781 | IFS=$as_save_IFS |
---|
4782 | test -z "$as_dir" && as_dir=. |
---|
4783 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4784 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
4785 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
---|
4786 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4787 | break 2 |
---|
4788 | fi |
---|
4789 | done |
---|
4790 | done |
---|
4791 | IFS=$as_save_IFS |
---|
4792 | |
---|
4793 | fi |
---|
4794 | fi |
---|
4795 | RANLIB=$ac_cv_prog_RANLIB |
---|
4796 | if test -n "$RANLIB"; then |
---|
4797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
---|
4798 | $as_echo "$RANLIB" >&6; } |
---|
4799 | else |
---|
4800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
4801 | $as_echo "no" >&6; } |
---|
4802 | fi |
---|
4803 | |
---|
4804 | |
---|
4805 | fi |
---|
4806 | if test -z "$ac_cv_prog_RANLIB"; then |
---|
4807 | ac_ct_RANLIB=$RANLIB |
---|
4808 | # Extract the first word of "ranlib", so it can be a program name with args. |
---|
4809 | set dummy ranlib; ac_word=$2 |
---|
4810 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
4811 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
4812 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
---|
4813 | $as_echo_n "(cached) " >&6 |
---|
4814 | else |
---|
4815 | if test -n "$ac_ct_RANLIB"; then |
---|
4816 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
---|
4817 | else |
---|
4818 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4819 | for as_dir in $PATH |
---|
4820 | do |
---|
4821 | IFS=$as_save_IFS |
---|
4822 | test -z "$as_dir" && as_dir=. |
---|
4823 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4824 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
4825 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
---|
4826 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4827 | break 2 |
---|
4828 | fi |
---|
4829 | done |
---|
4830 | done |
---|
4831 | IFS=$as_save_IFS |
---|
4832 | |
---|
4833 | fi |
---|
4834 | fi |
---|
4835 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
---|
4836 | if test -n "$ac_ct_RANLIB"; then |
---|
4837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
---|
4838 | $as_echo "$ac_ct_RANLIB" >&6; } |
---|
4839 | else |
---|
4840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
4841 | $as_echo "no" >&6; } |
---|
4842 | fi |
---|
4843 | |
---|
4844 | if test "x$ac_ct_RANLIB" = x; then |
---|
4845 | RANLIB=":" |
---|
4846 | else |
---|
4847 | case $cross_compiling:$ac_tool_warned in |
---|
4848 | yes:) |
---|
4849 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
4850 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
4851 | ac_tool_warned=yes ;; |
---|
4852 | esac |
---|
4853 | RANLIB=$ac_ct_RANLIB |
---|
4854 | fi |
---|
4855 | else |
---|
4856 | RANLIB="$ac_cv_prog_RANLIB" |
---|
4857 | fi |
---|
4858 | |
---|
4859 | |
---|
4860 | # Checks for libraries. |
---|
4861 | |
---|
4862 | # Checks for header files. |
---|
4863 | ac_ext=c |
---|
4864 | ac_cpp='$CPP $CPPFLAGS' |
---|
4865 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4866 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4867 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4868 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
---|
4869 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
---|
4870 | # On Suns, sometimes $CPP names a directory. |
---|
4871 | if test -n "$CPP" && test -d "$CPP"; then |
---|
4872 | CPP= |
---|
4873 | fi |
---|
4874 | if test -z "$CPP"; then |
---|
4875 | if ${ac_cv_prog_CPP+:} false; then : |
---|
4876 | $as_echo_n "(cached) " >&6 |
---|
4877 | else |
---|
4878 | # Double quotes because CPP needs to be expanded |
---|
4879 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
---|
4880 | do |
---|
4881 | ac_preproc_ok=false |
---|
4882 | for ac_c_preproc_warn_flag in '' yes |
---|
4883 | do |
---|
4884 | # Use a header file that comes with gcc, so configuring glibc |
---|
4885 | # with a fresh cross-compiler works. |
---|
4886 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
4887 | # <limits.h> exists even on freestanding compilers. |
---|
4888 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
4889 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
4890 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4891 | /* end confdefs.h. */ |
---|
4892 | #ifdef __STDC__ |
---|
4893 | # include <limits.h> |
---|
4894 | #else |
---|
4895 | # include <assert.h> |
---|
4896 | #endif |
---|
4897 | Syntax error |
---|
4898 | _ACEOF |
---|
4899 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
4900 | |
---|
4901 | else |
---|
4902 | # Broken: fails on valid input. |
---|
4903 | continue |
---|
4904 | fi |
---|
4905 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
4906 | |
---|
4907 | # OK, works on sane cases. Now check whether nonexistent headers |
---|
4908 | # can be detected and how. |
---|
4909 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4910 | /* end confdefs.h. */ |
---|
4911 | #include <ac_nonexistent.h> |
---|
4912 | _ACEOF |
---|
4913 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
4914 | # Broken: success on invalid input. |
---|
4915 | continue |
---|
4916 | else |
---|
4917 | # Passes both tests. |
---|
4918 | ac_preproc_ok=: |
---|
4919 | break |
---|
4920 | fi |
---|
4921 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
4922 | |
---|
4923 | done |
---|
4924 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
4925 | rm -f conftest.i conftest.err conftest.$ac_ext |
---|
4926 | if $ac_preproc_ok; then : |
---|
4927 | break |
---|
4928 | fi |
---|
4929 | |
---|
4930 | done |
---|
4931 | ac_cv_prog_CPP=$CPP |
---|
4932 | |
---|
4933 | fi |
---|
4934 | CPP=$ac_cv_prog_CPP |
---|
4935 | else |
---|
4936 | ac_cv_prog_CPP=$CPP |
---|
4937 | fi |
---|
4938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
---|
4939 | $as_echo "$CPP" >&6; } |
---|
4940 | ac_preproc_ok=false |
---|
4941 | for ac_c_preproc_warn_flag in '' yes |
---|
4942 | do |
---|
4943 | # Use a header file that comes with gcc, so configuring glibc |
---|
4944 | # with a fresh cross-compiler works. |
---|
4945 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
4946 | # <limits.h> exists even on freestanding compilers. |
---|
4947 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
4948 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
4949 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4950 | /* end confdefs.h. */ |
---|
4951 | #ifdef __STDC__ |
---|
4952 | # include <limits.h> |
---|
4953 | #else |
---|
4954 | # include <assert.h> |
---|
4955 | #endif |
---|
4956 | Syntax error |
---|
4957 | _ACEOF |
---|
4958 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
4959 | |
---|
4960 | else |
---|
4961 | # Broken: fails on valid input. |
---|
4962 | continue |
---|
4963 | fi |
---|
4964 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
4965 | |
---|
4966 | # OK, works on sane cases. Now check whether nonexistent headers |
---|
4967 | # can be detected and how. |
---|
4968 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4969 | /* end confdefs.h. */ |
---|
4970 | #include <ac_nonexistent.h> |
---|
4971 | _ACEOF |
---|
4972 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
4973 | # Broken: success on invalid input. |
---|
4974 | continue |
---|
4975 | else |
---|
4976 | # Passes both tests. |
---|
4977 | ac_preproc_ok=: |
---|
4978 | break |
---|
4979 | fi |
---|
4980 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
4981 | |
---|
4982 | done |
---|
4983 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
4984 | rm -f conftest.i conftest.err conftest.$ac_ext |
---|
4985 | if $ac_preproc_ok; then : |
---|
4986 | |
---|
4987 | else |
---|
4988 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
4989 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
4990 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
---|
4991 | See \`config.log' for more details" "$LINENO" 5; } |
---|
4992 | fi |
---|
4993 | |
---|
4994 | ac_ext=c |
---|
4995 | ac_cpp='$CPP $CPPFLAGS' |
---|
4996 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4997 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4998 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4999 | |
---|
5000 | |
---|
5001 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
---|
5002 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
---|
5003 | if ${ac_cv_path_GREP+:} false; then : |
---|
5004 | $as_echo_n "(cached) " >&6 |
---|
5005 | else |
---|
5006 | if test -z "$GREP"; then |
---|
5007 | ac_path_GREP_found=false |
---|
5008 | # Loop through the user's path and test for each of PROGNAME-LIST |
---|
5009 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5010 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
---|
5011 | do |
---|
5012 | IFS=$as_save_IFS |
---|
5013 | test -z "$as_dir" && as_dir=. |
---|
5014 | for ac_prog in grep ggrep; do |
---|
5015 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
5016 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
---|
5017 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
---|
5018 | # Check for GNU ac_path_GREP and select it if it is found. |
---|
5019 | # Check for GNU $ac_path_GREP |
---|
5020 | case `"$ac_path_GREP" --version 2>&1` in |
---|
5021 | *GNU*) |
---|
5022 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
---|
5023 | *) |
---|
5024 | ac_count=0 |
---|
5025 | $as_echo_n 0123456789 >"conftest.in" |
---|
5026 | while : |
---|
5027 | do |
---|
5028 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
---|
5029 | mv "conftest.tmp" "conftest.in" |
---|
5030 | cp "conftest.in" "conftest.nl" |
---|
5031 | $as_echo 'GREP' >> "conftest.nl" |
---|
5032 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
---|
5033 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
---|
5034 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
---|
5035 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
---|
5036 | # Best one so far, save it but keep looking for a better one |
---|
5037 | ac_cv_path_GREP="$ac_path_GREP" |
---|
5038 | ac_path_GREP_max=$ac_count |
---|
5039 | fi |
---|
5040 | # 10*(2^10) chars as input seems more than enough |
---|
5041 | test $ac_count -gt 10 && break |
---|
5042 | done |
---|
5043 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
---|
5044 | esac |
---|
5045 | |
---|
5046 | $ac_path_GREP_found && break 3 |
---|
5047 | done |
---|
5048 | done |
---|
5049 | done |
---|
5050 | IFS=$as_save_IFS |
---|
5051 | if test -z "$ac_cv_path_GREP"; then |
---|
5052 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
---|
5053 | fi |
---|
5054 | else |
---|
5055 | ac_cv_path_GREP=$GREP |
---|
5056 | fi |
---|
5057 | |
---|
5058 | fi |
---|
5059 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
---|
5060 | $as_echo "$ac_cv_path_GREP" >&6; } |
---|
5061 | GREP="$ac_cv_path_GREP" |
---|
5062 | |
---|
5063 | |
---|
5064 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
---|
5065 | $as_echo_n "checking for egrep... " >&6; } |
---|
5066 | if ${ac_cv_path_EGREP+:} false; then : |
---|
5067 | $as_echo_n "(cached) " >&6 |
---|
5068 | else |
---|
5069 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
---|
5070 | then ac_cv_path_EGREP="$GREP -E" |
---|
5071 | else |
---|
5072 | if test -z "$EGREP"; then |
---|
5073 | ac_path_EGREP_found=false |
---|
5074 | # Loop through the user's path and test for each of PROGNAME-LIST |
---|
5075 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5076 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
---|
5077 | do |
---|
5078 | IFS=$as_save_IFS |
---|
5079 | test -z "$as_dir" && as_dir=. |
---|
5080 | for ac_prog in egrep; do |
---|
5081 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
5082 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
---|
5083 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
---|
5084 | # Check for GNU ac_path_EGREP and select it if it is found. |
---|
5085 | # Check for GNU $ac_path_EGREP |
---|
5086 | case `"$ac_path_EGREP" --version 2>&1` in |
---|
5087 | *GNU*) |
---|
5088 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
---|
5089 | *) |
---|
5090 | ac_count=0 |
---|
5091 | $as_echo_n 0123456789 >"conftest.in" |
---|
5092 | while : |
---|
5093 | do |
---|
5094 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
---|
5095 | mv "conftest.tmp" "conftest.in" |
---|
5096 | cp "conftest.in" "conftest.nl" |
---|
5097 | $as_echo 'EGREP' >> "conftest.nl" |
---|
5098 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
---|
5099 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
---|
5100 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
---|
5101 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
---|
5102 | # Best one so far, save it but keep looking for a better one |
---|
5103 | ac_cv_path_EGREP="$ac_path_EGREP" |
---|
5104 | ac_path_EGREP_max=$ac_count |
---|
5105 | fi |
---|
5106 | # 10*(2^10) chars as input seems more than enough |
---|
5107 | test $ac_count -gt 10 && break |
---|
5108 | done |
---|
5109 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
---|
5110 | esac |
---|
5111 | |
---|
5112 | $ac_path_EGREP_found && break 3 |
---|
5113 | done |
---|
5114 | done |
---|
5115 | done |
---|
5116 | IFS=$as_save_IFS |
---|
5117 | if test -z "$ac_cv_path_EGREP"; then |
---|
5118 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
---|
5119 | fi |
---|
5120 | else |
---|
5121 | ac_cv_path_EGREP=$EGREP |
---|
5122 | fi |
---|
5123 | |
---|
5124 | fi |
---|
5125 | fi |
---|
5126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
---|
5127 | $as_echo "$ac_cv_path_EGREP" >&6; } |
---|
5128 | EGREP="$ac_cv_path_EGREP" |
---|
5129 | |
---|
5130 | |
---|
5131 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
---|
5132 | $as_echo_n "checking for ANSI C header files... " >&6; } |
---|
5133 | if ${ac_cv_header_stdc+:} false; then : |
---|
5134 | $as_echo_n "(cached) " >&6 |
---|
5135 | else |
---|
5136 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5137 | /* end confdefs.h. */ |
---|
5138 | #include <stdlib.h> |
---|
5139 | #include <stdarg.h> |
---|
5140 | #include <string.h> |
---|
5141 | #include <float.h> |
---|
5142 | |
---|
5143 | int |
---|
5144 | main () |
---|
5145 | { |
---|
5146 | |
---|
5147 | ; |
---|
5148 | return 0; |
---|
5149 | } |
---|
5150 | _ACEOF |
---|
5151 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
5152 | ac_cv_header_stdc=yes |
---|
5153 | else |
---|
5154 | ac_cv_header_stdc=no |
---|
5155 | fi |
---|
5156 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5157 | |
---|
5158 | if test $ac_cv_header_stdc = yes; then |
---|
5159 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
5160 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5161 | /* end confdefs.h. */ |
---|
5162 | #include <string.h> |
---|
5163 | |
---|
5164 | _ACEOF |
---|
5165 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
5166 | $EGREP "memchr" >/dev/null 2>&1; then : |
---|
5167 | |
---|
5168 | else |
---|
5169 | ac_cv_header_stdc=no |
---|
5170 | fi |
---|
5171 | rm -f conftest* |
---|
5172 | |
---|
5173 | fi |
---|
5174 | |
---|
5175 | if test $ac_cv_header_stdc = yes; then |
---|
5176 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
5177 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5178 | /* end confdefs.h. */ |
---|
5179 | #include <stdlib.h> |
---|
5180 | |
---|
5181 | _ACEOF |
---|
5182 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
5183 | $EGREP "free" >/dev/null 2>&1; then : |
---|
5184 | |
---|
5185 | else |
---|
5186 | ac_cv_header_stdc=no |
---|
5187 | fi |
---|
5188 | rm -f conftest* |
---|
5189 | |
---|
5190 | fi |
---|
5191 | |
---|
5192 | if test $ac_cv_header_stdc = yes; then |
---|
5193 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
5194 | if test "$cross_compiling" = yes; then : |
---|
5195 | : |
---|
5196 | else |
---|
5197 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5198 | /* end confdefs.h. */ |
---|
5199 | #include <ctype.h> |
---|
5200 | #include <stdlib.h> |
---|
5201 | #if ((' ' & 0x0FF) == 0x020) |
---|
5202 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
5203 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
5204 | #else |
---|
5205 | # define ISLOWER(c) \ |
---|
5206 | (('a' <= (c) && (c) <= 'i') \ |
---|
5207 | || ('j' <= (c) && (c) <= 'r') \ |
---|
5208 | || ('s' <= (c) && (c) <= 'z')) |
---|
5209 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
5210 | #endif |
---|
5211 | |
---|
5212 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
5213 | int |
---|
5214 | main () |
---|
5215 | { |
---|
5216 | int i; |
---|
5217 | for (i = 0; i < 256; i++) |
---|
5218 | if (XOR (islower (i), ISLOWER (i)) |
---|
5219 | || toupper (i) != TOUPPER (i)) |
---|
5220 | return 2; |
---|
5221 | return 0; |
---|
5222 | } |
---|
5223 | _ACEOF |
---|
5224 | if ac_fn_c_try_run "$LINENO"; then : |
---|
5225 | |
---|
5226 | else |
---|
5227 | ac_cv_header_stdc=no |
---|
5228 | fi |
---|
5229 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
---|
5230 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
---|
5231 | fi |
---|
5232 | |
---|
5233 | fi |
---|
5234 | fi |
---|
5235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
---|
5236 | $as_echo "$ac_cv_header_stdc" >&6; } |
---|
5237 | if test $ac_cv_header_stdc = yes; then |
---|
5238 | |
---|
5239 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
---|
5240 | |
---|
5241 | fi |
---|
5242 | |
---|
5243 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
---|
5244 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
---|
5245 | inttypes.h stdint.h unistd.h |
---|
5246 | do : |
---|
5247 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
5248 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
---|
5249 | " |
---|
5250 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
---|
5251 | cat >>confdefs.h <<_ACEOF |
---|
5252 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
5253 | _ACEOF |
---|
5254 | |
---|
5255 | fi |
---|
5256 | |
---|
5257 | done |
---|
5258 | |
---|
5259 | |
---|
5260 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
---|
5261 | if test "x$ac_cv_type_size_t" = xyes; then : |
---|
5262 | |
---|
5263 | else |
---|
5264 | |
---|
5265 | cat >>confdefs.h <<_ACEOF |
---|
5266 | #define size_t unsigned int |
---|
5267 | _ACEOF |
---|
5268 | |
---|
5269 | fi |
---|
5270 | |
---|
5271 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
---|
5272 | # for constant arguments. Useless! |
---|
5273 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 |
---|
5274 | $as_echo_n "checking for working alloca.h... " >&6; } |
---|
5275 | if ${ac_cv_working_alloca_h+:} false; then : |
---|
5276 | $as_echo_n "(cached) " >&6 |
---|
5277 | else |
---|
5278 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5279 | /* end confdefs.h. */ |
---|
5280 | #include <alloca.h> |
---|
5281 | int |
---|
5282 | main () |
---|
5283 | { |
---|
5284 | char *p = (char *) alloca (2 * sizeof (int)); |
---|
5285 | if (p) return 0; |
---|
5286 | ; |
---|
5287 | return 0; |
---|
5288 | } |
---|
5289 | _ACEOF |
---|
5290 | if ac_fn_c_try_link "$LINENO"; then : |
---|
5291 | ac_cv_working_alloca_h=yes |
---|
5292 | else |
---|
5293 | ac_cv_working_alloca_h=no |
---|
5294 | fi |
---|
5295 | rm -f core conftest.err conftest.$ac_objext \ |
---|
5296 | conftest$ac_exeext conftest.$ac_ext |
---|
5297 | fi |
---|
5298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 |
---|
5299 | $as_echo "$ac_cv_working_alloca_h" >&6; } |
---|
5300 | if test $ac_cv_working_alloca_h = yes; then |
---|
5301 | |
---|
5302 | $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h |
---|
5303 | |
---|
5304 | fi |
---|
5305 | |
---|
5306 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 |
---|
5307 | $as_echo_n "checking for alloca... " >&6; } |
---|
5308 | if ${ac_cv_func_alloca_works+:} false; then : |
---|
5309 | $as_echo_n "(cached) " >&6 |
---|
5310 | else |
---|
5311 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5312 | /* end confdefs.h. */ |
---|
5313 | #ifdef __GNUC__ |
---|
5314 | # define alloca __builtin_alloca |
---|
5315 | #else |
---|
5316 | # ifdef _MSC_VER |
---|
5317 | # include <malloc.h> |
---|
5318 | # define alloca _alloca |
---|
5319 | # else |
---|
5320 | # ifdef HAVE_ALLOCA_H |
---|
5321 | # include <alloca.h> |
---|
5322 | # else |
---|
5323 | # ifdef _AIX |
---|
5324 | #pragma alloca |
---|
5325 | # else |
---|
5326 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
---|
5327 | void *alloca (size_t); |
---|
5328 | # endif |
---|
5329 | # endif |
---|
5330 | # endif |
---|
5331 | # endif |
---|
5332 | #endif |
---|
5333 | |
---|
5334 | int |
---|
5335 | main () |
---|
5336 | { |
---|
5337 | char *p = (char *) alloca (1); |
---|
5338 | if (p) return 0; |
---|
5339 | ; |
---|
5340 | return 0; |
---|
5341 | } |
---|
5342 | _ACEOF |
---|
5343 | if ac_fn_c_try_link "$LINENO"; then : |
---|
5344 | ac_cv_func_alloca_works=yes |
---|
5345 | else |
---|
5346 | ac_cv_func_alloca_works=no |
---|
5347 | fi |
---|
5348 | rm -f core conftest.err conftest.$ac_objext \ |
---|
5349 | conftest$ac_exeext conftest.$ac_ext |
---|
5350 | fi |
---|
5351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 |
---|
5352 | $as_echo "$ac_cv_func_alloca_works" >&6; } |
---|
5353 | |
---|
5354 | if test $ac_cv_func_alloca_works = yes; then |
---|
5355 | |
---|
5356 | $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h |
---|
5357 | |
---|
5358 | else |
---|
5359 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
---|
5360 | # that cause trouble. Some versions do not even contain alloca or |
---|
5361 | # contain a buggy version. If you still want to use their alloca, |
---|
5362 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
---|
5363 | |
---|
5364 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
---|
5365 | |
---|
5366 | $as_echo "#define C_ALLOCA 1" >>confdefs.h |
---|
5367 | |
---|
5368 | |
---|
5369 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 |
---|
5370 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } |
---|
5371 | if ${ac_cv_os_cray+:} false; then : |
---|
5372 | $as_echo_n "(cached) " >&6 |
---|
5373 | else |
---|
5374 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5375 | /* end confdefs.h. */ |
---|
5376 | #if defined CRAY && ! defined CRAY2 |
---|
5377 | webecray |
---|
5378 | #else |
---|
5379 | wenotbecray |
---|
5380 | #endif |
---|
5381 | |
---|
5382 | _ACEOF |
---|
5383 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
5384 | $EGREP "webecray" >/dev/null 2>&1; then : |
---|
5385 | ac_cv_os_cray=yes |
---|
5386 | else |
---|
5387 | ac_cv_os_cray=no |
---|
5388 | fi |
---|
5389 | rm -f conftest* |
---|
5390 | |
---|
5391 | fi |
---|
5392 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 |
---|
5393 | $as_echo "$ac_cv_os_cray" >&6; } |
---|
5394 | if test $ac_cv_os_cray = yes; then |
---|
5395 | for ac_func in _getb67 GETB67 getb67; do |
---|
5396 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
---|
5397 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
---|
5398 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
---|
5399 | |
---|
5400 | cat >>confdefs.h <<_ACEOF |
---|
5401 | #define CRAY_STACKSEG_END $ac_func |
---|
5402 | _ACEOF |
---|
5403 | |
---|
5404 | break |
---|
5405 | fi |
---|
5406 | |
---|
5407 | done |
---|
5408 | fi |
---|
5409 | |
---|
5410 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 |
---|
5411 | $as_echo_n "checking stack direction for C alloca... " >&6; } |
---|
5412 | if ${ac_cv_c_stack_direction+:} false; then : |
---|
5413 | $as_echo_n "(cached) " >&6 |
---|
5414 | else |
---|
5415 | if test "$cross_compiling" = yes; then : |
---|
5416 | ac_cv_c_stack_direction=0 |
---|
5417 | else |
---|
5418 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5419 | /* end confdefs.h. */ |
---|
5420 | $ac_includes_default |
---|
5421 | int |
---|
5422 | find_stack_direction () |
---|
5423 | { |
---|
5424 | static char *addr = 0; |
---|
5425 | auto char dummy; |
---|
5426 | if (addr == 0) |
---|
5427 | { |
---|
5428 | addr = &dummy; |
---|
5429 | return find_stack_direction (); |
---|
5430 | } |
---|
5431 | else |
---|
5432 | return (&dummy > addr) ? 1 : -1; |
---|
5433 | } |
---|
5434 | |
---|
5435 | int |
---|
5436 | main () |
---|
5437 | { |
---|
5438 | return find_stack_direction () < 0; |
---|
5439 | } |
---|
5440 | _ACEOF |
---|
5441 | if ac_fn_c_try_run "$LINENO"; then : |
---|
5442 | ac_cv_c_stack_direction=1 |
---|
5443 | else |
---|
5444 | ac_cv_c_stack_direction=-1 |
---|
5445 | fi |
---|
5446 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
---|
5447 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
---|
5448 | fi |
---|
5449 | |
---|
5450 | fi |
---|
5451 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 |
---|
5452 | $as_echo "$ac_cv_c_stack_direction" >&6; } |
---|
5453 | cat >>confdefs.h <<_ACEOF |
---|
5454 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
---|
5455 | _ACEOF |
---|
5456 | |
---|
5457 | |
---|
5458 | fi |
---|
5459 | |
---|
5460 | for ac_header in fenv.h float.h inttypes.h libintl.h limits.h malloc.h stddef.h stdlib.h string.h unistd.h |
---|
5461 | do : |
---|
5462 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
5463 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
---|
5464 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
---|
5465 | cat >>confdefs.h <<_ACEOF |
---|
5466 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
5467 | _ACEOF |
---|
5468 | |
---|
5469 | fi |
---|
5470 | |
---|
5471 | done |
---|
5472 | |
---|
5473 | |
---|
5474 | # Checks for typedefs, structures, and compiler characteristics. |
---|
5475 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 |
---|
5476 | $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } |
---|
5477 | if ${ac_cv_header_stdbool_h+:} false; then : |
---|
5478 | $as_echo_n "(cached) " >&6 |
---|
5479 | else |
---|
5480 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5481 | /* end confdefs.h. */ |
---|
5482 | |
---|
5483 | #include <stdbool.h> |
---|
5484 | #ifndef bool |
---|
5485 | "error: bool is not defined" |
---|
5486 | #endif |
---|
5487 | #ifndef false |
---|
5488 | "error: false is not defined" |
---|
5489 | #endif |
---|
5490 | #if false |
---|
5491 | "error: false is not 0" |
---|
5492 | #endif |
---|
5493 | #ifndef true |
---|
5494 | "error: true is not defined" |
---|
5495 | #endif |
---|
5496 | #if true != 1 |
---|
5497 | "error: true is not 1" |
---|
5498 | #endif |
---|
5499 | #ifndef __bool_true_false_are_defined |
---|
5500 | "error: __bool_true_false_are_defined is not defined" |
---|
5501 | #endif |
---|
5502 | |
---|
5503 | struct s { _Bool s: 1; _Bool t; } s; |
---|
5504 | |
---|
5505 | char a[true == 1 ? 1 : -1]; |
---|
5506 | char b[false == 0 ? 1 : -1]; |
---|
5507 | char c[__bool_true_false_are_defined == 1 ? 1 : -1]; |
---|
5508 | char d[(bool) 0.5 == true ? 1 : -1]; |
---|
5509 | /* See body of main program for 'e'. */ |
---|
5510 | char f[(_Bool) 0.0 == false ? 1 : -1]; |
---|
5511 | char g[true]; |
---|
5512 | char h[sizeof (_Bool)]; |
---|
5513 | char i[sizeof s.t]; |
---|
5514 | enum { j = false, k = true, l = false * true, m = true * 256 }; |
---|
5515 | /* The following fails for |
---|
5516 | HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ |
---|
5517 | _Bool n[m]; |
---|
5518 | char o[sizeof n == m * sizeof n[0] ? 1 : -1]; |
---|
5519 | char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; |
---|
5520 | /* Catch a bug in an HP-UX C compiler. See |
---|
5521 | http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html |
---|
5522 | http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html |
---|
5523 | */ |
---|
5524 | _Bool q = true; |
---|
5525 | _Bool *pq = &q; |
---|
5526 | |
---|
5527 | int |
---|
5528 | main () |
---|
5529 | { |
---|
5530 | |
---|
5531 | bool e = &s; |
---|
5532 | *pq |= q; |
---|
5533 | *pq |= ! q; |
---|
5534 | /* Refer to every declared value, to avoid compiler optimizations. */ |
---|
5535 | return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l |
---|
5536 | + !m + !n + !o + !p + !q + !pq); |
---|
5537 | |
---|
5538 | ; |
---|
5539 | return 0; |
---|
5540 | } |
---|
5541 | _ACEOF |
---|
5542 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
5543 | ac_cv_header_stdbool_h=yes |
---|
5544 | else |
---|
5545 | ac_cv_header_stdbool_h=no |
---|
5546 | fi |
---|
5547 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5548 | fi |
---|
5549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 |
---|
5550 | $as_echo "$ac_cv_header_stdbool_h" >&6; } |
---|
5551 | ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" |
---|
5552 | if test "x$ac_cv_type__Bool" = xyes; then : |
---|
5553 | |
---|
5554 | cat >>confdefs.h <<_ACEOF |
---|
5555 | #define HAVE__BOOL 1 |
---|
5556 | _ACEOF |
---|
5557 | |
---|
5558 | |
---|
5559 | fi |
---|
5560 | |
---|
5561 | if test $ac_cv_header_stdbool_h = yes; then |
---|
5562 | |
---|
5563 | $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h |
---|
5564 | |
---|
5565 | fi |
---|
5566 | |
---|
5567 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
---|
5568 | $as_echo_n "checking for inline... " >&6; } |
---|
5569 | if ${ac_cv_c_inline+:} false; then : |
---|
5570 | $as_echo_n "(cached) " >&6 |
---|
5571 | else |
---|
5572 | ac_cv_c_inline=no |
---|
5573 | for ac_kw in inline __inline__ __inline; do |
---|
5574 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5575 | /* end confdefs.h. */ |
---|
5576 | #ifndef __cplusplus |
---|
5577 | typedef int foo_t; |
---|
5578 | static $ac_kw foo_t static_foo () {return 0; } |
---|
5579 | $ac_kw foo_t foo () {return 0; } |
---|
5580 | #endif |
---|
5581 | |
---|
5582 | _ACEOF |
---|
5583 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
5584 | ac_cv_c_inline=$ac_kw |
---|
5585 | fi |
---|
5586 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5587 | test "$ac_cv_c_inline" != no && break |
---|
5588 | done |
---|
5589 | |
---|
5590 | fi |
---|
5591 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 |
---|
5592 | $as_echo "$ac_cv_c_inline" >&6; } |
---|
5593 | |
---|
5594 | case $ac_cv_c_inline in |
---|
5595 | inline | yes) ;; |
---|
5596 | *) |
---|
5597 | case $ac_cv_c_inline in |
---|
5598 | no) ac_val=;; |
---|
5599 | *) ac_val=$ac_cv_c_inline;; |
---|
5600 | esac |
---|
5601 | cat >>confdefs.h <<_ACEOF |
---|
5602 | #ifndef __cplusplus |
---|
5603 | #define inline $ac_val |
---|
5604 | #endif |
---|
5605 | _ACEOF |
---|
5606 | ;; |
---|
5607 | esac |
---|
5608 | |
---|
5609 | ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t" |
---|
5610 | case $ac_cv_c_int16_t in #( |
---|
5611 | no|yes) ;; #( |
---|
5612 | *) |
---|
5613 | |
---|
5614 | cat >>confdefs.h <<_ACEOF |
---|
5615 | #define int16_t $ac_cv_c_int16_t |
---|
5616 | _ACEOF |
---|
5617 | ;; |
---|
5618 | esac |
---|
5619 | |
---|
5620 | ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" |
---|
5621 | case $ac_cv_c_int32_t in #( |
---|
5622 | no|yes) ;; #( |
---|
5623 | *) |
---|
5624 | |
---|
5625 | cat >>confdefs.h <<_ACEOF |
---|
5626 | #define int32_t $ac_cv_c_int32_t |
---|
5627 | _ACEOF |
---|
5628 | ;; |
---|
5629 | esac |
---|
5630 | |
---|
5631 | ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t" |
---|
5632 | case $ac_cv_c_int8_t in #( |
---|
5633 | no|yes) ;; #( |
---|
5634 | *) |
---|
5635 | |
---|
5636 | cat >>confdefs.h <<_ACEOF |
---|
5637 | #define int8_t $ac_cv_c_int8_t |
---|
5638 | _ACEOF |
---|
5639 | ;; |
---|
5640 | esac |
---|
5641 | |
---|
5642 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5 |
---|
5643 | $as_echo_n "checking for C/C++ restrict keyword... " >&6; } |
---|
5644 | if ${ac_cv_c_restrict+:} false; then : |
---|
5645 | $as_echo_n "(cached) " >&6 |
---|
5646 | else |
---|
5647 | ac_cv_c_restrict=no |
---|
5648 | # The order here caters to the fact that C++ does not require restrict. |
---|
5649 | for ac_kw in __restrict __restrict__ _Restrict restrict; do |
---|
5650 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5651 | /* end confdefs.h. */ |
---|
5652 | typedef int * int_ptr; |
---|
5653 | int foo (int_ptr $ac_kw ip) { |
---|
5654 | return ip[0]; |
---|
5655 | } |
---|
5656 | int |
---|
5657 | main () |
---|
5658 | { |
---|
5659 | int s[1]; |
---|
5660 | int * $ac_kw t = s; |
---|
5661 | t[0] = 0; |
---|
5662 | return foo(t) |
---|
5663 | ; |
---|
5664 | return 0; |
---|
5665 | } |
---|
5666 | _ACEOF |
---|
5667 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
5668 | ac_cv_c_restrict=$ac_kw |
---|
5669 | fi |
---|
5670 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5671 | test "$ac_cv_c_restrict" != no && break |
---|
5672 | done |
---|
5673 | |
---|
5674 | fi |
---|
5675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5 |
---|
5676 | $as_echo "$ac_cv_c_restrict" >&6; } |
---|
5677 | |
---|
5678 | case $ac_cv_c_restrict in |
---|
5679 | restrict) ;; |
---|
5680 | no) $as_echo "#define restrict /**/" >>confdefs.h |
---|
5681 | ;; |
---|
5682 | *) cat >>confdefs.h <<_ACEOF |
---|
5683 | #define restrict $ac_cv_c_restrict |
---|
5684 | _ACEOF |
---|
5685 | ;; |
---|
5686 | esac |
---|
5687 | |
---|
5688 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
---|
5689 | if test "x$ac_cv_type_size_t" = xyes; then : |
---|
5690 | |
---|
5691 | else |
---|
5692 | |
---|
5693 | cat >>confdefs.h <<_ACEOF |
---|
5694 | #define size_t unsigned int |
---|
5695 | _ACEOF |
---|
5696 | |
---|
5697 | fi |
---|
5698 | |
---|
5699 | ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t" |
---|
5700 | case $ac_cv_c_uint16_t in #( |
---|
5701 | no|yes) ;; #( |
---|
5702 | *) |
---|
5703 | |
---|
5704 | |
---|
5705 | cat >>confdefs.h <<_ACEOF |
---|
5706 | #define uint16_t $ac_cv_c_uint16_t |
---|
5707 | _ACEOF |
---|
5708 | ;; |
---|
5709 | esac |
---|
5710 | |
---|
5711 | ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" |
---|
5712 | case $ac_cv_c_uint32_t in #( |
---|
5713 | no|yes) ;; #( |
---|
5714 | *) |
---|
5715 | |
---|
5716 | $as_echo "#define _UINT32_T 1" >>confdefs.h |
---|
5717 | |
---|
5718 | |
---|
5719 | cat >>confdefs.h <<_ACEOF |
---|
5720 | #define uint32_t $ac_cv_c_uint32_t |
---|
5721 | _ACEOF |
---|
5722 | ;; |
---|
5723 | esac |
---|
5724 | |
---|
5725 | ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t" |
---|
5726 | case $ac_cv_c_uint8_t in #( |
---|
5727 | no|yes) ;; #( |
---|
5728 | *) |
---|
5729 | |
---|
5730 | $as_echo "#define _UINT8_T 1" >>confdefs.h |
---|
5731 | |
---|
5732 | |
---|
5733 | cat >>confdefs.h <<_ACEOF |
---|
5734 | #define uint8_t $ac_cv_c_uint8_t |
---|
5735 | _ACEOF |
---|
5736 | ;; |
---|
5737 | esac |
---|
5738 | |
---|
5739 | |
---|
5740 | # Checks for library functions. |
---|
5741 | for ac_func in memset putenv strchr strtol |
---|
5742 | do : |
---|
5743 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
---|
5744 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
---|
5745 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
---|
5746 | cat >>confdefs.h <<_ACEOF |
---|
5747 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
---|
5748 | _ACEOF |
---|
5749 | |
---|
5750 | fi |
---|
5751 | done |
---|
5752 | |
---|
5753 | |
---|
5754 | ac_config_files="$ac_config_files Makefile src/driver/Makefile src/Makefile src/examples/Makefile src/libcfa/Makefile" |
---|
5755 | |
---|
5756 | |
---|
5757 | cat >confcache <<\_ACEOF |
---|
5758 | # This file is a shell script that caches the results of configure |
---|
5759 | # tests run on this system so they can be shared between configure |
---|
5760 | # scripts and configure runs, see configure's option --config-cache. |
---|
5761 | # It is not useful on other systems. If it contains results you don't |
---|
5762 | # want to keep, you may remove or edit it. |
---|
5763 | # |
---|
5764 | # config.status only pays attention to the cache file if you give it |
---|
5765 | # the --recheck option to rerun configure. |
---|
5766 | # |
---|
5767 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
---|
5768 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
---|
5769 | # following values. |
---|
5770 | |
---|
5771 | _ACEOF |
---|
5772 | |
---|
5773 | # The following way of writing the cache mishandles newlines in values, |
---|
5774 | # but we know of no workaround that is simple, portable, and efficient. |
---|
5775 | # So, we kill variables containing newlines. |
---|
5776 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
5777 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
5778 | ( |
---|
5779 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
---|
5780 | eval ac_val=\$$ac_var |
---|
5781 | case $ac_val in #( |
---|
5782 | *${as_nl}*) |
---|
5783 | case $ac_var in #( |
---|
5784 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
---|
5785 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
---|
5786 | esac |
---|
5787 | case $ac_var in #( |
---|
5788 | _ | IFS | as_nl) ;; #( |
---|
5789 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
---|
5790 | *) { eval $ac_var=; unset $ac_var;} ;; |
---|
5791 | esac ;; |
---|
5792 | esac |
---|
5793 | done |
---|
5794 | |
---|
5795 | (set) 2>&1 | |
---|
5796 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
---|
5797 | *${as_nl}ac_space=\ *) |
---|
5798 | # `set' does not quote correctly, so add quotes: double-quote |
---|
5799 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
---|
5800 | sed -n \ |
---|
5801 | "s/'/'\\\\''/g; |
---|
5802 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
---|
5803 | ;; #( |
---|
5804 | *) |
---|
5805 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
5806 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
---|
5807 | ;; |
---|
5808 | esac | |
---|
5809 | sort |
---|
5810 | ) | |
---|
5811 | sed ' |
---|
5812 | /^ac_cv_env_/b end |
---|
5813 | t clear |
---|
5814 | :clear |
---|
5815 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
---|
5816 | t end |
---|
5817 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
---|
5818 | :end' >>confcache |
---|
5819 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
---|
5820 | if test -w "$cache_file"; then |
---|
5821 | if test "x$cache_file" != "x/dev/null"; then |
---|
5822 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
---|
5823 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
---|
5824 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
---|
5825 | cat confcache >"$cache_file" |
---|
5826 | else |
---|
5827 | case $cache_file in #( |
---|
5828 | */* | ?:*) |
---|
5829 | mv -f confcache "$cache_file"$$ && |
---|
5830 | mv -f "$cache_file"$$ "$cache_file" ;; #( |
---|
5831 | *) |
---|
5832 | mv -f confcache "$cache_file" ;; |
---|
5833 | esac |
---|
5834 | fi |
---|
5835 | fi |
---|
5836 | else |
---|
5837 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
---|
5838 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
---|
5839 | fi |
---|
5840 | fi |
---|
5841 | rm -f confcache |
---|
5842 | |
---|
5843 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
5844 | # Let make expand exec_prefix. |
---|
5845 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
5846 | |
---|
5847 | DEFS=-DHAVE_CONFIG_H |
---|
5848 | |
---|
5849 | ac_libobjs= |
---|
5850 | ac_ltlibobjs= |
---|
5851 | U= |
---|
5852 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
---|
5853 | # 1. Remove the extension, and $U if already installed. |
---|
5854 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
---|
5855 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
---|
5856 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
---|
5857 | # will be set to the directory where LIBOBJS objects are built. |
---|
5858 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
---|
5859 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
---|
5860 | done |
---|
5861 | LIBOBJS=$ac_libobjs |
---|
5862 | |
---|
5863 | LTLIBOBJS=$ac_ltlibobjs |
---|
5864 | |
---|
5865 | |
---|
5866 | if test -n "$EXEEXT"; then |
---|
5867 | am__EXEEXT_TRUE= |
---|
5868 | am__EXEEXT_FALSE='#' |
---|
5869 | else |
---|
5870 | am__EXEEXT_TRUE='#' |
---|
5871 | am__EXEEXT_FALSE= |
---|
5872 | fi |
---|
5873 | |
---|
5874 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
---|
5875 | as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. |
---|
5876 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
---|
5877 | fi |
---|
5878 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
---|
5879 | as_fn_error $? "conditional \"AMDEP\" was never defined. |
---|
5880 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
---|
5881 | fi |
---|
5882 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
---|
5883 | as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. |
---|
5884 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
---|
5885 | fi |
---|
5886 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
---|
5887 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
---|
5888 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
---|
5889 | fi |
---|
5890 | |
---|
5891 | : "${CONFIG_STATUS=./config.status}" |
---|
5892 | ac_write_fail=0 |
---|
5893 | ac_clean_files_save=$ac_clean_files |
---|
5894 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
---|
5895 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
---|
5896 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
---|
5897 | as_write_fail=0 |
---|
5898 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
---|
5899 | #! $SHELL |
---|
5900 | # Generated by $as_me. |
---|
5901 | # Run this file to recreate the current configuration. |
---|
5902 | # Compiler output produced by configure, useful for debugging |
---|
5903 | # configure, is in config.log if it exists. |
---|
5904 | |
---|
5905 | debug=false |
---|
5906 | ac_cs_recheck=false |
---|
5907 | ac_cs_silent=false |
---|
5908 | |
---|
5909 | SHELL=\${CONFIG_SHELL-$SHELL} |
---|
5910 | export SHELL |
---|
5911 | _ASEOF |
---|
5912 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
---|
5913 | ## -------------------- ## |
---|
5914 | ## M4sh Initialization. ## |
---|
5915 | ## -------------------- ## |
---|
5916 | |
---|
5917 | # Be more Bourne compatible |
---|
5918 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
5919 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
---|
5920 | emulate sh |
---|
5921 | NULLCMD=: |
---|
5922 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
---|
5923 | # is contrary to our usage. Disable this feature. |
---|
5924 | alias -g '${1+"$@"}'='"$@"' |
---|
5925 | setopt NO_GLOB_SUBST |
---|
5926 | else |
---|
5927 | case `(set -o) 2>/dev/null` in #( |
---|
5928 | *posix*) : |
---|
5929 | set -o posix ;; #( |
---|
5930 | *) : |
---|
5931 | ;; |
---|
5932 | esac |
---|
5933 | fi |
---|
5934 | |
---|
5935 | |
---|
5936 | as_nl=' |
---|
5937 | ' |
---|
5938 | export as_nl |
---|
5939 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
---|
5940 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
---|
5941 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
---|
5942 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
---|
5943 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
---|
5944 | # but without wasting forks for bash or zsh. |
---|
5945 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
---|
5946 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
---|
5947 | as_echo='print -r --' |
---|
5948 | as_echo_n='print -rn --' |
---|
5949 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
---|
5950 | as_echo='printf %s\n' |
---|
5951 | as_echo_n='printf %s' |
---|
5952 | else |
---|
5953 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
---|
5954 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
---|
5955 | as_echo_n='/usr/ucb/echo -n' |
---|
5956 | else |
---|
5957 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
---|
5958 | as_echo_n_body='eval |
---|
5959 | arg=$1; |
---|
5960 | case $arg in #( |
---|
5961 | *"$as_nl"*) |
---|
5962 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
---|
5963 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
---|
5964 | esac; |
---|
5965 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
---|
5966 | ' |
---|
5967 | export as_echo_n_body |
---|
5968 | as_echo_n='sh -c $as_echo_n_body as_echo' |
---|
5969 | fi |
---|
5970 | export as_echo_body |
---|
5971 | as_echo='sh -c $as_echo_body as_echo' |
---|
5972 | fi |
---|
5973 | |
---|
5974 | # The user is always right. |
---|
5975 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
5976 | PATH_SEPARATOR=: |
---|
5977 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
---|
5978 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
---|
5979 | PATH_SEPARATOR=';' |
---|
5980 | } |
---|
5981 | fi |
---|
5982 | |
---|
5983 | |
---|
5984 | # IFS |
---|
5985 | # We need space, tab and new line, in precisely that order. Quoting is |
---|
5986 | # there to prevent editors from complaining about space-tab. |
---|
5987 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
---|
5988 | # splitting by setting IFS to empty value.) |
---|
5989 | IFS=" "" $as_nl" |
---|
5990 | |
---|
5991 | # Find who we are. Look in the path if we contain no directory separator. |
---|
5992 | as_myself= |
---|
5993 | case $0 in #(( |
---|
5994 | *[\\/]* ) as_myself=$0 ;; |
---|
5995 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5996 | for as_dir in $PATH |
---|
5997 | do |
---|
5998 | IFS=$as_save_IFS |
---|
5999 | test -z "$as_dir" && as_dir=. |
---|
6000 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
6001 | done |
---|
6002 | IFS=$as_save_IFS |
---|
6003 | |
---|
6004 | ;; |
---|
6005 | esac |
---|
6006 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
6007 | # in which case we are not to be found in the path. |
---|
6008 | if test "x$as_myself" = x; then |
---|
6009 | as_myself=$0 |
---|
6010 | fi |
---|
6011 | if test ! -f "$as_myself"; then |
---|
6012 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
---|
6013 | exit 1 |
---|
6014 | fi |
---|
6015 | |
---|
6016 | # Unset variables that we do not need and which cause bugs (e.g. in |
---|
6017 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
---|
6018 | # suppresses any "Segmentation fault" message there. '((' could |
---|
6019 | # trigger a bug in pdksh 5.2.14. |
---|
6020 | for as_var in BASH_ENV ENV MAIL MAILPATH |
---|
6021 | do eval test x\${$as_var+set} = xset \ |
---|
6022 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
---|
6023 | done |
---|
6024 | PS1='$ ' |
---|
6025 | PS2='> ' |
---|
6026 | PS4='+ ' |
---|
6027 | |
---|
6028 | # NLS nuisances. |
---|
6029 | LC_ALL=C |
---|
6030 | export LC_ALL |
---|
6031 | LANGUAGE=C |
---|
6032 | export LANGUAGE |
---|
6033 | |
---|
6034 | # CDPATH. |
---|
6035 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
---|
6036 | |
---|
6037 | |
---|
6038 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
---|
6039 | # ---------------------------------------- |
---|
6040 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
---|
6041 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
---|
6042 | # script with STATUS, using 1 if that was 0. |
---|
6043 | as_fn_error () |
---|
6044 | { |
---|
6045 | as_status=$1; test $as_status -eq 0 && as_status=1 |
---|
6046 | if test "$4"; then |
---|
6047 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
6048 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
---|
6049 | fi |
---|
6050 | $as_echo "$as_me: error: $2" >&2 |
---|
6051 | as_fn_exit $as_status |
---|
6052 | } # as_fn_error |
---|
6053 | |
---|
6054 | |
---|
6055 | # as_fn_set_status STATUS |
---|
6056 | # ----------------------- |
---|
6057 | # Set $? to STATUS, without forking. |
---|
6058 | as_fn_set_status () |
---|
6059 | { |
---|
6060 | return $1 |
---|
6061 | } # as_fn_set_status |
---|
6062 | |
---|
6063 | # as_fn_exit STATUS |
---|
6064 | # ----------------- |
---|
6065 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
---|
6066 | as_fn_exit () |
---|
6067 | { |
---|
6068 | set +e |
---|
6069 | as_fn_set_status $1 |
---|
6070 | exit $1 |
---|
6071 | } # as_fn_exit |
---|
6072 | |
---|
6073 | # as_fn_unset VAR |
---|
6074 | # --------------- |
---|
6075 | # Portably unset VAR. |
---|
6076 | as_fn_unset () |
---|
6077 | { |
---|
6078 | { eval $1=; unset $1;} |
---|
6079 | } |
---|
6080 | as_unset=as_fn_unset |
---|
6081 | # as_fn_append VAR VALUE |
---|
6082 | # ---------------------- |
---|
6083 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
---|
6084 | # advantage of any shell optimizations that allow amortized linear growth over |
---|
6085 | # repeated appends, instead of the typical quadratic growth present in naive |
---|
6086 | # implementations. |
---|
6087 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
---|
6088 | eval 'as_fn_append () |
---|
6089 | { |
---|
6090 | eval $1+=\$2 |
---|
6091 | }' |
---|
6092 | else |
---|
6093 | as_fn_append () |
---|
6094 | { |
---|
6095 | eval $1=\$$1\$2 |
---|
6096 | } |
---|
6097 | fi # as_fn_append |
---|
6098 | |
---|
6099 | # as_fn_arith ARG... |
---|
6100 | # ------------------ |
---|
6101 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
---|
6102 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
---|
6103 | # must be portable across $(()) and expr. |
---|
6104 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
---|
6105 | eval 'as_fn_arith () |
---|
6106 | { |
---|
6107 | as_val=$(( $* )) |
---|
6108 | }' |
---|
6109 | else |
---|
6110 | as_fn_arith () |
---|
6111 | { |
---|
6112 | as_val=`expr "$@" || test $? -eq 1` |
---|
6113 | } |
---|
6114 | fi # as_fn_arith |
---|
6115 | |
---|
6116 | |
---|
6117 | if expr a : '\(a\)' >/dev/null 2>&1 && |
---|
6118 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
---|
6119 | as_expr=expr |
---|
6120 | else |
---|
6121 | as_expr=false |
---|
6122 | fi |
---|
6123 | |
---|
6124 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
---|
6125 | as_basename=basename |
---|
6126 | else |
---|
6127 | as_basename=false |
---|
6128 | fi |
---|
6129 | |
---|
6130 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
---|
6131 | as_dirname=dirname |
---|
6132 | else |
---|
6133 | as_dirname=false |
---|
6134 | fi |
---|
6135 | |
---|
6136 | as_me=`$as_basename -- "$0" || |
---|
6137 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
6138 | X"$0" : 'X\(//\)$' \| \ |
---|
6139 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
---|
6140 | $as_echo X/"$0" | |
---|
6141 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
---|
6142 | s//\1/ |
---|
6143 | q |
---|
6144 | } |
---|
6145 | /^X\/\(\/\/\)$/{ |
---|
6146 | s//\1/ |
---|
6147 | q |
---|
6148 | } |
---|
6149 | /^X\/\(\/\).*/{ |
---|
6150 | s//\1/ |
---|
6151 | q |
---|
6152 | } |
---|
6153 | s/.*/./; q'` |
---|
6154 | |
---|
6155 | # Avoid depending upon Character Ranges. |
---|
6156 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
6157 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
6158 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
6159 | as_cr_digits='0123456789' |
---|
6160 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
6161 | |
---|
6162 | ECHO_C= ECHO_N= ECHO_T= |
---|
6163 | case `echo -n x` in #((((( |
---|
6164 | -n*) |
---|
6165 | case `echo 'xy\c'` in |
---|
6166 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
---|
6167 | xy) ECHO_C='\c';; |
---|
6168 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
---|
6169 | ECHO_T=' ';; |
---|
6170 | esac;; |
---|
6171 | *) |
---|
6172 | ECHO_N='-n';; |
---|
6173 | esac |
---|
6174 | |
---|
6175 | rm -f conf$$ conf$$.exe conf$$.file |
---|
6176 | if test -d conf$$.dir; then |
---|
6177 | rm -f conf$$.dir/conf$$.file |
---|
6178 | else |
---|
6179 | rm -f conf$$.dir |
---|
6180 | mkdir conf$$.dir 2>/dev/null |
---|
6181 | fi |
---|
6182 | if (echo >conf$$.file) 2>/dev/null; then |
---|
6183 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
6184 | as_ln_s='ln -s' |
---|
6185 | # ... but there are two gotchas: |
---|
6186 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
---|
6187 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
---|
6188 | # In both cases, we have to default to `cp -p'. |
---|
6189 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
---|
6190 | as_ln_s='cp -p' |
---|
6191 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
6192 | as_ln_s=ln |
---|
6193 | else |
---|
6194 | as_ln_s='cp -p' |
---|
6195 | fi |
---|
6196 | else |
---|
6197 | as_ln_s='cp -p' |
---|
6198 | fi |
---|
6199 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
---|
6200 | rmdir conf$$.dir 2>/dev/null |
---|
6201 | |
---|
6202 | |
---|
6203 | # as_fn_mkdir_p |
---|
6204 | # ------------- |
---|
6205 | # Create "$as_dir" as a directory, including parents if necessary. |
---|
6206 | as_fn_mkdir_p () |
---|
6207 | { |
---|
6208 | |
---|
6209 | case $as_dir in #( |
---|
6210 | -*) as_dir=./$as_dir;; |
---|
6211 | esac |
---|
6212 | test -d "$as_dir" || eval $as_mkdir_p || { |
---|
6213 | as_dirs= |
---|
6214 | while :; do |
---|
6215 | case $as_dir in #( |
---|
6216 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
---|
6217 | *) as_qdir=$as_dir;; |
---|
6218 | esac |
---|
6219 | as_dirs="'$as_qdir' $as_dirs" |
---|
6220 | as_dir=`$as_dirname -- "$as_dir" || |
---|
6221 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
6222 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
6223 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
6224 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
---|
6225 | $as_echo X"$as_dir" | |
---|
6226 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
6227 | s//\1/ |
---|
6228 | q |
---|
6229 | } |
---|
6230 | /^X\(\/\/\)[^/].*/{ |
---|
6231 | s//\1/ |
---|
6232 | q |
---|
6233 | } |
---|
6234 | /^X\(\/\/\)$/{ |
---|
6235 | s//\1/ |
---|
6236 | q |
---|
6237 | } |
---|
6238 | /^X\(\/\).*/{ |
---|
6239 | s//\1/ |
---|
6240 | q |
---|
6241 | } |
---|
6242 | s/.*/./; q'` |
---|
6243 | test -d "$as_dir" && break |
---|
6244 | done |
---|
6245 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
---|
6246 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
---|
6247 | |
---|
6248 | |
---|
6249 | } # as_fn_mkdir_p |
---|
6250 | if mkdir -p . 2>/dev/null; then |
---|
6251 | as_mkdir_p='mkdir -p "$as_dir"' |
---|
6252 | else |
---|
6253 | test -d ./-p && rmdir ./-p |
---|
6254 | as_mkdir_p=false |
---|
6255 | fi |
---|
6256 | |
---|
6257 | if test -x / >/dev/null 2>&1; then |
---|
6258 | as_test_x='test -x' |
---|
6259 | else |
---|
6260 | if ls -dL / >/dev/null 2>&1; then |
---|
6261 | as_ls_L_option=L |
---|
6262 | else |
---|
6263 | as_ls_L_option= |
---|
6264 | fi |
---|
6265 | as_test_x=' |
---|
6266 | eval sh -c '\'' |
---|
6267 | if test -d "$1"; then |
---|
6268 | test -d "$1/."; |
---|
6269 | else |
---|
6270 | case $1 in #( |
---|
6271 | -*)set "./$1";; |
---|
6272 | esac; |
---|
6273 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
---|
6274 | ???[sx]*):;;*)false;;esac;fi |
---|
6275 | '\'' sh |
---|
6276 | ' |
---|
6277 | fi |
---|
6278 | as_executable_p=$as_test_x |
---|
6279 | |
---|
6280 | # Sed expression to map a string onto a valid CPP name. |
---|
6281 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
6282 | |
---|
6283 | # Sed expression to map a string onto a valid variable name. |
---|
6284 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
6285 | |
---|
6286 | |
---|
6287 | exec 6>&1 |
---|
6288 | ## ----------------------------------- ## |
---|
6289 | ## Main body of $CONFIG_STATUS script. ## |
---|
6290 | ## ----------------------------------- ## |
---|
6291 | _ASEOF |
---|
6292 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
---|
6293 | |
---|
6294 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
6295 | # Save the log message, to keep $0 and so on meaningful, and to |
---|
6296 | # report actual input values of CONFIG_FILES etc. instead of their |
---|
6297 | # values after options handling. |
---|
6298 | ac_log=" |
---|
6299 | This file was extended by cfa-cc $as_me 1.0.0, which was |
---|
6300 | generated by GNU Autoconf 2.68. Invocation command line was |
---|
6301 | |
---|
6302 | CONFIG_FILES = $CONFIG_FILES |
---|
6303 | CONFIG_HEADERS = $CONFIG_HEADERS |
---|
6304 | CONFIG_LINKS = $CONFIG_LINKS |
---|
6305 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
---|
6306 | $ $0 $@ |
---|
6307 | |
---|
6308 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
6309 | " |
---|
6310 | |
---|
6311 | _ACEOF |
---|
6312 | |
---|
6313 | case $ac_config_files in *" |
---|
6314 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
---|
6315 | esac |
---|
6316 | |
---|
6317 | case $ac_config_headers in *" |
---|
6318 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
---|
6319 | esac |
---|
6320 | |
---|
6321 | |
---|
6322 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
6323 | # Files that config.status was made for. |
---|
6324 | config_files="$ac_config_files" |
---|
6325 | config_headers="$ac_config_headers" |
---|
6326 | config_commands="$ac_config_commands" |
---|
6327 | |
---|
6328 | _ACEOF |
---|
6329 | |
---|
6330 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
6331 | ac_cs_usage="\ |
---|
6332 | \`$as_me' instantiates files and other configuration actions |
---|
6333 | from templates according to the current configuration. Unless the files |
---|
6334 | and actions are specified as TAGs, all are instantiated by default. |
---|
6335 | |
---|
6336 | Usage: $0 [OPTION]... [TAG]... |
---|
6337 | |
---|
6338 | -h, --help print this help, then exit |
---|
6339 | -V, --version print version number and configuration settings, then exit |
---|
6340 | --config print configuration, then exit |
---|
6341 | -q, --quiet, --silent |
---|
6342 | do not print progress messages |
---|
6343 | -d, --debug don't remove temporary files |
---|
6344 | --recheck update $as_me by reconfiguring in the same conditions |
---|
6345 | --file=FILE[:TEMPLATE] |
---|
6346 | instantiate the configuration file FILE |
---|
6347 | --header=FILE[:TEMPLATE] |
---|
6348 | instantiate the configuration header FILE |
---|
6349 | |
---|
6350 | Configuration files: |
---|
6351 | $config_files |
---|
6352 | |
---|
6353 | Configuration headers: |
---|
6354 | $config_headers |
---|
6355 | |
---|
6356 | Configuration commands: |
---|
6357 | $config_commands |
---|
6358 | |
---|
6359 | Report bugs to <cforall@plg.uwaterloo.ca>." |
---|
6360 | |
---|
6361 | _ACEOF |
---|
6362 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
6363 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
---|
6364 | ac_cs_version="\\ |
---|
6365 | cfa-cc config.status 1.0.0 |
---|
6366 | configured by $0, generated by GNU Autoconf 2.68, |
---|
6367 | with options \\"\$ac_cs_config\\" |
---|
6368 | |
---|
6369 | Copyright (C) 2010 Free Software Foundation, Inc. |
---|
6370 | This config.status script is free software; the Free Software Foundation |
---|
6371 | gives unlimited permission to copy, distribute and modify it." |
---|
6372 | |
---|
6373 | ac_pwd='$ac_pwd' |
---|
6374 | srcdir='$srcdir' |
---|
6375 | INSTALL='$INSTALL' |
---|
6376 | MKDIR_P='$MKDIR_P' |
---|
6377 | AWK='$AWK' |
---|
6378 | test -n "\$AWK" || AWK=awk |
---|
6379 | _ACEOF |
---|
6380 | |
---|
6381 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
6382 | # The default lists apply if the user does not specify any file. |
---|
6383 | ac_need_defaults=: |
---|
6384 | while test $# != 0 |
---|
6385 | do |
---|
6386 | case $1 in |
---|
6387 | --*=?*) |
---|
6388 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
---|
6389 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
---|
6390 | ac_shift=: |
---|
6391 | ;; |
---|
6392 | --*=) |
---|
6393 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
---|
6394 | ac_optarg= |
---|
6395 | ac_shift=: |
---|
6396 | ;; |
---|
6397 | *) |
---|
6398 | ac_option=$1 |
---|
6399 | ac_optarg=$2 |
---|
6400 | ac_shift=shift |
---|
6401 | ;; |
---|
6402 | esac |
---|
6403 | |
---|
6404 | case $ac_option in |
---|
6405 | # Handling of the options. |
---|
6406 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
6407 | ac_cs_recheck=: ;; |
---|
6408 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
---|
6409 | $as_echo "$ac_cs_version"; exit ;; |
---|
6410 | --config | --confi | --conf | --con | --co | --c ) |
---|
6411 | $as_echo "$ac_cs_config"; exit ;; |
---|
6412 | --debug | --debu | --deb | --de | --d | -d ) |
---|
6413 | debug=: ;; |
---|
6414 | --file | --fil | --fi | --f ) |
---|
6415 | $ac_shift |
---|
6416 | case $ac_optarg in |
---|
6417 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
6418 | '') as_fn_error $? "missing file argument" ;; |
---|
6419 | esac |
---|
6420 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
---|
6421 | ac_need_defaults=false;; |
---|
6422 | --header | --heade | --head | --hea ) |
---|
6423 | $ac_shift |
---|
6424 | case $ac_optarg in |
---|
6425 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
6426 | esac |
---|
6427 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
---|
6428 | ac_need_defaults=false;; |
---|
6429 | --he | --h) |
---|
6430 | # Conflict between --help and --header |
---|
6431 | as_fn_error $? "ambiguous option: \`$1' |
---|
6432 | Try \`$0 --help' for more information.";; |
---|
6433 | --help | --hel | -h ) |
---|
6434 | $as_echo "$ac_cs_usage"; exit ;; |
---|
6435 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
6436 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
---|
6437 | ac_cs_silent=: ;; |
---|
6438 | |
---|
6439 | # This is an error. |
---|
6440 | -*) as_fn_error $? "unrecognized option: \`$1' |
---|
6441 | Try \`$0 --help' for more information." ;; |
---|
6442 | |
---|
6443 | *) as_fn_append ac_config_targets " $1" |
---|
6444 | ac_need_defaults=false ;; |
---|
6445 | |
---|
6446 | esac |
---|
6447 | shift |
---|
6448 | done |
---|
6449 | |
---|
6450 | ac_configure_extra_args= |
---|
6451 | |
---|
6452 | if $ac_cs_silent; then |
---|
6453 | exec 6>/dev/null |
---|
6454 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
---|
6455 | fi |
---|
6456 | |
---|
6457 | _ACEOF |
---|
6458 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
6459 | if \$ac_cs_recheck; then |
---|
6460 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
---|
6461 | shift |
---|
6462 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
---|
6463 | CONFIG_SHELL='$SHELL' |
---|
6464 | export CONFIG_SHELL |
---|
6465 | exec "\$@" |
---|
6466 | fi |
---|
6467 | |
---|
6468 | _ACEOF |
---|
6469 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
6470 | exec 5>>config.log |
---|
6471 | { |
---|
6472 | echo |
---|
6473 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
---|
6474 | ## Running $as_me. ## |
---|
6475 | _ASBOX |
---|
6476 | $as_echo "$ac_log" |
---|
6477 | } >&5 |
---|
6478 | |
---|
6479 | _ACEOF |
---|
6480 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
6481 | # |
---|
6482 | # INIT-COMMANDS |
---|
6483 | # |
---|
6484 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
---|
6485 | |
---|
6486 | _ACEOF |
---|
6487 | |
---|
6488 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
6489 | |
---|
6490 | # Handling of arguments. |
---|
6491 | for ac_config_target in $ac_config_targets |
---|
6492 | do |
---|
6493 | case $ac_config_target in |
---|
6494 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
---|
6495 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
---|
6496 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
---|
6497 | "src/driver/Makefile") CONFIG_FILES="$CONFIG_FILES src/driver/Makefile" ;; |
---|
6498 | "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
---|
6499 | "src/examples/Makefile") CONFIG_FILES="$CONFIG_FILES src/examples/Makefile" ;; |
---|
6500 | "src/libcfa/Makefile") CONFIG_FILES="$CONFIG_FILES src/libcfa/Makefile" ;; |
---|
6501 | |
---|
6502 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
---|
6503 | esac |
---|
6504 | done |
---|
6505 | |
---|
6506 | |
---|
6507 | # If the user did not use the arguments to specify the items to instantiate, |
---|
6508 | # then the envvar interface is used. Set only those that are not. |
---|
6509 | # We use the long form for the default assignment because of an extremely |
---|
6510 | # bizarre bug on SunOS 4.1.3. |
---|
6511 | if $ac_need_defaults; then |
---|
6512 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
---|
6513 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
---|
6514 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
---|
6515 | fi |
---|
6516 | |
---|
6517 | # Have a temporary directory for convenience. Make it in the build tree |
---|
6518 | # simply because there is no reason against having it here, and in addition, |
---|
6519 | # creating and moving files from /tmp can sometimes cause problems. |
---|
6520 | # Hook for its removal unless debugging. |
---|
6521 | # Note that there is a small window in which the directory will not be cleaned: |
---|
6522 | # after its creation but before its name has been assigned to `$tmp'. |
---|
6523 | $debug || |
---|
6524 | { |
---|
6525 | tmp= ac_tmp= |
---|
6526 | trap 'exit_status=$? |
---|
6527 | : "${ac_tmp:=$tmp}" |
---|
6528 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
---|
6529 | ' 0 |
---|
6530 | trap 'as_fn_exit 1' 1 2 13 15 |
---|
6531 | } |
---|
6532 | # Create a (secure) tmp directory for tmp files. |
---|
6533 | |
---|
6534 | { |
---|
6535 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
---|
6536 | test -d "$tmp" |
---|
6537 | } || |
---|
6538 | { |
---|
6539 | tmp=./conf$$-$RANDOM |
---|
6540 | (umask 077 && mkdir "$tmp") |
---|
6541 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
---|
6542 | ac_tmp=$tmp |
---|
6543 | |
---|
6544 | # Set up the scripts for CONFIG_FILES section. |
---|
6545 | # No need to generate them if there are no CONFIG_FILES. |
---|
6546 | # This happens for instance with `./config.status config.h'. |
---|
6547 | if test -n "$CONFIG_FILES"; then |
---|
6548 | |
---|
6549 | |
---|
6550 | ac_cr=`echo X | tr X '\015'` |
---|
6551 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
---|
6552 | # But we know of no other shell where ac_cr would be empty at this |
---|
6553 | # point, so we can use a bashism as a fallback. |
---|
6554 | if test "x$ac_cr" = x; then |
---|
6555 | eval ac_cr=\$\'\\r\' |
---|
6556 | fi |
---|
6557 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
---|
6558 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
---|
6559 | ac_cs_awk_cr='\\r' |
---|
6560 | else |
---|
6561 | ac_cs_awk_cr=$ac_cr |
---|
6562 | fi |
---|
6563 | |
---|
6564 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
---|
6565 | _ACEOF |
---|
6566 | |
---|
6567 | |
---|
6568 | { |
---|
6569 | echo "cat >conf$$subs.awk <<_ACEOF" && |
---|
6570 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
---|
6571 | echo "_ACEOF" |
---|
6572 | } >conf$$subs.sh || |
---|
6573 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
---|
6574 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
---|
6575 | ac_delim='%!_!# ' |
---|
6576 | for ac_last_try in false false false false false :; do |
---|
6577 | . ./conf$$subs.sh || |
---|
6578 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
---|
6579 | |
---|
6580 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
---|
6581 | if test $ac_delim_n = $ac_delim_num; then |
---|
6582 | break |
---|
6583 | elif $ac_last_try; then |
---|
6584 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
---|
6585 | else |
---|
6586 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
---|
6587 | fi |
---|
6588 | done |
---|
6589 | rm -f conf$$subs.sh |
---|
6590 | |
---|
6591 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
6592 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
---|
6593 | _ACEOF |
---|
6594 | sed -n ' |
---|
6595 | h |
---|
6596 | s/^/S["/; s/!.*/"]=/ |
---|
6597 | p |
---|
6598 | g |
---|
6599 | s/^[^!]*!// |
---|
6600 | :repl |
---|
6601 | t repl |
---|
6602 | s/'"$ac_delim"'$// |
---|
6603 | t delim |
---|
6604 | :nl |
---|
6605 | h |
---|
6606 | s/\(.\{148\}\)..*/\1/ |
---|
6607 | t more1 |
---|
6608 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
---|
6609 | p |
---|
6610 | n |
---|
6611 | b repl |
---|
6612 | :more1 |
---|
6613 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
---|
6614 | p |
---|
6615 | g |
---|
6616 | s/.\{148\}// |
---|
6617 | t nl |
---|
6618 | :delim |
---|
6619 | h |
---|
6620 | s/\(.\{148\}\)..*/\1/ |
---|
6621 | t more2 |
---|
6622 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
---|
6623 | p |
---|
6624 | b |
---|
6625 | :more2 |
---|
6626 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
---|
6627 | p |
---|
6628 | g |
---|
6629 | s/.\{148\}// |
---|
6630 | t delim |
---|
6631 | ' <conf$$subs.awk | sed ' |
---|
6632 | /^[^""]/{ |
---|
6633 | N |
---|
6634 | s/\n// |
---|
6635 | } |
---|
6636 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
---|
6637 | rm -f conf$$subs.awk |
---|
6638 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
6639 | _ACAWK |
---|
6640 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
---|
6641 | for (key in S) S_is_set[key] = 1 |
---|
6642 | FS = "" |
---|
6643 | |
---|
6644 | } |
---|
6645 | { |
---|
6646 | line = $ 0 |
---|
6647 | nfields = split(line, field, "@") |
---|
6648 | substed = 0 |
---|
6649 | len = length(field[1]) |
---|
6650 | for (i = 2; i < nfields; i++) { |
---|
6651 | key = field[i] |
---|
6652 | keylen = length(key) |
---|
6653 | if (S_is_set[key]) { |
---|
6654 | value = S[key] |
---|
6655 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
---|
6656 | len += length(value) + length(field[++i]) |
---|
6657 | substed = 1 |
---|
6658 | } else |
---|
6659 | len += 1 + keylen |
---|
6660 | } |
---|
6661 | |
---|
6662 | print line |
---|
6663 | } |
---|
6664 | |
---|
6665 | _ACAWK |
---|
6666 | _ACEOF |
---|
6667 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
6668 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
---|
6669 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
---|
6670 | else |
---|
6671 | cat |
---|
6672 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
---|
6673 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
---|
6674 | _ACEOF |
---|
6675 | |
---|
6676 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
---|
6677 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
---|
6678 | # trailing colons and then remove the whole line if VPATH becomes empty |
---|
6679 | # (actually we leave an empty line to preserve line numbers). |
---|
6680 | if test "x$srcdir" = x.; then |
---|
6681 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
---|
6682 | h |
---|
6683 | s/// |
---|
6684 | s/^/:/ |
---|
6685 | s/[ ]*$/:/ |
---|
6686 | s/:\$(srcdir):/:/g |
---|
6687 | s/:\${srcdir}:/:/g |
---|
6688 | s/:@srcdir@:/:/g |
---|
6689 | s/^:*// |
---|
6690 | s/:*$// |
---|
6691 | x |
---|
6692 | s/\(=[ ]*\).*/\1/ |
---|
6693 | G |
---|
6694 | s/\n// |
---|
6695 | s/^[^=]*=[ ]*$// |
---|
6696 | }' |
---|
6697 | fi |
---|
6698 | |
---|
6699 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
6700 | fi # test -n "$CONFIG_FILES" |
---|
6701 | |
---|
6702 | # Set up the scripts for CONFIG_HEADERS section. |
---|
6703 | # No need to generate them if there are no CONFIG_HEADERS. |
---|
6704 | # This happens for instance with `./config.status Makefile'. |
---|
6705 | if test -n "$CONFIG_HEADERS"; then |
---|
6706 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
---|
6707 | BEGIN { |
---|
6708 | _ACEOF |
---|
6709 | |
---|
6710 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
---|
6711 | # here-document in config.status, that substitutes the proper values into |
---|
6712 | # config.h.in to produce config.h. |
---|
6713 | |
---|
6714 | # Create a delimiter string that does not exist in confdefs.h, to ease |
---|
6715 | # handling of long lines. |
---|
6716 | ac_delim='%!_!# ' |
---|
6717 | for ac_last_try in false false :; do |
---|
6718 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
---|
6719 | if test -z "$ac_tt"; then |
---|
6720 | break |
---|
6721 | elif $ac_last_try; then |
---|
6722 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
---|
6723 | else |
---|
6724 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
---|
6725 | fi |
---|
6726 | done |
---|
6727 | |
---|
6728 | # For the awk script, D is an array of macro values keyed by name, |
---|
6729 | # likewise P contains macro parameters if any. Preserve backslash |
---|
6730 | # newline sequences. |
---|
6731 | |
---|
6732 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
---|
6733 | sed -n ' |
---|
6734 | s/.\{148\}/&'"$ac_delim"'/g |
---|
6735 | t rset |
---|
6736 | :rset |
---|
6737 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
---|
6738 | t def |
---|
6739 | d |
---|
6740 | :def |
---|
6741 | s/\\$// |
---|
6742 | t bsnl |
---|
6743 | s/["\\]/\\&/g |
---|
6744 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
---|
6745 | D["\1"]=" \3"/p |
---|
6746 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
---|
6747 | d |
---|
6748 | :bsnl |
---|
6749 | s/["\\]/\\&/g |
---|
6750 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
---|
6751 | D["\1"]=" \3\\\\\\n"\\/p |
---|
6752 | t cont |
---|
6753 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
---|
6754 | t cont |
---|
6755 | d |
---|
6756 | :cont |
---|
6757 | n |
---|
6758 | s/.\{148\}/&'"$ac_delim"'/g |
---|
6759 | t clear |
---|
6760 | :clear |
---|
6761 | s/\\$// |
---|
6762 | t bsnlc |
---|
6763 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
---|
6764 | d |
---|
6765 | :bsnlc |
---|
6766 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
---|
6767 | b cont |
---|
6768 | ' <confdefs.h | sed ' |
---|
6769 | s/'"$ac_delim"'/"\\\ |
---|
6770 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
---|
6771 | |
---|
6772 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
6773 | for (key in D) D_is_set[key] = 1 |
---|
6774 | FS = "" |
---|
6775 | } |
---|
6776 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
---|
6777 | line = \$ 0 |
---|
6778 | split(line, arg, " ") |
---|
6779 | if (arg[1] == "#") { |
---|
6780 | defundef = arg[2] |
---|
6781 | mac1 = arg[3] |
---|
6782 | } else { |
---|
6783 | defundef = substr(arg[1], 2) |
---|
6784 | mac1 = arg[2] |
---|
6785 | } |
---|
6786 | split(mac1, mac2, "(") #) |
---|
6787 | macro = mac2[1] |
---|
6788 | prefix = substr(line, 1, index(line, defundef) - 1) |
---|
6789 | if (D_is_set[macro]) { |
---|
6790 | # Preserve the white space surrounding the "#". |
---|
6791 | print prefix "define", macro P[macro] D[macro] |
---|
6792 | next |
---|
6793 | } else { |
---|
6794 | # Replace #undef with comments. This is necessary, for example, |
---|
6795 | # in the case of _POSIX_SOURCE, which is predefined and required |
---|
6796 | # on some systems where configure will not decide to define it. |
---|
6797 | if (defundef == "undef") { |
---|
6798 | print "/*", prefix defundef, macro, "*/" |
---|
6799 | next |
---|
6800 | } |
---|
6801 | } |
---|
6802 | } |
---|
6803 | { print } |
---|
6804 | _ACAWK |
---|
6805 | _ACEOF |
---|
6806 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
6807 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
---|
6808 | fi # test -n "$CONFIG_HEADERS" |
---|
6809 | |
---|
6810 | |
---|
6811 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
---|
6812 | shift |
---|
6813 | for ac_tag |
---|
6814 | do |
---|
6815 | case $ac_tag in |
---|
6816 | :[FHLC]) ac_mode=$ac_tag; continue;; |
---|
6817 | esac |
---|
6818 | case $ac_mode$ac_tag in |
---|
6819 | :[FHL]*:*);; |
---|
6820 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
---|
6821 | :[FH]-) ac_tag=-:-;; |
---|
6822 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
---|
6823 | esac |
---|
6824 | ac_save_IFS=$IFS |
---|
6825 | IFS=: |
---|
6826 | set x $ac_tag |
---|
6827 | IFS=$ac_save_IFS |
---|
6828 | shift |
---|
6829 | ac_file=$1 |
---|
6830 | shift |
---|
6831 | |
---|
6832 | case $ac_mode in |
---|
6833 | :L) ac_source=$1;; |
---|
6834 | :[FH]) |
---|
6835 | ac_file_inputs= |
---|
6836 | for ac_f |
---|
6837 | do |
---|
6838 | case $ac_f in |
---|
6839 | -) ac_f="$ac_tmp/stdin";; |
---|
6840 | *) # Look for the file first in the build tree, then in the source tree |
---|
6841 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
---|
6842 | # because $ac_f cannot contain `:'. |
---|
6843 | test -f "$ac_f" || |
---|
6844 | case $ac_f in |
---|
6845 | [\\/$]*) false;; |
---|
6846 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
---|
6847 | esac || |
---|
6848 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
---|
6849 | esac |
---|
6850 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
---|
6851 | as_fn_append ac_file_inputs " '$ac_f'" |
---|
6852 | done |
---|
6853 | |
---|
6854 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
6855 | # use $as_me), people would be surprised to read: |
---|
6856 | # /* config.h. Generated by config.status. */ |
---|
6857 | configure_input='Generated from '` |
---|
6858 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
---|
6859 | `' by configure.' |
---|
6860 | if test x"$ac_file" != x-; then |
---|
6861 | configure_input="$ac_file. $configure_input" |
---|
6862 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
---|
6863 | $as_echo "$as_me: creating $ac_file" >&6;} |
---|
6864 | fi |
---|
6865 | # Neutralize special characters interpreted by sed in replacement strings. |
---|
6866 | case $configure_input in #( |
---|
6867 | *\&* | *\|* | *\\* ) |
---|
6868 | ac_sed_conf_input=`$as_echo "$configure_input" | |
---|
6869 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
---|
6870 | *) ac_sed_conf_input=$configure_input;; |
---|
6871 | esac |
---|
6872 | |
---|
6873 | case $ac_tag in |
---|
6874 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
---|
6875 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
---|
6876 | esac |
---|
6877 | ;; |
---|
6878 | esac |
---|
6879 | |
---|
6880 | ac_dir=`$as_dirname -- "$ac_file" || |
---|
6881 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
6882 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
6883 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
6884 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
---|
6885 | $as_echo X"$ac_file" | |
---|
6886 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
6887 | s//\1/ |
---|
6888 | q |
---|
6889 | } |
---|
6890 | /^X\(\/\/\)[^/].*/{ |
---|
6891 | s//\1/ |
---|
6892 | q |
---|
6893 | } |
---|
6894 | /^X\(\/\/\)$/{ |
---|
6895 | s//\1/ |
---|
6896 | q |
---|
6897 | } |
---|
6898 | /^X\(\/\).*/{ |
---|
6899 | s//\1/ |
---|
6900 | q |
---|
6901 | } |
---|
6902 | s/.*/./; q'` |
---|
6903 | as_dir="$ac_dir"; as_fn_mkdir_p |
---|
6904 | ac_builddir=. |
---|
6905 | |
---|
6906 | case "$ac_dir" in |
---|
6907 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
6908 | *) |
---|
6909 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
---|
6910 | # A ".." for each directory in $ac_dir_suffix. |
---|
6911 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
---|
6912 | case $ac_top_builddir_sub in |
---|
6913 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
6914 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
---|
6915 | esac ;; |
---|
6916 | esac |
---|
6917 | ac_abs_top_builddir=$ac_pwd |
---|
6918 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
---|
6919 | # for backward compatibility: |
---|
6920 | ac_top_builddir=$ac_top_build_prefix |
---|
6921 | |
---|
6922 | case $srcdir in |
---|
6923 | .) # We are building in place. |
---|
6924 | ac_srcdir=. |
---|
6925 | ac_top_srcdir=$ac_top_builddir_sub |
---|
6926 | ac_abs_top_srcdir=$ac_pwd ;; |
---|
6927 | [\\/]* | ?:[\\/]* ) # Absolute name. |
---|
6928 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
6929 | ac_top_srcdir=$srcdir |
---|
6930 | ac_abs_top_srcdir=$srcdir ;; |
---|
6931 | *) # Relative name. |
---|
6932 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
---|
6933 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
---|
6934 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
---|
6935 | esac |
---|
6936 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
---|
6937 | |
---|
6938 | |
---|
6939 | case $ac_mode in |
---|
6940 | :F) |
---|
6941 | # |
---|
6942 | # CONFIG_FILE |
---|
6943 | # |
---|
6944 | |
---|
6945 | case $INSTALL in |
---|
6946 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
---|
6947 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
---|
6948 | esac |
---|
6949 | ac_MKDIR_P=$MKDIR_P |
---|
6950 | case $MKDIR_P in |
---|
6951 | [\\/$]* | ?:[\\/]* ) ;; |
---|
6952 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
---|
6953 | esac |
---|
6954 | _ACEOF |
---|
6955 | |
---|
6956 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
6957 | # If the template does not know about datarootdir, expand it. |
---|
6958 | # FIXME: This hack should be removed a few years after 2.60. |
---|
6959 | ac_datarootdir_hack=; ac_datarootdir_seen= |
---|
6960 | ac_sed_dataroot=' |
---|
6961 | /datarootdir/ { |
---|
6962 | p |
---|
6963 | q |
---|
6964 | } |
---|
6965 | /@datadir@/p |
---|
6966 | /@docdir@/p |
---|
6967 | /@infodir@/p |
---|
6968 | /@localedir@/p |
---|
6969 | /@mandir@/p' |
---|
6970 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
---|
6971 | *datarootdir*) ac_datarootdir_seen=yes;; |
---|
6972 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
---|
6973 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
---|
6974 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
---|
6975 | _ACEOF |
---|
6976 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
6977 | ac_datarootdir_hack=' |
---|
6978 | s&@datadir@&$datadir&g |
---|
6979 | s&@docdir@&$docdir&g |
---|
6980 | s&@infodir@&$infodir&g |
---|
6981 | s&@localedir@&$localedir&g |
---|
6982 | s&@mandir@&$mandir&g |
---|
6983 | s&\\\${datarootdir}&$datarootdir&g' ;; |
---|
6984 | esac |
---|
6985 | _ACEOF |
---|
6986 | |
---|
6987 | # Neutralize VPATH when `$srcdir' = `.'. |
---|
6988 | # Shell code in configure.ac might set extrasub. |
---|
6989 | # FIXME: do we really want to maintain this feature? |
---|
6990 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
6991 | ac_sed_extra="$ac_vpsub |
---|
6992 | $extrasub |
---|
6993 | _ACEOF |
---|
6994 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
6995 | :t |
---|
6996 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
---|
6997 | s|@configure_input@|$ac_sed_conf_input|;t t |
---|
6998 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
---|
6999 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
---|
7000 | s&@srcdir@&$ac_srcdir&;t t |
---|
7001 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
---|
7002 | s&@top_srcdir@&$ac_top_srcdir&;t t |
---|
7003 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
---|
7004 | s&@builddir@&$ac_builddir&;t t |
---|
7005 | s&@abs_builddir@&$ac_abs_builddir&;t t |
---|
7006 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
---|
7007 | s&@INSTALL@&$ac_INSTALL&;t t |
---|
7008 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
---|
7009 | $ac_datarootdir_hack |
---|
7010 | " |
---|
7011 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
---|
7012 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
---|
7013 | |
---|
7014 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
---|
7015 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
---|
7016 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
---|
7017 | "$ac_tmp/out"`; test -z "$ac_out"; } && |
---|
7018 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
---|
7019 | which seems to be undefined. Please make sure it is defined" >&5 |
---|
7020 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
---|
7021 | which seems to be undefined. Please make sure it is defined" >&2;} |
---|
7022 | |
---|
7023 | rm -f "$ac_tmp/stdin" |
---|
7024 | case $ac_file in |
---|
7025 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
---|
7026 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
---|
7027 | esac \ |
---|
7028 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
---|
7029 | ;; |
---|
7030 | :H) |
---|
7031 | # |
---|
7032 | # CONFIG_HEADER |
---|
7033 | # |
---|
7034 | if test x"$ac_file" != x-; then |
---|
7035 | { |
---|
7036 | $as_echo "/* $configure_input */" \ |
---|
7037 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
---|
7038 | } >"$ac_tmp/config.h" \ |
---|
7039 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
---|
7040 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
---|
7041 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
---|
7042 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
---|
7043 | else |
---|
7044 | rm -f "$ac_file" |
---|
7045 | mv "$ac_tmp/config.h" "$ac_file" \ |
---|
7046 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
---|
7047 | fi |
---|
7048 | else |
---|
7049 | $as_echo "/* $configure_input */" \ |
---|
7050 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
---|
7051 | || as_fn_error $? "could not create -" "$LINENO" 5 |
---|
7052 | fi |
---|
7053 | # Compute "$ac_file"'s index in $config_headers. |
---|
7054 | _am_arg="$ac_file" |
---|
7055 | _am_stamp_count=1 |
---|
7056 | for _am_header in $config_headers :; do |
---|
7057 | case $_am_header in |
---|
7058 | $_am_arg | $_am_arg:* ) |
---|
7059 | break ;; |
---|
7060 | * ) |
---|
7061 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
---|
7062 | esac |
---|
7063 | done |
---|
7064 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
---|
7065 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
7066 | X"$_am_arg" : 'X\(//\)[^/]' \| \ |
---|
7067 | X"$_am_arg" : 'X\(//\)$' \| \ |
---|
7068 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || |
---|
7069 | $as_echo X"$_am_arg" | |
---|
7070 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
7071 | s//\1/ |
---|
7072 | q |
---|
7073 | } |
---|
7074 | /^X\(\/\/\)[^/].*/{ |
---|
7075 | s//\1/ |
---|
7076 | q |
---|
7077 | } |
---|
7078 | /^X\(\/\/\)$/{ |
---|
7079 | s//\1/ |
---|
7080 | q |
---|
7081 | } |
---|
7082 | /^X\(\/\).*/{ |
---|
7083 | s//\1/ |
---|
7084 | q |
---|
7085 | } |
---|
7086 | s/.*/./; q'`/stamp-h$_am_stamp_count |
---|
7087 | ;; |
---|
7088 | |
---|
7089 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
---|
7090 | $as_echo "$as_me: executing $ac_file commands" >&6;} |
---|
7091 | ;; |
---|
7092 | esac |
---|
7093 | |
---|
7094 | |
---|
7095 | case $ac_file$ac_mode in |
---|
7096 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
---|
7097 | # Autoconf 2.62 quotes --file arguments for eval, but not when files |
---|
7098 | # are listed without --file. Let's play safe and only enable the eval |
---|
7099 | # if we detect the quoting. |
---|
7100 | case $CONFIG_FILES in |
---|
7101 | *\'*) eval set x "$CONFIG_FILES" ;; |
---|
7102 | *) set x $CONFIG_FILES ;; |
---|
7103 | esac |
---|
7104 | shift |
---|
7105 | for mf |
---|
7106 | do |
---|
7107 | # Strip MF so we end up with the name of the file. |
---|
7108 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
---|
7109 | # Check whether this is an Automake generated Makefile or not. |
---|
7110 | # We used to match only the files named `Makefile.in', but |
---|
7111 | # some people rename them; so instead we look at the file content. |
---|
7112 | # Grep'ing the first line is not enough: some people post-process |
---|
7113 | # each Makefile.in and add a new line on top of each file to say so. |
---|
7114 | # Grep'ing the whole file is not good either: AIX grep has a line |
---|
7115 | # limit of 2048, but all sed's we know have understand at least 4000. |
---|
7116 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then |
---|
7117 | dirpart=`$as_dirname -- "$mf" || |
---|
7118 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
7119 | X"$mf" : 'X\(//\)[^/]' \| \ |
---|
7120 | X"$mf" : 'X\(//\)$' \| \ |
---|
7121 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
---|
7122 | $as_echo X"$mf" | |
---|
7123 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
7124 | s//\1/ |
---|
7125 | q |
---|
7126 | } |
---|
7127 | /^X\(\/\/\)[^/].*/{ |
---|
7128 | s//\1/ |
---|
7129 | q |
---|
7130 | } |
---|
7131 | /^X\(\/\/\)$/{ |
---|
7132 | s//\1/ |
---|
7133 | q |
---|
7134 | } |
---|
7135 | /^X\(\/\).*/{ |
---|
7136 | s//\1/ |
---|
7137 | q |
---|
7138 | } |
---|
7139 | s/.*/./; q'` |
---|
7140 | else |
---|
7141 | continue |
---|
7142 | fi |
---|
7143 | # Extract the definition of DEPDIR, am__include, and am__quote |
---|
7144 | # from the Makefile without running `make'. |
---|
7145 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
---|
7146 | test -z "$DEPDIR" && continue |
---|
7147 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
---|
7148 | test -z "am__include" && continue |
---|
7149 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
---|
7150 | # When using ansi2knr, U may be empty or an underscore; expand it |
---|
7151 | U=`sed -n 's/^U = //p' < "$mf"` |
---|
7152 | # Find all dependency output files, they are included files with |
---|
7153 | # $(DEPDIR) in their names. We invoke sed twice because it is the |
---|
7154 | # simplest approach to changing $(DEPDIR) to its actual value in the |
---|
7155 | # expansion. |
---|
7156 | for file in `sed -n " |
---|
7157 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
---|
7158 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
---|
7159 | # Make sure the directory exists. |
---|
7160 | test -f "$dirpart/$file" && continue |
---|
7161 | fdir=`$as_dirname -- "$file" || |
---|
7162 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
7163 | X"$file" : 'X\(//\)[^/]' \| \ |
---|
7164 | X"$file" : 'X\(//\)$' \| \ |
---|
7165 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
---|
7166 | $as_echo X"$file" | |
---|
7167 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
7168 | s//\1/ |
---|
7169 | q |
---|
7170 | } |
---|
7171 | /^X\(\/\/\)[^/].*/{ |
---|
7172 | s//\1/ |
---|
7173 | q |
---|
7174 | } |
---|
7175 | /^X\(\/\/\)$/{ |
---|
7176 | s//\1/ |
---|
7177 | q |
---|
7178 | } |
---|
7179 | /^X\(\/\).*/{ |
---|
7180 | s//\1/ |
---|
7181 | q |
---|
7182 | } |
---|
7183 | s/.*/./; q'` |
---|
7184 | as_dir=$dirpart/$fdir; as_fn_mkdir_p |
---|
7185 | # echo "creating $dirpart/$file" |
---|
7186 | echo '# dummy' > "$dirpart/$file" |
---|
7187 | done |
---|
7188 | done |
---|
7189 | } |
---|
7190 | ;; |
---|
7191 | |
---|
7192 | esac |
---|
7193 | done # for ac_tag |
---|
7194 | |
---|
7195 | |
---|
7196 | as_fn_exit 0 |
---|
7197 | _ACEOF |
---|
7198 | ac_clean_files=$ac_clean_files_save |
---|
7199 | |
---|
7200 | test $ac_write_fail = 0 || |
---|
7201 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
---|
7202 | |
---|
7203 | |
---|
7204 | # configure is writing to config.log, and then calls config.status. |
---|
7205 | # config.status does its own redirection, appending to config.log. |
---|
7206 | # Unfortunately, on DOS this fails, as config.log is still kept open |
---|
7207 | # by configure, so config.status won't be able to write to it; its |
---|
7208 | # output is simply discarded. So we exec the FD to /dev/null, |
---|
7209 | # effectively closing config.log, so it can be properly (re)opened and |
---|
7210 | # appended to by config.status. When coming back to configure, we |
---|
7211 | # need to make the FD available again. |
---|
7212 | if test "$no_create" != yes; then |
---|
7213 | ac_cs_success=: |
---|
7214 | ac_config_status_args= |
---|
7215 | test "$silent" = yes && |
---|
7216 | ac_config_status_args="$ac_config_status_args --quiet" |
---|
7217 | exec 5>/dev/null |
---|
7218 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
---|
7219 | exec 5>>config.log |
---|
7220 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
---|
7221 | # would make configure fail if this is the last instruction. |
---|
7222 | $ac_cs_success || as_fn_exit 1 |
---|
7223 | fi |
---|
7224 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
---|
7225 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
---|
7226 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
---|
7227 | fi |
---|
7228 | |
---|
7229 | |
---|
7230 | # Final text |
---|
7231 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Cforall configuraton completed. Type \"make -j 8 install\"." >&5 |
---|
7232 | $as_echo "Cforall configuraton completed. Type \"make -j 8 install\"." >&6; } |
---|